@flowselections/floriday-afhandeling-module 1.0.10 → 1.0.12

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 +4 -0
  5. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -0
  6. package/dist-lib/components/afhandeling/ControlePage.js +460 -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 +755 -3
  32. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  33. package/dist-lib/integrations/supabase/client.d.ts +755 -3
  34. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  35. package/dist-lib/integrations/supabase/client.server.d.ts +755 -3
  36. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  37. package/dist-lib/integrations/supabase/types.d.ts +765 -3
  38. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  39. package/dist-lib/lib/afhandelingSettings.functions.d.ts +1565 -57
  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 +3781 -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 +3775 -15
  49. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -1
  50. package/dist-lib/lib/cartControl.functions.d.ts +100519 -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 +755 -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 +6 -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,180 @@ 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
+ stock_consumed_at: string | null;
718
+ total_carts: number;
719
+ updated_at: string;
720
+ user_id: string;
721
+ };
722
+ Insert: {
723
+ blocked_count?: number;
724
+ checked_count?: number;
725
+ control_date?: string;
726
+ created_at?: string;
727
+ id?: string;
728
+ notes?: string | null;
729
+ performed_at?: string;
730
+ rescheduled_count?: number;
731
+ stock_consumed_at?: string | null;
732
+ total_carts?: number;
733
+ updated_at?: string;
734
+ user_id: string;
735
+ };
736
+ Update: {
737
+ blocked_count?: number;
738
+ checked_count?: number;
739
+ control_date?: string;
740
+ created_at?: string;
741
+ id?: string;
742
+ notes?: string | null;
743
+ performed_at?: string;
744
+ rescheduled_count?: number;
745
+ stock_consumed_at?: string | null;
746
+ total_carts?: number;
747
+ updated_at?: string;
748
+ user_id?: string;
749
+ };
750
+ Relationships: [];
751
+ };
752
+ cart_numbers: {
753
+ Row: {
754
+ assigned_at: string;
755
+ cart_index: number;
756
+ cart_number: string;
757
+ day_seq: number;
758
+ id: string;
759
+ order_id: string;
760
+ order_source: string;
761
+ pick_date: string;
762
+ status: string;
763
+ };
764
+ Insert: {
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
+ Update: {
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
+ Relationships: [];
787
+ };
563
788
  cart_pick_overrides: {
564
789
  Row: {
565
790
  cart_index: number;
@@ -1232,6 +1457,54 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
1232
1457
  referencedColumns: ["id"];
1233
1458
  }];
1234
1459
  };
1460
+ dashboard_critical_alerts: {
1461
+ Row: {
1462
+ alert_key: string;
1463
+ alert_type: string;
1464
+ created_at: string;
1465
+ description: string | null;
1466
+ id: string;
1467
+ metadata: import("./types").Json | null;
1468
+ priority: string;
1469
+ raised_at: string;
1470
+ related_cart_ids: string[] | null;
1471
+ resolved_at: string | null;
1472
+ title: string;
1473
+ updated_at: string;
1474
+ user_id: string;
1475
+ };
1476
+ Insert: {
1477
+ alert_key: string;
1478
+ alert_type: string;
1479
+ created_at?: string;
1480
+ description?: string | null;
1481
+ id?: string;
1482
+ metadata?: import("./types").Json | null;
1483
+ priority?: string;
1484
+ raised_at?: string;
1485
+ related_cart_ids?: string[] | null;
1486
+ resolved_at?: string | null;
1487
+ title: string;
1488
+ updated_at?: string;
1489
+ user_id: string;
1490
+ };
1491
+ Update: {
1492
+ alert_key?: string;
1493
+ alert_type?: string;
1494
+ created_at?: string;
1495
+ description?: string | null;
1496
+ id?: string;
1497
+ metadata?: import("./types").Json | null;
1498
+ priority?: string;
1499
+ raised_at?: string;
1500
+ related_cart_ids?: string[] | null;
1501
+ resolved_at?: string | null;
1502
+ title?: string;
1503
+ updated_at?: string;
1504
+ user_id?: string;
1505
+ };
1506
+ Relationships: [];
1507
+ };
1235
1508
  dashboard_daily_reports: {
1236
1509
  Row: {
1237
1510
  created_at: string;
@@ -2734,6 +3007,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2734
3007
  };
2735
3008
  floricode_sync_state: {
2736
3009
  Row: {
3010
+ cursor_skip: number;
2737
3011
  error_message: string | null;
2738
3012
  last_change_date_time: string | null;
2739
3013
  last_sequence_number: number;
@@ -2743,6 +3017,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2743
3017
  updated_at: string;
2744
3018
  };
2745
3019
  Insert: {
3020
+ cursor_skip?: number;
2746
3021
  error_message?: string | null;
2747
3022
  last_change_date_time?: string | null;
2748
3023
  last_sequence_number?: number;
@@ -2752,6 +3027,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2752
3027
  updated_at?: string;
2753
3028
  };
2754
3029
  Update: {
3030
+ cursor_skip?: number;
2755
3031
  error_message?: string | null;
2756
3032
  last_change_date_time?: string | null;
2757
3033
  last_sequence_number?: number;
@@ -5099,6 +5375,93 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5099
5375
  };
5100
5376
  Relationships: [];
5101
5377
  };
5378
+ manufacture_product_components: {
5379
+ Row: {
5380
+ component_type: string;
5381
+ created_at: string;
5382
+ id: string;
5383
+ manufacture_product_id: string;
5384
+ product_group_id: string | null;
5385
+ quantity: number;
5386
+ trade_item_id: string | null;
5387
+ unit: string;
5388
+ };
5389
+ Insert: {
5390
+ component_type: string;
5391
+ created_at?: string;
5392
+ id?: string;
5393
+ manufacture_product_id: string;
5394
+ product_group_id?: string | null;
5395
+ quantity?: number;
5396
+ trade_item_id?: string | null;
5397
+ unit?: string;
5398
+ };
5399
+ Update: {
5400
+ component_type?: string;
5401
+ created_at?: string;
5402
+ id?: string;
5403
+ manufacture_product_id?: string;
5404
+ product_group_id?: string | null;
5405
+ quantity?: number;
5406
+ trade_item_id?: string | null;
5407
+ unit?: string;
5408
+ };
5409
+ Relationships: [{
5410
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5411
+ columns: ["manufacture_product_id"];
5412
+ isOneToOne: false;
5413
+ referencedRelation: "manufacture_product_possible_stock_view";
5414
+ referencedColumns: ["manufacture_product_id"];
5415
+ }, {
5416
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5417
+ columns: ["manufacture_product_id"];
5418
+ isOneToOne: false;
5419
+ referencedRelation: "manufacture_products";
5420
+ referencedColumns: ["id"];
5421
+ }, {
5422
+ foreignKeyName: "manufacture_product_components_product_group_id_fkey";
5423
+ columns: ["product_group_id"];
5424
+ isOneToOne: false;
5425
+ referencedRelation: "product_groups";
5426
+ referencedColumns: ["id"];
5427
+ }];
5428
+ };
5429
+ manufacture_products: {
5430
+ Row: {
5431
+ created_at: string;
5432
+ description: string | null;
5433
+ id: string;
5434
+ is_active: boolean;
5435
+ name: string;
5436
+ produced_stock: number;
5437
+ product_code: string;
5438
+ tenant_id: string;
5439
+ updated_at: string;
5440
+ };
5441
+ Insert: {
5442
+ created_at?: string;
5443
+ description?: string | null;
5444
+ id?: string;
5445
+ is_active?: boolean;
5446
+ name: string;
5447
+ produced_stock?: number;
5448
+ product_code: string;
5449
+ tenant_id: string;
5450
+ updated_at?: string;
5451
+ };
5452
+ Update: {
5453
+ created_at?: string;
5454
+ description?: string | null;
5455
+ id?: string;
5456
+ is_active?: boolean;
5457
+ name?: string;
5458
+ produced_stock?: number;
5459
+ product_code?: string;
5460
+ tenant_id?: string;
5461
+ updated_at?: string;
5462
+ };
5463
+ Relationships: [];
5464
+ };
5102
5465
  monteurs: {
5103
5466
  Row: {
5104
5467
  avatar_url: string | null;
@@ -6059,6 +6422,66 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6059
6422
  };
6060
6423
  Relationships: [];
6061
6424
  };
6425
+ product_group_items: {
6426
+ Row: {
6427
+ created_at: string;
6428
+ id: string;
6429
+ product_group_id: string;
6430
+ quantity: number;
6431
+ trade_item_id: string;
6432
+ };
6433
+ Insert: {
6434
+ created_at?: string;
6435
+ id?: string;
6436
+ product_group_id: string;
6437
+ quantity?: number;
6438
+ trade_item_id: string;
6439
+ };
6440
+ Update: {
6441
+ created_at?: string;
6442
+ id?: string;
6443
+ product_group_id?: string;
6444
+ quantity?: number;
6445
+ trade_item_id?: string;
6446
+ };
6447
+ Relationships: [{
6448
+ foreignKeyName: "product_group_items_product_group_id_fkey";
6449
+ columns: ["product_group_id"];
6450
+ isOneToOne: false;
6451
+ referencedRelation: "product_groups";
6452
+ referencedColumns: ["id"];
6453
+ }];
6454
+ };
6455
+ product_groups: {
6456
+ Row: {
6457
+ created_at: string;
6458
+ description: string | null;
6459
+ id: string;
6460
+ is_active: boolean;
6461
+ name: string;
6462
+ tenant_id: string;
6463
+ updated_at: string;
6464
+ };
6465
+ Insert: {
6466
+ created_at?: string;
6467
+ description?: string | null;
6468
+ id?: string;
6469
+ is_active?: boolean;
6470
+ name: string;
6471
+ tenant_id: string;
6472
+ updated_at?: string;
6473
+ };
6474
+ Update: {
6475
+ created_at?: string;
6476
+ description?: string | null;
6477
+ id?: string;
6478
+ is_active?: boolean;
6479
+ name?: string;
6480
+ tenant_id?: string;
6481
+ updated_at?: string;
6482
+ };
6483
+ Relationships: [];
6484
+ };
6062
6485
  products: {
6063
6486
  Row: {
6064
6487
  barcode: string | null;
@@ -6078,6 +6501,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6078
6501
  purchase_price: number | null;
6079
6502
  quantity: number;
6080
6503
  sale_price: number | null;
6504
+ trade_item_key: string | null;
6081
6505
  unit: string;
6082
6506
  updated_at: string;
6083
6507
  weight: string | null;
@@ -6100,6 +6524,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6100
6524
  purchase_price?: number | null;
6101
6525
  quantity?: number;
6102
6526
  sale_price?: number | null;
6527
+ trade_item_key?: string | null;
6103
6528
  unit?: string;
6104
6529
  updated_at?: string;
6105
6530
  weight?: string | null;
@@ -6122,6 +6547,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6122
6547
  purchase_price?: number | null;
6123
6548
  quantity?: number;
6124
6549
  sale_price?: number | null;
6550
+ trade_item_key?: string | null;
6125
6551
  unit?: string;
6126
6552
  updated_at?: string;
6127
6553
  weight?: string | null;
@@ -6941,6 +7367,60 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6941
7367
  };
6942
7368
  Relationships: [];
6943
7369
  };
7370
+ stock_mutation_log: {
7371
+ Row: {
7372
+ connection_id: string | null;
7373
+ created_at: string;
7374
+ created_by: string | null;
7375
+ id: string;
7376
+ mutation_type: string;
7377
+ order_id: string | null;
7378
+ order_item_id: string | null;
7379
+ order_source: string | null;
7380
+ physical_after: number | null;
7381
+ physical_before: number | null;
7382
+ qty_delta: number;
7383
+ reason: string | null;
7384
+ reserved_after: number | null;
7385
+ reserved_before: number | null;
7386
+ trade_item_key: string;
7387
+ };
7388
+ Insert: {
7389
+ connection_id?: string | null;
7390
+ created_at?: string;
7391
+ created_by?: string | null;
7392
+ id?: string;
7393
+ mutation_type: string;
7394
+ order_id?: string | null;
7395
+ order_item_id?: string | null;
7396
+ order_source?: string | null;
7397
+ physical_after?: number | null;
7398
+ physical_before?: number | null;
7399
+ qty_delta: number;
7400
+ reason?: string | null;
7401
+ reserved_after?: number | null;
7402
+ reserved_before?: number | null;
7403
+ trade_item_key: string;
7404
+ };
7405
+ Update: {
7406
+ connection_id?: string | null;
7407
+ created_at?: string;
7408
+ created_by?: string | null;
7409
+ id?: string;
7410
+ mutation_type?: string;
7411
+ order_id?: string | null;
7412
+ order_item_id?: string | null;
7413
+ order_source?: string | null;
7414
+ physical_after?: number | null;
7415
+ physical_before?: number | null;
7416
+ qty_delta?: number;
7417
+ reason?: string | null;
7418
+ reserved_after?: number | null;
7419
+ reserved_before?: number | null;
7420
+ trade_item_key?: string;
7421
+ };
7422
+ Relationships: [];
7423
+ };
6944
7424
  supplier_products: {
6945
7425
  Row: {
6946
7426
  article_number: string | null;
@@ -7198,7 +7678,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7198
7678
  connection_id: string | null;
7199
7679
  created_at: string;
7200
7680
  data: import("./types").Json;
7681
+ floriday_id: string | null;
7682
+ floriday_link_error: string | null;
7683
+ floriday_link_status: string;
7201
7684
  id: string;
7685
+ last_floriday_sync_at: string | null;
7686
+ missing_required_fields: string[];
7687
+ source: string;
7202
7688
  updated_at: string;
7203
7689
  user_id: string;
7204
7690
  };
@@ -7206,7 +7692,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7206
7692
  connection_id?: string | null;
7207
7693
  created_at?: string;
7208
7694
  data?: import("./types").Json;
7695
+ floriday_id?: string | null;
7696
+ floriday_link_error?: string | null;
7697
+ floriday_link_status?: string;
7209
7698
  id?: string;
7699
+ last_floriday_sync_at?: string | null;
7700
+ missing_required_fields?: string[];
7701
+ source?: string;
7210
7702
  updated_at?: string;
7211
7703
  user_id: string;
7212
7704
  };
@@ -7214,7 +7706,55 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7214
7706
  connection_id?: string | null;
7215
7707
  created_at?: string;
7216
7708
  data?: import("./types").Json;
7709
+ floriday_id?: string | null;
7710
+ floriday_link_error?: string | null;
7711
+ floriday_link_status?: string;
7712
+ id?: string;
7713
+ last_floriday_sync_at?: string | null;
7714
+ missing_required_fields?: string[];
7715
+ source?: string;
7716
+ updated_at?: string;
7717
+ user_id?: string;
7718
+ };
7719
+ Relationships: [];
7720
+ };
7721
+ trade_item_stock: {
7722
+ Row: {
7723
+ connection_id: string;
7724
+ created_at: string;
7725
+ id: string;
7726
+ incoming_stock: number;
7727
+ minimum_stock: number;
7728
+ notes: string | null;
7729
+ physical_stock: number;
7730
+ reserved_stock: number;
7731
+ trade_item_key: string;
7732
+ updated_at: string;
7733
+ user_id: string;
7734
+ };
7735
+ Insert: {
7736
+ connection_id: string;
7737
+ created_at?: string;
7738
+ id?: string;
7739
+ incoming_stock?: number;
7740
+ minimum_stock?: number;
7741
+ notes?: string | null;
7742
+ physical_stock?: number;
7743
+ reserved_stock?: number;
7744
+ trade_item_key: string;
7745
+ updated_at?: string;
7746
+ user_id: string;
7747
+ };
7748
+ Update: {
7749
+ connection_id?: string;
7750
+ created_at?: string;
7217
7751
  id?: string;
7752
+ incoming_stock?: number;
7753
+ minimum_stock?: number;
7754
+ notes?: string | null;
7755
+ physical_stock?: number;
7756
+ reserved_stock?: number;
7757
+ trade_item_key?: string;
7218
7758
  updated_at?: string;
7219
7759
  user_id?: string;
7220
7760
  };
@@ -7564,6 +8104,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7564
8104
  };
