@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
@@ -8,6 +8,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8
8
  max_workdays_earlier_pick: number;
9
9
  pick_days_before_transport: number;
10
10
  pick_distribution_enabled: boolean;
11
+ pick_weekdays: number[];
11
12
  signup_mail_enabled: boolean;
12
13
  signup_mail_lead_minutes: number;
13
14
  signup_mail_purpose: string;
@@ -21,6 +22,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
21
22
  max_workdays_earlier_pick?: number;
22
23
  pick_days_before_transport?: number;
23
24
  pick_distribution_enabled?: boolean;
25
+ pick_weekdays?: number[];
24
26
  signup_mail_enabled?: boolean;
25
27
  signup_mail_lead_minutes?: number;
26
28
  signup_mail_purpose?: string;
@@ -34,6 +36,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
34
36
  max_workdays_earlier_pick?: number;
35
37
  pick_days_before_transport?: number;
36
38
  pick_distribution_enabled?: boolean;
39
+ pick_weekdays?: number[];
37
40
  signup_mail_enabled?: boolean;
38
41
  signup_mail_lead_minutes?: number;
39
42
  signup_mail_purpose?: string;
@@ -445,6 +448,48 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
445
448
  referencedColumns: ["id"];
446
449
  }];
447
450
  };
451
+ carrier_signup_dispatch_runs: {
452
+ Row: {
453
+ detail: import("./types").Json | null;
454
+ error: string | null;
455
+ finished_at: string | null;
456
+ groups: number;
457
+ id: string;
458
+ ok: boolean;
459
+ reason: string | null;
460
+ sent: number;
461
+ skipped: import("./types").Json;
462
+ started_at: string;
463
+ unassigned: import("./types").Json;
464
+ };
465
+ Insert: {
466
+ detail?: import("./types").Json | null;
467
+ error?: string | null;
468
+ finished_at?: string | null;
469
+ groups?: number;
470
+ id?: string;
471
+ ok?: boolean;
472
+ reason?: string | null;
473
+ sent?: number;
474
+ skipped?: import("./types").Json;
475
+ started_at?: string;
476
+ unassigned?: import("./types").Json;
477
+ };
478
+ Update: {
479
+ detail?: import("./types").Json | null;
480
+ error?: string | null;
481
+ finished_at?: string | null;
482
+ groups?: number;
483
+ id?: string;
484
+ ok?: boolean;
485
+ reason?: string | null;
486
+ sent?: number;
487
+ skipped?: import("./types").Json;
488
+ started_at?: string;
489
+ unassigned?: import("./types").Json;
490
+ };
491
+ Relationships: [];
492
+ };
448
493
  carrier_signup_dispatches: {
449
494
  Row: {
450
495
  carrier_id: string;
@@ -496,6 +541,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
496
541
  contact_person: string | null;
497
542
  created_at: string;
498
543
  delivery_days: number | null;
544
+ delivery_weekdays: number[];
499
545
  email: string | null;
500
546
  id: string;
501
547
  is_default: boolean;
@@ -503,6 +549,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
503
549
  notes: string | null;
504
550
  phone: string | null;
505
551
  pickup_moments: import("./types").Json;
552
+ pickup_weekdays: number[];
506
553
  service_cities: string[];
507
554
  service_countries: string[];
508
555
  service_provinces: string[];
@@ -518,6 +565,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
518
565
  contact_person?: string | null;
519
566
  created_at?: string;
520
567
  delivery_days?: number | null;
568
+ delivery_weekdays?: number[];
521
569
  email?: string | null;
522
570
  id?: string;
523
571
  is_default?: boolean;
@@ -525,6 +573,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
525
573
  notes?: string | null;
526
574
  phone?: string | null;
527
575
  pickup_moments?: import("./types").Json;
576
+ pickup_weekdays?: number[];
528
577
  service_cities?: string[];
529
578
  service_countries?: string[];
530
579
  service_provinces?: string[];
@@ -540,6 +589,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
540
589
  contact_person?: string | null;
541
590
  created_at?: string;
542
591
  delivery_days?: number | null;
592
+ delivery_weekdays?: number[];
543
593
  email?: string | null;
544
594
  id?: string;
545
595
  is_default?: boolean;
@@ -547,6 +597,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
547
597
  notes?: string | null;
548
598
  phone?: string | null;
549
599
  pickup_moments?: import("./types").Json;
600
+ pickup_weekdays?: number[];
550
601
  service_cities?: string[];
551
602
  service_countries?: string[];
552
603
  service_provinces?: string[];
@@ -559,6 +610,177 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
559
610
  };
560
611
  Relationships: [];
561
612
  };
