@flowselections/floriday-afhandeling-module 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts +7 -0
  2. package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts.map +1 -0
  3. package/dist-lib/components/afhandeling/ControleLijstPrint.js +67 -0
  4. package/dist-lib/components/afhandeling/ControlePage.d.ts +2 -0
  5. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -0
  6. package/dist-lib/components/afhandeling/ControlePage.js +456 -0
  7. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -1
  8. package/dist-lib/components/afhandeling/DagDetailDialog.js +9 -5
  9. package/dist-lib/components/afhandeling/VervoerderForm.d.ts.map +1 -1
  10. package/dist-lib/components/afhandeling/VervoerderForm.js +10 -1
  11. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
  12. package/dist-lib/components/afhandeling/VervoerdersPage.js +3 -2
  13. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  14. package/dist-lib/components/afhandeling/WeekAgendaView.js +15 -5
  15. package/dist-lib/components/afhandeling/WeekdayPicker.d.ts +12 -0
  16. package/dist-lib/components/afhandeling/WeekdayPicker.d.ts.map +1 -0
  17. package/dist-lib/components/afhandeling/WeekdayPicker.js +30 -0
  18. package/dist-lib/components/pickstation/PakbonTemplate.d.ts +1 -0
  19. package/dist-lib/components/pickstation/PakbonTemplate.d.ts.map +1 -1
  20. package/dist-lib/components/pickstation/PakbonTemplate.js +31 -8
  21. package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
  22. package/dist-lib/components/settings/AfhandelingSettingsCard.js +9 -2
  23. package/dist-lib/components/ui/responsive-dialog.d.ts +20 -0
  24. package/dist-lib/components/ui/responsive-dialog.d.ts.map +1 -0
  25. package/dist-lib/components/ui/responsive-dialog.js +44 -0
  26. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  27. package/dist-lib/hooks/useOrderPlanning.js +17 -6
  28. package/dist-lib/index.d.ts +1 -0
  29. package/dist-lib/index.d.ts.map +1 -1
  30. package/dist-lib/index.js +4 -2
  31. package/dist-lib/integrations/supabase/auth-middleware.d.ts +629 -3
  32. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  33. package/dist-lib/integrations/supabase/client.d.ts +629 -3
  34. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  35. package/dist-lib/integrations/supabase/client.server.d.ts +629 -3
  36. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  37. package/dist-lib/integrations/supabase/types.d.ts +639 -3
  38. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  39. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1318 -62
  40. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  41. package/dist-lib/lib/afhandelingSettings.functions.js +16 -1
  42. package/dist-lib/lib/carrierMatch.server.d.ts +27 -0
  43. package/dist-lib/lib/carrierMatch.server.d.ts.map +1 -0
  44. package/dist-lib/lib/carrierMatch.server.js +75 -0
  45. package/dist-lib/lib/carriers.functions.d.ts +3151 -15
  46. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  47. package/dist-lib/lib/carriers.functions.js +17 -2
  48. package/dist-lib/lib/cartAssignments.functions.d.ts +3145 -15
  49. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/cartControl.functions.d.ts +99259 -0
  51. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -0
  52. package/dist-lib/lib/cartControl.functions.js +489 -0
  53. package/dist-lib/lib/cartRescheduling.d.ts +30 -0
  54. package/dist-lib/lib/cartRescheduling.d.ts.map +1 -0
  55. package/dist-lib/lib/cartRescheduling.js +71 -0
  56. package/dist-lib/lib/floriday.functions.d.ts +629 -3
  57. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  58. package/dist-lib/lib/pickstationI18n.d.ts +8 -0
  59. package/dist-lib/lib/pickstationI18n.d.ts.map +1 -1
  60. package/dist-lib/lib/pickstationI18n.js +48 -0
  61. package/dist-lib/lib/pickstationOrders.server.d.ts +1 -0
  62. package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
  63. package/dist-lib/lib/pickstationOrders.server.js +94 -7
  64. package/dist-lib/lib/pickstationTypes.d.ts +12 -0
  65. package/dist-lib/lib/pickstationTypes.d.ts.map +1 -1
  66. package/dist-lib/lib/planning.d.ts +23 -0
  67. package/dist-lib/lib/planning.d.ts.map +1 -1
  68. package/dist-lib/lib/planning.js +66 -6
  69. package/package.json +1 -1