7565
8105
  twinfield_invoice_sync_logs: {
7566
8106
  Row: {
8107
+ action_type: string | null;
7567
8108
  created_at: string;
7568
8109
  details: import("./types").Json | null;
7569
8110
  duration_ms: number | null;
@@ -7576,6 +8117,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7576
8117
  user_id: string;
7577
8118
  };
7578
8119
  Insert: {
8120
+ action_type?: string | null;
7579
8121
  created_at?: string;
7580
8122
  details?: import("./types").Json | null;
7581
8123
  duration_ms?: number | null;
@@ -7588,6 +8130,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7588
8130
  user_id: string;
7589
8131
  };
7590
8132
  Update: {
8133
+ action_type?: string | null;
7591
8134
  created_at?: string;
7592
8135
  details?: import("./types").Json | null;
7593
8136
  duration_ms?: number | null;
@@ -7823,6 +8366,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7823
8366
  referencedColumns: ["id"];
7824
8367
  }];
7825
8368
  };
8369
+ twinfield_request_metrics: {
8370
+ Row: {
8371
+ bucket_hour: string;
8372
+ connection_id: string;
8373
+ error_count: number;
8374
+ rate_limited_count: number;
8375
+ request_count: number;
8376
+ updated_at: string;
8377
+ };
8378
+ Insert: {
8379
+ bucket_hour: string;
8380
+ connection_id: string;
8381
+ error_count?: number;
8382
+ rate_limited_count?: number;
8383
+ request_count?: number;
8384
+ updated_at?: string;
8385
+ };
8386
+ Update: {
8387
+ bucket_hour?: string;
8388
+ connection_id?: string;
8389
+ error_count?: number;
8390
+ rate_limited_count?: number;
8391
+ request_count?: number;
8392
+ updated_at?: string;
8393
+ };
8394
+ Relationships: [];
8395
+ };
8396
+ twinfield_session_cache: {
8397
+ Row: {
8398
+ cluster: string;
8399
+ created_at: string;
8400
+ expires_at: string;
8401
+ session_id: string;
8402
+ user_id: string;
8403
+ };
8404
+ Insert: {
8405
+ cluster: string;
8406
+ created_at?: string;
8407
+ expires_at: string;
8408
+ session_id: string;
8409
+ user_id: string;
8410
+ };
8411
+ Update: {
8412
+ cluster?: string;
8413
+ created_at?: string;
8414
+ expires_at?: string;
8415
+ session_id?: string;
8416
+ user_id?: string;
8417
+ };
8418
+ Relationships: [];
8419
+ };
7826
8420
  twinfield_settings: {
7827
8421
  Row: {
7828
8422
  active_environment: string;
@@ -8404,6 +8998,35 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8404
8998
  };
8405
8999
  Relationships: [];
8406
9000
  };