613
+ cart_control_draft: {
614
+ Row: {
615
+ cart_states: import("./types").Json;
616
+ checked_keys: import("./types").Json;
617
+ draft_date: string;
618
+ form_state: import("./types").Json;
619
+ notes: string;
620
+ updated_at: string;
621
+ user_id: string;
622
+ };
623
+ Insert: {
624
+ cart_states?: import("./types").Json;
625
+ checked_keys?: import("./types").Json;
626
+ draft_date: string;
627
+ form_state?: import("./types").Json;
628
+ notes?: string;
629
+ updated_at?: string;
630
+ user_id: string;
631
+ };
632
+ Update: {
633
+ cart_states?: import("./types").Json;
634
+ checked_keys?: import("./types").Json;
635
+ draft_date?: string;
636
+ form_state?: import("./types").Json;
637
+ notes?: string;
638
+ updated_at?: string;
639
+ user_id?: string;
640
+ };
641
+ Relationships: [];
642
+ };
643
+ cart_control_items: {
644
+ Row: {
645
+ action: string;
646
+ block_reason: string | null;
647
+ carrier_name: string | null;
648
+ cart_index: number;
649
+ cart_number_id: string | null;
650
+ cart_number_label: string | null;
651
+ created_at: string;
652
+ customer_name: string | null;
653
+ delivery_date: string | null;
654
+ id: string;
655
+ new_pick_date: string | null;
656
+ order_id: string;
657
+ order_number: string | null;
658
+ order_source: string;
659
+ pickup_date: string | null;
660
+ session_id: string;
661
+ };
662
+ Insert: {
663
+ action: string;
664
+ block_reason?: string | null;
665
+ carrier_name?: string | null;
666
+ cart_index: number;
667
+ cart_number_id?: string | null;
668
+ cart_number_label?: string | null;
669
+ created_at?: string;
670
+ customer_name?: string | null;
671
+ delivery_date?: string | null;
672
+ id?: string;
673
+ new_pick_date?: string | null;
674
+ order_id: string;
675
+ order_number?: string | null;
676
+ order_source: string;
677
+ pickup_date?: string | null;
678
+ session_id: string;
679
+ };
680
+ Update: {
681
+ action?: string;
682
+ block_reason?: string | null;
683
+ carrier_name?: string | null;
684
+ cart_index?: number;
685
+ cart_number_id?: string | null;
686
+ cart_number_label?: string | null;
687
+ created_at?: string;
688
+ customer_name?: string | null;
689
+ delivery_date?: string | null;
690
+ id?: string;
691
+ new_pick_date?: string | null;
692
+ order_id?: string;
693
+ order_number?: string | null;
694
+ order_source?: string;
695
+ pickup_date?: string | null;
696
+ session_id?: string;
697
+ };
698
+ Relationships: [{
699
+ foreignKeyName: "cart_control_items_session_id_fkey";
700
+ columns: ["session_id"];
701
+ isOneToOne: false;
702
+ referencedRelation: "cart_control_sessions";
703
+ referencedColumns: ["id"];
704
+ }];
705
+ };
706
+ cart_control_sessions: {
707
+ Row: {
708
+ blocked_count: number;
709
+ checked_count: number;
710
+ control_date: string;
711
+ created_at: string;
712
+ id: string;
713
+ notes: string | null;
714
+ performed_at: string;
715
+ rescheduled_count: number;
716
+ total_carts: number;
717
+ updated_at: string;
718
+ user_id: string;
719
+ };
720
+ Insert: {
721
+ blocked_count?: number;
722
+ checked_count?: number;
723
+ control_date?: string;
724
+ created_at?: string;
725
+ id?: string;
726
+ notes?: string | null;
727
+ performed_at?: string;
728
+ rescheduled_count?: number;
729
+ total_carts?: number;
730
+ updated_at?: string;
731
+ user_id: string;
732
+ };
733
+ Update: {
734
+ blocked_count?: number;
735
+ checked_count?: number;
736
+ control_date?: string;
737
+ created_at?: string;
738
+ id?: string;
739
+ notes?: string | null;
740
+ performed_at?: string;
741
+ rescheduled_count?: number;
742
+ total_carts?: number;
743
+ updated_at?: string;
744
+ user_id?: string;
745
+ };
746
+ Relationships: [];
747
+ };
748
+ cart_numbers: {
749
+ Row: {
750
+ assigned_at: string;
751
+ cart_index: number;
752
+ cart_number: string;
753
+ day_seq: number;
754
+ id: string;
755
+ order_id: string;
756
+ order_source: string;
757
+ pick_date: string;
758
+ status: string;
759
+ };
760
+ Insert: {
761
+ assigned_at?: string;
762
+ cart_index: number;
763
+ cart_number: string;
764
+ day_seq: number;
765
+ id?: string;
766
+ order_id: string;
767
+ order_source: string;
768
+ pick_date: string;
769
+ status?: string;
770
+ };
771
+ Update: {
772
+ assigned_at?: string;
773
+ cart_index?: number;
774
+ cart_number?: string;
775
+ day_seq?: number;
776
+ id?: string;
777
+ order_id?: string;
778
+ order_source?: string;
779
+ pick_date?: string;
780
+ status?: string;
781
+ };
782
+ Relationships: [];
783
+ };
562
784
  cart_pick_overrides: {
563
785
  Row: {
564
786
  cart_index: number;
@@ -1231,6 +1453,54 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
1231
1453
  referencedColumns: ["id"];
1232
1454
  }];
