@flowselections/floriday-voorraad 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.
- package/dist-lib/components/voorraad/VoorraadPage.d.ts +2 -0
- package/dist-lib/components/voorraad/VoorraadPage.d.ts.map +1 -0
- package/dist-lib/components/voorraad/VoorraadPage.js +23 -0
- package/dist-lib/index.d.ts +1 -1
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/index.js +1 -1
- package/dist-lib/integrations/supabase/auth-middleware.d.ts +1123 -128
- package/dist-lib/integrations/supabase/auth-middleware.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.d.ts +1123 -128
- package/dist-lib/integrations/supabase/client.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/client.server.d.ts +1123 -128
- package/dist-lib/integrations/supabase/client.server.d.ts.map +1 -1
- package/dist-lib/integrations/supabase/types.d.ts +1144 -115
- package/dist-lib/integrations/supabase/types.d.ts.map +1 -1
- package/package.json +15 -4
|
@@ -476,6 +476,276 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
476
476
|
};
|
|
477
477
|
Relationships: [];
|
|
478
478
|
};
|
|
479
|
+
dashboard_ai_conversations: {
|
|
480
|
+
Row: {
|
|
481
|
+
created_at: string;
|
|
482
|
+
id: string;
|
|
483
|
+
messages: import("./types").Json;
|
|
484
|
+
page_id: string | null;
|
|
485
|
+
title: string | null;
|
|
486
|
+
updated_at: string;
|
|
487
|
+
user_id: string;
|
|
488
|
+
};
|
|
489
|
+
Insert: {
|
|
490
|
+
created_at?: string;
|
|
491
|
+
id?: string;
|
|
492
|
+
messages?: import("./types").Json;
|
|
493
|
+
page_id?: string | null;
|
|
494
|
+
title?: string | null;
|
|
495
|
+
updated_at?: string;
|
|
496
|
+
user_id: string;
|
|
497
|
+
};
|
|
498
|
+
Update: {
|
|
499
|
+
created_at?: string;
|
|
500
|
+
id?: string;
|
|
501
|
+
messages?: import("./types").Json;
|
|
502
|
+
page_id?: string | null;
|
|
503
|
+
title?: string | null;
|
|
504
|
+
updated_at?: string;
|
|
505
|
+
user_id?: string;
|
|
506
|
+
};
|
|
507
|
+
Relationships: [{
|
|
508
|
+
foreignKeyName: "dashboard_ai_conversations_page_id_fkey";
|
|
509
|
+
columns: ["page_id"];
|
|
510
|
+
isOneToOne: false;
|
|
511
|
+
referencedRelation: "dashboard_pages";
|
|
512
|
+
referencedColumns: ["id"];
|
|
513
|
+
}];
|
|
514
|
+
};
|
|
515
|
+
dashboard_alert_events: {
|
|
516
|
+
Row: {
|
|
517
|
+
acknowledged: boolean;
|
|
518
|
+
block_id: string;
|
|
519
|
+
created_at: string;
|
|
520
|
+
id: string;
|
|
521
|
+
message: string | null;
|
|
522
|
+
page_id: string;
|
|
523
|
+
severity: string;
|
|
524
|
+
threshold: number | null;
|
|
525
|
+
user_id: string;
|
|
526
|
+
value: number | null;
|
|
527
|
+
};
|
|
528
|
+
Insert: {
|
|
529
|
+
acknowledged?: boolean;
|
|
530
|
+
block_id: string;
|
|
531
|
+
created_at?: string;
|
|
532
|
+
id?: string;
|
|
533
|
+
message?: string | null;
|
|
534
|
+
page_id: string;
|
|
535
|
+
severity?: string;
|
|
536
|
+
threshold?: number | null;
|
|
537
|
+
user_id: string;
|
|
538
|
+
value?: number | null;
|
|
539
|
+
};
|
|
540
|
+
Update: {
|
|
541
|
+
acknowledged?: boolean;
|
|
542
|
+
block_id?: string;
|
|
543
|
+
created_at?: string;
|
|
544
|
+
id?: string;
|
|
545
|
+
message?: string | null;
|
|
546
|
+
page_id?: string;
|
|
547
|
+
severity?: string;
|
|
548
|
+
threshold?: number | null;
|
|
549
|
+
user_id?: string;
|
|
550
|
+
value?: number | null;
|
|
551
|
+
};
|
|
552
|
+
Relationships: [{
|
|
553
|
+
foreignKeyName: "dashboard_alert_events_block_id_fkey";
|
|
554
|
+
columns: ["block_id"];
|
|
555
|
+
isOneToOne: false;
|
|
556
|
+
referencedRelation: "dashboard_blocks";
|
|
557
|
+
referencedColumns: ["id"];
|
|
558
|
+
}, {
|
|
559
|
+
foreignKeyName: "dashboard_alert_events_page_id_fkey";
|
|
560
|
+
columns: ["page_id"];
|
|
561
|
+
isOneToOne: false;
|
|
562
|
+
referencedRelation: "dashboard_pages";
|
|
563
|
+
referencedColumns: ["id"];
|
|
564
|
+
}];
|
|
565
|
+
};
|
|
566
|
+
dashboard_block_templates: {
|
|
567
|
+
Row: {
|
|
568
|
+
config: import("./types").Json;
|
|
569
|
+
created_at: string;
|
|
570
|
+
description: string | null;
|
|
571
|
+
id: string;
|
|
572
|
+
is_public: boolean;
|
|
573
|
+
name: string;
|
|
574
|
+
type: string;
|
|
575
|
+
updated_at: string;
|
|
576
|
+
user_id: string;
|
|
577
|
+
};
|
|
578
|
+
Insert: {
|
|
579
|
+
config?: import("./types").Json;
|
|
580
|
+
created_at?: string;
|
|
581
|
+
description?: string | null;
|
|
582
|
+
id?: string;
|
|
583
|
+
is_public?: boolean;
|
|
584
|
+
name: string;
|
|
585
|
+
type: string;
|
|
586
|
+
updated_at?: string;
|
|
587
|
+
user_id: string;
|
|
588
|
+
};
|
|
589
|
+
Update: {
|
|
590
|
+
config?: import("./types").Json;
|
|
591
|
+
created_at?: string;
|
|
592
|
+
description?: string | null;
|
|
593
|
+
id?: string;
|
|
594
|
+
is_public?: boolean;
|
|
595
|
+
name?: string;
|
|
596
|
+
type?: string;
|
|
597
|
+
updated_at?: string;
|
|
598
|
+
user_id?: string;
|
|
599
|
+
};
|
|
600
|
+
Relationships: [];
|
|
601
|
+
};
|
|
602
|
+
dashboard_blocks: {
|
|
603
|
+
Row: {
|
|
604
|
+
config: import("./types").Json;
|
|
605
|
+
created_at: string;
|
|
606
|
+
filters: import("./types").Json;
|
|
607
|
+
id: string;
|
|
608
|
+
layout: import("./types").Json;
|
|
609
|
+
page_id: string;
|
|
610
|
+
permissions: import("./types").Json;
|
|
611
|
+
sort_order: number;
|
|
612
|
+
title: string;
|
|
613
|
+
type: string;
|
|
614
|
+
updated_at: string;
|
|
615
|
+
};
|
|
616
|
+
Insert: {
|
|
617
|
+
config?: import("./types").Json;
|
|
618
|
+
created_at?: string;
|
|
619
|
+
filters?: import("./types").Json;
|
|
620
|
+
id?: string;
|
|
621
|
+
layout?: import("./types").Json;
|
|
622
|
+
page_id: string;
|
|
623
|
+
permissions?: import("./types").Json;
|
|
624
|
+
sort_order?: number;
|
|
625
|
+
title: string;
|
|
626
|
+
type: string;
|
|
627
|
+
updated_at?: string;
|
|
628
|
+
};
|
|
629
|
+
Update: {
|
|
630
|
+
config?: import("./types").Json;
|
|
631
|
+
created_at?: string;
|
|
632
|
+
filters?: import("./types").Json;
|
|
633
|
+
id?: string;
|
|
634
|
+
layout?: import("./types").Json;
|
|
635
|
+
page_id?: string;
|
|
636
|
+
permissions?: import("./types").Json;
|
|
637
|
+
sort_order?: number;
|
|
638
|
+
title?: string;
|
|
639
|
+
type?: string;
|
|
640
|
+
updated_at?: string;
|
|
641
|
+
};
|
|
642
|
+
Relationships: [{
|
|
643
|
+
foreignKeyName: "dashboard_blocks_page_id_fkey";
|
|
644
|
+
columns: ["page_id"];
|
|
645
|
+
isOneToOne: false;
|
|
646
|
+
referencedRelation: "dashboard_pages";
|
|
647
|
+
referencedColumns: ["id"];
|
|
648
|
+
}];
|
|
649
|
+
};
|
|
650
|
+
dashboard_daily_reports: {
|
|
651
|
+
Row: {
|
|
652
|
+
created_at: string;
|
|
653
|
+
highlights: import("./types").Json | null;
|
|
654
|
+
id: string;
|
|
655
|
+
page_id: string;
|
|
656
|
+
summary: string;
|
|
657
|
+
user_id: string;
|
|
658
|
+
};
|
|
659
|
+
Insert: {
|
|
660
|
+
created_at?: string;
|
|
661
|
+
highlights?: import("./types").Json | null;
|
|
662
|
+
id?: string;
|
|
663
|
+
page_id: string;
|
|
664
|
+
summary: string;
|
|
665
|
+
user_id: string;
|
|
666
|
+
};
|
|
667
|
+
Update: {
|
|
668
|
+
created_at?: string;
|
|
669
|
+
highlights?: import("./types").Json | null;
|
|
670
|
+
id?: string;
|
|
671
|
+
page_id?: string;
|
|
672
|
+
summary?: string;
|
|
673
|
+
user_id?: string;
|
|
674
|
+
};
|
|
675
|
+
Relationships: [{
|
|
676
|
+
foreignKeyName: "dashboard_daily_reports_page_id_fkey";
|
|
677
|
+
columns: ["page_id"];
|
|
678
|
+
isOneToOne: false;
|
|
679
|
+
referencedRelation: "dashboard_pages";
|
|
680
|
+
referencedColumns: ["id"];
|
|
681
|
+
}];
|
|
682
|
+
};
|
|
683
|
+
dashboard_pages: {
|
|
684
|
+
Row: {
|
|
685
|
+
created_at: string;
|
|
686
|
+
icon: string | null;
|
|
687
|
+
id: string;
|
|
688
|
+
is_default: boolean;
|
|
689
|
+
name: string;
|
|
690
|
+
shared_with: string[];
|
|
691
|
+
sort_order: number;
|
|
692
|
+
updated_at: string;
|
|
693
|
+
user_id: string;
|
|
694
|
+
};
|
|
695
|
+
Insert: {
|
|
696
|
+
created_at?: string;
|
|
697
|
+
icon?: string | null;
|
|
698
|
+
id?: string;
|
|
699
|
+
is_default?: boolean;
|
|
700
|
+
name: string;
|
|
701
|
+
shared_with?: string[];
|
|
702
|
+
sort_order?: number;
|
|
703
|
+
updated_at?: string;
|
|
704
|
+
user_id: string;
|
|
705
|
+
};
|
|
706
|
+
Update: {
|
|
707
|
+
created_at?: string;
|
|
708
|
+
icon?: string | null;
|
|
709
|
+
id?: string;
|
|
710
|
+
is_default?: boolean;
|
|
711
|
+
name?: string;
|
|
712
|
+
shared_with?: string[];
|
|
713
|
+
sort_order?: number;
|
|
714
|
+
updated_at?: string;
|
|
715
|
+
user_id?: string;
|
|
716
|
+
};
|
|
717
|
+
Relationships: [];
|
|
718
|
+
};
|
|
719
|
+
dashboard_saved_queries: {
|
|
720
|
+
Row: {
|
|
721
|
+
created_at: string;
|
|
722
|
+
description: string | null;
|
|
723
|
+
id: string;
|
|
724
|
+
name: string;
|
|
725
|
+
query_spec: import("./types").Json;
|
|
726
|
+
updated_at: string;
|
|
727
|
+
user_id: string;
|
|
728
|
+
};
|
|
729
|
+
Insert: {
|
|
730
|
+
created_at?: string;
|
|
731
|
+
description?: string | null;
|
|
732
|
+
id?: string;
|
|
733
|
+
name: string;
|
|
734
|
+
query_spec: import("./types").Json;
|
|
735
|
+
updated_at?: string;
|
|
736
|
+
user_id: string;
|
|
737
|
+
};
|
|
738
|
+
Update: {
|
|
739
|
+
created_at?: string;
|
|
740
|
+
description?: string | null;
|
|
741
|
+
id?: string;
|
|
742
|
+
name?: string;
|
|
743
|
+
query_spec?: import("./types").Json;
|
|
744
|
+
updated_at?: string;
|
|
745
|
+
user_id?: string;
|
|
746
|
+
};
|
|
747
|
+
Relationships: [];
|
|
748
|
+
};
|
|
479
749
|
exact_connections: {
|
|
480
750
|
Row: {
|
|
481
751
|
access_token_encrypted: string;
|
|
@@ -486,6 +756,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
486
756
|
environment: Database["public"]["Enums"]["exact_env"];
|
|
487
757
|
expires_at: string;
|
|
488
758
|
id: string;
|
|
759
|
+
last_error: string | null;
|
|
760
|
+
last_refreshed_at: string | null;
|
|
761
|
+
last_tested_at: string | null;
|
|
489
762
|
refresh_token_encrypted: string;
|
|
490
763
|
status: string;
|
|
491
764
|
updated_at: string;
|
|
@@ -499,6 +772,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
499
772
|
environment: Database["public"]["Enums"]["exact_env"];
|
|
500
773
|
expires_at: string;
|
|
501
774
|
id?: string;
|
|
775
|
+
last_error?: string | null;
|
|
776
|
+
last_refreshed_at?: string | null;
|
|
777
|
+
last_tested_at?: string | null;
|
|
502
778
|
refresh_token_encrypted: string;
|
|
503
779
|
status?: string;
|
|
504
780
|
updated_at?: string;
|
|
@@ -512,6 +788,9 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
512
788
|
environment?: Database["public"]["Enums"]["exact_env"];
|
|
513
789
|
expires_at?: string;
|
|
514
790
|
id?: string;
|
|
791
|
+
last_error?: string | null;
|
|
792
|
+
last_refreshed_at?: string | null;
|
|
793
|
+
last_tested_at?: string | null;
|
|
515
794
|
refresh_token_encrypted?: string;
|
|
516
795
|
status?: string;
|
|
517
796
|
updated_at?: string;
|
|
@@ -534,7 +813,7 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
534
813
|
created_at?: string;
|
|
535
814
|
environment: Database["public"]["Enums"]["exact_env"];
|
|
536
815
|
id?: string;
|
|
537
|
-
redirect_uri
|
|
816
|
+
redirect_uri?: string;
|
|
538
817
|
updated_at?: string;
|
|
539
818
|
};
|
|
540
819
|
Update: {
|
|
@@ -706,220 +985,910 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
706
985
|
updated_at: string;
|
|
707
986
|
};
|
|
708
987
|
Insert: {
|
|
709
|
-
access_token?: string | null;
|
|
710
|
-
api_key: string;
|
|
711
|
-
client_id: string;
|
|
712
|
-
client_secret: string;
|
|
988
|
+
access_token?: string | null;
|
|
989
|
+
api_key: string;
|
|
990
|
+
client_id: string;
|
|
991
|
+
client_secret: string;
|
|
992
|
+
created_at?: string;
|
|
993
|
+
customers_endpoint?: string | null;
|
|
994
|
+
environment: string;
|
|
995
|
+
gln_code?: string | null;
|
|
996
|
+
id?: string;
|
|
997
|
+
is_active?: boolean;
|
|
998
|
+
label?: string;
|
|
999
|
+
organization_name?: string | null;
|
|
1000
|
+
preferred_warehouse_id?: string | null;
|
|
1001
|
+
preferred_warehouse_name?: string | null;
|
|
1002
|
+
token_expires_at?: string | null;
|
|
1003
|
+
updated_at?: string;
|
|
1004
|
+
};
|
|
1005
|
+
Update: {
|
|
1006
|
+
access_token?: string | null;
|
|
1007
|
+
api_key?: string;
|
|
1008
|
+
client_id?: string;
|
|
1009
|
+
client_secret?: string;
|
|
1010
|
+
created_at?: string;
|
|
1011
|
+
customers_endpoint?: string | null;
|
|
1012
|
+
environment?: string;
|
|
1013
|
+
gln_code?: string | null;
|
|
1014
|
+
id?: string;
|
|
1015
|
+
is_active?: boolean;
|
|
1016
|
+
label?: string;
|
|
1017
|
+
organization_name?: string | null;
|
|
1018
|
+
preferred_warehouse_id?: string | null;
|
|
1019
|
+
preferred_warehouse_name?: string | null;
|
|
1020
|
+
token_expires_at?: string | null;
|
|
1021
|
+
updated_at?: string;
|
|
1022
|
+
};
|
|
1023
|
+
Relationships: [];
|
|
1024
|
+
};
|
|
1025
|
+
floriday_customers_cache: {
|
|
1026
|
+
Row: {
|
|
1027
|
+
connection_id: string | null;
|
|
1028
|
+
data: import("./types").Json;
|
|
1029
|
+
fetched_at: string;
|
|
1030
|
+
organization_id: string;
|
|
1031
|
+
};
|
|
1032
|
+
Insert: {
|
|
1033
|
+
connection_id?: string | null;
|
|
1034
|
+
data?: import("./types").Json;
|
|
1035
|
+
fetched_at?: string;
|
|
1036
|
+
organization_id: string;
|
|
1037
|
+
};
|
|
1038
|
+
Update: {
|
|
1039
|
+
connection_id?: string | null;
|
|
1040
|
+
data?: import("./types").Json;
|
|
1041
|
+
fetched_at?: string;
|
|
1042
|
+
organization_id?: string;
|
|
1043
|
+
};
|
|
1044
|
+
Relationships: [{
|
|
1045
|
+
foreignKeyName: "floriday_customers_cache_connection_id_fkey";
|
|
1046
|
+
columns: ["connection_id"];
|
|
1047
|
+
isOneToOne: false;
|
|
1048
|
+
referencedRelation: "floriday_connections";
|
|
1049
|
+
referencedColumns: ["id"];
|
|
1050
|
+
}];
|
|
1051
|
+
};
|
|
1052
|
+
floriday_network_cache: {
|
|
1053
|
+
Row: {
|
|
1054
|
+
city: string | null;
|
|
1055
|
+
connection_id: string;
|
|
1056
|
+
country: string | null;
|
|
1057
|
+
data: import("./types").Json;
|
|
1058
|
+
fetched_at: string;
|
|
1059
|
+
gln: string | null;
|
|
1060
|
+
organization_id: string;
|
|
1061
|
+
organization_name: string | null;
|
|
1062
|
+
};
|
|
1063
|
+
Insert: {
|
|
1064
|
+
city?: string | null;
|
|
1065
|
+
connection_id: string;
|
|
1066
|
+
country?: string | null;
|
|
1067
|
+
data?: import("./types").Json;
|
|
1068
|
+
fetched_at?: string;
|
|
1069
|
+
gln?: string | null;
|
|
1070
|
+
organization_id: string;
|
|
1071
|
+
organization_name?: string | null;
|
|
1072
|
+
};
|
|
1073
|
+
Update: {
|
|
1074
|
+
city?: string | null;
|
|
1075
|
+
connection_id?: string;
|
|
1076
|
+
country?: string | null;
|
|
1077
|
+
data?: import("./types").Json;
|
|
1078
|
+
fetched_at?: string;
|
|
1079
|
+
gln?: string | null;
|
|
1080
|
+
organization_id?: string;
|
|
1081
|
+
organization_name?: string | null;
|
|
1082
|
+
};
|
|
1083
|
+
Relationships: [];
|
|
1084
|
+
};
|
|
1085
|
+
floriday_network_sync_state: {
|
|
1086
|
+
Row: {
|
|
1087
|
+
connection_id: string;
|
|
1088
|
+
last_error: string | null;
|
|
1089
|
+
last_sequence_number: number;
|
|
1090
|
+
last_synced_at: string | null;
|
|
1091
|
+
updated_at: string;
|
|
1092
|
+
};
|
|
1093
|
+
Insert: {
|
|
1094
|
+
connection_id: string;
|
|
1095
|
+
last_error?: string | null;
|
|
1096
|
+
last_sequence_number?: number;
|
|
1097
|
+
last_synced_at?: string | null;
|
|
1098
|
+
updated_at?: string;
|
|
1099
|
+
};
|
|
1100
|
+
Update: {
|
|
1101
|
+
connection_id?: string;
|
|
1102
|
+
last_error?: string | null;
|
|
1103
|
+
last_sequence_number?: number;
|
|
1104
|
+
last_synced_at?: string | null;
|
|
1105
|
+
updated_at?: string;
|
|
1106
|
+
};
|
|
1107
|
+
Relationships: [];
|
|
1108
|
+
};
|
|
1109
|
+
floriday_settings: {
|
|
1110
|
+
Row: {
|
|
1111
|
+
active_environment: string;
|
|
1112
|
+
id: number;
|
|
1113
|
+
updated_at: string;
|
|
1114
|
+
};
|
|
1115
|
+
Insert: {
|
|
1116
|
+
active_environment?: string;
|
|
1117
|
+
id?: number;
|
|
1118
|
+
updated_at?: string;
|
|
1119
|
+
};
|
|
1120
|
+
Update: {
|
|
1121
|
+
active_environment?: string;
|
|
1122
|
+
id?: number;
|
|
1123
|
+
updated_at?: string;
|
|
1124
|
+
};
|
|
1125
|
+
Relationships: [];
|
|
1126
|
+
};
|
|
1127
|
+
inventory_settings: {
|
|
1128
|
+
Row: {
|
|
1129
|
+
created_at: string;
|
|
1130
|
+
hierarchy_levels: string[];
|
|
1131
|
+
id: string;
|
|
1132
|
+
updated_at: string;
|
|
1133
|
+
visible_columns: string[];
|
|
1134
|
+
};
|
|
1135
|
+
Insert: {
|
|
1136
|
+
created_at?: string;
|
|
1137
|
+
hierarchy_levels?: string[];
|
|
1138
|
+
id?: string;
|
|
1139
|
+
updated_at?: string;
|
|
1140
|
+
visible_columns?: string[];
|
|
1141
|
+
};
|
|
1142
|
+
Update: {
|
|
1143
|
+
created_at?: string;
|
|
1144
|
+
hierarchy_levels?: string[];
|
|
1145
|
+
id?: string;
|
|
1146
|
+
updated_at?: string;
|
|
1147
|
+
visible_columns?: string[];
|
|
1148
|
+
};
|
|
1149
|
+
Relationships: [];
|
|
1150
|
+
};
|
|
1151
|
+
locations: {
|
|
1152
|
+
Row: {
|
|
1153
|
+
created_at: string;
|
|
1154
|
+
id: string;
|
|
1155
|
+
name: string;
|
|
1156
|
+
sort_order: number;
|
|
1157
|
+
updated_at: string;
|
|
1158
|
+
};
|
|
1159
|
+
Insert: {
|
|
1160
|
+
created_at?: string;
|
|
1161
|
+
id?: string;
|
|
1162
|
+
name: string;
|
|
1163
|
+
sort_order?: number;
|
|
1164
|
+
updated_at?: string;
|
|
1165
|
+
};
|
|
1166
|
+
Update: {
|
|
1167
|
+
created_at?: string;
|
|
1168
|
+
id?: string;
|
|
1169
|
+
name?: string;
|
|
1170
|
+
sort_order?: number;
|
|
1171
|
+
updated_at?: string;
|
|
1172
|
+
};
|
|
1173
|
+
Relationships: [];
|
|
1174
|
+
};
|
|
1175
|
+
mailbox_messages: {
|
|
1176
|
+
Row: {
|
|
1177
|
+
body_html: string | null;
|
|
1178
|
+
body_text: string | null;
|
|
1179
|
+
created_at: string;
|
|
1180
|
+
error_message: string | null;
|
|
1181
|
+
from_email: string | null;
|
|
1182
|
+
from_name: string | null;
|
|
1183
|
+
id: string;
|
|
1184
|
+
message_id: string | null;
|
|
1185
|
+
raw_size: number | null;
|
|
1186
|
+
received_at: string | null;
|
|
1187
|
+
status: string;
|
|
1188
|
+
subject: string | null;
|
|
1189
|
+
uid: number;
|
|
1190
|
+
updated_at: string;
|
|
1191
|
+
};
|
|
1192
|
+
Insert: {
|
|
1193
|
+
body_html?: string | null;
|
|
1194
|
+
body_text?: string | null;
|
|
1195
|
+
created_at?: string;
|
|
1196
|
+
error_message?: string | null;
|
|
1197
|
+
from_email?: string | null;
|
|
1198
|
+
from_name?: string | null;
|
|
1199
|
+
id?: string;
|
|
1200
|
+
message_id?: string | null;
|
|
1201
|
+
raw_size?: number | null;
|
|
1202
|
+
received_at?: string | null;
|
|
1203
|
+
status?: string;
|
|
1204
|
+
subject?: string | null;
|
|
1205
|
+
uid: number;
|
|
1206
|
+
updated_at?: string;
|
|
1207
|
+
};
|
|
1208
|
+
Update: {
|
|
1209
|
+
body_html?: string | null;
|
|
1210
|
+
body_text?: string | null;
|
|
1211
|
+
created_at?: string;
|
|
1212
|
+
error_message?: string | null;
|
|
1213
|
+
from_email?: string | null;
|
|
1214
|
+
from_name?: string | null;
|
|
1215
|
+
id?: string;
|
|
1216
|
+
message_id?: string | null;
|
|
1217
|
+
raw_size?: number | null;
|
|
1218
|
+
received_at?: string | null;
|
|
1219
|
+
status?: string;
|
|
1220
|
+
subject?: string | null;
|
|
1221
|
+
uid?: number;
|
|
1222
|
+
updated_at?: string;
|
|
1223
|
+
};
|
|
1224
|
+
Relationships: [];
|
|
1225
|
+
};
|
|
1226
|
+
mailbox_order_proposals: {
|
|
1227
|
+
Row: {
|
|
1228
|
+
confidence: number | null;
|
|
1229
|
+
created_at: string;
|
|
1230
|
+
created_order_id: string | null;
|
|
1231
|
+
delivery_date: string | null;
|
|
1232
|
+
id: string;
|
|
1233
|
+
matched_customer_id: string | null;
|
|
1234
|
+
message_id: string;
|
|
1235
|
+
notes: string | null;
|
|
1236
|
+
parsed_payload: import("./types").Json | null;
|
|
1237
|
+
reviewed_at: string | null;
|
|
1238
|
+
reviewed_by: string | null;
|
|
1239
|
+
status: string;
|
|
1240
|
+
updated_at: string;
|
|
1241
|
+
};
|
|
1242
|
+
Insert: {
|
|
1243
|
+
confidence?: number | null;
|
|
1244
|
+
created_at?: string;
|
|
1245
|
+
created_order_id?: string | null;
|
|
1246
|
+
delivery_date?: string | null;
|
|
1247
|
+
id?: string;
|
|
1248
|
+
matched_customer_id?: string | null;
|
|
1249
|
+
message_id: string;
|
|
1250
|
+
notes?: string | null;
|
|
1251
|
+
parsed_payload?: import("./types").Json | null;
|
|
1252
|
+
reviewed_at?: string | null;
|
|
1253
|
+
reviewed_by?: string | null;
|
|
1254
|
+
status?: string;
|
|
1255
|
+
updated_at?: string;
|
|
1256
|
+
};
|
|
1257
|
+
Update: {
|
|
1258
|
+
confidence?: number | null;
|
|
1259
|
+
created_at?: string;
|
|
1260
|
+
created_order_id?: string | null;
|
|
1261
|
+
delivery_date?: string | null;
|
|
1262
|
+
id?: string;
|
|
1263
|
+
matched_customer_id?: string | null;
|
|
1264
|
+
message_id?: string;
|
|
1265
|
+
notes?: string | null;
|
|
1266
|
+
parsed_payload?: import("./types").Json | null;
|
|
1267
|
+
reviewed_at?: string | null;
|
|
1268
|
+
reviewed_by?: string | null;
|
|
1269
|
+
status?: string;
|
|
1270
|
+
updated_at?: string;
|
|
1271
|
+
};
|
|
1272
|
+
Relationships: [{
|
|
1273
|
+
foreignKeyName: "mailbox_order_proposals_created_order_id_fkey";
|
|
1274
|
+
columns: ["created_order_id"];
|
|
1275
|
+
isOneToOne: false;
|
|
1276
|
+
referencedRelation: "orders";
|
|
1277
|
+
referencedColumns: ["id"];
|
|
1278
|
+
}, {
|
|
1279
|
+
foreignKeyName: "mailbox_order_proposals_matched_customer_id_fkey";
|
|
1280
|
+
columns: ["matched_customer_id"];
|
|
1281
|
+
isOneToOne: false;
|
|
1282
|
+
referencedRelation: "customers";
|
|
1283
|
+
referencedColumns: ["id"];
|
|
1284
|
+
}, {
|
|
1285
|
+
foreignKeyName: "mailbox_order_proposals_message_id_fkey";
|
|
1286
|
+
columns: ["message_id"];
|
|
1287
|
+
isOneToOne: false;
|
|
1288
|
+
referencedRelation: "mailbox_messages";
|
|
1289
|
+
referencedColumns: ["id"];
|
|
1290
|
+
}];
|
|
1291
|
+
};
|
|
1292
|
+
mailbox_order_template_fields: {
|
|
1293
|
+
Row: {
|
|
1294
|
+
ai_enabled: boolean;
|
|
1295
|
+
ai_hint: string | null;
|
|
1296
|
+
created_at: string;
|
|
1297
|
+
default_value: import("./types").Json | null;
|
|
1298
|
+
field_type: string;
|
|
1299
|
+
id: string;
|
|
1300
|
+
key: string;
|
|
1301
|
+
label: string;
|
|
1302
|
+
options: import("./types").Json | null;
|
|
1303
|
+
required: boolean;
|
|
1304
|
+
sort_order: number;
|
|
1305
|
+
source: string;
|
|
1306
|
+
source_table: string | null;
|
|
1307
|
+
updated_at: string;
|
|
1308
|
+
visible: boolean;
|
|
1309
|
+
};
|
|
1310
|
+
Insert: {
|
|
1311
|
+
ai_enabled?: boolean;
|
|
1312
|
+
ai_hint?: string | null;
|
|
1313
|
+
created_at?: string;
|
|
1314
|
+
default_value?: import("./types").Json | null;
|
|
1315
|
+
field_type: string;
|
|
1316
|
+
id?: string;
|
|
1317
|
+
key: string;
|
|
1318
|
+
label: string;
|
|
1319
|
+
options?: import("./types").Json | null;
|
|
1320
|
+
required?: boolean;
|
|
1321
|
+
sort_order?: number;
|
|
1322
|
+
source?: string;
|
|
1323
|
+
source_table?: string | null;
|
|
1324
|
+
updated_at?: string;
|
|
1325
|
+
visible?: boolean;
|
|
1326
|
+
};
|
|
1327
|
+
Update: {
|
|
1328
|
+
ai_enabled?: boolean;
|
|
1329
|
+
ai_hint?: string | null;
|
|
1330
|
+
created_at?: string;
|
|
1331
|
+
default_value?: import("./types").Json | null;
|
|
1332
|
+
field_type?: string;
|
|
1333
|
+
id?: string;
|
|
1334
|
+
key?: string;
|
|
1335
|
+
label?: string;
|
|
1336
|
+
options?: import("./types").Json | null;
|
|
1337
|
+
required?: boolean;
|
|
1338
|
+
sort_order?: number;
|
|
1339
|
+
source?: string;
|
|
1340
|
+
source_table?: string | null;
|
|
1341
|
+
updated_at?: string;
|
|
1342
|
+
visible?: boolean;
|
|
1343
|
+
};
|
|
1344
|
+
Relationships: [];
|
|
1345
|
+
};
|
|
1346
|
+
mailbox_proposal_field_values: {
|
|
1347
|
+
Row: {
|
|
1348
|
+
ai_confidence: number | null;
|
|
1349
|
+
ai_filled: boolean;
|
|
1350
|
+
created_at: string;
|
|
1351
|
+
field_key: string;
|
|
1352
|
+
id: string;
|
|
1353
|
+
needs_review: boolean;
|
|
1354
|
+
proposal_id: string;
|
|
1355
|
+
updated_at: string;
|
|
1356
|
+
value: import("./types").Json | null;
|
|
1357
|
+
};
|
|
1358
|
+
Insert: {
|
|
1359
|
+
ai_confidence?: number | null;
|
|
1360
|
+
ai_filled?: boolean;
|
|
1361
|
+
created_at?: string;
|
|
1362
|
+
field_key: string;
|
|
1363
|
+
id?: string;
|
|
1364
|
+
needs_review?: boolean;
|
|
1365
|
+
proposal_id: string;
|
|
1366
|
+
updated_at?: string;
|
|
1367
|
+
value?: import("./types").Json | null;
|
|
1368
|
+
};
|
|
1369
|
+
Update: {
|
|
1370
|
+
ai_confidence?: number | null;
|
|
1371
|
+
ai_filled?: boolean;
|
|
1372
|
+
created_at?: string;
|
|
1373
|
+
field_key?: string;
|
|
1374
|
+
id?: string;
|
|
1375
|
+
needs_review?: boolean;
|
|
1376
|
+
proposal_id?: string;
|
|
1377
|
+
updated_at?: string;
|
|
1378
|
+
value?: import("./types").Json | null;
|
|
1379
|
+
};
|
|
1380
|
+
Relationships: [{
|
|
1381
|
+
foreignKeyName: "mailbox_proposal_field_values_proposal_id_fkey";
|
|
1382
|
+
columns: ["proposal_id"];
|
|
1383
|
+
isOneToOne: false;
|
|
1384
|
+
referencedRelation: "mailbox_order_proposals";
|
|
1385
|
+
referencedColumns: ["id"];
|
|
1386
|
+
}];
|
|
1387
|
+
};
|
|
1388
|
+
mailbox_proposal_lines: {
|
|
1389
|
+
Row: {
|
|
1390
|
+
created_at: string;
|
|
1391
|
+
id: string;
|
|
1392
|
+
match_confidence: number | null;
|
|
1393
|
+
product_id: string | null;
|
|
1394
|
+
proposal_id: string;
|
|
1395
|
+
quantity: number | null;
|
|
1396
|
+
raw_product_text: string | null;
|
|
1397
|
+
sort_order: number;
|
|
1398
|
+
unit: string | null;
|
|
1399
|
+
updated_at: string;
|
|
1400
|
+
};
|
|
1401
|
+
Insert: {
|
|
1402
|
+
created_at?: string;
|
|
1403
|
+
id?: string;
|
|
1404
|
+
match_confidence?: number | null;
|
|
1405
|
+
product_id?: string | null;
|
|
1406
|
+
proposal_id: string;
|
|
1407
|
+
quantity?: number | null;
|
|
1408
|
+
raw_product_text?: string | null;
|
|
1409
|
+
sort_order?: number;
|
|
1410
|
+
unit?: string | null;
|
|
1411
|
+
updated_at?: string;
|
|
1412
|
+
};
|
|
1413
|
+
Update: {
|
|
1414
|
+
created_at?: string;
|
|
1415
|
+
id?: string;
|
|
1416
|
+
match_confidence?: number | null;
|
|
1417
|
+
product_id?: string | null;
|
|
1418
|
+
proposal_id?: string;
|
|
1419
|
+
quantity?: number | null;
|
|
1420
|
+
raw_product_text?: string | null;
|
|
1421
|
+
sort_order?: number;
|
|
1422
|
+
unit?: string | null;
|
|
1423
|
+
updated_at?: string;
|
|
1424
|
+
};
|
|
1425
|
+
Relationships: [{
|
|
1426
|
+
foreignKeyName: "mailbox_proposal_lines_product_id_fkey";
|
|
1427
|
+
columns: ["product_id"];
|
|
1428
|
+
isOneToOne: false;
|
|
1429
|
+
referencedRelation: "products";
|
|
1430
|
+
referencedColumns: ["id"];
|
|
1431
|
+
}, {
|
|
1432
|
+
foreignKeyName: "mailbox_proposal_lines_proposal_id_fkey";
|
|
1433
|
+
columns: ["proposal_id"];
|
|
1434
|
+
isOneToOne: false;
|
|
1435
|
+
referencedRelation: "mailbox_order_proposals";
|
|
1436
|
+
referencedColumns: ["id"];
|
|
1437
|
+
}];
|
|
1438
|
+
};
|
|
1439
|
+
mailbox_settings: {
|
|
1440
|
+
Row: {
|
|
1441
|
+
created_at: string;
|
|
1442
|
+
folder: string;
|
|
1443
|
+
id: string;
|
|
1444
|
+
imap_host: string;
|
|
1445
|
+
imap_port: number;
|
|
1446
|
+
imap_use_tls: boolean;
|
|
1447
|
+
imap_username: string;
|
|
1448
|
+
last_error: string | null;
|
|
1449
|
+
last_polled_at: string | null;
|
|
1450
|
+
last_uid_seen: number;
|
|
1451
|
+
polling_enabled: boolean;
|
|
1452
|
+
singleton: boolean;
|
|
1453
|
+
updated_at: string;
|
|
1454
|
+
};
|
|
1455
|
+
Insert: {
|
|
1456
|
+
created_at?: string;
|
|
1457
|
+
folder?: string;
|
|
1458
|
+
id?: string;
|
|
1459
|
+
imap_host?: string;
|
|
1460
|
+
imap_port?: number;
|
|
1461
|
+
imap_use_tls?: boolean;
|
|
1462
|
+
imap_username?: string;
|
|
1463
|
+
last_error?: string | null;
|
|
1464
|
+
last_polled_at?: string | null;
|
|
1465
|
+
last_uid_seen?: number;
|
|
1466
|
+
polling_enabled?: boolean;
|
|
1467
|
+
singleton?: boolean;
|
|
1468
|
+
updated_at?: string;
|
|
1469
|
+
};
|
|
1470
|
+
Update: {
|
|
1471
|
+
created_at?: string;
|
|
1472
|
+
folder?: string;
|
|
1473
|
+
id?: string;
|
|
1474
|
+
imap_host?: string;
|
|
1475
|
+
imap_port?: number;
|
|
1476
|
+
imap_use_tls?: boolean;
|
|
1477
|
+
imap_username?: string;
|
|
1478
|
+
last_error?: string | null;
|
|
1479
|
+
last_polled_at?: string | null;
|
|
1480
|
+
last_uid_seen?: number;
|
|
1481
|
+
polling_enabled?: boolean;
|
|
1482
|
+
singleton?: boolean;
|
|
1483
|
+
updated_at?: string;
|
|
1484
|
+
};
|
|
1485
|
+
Relationships: [];
|
|
1486
|
+
};
|
|
1487
|
+
notifications: {
|
|
1488
|
+
Row: {
|
|
1489
|
+
created_at: string;
|
|
1490
|
+
id: string;
|
|
1491
|
+
message: string | null;
|
|
1492
|
+
read: boolean;
|
|
1493
|
+
title: string;
|
|
1494
|
+
updated_at: string;
|
|
1495
|
+
user_id: string;
|
|
1496
|
+
};
|
|
1497
|
+
Insert: {
|
|
713
1498
|
created_at?: string;
|
|
714
|
-
customers_endpoint?: string | null;
|
|
715
|
-
environment: string;
|
|
716
|
-
gln_code?: string | null;
|
|
717
1499
|
id?: string;
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
preferred_warehouse_id?: string | null;
|
|
722
|
-
preferred_warehouse_name?: string | null;
|
|
723
|
-
token_expires_at?: string | null;
|
|
1500
|
+
message?: string | null;
|
|
1501
|
+
read?: boolean;
|
|
1502
|
+
title: string;
|
|
724
1503
|
updated_at?: string;
|
|
1504
|
+
user_id: string;
|
|
725
1505
|
};
|
|
726
1506
|
Update: {
|
|
727
|
-
access_token?: string | null;
|
|
728
|
-
api_key?: string;
|
|
729
|
-
client_id?: string;
|
|
730
|
-
client_secret?: string;
|
|
731
1507
|
created_at?: string;
|
|
732
|
-
customers_endpoint?: string | null;
|
|
733
|
-
environment?: string;
|
|
734
|
-
gln_code?: string | null;
|
|
735
1508
|
id?: string;
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
preferred_warehouse_id?: string | null;
|
|
740
|
-
preferred_warehouse_name?: string | null;
|
|
741
|
-
token_expires_at?: string | null;
|
|
1509
|
+
message?: string | null;
|
|
1510
|
+
read?: boolean;
|
|
1511
|
+
title?: string;
|
|
742
1512
|
updated_at?: string;
|
|
1513
|
+
user_id?: string;
|
|
743
1514
|
};
|
|
744
1515
|
Relationships: [];
|
|
745
1516
|
};
|
|
746
|
-
|
|
1517
|
+
offer_campaign_product_tiers: {
|
|
747
1518
|
Row: {
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
1519
|
+
campaign_product_id: string;
|
|
1520
|
+
created_at: string;
|
|
1521
|
+
id: string;
|
|
1522
|
+
min_crates: number;
|
|
1523
|
+
price_per_crate: number;
|
|
1524
|
+
sort_order: number;
|
|
752
1525
|
};
|
|
753
1526
|
Insert: {
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
1527
|
+
campaign_product_id: string;
|
|
1528
|
+
created_at?: string;
|
|
1529
|
+
id?: string;
|
|
1530
|
+
min_crates?: number;
|
|
1531
|
+
price_per_crate?: number;
|
|
1532
|
+
sort_order?: number;
|
|
758
1533
|
};
|
|
759
1534
|
Update: {
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
1535
|
+
campaign_product_id?: string;
|
|
1536
|
+
created_at?: string;
|
|
1537
|
+
id?: string;
|
|
1538
|
+
min_crates?: number;
|
|
1539
|
+
price_per_crate?: number;
|
|
1540
|
+
sort_order?: number;
|
|
764
1541
|
};
|
|
765
1542
|
Relationships: [{
|
|
766
|
-
foreignKeyName: "
|
|
767
|
-
columns: ["
|
|
1543
|
+
foreignKeyName: "offer_campaign_product_tiers_campaign_product_id_fkey";
|
|
1544
|
+
columns: ["campaign_product_id"];
|
|
768
1545
|
isOneToOne: false;
|
|
769
|
-
referencedRelation: "
|
|
1546
|
+
referencedRelation: "offer_campaign_products";
|
|
770
1547
|
referencedColumns: ["id"];
|
|
771
1548
|
}];
|
|
772
1549
|
};
|
|
773
|
-
|
|
1550
|
+
offer_campaign_products: {
|
|
774
1551
|
Row: {
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
1552
|
+
available_stock: number;
|
|
1553
|
+
barcode: string | null;
|
|
1554
|
+
belading: string | null;
|
|
1555
|
+
campaign_id: string;
|
|
1556
|
+
crate_price: number | null;
|
|
1557
|
+
created_at: string;
|
|
1558
|
+
description: string | null;
|
|
1559
|
+
discount_price: number;
|
|
1560
|
+
id: string;
|
|
1561
|
+
image_url: string | null;
|
|
1562
|
+
normal_price: number;
|
|
1563
|
+
plants_per_crate: number | null;
|
|
1564
|
+
product_id: string | null;
|
|
1565
|
+
product_name: string;
|
|
1566
|
+
sort_order: number;
|
|
1567
|
+
sticker_available: boolean;
|
|
1568
|
+
sticker_cost: number | null;
|
|
783
1569
|
};
|
|
784
1570
|
Insert: {
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
1571
|
+
available_stock?: number;
|
|
1572
|
+
barcode?: string | null;
|
|
1573
|
+
belading?: string | null;
|
|
1574
|
+
campaign_id: string;
|
|
1575
|
+
crate_price?: number | null;
|
|
1576
|
+
created_at?: string;
|
|
1577
|
+
description?: string | null;
|
|
1578
|
+
discount_price?: number;
|
|
1579
|
+
id?: string;
|
|
1580
|
+
image_url?: string | null;
|
|
1581
|
+
normal_price?: number;
|
|
1582
|
+
plants_per_crate?: number | null;
|
|
1583
|
+
product_id?: string | null;
|
|
1584
|
+
product_name: string;
|
|
1585
|
+
sort_order?: number;
|
|
1586
|
+
sticker_available?: boolean;
|
|
1587
|
+
sticker_cost?: number | null;
|
|
793
1588
|
};
|
|
794
1589
|
Update: {
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
1590
|
+
available_stock?: number;
|
|
1591
|
+
barcode?: string | null;
|
|
1592
|
+
belading?: string | null;
|
|
1593
|
+
campaign_id?: string;
|
|
1594
|
+
crate_price?: number | null;
|
|
1595
|
+
created_at?: string;
|
|
1596
|
+
description?: string | null;
|
|
1597
|
+
discount_price?: number;
|
|
1598
|
+
id?: string;
|
|
1599
|
+
image_url?: string | null;
|
|
1600
|
+
normal_price?: number;
|
|
1601
|
+
plants_per_crate?: number | null;
|
|
1602
|
+
product_id?: string | null;
|
|
1603
|
+
product_name?: string;
|
|
1604
|
+
sort_order?: number;
|
|
1605
|
+
sticker_available?: boolean;
|
|
1606
|
+
sticker_cost?: number | null;
|
|
803
1607
|
};
|
|
804
|
-
Relationships: [
|
|
1608
|
+
Relationships: [{
|
|
1609
|
+
foreignKeyName: "offer_campaign_products_campaign_id_fkey";
|
|
1610
|
+
columns: ["campaign_id"];
|
|
1611
|
+
isOneToOne: false;
|
|
1612
|
+
referencedRelation: "offer_campaigns";
|
|
1613
|
+
referencedColumns: ["id"];
|
|
1614
|
+
}, {
|
|
1615
|
+
foreignKeyName: "offer_campaign_products_product_id_fkey";
|
|
1616
|
+
columns: ["product_id"];
|
|
1617
|
+
isOneToOne: false;
|
|
1618
|
+
referencedRelation: "products";
|
|
1619
|
+
referencedColumns: ["id"];
|
|
1620
|
+
}];
|
|
805
1621
|
};
|
|
806
|
-
|
|
1622
|
+
offer_campaigns: {
|
|
807
1623
|
Row: {
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
1624
|
+
created_at: string;
|
|
1625
|
+
created_by: string | null;
|
|
1626
|
+
from_email: string;
|
|
1627
|
+
from_name: string;
|
|
1628
|
+
id: string;
|
|
1629
|
+
intro_message: string | null;
|
|
1630
|
+
name: string;
|
|
1631
|
+
scheduled_at: string | null;
|
|
1632
|
+
sent_at: string | null;
|
|
1633
|
+
status: string;
|
|
1634
|
+
subject: string;
|
|
812
1635
|
updated_at: string;
|
|
813
1636
|
};
|
|
814
1637
|
Insert: {
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
1638
|
+
created_at?: string;
|
|
1639
|
+
created_by?: string | null;
|
|
1640
|
+
from_email: string;
|
|
1641
|
+
from_name: string;
|
|
1642
|
+
id?: string;
|
|
1643
|
+
intro_message?: string | null;
|
|
1644
|
+
name: string;
|
|
1645
|
+
scheduled_at?: string | null;
|
|
1646
|
+
sent_at?: string | null;
|
|
1647
|
+
status?: string;
|
|
1648
|
+
subject: string;
|
|
819
1649
|
updated_at?: string;
|
|
820
1650
|
};
|
|
821
1651
|
Update: {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
1652
|
+
created_at?: string;
|
|
1653
|
+
created_by?: string | null;
|
|
1654
|
+
from_email?: string;
|
|
1655
|
+
from_name?: string;
|
|
1656
|
+
id?: string;
|
|
1657
|
+
intro_message?: string | null;
|
|
1658
|
+
name?: string;
|
|
1659
|
+
scheduled_at?: string | null;
|
|
1660
|
+
sent_at?: string | null;
|
|
1661
|
+
status?: string;
|
|
1662
|
+
subject?: string;
|
|
826
1663
|
updated_at?: string;
|
|
827
1664
|
};
|
|
828
1665
|
Relationships: [];
|
|
829
1666
|
};
|
|
830
|
-
|
|
1667
|
+
offer_events: {
|
|
831
1668
|
Row: {
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
1669
|
+
campaign_id: string;
|
|
1670
|
+
created_at: string;
|
|
1671
|
+
event_type: string;
|
|
1672
|
+
id: string;
|
|
1673
|
+
metadata: import("./types").Json;
|
|
1674
|
+
recipient_id: string;
|
|
835
1675
|
};
|
|
836
1676
|
Insert: {
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
1677
|
+
campaign_id: string;
|
|
1678
|
+
created_at?: string;
|
|
1679
|
+
event_type: string;
|
|
1680
|
+
id?: string;
|
|
1681
|
+
metadata?: import("./types").Json;
|
|
1682
|
+
recipient_id: string;
|
|
840
1683
|
};
|
|
841
1684
|
Update: {
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
1685
|
+
campaign_id?: string;
|
|
1686
|
+
created_at?: string;
|
|
1687
|
+
event_type?: string;
|
|
1688
|
+
id?: string;
|
|
1689
|
+
metadata?: import("./types").Json;
|
|
1690
|
+
recipient_id?: string;
|
|
845
1691
|
};
|
|
846
|
-
Relationships: [
|
|
1692
|
+
Relationships: [{
|
|
1693
|
+
foreignKeyName: "offer_events_campaign_id_fkey";
|
|
1694
|
+
columns: ["campaign_id"];
|
|
1695
|
+
isOneToOne: false;
|
|
1696
|
+
referencedRelation: "offer_campaigns";
|
|
1697
|
+
referencedColumns: ["id"];
|
|
1698
|
+
}, {
|
|
1699
|
+
foreignKeyName: "offer_events_recipient_id_fkey";
|
|
1700
|
+
columns: ["recipient_id"];
|
|
1701
|
+
isOneToOne: false;
|
|
1702
|
+
referencedRelation: "offer_recipients";
|
|
1703
|
+
referencedColumns: ["id"];
|
|
1704
|
+
}];
|
|
847
1705
|
};
|
|
848
|
-
|
|
1706
|
+
offer_orders: {
|
|
849
1707
|
Row: {
|
|
1708
|
+
campaign_id: string;
|
|
850
1709
|
created_at: string;
|
|
851
|
-
|
|
1710
|
+
customer_email: string;
|
|
1711
|
+
customer_id: string | null;
|
|
1712
|
+
customer_name: string;
|
|
1713
|
+
customer_phone: string | null;
|
|
852
1714
|
id: string;
|
|
853
|
-
|
|
854
|
-
|
|
1715
|
+
items: import("./types").Json;
|
|
1716
|
+
notes: string | null;
|
|
1717
|
+
recipient_id: string;
|
|
1718
|
+
total_amount: number;
|
|
855
1719
|
};
|
|
856
1720
|
Insert: {
|
|
1721
|
+
campaign_id: string;
|
|
857
1722
|
created_at?: string;
|
|
858
|
-
|
|
1723
|
+
customer_email: string;
|
|
1724
|
+
customer_id?: string | null;
|
|
1725
|
+
customer_name: string;
|
|
1726
|
+
customer_phone?: string | null;
|
|
859
1727
|
id?: string;
|
|
860
|
-
|
|
861
|
-
|
|
1728
|
+
items?: import("./types").Json;
|
|
1729
|
+
notes?: string | null;
|
|
1730
|
+
recipient_id: string;
|
|
1731
|
+
total_amount?: number;
|
|
862
1732
|
};
|
|
863
1733
|
Update: {
|
|
1734
|
+
campaign_id?: string;
|
|
864
1735
|
created_at?: string;
|
|
865
|
-
|
|
1736
|
+
customer_email?: string;
|
|
1737
|
+
customer_id?: string | null;
|
|
1738
|
+
customer_name?: string;
|
|
1739
|
+
customer_phone?: string | null;
|
|
866
1740
|
id?: string;
|
|
867
|
-
|
|
868
|
-
|
|
1741
|
+
items?: import("./types").Json;
|
|
1742
|
+
notes?: string | null;
|
|
1743
|
+
recipient_id?: string;
|
|
1744
|
+
total_amount?: number;
|
|
869
1745
|
};
|
|
870
|
-
Relationships: [
|
|
1746
|
+
Relationships: [{
|
|
1747
|
+
foreignKeyName: "offer_orders_campaign_id_fkey";
|
|
1748
|
+
columns: ["campaign_id"];
|
|
1749
|
+
isOneToOne: false;
|
|
1750
|
+
referencedRelation: "offer_campaigns";
|
|
1751
|
+
referencedColumns: ["id"];
|
|
1752
|
+
}, {
|
|
1753
|
+
foreignKeyName: "offer_orders_customer_id_fkey";
|
|
1754
|
+
columns: ["customer_id"];
|
|
1755
|
+
isOneToOne: false;
|
|
1756
|
+
referencedRelation: "customers";
|
|
1757
|
+
referencedColumns: ["id"];
|
|
1758
|
+
}, {
|
|
1759
|
+
foreignKeyName: "offer_orders_recipient_id_fkey";
|
|
1760
|
+
columns: ["recipient_id"];
|
|
1761
|
+
isOneToOne: false;
|
|
1762
|
+
referencedRelation: "offer_recipients";
|
|
1763
|
+
referencedColumns: ["id"];
|
|
1764
|
+
}];
|
|
871
1765
|
};
|
|
872
|
-
|
|
1766
|
+
offer_recipients: {
|
|
873
1767
|
Row: {
|
|
1768
|
+
campaign_id: string;
|
|
1769
|
+
clicked_at: string | null;
|
|
1770
|
+
contact_id: string | null;
|
|
874
1771
|
created_at: string;
|
|
1772
|
+
customer_id: string | null;
|
|
875
1773
|
id: string;
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
1774
|
+
link_code: string;
|
|
1775
|
+
opened_at: string | null;
|
|
1776
|
+
ordered_at: string | null;
|
|
1777
|
+
recipient_email: string;
|
|
1778
|
+
recipient_name: string;
|
|
1779
|
+
sent_at: string | null;
|
|
879
1780
|
};
|
|
880
1781
|
Insert: {
|
|
1782
|
+
campaign_id: string;
|
|
1783
|
+
clicked_at?: string | null;
|
|
1784
|
+
contact_id?: string | null;
|
|
881
1785
|
created_at?: string;
|
|
1786
|
+
customer_id?: string | null;
|
|
882
1787
|
id?: string;
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
1788
|
+
link_code?: string;
|
|
1789
|
+
opened_at?: string | null;
|
|
1790
|
+
ordered_at?: string | null;
|
|
1791
|
+
recipient_email: string;
|
|
1792
|
+
recipient_name: string;
|
|
1793
|
+
sent_at?: string | null;
|
|
886
1794
|
};
|
|
887
1795
|
Update: {
|
|
1796
|
+
campaign_id?: string;
|
|
1797
|
+
clicked_at?: string | null;
|
|
1798
|
+
contact_id?: string | null;
|
|
888
1799
|
created_at?: string;
|
|
1800
|
+
customer_id?: string | null;
|
|
889
1801
|
id?: string;
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
1802
|
+
link_code?: string;
|
|
1803
|
+
opened_at?: string | null;
|
|
1804
|
+
ordered_at?: string | null;
|
|
1805
|
+
recipient_email?: string;
|
|
1806
|
+
recipient_name?: string;
|
|
1807
|
+
sent_at?: string | null;
|
|
893
1808
|
};
|
|
894
|
-
Relationships: [
|
|
1809
|
+
Relationships: [{
|
|
1810
|
+
foreignKeyName: "offer_recipients_campaign_id_fkey";
|
|
1811
|
+
columns: ["campaign_id"];
|
|
1812
|
+
isOneToOne: false;
|
|
1813
|
+
referencedRelation: "offer_campaigns";
|
|
1814
|
+
referencedColumns: ["id"];
|
|
1815
|
+
}, {
|
|
1816
|
+
foreignKeyName: "offer_recipients_contact_id_fkey";
|
|
1817
|
+
columns: ["contact_id"];
|
|
1818
|
+
isOneToOne: false;
|
|
1819
|
+
referencedRelation: "customer_contacts";
|
|
1820
|
+
referencedColumns: ["id"];
|
|
1821
|
+
}, {
|
|
1822
|
+
foreignKeyName: "offer_recipients_customer_id_fkey";
|
|
1823
|
+
columns: ["customer_id"];
|
|
1824
|
+
isOneToOne: false;
|
|
1825
|
+
referencedRelation: "customers";
|
|
1826
|
+
referencedColumns: ["id"];
|
|
1827
|
+
}];
|
|
895
1828
|
};
|
|
896
|
-
|
|
1829
|
+
offer_settings: {
|
|
897
1830
|
Row: {
|
|
1831
|
+
button_color: string;
|
|
898
1832
|
created_at: string;
|
|
1833
|
+
default_countries: string[];
|
|
1834
|
+
default_customer_classes: string[];
|
|
1835
|
+
default_intro: string;
|
|
1836
|
+
default_sticker_cost: number;
|
|
1837
|
+
default_subject: string;
|
|
1838
|
+
discount_display: string;
|
|
1839
|
+
excluded_contact_ids: string[];
|
|
1840
|
+
excluded_customer_ids: string[];
|
|
1841
|
+
from_email: string;
|
|
1842
|
+
from_name: string;
|
|
899
1843
|
id: string;
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
1844
|
+
logo_url: string | null;
|
|
1845
|
+
primary_color: string;
|
|
1846
|
+
show_customer_classes: boolean;
|
|
1847
|
+
singleton: boolean;
|
|
1848
|
+
tracking_enabled: boolean;
|
|
903
1849
|
updated_at: string;
|
|
904
|
-
user_id: string;
|
|
905
1850
|
};
|
|
906
1851
|
Insert: {
|
|
1852
|
+
button_color?: string;
|
|
907
1853
|
created_at?: string;
|
|
1854
|
+
default_countries?: string[];
|
|
1855
|
+
default_customer_classes?: string[];
|
|
1856
|
+
default_intro?: string;
|
|
1857
|
+
default_sticker_cost?: number;
|
|
1858
|
+
default_subject?: string;
|
|
1859
|
+
discount_display?: string;
|
|
1860
|
+
excluded_contact_ids?: string[];
|
|
1861
|
+
excluded_customer_ids?: string[];
|
|
1862
|
+
from_email?: string;
|
|
1863
|
+
from_name?: string;
|
|
908
1864
|
id?: string;
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
1865
|
+
logo_url?: string | null;
|
|
1866
|
+
primary_color?: string;
|
|
1867
|
+
show_customer_classes?: boolean;
|
|
1868
|
+
singleton?: boolean;
|
|
1869
|
+
tracking_enabled?: boolean;
|
|
912
1870
|
updated_at?: string;
|
|
913
|
-
user_id: string;
|
|
914
1871
|
};
|
|
915
1872
|
Update: {
|
|
1873
|
+
button_color?: string;
|
|
916
1874
|
created_at?: string;
|
|
1875
|
+
default_countries?: string[];
|
|
1876
|
+
default_customer_classes?: string[];
|
|
1877
|
+
default_intro?: string;
|
|
1878
|
+
default_sticker_cost?: number;
|
|
1879
|
+
default_subject?: string;
|
|
1880
|
+
discount_display?: string;
|
|
1881
|
+
excluded_contact_ids?: string[];
|
|
1882
|
+
excluded_customer_ids?: string[];
|
|
1883
|
+
from_email?: string;
|
|
1884
|
+
from_name?: string;
|
|
917
1885
|
id?: string;
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
1886
|
+
logo_url?: string | null;
|
|
1887
|
+
primary_color?: string;
|
|
1888
|
+
show_customer_classes?: boolean;
|
|
1889
|
+
singleton?: boolean;
|
|
1890
|
+
tracking_enabled?: boolean;
|
|
921
1891
|
updated_at?: string;
|
|
922
|
-
user_id?: string;
|
|
923
1892
|
};
|
|
924
1893
|
Relationships: [];
|
|
925
1894
|
};
|
|
@@ -1514,6 +2483,32 @@ export declare const requireSupabaseAuth: import("@tanstack/start-client-core").
|
|
|
1514
2483
|
};
|
|
1515
2484
|
Views: { [_ in never]: never; };
|
|
1516
2485
|
Functions: {
|
|
2486
|
+
dashboard_list_public_schema: {
|
|
2487
|
+
Args: never;
|
|
2488
|
+
Returns: {
|
|
2489
|
+
column_name: string;
|
|
2490
|
+
data_type: string;
|
|
2491
|
+
table_name: string;
|
|
2492
|
+
}[];
|
|
2493
|
+
};
|
|
2494
|
+
exact_decrypt: {
|
|
2495
|
+
Args: {
|
|
2496
|
+
cipher: string;
|
|
2497
|
+
};
|
|
2498
|
+
Returns: string;
|
|
2499
|
+
};
|
|
2500
|
+
exact_encrypt: {
|
|
2501
|
+
Args: {
|
|
2502
|
+
plain: string;
|
|
2503
|
+
};
|
|
2504
|
+
Returns: string;
|
|
2505
|
+
};
|
|
2506
|
+
get_offer_by_link_code: {
|
|
2507
|
+
Args: {
|
|
2508
|
+
p_code: string;
|
|
2509
|
+
};
|
|
2510
|
+
Returns: import("./types").Json;
|
|
2511
|
+
};
|
|
1517
2512
|
has_role: {
|
|
1518
2513
|
Args: {
|
|
1519
2514
|
_role: Database["public"]["Enums"]["app_role"];
|