9001
+ manufacture_product_possible_stock_view: {
9002
+ Row: {
9003
+ component_count: number | null;
9004
+ manufacture_product_id: string | null;
9005
+ possible_stock: number | null;
9006
+ };
9007
+ Relationships: [];
9008
+ };
9009
+ product_group_stock_view: {
9010
+ Row: {
9011
+ item_count: number | null;
9012
+ product_group_id: string | null;
9013
+ total_stock: number | null;
9014
+ };
9015
+ Relationships: [{
9016
+ foreignKeyName: "product_group_items_product_group_id_fkey";
9017
+ columns: ["product_group_id"];
9018
+ isOneToOne: false;
9019
+ referencedRelation: "product_groups";
9020
+ referencedColumns: ["id"];
9021
+ }];
9022
+ };
9023
+ trade_item_stock_view: {
9024
+ Row: {
9025
+ stock: number | null;
9026
+ trade_item_id: string | null;
9027
+ };
9028
+ Relationships: [];
9029
+ };
8407
9030
  v_external_customers_exact: {
8408
9031
  Row: {
8409
9032
  account_number: string | null;
@@ -8659,6 +9282,68 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8659
9282
  };
8660
9283
  Returns: number;
8661
9284
  };
9285
+ afh_city_code: {
9286
+ Args: {
9287
+ _city: string;
9288
+ _country: string;
9289
+ };
9290
+ Returns: string;
9291
+ };
9292
+ afh_normalize_country: {
9293
+ Args: {
9294
+ _raw: string;
9295
+ };
9296
+ Returns: string;
9297
+ };
9298
+ afh_normalize_nl_province: {
9299
+ Args: {
9300
+ _raw: string;
9301
+ };
9302
+ Returns: string;
9303
+ };
9304
+ afh_subtract_workdays: {
9305
+ Args: {
9306
+ _date: string;
9307
+ _days: number;
9308
+ };
9309
+ Returns: string;
9310
+ };
9311
+ apply_stock_consumption: {
9312
+ Args: {
9313
+ p_order_id: string;
9314
+ p_order_item_id: string;
9315
+ p_qty: number;
9316
+ p_reason: string;
9317
+ p_source: string;
9318
+ p_trade_item_key: string;
9319
+ };
9320
+ Returns: undefined;
9321
+ };
9322
+ apply_stock_reservation: {
9323
+ Args: {
9324
+ p_order_id: string;
9325
+ p_order_item_id: string;
9326
+ p_qty: number;
9327
+ p_reason: string;
9328
+ p_source: string;
9329
+ p_trade_item_key: string;
9330
+ };
9331
+ Returns: undefined;
9332
+ };
9333
+ assign_cart_numbers: {
9334
+ Args: {
9335
+ p_carts: import("./types").Json;
9336
+ };
9337
+ Returns: {
9338
+ cart_index: number;
9339
+ cart_number: string;
9340
+ day_seq: number;
9341
+ order_id: string;
9342
+ order_source: string;
9343
+ pick_date: string;
9344
+ status: string;
9345
+ }[];
9346
+ };
8662
9347
  assign_floriday_order_numbers: {
8663
9348
  Args: {
8664
9349
  p_ids: string[];
@@ -8668,6 +9353,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8668
9353
  order_number: string;
8669
9354
  }[];
8670
9355
  };