1233
1455
  };
1456
+ dashboard_critical_alerts: {
1457
+ Row: {
1458
+ alert_key: string;
1459
+ alert_type: string;
1460
+ created_at: string;
1461
+ description: string | null;
1462
+ id: string;
1463
+ metadata: import("./types").Json | null;
1464
+ priority: string;
1465
+ raised_at: string;
1466
+ related_cart_ids: string[] | null;
1467
+ resolved_at: string | null;
1468
+ title: string;
1469
+ updated_at: string;
1470
+ user_id: string;
1471
+ };
1472
+ Insert: {
1473
+ alert_key: string;
1474
+ alert_type: string;
1475
+ created_at?: string;
1476
+ description?: string | null;
1477
+ id?: string;
1478
+ metadata?: import("./types").Json | null;
1479
+ priority?: string;
1480
+ raised_at?: string;
1481
+ related_cart_ids?: string[] | null;
1482
+ resolved_at?: string | null;
1483
+ title: string;
1484
+ updated_at?: string;
1485
+ user_id: string;
1486
+ };
1487
+ Update: {
1488
+ alert_key?: string;
1489
+ alert_type?: string;
1490
+ created_at?: string;
1491
+ description?: string | null;
1492
+ id?: string;
1493
+ metadata?: import("./types").Json | null;
1494
+ priority?: string;
1495
+ raised_at?: string;
1496
+ related_cart_ids?: string[] | null;
1497
+ resolved_at?: string | null;
1498
+ title?: string;
1499
+ updated_at?: string;
1500
+ user_id?: string;
1501
+ };
1502
+ Relationships: [];
1503
+ };
1234
1504
  dashboard_daily_reports: {
1235
1505
  Row: {
1236
1506
  created_at: string;
@@ -2641,6 +2911,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2641
2911
  created_at: string;
2642
2912
  exact_article_id: string | null;
2643
2913
  id: string;
2914
+ image_url: string | null;
2644
2915
  is_active: boolean;
2645
2916
  name: string;
2646
2917
  price: number;
@@ -2651,6 +2922,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2651
2922
  created_at?: string;
2652
2923
  exact_article_id?: string | null;
2653
2924
  id?: string;
2925
+ image_url?: string | null;
2654
2926
  is_active?: boolean;
2655
2927
  name: string;
2656
2928
  price?: number;
@@ -2661,6 +2933,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2661
2933
  created_at?: string;
2662
2934
  exact_article_id?: string | null;
2663
2935
  id?: string;
2936
+ image_url?: string | null;
2664
2937
  is_active?: boolean;
2665
2938
  name?: string;
2666
2939
  price?: number;
@@ -2730,6 +3003,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2730
3003
  };
2731
3004
  floricode_sync_state: {
2732
3005
  Row: {
3006
+ cursor_skip: number;
2733
3007
  error_message: string | null;
2734
3008
  last_change_date_time: string | null;
2735
3009
  last_sequence_number: number;
@@ -2739,6 +3013,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2739
3013
  updated_at: string;
2740
3014
  };
2741
3015
  Insert: {
3016
+ cursor_skip?: number;
2742
3017
  error_message?: string | null;
2743
3018
  last_change_date_time?: string | null;
2744
3019
  last_sequence_number?: number;
@@ -2748,6 +3023,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
2748
3023
  updated_at?: string;
2749
3024
  };
2750
3025
  Update: {
3026
+ cursor_skip?: number;
2751
3027
  error_message?: string | null;
2752
3028
  last_change_date_time?: string | null;
2753
3029
  last_sequence_number?: number;
@@ -3895,6 +4171,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
3895
4171
  };
3896
4172
  Relationships: [];
3897
4173
  };
4174
+ floriday_order_number_map: {
4175
+ Row: {
4176
+ created_at: string;
4177
+ floriday_id: string;
4178
+ order_number: string;
4179
+ };
4180
+ Insert: {
4181
+ created_at?: string;
4182
+ floriday_id: string;
4183
+ order_number: string;
4184
+ };
4185
+ Update: {
4186
+ created_at?: string;
4187
+ floriday_id?: string;
4188
+ order_number?: string;
4189
+ };
4190
+ Relationships: [];
4191
+ };
3898
4192
  floriday_packings_cache: {
3899
4193
  Row: {
3900
4194
  connection_id: string;
@@ -5077,6 +5371,93 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5077
5371
  };
5078
5372
  Relationships: [];
5079
5373
  };
5374
+ manufacture_product_components: {
5375
+ Row: {
5376
+ component_type: string;
5377
+ created_at: string;
5378
+ id: string;
5379
+ manufacture_product_id: string;
5380
+ product_group_id: string | null;
5381
+ quantity: number;
5382
+ trade_item_id: string | null;
5383
+ unit: string;
5384
+ };
5385
+ Insert: {
5386
+ component_type: string;
5387
+ created_at?: string;
5388
+ id?: string;
5389
+ manufacture_product_id: string;
5390
+ product_group_id?: string | null;
5391
+ quantity?: number;
5392
+ trade_item_id?: string | null;
5393
+ unit?: string;
5394
+ };
5395
+ Update: {
5396
+ component_type?: string;
5397
+ created_at?: string;
5398
+ id?: string;
5399
+ manufacture_product_id?: string;
5400
+ product_group_id?: string | null;
5401
+ quantity?: number;
5402
+ trade_item_id?: string | null;
5403
+ unit?: string;
5404
+ };
5405
+ Relationships: [{
5406
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5407
+ columns: ["manufacture_product_id"];
5408
+ isOneToOne: false;
5409
+ referencedRelation: "manufacture_product_possible_stock_view";
5410
+ referencedColumns: ["manufacture_product_id"];
5411
+ }, {
5412
+ foreignKeyName: "manufacture_product_components_manufacture_product_id_fkey";
5413
+ columns: ["manufacture_product_id"];
5414
+ isOneToOne: false;
5415
+ referencedRelation: "manufacture_products";
5416
+ referencedColumns: ["id"];
5417
+ }, {
5418
+ foreignKeyName: "manufacture_product_components_product_group_id_fkey";
5419
+ columns: ["product_group_id"];
5420
+ isOneToOne: false;
5421
+ referencedRelation: "product_groups";
5422
+ referencedColumns: ["id"];
5423
+ }];
5424
+ };
5425
+ manufacture_products: {
5426
+ Row: {
5427
+ created_at: string;
5428
+ description: string | null;
5429
+ id: string;
5430
+ is_active: boolean;
5431
+ name: string;
5432
+ produced_stock: number;
5433
+ product_code: string;
5434
+ tenant_id: string;
5435
+ updated_at: string;
5436
+ };
5437
+ Insert: {
5438
+ created_at?: string;
5439
+ description?: string | null;
5440
+ id?: string;
5441
+ is_active?: boolean;
5442
+ name: string;
5443
+ produced_stock?: number;
5444
+ product_code: string;
5445
+ tenant_id: string;
5446
+ updated_at?: string;
5447
+ };
5448
+ Update: {
5449
+ created_at?: string;
5450
+ description?: string | null;
5451
+ id?: string;
5452
+ is_active?: boolean;
5453
+ name?: string;
5454
+ produced_stock?: number;
5455
+ product_code?: string;
5456
+ tenant_id?: string;
5457
+ updated_at?: string;
5458
+ };
5459
+ Relationships: [];
5460
+ };
5080
5461
  monteurs: {
5081
5462
  Row: {
5082
5463
  avatar_url: string | null;
@@ -5740,6 +6121,24 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5740
6121
  referencedColumns: ["id"];
5741
6122
  }];
5742
6123
  };
