@flowselections/floriday-verkoop-module 1.0.9 → 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 (31) hide show
  1. package/dist-lib/components/verkoop/AnalyticsCards.d.ts +1 -1
  2. package/dist-lib/components/verkoop/AnalyticsCards.d.ts.map +1 -1
  3. package/dist-lib/components/verkoop/AnalyticsCards.js +1 -7
  4. package/dist-lib/components/verkoop/SalesOrderDetailView.d.ts.map +1 -1
  5. package/dist-lib/components/verkoop/SalesOrderDetailView.js +1 -1
  6. package/dist-lib/components/verkoop/SalesOrdersTable.d.ts.map +1 -1
  7. package/dist-lib/components/verkoop/SalesOrdersTable.js +19 -39
  8. package/dist-lib/integrations/supabase/auth-middleware.d.ts +781 -0
  9. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  10. package/dist-lib/integrations/supabase/client.d.ts +781 -0
  11. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  12. package/dist-lib/integrations/supabase/client.server.d.ts +781 -0
  13. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  14. package/dist-lib/integrations/supabase/types.d.ts +791 -0
  15. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  16. package/dist-lib/lib/floriday-gateway.server.d.ts.map +1 -1
  17. package/dist-lib/lib/floriday-gateway.server.js +12 -17
  18. package/dist-lib/lib/floriday-public.functions.d.ts +5587 -120
  19. package/dist-lib/lib/floriday-public.functions.d.ts.map +1 -1
  20. package/dist-lib/lib/floriday-writes.functions.d.ts +3965 -60
  21. package/dist-lib/lib/floriday-writes.functions.d.ts.map +1 -1
  22. package/dist-lib/lib/salesorders-mapping.d.ts +4 -0
  23. package/dist-lib/lib/salesorders-mapping.d.ts.map +1 -1
  24. package/dist-lib/lib/salesorders-mapping.js +14 -3
  25. package/dist-lib/lib/salesorders.functions.d.ts +2381 -38
  26. package/dist-lib/lib/salesorders.functions.d.ts.map +1 -1
  27. package/dist-lib/lib/tradeitems.functions.d.ts +781 -0
  28. package/dist-lib/lib/tradeitems.functions.d.ts.map +1 -1
  29. package/dist-lib/lib/useSalesOrdersQuery.d.ts.map +1 -1
  30. package/dist-lib/lib/useSalesOrdersQuery.js +157 -24
  31. package/package.json +2 -2
@@ -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;
@@ -2642,6 +2912,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2642
2912
  created_at: string;
2643
2913
  exact_article_id: string | null;
2644
2914
  id: string;
2915
+ image_url: string | null;
2645
2916
  is_active: boolean;
2646
2917
  name: string;
2647
2918
  price: number;
@@ -2652,6 +2923,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2652
2923
  created_at?: string;
2653
2924
  exact_article_id?: string | null;
2654
2925
  id?: string;
2926
+ image_url?: string | null;
2655
2927
  is_active?: boolean;
2656
2928
  name: string;
2657
2929
  price?: number;
@@ -2662,6 +2934,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2662
2934
  created_at?: string;
2663
2935
  exact_article_id?: string | null;
2664
2936
  id?: string;
2937
+ image_url?: string | null;
2665
2938
  is_active?: boolean;
2666
2939
  name?: string;
2667
2940
  price?: number;
@@ -2731,6 +3004,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2731
3004
  };
2732
3005
  floricode_sync_state: {
2733
3006
  Row: {
3007
+ cursor_skip: number;
2734
3008
  error_message: string | null;
2735
3009
  last_change_date_time: string | null;
2736
3010
  last_sequence_number: number;
@@ -2740,6 +3014,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2740
3014
  updated_at: string;
2741
3015
  };
2742
3016
  Insert: {
3017
+ cursor_skip?: number;
2743
3018
  error_message?: string | null;
2744
3019
  last_change_date_time?: string | null;
2745
3020
  last_sequence_number?: number;
@@ -2749,6 +3024,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
2749
3024
  updated_at?: string;
2750
3025
  };
2751
3026
  Update: {
3027
+ cursor_skip?: number;
2752
3028
  error_message?: string | null;
2753
3029
  last_change_date_time?: string | null;
2754
3030
  last_sequence_number?: number;
@@ -3896,6 +4172,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
3896
4172
  };
3897
4173
  Relationships: [];
3898
4174
  };