9356
+ backfill_open_order_reservations: {
9357
+ Args: never;
9358
+ Returns: {
9359
+ processed_items: number;
9360
+ }[];
9361
+ };
8671
9362
  call_exact_route: {
8672
9363
  Args: {
8673
9364
  path: string;
@@ -8678,10 +9369,37 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8678
9369
  Args: never;
8679
9370
  Returns: number;
8680
9371
  };
9372
+ control_get_todays_carts: {
9373
+ Args: never;
9374
+ Returns: {
9375
+ cart_index: number;
9376
+ cart_number: string;
9377
+ cart_number_id: string;
9378
+ order_id: string;
9379
+ order_source: string;
9380
+ pick_date: string;
9381
+ status: string;
9382
+ }[];
9383
+ };
9384
+ count_distinct_regulatory_products: {
9385
+ Args: never;
9386
+ Returns: number;
9387
+ };
8681
9388
  current_monteur_id: {
8682
9389
  Args: never;
8683
9390
  Returns: string;
8684
9391
  };
9392
+ dashboard_alert_counts: {
9393
+ Args: never;
9394
+ Returns: import("./types").Json;
9395
+ };
9396
+ dashboard_alert_rows: {
9397
+ Args: {
9398
+ check_id: string;
9399
+ row_limit?: number;
9400
+ };
9401
+ Returns: import("./types").Json;
9402
+ };
8685
9403
  dashboard_list_public_schema: {
8686
9404
  Args: never;
8687
9405
  Returns: {
@@ -8690,6 +9408,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8690
9408
  table_name: string;
8691
9409
  }[];
8692
9410
  };
9411
+ dispatch_carrier_signups_sql: {
9412
+ Args: {
9413
+ _catchup?: string;
9414
+ };
9415
+ Returns: import("./types").Json;
9416
+ };
8693
9417
  email_auth_decrypt: {
8694
9418
  Args: {
8695
9419
  cipher: string;
@@ -8762,6 +9486,19 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8762
9486
  };
8763
9487
  Returns: boolean;
8764
9488
  };
9489
+ find_trade_item_key_by_name: {
9490
+ Args: {
9491
+ p_name: string;
9492
+ };
9493
+ Returns: string;
9494
+ };
9495
+ format_cart_number: {
9496
+ Args: {
9497
+ p_pick_date: string;
9498
+ p_seq: number;
9499
+ };
9500
+ Returns: string;
9501
+ };
8765
9502
  get_active_floriday_connection_public: {
8766
9503
  Args: never;
8767
9504
  Returns: {
@@ -8966,14 +9703,29 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8966
9703
  };
8967
9704
  Returns: undefined;
8968
9705
  };
9706
+ pickstation_set_cart_status: {
9707
+ Args: {
9708
+ p_cart_index: number;
9709
+ p_order_id: string;
9710
+ p_order_source: string;
9711
+ p_status: string;
9712
+ };
9713
+ Returns: undefined;
9714
+ };
8969
9715
  refresh_floricode_derived_code_lists: {
8970
9716
  Args: never;
8971
9717
  Returns: {
8972
- out_environment: string;
8973
- out_list_name: string;
8974
- out_row_count: number;
9718
+ environment: string;
9719
+ list_name: string;
9720
+ row_count: number;
8975
9721
  }[];
8976
9722
  };
9723
+ refresh_floricode_derived_for_product: {
9724
+ Args: {
9725
+ p_product_code: string;
9726
+ };
9727
+ Returns: number;
9728
+ };
8977
9729
  reset_floriday_sync_cursor: {
8978
9730
  Args: {
8979
9731
  p_connection_id: string;