6124
+ order_number_counters: {
6125
+ Row: {
6126
+ last_value: number;
6127
+ updated_at: string;
6128
+ year: number;
6129
+ };
6130
+ Insert: {
6131
+ last_value?: number;
6132
+ updated_at?: string;
6133
+ year: number;
6134
+ };
6135
+ Update: {
6136
+ last_value?: number;
6137
+ updated_at?: string;
6138
+ year?: number;
6139
+ };
6140
+ Relationships: [];
6141
+ };
5743
6142
  orders: {
5744
6143
  Row: {
5745
6144
  created_at: string;
@@ -5752,6 +6151,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5752
6151
  notes: string | null;
5753
6152
  order_date: string;
5754
6153
  order_number: string;
6154
+ order_source: string;
5755
6155
  status: string;
5756
6156
  total: string;
5757
6157
  updated_at: string;
@@ -5767,6 +6167,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5767
6167
  notes?: string | null;
5768
6168
  order_date?: string;
5769
6169
  order_number: string;
6170
+ order_source?: string;
5770
6171
  status?: string;
5771
6172
  total?: string;
5772
6173
  updated_at?: string;
@@ -5782,6 +6183,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
5782
6183
  notes?: string | null;
5783
6184
  order_date?: string;
5784
6185
  order_number?: string;
6186
+ order_source?: string;
5785
6187
  status?: string;
5786
6188
  total?: string;
5787
6189
  updated_at?: string;
@@ -6016,6 +6418,66 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
6016
6418
  };
6017
6419
  Relationships: [];
6018
6420
  };