4175
+ floriday_order_number_map: {
4176
+ Row: {
4177
+ created_at: string;
4178
+ floriday_id: string;
4179
+ order_number: string;
4180
+ };
4181
+ Insert: {
4182
+ created_at?: string;
4183
+ floriday_id: string;
4184
+ order_number: string;
4185
+ };
4186
+ Update: {
4187
+ created_at?: string;
4188
+ floriday_id?: string;
4189
+ order_number?: string;
4190
+ };
4191
+ Relationships: [];
4192
+ };
3899
4193
  floriday_packings_cache: {
3900
4194
  Row: {
3901
4195
  connection_id: string;
@@ -5078,6 +5372,93 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5078
5372
  };
5079
5373
  Relationships: [];
5080
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
+ };
5081
5462
  monteurs: {
5082
5463
  Row: {
5083
5464
  avatar_url: string | null;
@@ -5741,6 +6122,24 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5741
6122
  referencedColumns: ["id"];
5742
6123
  }];
5743
6124
  };
6125
+ order_number_counters: {
6126
+ Row: {
6127
+ last_value: number;
6128
+ updated_at: string;
6129
+ year: number;
6130
+ };
6131
+ Insert: {
6132
+ last_value?: number;
6133
+ updated_at?: string;
6134
+ year: number;
6135
+ };
6136
+ Update: {
6137
+ last_value?: number;
6138
+ updated_at?: string;
6139
+ year?: number;
6140
+ };
6141
+ Relationships: [];
6142
+ };
5744
6143
  orders: {
5745
6144
  Row: {
5746
6145
  created_at: string;
@@ -5753,6 +6152,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5753
6152
  notes: string | null;
5754
6153
  order_date: string;
5755
6154
  order_number: string;
6155
+ order_source: string;
5756
6156
  status: string;
5757
6157
  total: string;
5758
6158
  updated_at: string;
@@ -5768,6 +6168,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5768
6168
  notes?: string | null;
5769
6169
  order_date?: string;
5770
6170
  order_number: string;
6171
+ order_source?: string;
5771
6172
  status?: string;
5772
6173
  total?: string;
5773
6174
  updated_at?: string;
@@ -5783,6 +6184,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
5783
6184
  notes?: string | null;
5784
6185
  order_date?: string;
5785
6186
  order_number?: string;
6187
+ order_source?: string;
5786
6188
  status?: string;
5787
6189
  total?: string;
5788
6190
  updated_at?: string;
@@ -6017,6 +6419,66 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
6017
6419
  };
6018
6420
  Relationships: [];
6019
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
+ };
6020
6482
  products: {
6021
6483
  Row: {
6022
6484
  barcode: string | null;
@@ -7156,7 +7618,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7156
7618
  connection_id: string | null;
7157
7619
  created_at: string;
7158
7620
  data: import("./types").Json;
7621
+ floriday_id: string | null;
7622
+ floriday_link_error: string | null;
7623
+ floriday_link_status: string;
7159
7624
  id: string;
7625
+ last_floriday_sync_at: string | null;
7626
+ missing_required_fields: string[];
7627
+ source: string;
7160
7628
  updated_at: string;
7161
7629
  user_id: string;
7162
7630
  };
@@ -7164,7 +7632,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7164
7632
  connection_id?: string | null;
7165
7633
  created_at?: string;
7166
7634
  data?: import("./types").Json;
7635
+ floriday_id?: string | null;
7636
+ floriday_link_error?: string | null;
7637
+ floriday_link_status?: string;
7167
7638
  id?: string;
7639
+ last_floriday_sync_at?: string | null;
7640
+ missing_required_fields?: string[];
7641
+ source?: string;
7168
7642
  updated_at?: string;
7169
7643
  user_id: string;
7170
7644
  };
