@flowselections/floriday-afhandeling-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 (96) hide show
  1. package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts +7 -0
  2. package/dist-lib/components/afhandeling/ControleLijstPrint.d.ts.map +1 -0
  3. package/dist-lib/components/afhandeling/ControleLijstPrint.js +67 -0
  4. package/dist-lib/components/afhandeling/ControlePage.d.ts +2 -0
  5. package/dist-lib/components/afhandeling/ControlePage.d.ts.map +1 -0
  6. package/dist-lib/components/afhandeling/ControlePage.js +456 -0
  7. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts +9 -0
  8. package/dist-lib/components/afhandeling/DagDetailDialog.d.ts.map +1 -0
  9. package/dist-lib/components/afhandeling/DagDetailDialog.js +149 -0
  10. package/dist-lib/components/afhandeling/LeveringenPage.d.ts.map +1 -1
  11. package/dist-lib/components/afhandeling/LeveringenPage.js +11 -5
  12. package/dist-lib/components/afhandeling/PickAgendaView.d.ts.map +1 -1
  13. package/dist-lib/components/afhandeling/PickAgendaView.js +13 -4
  14. package/dist-lib/components/afhandeling/PlanningAgendaPage.d.ts.map +1 -1
  15. package/dist-lib/components/afhandeling/PlanningAgendaPage.js +2 -2
  16. package/dist-lib/components/afhandeling/ServiceAreaSelect.d.ts +12 -0
  17. package/dist-lib/components/afhandeling/ServiceAreaSelect.d.ts.map +1 -0
  18. package/dist-lib/components/afhandeling/ServiceAreaSelect.js +79 -0
  19. package/dist-lib/components/afhandeling/VervoerderForm.d.ts.map +1 -1
  20. package/dist-lib/components/afhandeling/VervoerderForm.js +62 -6
  21. package/dist-lib/components/afhandeling/VervoerdersPage.d.ts.map +1 -1
  22. package/dist-lib/components/afhandeling/VervoerdersPage.js +25 -6
  23. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts +2 -1
  24. package/dist-lib/components/afhandeling/WeekAgendaView.d.ts.map +1 -1
  25. package/dist-lib/components/afhandeling/WeekAgendaView.js +63 -18
  26. package/dist-lib/components/afhandeling/WeekdayPicker.d.ts +12 -0
  27. package/dist-lib/components/afhandeling/WeekdayPicker.d.ts.map +1 -0
  28. package/dist-lib/components/afhandeling/WeekdayPicker.js +30 -0
  29. package/dist-lib/components/pickstation/PakbonTemplate.d.ts +6 -2
  30. package/dist-lib/components/pickstation/PakbonTemplate.d.ts.map +1 -1
  31. package/dist-lib/components/pickstation/PakbonTemplate.js +37 -12
  32. package/dist-lib/components/settings/AfhandelingSettingsCard.d.ts.map +1 -1
  33. package/dist-lib/components/settings/AfhandelingSettingsCard.js +25 -6
  34. package/dist-lib/components/ui/responsive-dialog.d.ts +20 -0
  35. package/dist-lib/components/ui/responsive-dialog.d.ts.map +1 -0
  36. package/dist-lib/components/ui/responsive-dialog.js +44 -0
  37. package/dist-lib/hooks/useOrderPlanning.d.ts +3 -0
  38. package/dist-lib/hooks/useOrderPlanning.d.ts.map +1 -1
  39. package/dist-lib/hooks/useOrderPlanning.js +64 -12
  40. package/dist-lib/index.d.ts +1 -0
  41. package/dist-lib/index.d.ts.map +1 -1
  42. package/dist-lib/index.js +4 -2
  43. package/dist-lib/integrations/supabase/auth-middleware.d.ts +2898 -147
  44. package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
  45. package/dist-lib/integrations/supabase/client.d.ts +2898 -147
  46. package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
  47. package/dist-lib/integrations/supabase/client.server.d.ts +2898 -147
  48. package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
  49. package/dist-lib/integrations/supabase/types.d.ts +2986 -155
  50. package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
  51. package/dist-lib/integrations/supabase/types.js +1 -0
  52. package/dist-lib/lib/afhandelingSettings.functions.d.ts +10666 -5151
  53. package/dist-lib/lib/afhandelingSettings.functions.d.ts.map +1 -1
  54. package/dist-lib/lib/afhandelingSettings.functions.js +42 -2
  55. package/dist-lib/lib/carrierMatch.server.d.ts +27 -0
  56. package/dist-lib/lib/carrierMatch.server.d.ts.map +1 -0
  57. package/dist-lib/lib/carrierMatch.server.js +75 -0
  58. package/dist-lib/lib/carrierSignupMail.server.d.ts +56 -0
  59. package/dist-lib/lib/carrierSignupMail.server.d.ts.map +1 -0
  60. package/dist-lib/lib/carrierSignupMail.server.js +229 -0
  61. package/dist-lib/lib/carriers.functions.d.ts +36404 -15470
  62. package/dist-lib/lib/carriers.functions.d.ts.map +1 -1
  63. package/dist-lib/lib/carriers.functions.js +43 -2
  64. package/dist-lib/lib/cartAssignments.functions.d.ts +49609 -0
  65. package/dist-lib/lib/cartAssignments.functions.d.ts.map +1 -0
  66. package/dist-lib/lib/cartAssignments.functions.js +130 -0
  67. package/dist-lib/lib/cartControl.functions.d.ts +99259 -0
  68. package/dist-lib/lib/cartControl.functions.d.ts.map +1 -0
  69. package/dist-lib/lib/cartControl.functions.js +489 -0
  70. package/dist-lib/lib/cartMoveImpact.d.ts +8 -0
  71. package/dist-lib/lib/cartMoveImpact.d.ts.map +1 -0
  72. package/dist-lib/lib/cartMoveImpact.js +26 -0
  73. package/dist-lib/lib/cartRescheduling.d.ts +30 -0
  74. package/dist-lib/lib/cartRescheduling.d.ts.map +1 -0
  75. package/dist-lib/lib/cartRescheduling.js +71 -0
  76. package/dist-lib/lib/floriday.functions.d.ts +2902 -147
  77. package/dist-lib/lib/floriday.functions.d.ts.map +1 -1
  78. package/dist-lib/lib/floriday.functions.js +178 -98
  79. package/dist-lib/lib/geo/euServiceAreas.d.ts +30 -0
  80. package/dist-lib/lib/geo/euServiceAreas.d.ts.map +1 -0
  81. package/dist-lib/lib/geo/euServiceAreas.js +277 -0
  82. package/dist-lib/lib/invalidatePlanning.d.ts +11 -0
  83. package/dist-lib/lib/invalidatePlanning.d.ts.map +1 -0
  84. package/dist-lib/lib/invalidatePlanning.js +25 -0
  85. package/dist-lib/lib/pickstationI18n.d.ts +12 -0
  86. package/dist-lib/lib/pickstationI18n.d.ts.map +1 -1
  87. package/dist-lib/lib/pickstationI18n.js +72 -0
  88. package/dist-lib/lib/pickstationOrders.server.d.ts +2 -1
  89. package/dist-lib/lib/pickstationOrders.server.d.ts.map +1 -1
  90. package/dist-lib/lib/pickstationOrders.server.js +393 -178
  91. package/dist-lib/lib/pickstationTypes.d.ts +23 -2
  92. package/dist-lib/lib/pickstationTypes.d.ts.map +1 -1
  93. package/dist-lib/lib/planning.d.ts +41 -2
  94. package/dist-lib/lib/planning.d.ts.map +1 -1
  95. package/dist-lib/lib/planning.js +159 -36
  96. package/package.json +2 -2
@@ -8,6 +8,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
8
8
  max_workdays_earlier_pick: number;
9
9
  pick_days_before_transport: number;
10
10
  pick_distribution_enabled: boolean;
11
+ pick_weekdays: number[];
12
+ signup_mail_enabled: boolean;
13
+ signup_mail_lead_minutes: number;
14
+ signup_mail_purpose: string;
11
15
  transport_register_days_before: number;
12
16
  updated_at: string;
13
17
  user_id: string;
@@ -18,6 +22,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
18
22
  max_workdays_earlier_pick?: number;
19
23
  pick_days_before_transport?: number;
20
24
  pick_distribution_enabled?: boolean;
25
+ pick_weekdays?: number[];
26
+ signup_mail_enabled?: boolean;
27
+ signup_mail_lead_minutes?: number;
28
+ signup_mail_purpose?: string;
21
29
  transport_register_days_before?: number;
22
30
  updated_at?: string;
23
31
  user_id: string;
@@ -28,6 +36,10 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
28
36
  max_workdays_earlier_pick?: number;
29
37
  pick_days_before_transport?: number;
30
38
  pick_distribution_enabled?: boolean;
39
+ pick_weekdays?: number[];
40
+ signup_mail_enabled?: boolean;
41
+ signup_mail_lead_minutes?: number;
42
+ signup_mail_purpose?: string;
31
43
  transport_register_days_before?: number;
32
44
  updated_at?: string;
33
45
  user_id?: string;
@@ -436,12 +448,100 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
436
448
  referencedColumns: ["id"];
437
449
  }];
438
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
+ };
493
+ carrier_signup_dispatches: {
494
+ Row: {
495
+ carrier_id: string;
496
+ cart_count: number;
497
+ created_at: string;
498
+ id: string;
499
+ order_count: number;
500
+ outbox_id: string | null;
501
+ pickup_date: string;
502
+ pickup_moment_key: string;
503
+ sent_at: string;
504
+ signup_deadline: string;
505
+ };
506
+ Insert: {
507
+ carrier_id: string;
508
+ cart_count?: number;
509
+ created_at?: string;
510
+ id?: string;
511
+ order_count?: number;
512
+ outbox_id?: string | null;
513
+ pickup_date: string;
514
+ pickup_moment_key: string;
515
+ sent_at?: string;
516
+ signup_deadline: string;
517
+ };
518
+ Update: {
519
+ carrier_id?: string;
520
+ cart_count?: number;
521
+ created_at?: string;
522
+ id?: string;
523
+ order_count?: number;
524
+ outbox_id?: string | null;
525
+ pickup_date?: string;
526
+ pickup_moment_key?: string;
527
+ sent_at?: string;
528
+ signup_deadline?: string;
529
+ };
530
+ Relationships: [{
531
+ foreignKeyName: "carrier_signup_dispatches_carrier_id_fkey";
532
+ columns: ["carrier_id"];
533
+ isOneToOne: false;
534
+ referencedRelation: "carriers";
535
+ referencedColumns: ["id"];
536
+ }];
537
+ };
439
538
  carriers: {
440
539
  Row: {
441
540
  address: string | null;
442
541
  contact_person: string | null;
443
542
  created_at: string;
444
543
  delivery_days: number | null;
544
+ delivery_weekdays: number[];
445
545
  email: string | null;
446
546
  id: string;
447
547
  is_default: boolean;
@@ -449,9 +549,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
449
549
  notes: string | null;
450
550
  phone: string | null;
451
551
  pickup_moments: import("./types").Json;
552
+ pickup_weekdays: number[];
553
+ service_cities: string[];
554
+ service_countries: string[];
555
+ service_provinces: string[];
452
556
  signup_days_before_delivery: number;
453
557
  signup_time_1: string | null;
454
558
  signup_time_2: string | null;
559
+ sort_order: number;
455
560
  updated_at: string;
456
561
  user_id: string;
457
562
  };
@@ -460,6 +565,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
460
565
  contact_person?: string | null;
461
566
  created_at?: string;
462
567
  delivery_days?: number | null;
568
+ delivery_weekdays?: number[];
463
569
  email?: string | null;
464
570
  id?: string;
465
571
  is_default?: boolean;
@@ -467,9 +573,14 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
467
573
  notes?: string | null;
468
574
  phone?: string | null;
469
575
  pickup_moments?: import("./types").Json;
576
+ pickup_weekdays?: number[];
577
+ service_cities?: string[];
578
+ service_countries?: string[];
579
+ service_provinces?: string[];
470
580
  signup_days_before_delivery?: number;
471
581
  signup_time_1?: string | null;
472
582
  signup_time_2?: string | null;
583
+ sort_order?: number;
473
584
  updated_at?: string;
474
585
  user_id: string;
475
586
  };
@@ -478,6 +589,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
478
589
  contact_person?: string | null;
479
590
  created_at?: string;
480
591
  delivery_days?: number | null;
592
+ delivery_weekdays?: number[];
481
593
  email?: string | null;
482
594
  id?: string;
483
595
  is_default?: boolean;
@@ -485,14 +597,229 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
485
597
  notes?: string | null;
486
598
  phone?: string | null;
487
599
  pickup_moments?: import("./types").Json;
600
+ pickup_weekdays?: number[];
601
+ service_cities?: string[];
602
+ service_countries?: string[];
603
+ service_provinces?: string[];
488
604
  signup_days_before_delivery?: number;
489
605
  signup_time_1?: string | null;
490
606
  signup_time_2?: string | null;
607
+ sort_order?: number;
608
+ updated_at?: string;
609
+ user_id?: string;
610
+ };
611
+ Relationships: [];
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;
491
743
  updated_at?: string;
492
744
  user_id?: string;
493
745
  };
494
746
  Relationships: [];