6421
+ product_group_items: {
6422
+ Row: {
6423
+ created_at: string;
6424
+ id: string;
6425
+ product_group_id: string;
6426
+ quantity: number;
6427
+ trade_item_id: string;
6428
+ };
6429
+ Insert: {
6430
+ created_at?: string;
6431
+ id?: string;
6432
+ product_group_id: string;
6433
+ quantity?: number;
6434
+ trade_item_id: string;
6435
+ };
6436
+ Update: {
6437
+ created_at?: string;
6438
+ id?: string;
6439
+ product_group_id?: string;
6440
+ quantity?: number;
6441
+ trade_item_id?: string;
6442
+ };
6443
+ Relationships: [{
6444
+ foreignKeyName: "product_group_items_product_group_id_fkey";
6445
+ columns: ["product_group_id"];
6446
+ isOneToOne: false;
6447
+ referencedRelation: "product_groups";
6448
+ referencedColumns: ["id"];
6449
+ }];
6450
+ };
6451
+ product_groups: {
6452
+ Row: {
6453
+ created_at: string;
6454
+ description: string | null;
6455
+ id: string;
6456
+ is_active: boolean;
6457
+ name: string;
6458
+ tenant_id: string;
6459
+ updated_at: string;
6460
+ };
6461
+ Insert: {
6462
+ created_at?: string;
6463
+ description?: string | null;
6464
+ id?: string;
6465
+ is_active?: boolean;
6466
+ name: string;
6467
+ tenant_id: string;
6468
+ updated_at?: string;
6469
+ };
6470
+ Update: {
6471
+ created_at?: string;
6472
+ description?: string | null;
6473
+ id?: string;
6474
+ is_active?: boolean;
6475
+ name?: string;
6476
+ tenant_id?: string;
6477
+ updated_at?: string;
6478
+ };
6479
+ Relationships: [];
6480
+ };
6019
6481
  products: {
6020
6482
  Row: {
6021
6483
  barcode: string | null;
@@ -7155,7 +7617,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7155
7617
  connection_id: string | null;
7156
7618
  created_at: string;
7157
7619
  data: import("./types").Json;
7620
+ floriday_id: string | null;
7621
+ floriday_link_error: string | null;
7622
+ floriday_link_status: string;
7158
7623
  id: string;
7624
+ last_floriday_sync_at: string | null;
7625
+ missing_required_fields: string[];
7626
+ source: string;
7159
7627
  updated_at: string;
7160
7628
  user_id: string;
7161
7629
  };
@@ -7163,7 +7631,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7163
7631
  connection_id?: string | null;
7164
7632
  created_at?: string;
7165
7633
  data?: import("./types").Json;
7634
+ floriday_id?: string | null;
7635
+ floriday_link_error?: string | null;
7636
+ floriday_link_status?: string;
7166
7637
  id?: string;
7638
+ last_floriday_sync_at?: string | null;
7639
+ missing_required_fields?: string[];
7640
+ source?: string;
7167
7641
  updated_at?: string;
7168
7642
  user_id: string;
7169
7643
  };