@@ -7172,7 +7646,55 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7172
7646
  connection_id?: string | null;
7173
7647
  created_at?: string;
7174
7648
  data?: import("./types").Json;
7649
+ floriday_id?: string | null;
7650
+ floriday_link_error?: string | null;
7651
+ floriday_link_status?: string;
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;
7175
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;
7176
7698
  updated_at?: string;
7177
7699
  user_id?: string;
7178
7700
  };
@@ -7522,6 +8044,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7522
8044
  };
7523
8045
  twinfield_invoice_sync_logs: {
7524
8046
  Row: {
8047
+ action_type: string | null;
7525
8048
  created_at: string;
7526
8049
  details: import("./types").Json | null;
7527
8050
  duration_ms: number | null;
@@ -7534,6 +8057,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7534
8057
  user_id: string;
7535
8058
  };
7536
8059
  Insert: {
8060
+ action_type?: string | null;
7537
8061
  created_at?: string;
7538
8062
  details?: import("./types").Json | null;
7539
8063
  duration_ms?: number | null;
@@ -7546,6 +8070,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7546
8070
  user_id: string;
7547
8071
  };
7548
8072
  Update: {
8073
+ action_type?: string | null;
7549
8074
  created_at?: string;
7550
8075
  details?: import("./types").Json | null;
7551
8076
  duration_ms?: number | null;
@@ -7781,6 +8306,57 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7781
8306
  referencedColumns: ["id"];
7782
8307
  }];
7783
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
+ };
7784
8360
  twinfield_settings: {
7785
8361
  Row: {
7786
8362
  active_environment: string;
@@ -7892,6 +8468,72 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
7892
8468
  referencedColumns: ["id"];
7893
8469
  }];
7894
8470
  };
