@periskope/types 0.6.88 → 0.6.89
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/supabase.types.d.ts +389 -223
- package/dist/types.d.ts +23 -4
- package/mod_json_type.ps1 +108 -108
- package/package.json +16 -16
- package/supabase.types.ts +1741 -1579
- package/tsconfig.json +105 -105
- package/types.ts +22 -7
- package/update_package.ps1 +21 -21
package/dist/supabase.types.d.ts
CHANGED
|
@@ -74,28 +74,32 @@ export type Database = {
|
|
|
74
74
|
};
|
|
75
75
|
Relationships: [
|
|
76
76
|
{
|
|
77
|
-
foreignKeyName:
|
|
78
|
-
columns: [
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
|
|
78
|
+
columns: ["broadcast_id"];
|
|
79
|
+
isOneToOne: false;
|
|
80
|
+
referencedRelation: "tbl_broadcast_messages";
|
|
81
|
+
referencedColumns: ["broadcast_id"];
|
|
81
82
|
},
|
|
82
83
|
{
|
|
83
|
-
foreignKeyName:
|
|
84
|
-
columns: [
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
|
|
85
|
+
columns: ["broadcast_id"];
|
|
86
|
+
isOneToOne: false;
|
|
87
|
+
referencedRelation: "view_broadcast_logs";
|
|
88
|
+
referencedColumns: ["broadcast_id"];
|
|
87
89
|
},
|
|
88
90
|
{
|
|
89
|
-
foreignKeyName:
|
|
90
|
-
columns: [
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
92
|
+
columns: ["org_id"];
|
|
93
|
+
isOneToOne: false;
|
|
94
|
+
referencedRelation: "tbl_org";
|
|
95
|
+
referencedColumns: ["org_id"];
|
|
93
96
|
},
|
|
94
97
|
{
|
|
95
|
-
foreignKeyName:
|
|
96
|
-
columns: [
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
99
|
+
columns: ["org_id"];
|
|
100
|
+
isOneToOne: false;
|
|
101
|
+
referencedRelation: "view_org";
|
|
102
|
+
referencedColumns: ["org_id"];
|
|
99
103
|
}
|
|
100
104
|
];
|
|
101
105
|
};
|
|
@@ -138,16 +142,18 @@ export type Database = {
|
|
|
138
142
|
};
|
|
139
143
|
Relationships: [
|
|
140
144
|
{
|
|
141
|
-
foreignKeyName:
|
|
142
|
-
columns: [
|
|
143
|
-
|
|
144
|
-
|
|
145
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
146
|
+
columns: ["org_id"];
|
|
147
|
+
isOneToOne: false;
|
|
148
|
+
referencedRelation: "tbl_org";
|
|
149
|
+
referencedColumns: ["org_id"];
|
|
145
150
|
},
|
|
146
151
|
{
|
|
147
|
-
foreignKeyName:
|
|
148
|
-
columns: [
|
|
149
|
-
|
|
150
|
-
|
|
152
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
153
|
+
columns: ["org_id"];
|
|
154
|
+
isOneToOne: false;
|
|
155
|
+
referencedRelation: "view_org";
|
|
156
|
+
referencedColumns: ["org_id"];
|
|
151
157
|
}
|
|
152
158
|
];
|
|
153
159
|
};
|
|
@@ -178,16 +184,18 @@ export type Database = {
|
|
|
178
184
|
};
|
|
179
185
|
Relationships: [
|
|
180
186
|
{
|
|
181
|
-
foreignKeyName:
|
|
182
|
-
columns: [
|
|
183
|
-
|
|
184
|
-
|
|
187
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
188
|
+
columns: ["org_id"];
|
|
189
|
+
isOneToOne: false;
|
|
190
|
+
referencedRelation: "tbl_org";
|
|
191
|
+
referencedColumns: ["org_id"];
|
|
185
192
|
},
|
|
186
193
|
{
|
|
187
|
-
foreignKeyName:
|
|
188
|
-
columns: [
|
|
189
|
-
|
|
190
|
-
|
|
194
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
195
|
+
columns: ["org_id"];
|
|
196
|
+
isOneToOne: false;
|
|
197
|
+
referencedRelation: "view_org";
|
|
198
|
+
referencedColumns: ["org_id"];
|
|
191
199
|
}
|
|
192
200
|
];
|
|
193
201
|
};
|
|
@@ -221,10 +229,11 @@ export type Database = {
|
|
|
221
229
|
};
|
|
222
230
|
Relationships: [
|
|
223
231
|
{
|
|
224
|
-
foreignKeyName:
|
|
225
|
-
columns: [
|
|
226
|
-
|
|
227
|
-
|
|
232
|
+
foreignKeyName: "tbl_chat_access_org_id_email_fkey";
|
|
233
|
+
columns: ["org_id", "email"];
|
|
234
|
+
isOneToOne: false;
|
|
235
|
+
referencedRelation: "tbl_org_members";
|
|
236
|
+
referencedColumns: ["org_id", "email"];
|
|
228
237
|
}
|
|
229
238
|
];
|
|
230
239
|
};
|
|
@@ -381,10 +390,11 @@ export type Database = {
|
|
|
381
390
|
};
|
|
382
391
|
Relationships: [
|
|
383
392
|
{
|
|
384
|
-
foreignKeyName:
|
|
385
|
-
columns: [
|
|
386
|
-
|
|
387
|
-
|
|
393
|
+
foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones";
|
|
394
|
+
columns: ["org_phone", "org_id"];
|
|
395
|
+
isOneToOne: false;
|
|
396
|
+
referencedRelation: "tbl_org_phones";
|
|
397
|
+
referencedColumns: ["org_phone", "org_id"];
|
|
388
398
|
}
|
|
389
399
|
];
|
|
390
400
|
};
|
|
@@ -430,10 +440,11 @@ export type Database = {
|
|
|
430
440
|
};
|
|
431
441
|
Relationships: [
|
|
432
442
|
{
|
|
433
|
-
foreignKeyName:
|
|
434
|
-
columns: [
|
|
435
|
-
|
|
436
|
-
|
|
443
|
+
foreignKeyName: "tbl_chat_notifications_fkey_tbl_org_phones";
|
|
444
|
+
columns: ["org_id", "org_phone"];
|
|
445
|
+
isOneToOne: false;
|
|
446
|
+
referencedRelation: "tbl_org_phones";
|
|
447
|
+
referencedColumns: ["org_id", "org_phone"];
|
|
437
448
|
}
|
|
438
449
|
];
|
|
439
450
|
};
|
|
@@ -467,10 +478,11 @@ export type Database = {
|
|
|
467
478
|
};
|
|
468
479
|
Relationships: [
|
|
469
480
|
{
|
|
470
|
-
foreignKeyName:
|
|
471
|
-
columns: [
|
|
472
|
-
|
|
473
|
-
|
|
481
|
+
foreignKeyName: "tbl_chat_participants_fkey_tbl_chats";
|
|
482
|
+
columns: ["org_id", "org_phone", "chat_id"];
|
|
483
|
+
isOneToOne: false;
|
|
484
|
+
referencedRelation: "tbl_chats";
|
|
485
|
+
referencedColumns: ["org_id", "org_phone", "chat_id"];
|
|
474
486
|
}
|
|
475
487
|
];
|
|
476
488
|
};
|
|
@@ -555,10 +567,11 @@ export type Database = {
|
|
|
555
567
|
};
|
|
556
568
|
Relationships: [
|
|
557
569
|
{
|
|
558
|
-
foreignKeyName:
|
|
559
|
-
columns: [
|
|
560
|
-
|
|
561
|
-
|
|
570
|
+
foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones";
|
|
571
|
+
columns: ["org_id", "org_phone"];
|
|
572
|
+
isOneToOne: false;
|
|
573
|
+
referencedRelation: "tbl_org_phones";
|
|
574
|
+
referencedColumns: ["org_id", "org_phone"];
|
|
562
575
|
}
|
|
563
576
|
];
|
|
564
577
|
};
|
|
@@ -577,7 +590,7 @@ export type Database = {
|
|
|
577
590
|
priority: number | null;
|
|
578
591
|
quoted_message_id: string | null;
|
|
579
592
|
raised_by: string | null;
|
|
580
|
-
status: Database[
|
|
593
|
+
status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
581
594
|
subject: string;
|
|
582
595
|
ticket_id: string;
|
|
583
596
|
};
|
|
@@ -595,7 +608,7 @@ export type Database = {
|
|
|
595
608
|
priority?: number | null;
|
|
596
609
|
quoted_message_id?: string | null;
|
|
597
610
|
raised_by?: string | null;
|
|
598
|
-
status?: Database[
|
|
611
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
599
612
|
subject: string;
|
|
600
613
|
ticket_id?: string;
|
|
601
614
|
};
|
|
@@ -613,22 +626,24 @@ export type Database = {
|
|
|
613
626
|
priority?: number | null;
|
|
614
627
|
quoted_message_id?: string | null;
|
|
615
628
|
raised_by?: string | null;
|
|
616
|
-
status?: Database[
|
|
629
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
617
630
|
subject?: string;
|
|
618
631
|
ticket_id?: string;
|
|
619
632
|
};
|
|
620
633
|
Relationships: [
|
|
621
634
|
{
|
|
622
|
-
foreignKeyName:
|
|
623
|
-
columns: [
|
|
624
|
-
|
|
625
|
-
|
|
635
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
636
|
+
columns: ["org_id"];
|
|
637
|
+
isOneToOne: false;
|
|
638
|
+
referencedRelation: "tbl_org";
|
|
639
|
+
referencedColumns: ["org_id"];
|
|
626
640
|
},
|
|
627
641
|
{
|
|
628
|
-
foreignKeyName:
|
|
629
|
-
columns: [
|
|
630
|
-
|
|
631
|
-
|
|
642
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
643
|
+
columns: ["org_id"];
|
|
644
|
+
isOneToOne: false;
|
|
645
|
+
referencedRelation: "view_org";
|
|
646
|
+
referencedColumns: ["org_id"];
|
|
632
647
|
}
|
|
633
648
|
];
|
|
634
649
|
};
|
|
@@ -707,17 +722,18 @@ export type Database = {
|
|
|
707
722
|
};
|
|
708
723
|
Relationships: [
|
|
709
724
|
{
|
|
710
|
-
foreignKeyName:
|
|
711
|
-
columns: [
|
|
712
|
-
|
|
713
|
-
|
|
725
|
+
foreignKeyName: "tbl_chats_fkey_tbl_org_phones";
|
|
726
|
+
columns: ["org_phone", "org_id"];
|
|
727
|
+
isOneToOne: false;
|
|
728
|
+
referencedRelation: "tbl_org_phones";
|
|
729
|
+
referencedColumns: ["org_phone", "org_id"];
|
|
714
730
|
}
|
|
715
731
|
];
|
|
716
732
|
};
|
|
717
733
|
tbl_contacts: {
|
|
718
734
|
Row: {
|
|
719
735
|
business_profile: Json | null;
|
|
720
|
-
contact_color: Database[
|
|
736
|
+
contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
721
737
|
contact_id: string;
|
|
722
738
|
contact_image: string | null;
|
|
723
739
|
contact_name: string | null;
|
|
@@ -744,7 +760,7 @@ export type Database = {
|
|
|
744
760
|
};
|
|
745
761
|
Insert: {
|
|
746
762
|
business_profile?: Json | null;
|
|
747
|
-
contact_color?: Database[
|
|
763
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
748
764
|
contact_id: string;
|
|
749
765
|
contact_image?: string | null;
|
|
750
766
|
contact_name?: string | null;
|
|
@@ -771,7 +787,7 @@ export type Database = {
|
|
|
771
787
|
};
|
|
772
788
|
Update: {
|
|
773
789
|
business_profile?: Json | null;
|
|
774
|
-
contact_color?: Database[
|
|
790
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
775
791
|
contact_id?: string;
|
|
776
792
|
contact_image?: string | null;
|
|
777
793
|
contact_name?: string | null;
|
|
@@ -798,16 +814,18 @@ export type Database = {
|
|
|
798
814
|
};
|
|
799
815
|
Relationships: [
|
|
800
816
|
{
|
|
801
|
-
foreignKeyName:
|
|
802
|
-
columns: [
|
|
803
|
-
|
|
804
|
-
|
|
817
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
818
|
+
columns: ["org_id"];
|
|
819
|
+
isOneToOne: false;
|
|
820
|
+
referencedRelation: "tbl_org";
|
|
821
|
+
referencedColumns: ["org_id"];
|
|
805
822
|
},
|
|
806
823
|
{
|
|
807
|
-
foreignKeyName:
|
|
808
|
-
columns: [
|
|
809
|
-
|
|
810
|
-
|
|
824
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
825
|
+
columns: ["org_id"];
|
|
826
|
+
isOneToOne: false;
|
|
827
|
+
referencedRelation: "view_org";
|
|
828
|
+
referencedColumns: ["org_id"];
|
|
811
829
|
}
|
|
812
830
|
];
|
|
813
831
|
};
|
|
@@ -844,16 +862,18 @@ export type Database = {
|
|
|
844
862
|
};
|
|
845
863
|
Relationships: [
|
|
846
864
|
{
|
|
847
|
-
foreignKeyName:
|
|
848
|
-
columns: [
|
|
849
|
-
|
|
850
|
-
|
|
865
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
866
|
+
columns: ["org_id"];
|
|
867
|
+
isOneToOne: false;
|
|
868
|
+
referencedRelation: "tbl_org";
|
|
869
|
+
referencedColumns: ["org_id"];
|
|
851
870
|
},
|
|
852
871
|
{
|
|
853
|
-
foreignKeyName:
|
|
854
|
-
columns: [
|
|
855
|
-
|
|
856
|
-
|
|
872
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
873
|
+
columns: ["org_id"];
|
|
874
|
+
isOneToOne: false;
|
|
875
|
+
referencedRelation: "view_org";
|
|
876
|
+
referencedColumns: ["org_id"];
|
|
857
877
|
}
|
|
858
878
|
];
|
|
859
879
|
};
|
|
@@ -863,49 +883,51 @@ export type Database = {
|
|
|
863
883
|
id: string;
|
|
864
884
|
integration_id: string | null;
|
|
865
885
|
integration_metadata: Json;
|
|
866
|
-
integration_name: Database[
|
|
886
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
867
887
|
integration_type: string;
|
|
868
888
|
is_subscribed: boolean;
|
|
869
889
|
org_id: string;
|
|
870
890
|
subscribed_at: string;
|
|
871
|
-
type: Database[
|
|
891
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
872
892
|
};
|
|
873
893
|
Insert: {
|
|
874
894
|
hook_url: string;
|
|
875
895
|
id?: string;
|
|
876
896
|
integration_id?: string | null;
|
|
877
897
|
integration_metadata: Json;
|
|
878
|
-
integration_name: Database[
|
|
898
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
879
899
|
integration_type: string;
|
|
880
900
|
is_subscribed: boolean;
|
|
881
901
|
org_id: string;
|
|
882
902
|
subscribed_at?: string;
|
|
883
|
-
type: Database[
|
|
903
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
884
904
|
};
|
|
885
905
|
Update: {
|
|
886
906
|
hook_url?: string;
|
|
887
907
|
id?: string;
|
|
888
908
|
integration_id?: string | null;
|
|
889
909
|
integration_metadata?: Json;
|
|
890
|
-
integration_name?: Database[
|
|
910
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
891
911
|
integration_type?: string;
|
|
892
912
|
is_subscribed?: boolean;
|
|
893
913
|
org_id?: string;
|
|
894
914
|
subscribed_at?: string;
|
|
895
|
-
type?: Database[
|
|
915
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
896
916
|
};
|
|
897
917
|
Relationships: [
|
|
898
918
|
{
|
|
899
|
-
foreignKeyName:
|
|
900
|
-
columns: [
|
|
901
|
-
|
|
902
|
-
|
|
919
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
920
|
+
columns: ["org_id"];
|
|
921
|
+
isOneToOne: false;
|
|
922
|
+
referencedRelation: "tbl_org";
|
|
923
|
+
referencedColumns: ["org_id"];
|
|
903
924
|
},
|
|
904
925
|
{
|
|
905
|
-
foreignKeyName:
|
|
906
|
-
columns: [
|
|
907
|
-
|
|
908
|
-
|
|
926
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
927
|
+
columns: ["org_id"];
|
|
928
|
+
isOneToOne: false;
|
|
929
|
+
referencedRelation: "view_org";
|
|
930
|
+
referencedColumns: ["org_id"];
|
|
909
931
|
}
|
|
910
932
|
];
|
|
911
933
|
};
|
|
@@ -913,48 +935,50 @@ export type Database = {
|
|
|
913
935
|
Row: {
|
|
914
936
|
created_at: string;
|
|
915
937
|
id: string;
|
|
916
|
-
integration_name: Database[
|
|
938
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
917
939
|
integration_type: string;
|
|
918
940
|
metadata: Json;
|
|
919
941
|
org_id: string;
|
|
920
942
|
response: Json | null;
|
|
921
943
|
success: boolean;
|
|
922
|
-
type: Database[
|
|
944
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
923
945
|
};
|
|
924
946
|
Insert: {
|
|
925
947
|
created_at?: string;
|
|
926
948
|
id?: string;
|
|
927
|
-
integration_name: Database[
|
|
949
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
928
950
|
integration_type: string;
|
|
929
951
|
metadata?: Json;
|
|
930
952
|
org_id: string;
|
|
931
953
|
response?: Json | null;
|
|
932
954
|
success?: boolean;
|
|
933
|
-
type: Database[
|
|
955
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
934
956
|
};
|
|
935
957
|
Update: {
|
|
936
958
|
created_at?: string;
|
|
937
959
|
id?: string;
|
|
938
|
-
integration_name?: Database[
|
|
960
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
939
961
|
integration_type?: string;
|
|
940
962
|
metadata?: Json;
|
|
941
963
|
org_id?: string;
|
|
942
964
|
response?: Json | null;
|
|
943
965
|
success?: boolean;
|
|
944
|
-
type?: Database[
|
|
966
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
945
967
|
};
|
|
946
968
|
Relationships: [
|
|
947
969
|
{
|
|
948
|
-
foreignKeyName:
|
|
949
|
-
columns: [
|
|
950
|
-
|
|
951
|
-
|
|
970
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
971
|
+
columns: ["org_id"];
|
|
972
|
+
isOneToOne: false;
|
|
973
|
+
referencedRelation: "tbl_org";
|
|
974
|
+
referencedColumns: ["org_id"];
|
|
952
975
|
},
|
|
953
976
|
{
|
|
954
|
-
foreignKeyName:
|
|
955
|
-
columns: [
|
|
956
|
-
|
|
957
|
-
|
|
977
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
978
|
+
columns: ["org_id"];
|
|
979
|
+
isOneToOne: false;
|
|
980
|
+
referencedRelation: "view_org";
|
|
981
|
+
referencedColumns: ["org_id"];
|
|
958
982
|
}
|
|
959
983
|
];
|
|
960
984
|
};
|
|
@@ -969,7 +993,7 @@ export type Database = {
|
|
|
969
993
|
role: string;
|
|
970
994
|
token: string;
|
|
971
995
|
token_metadata: Json | null;
|
|
972
|
-
type: Database[
|
|
996
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
973
997
|
};
|
|
974
998
|
Insert: {
|
|
975
999
|
exp: string;
|
|
@@ -981,7 +1005,7 @@ export type Database = {
|
|
|
981
1005
|
role: string;
|
|
982
1006
|
token: string;
|
|
983
1007
|
token_metadata?: Json | null;
|
|
984
|
-
type: Database[
|
|
1008
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
985
1009
|
};
|
|
986
1010
|
Update: {
|
|
987
1011
|
exp?: string;
|
|
@@ -993,20 +1017,22 @@ export type Database = {
|
|
|
993
1017
|
role?: string;
|
|
994
1018
|
token?: string;
|
|
995
1019
|
token_metadata?: Json | null;
|
|
996
|
-
type?: Database[
|
|
1020
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
997
1021
|
};
|
|
998
1022
|
Relationships: [
|
|
999
1023
|
{
|
|
1000
|
-
foreignKeyName:
|
|
1001
|
-
columns: [
|
|
1002
|
-
|
|
1003
|
-
|
|
1024
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1025
|
+
columns: ["org_id"];
|
|
1026
|
+
isOneToOne: false;
|
|
1027
|
+
referencedRelation: "tbl_org";
|
|
1028
|
+
referencedColumns: ["org_id"];
|
|
1004
1029
|
},
|
|
1005
1030
|
{
|
|
1006
|
-
foreignKeyName:
|
|
1007
|
-
columns: [
|
|
1008
|
-
|
|
1009
|
-
|
|
1031
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1032
|
+
columns: ["org_id"];
|
|
1033
|
+
isOneToOne: false;
|
|
1034
|
+
referencedRelation: "view_org";
|
|
1035
|
+
referencedColumns: ["org_id"];
|
|
1010
1036
|
}
|
|
1011
1037
|
];
|
|
1012
1038
|
};
|
|
@@ -1076,16 +1102,18 @@ export type Database = {
|
|
|
1076
1102
|
};
|
|
1077
1103
|
Relationships: [
|
|
1078
1104
|
{
|
|
1079
|
-
foreignKeyName:
|
|
1080
|
-
columns: [
|
|
1081
|
-
|
|
1082
|
-
|
|
1105
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1106
|
+
columns: ["org_id"];
|
|
1107
|
+
isOneToOne: false;
|
|
1108
|
+
referencedRelation: "tbl_org";
|
|
1109
|
+
referencedColumns: ["org_id"];
|
|
1083
1110
|
},
|
|
1084
1111
|
{
|
|
1085
|
-
foreignKeyName:
|
|
1086
|
-
columns: [
|
|
1087
|
-
|
|
1088
|
-
|
|
1112
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1113
|
+
columns: ["org_id"];
|
|
1114
|
+
isOneToOne: false;
|
|
1115
|
+
referencedRelation: "view_org";
|
|
1116
|
+
referencedColumns: ["org_id"];
|
|
1089
1117
|
}
|
|
1090
1118
|
];
|
|
1091
1119
|
};
|
|
@@ -1098,13 +1126,13 @@ export type Database = {
|
|
|
1098
1126
|
is_active: boolean;
|
|
1099
1127
|
is_owner: boolean | null;
|
|
1100
1128
|
label_ids: string[] | null;
|
|
1101
|
-
member_color: Database[
|
|
1129
|
+
member_color: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1102
1130
|
member_image: string | null;
|
|
1103
1131
|
member_name: string | null;
|
|
1104
1132
|
org_id: string;
|
|
1105
1133
|
org_phones: string[] | null;
|
|
1106
1134
|
preferences: Json;
|
|
1107
|
-
role: Database[
|
|
1135
|
+
role: Database["public"]["Enums"]["enum_member_role"];
|
|
1108
1136
|
user_id: string | null;
|
|
1109
1137
|
};
|
|
1110
1138
|
Insert: {
|
|
@@ -1115,13 +1143,13 @@ export type Database = {
|
|
|
1115
1143
|
is_active?: boolean;
|
|
1116
1144
|
is_owner?: boolean | null;
|
|
1117
1145
|
label_ids?: string[] | null;
|
|
1118
|
-
member_color?: Database[
|
|
1146
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1119
1147
|
member_image?: string | null;
|
|
1120
1148
|
member_name?: string | null;
|
|
1121
1149
|
org_id: string;
|
|
1122
1150
|
org_phones?: string[] | null;
|
|
1123
1151
|
preferences?: Json;
|
|
1124
|
-
role?: Database[
|
|
1152
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1125
1153
|
user_id?: string | null;
|
|
1126
1154
|
};
|
|
1127
1155
|
Update: {
|
|
@@ -1132,33 +1160,36 @@ export type Database = {
|
|
|
1132
1160
|
is_active?: boolean;
|
|
1133
1161
|
is_owner?: boolean | null;
|
|
1134
1162
|
label_ids?: string[] | null;
|
|
1135
|
-
member_color?: Database[
|
|
1163
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1136
1164
|
member_image?: string | null;
|
|
1137
1165
|
member_name?: string | null;
|
|
1138
1166
|
org_id?: string;
|
|
1139
1167
|
org_phones?: string[] | null;
|
|
1140
1168
|
preferences?: Json;
|
|
1141
|
-
role?: Database[
|
|
1169
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1142
1170
|
user_id?: string | null;
|
|
1143
1171
|
};
|
|
1144
1172
|
Relationships: [
|
|
1145
1173
|
{
|
|
1146
|
-
foreignKeyName:
|
|
1147
|
-
columns: [
|
|
1148
|
-
|
|
1149
|
-
|
|
1174
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1175
|
+
columns: ["user_id"];
|
|
1176
|
+
isOneToOne: false;
|
|
1177
|
+
referencedRelation: "users";
|
|
1178
|
+
referencedColumns: ["id"];
|
|
1150
1179
|
},
|
|
1151
1180
|
{
|
|
1152
|
-
foreignKeyName:
|
|
1153
|
-
columns: [
|
|
1154
|
-
|
|
1155
|
-
|
|
1181
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1182
|
+
columns: ["org_id"];
|
|
1183
|
+
isOneToOne: false;
|
|
1184
|
+
referencedRelation: "tbl_org";
|
|
1185
|
+
referencedColumns: ["org_id"];
|
|
1156
1186
|
},
|
|
1157
1187
|
{
|
|
1158
|
-
foreignKeyName:
|
|
1159
|
-
columns: [
|
|
1160
|
-
|
|
1161
|
-
|
|
1188
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1189
|
+
columns: ["org_id"];
|
|
1190
|
+
isOneToOne: false;
|
|
1191
|
+
referencedRelation: "view_org";
|
|
1192
|
+
referencedColumns: ["org_id"];
|
|
1162
1193
|
}
|
|
1163
1194
|
];
|
|
1164
1195
|
};
|
|
@@ -1219,28 +1250,32 @@ export type Database = {
|
|
|
1219
1250
|
};
|
|
1220
1251
|
Relationships: [
|
|
1221
1252
|
{
|
|
1222
|
-
foreignKeyName:
|
|
1223
|
-
columns: [
|
|
1224
|
-
|
|
1225
|
-
|
|
1253
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1254
|
+
columns: ["org_id"];
|
|
1255
|
+
isOneToOne: false;
|
|
1256
|
+
referencedRelation: "tbl_org";
|
|
1257
|
+
referencedColumns: ["org_id"];
|
|
1226
1258
|
},
|
|
1227
1259
|
{
|
|
1228
|
-
foreignKeyName:
|
|
1229
|
-
columns: [
|
|
1230
|
-
|
|
1231
|
-
|
|
1260
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1261
|
+
columns: ["org_id"];
|
|
1262
|
+
isOneToOne: false;
|
|
1263
|
+
referencedRelation: "view_org";
|
|
1264
|
+
referencedColumns: ["org_id"];
|
|
1232
1265
|
},
|
|
1233
1266
|
{
|
|
1234
|
-
foreignKeyName:
|
|
1235
|
-
columns: [
|
|
1236
|
-
|
|
1237
|
-
|
|
1267
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1268
|
+
columns: ["org_id"];
|
|
1269
|
+
isOneToOne: false;
|
|
1270
|
+
referencedRelation: "tbl_org";
|
|
1271
|
+
referencedColumns: ["org_id"];
|
|
1238
1272
|
},
|
|
1239
1273
|
{
|
|
1240
|
-
foreignKeyName:
|
|
1241
|
-
columns: [
|
|
1242
|
-
|
|
1243
|
-
|
|
1274
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1275
|
+
columns: ["org_id"];
|
|
1276
|
+
isOneToOne: false;
|
|
1277
|
+
referencedRelation: "view_org";
|
|
1278
|
+
referencedColumns: ["org_id"];
|
|
1244
1279
|
}
|
|
1245
1280
|
];
|
|
1246
1281
|
};
|
|
@@ -1268,16 +1303,18 @@ export type Database = {
|
|
|
1268
1303
|
};
|
|
1269
1304
|
Relationships: [
|
|
1270
1305
|
{
|
|
1271
|
-
foreignKeyName:
|
|
1272
|
-
columns: [
|
|
1273
|
-
|
|
1274
|
-
|
|
1306
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1307
|
+
columns: ["org_id"];
|
|
1308
|
+
isOneToOne: false;
|
|
1309
|
+
referencedRelation: "tbl_org";
|
|
1310
|
+
referencedColumns: ["org_id"];
|
|
1275
1311
|
},
|
|
1276
1312
|
{
|
|
1277
|
-
foreignKeyName:
|
|
1278
|
-
columns: [
|
|
1279
|
-
|
|
1280
|
-
|
|
1313
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1314
|
+
columns: ["org_id"];
|
|
1315
|
+
isOneToOne: false;
|
|
1316
|
+
referencedRelation: "view_org";
|
|
1317
|
+
referencedColumns: ["org_id"];
|
|
1281
1318
|
}
|
|
1282
1319
|
];
|
|
1283
1320
|
};
|
|
@@ -1328,16 +1365,18 @@ export type Database = {
|
|
|
1328
1365
|
};
|
|
1329
1366
|
Relationships: [
|
|
1330
1367
|
{
|
|
1331
|
-
foreignKeyName:
|
|
1332
|
-
columns: [
|
|
1333
|
-
|
|
1334
|
-
|
|
1368
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1369
|
+
columns: ["org_id"];
|
|
1370
|
+
isOneToOne: false;
|
|
1371
|
+
referencedRelation: "tbl_org";
|
|
1372
|
+
referencedColumns: ["org_id"];
|
|
1335
1373
|
},
|
|
1336
1374
|
{
|
|
1337
|
-
foreignKeyName:
|
|
1338
|
-
columns: [
|
|
1339
|
-
|
|
1340
|
-
|
|
1375
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1376
|
+
columns: ["org_id"];
|
|
1377
|
+
isOneToOne: false;
|
|
1378
|
+
referencedRelation: "view_org";
|
|
1379
|
+
referencedColumns: ["org_id"];
|
|
1341
1380
|
}
|
|
1342
1381
|
];
|
|
1343
1382
|
};
|
|
@@ -1450,7 +1489,7 @@ export type Database = {
|
|
|
1450
1489
|
generate_access_token: {
|
|
1451
1490
|
Args: {
|
|
1452
1491
|
name_input?: string;
|
|
1453
|
-
type_input?: Database[
|
|
1492
|
+
type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1454
1493
|
org_id_input?: string;
|
|
1455
1494
|
};
|
|
1456
1495
|
Returns: Json;
|
|
@@ -1460,7 +1499,7 @@ export type Database = {
|
|
|
1460
1499
|
org_id_input?: string;
|
|
1461
1500
|
org_phone_input?: string;
|
|
1462
1501
|
token_id_input?: string;
|
|
1463
|
-
token_type_input?: Database[
|
|
1502
|
+
token_type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1464
1503
|
};
|
|
1465
1504
|
Returns: Json;
|
|
1466
1505
|
};
|
|
@@ -1469,7 +1508,7 @@ export type Database = {
|
|
|
1469
1508
|
org_id_input: string;
|
|
1470
1509
|
chat_ids_input?: string[];
|
|
1471
1510
|
};
|
|
1472
|
-
Returns:
|
|
1511
|
+
Returns: Json[];
|
|
1473
1512
|
};
|
|
1474
1513
|
get_chat_members: {
|
|
1475
1514
|
Args: {
|
|
@@ -1497,7 +1536,8 @@ export type Database = {
|
|
|
1497
1536
|
Args: {
|
|
1498
1537
|
org_id_input: string;
|
|
1499
1538
|
contact_ids_input?: string[];
|
|
1500
|
-
|
|
1539
|
+
with_chats?: boolean;
|
|
1540
|
+
with_name?: boolean;
|
|
1501
1541
|
};
|
|
1502
1542
|
Returns: Json;
|
|
1503
1543
|
};
|
|
@@ -1572,11 +1612,11 @@ export type Database = {
|
|
|
1572
1612
|
};
|
|
1573
1613
|
list_org_from_user: {
|
|
1574
1614
|
Args: Record<PropertyKey, never>;
|
|
1575
|
-
Returns:
|
|
1615
|
+
Returns: string[];
|
|
1576
1616
|
};
|
|
1577
1617
|
list_role_from_user: {
|
|
1578
1618
|
Args: Record<PropertyKey, never>;
|
|
1579
|
-
Returns: Database[
|
|
1619
|
+
Returns: Database["public"]["Enums"]["enum_member_role"];
|
|
1580
1620
|
};
|
|
1581
1621
|
update_labels: {
|
|
1582
1622
|
Args: {
|
|
@@ -1590,11 +1630,11 @@ export type Database = {
|
|
|
1590
1630
|
};
|
|
1591
1631
|
};
|
|
1592
1632
|
Enums: {
|
|
1593
|
-
enum_chat_colors:
|
|
1594
|
-
enum_chat_tickets_status:
|
|
1595
|
-
enum_integration_name:
|
|
1596
|
-
enum_integration_type:
|
|
1597
|
-
enum_member_role:
|
|
1633
|
+
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
1634
|
+
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
1635
|
+
enum_integration_name: "org.created" | "org.updated" | "org.member.created" | "org.member.updated" | "org.phone.created" | "org.phone.connected" | "org.phone.disconnected" | "org.subscription.trial_will_end" | "chat.created" | "chat.updated" | "message.created" | "message.updated" | "message.deleted" | "message.ack.updated" | "reaction.created" | "reaction.updated" | "ticket.created" | "ticket.updated" | "ticket.deleted";
|
|
1636
|
+
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce";
|
|
1637
|
+
enum_member_role: "admin" | "member";
|
|
1598
1638
|
};
|
|
1599
1639
|
CompositeTypes: {
|
|
1600
1640
|
[_ in never]: never;
|
|
@@ -1611,6 +1651,7 @@ export type Database = {
|
|
|
1611
1651
|
id: string;
|
|
1612
1652
|
name: string;
|
|
1613
1653
|
owner: string | null;
|
|
1654
|
+
owner_id: string | null;
|
|
1614
1655
|
public: boolean | null;
|
|
1615
1656
|
updated_at: string | null;
|
|
1616
1657
|
};
|
|
@@ -1622,6 +1663,7 @@ export type Database = {
|
|
|
1622
1663
|
id: string;
|
|
1623
1664
|
name: string;
|
|
1624
1665
|
owner?: string | null;
|
|
1666
|
+
owner_id?: string | null;
|
|
1625
1667
|
public?: boolean | null;
|
|
1626
1668
|
updated_at?: string | null;
|
|
1627
1669
|
};
|
|
@@ -1633,17 +1675,11 @@ export type Database = {
|
|
|
1633
1675
|
id?: string;
|
|
1634
1676
|
name?: string;
|
|
1635
1677
|
owner?: string | null;
|
|
1678
|
+
owner_id?: string | null;
|
|
1636
1679
|
public?: boolean | null;
|
|
1637
1680
|
updated_at?: string | null;
|
|
1638
1681
|
};
|
|
1639
|
-
Relationships: [
|
|
1640
|
-
{
|
|
1641
|
-
foreignKeyName: 'buckets_owner_fkey';
|
|
1642
|
-
columns: ['owner'];
|
|
1643
|
-
referencedRelation: 'users';
|
|
1644
|
-
referencedColumns: ['id'];
|
|
1645
|
-
}
|
|
1646
|
-
];
|
|
1682
|
+
Relationships: [];
|
|
1647
1683
|
};
|
|
1648
1684
|
migrations: {
|
|
1649
1685
|
Row: {
|
|
@@ -1675,6 +1711,7 @@ export type Database = {
|
|
|
1675
1711
|
metadata: Json | null;
|
|
1676
1712
|
name: string | null;
|
|
1677
1713
|
owner: string | null;
|
|
1714
|
+
owner_id: string | null;
|
|
1678
1715
|
path_tokens: string[] | null;
|
|
1679
1716
|
updated_at: string | null;
|
|
1680
1717
|
version: string | null;
|
|
@@ -1687,6 +1724,7 @@ export type Database = {
|
|
|
1687
1724
|
metadata?: Json | null;
|
|
1688
1725
|
name?: string | null;
|
|
1689
1726
|
owner?: string | null;
|
|
1727
|
+
owner_id?: string | null;
|
|
1690
1728
|
path_tokens?: string[] | null;
|
|
1691
1729
|
updated_at?: string | null;
|
|
1692
1730
|
version?: string | null;
|
|
@@ -1699,16 +1737,113 @@ export type Database = {
|
|
|
1699
1737
|
metadata?: Json | null;
|
|
1700
1738
|
name?: string | null;
|
|
1701
1739
|
owner?: string | null;
|
|
1740
|
+
owner_id?: string | null;
|
|
1702
1741
|
path_tokens?: string[] | null;
|
|
1703
1742
|
updated_at?: string | null;
|
|
1704
1743
|
version?: string | null;
|
|
1705
1744
|
};
|
|
1706
1745
|
Relationships: [
|
|
1707
1746
|
{
|
|
1708
|
-
foreignKeyName:
|
|
1709
|
-
columns: [
|
|
1710
|
-
|
|
1711
|
-
|
|
1747
|
+
foreignKeyName: "objects_bucketId_fkey";
|
|
1748
|
+
columns: ["bucket_id"];
|
|
1749
|
+
isOneToOne: false;
|
|
1750
|
+
referencedRelation: "buckets";
|
|
1751
|
+
referencedColumns: ["id"];
|
|
1752
|
+
}
|
|
1753
|
+
];
|
|
1754
|
+
};
|
|
1755
|
+
s3_multipart_uploads: {
|
|
1756
|
+
Row: {
|
|
1757
|
+
bucket_id: string;
|
|
1758
|
+
created_at: string;
|
|
1759
|
+
id: string;
|
|
1760
|
+
in_progress_size: number;
|
|
1761
|
+
key: string;
|
|
1762
|
+
owner_id: string | null;
|
|
1763
|
+
upload_signature: string;
|
|
1764
|
+
version: string;
|
|
1765
|
+
};
|
|
1766
|
+
Insert: {
|
|
1767
|
+
bucket_id: string;
|
|
1768
|
+
created_at?: string;
|
|
1769
|
+
id: string;
|
|
1770
|
+
in_progress_size?: number;
|
|
1771
|
+
key: string;
|
|
1772
|
+
owner_id?: string | null;
|
|
1773
|
+
upload_signature: string;
|
|
1774
|
+
version: string;
|
|
1775
|
+
};
|
|
1776
|
+
Update: {
|
|
1777
|
+
bucket_id?: string;
|
|
1778
|
+
created_at?: string;
|
|
1779
|
+
id?: string;
|
|
1780
|
+
in_progress_size?: number;
|
|
1781
|
+
key?: string;
|
|
1782
|
+
owner_id?: string | null;
|
|
1783
|
+
upload_signature?: string;
|
|
1784
|
+
version?: string;
|
|
1785
|
+
};
|
|
1786
|
+
Relationships: [
|
|
1787
|
+
{
|
|
1788
|
+
foreignKeyName: "s3_multipart_uploads_bucket_id_fkey";
|
|
1789
|
+
columns: ["bucket_id"];
|
|
1790
|
+
isOneToOne: false;
|
|
1791
|
+
referencedRelation: "buckets";
|
|
1792
|
+
referencedColumns: ["id"];
|
|
1793
|
+
}
|
|
1794
|
+
];
|
|
1795
|
+
};
|
|
1796
|
+
s3_multipart_uploads_parts: {
|
|
1797
|
+
Row: {
|
|
1798
|
+
bucket_id: string;
|
|
1799
|
+
created_at: string;
|
|
1800
|
+
etag: string;
|
|
1801
|
+
id: string;
|
|
1802
|
+
key: string;
|
|
1803
|
+
owner_id: string | null;
|
|
1804
|
+
part_number: number;
|
|
1805
|
+
size: number;
|
|
1806
|
+
upload_id: string;
|
|
1807
|
+
version: string;
|
|
1808
|
+
};
|
|
1809
|
+
Insert: {
|
|
1810
|
+
bucket_id: string;
|
|
1811
|
+
created_at?: string;
|
|
1812
|
+
etag: string;
|
|
1813
|
+
id?: string;
|
|
1814
|
+
key: string;
|
|
1815
|
+
owner_id?: string | null;
|
|
1816
|
+
part_number: number;
|
|
1817
|
+
size?: number;
|
|
1818
|
+
upload_id: string;
|
|
1819
|
+
version: string;
|
|
1820
|
+
};
|
|
1821
|
+
Update: {
|
|
1822
|
+
bucket_id?: string;
|
|
1823
|
+
created_at?: string;
|
|
1824
|
+
etag?: string;
|
|
1825
|
+
id?: string;
|
|
1826
|
+
key?: string;
|
|
1827
|
+
owner_id?: string | null;
|
|
1828
|
+
part_number?: number;
|
|
1829
|
+
size?: number;
|
|
1830
|
+
upload_id?: string;
|
|
1831
|
+
version?: string;
|
|
1832
|
+
};
|
|
1833
|
+
Relationships: [
|
|
1834
|
+
{
|
|
1835
|
+
foreignKeyName: "s3_multipart_uploads_parts_bucket_id_fkey";
|
|
1836
|
+
columns: ["bucket_id"];
|
|
1837
|
+
isOneToOne: false;
|
|
1838
|
+
referencedRelation: "buckets";
|
|
1839
|
+
referencedColumns: ["id"];
|
|
1840
|
+
},
|
|
1841
|
+
{
|
|
1842
|
+
foreignKeyName: "s3_multipart_uploads_parts_upload_id_fkey";
|
|
1843
|
+
columns: ["upload_id"];
|
|
1844
|
+
isOneToOne: false;
|
|
1845
|
+
referencedRelation: "s3_multipart_uploads";
|
|
1846
|
+
referencedColumns: ["id"];
|
|
1712
1847
|
}
|
|
1713
1848
|
];
|
|
1714
1849
|
};
|
|
@@ -1742,7 +1877,7 @@ export type Database = {
|
|
|
1742
1877
|
Args: {
|
|
1743
1878
|
name: string;
|
|
1744
1879
|
};
|
|
1745
|
-
Returns:
|
|
1880
|
+
Returns: string[];
|
|
1746
1881
|
};
|
|
1747
1882
|
get_size_by_bucket: {
|
|
1748
1883
|
Args: Record<PropertyKey, never>;
|
|
@@ -1751,6 +1886,37 @@ export type Database = {
|
|
|
1751
1886
|
bucket_id: string;
|
|
1752
1887
|
}[];
|
|
1753
1888
|
};
|
|
1889
|
+
list_multipart_uploads_with_delimiter: {
|
|
1890
|
+
Args: {
|
|
1891
|
+
bucket_id: string;
|
|
1892
|
+
prefix_param: string;
|
|
1893
|
+
delimiter_param: string;
|
|
1894
|
+
max_keys?: number;
|
|
1895
|
+
next_key_token?: string;
|
|
1896
|
+
next_upload_token?: string;
|
|
1897
|
+
};
|
|
1898
|
+
Returns: {
|
|
1899
|
+
key: string;
|
|
1900
|
+
id: string;
|
|
1901
|
+
created_at: string;
|
|
1902
|
+
}[];
|
|
1903
|
+
};
|
|
1904
|
+
list_objects_with_delimiter: {
|
|
1905
|
+
Args: {
|
|
1906
|
+
bucket_id: string;
|
|
1907
|
+
prefix_param: string;
|
|
1908
|
+
delimiter_param: string;
|
|
1909
|
+
max_keys?: number;
|
|
1910
|
+
start_after?: string;
|
|
1911
|
+
next_token?: string;
|
|
1912
|
+
};
|
|
1913
|
+
Returns: {
|
|
1914
|
+
name: string;
|
|
1915
|
+
id: string;
|
|
1916
|
+
metadata: Json;
|
|
1917
|
+
updated_at: string;
|
|
1918
|
+
}[];
|
|
1919
|
+
};
|
|
1754
1920
|
search: {
|
|
1755
1921
|
Args: {
|
|
1756
1922
|
prefix: string;
|
|
@@ -1780,45 +1946,45 @@ export type Database = {
|
|
|
1780
1946
|
};
|
|
1781
1947
|
};
|
|
1782
1948
|
};
|
|
1783
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
1784
|
-
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
1949
|
+
type PublicSchema = Database[Extract<keyof Database, "public">];
|
|
1950
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
|
|
1785
1951
|
schema: keyof Database;
|
|
1786
1952
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1787
1953
|
schema: keyof Database;
|
|
1788
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
1954
|
+
} ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
|
|
1789
1955
|
schema: keyof Database;
|
|
1790
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
1956
|
+
} ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
1791
1957
|
Row: infer R;
|
|
1792
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
1958
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
1793
1959
|
Row: infer R;
|
|
1794
1960
|
} ? R : never : never;
|
|
1795
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1961
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
1796
1962
|
schema: keyof Database;
|
|
1797
1963
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1798
1964
|
schema: keyof Database;
|
|
1799
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
1965
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
1800
1966
|
schema: keyof Database;
|
|
1801
|
-
} ? Database[PublicTableNameOrOptions[
|
|
1967
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
1802
1968
|
Insert: infer I;
|
|
1803
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1969
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
1804
1970
|
Insert: infer I;
|
|
1805
1971
|
} ? I : never : never;
|
|
1806
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1972
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
1807
1973
|
schema: keyof Database;
|
|
1808
1974
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1809
1975
|
schema: keyof Database;
|
|
1810
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
1976
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
1811
1977
|
schema: keyof Database;
|
|
1812
|
-
} ? Database[PublicTableNameOrOptions[
|
|
1978
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
1813
1979
|
Update: infer U;
|
|
1814
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1980
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
1815
1981
|
Update: infer U;
|
|
1816
1982
|
} ? U : never : never;
|
|
1817
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
1983
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
|
|
1818
1984
|
schema: keyof Database;
|
|
1819
1985
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
1820
1986
|
schema: keyof Database;
|
|
1821
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
1987
|
+
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
1822
1988
|
schema: keyof Database;
|
|
1823
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
1989
|
+
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
1824
1990
|
export {};
|