@@ -7171,7 +7645,55 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7171
7645
  connection_id?: string | null;
7172
7646
  created_at?: string;
7173
7647
  data?: import("./types").Json;
7648
+ floriday_id?: string | null;
7649
+ floriday_link_error?: string | null;
7650
+ floriday_link_status?: string;
7651
+ id?: string;
7652
+ last_floriday_sync_at?: string | null;
7653
+ missing_required_fields?: string[];
7654
+ source?: string;
7655
+ updated_at?: string;
7656
+ user_id?: string;
7657
+ };
7658
+ Relationships: [];
7659
+ };
7660
+ trade_item_stock: {
7661
+ Row: {
7662
+ connection_id: string;
7663
+ created_at: string;
7664
+ id: string;
7665
+ incoming_stock: number;
7666
+ minimum_stock: number;
7667
+ notes: string | null;
7668
+ physical_stock: number;
7669
+ reserved_stock: number;
7670
+ trade_item_key: string;
7671
+ updated_at: string;
7672
+ user_id: string;
7673
+ };
7674
+ Insert: {
7675
+ connection_id: string;
7676
+ created_at?: string;
7174
7677
  id?: string;
7678
+ incoming_stock?: number;
7679
+ minimum_stock?: number;
7680
+ notes?: string | null;
7681
+ physical_stock?: number;
7682
+ reserved_stock?: number;
7683
+ trade_item_key: string;
7684
+ updated_at?: string;
7685
+ user_id: string;
7686
+ };
7687
+ Update: {
7688
+ connection_id?: string;
7689
+ created_at?: string;
7690
+ id?: string;
7691
+ incoming_stock?: number;
7692
+ minimum_stock?: number;
7693
+ notes?: string | null;
7694
+ physical_stock?: number;
7695
+ reserved_stock?: number;
7696
+ trade_item_key?: string;
7175
7697
  updated_at?: string;
7176
7698
  user_id?: string;
7177
7699
  };
@@ -7521,6 +8043,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7521
8043
  };
7522
8044
  twinfield_invoice_sync_logs: {
7523
8045
  Row: {
8046
+ action_type: string | null;
7524
8047
  created_at: string;
7525
8048
  details: import("./types").Json | null;
7526
8049
  duration_ms: number | null;
@@ -7533,6 +8056,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7533
8056
  user_id: string;
7534
8057
  };
7535
8058
  Insert: {
8059
+ action_type?: string | null;
7536
8060
  created_at?: string;
7537
8061
  details?: import("./types").Json | null;
7538
8062
  duration_ms?: number | null;
@@ -7545,6 +8069,7 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7545
8069
  user_id: string;
7546
8070
  };
7547
8071
  Update: {
8072
+ action_type?: string | null;
7548
8073
  created_at?: string;
7549
8074
  details?: import("./types").Json | null;
7550
8075
  duration_ms?: number | null;
@@ -7780,6 +8305,57 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7780
8305
  referencedColumns: ["id"];
7781
8306
  }];
7782
8307
  };
8308
+ twinfield_request_metrics: {
8309
+ Row: {
8310
+ bucket_hour: string;
8311
+ connection_id: string;
8312
+ error_count: number;
8313
+ rate_limited_count: number;
8314
+ request_count: number;
8315
+ updated_at: string;
8316
+ };
8317
+ Insert: {
8318
+ bucket_hour: string;
8319
+ connection_id: string;
8320
+ error_count?: number;
8321
+ rate_limited_count?: number;
8322
+ request_count?: number;
8323
+ updated_at?: string;
8324
+ };
8325
+ Update: {
8326
+ bucket_hour?: string;
8327
+ connection_id?: string;
8328
+ error_count?: number;
8329
+ rate_limited_count?: number;
8330
+ request_count?: number;
8331
+ updated_at?: string;
8332
+ };
8333
+ Relationships: [];
8334
+ };
8335
+ twinfield_session_cache: {
8336
+ Row: {
8337
+ cluster: string;
8338
+ created_at: string;
8339
+ expires_at: string;
8340
+ session_id: string;
8341
+ user_id: string;
8342
+ };
8343
+ Insert: {
8344
+ cluster: string;
8345
+ created_at?: string;
8346
+ expires_at: string;
8347
+ session_id: string;
8348
+ user_id: string;
8349
+ };
8350
+ Update: {
8351
+ cluster?: string;
8352
+ created_at?: string;
8353
+ expires_at?: string;
8354
+ session_id?: string;
8355
+ user_id?: string;
8356
+ };
8357
+ Relationships: [];
8358
+ };
7783
8359
  twinfield_settings: {
7784
8360
  Row: {
7785
8361
  active_environment: string;
@@ -7891,6 +8467,72 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
7891
8467
  referencedColumns: ["id"];
7892
8468
  }];
