@periskope/types 0.6.76 → 0.6.79
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 +232 -270
- package/dist/types.d.ts +7 -3
- package/dist/types.js +2 -1
- package/mod_json_type.ps1 +15 -15
- package/package.json +1 -1
- package/supabase.types.ts +1883 -1925
- package/tsconfig.json +105 -105
- package/types.ts +10 -2
- package/update_package.ps1 +21 -21
- package/dist/supabase.columns.d.ts +0 -18
- package/dist/supabase.columns.js +0 -291
package/dist/supabase.types.d.ts
CHANGED
|
@@ -74,32 +74,28 @@ export type Database = {
|
|
|
74
74
|
};
|
|
75
75
|
Relationships: [
|
|
76
76
|
{
|
|
77
|
-
foreignKeyName:
|
|
78
|
-
columns: [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
referencedColumns: ['broadcast_id'];
|
|
77
|
+
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
|
|
78
|
+
columns: ["broadcast_id"];
|
|
79
|
+
referencedRelation: "tbl_broadcast_messages";
|
|
80
|
+
referencedColumns: ["broadcast_id"];
|
|
82
81
|
},
|
|
83
82
|
{
|
|
84
|
-
foreignKeyName:
|
|
85
|
-
columns: [
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
referencedColumns: ['broadcast_id'];
|
|
83
|
+
foreignKeyName: "tbl_broadcast_logs_broadcast_id_fkey";
|
|
84
|
+
columns: ["broadcast_id"];
|
|
85
|
+
referencedRelation: "view_broadcast_logs";
|
|
86
|
+
referencedColumns: ["broadcast_id"];
|
|
89
87
|
},
|
|
90
88
|
{
|
|
91
|
-
foreignKeyName:
|
|
92
|
-
columns: [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
referencedColumns: ['org_id'];
|
|
89
|
+
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
90
|
+
columns: ["org_id"];
|
|
91
|
+
referencedRelation: "tbl_org";
|
|
92
|
+
referencedColumns: ["org_id"];
|
|
96
93
|
},
|
|
97
94
|
{
|
|
98
|
-
foreignKeyName:
|
|
99
|
-
columns: [
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
referencedColumns: ['org_id'];
|
|
95
|
+
foreignKeyName: "tbl_broadcast_logs_org_id_fkey";
|
|
96
|
+
columns: ["org_id"];
|
|
97
|
+
referencedRelation: "view_org";
|
|
98
|
+
referencedColumns: ["org_id"];
|
|
103
99
|
}
|
|
104
100
|
];
|
|
105
101
|
};
|
|
@@ -136,18 +132,16 @@ export type Database = {
|
|
|
136
132
|
};
|
|
137
133
|
Relationships: [
|
|
138
134
|
{
|
|
139
|
-
foreignKeyName:
|
|
140
|
-
columns: [
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
referencedColumns: ['org_id'];
|
|
135
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
136
|
+
columns: ["org_id"];
|
|
137
|
+
referencedRelation: "tbl_org";
|
|
138
|
+
referencedColumns: ["org_id"];
|
|
144
139
|
},
|
|
145
140
|
{
|
|
146
|
-
foreignKeyName:
|
|
147
|
-
columns: [
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
referencedColumns: ['org_id'];
|
|
141
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
142
|
+
columns: ["org_id"];
|
|
143
|
+
referencedRelation: "view_org";
|
|
144
|
+
referencedColumns: ["org_id"];
|
|
151
145
|
}
|
|
152
146
|
];
|
|
153
147
|
};
|
|
@@ -178,18 +172,16 @@ export type Database = {
|
|
|
178
172
|
};
|
|
179
173
|
Relationships: [
|
|
180
174
|
{
|
|
181
|
-
foreignKeyName:
|
|
182
|
-
columns: [
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
referencedColumns: ['org_id'];
|
|
175
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
176
|
+
columns: ["org_id"];
|
|
177
|
+
referencedRelation: "tbl_org";
|
|
178
|
+
referencedColumns: ["org_id"];
|
|
186
179
|
},
|
|
187
180
|
{
|
|
188
|
-
foreignKeyName:
|
|
189
|
-
columns: [
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
referencedColumns: ['org_id'];
|
|
181
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
182
|
+
columns: ["org_id"];
|
|
183
|
+
referencedRelation: "view_org";
|
|
184
|
+
referencedColumns: ["org_id"];
|
|
193
185
|
}
|
|
194
186
|
];
|
|
195
187
|
};
|
|
@@ -223,11 +215,10 @@ export type Database = {
|
|
|
223
215
|
};
|
|
224
216
|
Relationships: [
|
|
225
217
|
{
|
|
226
|
-
foreignKeyName:
|
|
227
|
-
columns: [
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
referencedColumns: ['org_id', 'email'];
|
|
218
|
+
foreignKeyName: "tbl_chat_access_org_id_email_fkey";
|
|
219
|
+
columns: ["org_id", "email"];
|
|
220
|
+
referencedRelation: "tbl_org_members";
|
|
221
|
+
referencedColumns: ["org_id", "email"];
|
|
231
222
|
}
|
|
232
223
|
];
|
|
233
224
|
};
|
|
@@ -378,11 +369,10 @@ export type Database = {
|
|
|
378
369
|
};
|
|
379
370
|
Relationships: [
|
|
380
371
|
{
|
|
381
|
-
foreignKeyName:
|
|
382
|
-
columns: [
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
referencedColumns: ['org_phone', 'org_id'];
|
|
372
|
+
foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones";
|
|
373
|
+
columns: ["org_phone", "org_id"];
|
|
374
|
+
referencedRelation: "tbl_org_phones";
|
|
375
|
+
referencedColumns: ["org_phone", "org_id"];
|
|
386
376
|
}
|
|
387
377
|
];
|
|
388
378
|
};
|
|
@@ -428,11 +418,10 @@ export type Database = {
|
|
|
428
418
|
};
|
|
429
419
|
Relationships: [
|
|
430
420
|
{
|
|
431
|
-
foreignKeyName:
|
|
432
|
-
columns: [
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
referencedColumns: ['org_id', 'org_phone'];
|
|
421
|
+
foreignKeyName: "tbl_chat_notifications_fkey_tbl_org_phones";
|
|
422
|
+
columns: ["org_id", "org_phone"];
|
|
423
|
+
referencedRelation: "tbl_org_phones";
|
|
424
|
+
referencedColumns: ["org_id", "org_phone"];
|
|
436
425
|
}
|
|
437
426
|
];
|
|
438
427
|
};
|
|
@@ -466,11 +455,10 @@ export type Database = {
|
|
|
466
455
|
};
|
|
467
456
|
Relationships: [
|
|
468
457
|
{
|
|
469
|
-
foreignKeyName:
|
|
470
|
-
columns: [
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
referencedColumns: ['org_id', 'org_phone', 'chat_id'];
|
|
458
|
+
foreignKeyName: "tbl_chat_participants_fkey_tbl_chats";
|
|
459
|
+
columns: ["org_id", "org_phone", "chat_id"];
|
|
460
|
+
referencedRelation: "tbl_chats";
|
|
461
|
+
referencedColumns: ["org_id", "org_phone", "chat_id"];
|
|
474
462
|
}
|
|
475
463
|
];
|
|
476
464
|
};
|
|
@@ -549,11 +537,10 @@ export type Database = {
|
|
|
549
537
|
};
|
|
550
538
|
Relationships: [
|
|
551
539
|
{
|
|
552
|
-
foreignKeyName:
|
|
553
|
-
columns: [
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
referencedColumns: ['org_id', 'org_phone'];
|
|
540
|
+
foreignKeyName: "tbl_chat_reactions_fkey_tbl_org_phones";
|
|
541
|
+
columns: ["org_id", "org_phone"];
|
|
542
|
+
referencedRelation: "tbl_org_phones";
|
|
543
|
+
referencedColumns: ["org_id", "org_phone"];
|
|
557
544
|
}
|
|
558
545
|
];
|
|
559
546
|
};
|
|
@@ -571,7 +558,7 @@ export type Database = {
|
|
|
571
558
|
priority: number | null;
|
|
572
559
|
quoted_message_id: string | null;
|
|
573
560
|
raised_by: string | null;
|
|
574
|
-
status: Database[
|
|
561
|
+
status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
575
562
|
subject: string;
|
|
576
563
|
ticket_id: string;
|
|
577
564
|
};
|
|
@@ -588,7 +575,7 @@ export type Database = {
|
|
|
588
575
|
priority?: number | null;
|
|
589
576
|
quoted_message_id?: string | null;
|
|
590
577
|
raised_by?: string | null;
|
|
591
|
-
status?: Database[
|
|
578
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
592
579
|
subject: string;
|
|
593
580
|
ticket_id?: string;
|
|
594
581
|
};
|
|
@@ -605,24 +592,22 @@ export type Database = {
|
|
|
605
592
|
priority?: number | null;
|
|
606
593
|
quoted_message_id?: string | null;
|
|
607
594
|
raised_by?: string | null;
|
|
608
|
-
status?: Database[
|
|
595
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
609
596
|
subject?: string;
|
|
610
597
|
ticket_id?: string;
|
|
611
598
|
};
|
|
612
599
|
Relationships: [
|
|
613
600
|
{
|
|
614
|
-
foreignKeyName:
|
|
615
|
-
columns: [
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
referencedColumns: ['org_id'];
|
|
601
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
602
|
+
columns: ["org_id"];
|
|
603
|
+
referencedRelation: "tbl_org";
|
|
604
|
+
referencedColumns: ["org_id"];
|
|
619
605
|
},
|
|
620
606
|
{
|
|
621
|
-
foreignKeyName:
|
|
622
|
-
columns: [
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
referencedColumns: ['org_id'];
|
|
607
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
608
|
+
columns: ["org_id"];
|
|
609
|
+
referencedRelation: "view_org";
|
|
610
|
+
referencedColumns: ["org_id"];
|
|
626
611
|
}
|
|
627
612
|
];
|
|
628
613
|
};
|
|
@@ -701,18 +686,17 @@ export type Database = {
|
|
|
701
686
|
};
|
|
702
687
|
Relationships: [
|
|
703
688
|
{
|
|
704
|
-
foreignKeyName:
|
|
705
|
-
columns: [
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
referencedColumns: ['org_phone', 'org_id'];
|
|
689
|
+
foreignKeyName: "tbl_chats_fkey_tbl_org_phones";
|
|
690
|
+
columns: ["org_phone", "org_id"];
|
|
691
|
+
referencedRelation: "tbl_org_phones";
|
|
692
|
+
referencedColumns: ["org_phone", "org_id"];
|
|
709
693
|
}
|
|
710
694
|
];
|
|
711
695
|
};
|
|
712
696
|
tbl_contacts: {
|
|
713
697
|
Row: {
|
|
714
698
|
business_profile: Json | null;
|
|
715
|
-
contact_color: Database[
|
|
699
|
+
contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
716
700
|
contact_id: string;
|
|
717
701
|
contact_image: string | null;
|
|
718
702
|
contact_name: string | null;
|
|
@@ -739,7 +723,7 @@ export type Database = {
|
|
|
739
723
|
};
|
|
740
724
|
Insert: {
|
|
741
725
|
business_profile?: Json | null;
|
|
742
|
-
contact_color?: Database[
|
|
726
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
743
727
|
contact_id: string;
|
|
744
728
|
contact_image?: string | null;
|
|
745
729
|
contact_name?: string | null;
|
|
@@ -766,7 +750,7 @@ export type Database = {
|
|
|
766
750
|
};
|
|
767
751
|
Update: {
|
|
768
752
|
business_profile?: Json | null;
|
|
769
|
-
contact_color?: Database[
|
|
753
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
770
754
|
contact_id?: string;
|
|
771
755
|
contact_image?: string | null;
|
|
772
756
|
contact_name?: string | null;
|
|
@@ -793,18 +777,16 @@ export type Database = {
|
|
|
793
777
|
};
|
|
794
778
|
Relationships: [
|
|
795
779
|
{
|
|
796
|
-
foreignKeyName:
|
|
797
|
-
columns: [
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
referencedColumns: ['org_id'];
|
|
780
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
781
|
+
columns: ["org_id"];
|
|
782
|
+
referencedRelation: "tbl_org";
|
|
783
|
+
referencedColumns: ["org_id"];
|
|
801
784
|
},
|
|
802
785
|
{
|
|
803
|
-
foreignKeyName:
|
|
804
|
-
columns: [
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
referencedColumns: ['org_id'];
|
|
786
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
787
|
+
columns: ["org_id"];
|
|
788
|
+
referencedRelation: "view_org";
|
|
789
|
+
referencedColumns: ["org_id"];
|
|
808
790
|
}
|
|
809
791
|
];
|
|
810
792
|
};
|
|
@@ -841,18 +823,16 @@ export type Database = {
|
|
|
841
823
|
};
|
|
842
824
|
Relationships: [
|
|
843
825
|
{
|
|
844
|
-
foreignKeyName:
|
|
845
|
-
columns: [
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
referencedColumns: ['org_id'];
|
|
826
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
827
|
+
columns: ["org_id"];
|
|
828
|
+
referencedRelation: "tbl_org";
|
|
829
|
+
referencedColumns: ["org_id"];
|
|
849
830
|
},
|
|
850
831
|
{
|
|
851
|
-
foreignKeyName:
|
|
852
|
-
columns: [
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
referencedColumns: ['org_id'];
|
|
832
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
833
|
+
columns: ["org_id"];
|
|
834
|
+
referencedRelation: "view_org";
|
|
835
|
+
referencedColumns: ["org_id"];
|
|
856
836
|
}
|
|
857
837
|
];
|
|
858
838
|
};
|
|
@@ -883,18 +863,16 @@ export type Database = {
|
|
|
883
863
|
};
|
|
884
864
|
Relationships: [
|
|
885
865
|
{
|
|
886
|
-
foreignKeyName:
|
|
887
|
-
columns: [
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
referencedColumns: ['org_id'];
|
|
866
|
+
foreignKeyName: "tbl_flagged_messages_org_id_fkey";
|
|
867
|
+
columns: ["org_id"];
|
|
868
|
+
referencedRelation: "tbl_org";
|
|
869
|
+
referencedColumns: ["org_id"];
|
|
891
870
|
},
|
|
892
871
|
{
|
|
893
|
-
foreignKeyName:
|
|
894
|
-
columns: [
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
referencedColumns: ['org_id'];
|
|
872
|
+
foreignKeyName: "tbl_flagged_messages_org_id_fkey";
|
|
873
|
+
columns: ["org_id"];
|
|
874
|
+
referencedRelation: "view_org";
|
|
875
|
+
referencedColumns: ["org_id"];
|
|
898
876
|
}
|
|
899
877
|
];
|
|
900
878
|
};
|
|
@@ -904,51 +882,49 @@ export type Database = {
|
|
|
904
882
|
id: string;
|
|
905
883
|
integration_id: string | null;
|
|
906
884
|
integration_metadata: Json;
|
|
907
|
-
integration_name: Database[
|
|
885
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
908
886
|
integration_type: string;
|
|
909
887
|
is_subscribed: boolean;
|
|
910
888
|
org_id: string;
|
|
911
889
|
subscribed_at: string;
|
|
912
|
-
type: Database[
|
|
890
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
913
891
|
};
|
|
914
892
|
Insert: {
|
|
915
893
|
hook_url: string;
|
|
916
894
|
id?: string;
|
|
917
895
|
integration_id?: string | null;
|
|
918
896
|
integration_metadata: Json;
|
|
919
|
-
integration_name: Database[
|
|
897
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
920
898
|
integration_type: string;
|
|
921
899
|
is_subscribed: boolean;
|
|
922
900
|
org_id: string;
|
|
923
901
|
subscribed_at?: string;
|
|
924
|
-
type: Database[
|
|
902
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
925
903
|
};
|
|
926
904
|
Update: {
|
|
927
905
|
hook_url?: string;
|
|
928
906
|
id?: string;
|
|
929
907
|
integration_id?: string | null;
|
|
930
908
|
integration_metadata?: Json;
|
|
931
|
-
integration_name?: Database[
|
|
909
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
932
910
|
integration_type?: string;
|
|
933
911
|
is_subscribed?: boolean;
|
|
934
912
|
org_id?: string;
|
|
935
913
|
subscribed_at?: string;
|
|
936
|
-
type?: Database[
|
|
914
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
937
915
|
};
|
|
938
916
|
Relationships: [
|
|
939
917
|
{
|
|
940
|
-
foreignKeyName:
|
|
941
|
-
columns: [
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
referencedColumns: ['org_id'];
|
|
918
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
919
|
+
columns: ["org_id"];
|
|
920
|
+
referencedRelation: "tbl_org";
|
|
921
|
+
referencedColumns: ["org_id"];
|
|
945
922
|
},
|
|
946
923
|
{
|
|
947
|
-
foreignKeyName:
|
|
948
|
-
columns: [
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
referencedColumns: ['org_id'];
|
|
924
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
925
|
+
columns: ["org_id"];
|
|
926
|
+
referencedRelation: "view_org";
|
|
927
|
+
referencedColumns: ["org_id"];
|
|
952
928
|
}
|
|
953
929
|
];
|
|
954
930
|
};
|
|
@@ -956,47 +932,48 @@ export type Database = {
|
|
|
956
932
|
Row: {
|
|
957
933
|
created_at: string;
|
|
958
934
|
id: string;
|
|
959
|
-
integration_name: Database[
|
|
935
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
960
936
|
integration_type: string;
|
|
961
937
|
metadata: Json;
|
|
962
938
|
org_id: string;
|
|
939
|
+
response: Json | null;
|
|
963
940
|
success: boolean;
|
|
964
|
-
type: Database[
|
|
941
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
965
942
|
};
|
|
966
943
|
Insert: {
|
|
967
944
|
created_at?: string;
|
|
968
945
|
id?: string;
|
|
969
|
-
integration_name: Database[
|
|
946
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
970
947
|
integration_type: string;
|
|
971
948
|
metadata?: Json;
|
|
972
949
|
org_id: string;
|
|
950
|
+
response?: Json | null;
|
|
973
951
|
success?: boolean;
|
|
974
|
-
type: Database[
|
|
952
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
975
953
|
};
|
|
976
954
|
Update: {
|
|
977
955
|
created_at?: string;
|
|
978
956
|
id?: string;
|
|
979
|
-
integration_name?: Database[
|
|
957
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
980
958
|
integration_type?: string;
|
|
981
959
|
metadata?: Json;
|
|
982
960
|
org_id?: string;
|
|
961
|
+
response?: Json | null;
|
|
983
962
|
success?: boolean;
|
|
984
|
-
type?: Database[
|
|
963
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
985
964
|
};
|
|
986
965
|
Relationships: [
|
|
987
966
|
{
|
|
988
|
-
foreignKeyName:
|
|
989
|
-
columns: [
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
referencedColumns: ['org_id'];
|
|
967
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
968
|
+
columns: ["org_id"];
|
|
969
|
+
referencedRelation: "tbl_org";
|
|
970
|
+
referencedColumns: ["org_id"];
|
|
993
971
|
},
|
|
994
972
|
{
|
|
995
|
-
foreignKeyName:
|
|
996
|
-
columns: [
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
referencedColumns: ['org_id'];
|
|
973
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
974
|
+
columns: ["org_id"];
|
|
975
|
+
referencedRelation: "view_org";
|
|
976
|
+
referencedColumns: ["org_id"];
|
|
1000
977
|
}
|
|
1001
978
|
];
|
|
1002
979
|
};
|
|
@@ -1010,7 +987,7 @@ export type Database = {
|
|
|
1010
987
|
org_id: string;
|
|
1011
988
|
role: string;
|
|
1012
989
|
token: string;
|
|
1013
|
-
type: Database[
|
|
990
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1014
991
|
};
|
|
1015
992
|
Insert: {
|
|
1016
993
|
exp: string;
|
|
@@ -1021,7 +998,7 @@ export type Database = {
|
|
|
1021
998
|
org_id: string;
|
|
1022
999
|
role: string;
|
|
1023
1000
|
token: string;
|
|
1024
|
-
type: Database[
|
|
1001
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1025
1002
|
};
|
|
1026
1003
|
Update: {
|
|
1027
1004
|
exp?: string;
|
|
@@ -1032,22 +1009,20 @@ export type Database = {
|
|
|
1032
1009
|
org_id?: string;
|
|
1033
1010
|
role?: string;
|
|
1034
1011
|
token?: string;
|
|
1035
|
-
type?: Database[
|
|
1012
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1036
1013
|
};
|
|
1037
1014
|
Relationships: [
|
|
1038
1015
|
{
|
|
1039
|
-
foreignKeyName:
|
|
1040
|
-
columns: [
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
referencedColumns: ['org_id'];
|
|
1016
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1017
|
+
columns: ["org_id"];
|
|
1018
|
+
referencedRelation: "tbl_org";
|
|
1019
|
+
referencedColumns: ["org_id"];
|
|
1044
1020
|
},
|
|
1045
1021
|
{
|
|
1046
|
-
foreignKeyName:
|
|
1047
|
-
columns: [
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
referencedColumns: ['org_id'];
|
|
1022
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1023
|
+
columns: ["org_id"];
|
|
1024
|
+
referencedRelation: "view_org";
|
|
1025
|
+
referencedColumns: ["org_id"];
|
|
1051
1026
|
}
|
|
1052
1027
|
];
|
|
1053
1028
|
};
|
|
@@ -1117,18 +1092,16 @@ export type Database = {
|
|
|
1117
1092
|
};
|
|
1118
1093
|
Relationships: [
|
|
1119
1094
|
{
|
|
1120
|
-
foreignKeyName:
|
|
1121
|
-
columns: [
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
referencedColumns: ['org_id'];
|
|
1095
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1096
|
+
columns: ["org_id"];
|
|
1097
|
+
referencedRelation: "tbl_org";
|
|
1098
|
+
referencedColumns: ["org_id"];
|
|
1125
1099
|
},
|
|
1126
1100
|
{
|
|
1127
|
-
foreignKeyName:
|
|
1128
|
-
columns: [
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
referencedColumns: ['org_id'];
|
|
1101
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1102
|
+
columns: ["org_id"];
|
|
1103
|
+
referencedRelation: "view_org";
|
|
1104
|
+
referencedColumns: ["org_id"];
|
|
1132
1105
|
}
|
|
1133
1106
|
];
|
|
1134
1107
|
};
|
|
@@ -1141,13 +1114,13 @@ export type Database = {
|
|
|
1141
1114
|
is_active: boolean;
|
|
1142
1115
|
is_owner: boolean | null;
|
|
1143
1116
|
label_ids: string[] | null;
|
|
1144
|
-
member_color: Database[
|
|
1117
|
+
member_color: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1145
1118
|
member_image: string | null;
|
|
1146
1119
|
member_name: string | null;
|
|
1147
1120
|
org_id: string;
|
|
1148
1121
|
org_phones: string[] | null;
|
|
1149
1122
|
preferences: Json;
|
|
1150
|
-
role: Database[
|
|
1123
|
+
role: Database["public"]["Enums"]["enum_member_role"];
|
|
1151
1124
|
user_id: string | null;
|
|
1152
1125
|
};
|
|
1153
1126
|
Insert: {
|
|
@@ -1158,13 +1131,13 @@ export type Database = {
|
|
|
1158
1131
|
is_active?: boolean;
|
|
1159
1132
|
is_owner?: boolean | null;
|
|
1160
1133
|
label_ids?: string[] | null;
|
|
1161
|
-
member_color?: Database[
|
|
1134
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1162
1135
|
member_image?: string | null;
|
|
1163
1136
|
member_name?: string | null;
|
|
1164
1137
|
org_id: string;
|
|
1165
1138
|
org_phones?: string[] | null;
|
|
1166
1139
|
preferences?: Json;
|
|
1167
|
-
role?: Database[
|
|
1140
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1168
1141
|
user_id?: string | null;
|
|
1169
1142
|
};
|
|
1170
1143
|
Update: {
|
|
@@ -1175,36 +1148,33 @@ export type Database = {
|
|
|
1175
1148
|
is_active?: boolean;
|
|
1176
1149
|
is_owner?: boolean | null;
|
|
1177
1150
|
label_ids?: string[] | null;
|
|
1178
|
-
member_color?: Database[
|
|
1151
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1179
1152
|
member_image?: string | null;
|
|
1180
1153
|
member_name?: string | null;
|
|
1181
1154
|
org_id?: string;
|
|
1182
1155
|
org_phones?: string[] | null;
|
|
1183
1156
|
preferences?: Json;
|
|
1184
|
-
role?: Database[
|
|
1157
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1185
1158
|
user_id?: string | null;
|
|
1186
1159
|
};
|
|
1187
1160
|
Relationships: [
|
|
1188
1161
|
{
|
|
1189
|
-
foreignKeyName:
|
|
1190
|
-
columns: [
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
referencedColumns: ['id'];
|
|
1162
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1163
|
+
columns: ["user_id"];
|
|
1164
|
+
referencedRelation: "users";
|
|
1165
|
+
referencedColumns: ["id"];
|
|
1194
1166
|
},
|
|
1195
1167
|
{
|
|
1196
|
-
foreignKeyName:
|
|
1197
|
-
columns: [
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
referencedColumns: ['org_id'];
|
|
1168
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1169
|
+
columns: ["org_id"];
|
|
1170
|
+
referencedRelation: "tbl_org";
|
|
1171
|
+
referencedColumns: ["org_id"];
|
|
1201
1172
|
},
|
|
1202
1173
|
{
|
|
1203
|
-
foreignKeyName:
|
|
1204
|
-
columns: [
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
referencedColumns: ['org_id'];
|
|
1174
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1175
|
+
columns: ["org_id"];
|
|
1176
|
+
referencedRelation: "view_org";
|
|
1177
|
+
referencedColumns: ["org_id"];
|
|
1208
1178
|
}
|
|
1209
1179
|
];
|
|
1210
1180
|
};
|
|
@@ -1262,32 +1232,28 @@ export type Database = {
|
|
|
1262
1232
|
};
|
|
1263
1233
|
Relationships: [
|
|
1264
1234
|
{
|
|
1265
|
-
foreignKeyName:
|
|
1266
|
-
columns: [
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
referencedColumns: ['org_id'];
|
|
1235
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1236
|
+
columns: ["org_id"];
|
|
1237
|
+
referencedRelation: "tbl_org";
|
|
1238
|
+
referencedColumns: ["org_id"];
|
|
1270
1239
|
},
|
|
1271
1240
|
{
|
|
1272
|
-
foreignKeyName:
|
|
1273
|
-
columns: [
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
referencedColumns: ['org_id'];
|
|
1241
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1242
|
+
columns: ["org_id"];
|
|
1243
|
+
referencedRelation: "view_org";
|
|
1244
|
+
referencedColumns: ["org_id"];
|
|
1277
1245
|
},
|
|
1278
1246
|
{
|
|
1279
|
-
foreignKeyName:
|
|
1280
|
-
columns: [
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
referencedColumns: ['org_id'];
|
|
1247
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1248
|
+
columns: ["org_id"];
|
|
1249
|
+
referencedRelation: "tbl_org";
|
|
1250
|
+
referencedColumns: ["org_id"];
|
|
1284
1251
|
},
|
|
1285
1252
|
{
|
|
1286
|
-
foreignKeyName:
|
|
1287
|
-
columns: [
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
referencedColumns: ['org_id'];
|
|
1253
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1254
|
+
columns: ["org_id"];
|
|
1255
|
+
referencedRelation: "view_org";
|
|
1256
|
+
referencedColumns: ["org_id"];
|
|
1291
1257
|
}
|
|
1292
1258
|
];
|
|
1293
1259
|
};
|
|
@@ -1315,18 +1281,16 @@ export type Database = {
|
|
|
1315
1281
|
};
|
|
1316
1282
|
Relationships: [
|
|
1317
1283
|
{
|
|
1318
|
-
foreignKeyName:
|
|
1319
|
-
columns: [
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
referencedColumns: ['org_id'];
|
|
1284
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1285
|
+
columns: ["org_id"];
|
|
1286
|
+
referencedRelation: "tbl_org";
|
|
1287
|
+
referencedColumns: ["org_id"];
|
|
1323
1288
|
},
|
|
1324
1289
|
{
|
|
1325
|
-
foreignKeyName:
|
|
1326
|
-
columns: [
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
referencedColumns: ['org_id'];
|
|
1290
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1291
|
+
columns: ["org_id"];
|
|
1292
|
+
referencedRelation: "view_org";
|
|
1293
|
+
referencedColumns: ["org_id"];
|
|
1330
1294
|
}
|
|
1331
1295
|
];
|
|
1332
1296
|
};
|
|
@@ -1377,18 +1341,16 @@ export type Database = {
|
|
|
1377
1341
|
};
|
|
1378
1342
|
Relationships: [
|
|
1379
1343
|
{
|
|
1380
|
-
foreignKeyName:
|
|
1381
|
-
columns: [
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
referencedColumns: ['org_id'];
|
|
1344
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1345
|
+
columns: ["org_id"];
|
|
1346
|
+
referencedRelation: "tbl_org";
|
|
1347
|
+
referencedColumns: ["org_id"];
|
|
1385
1348
|
},
|
|
1386
1349
|
{
|
|
1387
|
-
foreignKeyName:
|
|
1388
|
-
columns: [
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
referencedColumns: ['org_id'];
|
|
1350
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1351
|
+
columns: ["org_id"];
|
|
1352
|
+
referencedRelation: "view_org";
|
|
1353
|
+
referencedColumns: ["org_id"];
|
|
1392
1354
|
}
|
|
1393
1355
|
];
|
|
1394
1356
|
};
|
|
@@ -1496,7 +1458,7 @@ export type Database = {
|
|
|
1496
1458
|
generate_access_token: {
|
|
1497
1459
|
Args: {
|
|
1498
1460
|
name_input?: string;
|
|
1499
|
-
type_input?:
|
|
1461
|
+
type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1500
1462
|
org_id_input?: string;
|
|
1501
1463
|
};
|
|
1502
1464
|
Returns: Json;
|
|
@@ -1506,7 +1468,7 @@ export type Database = {
|
|
|
1506
1468
|
org_id_input?: string;
|
|
1507
1469
|
org_phone_input?: string;
|
|
1508
1470
|
token_id_input?: string;
|
|
1509
|
-
token_type_input?:
|
|
1471
|
+
token_type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1510
1472
|
};
|
|
1511
1473
|
Returns: Json;
|
|
1512
1474
|
};
|
|
@@ -1515,7 +1477,7 @@ export type Database = {
|
|
|
1515
1477
|
org_id_input: string;
|
|
1516
1478
|
chat_ids_input?: string[];
|
|
1517
1479
|
};
|
|
1518
|
-
Returns:
|
|
1480
|
+
Returns: unknown;
|
|
1519
1481
|
};
|
|
1520
1482
|
get_chats: {
|
|
1521
1483
|
Args: {
|
|
@@ -1585,7 +1547,7 @@ export type Database = {
|
|
|
1585
1547
|
};
|
|
1586
1548
|
list_role_from_user: {
|
|
1587
1549
|
Args: Record<PropertyKey, never>;
|
|
1588
|
-
Returns: Database[
|
|
1550
|
+
Returns: Database["public"]["Enums"]["enum_member_role"];
|
|
1589
1551
|
};
|
|
1590
1552
|
update_labels: {
|
|
1591
1553
|
Args: {
|
|
@@ -1599,11 +1561,11 @@ export type Database = {
|
|
|
1599
1561
|
};
|
|
1600
1562
|
};
|
|
1601
1563
|
Enums: {
|
|
1602
|
-
enum_chat_colors:
|
|
1603
|
-
enum_chat_tickets_status:
|
|
1604
|
-
enum_integration_name:
|
|
1605
|
-
enum_integration_type:
|
|
1606
|
-
enum_member_role:
|
|
1564
|
+
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
1565
|
+
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
1566
|
+
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";
|
|
1567
|
+
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce";
|
|
1568
|
+
enum_member_role: "admin" | "member";
|
|
1607
1569
|
};
|
|
1608
1570
|
CompositeTypes: {
|
|
1609
1571
|
[_ in never]: never;
|
|
@@ -1620,7 +1582,6 @@ export type Database = {
|
|
|
1620
1582
|
id: string;
|
|
1621
1583
|
name: string;
|
|
1622
1584
|
owner: string | null;
|
|
1623
|
-
owner_id: string | null;
|
|
1624
1585
|
public: boolean | null;
|
|
1625
1586
|
updated_at: string | null;
|
|
1626
1587
|
};
|
|
@@ -1632,7 +1593,6 @@ export type Database = {
|
|
|
1632
1593
|
id: string;
|
|
1633
1594
|
name: string;
|
|
1634
1595
|
owner?: string | null;
|
|
1635
|
-
owner_id?: string | null;
|
|
1636
1596
|
public?: boolean | null;
|
|
1637
1597
|
updated_at?: string | null;
|
|
1638
1598
|
};
|
|
@@ -1644,11 +1604,17 @@ export type Database = {
|
|
|
1644
1604
|
id?: string;
|
|
1645
1605
|
name?: string;
|
|
1646
1606
|
owner?: string | null;
|
|
1647
|
-
owner_id?: string | null;
|
|
1648
1607
|
public?: boolean | null;
|
|
1649
1608
|
updated_at?: string | null;
|
|
1650
1609
|
};
|
|
1651
|
-
Relationships: [
|
|
1610
|
+
Relationships: [
|
|
1611
|
+
{
|
|
1612
|
+
foreignKeyName: "buckets_owner_fkey";
|
|
1613
|
+
columns: ["owner"];
|
|
1614
|
+
referencedRelation: "users";
|
|
1615
|
+
referencedColumns: ["id"];
|
|
1616
|
+
}
|
|
1617
|
+
];
|
|
1652
1618
|
};
|
|
1653
1619
|
migrations: {
|
|
1654
1620
|
Row: {
|
|
@@ -1680,7 +1646,6 @@ export type Database = {
|
|
|
1680
1646
|
metadata: Json | null;
|
|
1681
1647
|
name: string | null;
|
|
1682
1648
|
owner: string | null;
|
|
1683
|
-
owner_id: string | null;
|
|
1684
1649
|
path_tokens: string[] | null;
|
|
1685
1650
|
updated_at: string | null;
|
|
1686
1651
|
version: string | null;
|
|
@@ -1693,7 +1658,6 @@ export type Database = {
|
|
|
1693
1658
|
metadata?: Json | null;
|
|
1694
1659
|
name?: string | null;
|
|
1695
1660
|
owner?: string | null;
|
|
1696
|
-
owner_id?: string | null;
|
|
1697
1661
|
path_tokens?: string[] | null;
|
|
1698
1662
|
updated_at?: string | null;
|
|
1699
1663
|
version?: string | null;
|
|
@@ -1706,18 +1670,16 @@ export type Database = {
|
|
|
1706
1670
|
metadata?: Json | null;
|
|
1707
1671
|
name?: string | null;
|
|
1708
1672
|
owner?: string | null;
|
|
1709
|
-
owner_id?: string | null;
|
|
1710
1673
|
path_tokens?: string[] | null;
|
|
1711
1674
|
updated_at?: string | null;
|
|
1712
1675
|
version?: string | null;
|
|
1713
1676
|
};
|
|
1714
1677
|
Relationships: [
|
|
1715
1678
|
{
|
|
1716
|
-
foreignKeyName:
|
|
1717
|
-
columns: [
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
referencedColumns: ['id'];
|
|
1679
|
+
foreignKeyName: "objects_bucketId_fkey";
|
|
1680
|
+
columns: ["bucket_id"];
|
|
1681
|
+
referencedRelation: "buckets";
|
|
1682
|
+
referencedColumns: ["id"];
|
|
1721
1683
|
}
|
|
1722
1684
|
];
|
|
1723
1685
|
};
|
|
@@ -1751,7 +1713,7 @@ export type Database = {
|
|
|
1751
1713
|
Args: {
|
|
1752
1714
|
name: string;
|
|
1753
1715
|
};
|
|
1754
|
-
Returns:
|
|
1716
|
+
Returns: unknown;
|
|
1755
1717
|
};
|
|
1756
1718
|
get_size_by_bucket: {
|
|
1757
1719
|
Args: Record<PropertyKey, never>;
|
|
@@ -1789,45 +1751,45 @@ export type Database = {
|
|
|
1789
1751
|
};
|
|
1790
1752
|
};
|
|
1791
1753
|
};
|
|
1792
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
1793
|
-
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
1754
|
+
type PublicSchema = Database[Extract<keyof Database, "public">];
|
|
1755
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
|
|
1794
1756
|
schema: keyof Database;
|
|
1795
1757
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1796
1758
|
schema: keyof Database;
|
|
1797
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
1759
|
+
} ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
|
|
1798
1760
|
schema: keyof Database;
|
|
1799
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
1761
|
+
} ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
1800
1762
|
Row: infer R;
|
|
1801
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
1763
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
1802
1764
|
Row: infer R;
|
|
1803
1765
|
} ? R : never : never;
|
|
1804
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1766
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
1805
1767
|
schema: keyof Database;
|
|
1806
1768
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1807
1769
|
schema: keyof Database;
|
|
1808
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
1770
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
1809
1771
|
schema: keyof Database;
|
|
1810
|
-
} ? Database[PublicTableNameOrOptions[
|
|
1772
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
1811
1773
|
Insert: infer I;
|
|
1812
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1774
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
1813
1775
|
Insert: infer I;
|
|
1814
1776
|
} ? I : never : never;
|
|
1815
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1777
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
1816
1778
|
schema: keyof Database;
|
|
1817
1779
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1818
1780
|
schema: keyof Database;
|
|
1819
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
1781
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
1820
1782
|
schema: keyof Database;
|
|
1821
|
-
} ? Database[PublicTableNameOrOptions[
|
|
1783
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
1822
1784
|
Update: infer U;
|
|
1823
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1785
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
1824
1786
|
Update: infer U;
|
|
1825
1787
|
} ? U : never : never;
|
|
1826
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
1788
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
|
|
1827
1789
|
schema: keyof Database;
|
|
1828
1790
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
1829
1791
|
schema: keyof Database;
|
|
1830
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
1792
|
+
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
1831
1793
|
schema: keyof Database;
|
|
1832
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
1794
|
+
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
1833
1795
|
export {};
|