@periskope/types 0.6.77 → 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 -273
- 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 +1571 -1616
- package/tsconfig.json +105 -105
- package/types.ts +11 -3
- 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,39 +74,34 @@ 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
|
};
|
|
106
102
|
tbl_broadcast_messages: {
|
|
107
103
|
Row: {
|
|
108
104
|
broadcast_id: string;
|
|
109
|
-
broadcast_status: string | null;
|
|
110
105
|
chat_ids: string[] | null;
|
|
111
106
|
created_at: string;
|
|
112
107
|
message_payload: Json | null;
|
|
@@ -117,7 +112,6 @@ export type Database = {
|
|
|
117
112
|
};
|
|
118
113
|
Insert: {
|
|
119
114
|
broadcast_id?: string;
|
|
120
|
-
broadcast_status?: string | null;
|
|
121
115
|
chat_ids?: string[] | null;
|
|
122
116
|
created_at?: string;
|
|
123
117
|
message_payload?: Json | null;
|
|
@@ -128,7 +122,6 @@ export type Database = {
|
|
|
128
122
|
};
|
|
129
123
|
Update: {
|
|
130
124
|
broadcast_id?: string;
|
|
131
|
-
broadcast_status?: string | null;
|
|
132
125
|
chat_ids?: string[] | null;
|
|
133
126
|
created_at?: string;
|
|
134
127
|
message_payload?: Json | null;
|
|
@@ -139,18 +132,16 @@ export type Database = {
|
|
|
139
132
|
};
|
|
140
133
|
Relationships: [
|
|
141
134
|
{
|
|
142
|
-
foreignKeyName:
|
|
143
|
-
columns: [
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
referencedColumns: ['org_id'];
|
|
135
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
136
|
+
columns: ["org_id"];
|
|
137
|
+
referencedRelation: "tbl_org";
|
|
138
|
+
referencedColumns: ["org_id"];
|
|
147
139
|
},
|
|
148
140
|
{
|
|
149
|
-
foreignKeyName:
|
|
150
|
-
columns: [
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
referencedColumns: ['org_id'];
|
|
141
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
142
|
+
columns: ["org_id"];
|
|
143
|
+
referencedRelation: "view_org";
|
|
144
|
+
referencedColumns: ["org_id"];
|
|
154
145
|
}
|
|
155
146
|
];
|
|
156
147
|
};
|
|
@@ -181,18 +172,16 @@ export type Database = {
|
|
|
181
172
|
};
|
|
182
173
|
Relationships: [
|
|
183
174
|
{
|
|
184
|
-
foreignKeyName:
|
|
185
|
-
columns: [
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
referencedColumns: ['org_id'];
|
|
175
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
176
|
+
columns: ["org_id"];
|
|
177
|
+
referencedRelation: "tbl_org";
|
|
178
|
+
referencedColumns: ["org_id"];
|
|
189
179
|
},
|
|
190
180
|
{
|
|
191
|
-
foreignKeyName:
|
|
192
|
-
columns: [
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
referencedColumns: ['org_id'];
|
|
181
|
+
foreignKeyName: "tbl_broadcast_templates_org_id_fkey";
|
|
182
|
+
columns: ["org_id"];
|
|
183
|
+
referencedRelation: "view_org";
|
|
184
|
+
referencedColumns: ["org_id"];
|
|
196
185
|
}
|
|
197
186
|
];
|
|
198
187
|
};
|
|
@@ -226,11 +215,10 @@ export type Database = {
|
|
|
226
215
|
};
|
|
227
216
|
Relationships: [
|
|
228
217
|
{
|
|
229
|
-
foreignKeyName:
|
|
230
|
-
columns: [
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
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"];
|
|
234
222
|
}
|
|
235
223
|
];
|
|
236
224
|
};
|
|
@@ -381,11 +369,10 @@ export type Database = {
|
|
|
381
369
|
};
|
|
382
370
|
Relationships: [
|
|
383
371
|
{
|
|
384
|
-
foreignKeyName:
|
|
385
|
-
columns: [
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
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"];
|
|
389
376
|
}
|
|
390
377
|
];
|
|
391
378
|
};
|
|
@@ -431,11 +418,10 @@ export type Database = {
|
|
|
431
418
|
};
|
|
432
419
|
Relationships: [
|
|
433
420
|
{
|
|
434
|
-
foreignKeyName:
|
|
435
|
-
columns: [
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
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"];
|
|
439
425
|
}
|
|
440
426
|
];
|
|
441
427
|
};
|
|
@@ -469,11 +455,10 @@ export type Database = {
|
|
|
469
455
|
};
|
|
470
456
|
Relationships: [
|
|
471
457
|
{
|
|
472
|
-
foreignKeyName:
|
|
473
|
-
columns: [
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
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"];
|
|
477
462
|
}
|
|
478
463
|
];
|
|
479
464
|
};
|
|
@@ -552,11 +537,10 @@ export type Database = {
|
|
|
552
537
|
};
|
|
553
538
|
Relationships: [
|
|
554
539
|
{
|
|
555
|
-
foreignKeyName:
|
|
556
|
-
columns: [
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
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"];
|
|
560
544
|
}
|
|
561
545
|
];
|
|
562
546
|
};
|
|
@@ -574,7 +558,7 @@ export type Database = {
|
|
|
574
558
|
priority: number | null;
|
|
575
559
|
quoted_message_id: string | null;
|
|
576
560
|
raised_by: string | null;
|
|
577
|
-
status: Database[
|
|
561
|
+
status: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
578
562
|
subject: string;
|
|
579
563
|
ticket_id: string;
|
|
580
564
|
};
|
|
@@ -591,7 +575,7 @@ export type Database = {
|
|
|
591
575
|
priority?: number | null;
|
|
592
576
|
quoted_message_id?: string | null;
|
|
593
577
|
raised_by?: string | null;
|
|
594
|
-
status?: Database[
|
|
578
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
595
579
|
subject: string;
|
|
596
580
|
ticket_id?: string;
|
|
597
581
|
};
|
|
@@ -608,24 +592,22 @@ export type Database = {
|
|
|
608
592
|
priority?: number | null;
|
|
609
593
|
quoted_message_id?: string | null;
|
|
610
594
|
raised_by?: string | null;
|
|
611
|
-
status?: Database[
|
|
595
|
+
status?: Database["public"]["Enums"]["enum_chat_tickets_status"] | null;
|
|
612
596
|
subject?: string;
|
|
613
597
|
ticket_id?: string;
|
|
614
598
|
};
|
|
615
599
|
Relationships: [
|
|
616
600
|
{
|
|
617
|
-
foreignKeyName:
|
|
618
|
-
columns: [
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
referencedColumns: ['org_id'];
|
|
601
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
602
|
+
columns: ["org_id"];
|
|
603
|
+
referencedRelation: "tbl_org";
|
|
604
|
+
referencedColumns: ["org_id"];
|
|
622
605
|
},
|
|
623
606
|
{
|
|
624
|
-
foreignKeyName:
|
|
625
|
-
columns: [
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
referencedColumns: ['org_id'];
|
|
607
|
+
foreignKeyName: "tbl_chat_tickets_org_id_fkey";
|
|
608
|
+
columns: ["org_id"];
|
|
609
|
+
referencedRelation: "view_org";
|
|
610
|
+
referencedColumns: ["org_id"];
|
|
629
611
|
}
|
|
630
612
|
];
|
|
631
613
|
};
|
|
@@ -704,18 +686,17 @@ export type Database = {
|
|
|
704
686
|
};
|
|
705
687
|
Relationships: [
|
|
706
688
|
{
|
|
707
|
-
foreignKeyName:
|
|
708
|
-
columns: [
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
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"];
|
|
712
693
|
}
|
|
713
694
|
];
|
|
714
695
|
};
|
|
715
696
|
tbl_contacts: {
|
|
716
697
|
Row: {
|
|
717
698
|
business_profile: Json | null;
|
|
718
|
-
contact_color: Database[
|
|
699
|
+
contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
719
700
|
contact_id: string;
|
|
720
701
|
contact_image: string | null;
|
|
721
702
|
contact_name: string | null;
|
|
@@ -742,7 +723,7 @@ export type Database = {
|
|
|
742
723
|
};
|
|
743
724
|
Insert: {
|
|
744
725
|
business_profile?: Json | null;
|
|
745
|
-
contact_color?: Database[
|
|
726
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
746
727
|
contact_id: string;
|
|
747
728
|
contact_image?: string | null;
|
|
748
729
|
contact_name?: string | null;
|
|
@@ -769,7 +750,7 @@ export type Database = {
|
|
|
769
750
|
};
|
|
770
751
|
Update: {
|
|
771
752
|
business_profile?: Json | null;
|
|
772
|
-
contact_color?: Database[
|
|
753
|
+
contact_color?: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
773
754
|
contact_id?: string;
|
|
774
755
|
contact_image?: string | null;
|
|
775
756
|
contact_name?: string | null;
|
|
@@ -796,18 +777,16 @@ export type Database = {
|
|
|
796
777
|
};
|
|
797
778
|
Relationships: [
|
|
798
779
|
{
|
|
799
|
-
foreignKeyName:
|
|
800
|
-
columns: [
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
referencedColumns: ['org_id'];
|
|
780
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
781
|
+
columns: ["org_id"];
|
|
782
|
+
referencedRelation: "tbl_org";
|
|
783
|
+
referencedColumns: ["org_id"];
|
|
804
784
|
},
|
|
805
785
|
{
|
|
806
|
-
foreignKeyName:
|
|
807
|
-
columns: [
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
referencedColumns: ['org_id'];
|
|
786
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
787
|
+
columns: ["org_id"];
|
|
788
|
+
referencedRelation: "view_org";
|
|
789
|
+
referencedColumns: ["org_id"];
|
|
811
790
|
}
|
|
812
791
|
];
|
|
813
792
|
};
|
|
@@ -844,18 +823,16 @@ export type Database = {
|
|
|
844
823
|
};
|
|
845
824
|
Relationships: [
|
|
846
825
|
{
|
|
847
|
-
foreignKeyName:
|
|
848
|
-
columns: [
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
referencedColumns: ['org_id'];
|
|
826
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
827
|
+
columns: ["org_id"];
|
|
828
|
+
referencedRelation: "tbl_org";
|
|
829
|
+
referencedColumns: ["org_id"];
|
|
852
830
|
},
|
|
853
831
|
{
|
|
854
|
-
foreignKeyName:
|
|
855
|
-
columns: [
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
referencedColumns: ['org_id'];
|
|
832
|
+
foreignKeyName: "tbl_custom_properties_org_id_fkey";
|
|
833
|
+
columns: ["org_id"];
|
|
834
|
+
referencedRelation: "view_org";
|
|
835
|
+
referencedColumns: ["org_id"];
|
|
859
836
|
}
|
|
860
837
|
];
|
|
861
838
|
};
|
|
@@ -886,18 +863,16 @@ export type Database = {
|
|
|
886
863
|
};
|
|
887
864
|
Relationships: [
|
|
888
865
|
{
|
|
889
|
-
foreignKeyName:
|
|
890
|
-
columns: [
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
referencedColumns: ['org_id'];
|
|
866
|
+
foreignKeyName: "tbl_flagged_messages_org_id_fkey";
|
|
867
|
+
columns: ["org_id"];
|
|
868
|
+
referencedRelation: "tbl_org";
|
|
869
|
+
referencedColumns: ["org_id"];
|
|
894
870
|
},
|
|
895
871
|
{
|
|
896
|
-
foreignKeyName:
|
|
897
|
-
columns: [
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
referencedColumns: ['org_id'];
|
|
872
|
+
foreignKeyName: "tbl_flagged_messages_org_id_fkey";
|
|
873
|
+
columns: ["org_id"];
|
|
874
|
+
referencedRelation: "view_org";
|
|
875
|
+
referencedColumns: ["org_id"];
|
|
901
876
|
}
|
|
902
877
|
];
|
|
903
878
|
};
|
|
@@ -907,51 +882,49 @@ export type Database = {
|
|
|
907
882
|
id: string;
|
|
908
883
|
integration_id: string | null;
|
|
909
884
|
integration_metadata: Json;
|
|
910
|
-
integration_name: Database[
|
|
885
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
911
886
|
integration_type: string;
|
|
912
887
|
is_subscribed: boolean;
|
|
913
888
|
org_id: string;
|
|
914
889
|
subscribed_at: string;
|
|
915
|
-
type: Database[
|
|
890
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
916
891
|
};
|
|
917
892
|
Insert: {
|
|
918
893
|
hook_url: string;
|
|
919
894
|
id?: string;
|
|
920
895
|
integration_id?: string | null;
|
|
921
896
|
integration_metadata: Json;
|
|
922
|
-
integration_name: Database[
|
|
897
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
923
898
|
integration_type: string;
|
|
924
899
|
is_subscribed: boolean;
|
|
925
900
|
org_id: string;
|
|
926
901
|
subscribed_at?: string;
|
|
927
|
-
type: Database[
|
|
902
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
928
903
|
};
|
|
929
904
|
Update: {
|
|
930
905
|
hook_url?: string;
|
|
931
906
|
id?: string;
|
|
932
907
|
integration_id?: string | null;
|
|
933
908
|
integration_metadata?: Json;
|
|
934
|
-
integration_name?: Database[
|
|
909
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
935
910
|
integration_type?: string;
|
|
936
911
|
is_subscribed?: boolean;
|
|
937
912
|
org_id?: string;
|
|
938
913
|
subscribed_at?: string;
|
|
939
|
-
type?: Database[
|
|
914
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
940
915
|
};
|
|
941
916
|
Relationships: [
|
|
942
917
|
{
|
|
943
|
-
foreignKeyName:
|
|
944
|
-
columns: [
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
referencedColumns: ['org_id'];
|
|
918
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
919
|
+
columns: ["org_id"];
|
|
920
|
+
referencedRelation: "tbl_org";
|
|
921
|
+
referencedColumns: ["org_id"];
|
|
948
922
|
},
|
|
949
923
|
{
|
|
950
|
-
foreignKeyName:
|
|
951
|
-
columns: [
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
referencedColumns: ['org_id'];
|
|
924
|
+
foreignKeyName: "tbl_integration_hooks_org_id_fkey";
|
|
925
|
+
columns: ["org_id"];
|
|
926
|
+
referencedRelation: "view_org";
|
|
927
|
+
referencedColumns: ["org_id"];
|
|
955
928
|
}
|
|
956
929
|
];
|
|
957
930
|
};
|
|
@@ -959,47 +932,48 @@ export type Database = {
|
|
|
959
932
|
Row: {
|
|
960
933
|
created_at: string;
|
|
961
934
|
id: string;
|
|
962
|
-
integration_name: Database[
|
|
935
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
963
936
|
integration_type: string;
|
|
964
937
|
metadata: Json;
|
|
965
938
|
org_id: string;
|
|
939
|
+
response: Json | null;
|
|
966
940
|
success: boolean;
|
|
967
|
-
type: Database[
|
|
941
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
968
942
|
};
|
|
969
943
|
Insert: {
|
|
970
944
|
created_at?: string;
|
|
971
945
|
id?: string;
|
|
972
|
-
integration_name: Database[
|
|
946
|
+
integration_name: Database["public"]["Enums"]["enum_integration_name"];
|
|
973
947
|
integration_type: string;
|
|
974
948
|
metadata?: Json;
|
|
975
949
|
org_id: string;
|
|
950
|
+
response?: Json | null;
|
|
976
951
|
success?: boolean;
|
|
977
|
-
type: Database[
|
|
952
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
978
953
|
};
|
|
979
954
|
Update: {
|
|
980
955
|
created_at?: string;
|
|
981
956
|
id?: string;
|
|
982
|
-
integration_name?: Database[
|
|
957
|
+
integration_name?: Database["public"]["Enums"]["enum_integration_name"];
|
|
983
958
|
integration_type?: string;
|
|
984
959
|
metadata?: Json;
|
|
985
960
|
org_id?: string;
|
|
961
|
+
response?: Json | null;
|
|
986
962
|
success?: boolean;
|
|
987
|
-
type?: Database[
|
|
963
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
988
964
|
};
|
|
989
965
|
Relationships: [
|
|
990
966
|
{
|
|
991
|
-
foreignKeyName:
|
|
992
|
-
columns: [
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
referencedColumns: ['org_id'];
|
|
967
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
968
|
+
columns: ["org_id"];
|
|
969
|
+
referencedRelation: "tbl_org";
|
|
970
|
+
referencedColumns: ["org_id"];
|
|
996
971
|
},
|
|
997
972
|
{
|
|
998
|
-
foreignKeyName:
|
|
999
|
-
columns: [
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
referencedColumns: ['org_id'];
|
|
973
|
+
foreignKeyName: "tbl_integration_logs_org_id_fkey";
|
|
974
|
+
columns: ["org_id"];
|
|
975
|
+
referencedRelation: "view_org";
|
|
976
|
+
referencedColumns: ["org_id"];
|
|
1003
977
|
}
|
|
1004
978
|
];
|
|
1005
979
|
};
|
|
@@ -1013,7 +987,7 @@ export type Database = {
|
|
|
1013
987
|
org_id: string;
|
|
1014
988
|
role: string;
|
|
1015
989
|
token: string;
|
|
1016
|
-
type: Database[
|
|
990
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1017
991
|
};
|
|
1018
992
|
Insert: {
|
|
1019
993
|
exp: string;
|
|
@@ -1024,7 +998,7 @@ export type Database = {
|
|
|
1024
998
|
org_id: string;
|
|
1025
999
|
role: string;
|
|
1026
1000
|
token: string;
|
|
1027
|
-
type: Database[
|
|
1001
|
+
type: Database["public"]["Enums"]["enum_integration_type"];
|
|
1028
1002
|
};
|
|
1029
1003
|
Update: {
|
|
1030
1004
|
exp?: string;
|
|
@@ -1035,22 +1009,20 @@ export type Database = {
|
|
|
1035
1009
|
org_id?: string;
|
|
1036
1010
|
role?: string;
|
|
1037
1011
|
token?: string;
|
|
1038
|
-
type?: Database[
|
|
1012
|
+
type?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1039
1013
|
};
|
|
1040
1014
|
Relationships: [
|
|
1041
1015
|
{
|
|
1042
|
-
foreignKeyName:
|
|
1043
|
-
columns: [
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
referencedColumns: ['org_id'];
|
|
1016
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1017
|
+
columns: ["org_id"];
|
|
1018
|
+
referencedRelation: "tbl_org";
|
|
1019
|
+
referencedColumns: ["org_id"];
|
|
1047
1020
|
},
|
|
1048
1021
|
{
|
|
1049
|
-
foreignKeyName:
|
|
1050
|
-
columns: [
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
referencedColumns: ['org_id'];
|
|
1022
|
+
foreignKeyName: "public_tbl_integration_tokens_org_id_fkey";
|
|
1023
|
+
columns: ["org_id"];
|
|
1024
|
+
referencedRelation: "view_org";
|
|
1025
|
+
referencedColumns: ["org_id"];
|
|
1054
1026
|
}
|
|
1055
1027
|
];
|
|
1056
1028
|
};
|
|
@@ -1120,18 +1092,16 @@ export type Database = {
|
|
|
1120
1092
|
};
|
|
1121
1093
|
Relationships: [
|
|
1122
1094
|
{
|
|
1123
|
-
foreignKeyName:
|
|
1124
|
-
columns: [
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
referencedColumns: ['org_id'];
|
|
1095
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1096
|
+
columns: ["org_id"];
|
|
1097
|
+
referencedRelation: "tbl_org";
|
|
1098
|
+
referencedColumns: ["org_id"];
|
|
1128
1099
|
},
|
|
1129
1100
|
{
|
|
1130
|
-
foreignKeyName:
|
|
1131
|
-
columns: [
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
referencedColumns: ['org_id'];
|
|
1101
|
+
foreignKeyName: "tbl_org_labels_org_id_fkey";
|
|
1102
|
+
columns: ["org_id"];
|
|
1103
|
+
referencedRelation: "view_org";
|
|
1104
|
+
referencedColumns: ["org_id"];
|
|
1135
1105
|
}
|
|
1136
1106
|
];
|
|
1137
1107
|
};
|
|
@@ -1144,13 +1114,13 @@ export type Database = {
|
|
|
1144
1114
|
is_active: boolean;
|
|
1145
1115
|
is_owner: boolean | null;
|
|
1146
1116
|
label_ids: string[] | null;
|
|
1147
|
-
member_color: Database[
|
|
1117
|
+
member_color: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1148
1118
|
member_image: string | null;
|
|
1149
1119
|
member_name: string | null;
|
|
1150
1120
|
org_id: string;
|
|
1151
1121
|
org_phones: string[] | null;
|
|
1152
1122
|
preferences: Json;
|
|
1153
|
-
role: Database[
|
|
1123
|
+
role: Database["public"]["Enums"]["enum_member_role"];
|
|
1154
1124
|
user_id: string | null;
|
|
1155
1125
|
};
|
|
1156
1126
|
Insert: {
|
|
@@ -1161,13 +1131,13 @@ export type Database = {
|
|
|
1161
1131
|
is_active?: boolean;
|
|
1162
1132
|
is_owner?: boolean | null;
|
|
1163
1133
|
label_ids?: string[] | null;
|
|
1164
|
-
member_color?: Database[
|
|
1134
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1165
1135
|
member_image?: string | null;
|
|
1166
1136
|
member_name?: string | null;
|
|
1167
1137
|
org_id: string;
|
|
1168
1138
|
org_phones?: string[] | null;
|
|
1169
1139
|
preferences?: Json;
|
|
1170
|
-
role?: Database[
|
|
1140
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1171
1141
|
user_id?: string | null;
|
|
1172
1142
|
};
|
|
1173
1143
|
Update: {
|
|
@@ -1178,36 +1148,33 @@ export type Database = {
|
|
|
1178
1148
|
is_active?: boolean;
|
|
1179
1149
|
is_owner?: boolean | null;
|
|
1180
1150
|
label_ids?: string[] | null;
|
|
1181
|
-
member_color?: Database[
|
|
1151
|
+
member_color?: Database["public"]["Enums"]["enum_chat_colors"];
|
|
1182
1152
|
member_image?: string | null;
|
|
1183
1153
|
member_name?: string | null;
|
|
1184
1154
|
org_id?: string;
|
|
1185
1155
|
org_phones?: string[] | null;
|
|
1186
1156
|
preferences?: Json;
|
|
1187
|
-
role?: Database[
|
|
1157
|
+
role?: Database["public"]["Enums"]["enum_member_role"];
|
|
1188
1158
|
user_id?: string | null;
|
|
1189
1159
|
};
|
|
1190
1160
|
Relationships: [
|
|
1191
1161
|
{
|
|
1192
|
-
foreignKeyName:
|
|
1193
|
-
columns: [
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
referencedColumns: ['id'];
|
|
1162
|
+
foreignKeyName: "tbl_org_members_fkey_auth_users";
|
|
1163
|
+
columns: ["user_id"];
|
|
1164
|
+
referencedRelation: "users";
|
|
1165
|
+
referencedColumns: ["id"];
|
|
1197
1166
|
},
|
|
1198
1167
|
{
|
|
1199
|
-
foreignKeyName:
|
|
1200
|
-
columns: [
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
referencedColumns: ['org_id'];
|
|
1168
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1169
|
+
columns: ["org_id"];
|
|
1170
|
+
referencedRelation: "tbl_org";
|
|
1171
|
+
referencedColumns: ["org_id"];
|
|
1204
1172
|
},
|
|
1205
1173
|
{
|
|
1206
|
-
foreignKeyName:
|
|
1207
|
-
columns: [
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
referencedColumns: ['org_id'];
|
|
1174
|
+
foreignKeyName: "tbl_org_members_fkey_tbl_org";
|
|
1175
|
+
columns: ["org_id"];
|
|
1176
|
+
referencedRelation: "view_org";
|
|
1177
|
+
referencedColumns: ["org_id"];
|
|
1211
1178
|
}
|
|
1212
1179
|
];
|
|
1213
1180
|
};
|
|
@@ -1265,32 +1232,28 @@ export type Database = {
|
|
|
1265
1232
|
};
|
|
1266
1233
|
Relationships: [
|
|
1267
1234
|
{
|
|
1268
|
-
foreignKeyName:
|
|
1269
|
-
columns: [
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
referencedColumns: ['org_id'];
|
|
1235
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1236
|
+
columns: ["org_id"];
|
|
1237
|
+
referencedRelation: "tbl_org";
|
|
1238
|
+
referencedColumns: ["org_id"];
|
|
1273
1239
|
},
|
|
1274
1240
|
{
|
|
1275
|
-
foreignKeyName:
|
|
1276
|
-
columns: [
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
referencedColumns: ['org_id'];
|
|
1241
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1242
|
+
columns: ["org_id"];
|
|
1243
|
+
referencedRelation: "view_org";
|
|
1244
|
+
referencedColumns: ["org_id"];
|
|
1280
1245
|
},
|
|
1281
1246
|
{
|
|
1282
|
-
foreignKeyName:
|
|
1283
|
-
columns: [
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
referencedColumns: ['org_id'];
|
|
1247
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1248
|
+
columns: ["org_id"];
|
|
1249
|
+
referencedRelation: "tbl_org";
|
|
1250
|
+
referencedColumns: ["org_id"];
|
|
1287
1251
|
},
|
|
1288
1252
|
{
|
|
1289
|
-
foreignKeyName:
|
|
1290
|
-
columns: [
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
referencedColumns: ['org_id'];
|
|
1253
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1254
|
+
columns: ["org_id"];
|
|
1255
|
+
referencedRelation: "view_org";
|
|
1256
|
+
referencedColumns: ["org_id"];
|
|
1294
1257
|
}
|
|
1295
1258
|
];
|
|
1296
1259
|
};
|
|
@@ -1318,18 +1281,16 @@ export type Database = {
|
|
|
1318
1281
|
};
|
|
1319
1282
|
Relationships: [
|
|
1320
1283
|
{
|
|
1321
|
-
foreignKeyName:
|
|
1322
|
-
columns: [
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
referencedColumns: ['org_id'];
|
|
1284
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1285
|
+
columns: ["org_id"];
|
|
1286
|
+
referencedRelation: "tbl_org";
|
|
1287
|
+
referencedColumns: ["org_id"];
|
|
1326
1288
|
},
|
|
1327
1289
|
{
|
|
1328
|
-
foreignKeyName:
|
|
1329
|
-
columns: [
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
referencedColumns: ['org_id'];
|
|
1290
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1291
|
+
columns: ["org_id"];
|
|
1292
|
+
referencedRelation: "view_org";
|
|
1293
|
+
referencedColumns: ["org_id"];
|
|
1333
1294
|
}
|
|
1334
1295
|
];
|
|
1335
1296
|
};
|
|
@@ -1380,18 +1341,16 @@ export type Database = {
|
|
|
1380
1341
|
};
|
|
1381
1342
|
Relationships: [
|
|
1382
1343
|
{
|
|
1383
|
-
foreignKeyName:
|
|
1384
|
-
columns: [
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
referencedColumns: ['org_id'];
|
|
1344
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1345
|
+
columns: ["org_id"];
|
|
1346
|
+
referencedRelation: "tbl_org";
|
|
1347
|
+
referencedColumns: ["org_id"];
|
|
1388
1348
|
},
|
|
1389
1349
|
{
|
|
1390
|
-
foreignKeyName:
|
|
1391
|
-
columns: [
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
referencedColumns: ['org_id'];
|
|
1350
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1351
|
+
columns: ["org_id"];
|
|
1352
|
+
referencedRelation: "view_org";
|
|
1353
|
+
referencedColumns: ["org_id"];
|
|
1395
1354
|
}
|
|
1396
1355
|
];
|
|
1397
1356
|
};
|
|
@@ -1499,7 +1458,7 @@ export type Database = {
|
|
|
1499
1458
|
generate_access_token: {
|
|
1500
1459
|
Args: {
|
|
1501
1460
|
name_input?: string;
|
|
1502
|
-
type_input?:
|
|
1461
|
+
type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1503
1462
|
org_id_input?: string;
|
|
1504
1463
|
};
|
|
1505
1464
|
Returns: Json;
|
|
@@ -1509,7 +1468,7 @@ export type Database = {
|
|
|
1509
1468
|
org_id_input?: string;
|
|
1510
1469
|
org_phone_input?: string;
|
|
1511
1470
|
token_id_input?: string;
|
|
1512
|
-
token_type_input?:
|
|
1471
|
+
token_type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1513
1472
|
};
|
|
1514
1473
|
Returns: Json;
|
|
1515
1474
|
};
|
|
@@ -1518,7 +1477,7 @@ export type Database = {
|
|
|
1518
1477
|
org_id_input: string;
|
|
1519
1478
|
chat_ids_input?: string[];
|
|
1520
1479
|
};
|
|
1521
|
-
Returns:
|
|
1480
|
+
Returns: unknown;
|
|
1522
1481
|
};
|
|
1523
1482
|
get_chats: {
|
|
1524
1483
|
Args: {
|
|
@@ -1588,7 +1547,7 @@ export type Database = {
|
|
|
1588
1547
|
};
|
|
1589
1548
|
list_role_from_user: {
|
|
1590
1549
|
Args: Record<PropertyKey, never>;
|
|
1591
|
-
Returns: Database[
|
|
1550
|
+
Returns: Database["public"]["Enums"]["enum_member_role"];
|
|
1592
1551
|
};
|
|
1593
1552
|
update_labels: {
|
|
1594
1553
|
Args: {
|
|
@@ -1602,11 +1561,11 @@ export type Database = {
|
|
|
1602
1561
|
};
|
|
1603
1562
|
};
|
|
1604
1563
|
Enums: {
|
|
1605
|
-
enum_chat_colors:
|
|
1606
|
-
enum_chat_tickets_status:
|
|
1607
|
-
enum_integration_name:
|
|
1608
|
-
enum_integration_type:
|
|
1609
|
-
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";
|
|
1610
1569
|
};
|
|
1611
1570
|
CompositeTypes: {
|
|
1612
1571
|
[_ in never]: never;
|
|
@@ -1623,7 +1582,6 @@ export type Database = {
|
|
|
1623
1582
|
id: string;
|
|
1624
1583
|
name: string;
|
|
1625
1584
|
owner: string | null;
|
|
1626
|
-
owner_id: string | null;
|
|
1627
1585
|
public: boolean | null;
|
|
1628
1586
|
updated_at: string | null;
|
|
1629
1587
|
};
|
|
@@ -1635,7 +1593,6 @@ export type Database = {
|
|
|
1635
1593
|
id: string;
|
|
1636
1594
|
name: string;
|
|
1637
1595
|
owner?: string | null;
|
|
1638
|
-
owner_id?: string | null;
|
|
1639
1596
|
public?: boolean | null;
|
|
1640
1597
|
updated_at?: string | null;
|
|
1641
1598
|
};
|
|
@@ -1647,11 +1604,17 @@ export type Database = {
|
|
|
1647
1604
|
id?: string;
|
|
1648
1605
|
name?: string;
|
|
1649
1606
|
owner?: string | null;
|
|
1650
|
-
owner_id?: string | null;
|
|
1651
1607
|
public?: boolean | null;
|
|
1652
1608
|
updated_at?: string | null;
|
|
1653
1609
|
};
|
|
1654
|
-
Relationships: [
|
|
1610
|
+
Relationships: [
|
|
1611
|
+
{
|
|
1612
|
+
foreignKeyName: "buckets_owner_fkey";
|
|
1613
|
+
columns: ["owner"];
|
|
1614
|
+
referencedRelation: "users";
|
|
1615
|
+
referencedColumns: ["id"];
|
|
1616
|
+
}
|
|
1617
|
+
];
|
|
1655
1618
|
};
|
|
1656
1619
|
migrations: {
|
|
1657
1620
|
Row: {
|
|
@@ -1683,7 +1646,6 @@ export type Database = {
|
|
|
1683
1646
|
metadata: Json | null;
|
|
1684
1647
|
name: string | null;
|
|
1685
1648
|
owner: string | null;
|
|
1686
|
-
owner_id: string | null;
|
|
1687
1649
|
path_tokens: string[] | null;
|
|
1688
1650
|
updated_at: string | null;
|
|
1689
1651
|
version: string | null;
|
|
@@ -1696,7 +1658,6 @@ export type Database = {
|
|
|
1696
1658
|
metadata?: Json | null;
|
|
1697
1659
|
name?: string | null;
|
|
1698
1660
|
owner?: string | null;
|
|
1699
|
-
owner_id?: string | null;
|
|
1700
1661
|
path_tokens?: string[] | null;
|
|
1701
1662
|
updated_at?: string | null;
|
|
1702
1663
|
version?: string | null;
|
|
@@ -1709,18 +1670,16 @@ export type Database = {
|
|
|
1709
1670
|
metadata?: Json | null;
|
|
1710
1671
|
name?: string | null;
|
|
1711
1672
|
owner?: string | null;
|
|
1712
|
-
owner_id?: string | null;
|
|
1713
1673
|
path_tokens?: string[] | null;
|
|
1714
1674
|
updated_at?: string | null;
|
|
1715
1675
|
version?: string | null;
|
|
1716
1676
|
};
|
|
1717
1677
|
Relationships: [
|
|
1718
1678
|
{
|
|
1719
|
-
foreignKeyName:
|
|
1720
|
-
columns: [
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
referencedColumns: ['id'];
|
|
1679
|
+
foreignKeyName: "objects_bucketId_fkey";
|
|
1680
|
+
columns: ["bucket_id"];
|
|
1681
|
+
referencedRelation: "buckets";
|
|
1682
|
+
referencedColumns: ["id"];
|
|
1724
1683
|
}
|
|
1725
1684
|
];
|
|
1726
1685
|
};
|
|
@@ -1754,7 +1713,7 @@ export type Database = {
|
|
|
1754
1713
|
Args: {
|
|
1755
1714
|
name: string;
|
|
1756
1715
|
};
|
|
1757
|
-
Returns:
|
|
1716
|
+
Returns: unknown;
|
|
1758
1717
|
};
|
|
1759
1718
|
get_size_by_bucket: {
|
|
1760
1719
|
Args: Record<PropertyKey, never>;
|
|
@@ -1792,45 +1751,45 @@ export type Database = {
|
|
|
1792
1751
|
};
|
|
1793
1752
|
};
|
|
1794
1753
|
};
|
|
1795
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
1796
|
-
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"]) | {
|
|
1797
1756
|
schema: keyof Database;
|
|
1798
1757
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1799
1758
|
schema: keyof Database;
|
|
1800
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
1759
|
+
} ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
|
|
1801
1760
|
schema: keyof Database;
|
|
1802
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
1761
|
+
} ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
1803
1762
|
Row: infer R;
|
|
1804
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
1763
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
1805
1764
|
Row: infer R;
|
|
1806
1765
|
} ? R : never : never;
|
|
1807
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1766
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
1808
1767
|
schema: keyof Database;
|
|
1809
1768
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1810
1769
|
schema: keyof Database;
|
|
1811
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
1770
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
1812
1771
|
schema: keyof Database;
|
|
1813
|
-
} ? Database[PublicTableNameOrOptions[
|
|
1772
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
1814
1773
|
Insert: infer I;
|
|
1815
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1774
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
1816
1775
|
Insert: infer I;
|
|
1817
1776
|
} ? I : never : never;
|
|
1818
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1777
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
1819
1778
|
schema: keyof Database;
|
|
1820
1779
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1821
1780
|
schema: keyof Database;
|
|
1822
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
1781
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
1823
1782
|
schema: keyof Database;
|
|
1824
|
-
} ? Database[PublicTableNameOrOptions[
|
|
1783
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
1825
1784
|
Update: infer U;
|
|
1826
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1785
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
1827
1786
|
Update: infer U;
|
|
1828
1787
|
} ? U : never : never;
|
|
1829
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
1788
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
|
|
1830
1789
|
schema: keyof Database;
|
|
1831
1790
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
1832
1791
|
schema: keyof Database;
|
|
1833
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
1792
|
+
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
1834
1793
|
schema: keyof Database;
|
|
1835
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
1794
|
+
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
1836
1795
|
export {};
|