7893
8469
  };
8470
+ voorraad_media_upload_failures: {
8471
+ Row: {
8472
+ action: string;
8473
+ attempt_number: number;
8474
+ caller: string;
8475
+ client_user_id: string | null;
8476
+ content_type: string | null;
8477
+ created_at: string;
8478
+ environment: string;
8479
+ error_message: string | null;
8480
+ filename: string | null;
8481
+ id: string;
8482
+ idempotency_key: string | null;
8483
+ module: string;
8484
+ path: string;
8485
+ reference_id: string | null;
8486
+ request_body_hash: string | null;
8487
+ request_timestamp: number | null;
8488
+ response_content_type: string | null;
8489
+ response_status: number | null;
8490
+ size_bytes: number | null;
8491
+ };
8492
+ Insert: {
8493
+ action?: string;
8494
+ attempt_number?: number;
8495
+ caller?: string;
8496
+ client_user_id?: string | null;
8497
+ content_type?: string | null;
8498
+ created_at?: string;
8499
+ environment: string;
8500
+ error_message?: string | null;
8501
+ filename?: string | null;
8502
+ id?: string;
8503
+ idempotency_key?: string | null;
8504
+ module?: string;
8505
+ path: string;
8506
+ reference_id?: string | null;
8507
+ request_body_hash?: string | null;
8508
+ request_timestamp?: number | null;
8509
+ response_content_type?: string | null;
8510
+ response_status?: number | null;
8511
+ size_bytes?: number | null;
8512
+ };
8513
+ Update: {
8514
+ action?: string;
8515
+ attempt_number?: number;
8516
+ caller?: string;
8517
+ client_user_id?: string | null;
8518
+ content_type?: string | null;
8519
+ created_at?: string;
8520
+ environment?: string;
8521
+ error_message?: string | null;
8522
+ filename?: string | null;
8523
+ id?: string;
8524
+ idempotency_key?: string | null;
8525
+ module?: string;
8526
+ path?: string;
8527
+ reference_id?: string | null;
8528
+ request_body_hash?: string | null;
8529
+ request_timestamp?: number | null;
8530
+ response_content_type?: string | null;
8531
+ response_status?: number | null;
8532
+ size_bytes?: number | null;
8533
+ };
8534
+ Relationships: [];
8535
+ };
7894
8536
  voorraad_publish_attempts: {
7895
8537
  Row: {
7896
8538
  action: string;
@@ -8295,6 +8937,35 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8295
8937
  };
8296
8938
  Relationships: [];
8297
8939
  };
8940
+ manufacture_product_possible_stock_view: {
8941
+ Row: {
8942
+ component_count: number | null;
8943
+ manufacture_product_id: string | null;
8944
+ possible_stock: number | null;
8945
+ };
8946
+ Relationships: [];
8947
+ };
8948
+ product_group_stock_view: {
8949
+ Row: {
8950
+ item_count: number | null;
8951
+ product_group_id: string | null;
8952
+ total_stock: number | null;
8953
+ };
8954
+ Relationships: [{
8955
+ foreignKeyName: "product_group_items_product_group_id_fkey";
8956
+ columns: ["product_group_id"];
8957
+ isOneToOne: false;
8958
+ referencedRelation: "product_groups";
8959
+ referencedColumns: ["id"];
8960
+ }];
8961
+ };
8962
+ trade_item_stock_view: {
8963
+ Row: {
8964
+ stock: number | null;
8965
+ trade_item_id: string | null;
8966
+ };
8967
+ Relationships: [];
8968
+ };
8298
8969
  v_external_customers_exact: {
8299
8970
  Row: {
8300
8971
  account_number: string | null;
@@ -8550,6 +9221,29 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8550
9221
  };
8551
9222
  Returns: number;
8552
9223
  };