@@ -9,6 +9,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
9
9
  max_workdays_earlier_pick: number;
10
10
  pick_days_before_transport: number;
11
11
  pick_distribution_enabled: boolean;
12
+ pick_weekdays: number[];
12
13
  signup_mail_enabled: boolean;
13
14
  signup_mail_lead_minutes: number;
14
15
  signup_mail_purpose: string;
@@ -22,6 +23,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
22
23
  max_workdays_earlier_pick?: number;
23
24
  pick_days_before_transport?: number;
24
25
  pick_distribution_enabled?: boolean;
26
+ pick_weekdays?: number[];
25
27
  signup_mail_enabled?: boolean;
26
28
  signup_mail_lead_minutes?: number;
27
29
  signup_mail_purpose?: string;
@@ -35,6 +37,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
35
37
  max_workdays_earlier_pick?: number;
36
38
  pick_days_before_transport?: number;
37
39
  pick_distribution_enabled?: boolean;
40
+ pick_weekdays?: number[];
38
41
  signup_mail_enabled?: boolean;
39
42
  signup_mail_lead_minutes?: number;
40
43
  signup_mail_purpose?: string;
@@ -446,6 +449,48 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
446
449
  referencedColumns: ["id"];
447
450
  }];
448
451
  };
452
+ carrier_signup_dispatch_runs: {
453
+ Row: {
454
+ detail: import("./types").Json | null;
455
+ error: string | null;
456
+ finished_at: string | null;
457
+ groups: number;
458
+ id: string;
459
+ ok: boolean;
460
+ reason: string | null;
461
+ sent: number;
462
+ skipped: import("./types").Json;
463
+ started_at: string;
464
+ unassigned: import("./types").Json;
465
+ };
466
+ Insert: {
467
+ detail?: import("./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("./types").Json;
476
+ started_at?: string;
477
+ unassigned?: import("./types").Json;
478
+ };
479
+ Update: {
480
+ detail?: import("./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("./types").Json;
489
+ started_at?: string;
490
+ unassigned?: import("./types").Json;
491
+ };
492
+ Relationships: [];
493
+ };
449
494
  carrier_signup_dispatches: {
450
495
  Row: {
451
496
  carrier_id: string;
@@ -497,6 +542,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
497
542
  contact_person: string | null;
498
543
  created_at: string;
499
544
  delivery_days: number | null;
545
+ delivery_weekdays: number[];
500
546
  email: string | null;
501
547
  id: string;
502
548
  is_default: boolean;
@@ -504,6 +550,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
504
550
  notes: string | null;
505
551
  phone: string | null;
506
552
  pickup_moments: import("./types").Json;
553
+ pickup_weekdays: number[];
507
554
  service_cities: string[];
508
555
  service_countries: string[];
509
556
  service_provinces: string[];
@@ -519,6 +566,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
519
566
  contact_person?: string | null;
520
567
  created_at?: string;
521
568
  delivery_days?: number | null;
569
+ delivery_weekdays?: number[];
522
570
  email?: string | null;
523
571
  id?: string;
524
572
  is_default?: boolean;
@@ -526,6 +574,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
526
574
  notes?: string | null;
527
575
  phone?: string | null;
528
576
  pickup_moments?: import("./types").Json;
577
+ pickup_weekdays?: number[];
529
578
  service_cities?: string[];
530
579
  service_countries?: string[];
531
580
  service_provinces?: string[];
@@ -541,6 +590,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
541
590
  contact_person?: string | null;
542
591
  created_at?: string;
543
592
  delivery_days?: number | null;
593
+ delivery_weekdays?: number[];
544
594
  email?: string | null;
545
595
  id?: string;
546
596
  is_default?: boolean;
@@ -548,6 +598,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
548
598
  notes?: string | null;
549
599
  phone?: string | null;
550
600
  pickup_moments?: import("./types").Json;
601
+ pickup_weekdays?: number[];
551
602
  service_cities?: string[];
552
603
  service_countries?: string[];
553
604
  service_provinces?: string[];
@@ -560,6 +611,177 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
560
611
  };
561
612
  Relationships: [];
562
613
  };
614
+ cart_control_draft: {
615
+ Row: {
616
+ cart_states: import("./types").Json;
617
+ checked_keys: import("./types").Json;
618
+ draft_date: string;
619
+ form_state: import("./types").Json;
620
+ notes: string;
621
+ updated_at: string;
622
+ user_id: string;
623
+ };
624
+ Insert: {
625
+ cart_states?: import("./types").Json;
626
+ checked_keys?: import("./types").Json;
627
+ draft_date: string;
628
+ form_state?: import("./types").Json;
629
+ notes?: string;
630
+ updated_at?: string;
631
+ user_id: string;
632
+ };
633
+ Update: {
634
+ cart_states?: import("./types").Json;
635
+ checked_keys?: import("./types").Json;
636
+ draft_date?: string;
637
+ form_state?: import("./types").Json;
638
+ notes?: string;
639
+ updated_at?: string;
640
+ user_id?: string;
641
+ };
642
+ Relationships: [];
643
+ };
644
+ cart_control_items: {
645
+ Row: {
646
+ action: string;
647
+ block_reason: string | null;
648
+ carrier_name: string | null;
649
+ cart_index: number;
650
+ cart_number_id: string | null;
651
+ cart_number_label: string | null;
652
+ created_at: string;
653
+ customer_name: string | null;
654
+ delivery_date: string | null;
655
+ id: string;
656
+ new_pick_date: string | null;
657
+ order_id: string;
658
+ order_number: string | null;
659
+ order_source: string;
660
+ pickup_date: string | null;
661
+ session_id: string;
662
+ };
663
+ Insert: {
664
+ action: string;
665
+ block_reason?: string | null;
666
+ carrier_name?: string | null;
667
+ cart_index: number;
668
+ cart_number_id?: string | null;
669
+ cart_number_label?: string | null;
670
+ created_at?: string;
671
+ customer_name?: string | null;
672
+ delivery_date?: string | null;
673
+ id?: string;
674
+ new_pick_date?: string | null;
675
+ order_id: string;
676
+ order_number?: string | null;
677
+ order_source: string;
678
+ pickup_date?: string | null;
679
+ session_id: string;
680
+ };
681
+ Update: {
682
+ action?: string;
683
+ block_reason?: string | null;
684
+ carrier_name?: string | null;
685
+ cart_index?: number;
686
+ cart_number_id?: string | null;
687
+ cart_number_label?: string | null;
688
+ created_at?: string;
689
+ customer_name?: string | null;
690
+ delivery_date?: string | null;
691
+ id?: string;
692
+ new_pick_date?: string | null;
693
+ order_id?: string;
694
+ order_number?: string | null;
695
+ order_source?: string;
696
+ pickup_date?: string | null;
697
+ session_id?: string;
698
+ };
699
+ Relationships: [{
700
+ foreignKeyName: "cart_control_items_session_id_fkey";
701
+ columns: ["session_id"];
702
+ isOneToOne: false;
703
+ referencedRelation: "cart_control_sessions";
704
+ referencedColumns: ["id"];
705
+ }];
706
+ };
707
+ cart_control_sessions: {
708
+ Row: {
709
+ blocked_count: number;
710
+ checked_count: number;
711
+ control_date: string;
712
+ created_at: string;
713
+ id: string;
714
+ notes: string | null;
715
+ performed_at: string;
716
+ rescheduled_count: number;
717
+ total_carts: number;
718
+ updated_at: string;
719
+ user_id: string;
720
+ };
721
+ Insert: {
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
+ total_carts?: number;
731
+ updated_at?: string;
732
+ user_id: string;
733
+ };
734
+ Update: {
735
+ blocked_count?: number;
736
+ checked_count?: number;
737
+ control_date?: string;
738
+ created_at?: string;
739
+ id?: string;
740
+ notes?: string | null;
741
+ performed_at?: string;
742
+ rescheduled_count?: number;
743
+ total_carts?: number;
744
+ updated_at?: string;
745
+ user_id?: string;
746
+ };
747
+ Relationships: [];
748
+ };
749
+ cart_numbers: {
750
+ Row: {
751
+ assigned_at: string;
752
+ cart_index: number;
753
+ cart_number: string;
754
+ day_seq: number;
755
+ id: string;
756
+ order_id: string;
757
+ order_source: string;
758
+ pick_date: string;
759
+ status: string;
760
+ };
761
+ Insert: {
762
+ assigned_at?: string;
763
+ cart_index: number;
764
+ cart_number: string;
765
+ day_seq: number;
766
+ id?: string;
767
+ order_id: string;
768
+ order_source: string;
769
+ pick_date: string;
770
+ status?: string;
771
+ };
772
+ Update: {
773
+ assigned_at?: string;
774
+ cart_index?: number;
775
+ cart_number?: string;
776
+ day_seq?: number;
777
+ id?: string;
778
+ order_id?: string;
779
+ order_source?: string;
780
+ pick_date?: string;
781
+ status?: string;
782
+ };
783
+ Relationships: [];
784
+ };
563
785
  cart_pick_overrides: {
564
786
  Row: {
565
787
  cart_index: number;
@@ -1232,6 +1454,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1232
1454
  referencedColumns: ["id"];
1233
1455
  }];
1234
1456
  };
1457
+ dashboard_critical_alerts: {
1458
+ Row: {
1459
+ alert_key: string;
1460
+ alert_type: string;
1461
+ created_at: string;
1462
+ description: string | null;
1463
+ id: string;
1464
+ metadata: import("./types").Json | null;
1465
+ priority: string;
1466
+ raised_at: string;
1467
+ related_cart_ids: string[] | null;
1468
+ resolved_at: string | null;
1469
+ title: string;
1470
+ updated_at: string;
1471
+ user_id: string;
1472
+ };
1473
+ Insert: {
1474
+ alert_key: string;
1475
+ alert_type: string;
1476
+ created_at?: string;
1477
+ description?: string | null;
1478
+ id?: string;
1479
+ metadata?: import("./types").Json | null;
1480
+ priority?: string;
1481
+ raised_at?: string;
1482
+ related_cart_ids?: string[] | null;
1483
+ resolved_at?: string | null;
1484
+ title: string;
1485
+ updated_at?: string;
1486
+ user_id: string;
1487
+ };
1488
+ Update: {
1489
+ alert_key?: string;
1490
+ alert_type?: string;
1491
+ created_at?: string;
1492
+ description?: string | null;
1493
+ id?: string;
1494
+ metadata?: import("./types").Json | null;
1495
+ priority?: string;
1496
+ raised_at?: string;
1497
+ related_cart_ids?: string[] | null;
1498
+ resolved_at?: string | null;
1499
+ title?: string;
1500
+ updated_at?: string;
1501
+ user_id?: string;
1502
+ };
1503
+ Relationships: [];
1504
+ };
1235
1505
  dashboard_daily_reports: {
1236
1506
  Row: {
1237
1507
  created_at: string;
@@ -2734,6 +3004,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2734
3004
  };
2735
3005
  floricode_sync_state: {
2736
3006
  Row: {
3007
+ cursor_skip: number;
2737
3008
  error_message: string | null;
2738
3009
  last_change_date_time: string | null;
2739
3010
  last_sequence_number: number;
@@ -2743,6 +3014,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2743
3014
  updated_at: string;
2744
3015
  };
2745
3016
  Insert: {
3017
+ cursor_skip?: number;
2746
3018
  error_message?: string | null;
2747
3019
  last_change_date_time?: string | null;
2748
3020
  last_sequence_number?: number;
@@ -2752,6 +3024,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2752
3024
  updated_at?: string;
2753
3025
  };
2754
3026
  Update: {
3027
+ cursor_skip?: number;
2755
3028
  error_message?: string | null;
2756
3029
  last_change_date_time?: string | null;
2757
3030
  last_sequence_number?: number;
@@ -5099,6 +5372,93 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5099
5372
  };
5100
5373
  Relationships: [];
5101
5374
  };
5375
+ manufacture_product_components: {
5376
+ Row: {
5377
+ component_type: string;
5378
+ created_at: string;
5379
+ id: string;
5380
+ manufacture_product_id: string;
5381
+ product_group_id: string | null;
5382
+ quantity: number;
5383
+ trade_item_id: string | null;
5384
+ unit: string;
5385
+ };
5386
+ Insert: {
5387
+ component_type: string;
5388
+ created_at?: string;
5389
+ id?: string;
5390
+ manufacture_product_id: string;
5391
+ product_group_id?: string | null;
5392
+ quantity?: number;
5393
+ trade_item_id?: string | null;
5394
+ unit?: string;
5395
+ };
5396
+ Update: {
5397
+ component_type?: string;
5398
+ created_at?: string;
5399
+ id?: string;
5400
+ manufacture_product_id?: string;
5401
+ product_group_id?: string | null;
5402
+ quantity?: number;
5403
+ trade_item_id?: string | null;
5404
+ unit?: string;
5405
+ };
5406
+ Relationships: [{
5407
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5408
+ columns: ["manufacture_product_id"];
5409
+ isOneToOne: false;
5410
+ referencedRelation: "manufacture_product_possible_stock_view";
5411
+ referencedColumns: ["manufacture_product_id"];
5412
+ }, {
5413
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5414
+ columns: ["manufacture_product_id"];
5415
+ isOneToOne: false;
5416
+ referencedRelation: "manufacture_products";
5417
+ referencedColumns: ["id"];
5418
+ }, {
5419
+ foreignKeyName: "manufacture_product_components_product_group_id_fkey";
5420
+ columns: ["product_group_id"];
5421
+ isOneToOne: false;
5422
+ referencedRelation: "product_groups";
5423
+ referencedColumns: ["id"];
5424
+ }];
5425
+ };
5426
+ manufacture_products: {
5427
+ Row: {
5428
+ created_at: string;
5429
+ description: string | null;
5430
+ id: string;
5431
+ is_active: boolean;
5432
+ name: string;
5433
+ produced_stock: number;
5434
+ product_code: string;
5435
+ tenant_id: string;
5436
+ updated_at: string;
5437
+ };
5438
+ Insert: {
5439
+ created_at?: string;
5440
+ description?: string | null;
5441
+ id?: string;
5442
+ is_active?: boolean;
5443
+ name: string;
5444
+ produced_stock?: number;
5445
+ product_code: string;
5446
+ tenant_id: string;
5447
+ updated_at?: string;
5448
+ };
5449
+ Update: {
5450
+ created_at?: string;
5451
+ description?: string | null;
5452
+ id?: string;
5453
+ is_active?: boolean;
5454
+ name?: string;
5455
+ produced_stock?: number;
5456
+ product_code?: string;
5457
+ tenant_id?: string;
5458
+ updated_at?: string;
5459
+ };
5460
+ Relationships: [];
5461
+ };
5102
5462
  monteurs: {
5103
5463
  Row: {
5104
5464
  avatar_url: string | null;
@@ -6059,6 +6419,66 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6059
6419
  };
6060
6420
  Relationships: [];
6061
6421
  };
6422
+ product_group_items: {
6423
+ Row: {
6424
+ created_at: string;
6425
+ id: string;
6426
+ product_group_id: string;
6427
+ quantity: number;
6428
+ trade_item_id: string;
6429
+ };
6430
+ Insert: {
6431
+ created_at?: string;
6432
+ id?: string;
6433
+ product_group_id: string;
6434
+ quantity?: number;
6435
+ trade_item_id: string;
6436
+ };
6437
+ Update: {
6438
+ created_at?: string;
6439
+ id?: string;
6440
+ product_group_id?: string;
6441
+ quantity?: number;
6442
+ trade_item_id?: string;
6443
+ };
6444
+ Relationships: [{
6445
+ foreignKeyName: "product_group_items_product_group_id_fkey";
6446
+ columns: ["product_group_id"];
6447
+ isOneToOne: false;
6448
+ referencedRelation: "product_groups";
6449
+ referencedColumns: ["id"];
6450
+ }];
6451
+ };
6452
+ product_groups: {
6453
+ Row: {
6454
+ created_at: string;
6455
+ description: string | null;
6456
+ id: string;
6457
+ is_active: boolean;
6458
+ name: string;
6459
+ tenant_id: string;
6460
+ updated_at: string;
6461
+ };
6462
+ Insert: {
6463
+ created_at?: string;
6464
+ description?: string | null;
6465
+ id?: string;
6466
+ is_active?: boolean;
6467
+ name: string;
6468
+ tenant_id: string;
6469
+ updated_at?: string;
6470
+ };
6471
+ Update: {
6472
+ created_at?: string;
6473
+ description?: string | null;
6474
+ id?: string;
6475
+ is_active?: boolean;
6476
+ name?: string;
6477
+ tenant_id?: string;
6478
+ updated_at?: string;
6479
+ };
6480
+ Relationships: [];
6481
+ };
6062
6482
  products: {
6063
6483
  Row: {
6064
6484
  barcode: string | null;
@@ -7198,7 +7618,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7198
7618
  connection_id: string | null;
7199
7619
  created_at: string;
7200
7620
  data: import("./types").Json;
7621
+ floriday_id: string | null;
7622
+ floriday_link_error: string | null;
7623
+ floriday_link_status: string;
7201
7624
  id: string;
7625
+ last_floriday_sync_at: string | null;
7626
+ missing_required_fields: string[];
7627
+ source: string;
7202
7628
  updated_at: string;
7203
7629
  user_id: string;
7204
7630
  };
@@ -7206,7 +7632,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7206
7632
  connection_id?: string | null;
7207
7633
  created_at?: string;
7208
7634
  data?: import("./types").Json;
7635
+ floriday_id?: string | null;
7636
+ floriday_link_error?: string | null;
7637
+ floriday_link_status?: string;
7209
7638
  id?: string;
7639
+ last_floriday_sync_at?: string | null;
7640
+ missing_required_fields?: string[];
7641
+ source?: string;
7210
7642
  updated_at?: string;
7211
7643
  user_id: string;
7212
7644
  };
@@ -7214,7 +7646,55 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7214
7646
  connection_id?: string | null;
7215
7647
  created_at?: string;
7216
7648
  data?: import("./types").Json;
7649
+ floriday_id?: string | null;
7650
+ floriday_link_error?: string | null;
7651
+ floriday_link_status?: string;
7217
7652
  id?: string;
7653
+ last_floriday_sync_at?: string | null;
7654
+ missing_required_fields?: string[];
7655
+ source?: string;
7656
+ updated_at?: string;
7657
+ user_id?: string;
7658
+ };
7659
+ Relationships: [];
7660
+ };
7661
+ trade_item_stock: {
7662
+ Row: {
7663
+ connection_id: string;
7664
+ created_at: string;
7665
+ id: string;
7666
+ incoming_stock: number;
7667
+ minimum_stock: number;
7668
+ notes: string | null;
7669
+ physical_stock: number;
7670
+ reserved_stock: number;
7671
+ trade_item_key: string;
7672
+ updated_at: string;
7673
+ user_id: string;
7674
+ };
7675
+ Insert: {
7676
+ connection_id: string;
7677
+ created_at?: string;
7678
+ id?: string;
7679
+ incoming_stock?: number;
7680
+ minimum_stock?: number;
7681
+ notes?: string | null;
7682
+ physical_stock?: number;
7683
+ reserved_stock?: number;
7684
+ trade_item_key: string;
7685
+ updated_at?: string;
7686
+ user_id: string;
7687
+ };
7688
+ Update: {
7689
+ connection_id?: string;
7690
+ created_at?: string;
7691
+ id?: string;
7692
+ incoming_stock?: number;
7693
+ minimum_stock?: number;
7694
+ notes?: string | null;
7695
+ physical_stock?: number;
7696
+ reserved_stock?: number;
7697
+ trade_item_key?: string;
7218
7698
  updated_at?: string;
7219
7699
  user_id?: string;
7220
7700
  };
@@ -7564,6 +8044,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7564
8044
  };