8471
+ voorraad_media_upload_failures: {
8472
+ Row: {
8473
+ action: string;
8474
+ attempt_number: number;
8475
+ caller: string;
8476
+ client_user_id: string | null;
8477
+ content_type: string | null;
8478
+ created_at: string;
8479
+ environment: string;
8480
+ error_message: string | null;
8481
+ filename: string | null;
8482
+ id: string;
8483
+ idempotency_key: string | null;
8484
+ module: string;
8485
+ path: string;
8486
+ reference_id: string | null;
8487
+ request_body_hash: string | null;
8488
+ request_timestamp: number | null;
8489
+ response_content_type: string | null;
8490
+ response_status: number | null;
8491
+ size_bytes: number | null;
8492
+ };
8493
+ Insert: {
8494
+ action?: string;
8495
+ attempt_number?: number;
8496
+ caller?: string;
8497
+ client_user_id?: string | null;
8498
+ content_type?: string | null;
8499
+ created_at?: string;
8500
+ environment: string;
8501
+ error_message?: string | null;
8502
+ filename?: string | null;
8503
+ id?: string;
8504
+ idempotency_key?: string | null;
8505
+ module?: string;
8506
+ path: string;
8507
+ reference_id?: string | null;
8508
+ request_body_hash?: string | null;
8509
+ request_timestamp?: number | null;
8510
+ response_content_type?: string | null;
8511
+ response_status?: number | null;
8512
+ size_bytes?: number | null;
8513
+ };
8514
+ Update: {
8515
+ action?: string;
8516
+ attempt_number?: number;
8517
+ caller?: string;
8518
+ client_user_id?: string | null;
8519
+ content_type?: string | null;
8520
+ created_at?: string;
8521
+ environment?: string;
8522
+ error_message?: string | null;
8523
+ filename?: string | null;
8524
+ id?: string;
8525
+ idempotency_key?: string | null;
8526
+ module?: string;
8527
+ path?: string;
8528
+ reference_id?: string | null;
8529
+ request_body_hash?: string | null;
8530
+ request_timestamp?: number | null;
8531
+ response_content_type?: string | null;
8532
+ response_status?: number | null;
8533
+ size_bytes?: number | null;
8534
+ };
8535
+ Relationships: [];
8536
+ };
7895
8537
  voorraad_publish_attempts: {
7896
8538
  Row: {
7897
8539
  action: string;
@@ -8296,6 +8938,35 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8296
8938
  };
8297
8939
  Relationships: [];
8298
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
+ };
8299
8970
  v_external_customers_exact: {
8300
8971
  Row: {
8301
8972
  account_number: string | null;
@@ -8551,6 +9222,29 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8551
9222
  };
8552
9223
  Returns: number;
8553
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
+ };
9239
+ assign_floriday_order_numbers: {
9240
+ Args: {
9241
+ p_ids: string[];
9242
+ };
9243
+ Returns: {
9244
+ floriday_id: string;
9245
+ order_number: string;
9246
+ }[];
9247
+ };
8554
9248
  call_exact_route: {
8555
9249
  Args: {
8556
9250
  path: string;
@@ -8561,10 +9255,37 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8561
9255
  Args: never;
8562
9256
  Returns: number;
8563
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
+ };
8564
9274
  current_monteur_id: {
8565
9275
  Args: never;
8566
9276
  Returns: string;
8567
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
+ };
8568
9289
  dashboard_list_public_schema: {
8569
9290
  Args: never;
8570
9291
  Returns: {
@@ -8645,6 +9366,13 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8645
9366
  };
8646
9367
  Returns: boolean;
8647
9368
  };
9369
+ format_cart_number: {
9370
+ Args: {
9371
+ p_pick_date: string;
9372
+ p_seq: number;
9373
+ };
9374
+ Returns: string;
9375
+ };
8648
9376
  get_active_floriday_connection_public: {
8649
9377
  Args: never;
8650
9378
  Returns: {
@@ -8760,6 +9488,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8760
9488
  };
8761
9489
  Returns: import("./types").Json;
8762
9490
  };
9491
+ get_or_assign_floriday_order_number: {
9492
+ Args: {
9493
+ p_floriday_id: string;
9494
+ };
9495
+ Returns: string;
9496
+ };
8763
9497
  get_room_busy_windows: {
8764
9498
  Args: {
8765
9499
  p_from: string;
@@ -8806,6 +9540,12 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8806
9540
  Args: never;
8807
9541
  Returns: boolean;
8808
9542
  };
9543
+ next_order_number: {
9544
+ Args: {
9545
+ p_prefix: string;
9546
+ };
9547
+ Returns: string;
9548
+ };
8809
9549
  next_work_order_number: {
8810
9550
  Args: {
8811
9551
  p_parent_work_order_id?: string;
@@ -8819,6 +9559,47 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
8819
9559
  };
8820
9560
  Returns: string;
8821
9561
  };
9562
+ pickstation_get_orders_raw: {
9563
+ Args: never;
9564
+ Returns: import("./types").Json;
9565
+ };
9566
+ pickstation_get_settings: {
9567
+ Args: never;
9568
+ Returns: import("./types").Json;
9569
+ };
9570
+ pickstation_log_print: {
9571
+ Args: {
9572
+ p_customer_name: string;
9573
+ p_documents: string[];
9574
+ p_ip_address: string;
9575
+ p_order_id: string;
9576
+ p_order_number: string;
9577
+ };
9578
+ Returns: undefined;
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
+ };
9589
+ refresh_floricode_derived_code_lists: {
9590
+ Args: never;
9591
+ Returns: {
9592
+ environment: string;
9593
+ list_name: string;
9594
+ row_count: number;
9595
+ }[];
9596
+ };
9597
+ refresh_floricode_derived_for_product: {
9598
+ Args: {
9599
+ p_product_code: string;
9600
+ };
9601
+ Returns: number;
9602
+ };
8822
9603
  reset_floriday_sync_cursor: {
8823
9604
  Args: {
8824
9605
  p_connection_id: string;