9224
+ assign_cart_numbers: {
9225
+ Args: {
9226
+ p_carts: import("./types").Json;
9227
+ };
9228
+ Returns: {
9229
+ cart_index: number;
9230
+ cart_number: string;
9231
+ day_seq: number;
9232
+ order_id: string;
9233
+ order_source: string;
9234
+ pick_date: string;
9235
+ status: string;
9236
+ }[];
9237
+ };
9238
+ assign_floriday_order_numbers: {
9239
+ Args: {
9240
+ p_ids: string[];
9241
+ };
9242
+ Returns: {
9243
+ floriday_id: string;
9244
+ order_number: string;
9245
+ }[];
9246
+ };
8553
9247
  call_exact_route: {
8554
9248
  Args: {
8555
9249
  path: string;
@@ -8560,10 +9254,37 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8560
9254
  Args: never;
8561
9255
  Returns: number;
8562
9256
  };
9257
+ control_get_todays_carts: {
9258
+ Args: never;
9259
+ Returns: {
9260
+ cart_index: number;
9261
+ cart_number: string;
9262
+ cart_number_id: string;
9263
+ order_id: string;
9264
+ order_source: string;
9265
+ pick_date: string;
9266
+ status: string;
9267
+ }[];
9268
+ };
9269
+ count_distinct_regulatory_products: {
9270
+ Args: never;
9271
+ Returns: number;
9272
+ };
8563
9273
  current_monteur_id: {
8564
9274
  Args: never;
8565
9275
  Returns: string;
8566
9276
  };
9277
+ dashboard_alert_counts: {
9278
+ Args: never;
9279
+ Returns: import("./types").Json;
9280
+ };
9281
+ dashboard_alert_rows: {
9282
+ Args: {
9283
+ check_id: string;
9284
+ row_limit?: number;
9285
+ };
9286
+ Returns: import("./types").Json;
9287
+ };
8567
9288
  dashboard_list_public_schema: {
8568
9289
  Args: never;
8569
9290
  Returns: {
@@ -8644,6 +9365,13 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8644
9365
  };
8645
9366
  Returns: boolean;
8646
9367
  };
9368
+ format_cart_number: {
9369
+ Args: {
9370
+ p_pick_date: string;
9371
+ p_seq: number;
9372
+ };
9373
+ Returns: string;
9374
+ };
8647
9375
  get_active_floriday_connection_public: {
8648
9376
  Args: never;
8649
9377
  Returns: {
@@ -8759,6 +9487,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8759
9487
  };
8760
9488
  Returns: import("./types").Json;
8761
9489
  };
9490
+ get_or_assign_floriday_order_number: {
9491
+ Args: {
9492
+ p_floriday_id: string;
9493
+ };
9494
+ Returns: string;
9495
+ };
8762
9496
  get_room_busy_windows: {
8763
9497
  Args: {
8764
9498
  p_from: string;
@@ -8805,6 +9539,12 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8805
9539
  Args: never;
8806
9540
  Returns: boolean;
8807
9541
  };
9542
+ next_order_number: {
9543
+ Args: {
9544
+ p_prefix: string;
9545
+ };
9546
+ Returns: string;
9547
+ };
8808
9548
  next_work_order_number: {
8809
9549
  Args: {
8810
9550
  p_parent_work_order_id?: string;
@@ -8818,6 +9558,47 @@ export declare const supabaseAdmin: import("@supabase/supabase-js").SupabaseClie
8818
9558
  };
8819
9559
  Returns: string;
8820
9560
  };
9561
+ pickstation_get_orders_raw: {
9562
+ Args: never;
9563
+ Returns: import("./types").Json;
9564
+ };
9565
+ pickstation_get_settings: {
9566
+ Args: never;
9567
+ Returns: import("./types").Json;
9568
+ };
9569
+ pickstation_log_print: {
9570
+ Args: {
9571
+ p_customer_name: string;
9572
+ p_documents: string[];
9573
+ p_ip_address: string;
9574
+ p_order_id: string;
9575
+ p_order_number: string;
9576
+ };
9577
+ Returns: undefined;
9578
+ };
9579
+ pickstation_set_cart_status: {
9580
+ Args: {
9581
+ p_cart_index: number;
9582
+ p_order_id: string;
9583
+ p_order_source: string;
9584
+ p_status: string;
9585
+ };
9586
+ Returns: undefined;
9587
+ };
9588
+ refresh_floricode_derived_code_lists: {
9589
+ Args: never;
9590
+ Returns: {
9591
+ environment: string;
9592
+ list_name: string;
9593
+ row_count: number;
9594
+ }[];
9595
+ };
9596
+ refresh_floricode_derived_for_product: {
9597
+ Args: {
9598
+ p_product_code: string;
9599
+ };
9600
+ Returns: number;
9601
+ };
8821
9602
  reset_floriday_sync_cursor: {
8822
9603
  Args: {
8823
9604
  p_connection_id: string;