7565
8045
  twinfield_invoice_sync_logs: {
7566
8046
  Row: {
8047
+ action_type: string | null;
7567
8048
  created_at: string;
7568
8049
  details: import("./types").Json | null;
7569
8050
  duration_ms: number | null;
@@ -7576,6 +8057,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7576
8057
  user_id: string;
7577
8058
  };
7578
8059
  Insert: {
8060
+ action_type?: string | null;
7579
8061
  created_at?: string;
7580
8062
  details?: import("./types").Json | null;
7581
8063
  duration_ms?: number | null;
@@ -7588,6 +8070,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7588
8070
  user_id: string;
7589
8071
  };
7590
8072
  Update: {
8073
+ action_type?: string | null;
7591
8074
  created_at?: string;
7592
8075
  details?: import("./types").Json | null;
7593
8076
  duration_ms?: number | null;
@@ -7823,6 +8306,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7823
8306
  referencedColumns: ["id"];
7824
8307
  }];
7825
8308
  };
8309
+ twinfield_request_metrics: {
8310
+ Row: {
8311
+ bucket_hour: string;
8312
+ connection_id: string;
8313
+ error_count: number;
8314
+ rate_limited_count: number;
8315
+ request_count: number;
8316
+ updated_at: string;
8317
+ };
8318
+ Insert: {
8319
+ bucket_hour: string;
8320
+ connection_id: string;
8321
+ error_count?: number;
8322
+ rate_limited_count?: number;
8323
+ request_count?: number;
8324
+ updated_at?: string;
8325
+ };
8326
+ Update: {
8327
+ bucket_hour?: string;
8328
+ connection_id?: string;
8329
+ error_count?: number;
8330
+ rate_limited_count?: number;
8331
+ request_count?: number;
8332
+ updated_at?: string;
8333
+ };
8334
+ Relationships: [];
8335
+ };
8336
+ twinfield_session_cache: {
8337
+ Row: {
8338
+ cluster: string;
8339
+ created_at: string;
8340
+ expires_at: string;
8341
+ session_id: string;
8342
+ user_id: string;
8343
+ };
8344
+ Insert: {
8345
+ cluster: string;
8346
+ created_at?: string;
8347
+ expires_at: string;
8348
+ session_id: string;
8349
+ user_id: string;
8350
+ };
8351
+ Update: {
8352
+ cluster?: string;
8353
+ created_at?: string;
8354
+ expires_at?: string;
8355
+ session_id?: string;
8356
+ user_id?: string;
8357
+ };
8358
+ Relationships: [];
8359
+ };
7826
8360
  twinfield_settings: {
7827
8361
  Row: {
7828
8362
  active_environment: string;
@@ -8404,6 +8938,35 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8404
8938
  };
8405
8939
  Relationships: [];
8406
8940
  };