495
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
+ };
784
+ cart_pick_overrides: {
785
+ Row: {
786
+ cart_index: number;
787
+ created_at: string;
788
+ id: string;
789
+ moved_from_date: string | null;
790
+ notes: string | null;
791
+ order_id: string;
792
+ order_source: string;
793
+ pick_date: string;
794
+ status: string;
795
+ updated_at: string;
796
+ };
797
+ Insert: {
798
+ cart_index: number;
799
+ created_at?: string;
800
+ id?: string;
801
+ moved_from_date?: string | null;
802
+ notes?: string | null;
803
+ order_id: string;
804
+ order_source: string;
805
+ pick_date: string;
806
+ status?: string;
807
+ updated_at?: string;
808
+ };
809
+ Update: {
810
+ cart_index?: number;
811
+ created_at?: string;
812
+ id?: string;
813
+ moved_from_date?: string | null;
814
+ notes?: string | null;
815
+ order_id?: string;
816
+ order_source?: string;
817
+ pick_date?: string;
818
+ status?: string;
819
+ updated_at?: string;
820
+ };
821
+ Relationships: [];
822
+ };
496
823
  collections: {
497
824
  Row: {
498
825
  created_at: string;
@@ -604,50 +931,74 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
604
931
  customer_delivery_locations: {
605
932
  Row: {
606
933
  address_line: string | null;
934
+ carrier_assignment_source: string;
935
+ carrier_id: string | null;
607
936
  city: string | null;
608
937
  country: string | null;
609
938
  created_at: string;
610
939
  customer_id: string;
611
940
  floriday_location_id: string | null;
612
941
  gln: string | null;
942
+ house_number: string | null;
613
943
  id: string;
614
944
  is_primary: boolean;
615
945
  name: string | null;
616
946
  postal_code: string | null;
947
+ province: string | null;
617
948
  raw: import("./types").Json | null;
949
+ self_pickup: boolean;
950
+ street: string | null;
618
951
  updated_at: string;
619
952
  };
620
953
  Insert: {
621
954
  address_line?: string | null;
955
+ carrier_assignment_source?: string;
956
+ carrier_id?: string | null;
622
957
  city?: string | null;
623
958
  country?: string | null;
624
959
  created_at?: string;
625
960
  customer_id: string;
626
961
  floriday_location_id?: string | null;
627
962
  gln?: string | null;
963
+ house_number?: string | null;
628
964
  id?: string;
629
965
  is_primary?: boolean;
630
966
  name?: string | null;
631
967
  postal_code?: string | null;
968
+ province?: string | null;
632
969
  raw?: import("./types").Json | null;
970
+ self_pickup?: boolean;
971
+ street?: string | null;
633
972
  updated_at?: string;
634
973
  };
635
974
  Update: {
636
975
  address_line?: string | null;
976
+ carrier_assignment_source?: string;
977
+ carrier_id?: string | null;
637
978
  city?: string | null;
638
979
  country?: string | null;
639
980
  created_at?: string;
640
981
  customer_id?: string;
641
982
  floriday_location_id?: string | null;
642
983
  gln?: string | null;
984
+ house_number?: string | null;
643
985
  id?: string;
644
986
  is_primary?: boolean;
645
987
  name?: string | null;
646
988
  postal_code?: string | null;
989
+ province?: string | null;
647
990
  raw?: import("./types").Json | null;
991
+ self_pickup?: boolean;
992
+ street?: string | null;
648
993
  updated_at?: string;
649
994
  };
650
995
  Relationships: [{
996
+ foreignKeyName: "customer_delivery_locations_carrier_id_fkey";
997
+ columns: ["carrier_id"];
998
+ isOneToOne: false;
999
+ referencedRelation: "carriers";
1000
+ referencedColumns: ["id"];
1001
+ }, {
651
1002
  foreignKeyName: "customer_delivery_locations_customer_id_fkey";
652
1003
  columns: ["customer_id"];
653
1004
  isOneToOne: false;
@@ -1102,6 +1453,54 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1102
1453
  referencedColumns: ["id"];
1103
1454
  }];
1104
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
+ };
1105
1504
  dashboard_daily_reports: {
1106
1505
  Row: {
1107
1506
  created_at: string;
@@ -1452,18 +1851,21 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
1452
1851
  };
1453
1852
  email_auth_purpose_settings: {
1454
1853
  Row: {
1854
+ default_cc: string[];
1455
1855
  purpose: string;
1456
1856
  reply_to: string | null;
1457
1857
  updated_at: string;
1458
1858
  updated_by: string | null;
1459
1859
  };
1460
1860
  Insert: {
1861
+ default_cc?: string[];
1461
1862
  purpose: string;
1462
1863
  reply_to?: string | null;
1463
1864
  updated_at?: string;
1464
1865
  updated_by?: string | null;
1465
1866
  };
1466
1867
  Update: {
1868
+ default_cc?: string[];
1467
1869
  purpose?: string;
1468
1870
  reply_to?: string | null;
1469
1871
  updated_at?: string;
@@ -2476,12 +2878,40 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2476
2878
  };
2477
2879
  Relationships: [];
2478
2880
  };
2881
+ extra_pricing_types: {
2882
+ Row: {
2883
+ code: string;
2884
+ created_at: string;
2885
+ id: string;
2886
+ label: string;
2887
+ sort_order: number;
2888
+ updated_at: string;
2889
+ };
2890
+ Insert: {
2891
+ code: string;
2892
+ created_at?: string;
2893
+ id?: string;
2894
+ label: string;
2895
+ sort_order?: number;
2896
+ updated_at?: string;
2897
+ };
2898
+ Update: {
2899
+ code?: string;
2900
+ created_at?: string;
2901
+ id?: string;
2902
+ label?: string;
2903
+ sort_order?: number;
2904
+ updated_at?: string;
2905
+ };
2906
+ Relationships: [];
2907
+ };
2479
2908
  extras: {
2480
2909
  Row: {
2481
2910
  category: string;
2482
2911
  created_at: string;
2483
2912
  exact_article_id: string | null;
2484
2913
  id: string;
2914
+ image_url: string | null;
2485
2915
  is_active: boolean;
2486
2916
  name: string;
2487
2917
  price: number;
@@ -2492,6 +2922,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2492
2922
  created_at?: string;
2493
2923
  exact_article_id?: string | null;
2494
2924
  id?: string;
2925
+ image_url?: string | null;
2495
2926
  is_active?: boolean;
2496
2927
  name: string;
2497
2928
  price?: number;
@@ -2502,6 +2933,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2502
2933
  created_at?: string;
2503
2934
  exact_article_id?: string | null;
2504
2935
  id?: string;
2936
+ image_url?: string | null;
2505
2937
  is_active?: boolean;
2506
2938
  name?: string;
2507
2939
  price?: number;
@@ -2571,6 +3003,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2571
3003
  };
2572
3004
  floricode_sync_state: {
2573
3005
  Row: {
3006
+ cursor_skip: number;
2574
3007
  error_message: string | null;
2575
3008
  last_change_date_time: string | null;
2576
3009
  last_sequence_number: number;
@@ -2580,6 +3013,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2580
3013
  updated_at: string;
2581
3014
  };
2582
3015
  Insert: {
3016
+ cursor_skip?: number;
2583
3017
  error_message?: string | null;
2584
3018
  last_change_date_time?: string | null;
2585
3019
  last_sequence_number?: number;
@@ -2589,6 +3023,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2589
3023
  updated_at?: string;
2590
3024
  };
2591
3025
  Update: {
3026
+ cursor_skip?: number;
2592
3027
  error_message?: string | null;
2593
3028
  last_change_date_time?: string | null;
2594
3029
  last_sequence_number?: number;
@@ -2599,230 +3034,1298 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2599
3034
  };
2600
3035
  Relationships: [];
2601
3036
  };
2602
- floriday_carriers_cache: {
3037
+ floriday_additional_services_cache: {
2603
3038
  Row: {
2604
- connection_id: string | null;
2605
- created_at: string;
3039
+ connection_id: string;
2606
3040
  data: import("./types").Json;
2607
3041
  fetched_at: string;
2608
- gln_code: string | null;
2609
- id: string;
2610
- name: string | null;
2611
- organization_id: string;
3042
+ floriday_id: string;
3043
+ is_deleted: boolean;
3044
+ sequence_number: number;
2612
3045
  updated_at: string;
2613
3046
  };
2614
3047
  Insert: {
2615
- connection_id?: string | null;
2616
- created_at?: string;
3048
+ connection_id: string;
2617
3049
  data: import("./types").Json;
2618
3050
  fetched_at?: string;
2619
- gln_code?: string | null;
2620
- id?: string;
2621
- name?: string | null;
2622
- organization_id: string;
3051
+ floriday_id: string;
3052
+ is_deleted?: boolean;
3053
+ sequence_number?: number;
2623
3054
  updated_at?: string;
2624
3055
  };
2625
3056
  Update: {
2626
- connection_id?: string | null;
2627
- created_at?: string;
3057
+ connection_id?: string;
2628
3058
  data?: import("./types").Json;
2629
3059
  fetched_at?: string;
2630
- gln_code?: string | null;
2631
- id?: string;
2632
- name?: string | null;
2633
- organization_id?: string;
2634
- updated_at?: string;
2635
- };
3060
+ floriday_id?: string;
3061
+ is_deleted?: boolean;
3062
+ sequence_number?: number;
3063
+ updated_at?: string;
3064
+ };
2636
3065
  Relationships: [{
2637
- foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
3066
+ foreignKeyName: "floriday_additional_services_cache_connection_id_fkey";
2638
3067
  columns: ["connection_id"];
2639
3068
  isOneToOne: false;
2640
3069
  referencedRelation: "floriday_connections";
2641
3070
  referencedColumns: ["id"];
2642
3071
  }];
2643
3072
  };
2644
- floriday_connections: {
3073
+ floriday_agreement_calloffs_cache: {
2645
3074
  Row: {
2646
- access_token: string | null;
2647
- api_key: string;
2648
- client_id: string;
2649
- client_secret: string;
3075
+ agreement_id: string | null;
3076
+ connection_id: string;
3077
+ data: import("./types").Json;
3078
+ delivery_date: string | null;
3079
+ fetched_at: string;
3080
+ floriday_id: string;
3081
+ id: string;
3082
+ is_deleted: boolean;
3083
+ sequence_number: number;
3084
+ status: string | null;
3085
+ updated_at: string;
3086
+ };
3087
+ Insert: {
3088
+ agreement_id?: string | null;
3089
+ connection_id: string;
3090
+ data?: import("./types").Json;
3091
+ delivery_date?: string | null;
3092
+ fetched_at?: string;
3093
+ floriday_id: string;
3094
+ id?: string;
3095
+ is_deleted?: boolean;
3096
+ sequence_number?: number;
3097
+ status?: string | null;
3098
+ updated_at?: string;
3099
+ };
3100
+ Update: {
3101
+ agreement_id?: string | null;
3102
+ connection_id?: string;
3103
+ data?: import("./types").Json;
3104
+ delivery_date?: string | null;
3105
+ fetched_at?: string;
3106
+ floriday_id?: string;
3107
+ id?: string;
3108
+ is_deleted?: boolean;
3109
+ sequence_number?: number;
3110
+ status?: string | null;
3111
+ updated_at?: string;
3112
+ };
3113
+ Relationships: [{
3114
+ foreignKeyName: "floriday_agreement_calloffs_cache_connection_id_fkey";
3115
+ columns: ["connection_id"];
3116
+ isOneToOne: false;
3117
+ referencedRelation: "floriday_connections";
3118
+ referencedColumns: ["id"];
3119
+ }];
3120
+ };
3121
+ floriday_agreements_cache: {
3122
+ Row: {
3123
+ buyer_organization_id: string | null;
3124
+ connection_id: string;
3125
+ data: import("./types").Json;
3126
+ fetched_at: string;
3127
+ floriday_id: string;
3128
+ id: string;
3129
+ is_deleted: boolean;
3130
+ sequence_number: number;
3131
+ status: string | null;
3132
+ updated_at: string;
3133
+ valid_from: string | null;
3134
+ valid_until: string | null;
3135
+ };
3136
+ Insert: {
3137
+ buyer_organization_id?: string | null;
3138
+ connection_id: string;
3139
+ data?: import("./types").Json;
3140
+ fetched_at?: string;
3141
+ floriday_id: string;
3142
+ id?: string;
3143
+ is_deleted?: boolean;
3144
+ sequence_number?: number;
3145
+ status?: string | null;
3146
+ updated_at?: string;
3147
+ valid_from?: string | null;
3148
+ valid_until?: string | null;
3149
+ };
3150
+ Update: {
3151
+ buyer_organization_id?: string | null;
3152
+ connection_id?: string;
3153
+ data?: import("./types").Json;
3154
+ fetched_at?: string;
3155
+ floriday_id?: string;
3156
+ id?: string;
3157
+ is_deleted?: boolean;
3158
+ sequence_number?: number;
3159
+ status?: string | null;
3160
+ updated_at?: string;
3161
+ valid_from?: string | null;
3162
+ valid_until?: string | null;
3163
+ };
3164
+ Relationships: [{
3165
+ foreignKeyName: "floriday_agreements_cache_connection_id_fkey";
3166
+ columns: ["connection_id"];
3167
+ isOneToOne: false;
3168
+ referencedRelation: "floriday_connections";
3169
+ referencedColumns: ["id"];
3170
+ }];
3171
+ };
3172
+ floriday_auction_letters_cache: {
3173
+ Row: {
3174
+ auction_letter_code: string;
3175
+ clock_supply_id: string;
3176
+ connection_id: string;
3177
+ content_type: string;
3178
+ fetched_at: string;
3179
+ id: string;
3180
+ storage_path: string;
3181
+ };
3182
+ Insert: {
3183
+ auction_letter_code: string;
3184
+ clock_supply_id: string;
3185
+ connection_id: string;
3186
+ content_type?: string;
3187
+ fetched_at?: string;
3188
+ id?: string;
3189
+ storage_path: string;
3190
+ };
3191
+ Update: {
3192
+ auction_letter_code?: string;
3193
+ clock_supply_id?: string;
3194
+ connection_id?: string;
3195
+ content_type?: string;
3196
+ fetched_at?: string;
3197
+ id?: string;
3198
+ storage_path?: string;
3199
+ };
3200
+ Relationships: [{
3201
+ foreignKeyName: "floriday_auction_letters_cache_connection_id_fkey";
3202
+ columns: ["connection_id"];
3203
+ isOneToOne: false;
3204
+ referencedRelation: "floriday_connections";
3205
+ referencedColumns: ["id"];
3206
+ }];
3207
+ };
3208
+ floriday_base_items_cache: {
3209
+ Row: {
3210
+ connection_id: string;
3211
+ data: import("./types").Json;
3212
+ fetched_at: string;
3213
+ floriday_id: string;
3214
+ is_deleted: boolean;
3215
+ sequence_number: number;
3216
+ updated_at: string;
3217
+ };
3218
+ Insert: {
3219
+ connection_id: string;
3220
+ data: import("./types").Json;
3221
+ fetched_at?: string;
3222
+ floriday_id: string;
3223
+ is_deleted?: boolean;
3224
+ sequence_number?: number;
3225
+ updated_at?: string;
3226
+ };
3227
+ Update: {
3228
+ connection_id?: string;
3229
+ data?: import("./types").Json;
3230
+ fetched_at?: string;
3231
+ floriday_id?: string;
3232
+ is_deleted?: boolean;
3233
+ sequence_number?: number;
3234
+ updated_at?: string;
3235
+ };
3236
+ Relationships: [{
3237
+ foreignKeyName: "floriday_base_items_cache_connection_id_fkey";
3238
+ columns: ["connection_id"];
3239
+ isOneToOne: false;
3240
+ referencedRelation: "floriday_connections";
3241
+ referencedColumns: ["id"];
3242
+ }];
3243
+ };
3244
+ floriday_blanket_orders_cache: {
3245
+ Row: {
3246
+ connection_id: string;
3247
+ contract_id: string | null;
2650
3248
  created_at: string;
2651
- customers_endpoint: string | null;
2652
- environment: string;
3249
+ data: import("./types").Json;
3250
+ fetched_at: string;
3251
+ floriday_id: string;
3252
+ id: string;
3253
+ is_deleted: boolean;
3254
+ sequence_number: number;
3255
+ updated_at: string;
3256
+ };
3257
+ Insert: {
3258
+ connection_id: string;
3259
+ contract_id?: string | null;
3260
+ created_at?: string;
3261
+ data: import("./types").Json;
3262
+ fetched_at?: string;
3263
+ floriday_id: string;
3264
+ id?: string;
3265
+ is_deleted?: boolean;
3266
+ sequence_number?: number;
3267
+ updated_at?: string;
3268
+ };
3269
+ Update: {
3270
+ connection_id?: string;
3271
+ contract_id?: string | null;
3272
+ created_at?: string;
3273
+ data?: import("./types").Json;
3274
+ fetched_at?: string;
3275
+ floriday_id?: string;
3276
+ id?: string;
3277
+ is_deleted?: boolean;
3278
+ sequence_number?: number;
3279
+ updated_at?: string;
3280
+ };
3281
+ Relationships: [{
3282
+ foreignKeyName: "floriday_blanket_orders_cache_connection_id_fkey";
3283
+ columns: ["connection_id"];
3284
+ isOneToOne: false;
3285
+ referencedRelation: "floriday_connections";
3286
+ referencedColumns: ["id"];
3287
+ }];
3288
+ };
3289
+ floriday_carriers_cache: {
3290
+ Row: {
3291
+ connection_id: string | null;
3292
+ created_at: string;
3293
+ data: import("./types").Json;
3294
+ fetched_at: string;
2653
3295
  gln_code: string | null;
2654
3296
  id: string;
2655
- is_active: boolean;
2656
- label: string;
2657
- organization_name: string | null;
2658
- preferred_warehouse_id: string | null;
2659
- preferred_warehouse_name: string | null;
2660
- token_expires_at: string | null;
3297
+ name: string | null;
3298
+ organization_id: string;
2661
3299
  updated_at: string;
2662
3300
  };
2663
3301
  Insert: {
2664
- access_token?: string | null;
2665
- api_key: string;
2666
- client_id: string;
2667
- client_secret: string;
3302
+ connection_id?: string | null;
2668
3303
  created_at?: string;
2669
- customers_endpoint?: string | null;
2670
- environment: string;
3304
+ data: import("./types").Json;
3305
+ fetched_at?: string;
2671
3306
  gln_code?: string | null;
2672
3307
  id?: string;
2673
- is_active?: boolean;
2674
- label?: string;
2675
- organization_name?: string | null;
2676
- preferred_warehouse_id?: string | null;
2677
- preferred_warehouse_name?: string | null;
2678
- token_expires_at?: string | null;
3308
+ name?: string | null;
3309
+ organization_id: string;
3310
+ updated_at?: string;
3311
+ };
3312
+ Update: {
3313
+ connection_id?: string | null;
3314
+ created_at?: string;
3315
+ data?: import("./types").Json;
3316
+ fetched_at?: string;
3317
+ gln_code?: string | null;
3318
+ id?: string;
3319
+ name?: string | null;
3320
+ organization_id?: string;
2679
3321
  updated_at?: string;
2680
3322
  };
3323
+ Relationships: [{
3324
+ foreignKeyName: "floriday_carriers_cache_connection_id_fkey";
3325
+ columns: ["connection_id"];
3326
+ isOneToOne: false;
3327
+ referencedRelation: "floriday_connections";
3328
+ referencedColumns: ["id"];
3329
+ }];
3330
+ };
3331
+ floriday_clock_presales_cache: {
3332
+ Row: {
3333
+ buyer_organization_id: string | null;
3334
+ clock_supply_id: string | null;
3335
+ connection_id: string;
3336
+ data: import("./types").Json;
3337
+ fetched_at: string;
3338
+ floriday_id: string;
3339
+ id: string;
3340
+ is_deleted: boolean;
3341
+ sequence_number: number;
3342
+ updated_at: string;
3343
+ };
3344
+ Insert: {
3345
+ buyer_organization_id?: string | null;
3346
+ clock_supply_id?: string | null;
3347
+ connection_id: string;
3348
+ data?: import("./types").Json;
3349
+ fetched_at?: string;
3350
+ floriday_id: string;
3351
+ id?: string;
3352
+ is_deleted?: boolean;
3353
+ sequence_number?: number;
3354
+ updated_at?: string;
3355
+ };
3356
+ Update: {
3357
+ buyer_organization_id?: string | null;
3358
+ clock_supply_id?: string | null;
3359
+ connection_id?: string;
3360
+ data?: import("./types").Json;
3361
+ fetched_at?: string;
3362
+ floriday_id?: string;
3363
+ id?: string;
3364
+ is_deleted?: boolean;
3365
+ sequence_number?: number;
3366
+ updated_at?: string;
3367
+ };
3368
+ Relationships: [{
3369
+ foreignKeyName: "floriday_clock_presales_cache_connection_id_fkey";
3370
+ columns: ["connection_id"];
3371
+ isOneToOne: false;
3372
+ referencedRelation: "floriday_connections";
3373
+ referencedColumns: ["id"];
3374
+ }];
3375
+ };
3376
+ floriday_clock_supplies_cache: {
3377
+ Row: {
3378
+ auction_date: string | null;
3379
+ connection_id: string;
3380
+ data: import("./types").Json;
3381
+ fetched_at: string;
3382
+ floriday_id: string;
3383
+ id: string;
3384
+ is_deleted: boolean;
3385
+ sequence_number: number;
3386
+ status: string | null;
3387
+ trade_item_id: string | null;
3388
+ updated_at: string;
3389
+ };
3390
+ Insert: {
3391
+ auction_date?: string | null;
3392
+ connection_id: string;
3393
+ data?: import("./types").Json;
3394
+ fetched_at?: string;
3395
+ floriday_id: string;
3396
+ id?: string;
3397
+ is_deleted?: boolean;
3398
+ sequence_number?: number;
3399
+ status?: string | null;
3400
+ trade_item_id?: string | null;
3401
+ updated_at?: string;
3402
+ };
3403
+ Update: {
3404
+ auction_date?: string | null;
3405
+ connection_id?: string;
3406
+ data?: import("./types").Json;
3407
+ fetched_at?: string;
3408
+ floriday_id?: string;
3409
+ id?: string;
3410
+ is_deleted?: boolean;
3411
+ sequence_number?: number;
3412
+ status?: string | null;
3413
+ trade_item_id?: string | null;
3414
+ updated_at?: string;
3415
+ };
3416
+ Relationships: [{
3417
+ foreignKeyName: "floriday_clock_supplies_cache_connection_id_fkey";
3418
+ columns: ["connection_id"];
3419
+ isOneToOne: false;
3420
+ referencedRelation: "floriday_connections";
3421
+ referencedColumns: ["id"];
3422
+ }];
3423
+ };
3424
+ floriday_code_lists_cache: {
3425
+ Row: {
3426
+ code: string;
3427
+ environment: string;
3428
+ label: string | null;
3429
+ list_name: string;
3430
+ payload: import("./types").Json | null;
3431
+ updated_at: string;
3432
+ };
3433
+ Insert: {
3434
+ code: string;
3435
+ environment: string;
3436
+ label?: string | null;
3437
+ list_name: string;
3438
+ payload?: import("./types").Json | null;
3439
+ updated_at?: string;
3440
+ };
3441
+ Update: {
3442
+ code?: string;
3443
+ environment?: string;
3444
+ label?: string | null;
3445
+ list_name?: string;
3446
+ payload?: import("./types").Json | null;
3447
+ updated_at?: string;
3448
+ };
3449
+ Relationships: [];
3450
+ };
3451
+ floriday_collections_cache: {
3452
+ Row: {
3453
+ connection_id: string;
3454
+ data: import("./types").Json;
3455
+ fetched_at: string;
3456
+ floriday_id: string;
3457
+ is_deleted: boolean;
3458
+ sequence_number: number;
3459
+ updated_at: string;
3460
+ };
3461
+ Insert: {
3462
+ connection_id: string;
3463
+ data: import("./types").Json;
3464
+ fetched_at?: string;
3465
+ floriday_id: string;
3466
+ is_deleted?: boolean;
3467
+ sequence_number?: number;
3468
+ updated_at?: string;
3469
+ };
3470
+ Update: {
3471
+ connection_id?: string;
3472
+ data?: import("./types").Json;
3473
+ fetched_at?: string;
3474
+ floriday_id?: string;
3475
+ is_deleted?: boolean;
3476
+ sequence_number?: number;
3477
+ updated_at?: string;
3478
+ };
3479
+ Relationships: [{
3480
+ foreignKeyName: "floriday_collections_cache_connection_id_fkey";
3481
+ columns: ["connection_id"];
3482
+ isOneToOne: false;
3483
+ referencedRelation: "floriday_connections";
3484
+ referencedColumns: ["id"];
3485
+ }];
3486
+ };
3487
+ floriday_commercial_service_types_cache: {
3488
+ Row: {
3489
+ connection_id: string;
3490
+ data: import("./types").Json;
3491
+ fetched_at: string;
3492
+ floriday_id: string;
3493
+ is_deleted: boolean;
3494
+ sequence_number: number;
3495
+ updated_at: string;
3496
+ };
3497
+ Insert: {
3498
+ connection_id: string;
3499
+ data: import("./types").Json;
3500
+ fetched_at?: string;
3501
+ floriday_id: string;
3502
+ is_deleted?: boolean;
3503
+ sequence_number?: number;
3504
+ updated_at?: string;
3505
+ };
3506
+ Update: {
3507
+ connection_id?: string;
3508
+ data?: import("./types").Json;
3509
+ fetched_at?: string;
3510
+ floriday_id?: string;
3511
+ is_deleted?: boolean;
3512
+ sequence_number?: number;
3513
+ updated_at?: string;
3514
+ };
3515
+ Relationships: [{
3516
+ foreignKeyName: "floriday_commercial_service_types_cache_connection_id_fkey";
3517
+ columns: ["connection_id"];
3518
+ isOneToOne: false;
3519
+ referencedRelation: "floriday_connections";
3520
+ referencedColumns: ["id"];
3521
+ }];
3522
+ };
3523
+ floriday_connections: {
3524
+ Row: {
3525
+ access_token: string | null;
3526
+ api_key: string;
3527
+ client_id: string;
3528
+ client_secret: string;
3529
+ created_at: string;
3530
+ customers_endpoint: string | null;
3531
+ environment: string;
3532
+ gln_code: string | null;
3533
+ id: string;
3534
+ is_active: boolean;
3535
+ label: string;
3536
+ organization_name: string | null;
3537
+ preferred_warehouse_id: string | null;
3538
+ preferred_warehouse_name: string | null;
3539
+ token_expires_at: string | null;
3540
+ updated_at: string;
3541
+ };
3542
+ Insert: {
3543
+ access_token?: string | null;
3544
+ api_key: string;
3545
+ client_id: string;
3546
+ client_secret: string;
3547
+ created_at?: string;
3548
+ customers_endpoint?: string | null;
3549
+ environment: string;
3550
+ gln_code?: string | null;
3551
+ id?: string;
3552
+ is_active?: boolean;
3553
+ label?: string;
3554
+ organization_name?: string | null;
3555
+ preferred_warehouse_id?: string | null;
3556
+ preferred_warehouse_name?: string | null;
3557
+ token_expires_at?: string | null;
3558
+ updated_at?: string;
3559
+ };
3560
+ Update: {
3561
+ access_token?: string | null;
3562
+ api_key?: string;
3563
+ client_id?: string;
3564
+ client_secret?: string;
3565
+ created_at?: string;
3566
+ customers_endpoint?: string | null;
3567
+ environment?: string;
3568
+ gln_code?: string | null;
3569
+ id?: string;
3570
+ is_active?: boolean;
3571
+ label?: string;
3572
+ organization_name?: string | null;
3573
+ preferred_warehouse_id?: string | null;
3574
+ preferred_warehouse_name?: string | null;
3575
+ token_expires_at?: string | null;
3576
+ updated_at?: string;
3577
+ };
3578
+ Relationships: [];
3579
+ };
3580
+ floriday_connections_cache: {
3581
+ Row: {
3582
+ buyer_organization_id: string | null;
3583
+ buyer_organization_name: string | null;
3584
+ connection_id: string;
3585
+ data: import("./types").Json;
3586
+ floriday_connection_id: string;
3587
+ is_deleted: boolean;
3588
+ sequence_number: number;
3589
+ status: string | null;
3590
+ synced_at: string;
3591
+ };
3592
+ Insert: {
3593
+ buyer_organization_id?: string | null;
3594
+ buyer_organization_name?: string | null;
3595
+ connection_id: string;
3596
+ data: import("./types").Json;
3597
+ floriday_connection_id: string;
3598
+ is_deleted?: boolean;
3599
+ sequence_number: number;
3600
+ status?: string | null;
3601
+ synced_at?: string;
3602
+ };
3603
+ Update: {
3604
+ buyer_organization_id?: string | null;
3605
+ buyer_organization_name?: string | null;
3606
+ connection_id?: string;
3607
+ data?: import("./types").Json;
3608
+ floriday_connection_id?: string;
3609
+ is_deleted?: boolean;
3610
+ sequence_number?: number;
3611
+ status?: string | null;
3612
+ synced_at?: string;
3613
+ };
3614
+ Relationships: [{
3615
+ foreignKeyName: "floriday_connections_cache_connection_id_fkey";
3616
+ columns: ["connection_id"];
3617
+ isOneToOne: false;
3618
+ referencedRelation: "floriday_connections";
3619
+ referencedColumns: ["id"];
3620
+ }];
3621
+ };
3622
+ floriday_contract_trade_item_groups_cache: {
3623
+ Row: {
3624
+ connection_id: string;
3625
+ data: import("./types").Json;
3626
+ fetched_at: string;
3627
+ floriday_id: string;
3628
+ is_deleted: boolean;
3629
+ sequence_number: number;
3630
+ updated_at: string;
3631
+ };
3632
+ Insert: {
3633
+ connection_id: string;
3634
+ data: import("./types").Json;
3635
+ fetched_at?: string;
3636
+ floriday_id: string;
3637
+ is_deleted?: boolean;
3638
+ sequence_number?: number;
3639
+ updated_at?: string;
3640
+ };
3641
+ Update: {
3642
+ connection_id?: string;
3643
+ data?: import("./types").Json;
3644
+ fetched_at?: string;
3645
+ floriday_id?: string;
3646
+ is_deleted?: boolean;
3647
+ sequence_number?: number;
3648
+ updated_at?: string;
3649
+ };
3650
+ Relationships: [{
3651
+ foreignKeyName: "floriday_contract_trade_item_groups_cache_connection_id_fkey";
3652
+ columns: ["connection_id"];
3653
+ isOneToOne: false;
3654
+ referencedRelation: "floriday_connections";
3655
+ referencedColumns: ["id"];
3656
+ }];
3657
+ };
3658
+ floriday_contracts_cache: {
3659
+ Row: {
3660
+ connection_id: string;
3661
+ created_at: string;
3662
+ data: import("./types").Json;
3663
+ fetched_at: string;
3664
+ floriday_id: string;
3665
+ id: string;
3666
+ is_deleted: boolean;
3667
+ sequence_number: number;
3668
+ updated_at: string;
3669
+ };
3670
+ Insert: {
3671
+ connection_id: string;
3672
+ created_at?: string;
3673
+ data: import("./types").Json;
3674
+ fetched_at?: string;
3675
+ floriday_id: string;
3676
+ id?: string;
3677
+ is_deleted?: boolean;
3678
+ sequence_number?: number;
3679
+ updated_at?: string;
3680
+ };
3681
+ Update: {
3682
+ connection_id?: string;
3683
+ created_at?: string;
3684
+ data?: import("./types").Json;
3685
+ fetched_at?: string;
3686
+ floriday_id?: string;
3687
+ id?: string;
3688
+ is_deleted?: boolean;
3689
+ sequence_number?: number;
3690
+ updated_at?: string;
3691
+ };
3692
+ Relationships: [{
3693
+ foreignKeyName: "floriday_contracts_cache_connection_id_fkey";
3694
+ columns: ["connection_id"];
3695
+ isOneToOne: false;
3696
+ referencedRelation: "floriday_connections";
3697
+ referencedColumns: ["id"];
3698
+ }];
3699
+ };
3700
+ floriday_customer_sticker_pdfs_cache: {
3701
+ Row: {
3702
+ byte_size: number | null;
3703
+ connection_id: string;
3704
+ content_type: string;
3705
+ created_at: string;
3706
+ fetched_at: string;
3707
+ id: string;
3708
+ sticker_id: string;
3709
+ storage_path: string;
3710
+ };
3711
+ Insert: {
3712
+ byte_size?: number | null;
3713
+ connection_id: string;
3714
+ content_type?: string;
3715
+ created_at?: string;
3716
+ fetched_at?: string;
3717
+ id?: string;
3718
+ sticker_id: string;
3719
+ storage_path: string;
3720
+ };
3721
+ Update: {
3722
+ byte_size?: number | null;
3723
+ connection_id?: string;
3724
+ content_type?: string;
3725
+ created_at?: string;
3726
+ fetched_at?: string;
3727
+ id?: string;
3728
+ sticker_id?: string;
3729
+ storage_path?: string;
3730
+ };
3731
+ Relationships: [{
3732
+ foreignKeyName: "floriday_customer_sticker_pdfs_cache_connection_id_fkey";
3733
+ columns: ["connection_id"];
3734
+ isOneToOne: false;
3735
+ referencedRelation: "floriday_connections";
3736
+ referencedColumns: ["id"];
3737
+ }];
3738
+ };
3739
+ floriday_customer_stickers_cache: {
3740
+ Row: {
3741
+ connection_id: string;
3742
+ created_at: string;
3743
+ data: import("./types").Json;
3744
+ fetched_at: string;
3745
+ floriday_id: string;
3746
+ id: string;
3747
+ is_deleted: boolean;
3748
+ quantity: number | null;
3749
+ sales_order_id: string | null;
3750
+ sequence_number: number;
3751
+ status: string | null;
3752
+ trade_item_id: string | null;
3753
+ updated_at: string;
3754
+ };
3755
+ Insert: {
3756
+ connection_id: string;
3757
+ created_at?: string;
3758
+ data?: import("./types").Json;
3759
+ fetched_at?: string;
3760
+ floriday_id: string;
3761
+ id?: string;
3762
+ is_deleted?: boolean;
3763
+ quantity?: number | null;
3764
+ sales_order_id?: string | null;
3765
+ sequence_number?: number;
3766
+ status?: string | null;
3767
+ trade_item_id?: string | null;
3768
+ updated_at?: string;
3769
+ };
3770
+ Update: {
3771
+ connection_id?: string;
3772
+ created_at?: string;
3773
+ data?: import("./types").Json;
3774
+ fetched_at?: string;
3775
+ floriday_id?: string;
3776
+ id?: string;
3777
+ is_deleted?: boolean;
3778
+ quantity?: number | null;
3779
+ sales_order_id?: string | null;
3780
+ sequence_number?: number;
3781
+ status?: string | null;
3782
+ trade_item_id?: string | null;
3783
+ updated_at?: string;
3784
+ };
3785
+ Relationships: [{
3786
+ foreignKeyName: "floriday_customer_stickers_cache_connection_id_fkey";
3787
+ columns: ["connection_id"];
3788
+ isOneToOne: false;
3789
+ referencedRelation: "floriday_connections";
3790
+ referencedColumns: ["id"];
3791
+ }];
3792
+ };
3793
+ floriday_customers_cache: {
3794
+ Row: {
3795
+ connection_id: string | null;
3796
+ data: import("./types").Json;
3797
+ fetched_at: string;
3798
+ gln_code: string | null;
3799
+ is_deleted: boolean;
3800
+ name: string | null;
3801
+ organization_id: string;
3802
+ sequence_number: number | null;
3803
+ };
3804
+ Insert: {
3805
+ connection_id?: string | null;
3806
+ data?: import("./types").Json;
3807
+ fetched_at?: string;
3808
+ gln_code?: string | null;
3809
+ is_deleted?: boolean;
3810
+ name?: string | null;
3811
+ organization_id: string;
3812
+ sequence_number?: number | null;
3813
+ };
3814
+ Update: {
3815
+ connection_id?: string | null;
3816
+ data?: import("./types").Json;
3817
+ fetched_at?: string;
3818
+ gln_code?: string | null;
3819
+ is_deleted?: boolean;
3820
+ name?: string | null;
3821
+ organization_id?: string;
3822
+ sequence_number?: number | null;
3823
+ };
3824
+ Relationships: [{
3825
+ foreignKeyName: "floriday_customers_cache_connection_id_fkey";
3826
+ columns: ["connection_id"];
3827
+ isOneToOne: false;
3828
+ referencedRelation: "floriday_connections";
3829
+ referencedColumns: ["id"];
3830
+ }];
3831
+ };
3832
+ floriday_delivery_condition_sets_cache: {
3833
+ Row: {
3834
+ connection_id: string;
3835
+ data: import("./types").Json;
3836
+ fetched_at: string;
3837
+ floriday_id: string;
3838
+ is_deleted: boolean;
3839
+ sequence_number: number;
3840
+ updated_at: string;
3841
+ };
3842
+ Insert: {
3843
+ connection_id: string;
3844
+ data: import("./types").Json;
3845
+ fetched_at?: string;
3846
+ floriday_id: string;
3847
+ is_deleted?: boolean;
3848
+ sequence_number?: number;
3849
+ updated_at?: string;
3850
+ };
3851
+ Update: {
3852
+ connection_id?: string;
3853
+ data?: import("./types").Json;
3854
+ fetched_at?: string;
3855
+ floriday_id?: string;
3856
+ is_deleted?: boolean;
3857
+ sequence_number?: number;
3858
+ updated_at?: string;
3859
+ };
3860
+ Relationships: [{
3861
+ foreignKeyName: "floriday_delivery_condition_sets_cache_connection_id_fkey";
3862
+ columns: ["connection_id"];
3863
+ isOneToOne: false;
3864
+ referencedRelation: "floriday_connections";
3865
+ referencedColumns: ["id"];
3866
+ }];
3867
+ };
3868
+ floriday_delivery_locations_cache: {
3869
+ Row: {
3870
+ connection_id: string;
3871
+ data: import("./types").Json;
3872
+ fetched_at: string;
3873
+ floriday_id: string;
3874
+ gln_code: string | null;
3875
+ id: string;
3876
+ is_deleted: boolean;
3877
+ name: string | null;
3878
+ organization_id: string | null;
3879
+ updated_at: string;
3880
+ };
3881
+ Insert: {
3882
+ connection_id: string;
3883
+ data?: import("./types").Json;
3884
+ fetched_at?: string;
3885
+ floriday_id: string;
3886
+ gln_code?: string | null;
3887
+ id?: string;
3888
+ is_deleted?: boolean;
3889
+ name?: string | null;
3890
+ organization_id?: string | null;
3891
+ updated_at?: string;
3892
+ };
3893
+ Update: {
3894
+ connection_id?: string;
3895
+ data?: import("./types").Json;
3896
+ fetched_at?: string;
3897
+ floriday_id?: string;
3898
+ gln_code?: string | null;
3899
+ id?: string;
3900
+ is_deleted?: boolean;
3901
+ name?: string | null;
3902
+ organization_id?: string | null;
3903
+ updated_at?: string;
3904
+ };
3905
+ Relationships: [{
3906
+ foreignKeyName: "floriday_delivery_locations_cache_connection_id_fkey";
3907
+ columns: ["connection_id"];
3908
+ isOneToOne: false;
3909
+ referencedRelation: "floriday_connections";
3910
+ referencedColumns: ["id"];
3911
+ }];
3912
+ };
3913
+ floriday_delivery_orders_cache: {
3914
+ Row: {
3915
+ auction_date: string | null;
3916
+ connection_id: string;
3917
+ data: import("./types").Json;
3918
+ destination_warehouse_id: string | null;
3919
+ fetched_at: string;
3920
+ floriday_id: string;
3921
+ id: string;
3922
+ is_deleted: boolean;
3923
+ sequence_number: number;
3924
+ status: string | null;
3925
+ trade_item_id: string | null;
3926
+ updated_at: string;
3927
+ };
3928
+ Insert: {
3929
+ auction_date?: string | null;
3930
+ connection_id: string;
3931
+ data?: import("./types").Json;
3932
+ destination_warehouse_id?: string | null;
3933
+ fetched_at?: string;
3934
+ floriday_id: string;
3935
+ id?: string;
3936
+ is_deleted?: boolean;
3937
+ sequence_number?: number;
3938
+ status?: string | null;
3939
+ trade_item_id?: string | null;
3940
+ updated_at?: string;
3941
+ };
3942
+ Update: {
3943
+ auction_date?: string | null;
3944
+ connection_id?: string;
3945
+ data?: import("./types").Json;
3946
+ destination_warehouse_id?: string | null;
3947
+ fetched_at?: string;
3948
+ floriday_id?: string;
3949
+ id?: string;
3950
+ is_deleted?: boolean;
3951
+ sequence_number?: number;
3952
+ status?: string | null;
3953
+ trade_item_id?: string | null;
3954
+ updated_at?: string;
3955
+ };
3956
+ Relationships: [{
3957
+ foreignKeyName: "floriday_delivery_orders_cache_connection_id_fkey";
3958
+ columns: ["connection_id"];
3959
+ isOneToOne: false;
3960
+ referencedRelation: "floriday_connections";
3961
+ referencedColumns: ["id"];
3962
+ }];
3963
+ };
3964
+ floriday_fulfillment_orders_cache: {
3965
+ Row: {
3966
+ auction_date: string | null;
3967
+ connection_id: string;
3968
+ data: import("./types").Json;
3969
+ delivery_order_id: string | null;
3970
+ despatch_warehouse_id: string | null;
3971
+ destination_warehouse_id: string | null;
3972
+ fetched_at: string;
3973
+ floriday_id: string;
3974
+ id: string;
3975
+ is_deleted: boolean | null;
3976
+ latest_delivery_at: string | null;
3977
+ load_carrier_type: string | null;
3978
+ one_label_only: boolean | null;
3979
+ sequence_number: number;
3980
+ status: string | null;
3981
+ };
3982
+ Insert: {
3983
+ auction_date?: string | null;
3984
+ connection_id: string;
3985
+ data: import("./types").Json;
3986
+ delivery_order_id?: string | null;
3987
+ despatch_warehouse_id?: string | null;
3988
+ destination_warehouse_id?: string | null;
3989
+ fetched_at?: string;
3990
+ floriday_id: string;
3991
+ id?: string;
3992
+ is_deleted?: boolean | null;
3993
+ latest_delivery_at?: string | null;
3994
+ load_carrier_type?: string | null;
3995
+ one_label_only?: boolean | null;
3996
+ sequence_number?: number;
3997
+ status?: string | null;
3998
+ };
3999
+ Update: {
4000
+ auction_date?: string | null;
4001
+ connection_id?: string;
4002
+ data?: import("./types").Json;
4003
+ delivery_order_id?: string | null;
4004
+ despatch_warehouse_id?: string | null;
4005
+ destination_warehouse_id?: string | null;
4006
+ fetched_at?: string;
4007
+ floriday_id?: string;
4008
+ id?: string;
4009
+ is_deleted?: boolean | null;
4010
+ latest_delivery_at?: string | null;
4011
+ load_carrier_type?: string | null;
4012
+ one_label_only?: boolean | null;
4013
+ sequence_number?: number;
4014
+ status?: string | null;
4015
+ };
4016
+ Relationships: [{
4017
+ foreignKeyName: "floriday_fulfillment_orders_cache_connection_id_fkey";
4018
+ columns: ["connection_id"];
4019
+ isOneToOne: false;
4020
+ referencedRelation: "floriday_connections";
4021
+ referencedColumns: ["id"];
4022
+ }];
4023
+ };
4024
+ floriday_invoices_cache: {
4025
+ Row: {
4026
+ buyer_organization_id: string | null;
4027
+ connection_id: string;
4028
+ currency: string | null;
4029
+ data: import("./types").Json;
4030
+ fetched_at: string;
4031
+ floriday_id: string;
4032
+ id: string;
4033
+ invoice_date: string | null;
4034
+ invoice_number: string | null;
4035
+ is_deleted: boolean;
4036
+ sequence_number: number;
4037
+ total_amount: number | null;
4038
+ updated_at: string;
4039
+ };
4040
+ Insert: {
4041
+ buyer_organization_id?: string | null;
4042
+ connection_id: string;
4043
+ currency?: string | null;
4044
+ data?: import("./types").Json;
4045
+ fetched_at?: string;
4046
+ floriday_id: string;
4047
+ id?: string;
4048
+ invoice_date?: string | null;
4049
+ invoice_number?: string | null;
4050
+ is_deleted?: boolean;
4051
+ sequence_number?: number;
4052
+ total_amount?: number | null;
4053
+ updated_at?: string;
4054
+ };
4055
+ Update: {
4056
+ buyer_organization_id?: string | null;
4057
+ connection_id?: string;
4058
+ currency?: string | null;
4059
+ data?: import("./types").Json;
4060
+ fetched_at?: string;
4061
+ floriday_id?: string;
4062
+ id?: string;
4063
+ invoice_date?: string | null;
4064
+ invoice_number?: string | null;
4065
+ is_deleted?: boolean;
4066
+ sequence_number?: number;
4067
+ total_amount?: number | null;
4068
+ updated_at?: string;
4069
+ };
4070
+ Relationships: [{
4071
+ foreignKeyName: "floriday_invoices_cache_connection_id_fkey";
4072
+ columns: ["connection_id"];
4073
+ isOneToOne: false;
4074
+ referencedRelation: "floriday_connections";
4075
+ referencedColumns: ["id"];
4076
+ }];
4077
+ };
4078
+ floriday_logistic_labels_cache: {
4079
+ Row: {
4080
+ byte_size: number | null;
4081
+ connection_id: string;
4082
+ content_type: string;
4083
+ fetched_at: string;
4084
+ fulfillment_order_id: string;
4085
+ id: string;
4086
+ logistic_label_code: string;
4087
+ storage_path: string;
4088
+ };
4089
+ Insert: {
4090
+ byte_size?: number | null;
4091
+ connection_id: string;
4092
+ content_type?: string;
4093
+ fetched_at?: string;
4094
+ fulfillment_order_id: string;
4095
+ id?: string;
4096
+ logistic_label_code: string;
4097
+ storage_path: string;
4098
+ };
4099
+ Update: {
4100
+ byte_size?: number | null;
4101
+ connection_id?: string;
4102
+ content_type?: string;
4103
+ fetched_at?: string;
4104
+ fulfillment_order_id?: string;
4105
+ id?: string;
4106
+ logistic_label_code?: string;
4107
+ storage_path?: string;
4108
+ };
4109
+ Relationships: [{
4110
+ foreignKeyName: "floriday_logistic_labels_cache_connection_id_fkey";
4111
+ columns: ["connection_id"];
4112
+ isOneToOne: false;
4113
+ referencedRelation: "floriday_connections";
4114
+ referencedColumns: ["id"];
4115
+ }];
4116
+ };
4117
+ floriday_network_cache: {
4118
+ Row: {
4119
+ city: string | null;
4120
+ connection_id: string;
4121
+ country: string | null;
4122
+ data: import("./types").Json;
4123
+ fetched_at: string;
4124
+ gln: string | null;
4125
+ organization_id: string;
4126
+ organization_name: string | null;
4127
+ };
4128
+ Insert: {
4129
+ city?: string | null;
4130
+ connection_id: string;
4131
+ country?: string | null;
4132
+ data?: import("./types").Json;
4133
+ fetched_at?: string;
4134
+ gln?: string | null;
4135
+ organization_id: string;
4136
+ organization_name?: string | null;
4137
+ };
4138
+ Update: {
4139
+ city?: string | null;
4140
+ connection_id?: string;
4141
+ country?: string | null;
4142
+ data?: import("./types").Json;
4143
+ fetched_at?: string;
4144
+ gln?: string | null;
4145
+ organization_id?: string;
4146
+ organization_name?: string | null;
4147
+ };
4148
+ Relationships: [];
4149
+ };
4150
+ floriday_network_sync_state: {
4151
+ Row: {
4152
+ connection_id: string;
4153
+ last_error: string | null;
4154
+ last_sequence_number: number;
4155
+ last_synced_at: string | null;
4156
+ updated_at: string;
4157
+ };
4158
+ Insert: {
4159
+ connection_id: string;
4160
+ last_error?: string | null;
4161
+ last_sequence_number?: number;
4162
+ last_synced_at?: string | null;
4163
+ updated_at?: string;
4164
+ };
4165
+ Update: {
4166
+ connection_id?: string;
4167
+ last_error?: string | null;
4168
+ last_sequence_number?: number;
4169
+ last_synced_at?: string | null;
4170
+ updated_at?: string;
4171
+ };
4172
+ Relationships: [];
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
+ };
2681
4185
  Update: {
2682
- access_token?: string | null;
2683
- api_key?: string;
2684
- client_id?: string;
2685
- client_secret?: string;
2686
4186
  created_at?: string;
2687
- customers_endpoint?: string | null;
2688
- environment?: string;
2689
- gln_code?: string | null;
2690
- id?: string;
2691
- is_active?: boolean;
2692
- label?: string;
2693
- organization_name?: string | null;
2694
- preferred_warehouse_id?: string | null;
2695
- preferred_warehouse_name?: string | null;
2696
- token_expires_at?: string | null;
2697
- updated_at?: string;
4187
+ floriday_id?: string;
4188
+ order_number?: string;
2698
4189
  };
2699
4190
  Relationships: [];
2700
4191
  };
2701
- floriday_connections_cache: {
4192
+ floriday_packings_cache: {
2702
4193
  Row: {
2703
- buyer_organization_id: string | null;
2704
- buyer_organization_name: string | null;
2705
4194
  connection_id: string;
2706
4195
  data: import("./types").Json;
2707
- floriday_connection_id: string;
4196
+ fetched_at: string;
4197
+ floriday_id: string;
4198
+ id: string;
2708
4199
  is_deleted: boolean;
2709
4200
  sequence_number: number;
2710
- status: string | null;
2711
- synced_at: string;
4201
+ updated_at: string;
2712
4202
  };
2713
4203
  Insert: {
2714
- buyer_organization_id?: string | null;
2715
- buyer_organization_name?: string | null;
2716
4204
  connection_id: string;
2717
- data: import("./types").Json;
2718
- floriday_connection_id: string;
4205
+ data?: import("./types").Json;
4206
+ fetched_at?: string;
4207
+ floriday_id: string;
4208
+ id?: string;
2719
4209
  is_deleted?: boolean;
2720
- sequence_number: number;
2721
- status?: string | null;
2722
- synced_at?: string;
4210
+ sequence_number?: number;
4211
+ updated_at?: string;
2723
4212
  };
2724
4213
  Update: {
2725
- buyer_organization_id?: string | null;
2726
- buyer_organization_name?: string | null;
2727
4214
  connection_id?: string;
2728
4215
  data?: import("./types").Json;
2729
- floriday_connection_id?: string;
4216
+ fetched_at?: string;
4217
+ floriday_id?: string;
4218
+ id?: string;
2730
4219
  is_deleted?: boolean;
2731
4220
  sequence_number?: number;
2732
- status?: string | null;
2733
- synced_at?: string;
4221
+ updated_at?: string;
2734
4222
  };
2735
4223
  Relationships: [{
2736
- foreignKeyName: "floriday_connections_cache_connection_id_fkey";
4224
+ foreignKeyName: "floriday_packings_cache_connection_id_fkey";
2737
4225
  columns: ["connection_id"];
2738
4226
  isOneToOne: false;
2739
4227
  referencedRelation: "floriday_connections";
2740
4228
  referencedColumns: ["id"];
2741
4229
  }];
2742
4230
  };
2743
- floriday_customers_cache: {
4231
+ floriday_price_groups_cache: {
2744
4232
  Row: {
2745
- connection_id: string | null;
4233
+ connection_id: string;
2746
4234
  data: import("./types").Json;
2747
4235
  fetched_at: string;
2748
- organization_id: string;
4236
+ floriday_id: string;
4237
+ is_deleted: boolean;
4238
+ sequence_number: number;
4239
+ updated_at: string;
2749
4240
  };
2750
4241
  Insert: {
2751
- connection_id?: string | null;
2752
- data?: import("./types").Json;
4242
+ connection_id: string;
4243
+ data: import("./types").Json;
2753
4244
  fetched_at?: string;
2754
- organization_id: string;
4245
+ floriday_id: string;
4246
+ is_deleted?: boolean;
4247
+ sequence_number?: number;
4248
+ updated_at?: string;
2755
4249
  };
2756
4250
  Update: {
2757
- connection_id?: string | null;
4251
+ connection_id?: string;
2758
4252
  data?: import("./types").Json;
2759
4253
  fetched_at?: string;
2760
- organization_id?: string;
4254
+ floriday_id?: string;
4255
+ is_deleted?: boolean;
4256
+ sequence_number?: number;
4257
+ updated_at?: string;
2761
4258
  };
2762
4259
  Relationships: [{
2763
- foreignKeyName: "floriday_customers_cache_connection_id_fkey";
4260
+ foreignKeyName: "floriday_price_groups_cache_connection_id_fkey";
2764
4261
  columns: ["connection_id"];
2765
4262
  isOneToOne: false;
2766
4263
  referencedRelation: "floriday_connections";
2767
4264
  referencedColumns: ["id"];
2768
4265
  }];
2769
4266
  };
2770
- floriday_network_cache: {
4267
+ floriday_resource_schemas: {
2771
4268
  Row: {
2772
- city: string | null;
2773
- connection_id: string;
2774
- country: string | null;
2775
- data: import("./types").Json;
4269
+ enums: import("./types").Json;
2776
4270
  fetched_at: string;
2777
- gln: string | null;
2778
- organization_id: string;
2779
- organization_name: string | null;
4271
+ resource: string;
4272
+ schema: import("./types").Json;
4273
+ source_url: string | null;
4274
+ version: string;
2780
4275
  };
2781
4276
  Insert: {
2782
- city?: string | null;
2783
- connection_id: string;
2784
- country?: string | null;
2785
- data?: import("./types").Json;
4277
+ enums?: import("./types").Json;
2786
4278
  fetched_at?: string;
2787
- gln?: string | null;
2788
- organization_id: string;
2789
- organization_name?: string | null;
4279
+ resource: string;
4280
+ schema: import("./types").Json;
4281
+ source_url?: string | null;
4282
+ version: string;
2790
4283
  };
2791
4284
  Update: {
2792
- city?: string | null;
2793
- connection_id?: string;
2794
- country?: string | null;
2795
- data?: import("./types").Json;
4285
+ enums?: import("./types").Json;
2796
4286
  fetched_at?: string;
2797
- gln?: string | null;
2798
- organization_id?: string;
2799
- organization_name?: string | null;
4287
+ resource?: string;
4288
+ schema?: import("./types").Json;
4289
+ source_url?: string | null;
4290
+ version?: string;
2800
4291
  };
2801
4292
  Relationships: [];
2802
4293
  };
2803
- floriday_network_sync_state: {
4294
+ floriday_sales_strategies_cache: {
2804
4295
  Row: {
2805
4296
  connection_id: string;
2806
- last_error: string | null;
2807
- last_sequence_number: number;
2808
- last_synced_at: string | null;
4297
+ data: import("./types").Json;
4298
+ fetched_at: string;
4299
+ floriday_id: string;
4300
+ is_deleted: boolean;
4301
+ sequence_number: number;
2809
4302
  updated_at: string;
2810
4303
  };
2811
4304
  Insert: {
2812
4305
  connection_id: string;
2813
- last_error?: string | null;
2814
- last_sequence_number?: number;
2815
- last_synced_at?: string | null;
4306
+ data: import("./types").Json;
4307
+ fetched_at?: string;
4308
+ floriday_id: string;
4309
+ is_deleted?: boolean;
4310
+ sequence_number?: number;
2816
4311
  updated_at?: string;
2817
4312
  };
2818
4313
  Update: {
2819
4314
  connection_id?: string;
2820
- last_error?: string | null;
2821
- last_sequence_number?: number;
2822
- last_synced_at?: string | null;
4315
+ data?: import("./types").Json;
4316
+ fetched_at?: string;
4317
+ floriday_id?: string;
4318
+ is_deleted?: boolean;
4319
+ sequence_number?: number;
2823
4320
  updated_at?: string;
2824
4321
  };
2825
- Relationships: [];
4322
+ Relationships: [{
4323
+ foreignKeyName: "floriday_sales_strategies_cache_connection_id_fkey";
4324
+ columns: ["connection_id"];
4325
+ isOneToOne: false;
4326
+ referencedRelation: "floriday_connections";
4327
+ referencedColumns: ["id"];
4328
+ }];
2826
4329
  };
2827
4330
  floriday_salesorders_cache: {
2828
4331
  Row: {
@@ -2889,7 +4392,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2889
4392
  connection_id: string;
2890
4393
  entity_type: string;
2891
4394
  last_error: string | null;
4395
+ last_items_processed: number | null;
2892
4396
  last_sequence_number: number;
4397
+ last_success_at: string | null;
2893
4398
  last_synced_at: string | null;
2894
4399
  updated_at: string;
2895
4400
  };
@@ -2897,7 +4402,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2897
4402
  connection_id: string;
2898
4403
  entity_type: string;
2899
4404
  last_error?: string | null;
4405
+ last_items_processed?: number | null;
2900
4406
  last_sequence_number?: number;
4407
+ last_success_at?: string | null;
2901
4408
  last_synced_at?: string | null;
2902
4409
  updated_at?: string;
2903
4410
  };
@@ -2905,7 +4412,9 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2905
4412
  connection_id?: string;
2906
4413
  entity_type?: string;
2907
4414
  last_error?: string | null;
4415
+ last_items_processed?: number | null;
2908
4416
  last_sequence_number?: number;
4417
+ last_success_at?: string | null;
2909
4418
  last_synced_at?: string | null;
2910
4419
  updated_at?: string;
2911
4420
  };
@@ -2946,40 +4455,232 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
2946
4455
  ok?: boolean;
2947
4456
  };
2948
4457
  Relationships: [{
2949
- foreignKeyName: "floriday_token_refresh_log_connection_id_fkey";
4458
+ foreignKeyName: "floriday_token_refresh_log_connection_id_fkey";
4459
+ columns: ["connection_id"];
4460
+ isOneToOne: false;
4461
+ referencedRelation: "floriday_connections";
4462
+ referencedColumns: ["id"];
4463
+ }];
4464
+ };
4465
+ floriday_trade_item_classifications_cache: {
4466
+ Row: {
4467
+ connection_id: string;
4468
+ data: import("./types").Json;
4469
+ fetched_at: string;
4470
+ floriday_id: string;
4471
+ id: string;
4472
+ is_deleted: boolean;
4473
+ sequence_number: number;
4474
+ updated_at: string;
4475
+ };
4476
+ Insert: {
4477
+ connection_id: string;
4478
+ data: import("./types").Json;
4479
+ fetched_at?: string;
4480
+ floriday_id: string;
4481
+ id?: string;
4482
+ is_deleted?: boolean;
4483
+ sequence_number?: number;
4484
+ updated_at?: string;
4485
+ };
4486
+ Update: {
4487
+ connection_id?: string;
4488
+ data?: import("./types").Json;
4489
+ fetched_at?: string;
4490
+ floriday_id?: string;
4491
+ id?: string;
4492
+ is_deleted?: boolean;
4493
+ sequence_number?: number;
4494
+ updated_at?: string;
4495
+ };
4496
+ Relationships: [{
4497
+ foreignKeyName: "floriday_trade_item_classifications_cache_connection_id_fkey";
4498
+ columns: ["connection_id"];
4499
+ isOneToOne: false;
4500
+ referencedRelation: "floriday_connections";
4501
+ referencedColumns: ["id"];
4502
+ }];
4503
+ };
4504
+ floriday_trade_items_cache: {
4505
+ Row: {
4506
+ connection_id: string;
4507
+ data: import("./types").Json;
4508
+ fetched_at: string;
4509
+ floriday_id: string;
4510
+ is_deleted: boolean;
4511
+ sequence_number: number;
4512
+ };
4513
+ Insert: {
4514
+ connection_id: string;
4515
+ data?: import("./types").Json;
4516
+ fetched_at?: string;
4517
+ floriday_id: string;
4518
+ is_deleted?: boolean;
4519
+ sequence_number?: number;
4520
+ };
4521
+ Update: {
4522
+ connection_id?: string;
4523
+ data?: import("./types").Json;
4524
+ fetched_at?: string;
4525
+ floriday_id?: string;
4526
+ is_deleted?: boolean;
4527
+ sequence_number?: number;
4528
+ };
4529
+ Relationships: [{
4530
+ foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4531
+ columns: ["connection_id"];
4532
+ isOneToOne: false;
4533
+ referencedRelation: "floriday_connections";
4534
+ referencedColumns: ["id"];
4535
+ }];
4536
+ };
4537
+ floriday_trips_cache: {
4538
+ Row: {
4539
+ carrier_organization_id: string | null;
4540
+ connection_id: string;
4541
+ data: import("./types").Json;
4542
+ fetched_at: string;
4543
+ floriday_id: string;
4544
+ id: string;
4545
+ is_deleted: boolean;
4546
+ sequence_number: number;
4547
+ status: string | null;
4548
+ trip_date: string | null;
4549
+ updated_at: string;
4550
+ };
4551
+ Insert: {
4552
+ carrier_organization_id?: string | null;
4553
+ connection_id: string;
4554
+ data?: import("./types").Json;
4555
+ fetched_at?: string;
4556
+ floriday_id: string;
4557
+ id?: string;
4558
+ is_deleted?: boolean;
4559
+ sequence_number?: number;
4560
+ status?: string | null;
4561
+ trip_date?: string | null;
4562
+ updated_at?: string;
4563
+ };
4564
+ Update: {
4565
+ carrier_organization_id?: string | null;
4566
+ connection_id?: string;
4567
+ data?: import("./types").Json;
4568
+ fetched_at?: string;
4569
+ floriday_id?: string;
4570
+ id?: string;
4571
+ is_deleted?: boolean;
4572
+ sequence_number?: number;
4573
+ status?: string | null;
4574
+ trip_date?: string | null;
4575
+ updated_at?: string;
4576
+ };
4577
+ Relationships: [{
4578
+ foreignKeyName: "floriday_trips_cache_connection_id_fkey";
2950
4579
  columns: ["connection_id"];
2951
4580
  isOneToOne: false;
2952
4581
  referencedRelation: "floriday_connections";
2953
4582
  referencedColumns: ["id"];
2954
4583
  }];
2955
4584
  };
2956
- floriday_trade_items_cache: {
4585
+ floriday_warehouses_cache: {
2957
4586
  Row: {
2958
4587
  connection_id: string;
2959
4588
  data: import("./types").Json;
2960
4589
  fetched_at: string;
2961
4590
  floriday_id: string;
4591
+ gln_code: string | null;
4592
+ id: string;
4593
+ is_default: boolean;
2962
4594
  is_deleted: boolean;
2963
- sequence_number: number;
4595
+ name: string | null;
4596
+ updated_at: string;
2964
4597
  };
2965
4598
  Insert: {
2966
4599
  connection_id: string;
2967
4600
  data?: import("./types").Json;
2968
4601
  fetched_at?: string;
2969
4602
  floriday_id: string;
4603
+ gln_code?: string | null;
4604
+ id?: string;
4605
+ is_default?: boolean;
2970
4606
  is_deleted?: boolean;
2971
- sequence_number?: number;
4607
+ name?: string | null;
4608
+ updated_at?: string;
2972
4609
  };
2973
4610
  Update: {
2974
4611
  connection_id?: string;
2975
4612
  data?: import("./types").Json;
2976
4613
  fetched_at?: string;
2977
4614
  floriday_id?: string;
4615
+ gln_code?: string | null;
4616
+ id?: string;
4617
+ is_default?: boolean;
2978
4618
  is_deleted?: boolean;
2979
- sequence_number?: number;
4619
+ name?: string | null;
4620
+ updated_at?: string;
2980
4621
  };
2981
4622
  Relationships: [{
2982
- foreignKeyName: "floriday_trade_items_cache_connection_id_fkey";
4623
+ foreignKeyName: "floriday_warehouses_cache_connection_id_fkey";
4624
+ columns: ["connection_id"];
4625
+ isOneToOne: false;
4626
+ referencedRelation: "floriday_connections";
4627
+ referencedColumns: ["id"];
4628
+ }];
4629
+ };
4630
+ floriday_write_log: {
4631
+ Row: {
4632
+ action: string;
4633
+ caller: string;
4634
+ connection_id: string | null;
4635
+ created_at: string;
4636
+ error: string | null;
4637
+ floriday_id: string | null;
4638
+ http_status: number | null;
4639
+ id: string;
4640
+ idempotency_key: string | null;
4641
+ module: string | null;
4642
+ ok: boolean;
4643
+ request: import("./types").Json | null;
4644
+ resource: string;
4645
+ response: import("./types").Json | null;
4646
+ user_id: string | null;
4647
+ };
4648
+ Insert: {
4649
+ action: string;
4650
+ caller?: string;
4651
+ connection_id?: string | null;
4652
+ created_at?: string;
4653
+ error?: string | null;
4654
+ floriday_id?: string | null;
4655
+ http_status?: number | null;
4656
+ id?: string;
4657
+ idempotency_key?: string | null;
4658
+ module?: string | null;
4659
+ ok: boolean;
4660
+ request?: import("./types").Json | null;
4661
+ resource: string;
4662
+ response?: import("./types").Json | null;
4663
+ user_id?: string | null;
4664
+ };
4665
+ Update: {
4666
+ action?: string;
4667
+ caller?: string;
4668
+ connection_id?: string | null;
4669
+ created_at?: string;
4670
+ error?: string | null;
4671
+ floriday_id?: string | null;
4672
+ http_status?: number | null;
4673
+ id?: string;
4674
+ idempotency_key?: string | null;
4675
+ module?: string | null;
4676
+ ok?: boolean;
4677
+ request?: import("./types").Json | null;
4678
+ resource?: string;
4679
+ response?: import("./types").Json | null;
4680
+ user_id?: string | null;
4681
+ };
4682
+ Relationships: [{
4683
+ foreignKeyName: "floriday_write_log_connection_id_fkey";
2983
4684
  columns: ["connection_id"];
2984
4685
  isOneToOne: false;
2985
4686
  referencedRelation: "floriday_connections";
@@ -3335,6 +5036,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3335
5036
  Row: {
3336
5037
  body_html: string | null;
3337
5038
  body_text: string | null;
5039
+ connection_id: string | null;
3338
5040
  created_at: string;
3339
5041
  error_message: string | null;
3340
5042
  external_id: string | null;
@@ -3353,6 +5055,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3353
5055
  Insert: {
3354
5056
  body_html?: string | null;
3355
5057
  body_text?: string | null;
5058
+ connection_id?: string | null;
3356
5059
  created_at?: string;
3357
5060
  error_message?: string | null;
3358
5061
  external_id?: string | null;
@@ -3371,6 +5074,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3371
5074
  Update: {
3372
5075
  body_html?: string | null;
3373
5076
  body_text?: string | null;
5077
+ connection_id?: string | null;
3374
5078
  created_at?: string;
3375
5079
  error_message?: string | null;
3376
5080
  external_id?: string | null;
@@ -3387,6 +5091,18 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3387
5091
  updated_at?: string;
3388
5092
  };
3389
5093
  Relationships: [{
5094
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
5095
+ columns: ["connection_id"];
5096
+ isOneToOne: false;
5097
+ referencedRelation: "email_auth_connections";
5098
+ referencedColumns: ["id"];
5099
+ }, {
5100
+ foreignKeyName: "mailbox_messages_connection_id_fkey";
5101
+ columns: ["connection_id"];
5102
+ isOneToOne: false;
5103
+ referencedRelation: "email_auth_connections_safe";
5104
+ referencedColumns: ["id"];
5105
+ }, {
3390
5106
  foreignKeyName: "mailbox_messages_profile_id_fkey";
3391
5107
  columns: ["profile_id"];
3392
5108
  isOneToOne: false;
@@ -3655,6 +5371,93 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3655
5371
  };
3656
5372
  Relationships: [];
3657
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
+ };
3658
5461
  monteurs: {
3659
5462
  Row: {
3660
5463
  avatar_url: string | null;
@@ -3670,6 +5473,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3670
5473
  role: string;
3671
5474
  tenant_id: string;
3672
5475
  updated_at: string;
5476
+ user_id: string | null;
3673
5477
  };
3674
5478
  Insert: {
3675
5479
  avatar_url?: string | null;
@@ -3685,6 +5489,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3685
5489
  role?: string;
3686
5490
  tenant_id: string;
3687
5491
  updated_at?: string;
5492
+ user_id?: string | null;
3688
5493
  };
3689
5494
  Update: {
3690
5495
  avatar_url?: string | null;
@@ -3700,6 +5505,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3700
5505
  role?: string;
3701
5506
  tenant_id?: string;
3702
5507
  updated_at?: string;
5508
+ user_id?: string | null;
3703
5509
  };
3704
5510
  Relationships: [{
3705
5511
  foreignKeyName: "monteurs_tenant_id_fkey";
@@ -3836,12 +5642,6 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
3836
5642
  isOneToOne: false;
3837
5643
  referencedRelation: "offer_campaigns";
3838
5644
  referencedColumns: ["id"];
3839
- }, {
3840
- foreignKeyName: "offer_campaign_products_product_id_fkey";
3841
- columns: ["product_id"];
3842
- isOneToOne: false;
3843
- referencedRelation: "products";
3844
- referencedColumns: ["id"];
3845
5645
  }];
3846
5646
  };
3847
5647
  offer_campaigns: {
@@ -4117,6 +5917,99 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4117
5917
  };
4118
5918
  Relationships: [];
4119
5919
  };
5920
+ order_cart_items: {
5921
+ Row: {
5922
+ cart_id: string;
5923
+ crates: number;
5924
+ crates_per_layer: number;
5925
+ created_at: string;
5926
+ id: string;
5927
+ order_item_id: string | null;
5928
+ plants_per_crate: number;
5929
+ product_id: string | null;
5930
+ product_name: string;
5931
+ };
5932
+ Insert: {
5933
+ cart_id: string;
5934
+ crates: number;
5935
+ crates_per_layer?: number;
5936
+ created_at?: string;
5937
+ id?: string;
5938
+ order_item_id?: string | null;
5939
+ plants_per_crate?: number;
5940
+ product_id?: string | null;
5941
+ product_name: string;
5942
+ };
5943
+ Update: {
5944
+ cart_id?: string;
5945
+ crates?: number;
5946
+ crates_per_layer?: number;
5947
+ created_at?: string;
5948
+ id?: string;
5949
+ order_item_id?: string | null;
5950
+ plants_per_crate?: number;
5951
+ product_id?: string | null;
5952
+ product_name?: string;
5953
+ };
5954
+ Relationships: [{
5955
+ foreignKeyName: "order_cart_items_cart_id_fkey";
5956
+ columns: ["cart_id"];
5957
+ isOneToOne: false;
5958
+ referencedRelation: "order_carts";
5959
+ referencedColumns: ["id"];
5960
+ }, {
5961
+ foreignKeyName: "order_cart_items_order_item_id_fkey";
5962
+ columns: ["order_item_id"];
5963
+ isOneToOne: false;
5964
+ referencedRelation: "order_items";
5965
+ referencedColumns: ["id"];
5966
+ }, {
5967
+ foreignKeyName: "order_cart_items_product_id_fkey";
5968
+ columns: ["product_id"];
5969
+ isOneToOne: false;
5970
+ referencedRelation: "products";
5971
+ referencedColumns: ["id"];
5972
+ }];
5973
+ };
5974
+ order_carts: {
5975
+ Row: {
5976
+ cart_number: number;
5977
+ created_at: string;
5978
+ id: string;
5979
+ is_auto: boolean;
5980
+ is_complete: boolean;
5981
+ notes: string | null;
5982
+ order_id: string;
5983
+ updated_at: string;
5984
+ };
5985
+ Insert: {
5986
+ cart_number: number;
5987
+ created_at?: string;
5988
+ id?: string;
5989
+ is_auto?: boolean;
5990
+ is_complete?: boolean;
5991
+ notes?: string | null;
5992
+ order_id: string;
5993
+ updated_at?: string;
5994
+ };
5995
+ Update: {
5996
+ cart_number?: number;
5997
+ created_at?: string;
5998
+ id?: string;
5999
+ is_auto?: boolean;
6000
+ is_complete?: boolean;
6001
+ notes?: string | null;
6002
+ order_id?: string;
6003
+ updated_at?: string;
6004
+ };
6005
+ Relationships: [{
6006
+ foreignKeyName: "order_carts_order_id_fkey";
6007
+ columns: ["order_id"];
6008
+ isOneToOne: false;
6009
+ referencedRelation: "orders";
6010
+ referencedColumns: ["id"];
6011
+ }];
6012
+ };
4120
6013
  order_field_options: {
4121
6014
  Row: {
4122
6015
  created_at: string;
@@ -4228,6 +6121,24 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4228
6121
  referencedColumns: ["id"];
4229
6122
  }];
4230
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
+ };
4231
6142
  orders: {
4232
6143
  Row: {
4233
6144
  created_at: string;
@@ -4240,6 +6151,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4240
6151
  notes: string | null;
4241
6152
  order_date: string;
4242
6153
  order_number: string;
6154
+ order_source: string;
4243
6155
  status: string;
4244
6156
  total: string;
4245
6157
  updated_at: string;
@@ -4255,6 +6167,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4255
6167
  notes?: string | null;
4256
6168
  order_date?: string;
4257
6169
  order_number: string;
6170
+ order_source?: string;
4258
6171
  status?: string;
4259
6172
  total?: string;
4260
6173
  updated_at?: string;
@@ -4270,6 +6183,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4270
6183
  notes?: string | null;
4271
6184
  order_date?: string;
4272
6185
  order_number?: string;
6186
+ order_source?: string;
4273
6187
  status?: string;
4274
6188
  total?: string;
4275
6189
  updated_at?: string;
@@ -4492,14 +6406,74 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4492
6406
  updated_at?: string;
4493
6407
  };
4494
6408
  Update: {
4495
- active_per_category?: import("./types").Json;
6409
+ active_per_category?: import("./types").Json;
6410
+ created_at?: string;
6411
+ field_key?: string;
6412
+ field_label?: string;
6413
+ field_type?: string;
6414
+ id?: string;
6415
+ is_custom?: boolean;
6416
+ sort_order?: number;
6417
+ updated_at?: string;
6418
+ };
6419
+ Relationships: [];
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: {
4496
6471
  created_at?: string;
4497
- field_key?: string;
4498
- field_label?: string;
4499
- field_type?: string;
6472
+ description?: string | null;
4500
6473
  id?: string;
4501
- is_custom?: boolean;
4502
- sort_order?: number;
6474
+ is_active?: boolean;
6475
+ name?: string;
6476
+ tenant_id?: string;
4503
6477
  updated_at?: string;
4504
6478
  };
4505
6479
  Relationships: [];
@@ -4508,13 +6482,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4508
6482
  Row: {
4509
6483
  barcode: string | null;
4510
6484
  batch: string;
6485
+ crates_per_layer: number;
4511
6486
  created_at: string;
4512
6487
  custom_fields: import("./types").Json;
4513
6488
  id: string;
4514
6489
  image_url: string | null;
4515
6490
  incoming_quantity: number;
6491
+ layers_per_cart: number;
4516
6492
  location: string;
4517
6493
  min_quantity: number;
6494
+ plants_per_crate: number;
4518
6495
  product: string;
4519
6496
  product_type: string;
4520
6497
  purchase_price: number | null;
@@ -4527,13 +6504,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4527
6504
  Insert: {
4528
6505
  barcode?: string | null;
4529
6506
  batch: string;
6507
+ crates_per_layer?: number;
4530
6508
  created_at?: string;
4531
6509
  custom_fields?: import("./types").Json;
4532
6510
  id?: string;
4533
6511
  image_url?: string | null;
4534
6512
  incoming_quantity?: number;
6513
+ layers_per_cart?: number;
4535
6514
  location: string;
4536
6515
  min_quantity?: number;
6516
+ plants_per_crate?: number;
4537
6517
  product: string;
4538
6518
  product_type?: string;
4539
6519
  purchase_price?: number | null;
@@ -4546,13 +6526,16 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
4546
6526
  Update: {
4547
6527
  barcode?: string | null;
4548
6528
  batch?: string;
6529
+ crates_per_layer?: number;
4549
6530
  created_at?: string;
4550
6531
  custom_fields?: import("./types").Json;
4551
6532
  id?: string;
4552
6533
  image_url?: string | null;
4553
6534
  incoming_quantity?: number;
6535
+ layers_per_cart?: number;
4554
6536
  location?: string;
4555
6537
  min_quantity?: number;
6538
+ plants_per_crate?: number;
4556
6539
  product?: string;
4557
6540
  product_type?: string;
4558
6541
  purchase_price?: number | null;
@@ -5494,12 +7477,153 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5494
7477
  };
5495
7478
  Relationships: [];
5496
7479
  };
7480
+ time_entries: {
7481
+ Row: {
7482
+ created_at: string;
7483
+ employee_id: string;
7484
+ entry_date: string;
7485
+ hours: number;
7486
+ id: string;
7487
+ notes: string | null;
7488
+ overtime: number;
7489
+ undertime: number;
7490
+ updated_at: string;
7491
+ };
7492
+ Insert: {
7493
+ created_at?: string;
7494
+ employee_id: string;
7495
+ entry_date: string;
7496
+ hours?: number;
7497
+ id?: string;
7498
+ notes?: string | null;
7499
+ overtime?: number;
7500
+ undertime?: number;
7501
+ updated_at?: string;
7502
+ };
7503
+ Update: {
7504
+ created_at?: string;
7505
+ employee_id?: string;
7506
+ entry_date?: string;
7507
+ hours?: number;
7508
+ id?: string;
7509
+ notes?: string | null;
7510
+ overtime?: number;
7511
+ undertime?: number;
7512
+ updated_at?: string;
7513
+ };
7514
+ Relationships: [{
7515
+ foreignKeyName: "time_entries_employee_id_fkey";
7516
+ columns: ["employee_id"];
7517
+ isOneToOne: false;
7518
+ referencedRelation: "monteurs";
7519
+ referencedColumns: ["id"];
7520
+ }];
7521
+ };
7522
+ time_logs: {
7523
+ Row: {
7524
+ created_at: string;
7525
+ employee_id: string;
7526
+ end_time: string | null;
7527
+ id: string;
7528
+ notes: string | null;
7529
+ overtime_hours: number;
7530
+ overtime_type: string | null;
7531
+ regular_hours: number;
7532
+ start_time: string;
7533
+ travel_cost: number | null;
7534
+ travel_distance_km: number | null;
7535
+ type: string;
7536
+ updated_at: string;
7537
+ };
7538
+ Insert: {
7539
+ created_at?: string;
7540
+ employee_id: string;
7541
+ end_time?: string | null;
7542
+ id?: string;
7543
+ notes?: string | null;
7544
+ overtime_hours?: number;
7545
+ overtime_type?: string | null;
7546
+ regular_hours?: number;
7547
+ start_time?: string;
7548
+ travel_cost?: number | null;
7549
+ travel_distance_km?: number | null;
7550
+ type: string;
7551
+ updated_at?: string;
7552
+ };
7553
+ Update: {
7554
+ created_at?: string;
7555
+ employee_id?: string;
7556
+ end_time?: string | null;
7557
+ id?: string;
7558
+ notes?: string | null;
7559
+ overtime_hours?: number;
7560
+ overtime_type?: string | null;
7561
+ regular_hours?: number;
7562
+ start_time?: string;
7563
+ travel_cost?: number | null;
7564
+ travel_distance_km?: number | null;
7565
+ type?: string;
7566
+ updated_at?: string;
7567
+ };
7568
+ Relationships: [{
7569
+ foreignKeyName: "time_logs_employee_id_fkey";
7570
+ columns: ["employee_id"];
7571
+ isOneToOne: false;
7572
+ referencedRelation: "monteurs";
7573
+ referencedColumns: ["id"];
7574
+ }];
7575
+ };
7576
+ time_off_entries: {
7577
+ Row: {
7578
+ created_at: string;
7579
+ employee_id: string;
7580
+ entry_date: string;
7581
+ hours: number;
7582
+ id: string;
7583
+ notes: string | null;
7584
+ type: string;
7585
+ updated_at: string;
7586
+ };
7587
+ Insert: {
7588
+ created_at?: string;
7589
+ employee_id: string;
7590
+ entry_date: string;
7591
+ hours?: number;
7592
+ id?: string;
7593
+ notes?: string | null;
7594
+ type: string;
7595
+ updated_at?: string;
7596
+ };
7597
+ Update: {
7598
+ created_at?: string;
7599
+ employee_id?: string;
7600
+ entry_date?: string;
7601
+ hours?: number;
7602
+ id?: string;
7603
+ notes?: string | null;
7604
+ type?: string;
7605
+ updated_at?: string;
7606
+ };
7607
+ Relationships: [{
7608
+ foreignKeyName: "time_off_entries_employee_id_fkey";
7609
+ columns: ["employee_id"];
7610
+ isOneToOne: false;
7611
+ referencedRelation: "monteurs";
7612
+ referencedColumns: ["id"];
7613
+ }];
7614
+ };
5497
7615
  trade_item_drafts: {
5498
7616
  Row: {
5499
7617
  connection_id: string | null;
5500
7618
  created_at: string;
5501
7619
  data: import("./types").Json;
7620
+ floriday_id: string | null;
7621
+ floriday_link_error: string | null;
7622
+ floriday_link_status: string;
5502
7623
  id: string;
7624
+ last_floriday_sync_at: string | null;
7625
+ missing_required_fields: string[];
7626
+ source: string;
5503
7627
  updated_at: string;
5504
7628
  user_id: string;
5505
7629
  };
@@ -5507,7 +7631,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5507
7631
  connection_id?: string | null;
5508
7632
  created_at?: string;
5509
7633
  data?: import("./types").Json;
7634
+ floriday_id?: string | null;
7635
+ floriday_link_error?: string | null;
7636
+ floriday_link_status?: string;
5510
7637
  id?: string;
7638
+ last_floriday_sync_at?: string | null;
7639
+ missing_required_fields?: string[];
7640
+ source?: string;
5511
7641
  updated_at?: string;
5512
7642
  user_id: string;
5513
7643
  };
@@ -5515,7 +7645,55 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5515
7645
  connection_id?: string | null;
5516
7646
  created_at?: string;
5517
7647
  data?: import("./types").Json;
7648
+ floriday_id?: string | null;
7649
+ floriday_link_error?: string | null;
7650
+ floriday_link_status?: string;
7651
+ id?: string;
7652
+ last_floriday_sync_at?: string | null;
7653
+ missing_required_fields?: string[];
7654
+ source?: string;
7655
+ updated_at?: string;
7656
+ user_id?: string;
7657
+ };
7658
+ Relationships: [];
7659
+ };
7660
+ trade_item_stock: {
7661
+ Row: {
7662
+ connection_id: string;
7663
+ created_at: string;
7664
+ id: string;
7665
+ incoming_stock: number;
7666
+ minimum_stock: number;
7667
+ notes: string | null;
7668
+ physical_stock: number;
7669
+ reserved_stock: number;
7670
+ trade_item_key: string;
7671
+ updated_at: string;
7672
+ user_id: string;
7673
+ };
7674
+ Insert: {
7675
+ connection_id: string;
7676
+ created_at?: string;
7677
+ id?: string;
7678
+ incoming_stock?: number;
7679
+ minimum_stock?: number;
7680
+ notes?: string | null;
7681
+ physical_stock?: number;
7682
+ reserved_stock?: number;
7683
+ trade_item_key: string;
7684
+ updated_at?: string;
7685
+ user_id: string;
7686
+ };
7687
+ Update: {
7688
+ connection_id?: string;
7689
+ created_at?: string;
5518
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;
5519
7697
  updated_at?: string;
5520
7698
  user_id?: string;
5521
7699
  };
@@ -5865,6 +8043,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5865
8043
  };
5866
8044
  twinfield_invoice_sync_logs: {
5867
8045
  Row: {
8046
+ action_type: string | null;
5868
8047
  created_at: string;
5869
8048
  details: import("./types").Json | null;
5870
8049
  duration_ms: number | null;
@@ -5877,6 +8056,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5877
8056
  user_id: string;
5878
8057
  };
5879
8058
  Insert: {
8059
+ action_type?: string | null;
5880
8060
  created_at?: string;
5881
8061
  details?: import("./types").Json | null;
5882
8062
  duration_ms?: number | null;
@@ -5889,6 +8069,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
5889
8069
  user_id: string;
5890
8070
  };
5891
8071
  Update: {
8072
+ action_type?: string | null;
5892
8073
  created_at?: string;
5893
8074
  details?: import("./types").Json | null;
5894
8075
  duration_ms?: number | null;
@@ -6124,6 +8305,57 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6124
8305
  referencedColumns: ["id"];
6125
8306
  }];
6126
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
+ };
6127
8359
  twinfield_settings: {
6128
8360
  Row: {
6129
8361
  active_environment: string;
@@ -6235,6 +8467,117 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6235
8467
  referencedColumns: ["id"];
6236
8468
  }];
6237
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
+ };
8536
+ voorraad_publish_attempts: {
8537
+ Row: {
8538
+ action: string;
8539
+ connection_id: string | null;
8540
+ created_at: string;
8541
+ error: string | null;
8542
+ gateway_attempt_id: string | null;
8543
+ gateway_status: number | null;
8544
+ id: string;
8545
+ intent: string;
8546
+ ok: boolean;
8547
+ request_summary: import("./types").Json | null;
8548
+ trade_item_id: string | null;
8549
+ user_id: string;
8550
+ };
8551
+ Insert: {
8552
+ action: string;
8553
+ connection_id?: string | null;
8554
+ created_at?: string;
8555
+ error?: string | null;
8556
+ gateway_attempt_id?: string | null;
8557
+ gateway_status?: number | null;
8558
+ id?: string;
8559
+ intent: string;
8560
+ ok: boolean;
8561
+ request_summary?: import("./types").Json | null;
8562
+ trade_item_id?: string | null;
8563
+ user_id: string;
8564
+ };
8565
+ Update: {
8566
+ action?: string;
8567
+ connection_id?: string | null;
8568
+ created_at?: string;
8569
+ error?: string | null;
8570
+ gateway_attempt_id?: string | null;
8571
+ gateway_status?: number | null;
8572
+ id?: string;
8573
+ intent?: string;
8574
+ ok?: boolean;
8575
+ request_summary?: import("./types").Json | null;
8576
+ trade_item_id?: string | null;
8577
+ user_id?: string;
8578
+ };
8579
+ Relationships: [];
8580
+ };
6238
8581
  work_order_monteurs: {
6239
8582
  Row: {
6240
8583
  created_at: string;
@@ -6594,6 +8937,35 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6594
8937
  };
6595
8938
  Relationships: [];
6596
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
+ };
6597
8969
  v_external_customers_exact: {
6598
8970
  Row: {
6599
8971
  account_number: string | null;
@@ -6837,13 +9209,81 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6837
9209
  referencedColumns: ["id"];
6838
9210
  }];
6839
9211
  };
6840
- };
6841
- Functions: {
6842
- call_exact_route: {
9212
+ };
9213
+ Functions: {
9214
+ _floriday_schedule_job: {
9215
+ Args: {
9216
+ p_apikey: string;
9217
+ p_jobname: string;
9218
+ p_schedule: string;
9219
+ p_timeout_ms: number;
9220
+ p_url: string;
9221
+ };
9222
+ Returns: number;
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
+ };
9247
+ call_exact_route: {
9248
+ Args: {
9249
+ path: string;
9250
+ };
9251
+ Returns: number;
9252
+ };
9253
+ cleanup_old_bookings: {
9254
+ Args: never;
9255
+ Returns: number;
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
+ };
9273
+ current_monteur_id: {
9274
+ Args: never;
9275
+ Returns: string;
9276
+ };
9277
+ dashboard_alert_counts: {
9278
+ Args: never;
9279
+ Returns: import("./types").Json;
9280
+ };
9281
+ dashboard_alert_rows: {
6843
9282
  Args: {
6844
- path: string;
9283
+ check_id: string;
9284
+ row_limit?: number;
6845
9285
  };
6846
- Returns: number;
9286
+ Returns: import("./types").Json;
6847
9287
  };
6848
9288
  dashboard_list_public_schema: {
6849
9289
  Args: never;
@@ -6925,6 +9365,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6925
9365
  };
6926
9366
  Returns: boolean;
6927
9367
  };
9368
+ format_cart_number: {
9369
+ Args: {
9370
+ p_pick_date: string;
9371
+ p_seq: number;
9372
+ };
9373
+ Returns: string;
9374
+ };
6928
9375
  get_active_floriday_connection_public: {
6929
9376
  Args: never;
6930
9377
  Returns: {
@@ -6949,6 +9396,32 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6949
9396
  office_code: string;
6950
9397
  }[];
6951
9398
  };
9399
+ get_floriday_agreements_active: {
9400
+ Args: {
9401
+ p_on_date?: string;
9402
+ };
9403
+ Returns: {
9404
+ buyer_organization_id: string;
9405
+ data: import("./types").Json;
9406
+ floriday_id: string;
9407
+ status: string;
9408
+ valid_from: string;
9409
+ valid_until: string;
9410
+ }[];
9411
+ };
9412
+ get_floriday_clock_supplies_window: {
9413
+ Args: {
9414
+ p_from: string;
9415
+ p_to: string;
9416
+ };
9417
+ Returns: {
9418
+ auction_date: string;
9419
+ data: import("./types").Json;
9420
+ floriday_id: string;
9421
+ status: string;
9422
+ trade_item_id: string;
9423
+ }[];
9424
+ };
6952
9425
  get_floriday_cron_jobs: {
6953
9426
  Args: never;
6954
9427
  Returns: {
@@ -6958,12 +9431,68 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
6958
9431
  url: string;
6959
9432
  }[];
6960
9433
  };
9434
+ get_floriday_delivery_locations: {
9435
+ Args: {
9436
+ p_organization_id: string;
9437
+ };
9438
+ Returns: {
9439
+ data: import("./types").Json;
9440
+ floriday_id: string;
9441
+ gln_code: string;
9442
+ name: string;
9443
+ }[];
9444
+ };
9445
+ get_floriday_fulfillment_orders_window: {
9446
+ Args: {
9447
+ p_from: string;
9448
+ p_to: string;
9449
+ };
9450
+ Returns: {
9451
+ auction_date: string;
9452
+ data: import("./types").Json;
9453
+ delivery_order_id: string;
9454
+ destination_warehouse_id: string;
9455
+ floriday_id: string;
9456
+ status: string;
9457
+ }[];
9458
+ };
9459
+ get_floriday_sales_orders_window: {
9460
+ Args: {
9461
+ p_from: string;
9462
+ p_to: string;
9463
+ };
9464
+ Returns: {
9465
+ buyer_organization_id: string;
9466
+ data: import("./types").Json;
9467
+ floriday_id: string;
9468
+ status: string;
9469
+ updated_at: string;
9470
+ }[];
9471
+ };
9472
+ get_floriday_sync_health: {
9473
+ Args: never;
9474
+ Returns: {
9475
+ entity_type: string;
9476
+ last_error: string;
9477
+ last_items_processed: number;
9478
+ last_sequence_number: number;
9479
+ last_success_at: string;
9480
+ last_synced_at: string;
9481
+ minutes_since_success: number;
9482
+ }[];
9483
+ };
6961
9484
  get_offer_by_link_code: {
6962
9485
  Args: {
6963
9486
  p_code: string;
6964
9487
  };
6965
9488
  Returns: import("./types").Json;
6966
9489
  };
9490
+ get_or_assign_floriday_order_number: {
9491
+ Args: {
9492
+ p_floriday_id: string;
9493
+ };
9494
+ Returns: string;
9495
+ };
6967
9496
  get_room_busy_windows: {
6968
9497
  Args: {
6969
9498
  p_from: string;
@@ -7010,6 +9539,12 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7010
9539
  Args: never;
7011
9540
  Returns: boolean;
7012
9541
  };
9542
+ next_order_number: {
9543
+ Args: {
9544
+ p_prefix: string;
9545
+ };
9546
+ Returns: string;
9547
+ };
7013
9548
  next_work_order_number: {
7014
9549
  Args: {
7015
9550
  p_parent_work_order_id?: string;
@@ -7023,6 +9558,89 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7023
9558
  };
7024
9559
  Returns: string;
7025
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
+ };
9602
+ reset_floriday_sync_cursor: {
9603
+ Args: {
9604
+ p_connection_id: string;
9605
+ p_entity_type: string;
9606
+ };
9607
+ Returns: undefined;
9608
+ };
9609
+ schedule_floriday_additional_services_sync: {
9610
+ Args: {
9611
+ p_apikey: string;
9612
+ p_url: string;
9613
+ };
9614
+ Returns: number;
9615
+ };
9616
+ schedule_floriday_agreement_calloffs_sync: {
9617
+ Args: {
9618
+ p_apikey: string;
9619
+ p_url: string;
9620
+ };
9621
+ Returns: number;
9622
+ };
9623
+ schedule_floriday_agreements_sync: {
9624
+ Args: {
9625
+ p_apikey: string;
9626
+ p_url: string;
9627
+ };
9628
+ Returns: number;
9629
+ };
9630
+ schedule_floriday_base_items_sync: {
9631
+ Args: {
9632
+ p_apikey: string;
9633
+ p_url: string;
9634
+ };
9635
+ Returns: number;
9636
+ };
9637
+ schedule_floriday_blanket_orders_sync: {
9638
+ Args: {
9639
+ p_apikey: string;
9640
+ p_url: string;
9641
+ };
9642
+ Returns: number;
9643
+ };
7026
9644
  schedule_floriday_carriers_sync: {
7027
9645
  Args: {
7028
9646
  p_apikey: string;
@@ -7030,6 +9648,34 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7030
9648
  };
7031
9649
  Returns: number;
7032
9650
  };
9651
+ schedule_floriday_clock_presales_sync: {
9652
+ Args: {
9653
+ p_apikey: string;
9654
+ p_url: string;
9655
+ };
9656
+ Returns: number;
9657
+ };
9658
+ schedule_floriday_clock_supplies_sync: {
9659
+ Args: {
9660
+ p_apikey: string;
9661
+ p_url: string;
9662
+ };
9663
+ Returns: number;
9664
+ };
9665
+ schedule_floriday_collections_sync: {
9666
+ Args: {
9667
+ p_apikey: string;
9668
+ p_url: string;
9669
+ };
9670
+ Returns: number;
9671
+ };
9672
+ schedule_floriday_commercial_service_types_sync: {
9673
+ Args: {
9674
+ p_apikey: string;
9675
+ p_url: string;
9676
+ };
9677
+ Returns: number;
9678
+ };
7033
9679
  schedule_floriday_connections_sync: {
7034
9680
  Args: {
7035
9681
  p_apikey: string;
@@ -7037,6 +9683,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7037
9683
  };
7038
9684
  Returns: number;
7039
9685
  };
9686
+ schedule_floriday_contract_trade_item_groups_sync: {
9687
+ Args: {
9688
+ p_apikey: string;
9689
+ p_url: string;
9690
+ };
9691
+ Returns: number;
9692
+ };
9693
+ schedule_floriday_contracts_sync: {
9694
+ Args: {
9695
+ p_apikey: string;
9696
+ p_url: string;
9697
+ };
9698
+ Returns: number;
9699
+ };
7040
9700
  schedule_floriday_customer_organizations_sync: {
7041
9701
  Args: {
7042
9702
  p_apikey: string;
@@ -7044,6 +9704,48 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7044
9704
  };
7045
9705
  Returns: number;
7046
9706
  };
9707
+ schedule_floriday_customer_stickers_sync: {
9708
+ Args: {
9709
+ p_apikey: string;
9710
+ p_url: string;
9711
+ };
9712
+ Returns: number;
9713
+ };
9714
+ schedule_floriday_delivery_condition_sets_sync: {
9715
+ Args: {
9716
+ p_apikey: string;
9717
+ p_url: string;
9718
+ };
9719
+ Returns: number;
9720
+ };
9721
+ schedule_floriday_delivery_locations_sync: {
9722
+ Args: {
9723
+ p_apikey: string;
9724
+ p_url: string;
9725
+ };
9726
+ Returns: number;
9727
+ };
9728
+ schedule_floriday_delivery_orders_sync: {
9729
+ Args: {
9730
+ p_apikey: string;
9731
+ p_url: string;
9732
+ };
9733
+ Returns: number;
9734
+ };
9735
+ schedule_floriday_fulfillment_orders_sync: {
9736
+ Args: {
9737
+ p_apikey: string;
9738
+ p_url: string;
9739
+ };
9740
+ Returns: number;
9741
+ };
9742
+ schedule_floriday_invoices_sync: {
9743
+ Args: {
9744
+ p_apikey: string;
9745
+ p_url: string;
9746
+ };
9747
+ Returns: number;
9748
+ };
7047
9749
  schedule_floriday_network_sync: {
7048
9750
  Args: {
7049
9751
  p_apikey: string;
@@ -7051,6 +9753,34 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7051
9753
  };
7052
9754
  Returns: number;
7053
9755
  };
9756
+ schedule_floriday_packings_sync: {
9757
+ Args: {
9758
+ p_apikey: string;
9759
+ p_url: string;
9760
+ };
9761
+ Returns: number;
9762
+ };
9763
+ schedule_floriday_price_groups_sync: {
9764
+ Args: {
9765
+ p_apikey: string;
9766
+ p_url: string;
9767
+ };
9768
+ Returns: number;
9769
+ };
9770
+ schedule_floriday_reference_data_refresh: {
9771
+ Args: {
9772
+ p_apikey: string;
9773
+ p_url: string;
9774
+ };
9775
+ Returns: number;
9776
+ };
9777
+ schedule_floriday_sales_strategies_sync: {
9778
+ Args: {
9779
+ p_apikey: string;
9780
+ p_url: string;
9781
+ };
9782
+ Returns: number;
9783
+ };
7054
9784
  schedule_floriday_salesorders_sync: {
7055
9785
  Args: {
7056
9786
  p_apikey: string;
@@ -7065,6 +9795,13 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7065
9795
  };
7066
9796
  Returns: number;
7067
9797
  };
9798
+ schedule_floriday_trade_item_classifications_sync: {
9799
+ Args: {
9800
+ p_apikey: string;
9801
+ p_url: string;
9802
+ };
9803
+ Returns: number;
9804
+ };
7068
9805
  schedule_floriday_trade_items_sync: {
7069
9806
  Args: {
7070
9807
  p_apikey: string;
@@ -7072,6 +9809,20 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7072
9809
  };
7073
9810
  Returns: number;
7074
9811
  };
9812
+ schedule_floriday_trips_sync: {
9813
+ Args: {
9814
+ p_apikey: string;
9815
+ p_url: string;
9816
+ };
9817
+ Returns: number;
9818
+ };
9819
+ schedule_floriday_warehouses_sync: {
9820
+ Args: {
9821
+ p_apikey: string;
9822
+ p_url: string;
9823
+ };
9824
+ Returns: number;
9825
+ };
7075
9826
  schedule_twinfield_customers_sync: {
7076
9827
  Args: {
7077
9828
  p_apikey: string;
@@ -7146,7 +9897,7 @@ export declare const supabase: import("@supabase/supabase-js").SupabaseClient<Da
7146
9897
  };
7147
9898
  };
7148
9899
  Enums: {
7149
- app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie";
9900
+ app_role: "admin" | "manager" | "warehouse" | "sales" | "developer" | "receptie" | "monteur";
7150
9901
  exact_env: "staging" | "live";
7151
9902
  exact_push_status: "pending" | "sent" | "error";
7152
9903
  quote_status: "concept" | "verzonden" | "bekeken" | "in_behandeling" | "geaccepteerd" | "afgewezen" | "verlopen" | "gearchiveerd";