8941
+ manufacture_product_possible_stock_view: {
8942
+ Row: {
8943
+ component_count: number | null;
8944
+ manufacture_product_id: string | null;
8945
+ possible_stock: number | null;
8946
+ };
8947
+ Relationships: [];
8948
+ };
8949
+ product_group_stock_view: {
8950
+ Row: {
8951
+ item_count: number | null;
8952
+ product_group_id: string | null;
8953
+ total_stock: number | null;
8954
+ };
8955
+ Relationships: [{
8956
+ foreignKeyName: "product_group_items_product_group_id_fkey";
8957
+ columns: ["product_group_id"];
8958
+ isOneToOne: false;
8959
+ referencedRelation: "product_groups";
8960
+ referencedColumns: ["id"];
8961
+ }];
8962
+ };
8963
+ trade_item_stock_view: {
8964
+ Row: {
8965
+ stock: number | null;
8966
+ trade_item_id: string | null;
8967
+ };
8968
+ Relationships: [];
8969
+ };
8407
8970
  v_external_customers_exact: {
8408
8971
  Row: {
8409
8972
  account_number: string | null;
@@ -8659,6 +9222,20 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8659
9222
  };
8660
9223
  Returns: number;
8661
9224
  };
9225
+ assign_cart_numbers: {
9226
+ Args: {
9227
+ p_carts: import("./types").Json;
9228
+ };
9229
+ Returns: {
9230
+ cart_index: number;
9231
+ cart_number: string;
9232
+ day_seq: number;
9233
+ order_id: string;
9234
+ order_source: string;
9235
+ pick_date: string;
9236
+ status: string;
9237
+ }[];
9238
+ };
8662
9239
  assign_floriday_order_numbers: {
8663
9240
  Args: {
8664
9241
  p_ids: string[];
@@ -8678,10 +9255,37 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8678
9255
  Args: never;
8679
9256
  Returns: number;
8680
9257
  };
9258
+ control_get_todays_carts: {
9259
+ Args: never;
9260
+ Returns: {
9261
+ cart_index: number;
9262
+ cart_number: string;
9263
+ cart_number_id: string;
9264
+ order_id: string;
9265
+ order_source: string;
9266
+ pick_date: string;
9267
+ status: string;
9268
+ }[];
9269
+ };
9270
+ count_distinct_regulatory_products: {
9271
+ Args: never;
9272
+ Returns: number;
9273
+ };
8681
9274
  current_monteur_id: {
8682
9275
  Args: never;
8683
9276
  Returns: string;
8684
9277
  };
9278
+ dashboard_alert_counts: {
9279
+ Args: never;
9280
+ Returns: import("./types").Json;
9281
+ };
9282
+ dashboard_alert_rows: {
9283
+ Args: {
9284
+ check_id: string;
9285
+ row_limit?: number;
9286
+ };
9287
+ Returns: import("./types").Json;
9288
+ };
8685
9289
  dashboard_list_public_schema: {
8686
9290
  Args: never;
8687
9291
  Returns: {
@@ -8762,6 +9366,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8762
9366
  };
8763
9367
  Returns: boolean;
8764
9368
  };
9369
+ format_cart_number: {
9370
+ Args: {
9371
+ p_pick_date: string;
9372
+ p_seq: number;
9373
+ };
9374
+ Returns: string;
9375
+ };
8765
9376
  get_active_floriday_connection_public: {
8766
9377
  Args: never;
8767
9378
  Returns: {
@@ -8966,14 +9577,29 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8966
9577
  };
8967
9578
  Returns: undefined;
8968
9579
  };
9580
+ pickstation_set_cart_status: {
9581
+ Args: {
9582
+ p_cart_index: number;
9583
+ p_order_id: string;
9584
+ p_order_source: string;
9585
+ p_status: string;
9586
+ };
9587
+ Returns: undefined;
9588
+ };
8969
9589
  refresh_floricode_derived_code_lists: {
8970
9590
  Args: never;
8971
9591
  Returns: {
8972
- out_environment: string;
8973
- out_list_name: string;
8974
- out_row_count: number;
9592
+ environment: string;
9593
+ list_name: string;
9594
+ row_count: number;
8975
9595
  }[];
8976
9596
  };
9597
+ refresh_floricode_derived_for_product: {
9598
+ Args: {
9599
+ p_product_code: string;
9600
+ };
9601
+ Returns: number;
9602
+ };
8977
9603
  reset_floriday_sync_cursor: {
8978
9604
  Args: {
8979
9605
  p_connection_id: string;