@periskope/types 0.6.108 → 0.6.109
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 +234 -226
- package/dist/types.d.ts +0 -8
- package/dist/types.js +1 -0
- package/package.json +1 -1
- package/supabase.types.ts +1404 -1396
- package/types.ts +0 -11
package/dist/supabase.types.d.ts
CHANGED
|
@@ -107,39 +107,39 @@ export type Database = {
|
|
|
107
107
|
};
|
|
108
108
|
Relationships: [
|
|
109
109
|
{
|
|
110
|
-
foreignKeyName:
|
|
111
|
-
columns: [
|
|
110
|
+
foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
|
|
111
|
+
columns: ['broadcast_id'];
|
|
112
112
|
isOneToOne: false;
|
|
113
|
-
referencedRelation:
|
|
114
|
-
referencedColumns: [
|
|
113
|
+
referencedRelation: 'tbl_broadcast_messages';
|
|
114
|
+
referencedColumns: ['broadcast_id'];
|
|
115
115
|
},
|
|
116
116
|
{
|
|
117
|
-
foreignKeyName:
|
|
118
|
-
columns: [
|
|
117
|
+
foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
|
|
118
|
+
columns: ['broadcast_id'];
|
|
119
119
|
isOneToOne: false;
|
|
120
|
-
referencedRelation:
|
|
121
|
-
referencedColumns: [
|
|
120
|
+
referencedRelation: 'view_broadcast_logs';
|
|
121
|
+
referencedColumns: ['broadcast_id'];
|
|
122
122
|
},
|
|
123
123
|
{
|
|
124
|
-
foreignKeyName:
|
|
125
|
-
columns: [
|
|
124
|
+
foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
|
|
125
|
+
columns: ['org_id'];
|
|
126
126
|
isOneToOne: false;
|
|
127
|
-
referencedRelation:
|
|
128
|
-
referencedColumns: [
|
|
127
|
+
referencedRelation: 'tbl_org';
|
|
128
|
+
referencedColumns: ['org_id'];
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
|
-
foreignKeyName:
|
|
132
|
-
columns: [
|
|
131
|
+
foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
|
|
132
|
+
columns: ['org_id'];
|
|
133
133
|
isOneToOne: false;
|
|
134
|
-
referencedRelation:
|
|
135
|
-
referencedColumns: [
|
|
134
|
+
referencedRelation: 'view_org';
|
|
135
|
+
referencedColumns: ['org_id'];
|
|
136
136
|
}
|
|
137
137
|
];
|
|
138
138
|
};
|
|
139
139
|
tbl_broadcast_messages: {
|
|
140
140
|
Row: {
|
|
141
141
|
broadcast_id: string;
|
|
142
|
-
broadcast_status: Database[
|
|
142
|
+
broadcast_status: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
143
143
|
chat_ids: string[] | null;
|
|
144
144
|
created_at: string;
|
|
145
145
|
message_payload: Json | null;
|
|
@@ -152,7 +152,7 @@ export type Database = {
|
|
|
152
152
|
};
|
|
153
153
|
Insert: {
|
|
154
154
|
broadcast_id?: string;
|
|
155
|
-
broadcast_status?: Database[
|
|
155
|
+
broadcast_status?: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
156
156
|
chat_ids?: string[] | null;
|
|
157
157
|
created_at?: string;
|
|
158
158
|
message_payload?: Json | null;
|
|
@@ -165,7 +165,7 @@ export type Database = {
|
|
|
165
165
|
};
|
|
166
166
|
Update: {
|
|
167
167
|
broadcast_id?: string;
|
|
168
|
-
broadcast_status?: Database[
|
|
168
|
+
broadcast_status?: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
169
169
|
chat_ids?: string[] | null;
|
|
170
170
|
created_at?: string;
|
|
171
171
|
message_payload?: Json | null;
|
|
@@ -178,18 +178,18 @@ export type Database = {
|
|
|
178
178
|
};
|
|
179
179
|
Relationships: [
|
|
180
180
|
{
|
|
181
|
-
foreignKeyName:
|
|
182
|
-
columns: [
|
|
181
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
182
|
+
columns: ['org_id'];
|
|
183
183
|
isOneToOne: false;
|
|
184
|
-
referencedRelation:
|
|
185
|
-
referencedColumns: [
|
|
184
|
+
referencedRelation: 'tbl_org';
|
|
185
|
+
referencedColumns: ['org_id'];
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
|
-
foreignKeyName:
|
|
189
|
-
columns: [
|
|
188
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
189
|
+
columns: ['org_id'];
|
|
190
190
|
isOneToOne: false;
|
|
191
|
-
referencedRelation:
|
|
192
|
-
referencedColumns: [
|
|
191
|
+
referencedRelation: 'view_org';
|
|
192
|
+
referencedColumns: ['org_id'];
|
|
193
193
|
}
|
|
194
194
|
];
|
|
195
195
|
};
|
|
@@ -223,18 +223,18 @@ export type Database = {
|
|
|
223
223
|
};
|
|
224
224
|
Relationships: [
|
|
225
225
|
{
|
|
226
|
-
foreignKeyName:
|
|
227
|
-
columns: [
|
|
226
|
+
foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
|
|
227
|
+
columns: ['org_id'];
|
|
228
228
|
isOneToOne: false;
|
|
229
|
-
referencedRelation:
|
|
230
|
-
referencedColumns: [
|
|
229
|
+
referencedRelation: 'tbl_org';
|
|
230
|
+
referencedColumns: ['org_id'];
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
|
-
foreignKeyName:
|
|
234
|
-
columns: [
|
|
233
|
+
foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
|
|
234
|
+
columns: ['org_id'];
|
|
235
235
|
isOneToOne: false;
|
|
236
|
-
referencedRelation:
|
|
237
|
-
referencedColumns: [
|
|
236
|
+
referencedRelation: 'view_org';
|
|
237
|
+
referencedColumns: ['org_id'];
|
|
238
238
|
}
|
|
239
239
|
];
|
|
240
240
|
};
|
|
@@ -268,11 +268,11 @@ export type Database = {
|
|
|
268
268
|
};
|
|
269
269
|
Relationships: [
|
|
270
270
|
{
|
|
271
|
-
foreignKeyName:
|
|
272
|
-
columns: [
|
|
271
|
+
foreignKeyName: 'tbl_chat_access_org_id_email_fkey';
|
|
272
|
+
columns: ['org_id', 'email'];
|
|
273
273
|
isOneToOne: false;
|
|
274
|
-
referencedRelation:
|
|
275
|
-
referencedColumns: [
|
|
274
|
+
referencedRelation: 'tbl_org_members';
|
|
275
|
+
referencedColumns: ['org_id', 'email'];
|
|
276
276
|
}
|
|
277
277
|
];
|
|
278
278
|
};
|
|
@@ -346,6 +346,7 @@ export type Database = {
|
|
|
346
346
|
duration: string | null;
|
|
347
347
|
flag_metadata: Json | null;
|
|
348
348
|
flag_response_time: number | null;
|
|
349
|
+
flag_status: boolean | null;
|
|
349
350
|
forwarding_score: number | null;
|
|
350
351
|
from: string | null;
|
|
351
352
|
from_me: boolean | null;
|
|
@@ -397,6 +398,7 @@ export type Database = {
|
|
|
397
398
|
duration?: string | null;
|
|
398
399
|
flag_metadata?: Json | null;
|
|
399
400
|
flag_response_time?: number | null;
|
|
401
|
+
flag_status?: boolean | null;
|
|
400
402
|
forwarding_score?: number | null;
|
|
401
403
|
from?: string | null;
|
|
402
404
|
from_me?: boolean | null;
|
|
@@ -448,6 +450,7 @@ export type Database = {
|
|
|
448
450
|
duration?: string | null;
|
|
449
451
|
flag_metadata?: Json | null;
|
|
450
452
|
flag_response_time?: number | null;
|
|
453
|
+
flag_status?: boolean | null;
|
|
451
454
|
forwarding_score?: number | null;
|
|
452
455
|
from?: string | null;
|
|
453
456
|
from_me?: boolean | null;
|
|
@@ -539,11 +542,11 @@ export type Database = {
|
|
|
539
542
|
};
|
|
540
543
|
Relationships: [
|
|
541
544
|
{
|
|
542
|
-
foreignKeyName:
|
|
543
|
-
columns: [
|
|
545
|
+
foreignKeyName: 'tbl_chat_notifications_fkey_tbl_org_phones';
|
|
546
|
+
columns: ['org_id', 'org_phone'];
|
|
544
547
|
isOneToOne: false;
|
|
545
|
-
referencedRelation:
|
|
546
|
-
referencedColumns: [
|
|
548
|
+
referencedRelation: 'tbl_org_phones';
|
|
549
|
+
referencedColumns: ['org_id', 'org_phone'];
|
|
547
550
|
}
|
|
548
551
|
];
|
|
549
552
|
};
|
|
@@ -577,16 +580,17 @@ export type Database = {
|
|
|
577
580
|
};
|
|
578
581
|
Relationships: [
|
|
579
582
|
{
|
|
580
|
-
foreignKeyName:
|
|
581
|
-
columns: [
|
|
583
|
+
foreignKeyName: 'tbl_chat_participants_fkey_tbl_chats';
|
|
584
|
+
columns: ['org_id', 'org_phone', 'chat_id'];
|
|
582
585
|
isOneToOne: false;
|
|
583
|
-
referencedRelation:
|
|
584
|
-
referencedColumns: [
|
|
586
|
+
referencedRelation: 'tbl_chats';
|
|
587
|
+
referencedColumns: ['org_id', 'org_phone', 'chat_id'];
|
|
585
588
|
}
|
|
586
589
|
];
|
|
587
590
|
};
|
|
588
591
|
tbl_chat_properties: {
|
|
589
592
|
Row: {
|
|
593
|
+
assigned_to: string | null;
|
|
590
594
|
chat_id: string;
|
|
591
595
|
custom_properties: Json | null;
|
|
592
596
|
flag_count: number;
|
|
@@ -595,6 +599,7 @@ export type Database = {
|
|
|
595
599
|
org_id: string;
|
|
596
600
|
};
|
|
597
601
|
Insert: {
|
|
602
|
+
assigned_to?: string | null;
|
|
598
603
|
chat_id: string;
|
|
599
604
|
custom_properties?: Json | null;
|
|
600
605
|
flag_count?: number;
|
|
@@ -603,6 +608,7 @@ export type Database = {
|
|
|
603
608
|
org_id: string;
|
|
604
609
|
};
|
|
605
610
|
Update: {
|
|
611
|
+
assigned_to?: string | null;
|
|
606
612
|
chat_id?: string;
|
|
607
613
|
custom_properties?: Json | null;
|
|
608
614
|
flag_count?: number;
|
|
@@ -666,11 +672,11 @@ export type Database = {
|
|
|
666
672
|
};
|
|
667
673
|
Relationships: [
|
|
668
674
|
{
|
|
669
|
-
foreignKeyName:
|
|
670
|
-
columns: [
|
|
675
|
+
foreignKeyName: 'tbl_chat_reactions_fkey_tbl_org_phones';
|
|
676
|
+
columns: ['org_id', 'org_phone'];
|
|
671
677
|
isOneToOne: false;
|
|
672
|
-
referencedRelation:
|
|
673
|
-
referencedColumns: [
|
|
678
|
+
referencedRelation: 'tbl_org_phones';
|
|
679
|
+
referencedColumns: ['org_id', 'org_phone'];
|
|
674
680
|
}
|
|
675
681
|
];
|
|
676
682
|
};
|
|
@@ -683,7 +689,6 @@ export type Database = {
|
|
|
683
689
|
closed_at: string | null;
|
|
684
690
|
created_at: string;
|
|
685
691
|
due_date: string | null;
|
|
686
|
-
freshdesk_metadata: Json | null;
|
|
687
692
|
hubspot_metadata: Json | null;
|
|
688
693
|
is_deleted: boolean;
|
|
689
694
|
label_ids: Json | null;
|
|
@@ -693,9 +698,10 @@ export type Database = {
|
|
|
693
698
|
quoted_message_id: string | null;
|
|
694
699
|
raised_by: string | null;
|
|
695
700
|
response_time: number | null;
|
|
696
|
-
status: Database[
|
|
701
|
+
status: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
697
702
|
subject: string;
|
|
698
703
|
ticket_id: string;
|
|
704
|
+
ticket_metadata: Json | null;
|
|
699
705
|
};
|
|
700
706
|
Insert: {
|
|
701
707
|
assigned_by?: string | null;
|
|
@@ -705,7 +711,6 @@ export type Database = {
|
|
|
705
711
|
closed_at?: string | null;
|
|
706
712
|
created_at?: string;
|
|
707
713
|
due_date?: string | null;
|
|
708
|
-
freshdesk_metadata?: Json | null;
|
|
709
714
|
hubspot_metadata?: Json | null;
|
|
710
715
|
is_deleted?: boolean;
|
|
711
716
|
label_ids?: Json | null;
|
|
@@ -715,9 +720,10 @@ export type Database = {
|
|
|
715
720
|
quoted_message_id?: string | null;
|
|
716
721
|
raised_by?: string | null;
|
|
717
722
|
response_time?: number | null;
|
|
718
|
-
status?: Database[
|
|
723
|
+
status?: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
719
724
|
subject: string;
|
|
720
725
|
ticket_id?: string;
|
|
726
|
+
ticket_metadata?: Json | null;
|
|
721
727
|
};
|
|
722
728
|
Update: {
|
|
723
729
|
assigned_by?: string | null;
|
|
@@ -727,7 +733,6 @@ export type Database = {
|
|
|
727
733
|
closed_at?: string | null;
|
|
728
734
|
created_at?: string;
|
|
729
735
|
due_date?: string | null;
|
|
730
|
-
freshdesk_metadata?: Json | null;
|
|
731
736
|
hubspot_metadata?: Json | null;
|
|
732
737
|
is_deleted?: boolean;
|
|
733
738
|
label_ids?: Json | null;
|
|
@@ -737,24 +742,25 @@ export type Database = {
|
|
|
737
742
|
quoted_message_id?: string | null;
|
|
738
743
|
raised_by?: string | null;
|
|
739
744
|
response_time?: number | null;
|
|
740
|
-
status?: Database[
|
|
745
|
+
status?: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
741
746
|
subject?: string;
|
|
742
747
|
ticket_id?: string;
|
|
748
|
+
ticket_metadata?: Json | null;
|
|
743
749
|
};
|
|
744
750
|
Relationships: [
|
|
745
751
|
{
|
|
746
|
-
foreignKeyName:
|
|
747
|
-
columns: [
|
|
752
|
+
foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
|
|
753
|
+
columns: ['org_id'];
|
|
748
754
|
isOneToOne: false;
|
|
749
|
-
referencedRelation:
|
|
750
|
-
referencedColumns: [
|
|
755
|
+
referencedRelation: 'tbl_org';
|
|
756
|
+
referencedColumns: ['org_id'];
|
|
751
757
|
},
|
|
752
758
|
{
|
|
753
|
-
foreignKeyName:
|
|
754
|
-
columns: [
|
|
759
|
+
foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
|
|
760
|
+
columns: ['org_id'];
|
|
755
761
|
isOneToOne: false;
|
|
756
|
-
referencedRelation:
|
|
757
|
-
referencedColumns: [
|
|
762
|
+
referencedRelation: 'view_org';
|
|
763
|
+
referencedColumns: ['org_id'];
|
|
758
764
|
}
|
|
759
765
|
];
|
|
760
766
|
};
|
|
@@ -833,11 +839,11 @@ export type Database = {
|
|
|
833
839
|
};
|
|
834
840
|
Relationships: [
|
|
835
841
|
{
|
|
836
|
-
foreignKeyName:
|
|
837
|
-
columns: [
|
|
842
|
+
foreignKeyName: 'tbl_chats_fkey_tbl_org_phones';
|
|
843
|
+
columns: ['org_phone', 'org_id'];
|
|
838
844
|
isOneToOne: false;
|
|
839
|
-
referencedRelation:
|
|
840
|
-
referencedColumns: [
|
|
845
|
+
referencedRelation: 'tbl_org_phones';
|
|
846
|
+
referencedColumns: ['org_phone', 'org_id'];
|
|
841
847
|
}
|
|
842
848
|
];
|
|
843
849
|
};
|
|
@@ -928,18 +934,18 @@ export type Database = {
|
|
|
928
934
|
};
|
|
929
935
|
Relationships: [
|
|
930
936
|
{
|
|
931
|
-
foreignKeyName:
|
|
932
|
-
columns: [
|
|
937
|
+
foreignKeyName: 'tbl_contacts_org_id_fkey';
|
|
938
|
+
columns: ['org_id'];
|
|
933
939
|
isOneToOne: false;
|
|
934
|
-
referencedRelation:
|
|
935
|
-
referencedColumns: [
|
|
940
|
+
referencedRelation: 'tbl_org';
|
|
941
|
+
referencedColumns: ['org_id'];
|
|
936
942
|
},
|
|
937
943
|
{
|
|
938
|
-
foreignKeyName:
|
|
939
|
-
columns: [
|
|
944
|
+
foreignKeyName: 'tbl_contacts_org_id_fkey';
|
|
945
|
+
columns: ['org_id'];
|
|
940
946
|
isOneToOne: false;
|
|
941
|
-
referencedRelation:
|
|
942
|
-
referencedColumns: [
|
|
947
|
+
referencedRelation: 'view_org';
|
|
948
|
+
referencedColumns: ['org_id'];
|
|
943
949
|
}
|
|
944
950
|
];
|
|
945
951
|
};
|
|
@@ -976,18 +982,18 @@ export type Database = {
|
|
|
976
982
|
};
|
|
977
983
|
Relationships: [
|
|
978
984
|
{
|
|
979
|
-
foreignKeyName:
|
|
980
|
-
columns: [
|
|
985
|
+
foreignKeyName: 'tbl_custom_properties_org_id_fkey';
|
|
986
|
+
columns: ['org_id'];
|
|
981
987
|
isOneToOne: false;
|
|
982
|
-
referencedRelation:
|
|
983
|
-
referencedColumns: [
|
|
988
|
+
referencedRelation: 'tbl_org';
|
|
989
|
+
referencedColumns: ['org_id'];
|
|
984
990
|
},
|
|
985
991
|
{
|
|
986
|
-
foreignKeyName:
|
|
987
|
-
columns: [
|
|
992
|
+
foreignKeyName: 'tbl_custom_properties_org_id_fkey';
|
|
993
|
+
columns: ['org_id'];
|
|
988
994
|
isOneToOne: false;
|
|
989
|
-
referencedRelation:
|
|
990
|
-
referencedColumns: [
|
|
995
|
+
referencedRelation: 'view_org';
|
|
996
|
+
referencedColumns: ['org_id'];
|
|
991
997
|
}
|
|
992
998
|
];
|
|
993
999
|
};
|
|
@@ -997,51 +1003,51 @@ export type Database = {
|
|
|
997
1003
|
id: string;
|
|
998
1004
|
integration_id: string | null;
|
|
999
1005
|
integration_metadata: Json;
|
|
1000
|
-
integration_name: Database[
|
|
1006
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1001
1007
|
integration_type: string;
|
|
1002
1008
|
is_subscribed: boolean;
|
|
1003
1009
|
org_id: string;
|
|
1004
1010
|
subscribed_at: string;
|
|
1005
|
-
type: Database[
|
|
1011
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1006
1012
|
};
|
|
1007
1013
|
Insert: {
|
|
1008
1014
|
hook_url: string;
|
|
1009
1015
|
id?: string;
|
|
1010
1016
|
integration_id?: string | null;
|
|
1011
1017
|
integration_metadata: Json;
|
|
1012
|
-
integration_name: Database[
|
|
1018
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1013
1019
|
integration_type: string;
|
|
1014
1020
|
is_subscribed: boolean;
|
|
1015
1021
|
org_id: string;
|
|
1016
1022
|
subscribed_at?: string;
|
|
1017
|
-
type: Database[
|
|
1023
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1018
1024
|
};
|
|
1019
1025
|
Update: {
|
|
1020
1026
|
hook_url?: string;
|
|
1021
1027
|
id?: string;
|
|
1022
1028
|
integration_id?: string | null;
|
|
1023
1029
|
integration_metadata?: Json;
|
|
1024
|
-
integration_name?: Database[
|
|
1030
|
+
integration_name?: Database['public']['Enums']['enum_integration_name'];
|
|
1025
1031
|
integration_type?: string;
|
|
1026
1032
|
is_subscribed?: boolean;
|
|
1027
1033
|
org_id?: string;
|
|
1028
1034
|
subscribed_at?: string;
|
|
1029
|
-
type?: Database[
|
|
1035
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
1030
1036
|
};
|
|
1031
1037
|
Relationships: [
|
|
1032
1038
|
{
|
|
1033
|
-
foreignKeyName:
|
|
1034
|
-
columns: [
|
|
1039
|
+
foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
|
|
1040
|
+
columns: ['org_id'];
|
|
1035
1041
|
isOneToOne: false;
|
|
1036
|
-
referencedRelation:
|
|
1037
|
-
referencedColumns: [
|
|
1042
|
+
referencedRelation: 'tbl_org';
|
|
1043
|
+
referencedColumns: ['org_id'];
|
|
1038
1044
|
},
|
|
1039
1045
|
{
|
|
1040
|
-
foreignKeyName:
|
|
1041
|
-
columns: [
|
|
1046
|
+
foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
|
|
1047
|
+
columns: ['org_id'];
|
|
1042
1048
|
isOneToOne: false;
|
|
1043
|
-
referencedRelation:
|
|
1044
|
-
referencedColumns: [
|
|
1049
|
+
referencedRelation: 'view_org';
|
|
1050
|
+
referencedColumns: ['org_id'];
|
|
1045
1051
|
}
|
|
1046
1052
|
];
|
|
1047
1053
|
};
|
|
@@ -1049,50 +1055,50 @@ export type Database = {
|
|
|
1049
1055
|
Row: {
|
|
1050
1056
|
created_at: string;
|
|
1051
1057
|
id: string;
|
|
1052
|
-
integration_name: Database[
|
|
1058
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1053
1059
|
integration_type: string;
|
|
1054
1060
|
metadata: Json;
|
|
1055
1061
|
org_id: string;
|
|
1056
1062
|
response: Json | null;
|
|
1057
1063
|
success: boolean;
|
|
1058
|
-
type: Database[
|
|
1064
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1059
1065
|
};
|
|
1060
1066
|
Insert: {
|
|
1061
1067
|
created_at?: string;
|
|
1062
1068
|
id?: string;
|
|
1063
|
-
integration_name: Database[
|
|
1069
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
1064
1070
|
integration_type: string;
|
|
1065
1071
|
metadata?: Json;
|
|
1066
1072
|
org_id: string;
|
|
1067
1073
|
response?: Json | null;
|
|
1068
1074
|
success?: boolean;
|
|
1069
|
-
type: Database[
|
|
1075
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1070
1076
|
};
|
|
1071
1077
|
Update: {
|
|
1072
1078
|
created_at?: string;
|
|
1073
1079
|
id?: string;
|
|
1074
|
-
integration_name?: Database[
|
|
1080
|
+
integration_name?: Database['public']['Enums']['enum_integration_name'];
|
|
1075
1081
|
integration_type?: string;
|
|
1076
1082
|
metadata?: Json;
|
|
1077
1083
|
org_id?: string;
|
|
1078
1084
|
response?: Json | null;
|
|
1079
1085
|
success?: boolean;
|
|
1080
|
-
type?: Database[
|
|
1086
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
1081
1087
|
};
|
|
1082
1088
|
Relationships: [
|
|
1083
1089
|
{
|
|
1084
|
-
foreignKeyName:
|
|
1085
|
-
columns: [
|
|
1090
|
+
foreignKeyName: 'tbl_integration_logs_org_id_fkey';
|
|
1091
|
+
columns: ['org_id'];
|
|
1086
1092
|
isOneToOne: false;
|
|
1087
|
-
referencedRelation:
|
|
1088
|
-
referencedColumns: [
|
|
1093
|
+
referencedRelation: 'tbl_org';
|
|
1094
|
+
referencedColumns: ['org_id'];
|
|
1089
1095
|
},
|
|
1090
1096
|
{
|
|
1091
|
-
foreignKeyName:
|
|
1092
|
-
columns: [
|
|
1097
|
+
foreignKeyName: 'tbl_integration_logs_org_id_fkey';
|
|
1098
|
+
columns: ['org_id'];
|
|
1093
1099
|
isOneToOne: false;
|
|
1094
|
-
referencedRelation:
|
|
1095
|
-
referencedColumns: [
|
|
1100
|
+
referencedRelation: 'view_org';
|
|
1101
|
+
referencedColumns: ['org_id'];
|
|
1096
1102
|
}
|
|
1097
1103
|
];
|
|
1098
1104
|
};
|
|
@@ -1107,7 +1113,7 @@ export type Database = {
|
|
|
1107
1113
|
role: string;
|
|
1108
1114
|
token: string;
|
|
1109
1115
|
token_metadata: Json | null;
|
|
1110
|
-
type: Database[
|
|
1116
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1111
1117
|
};
|
|
1112
1118
|
Insert: {
|
|
1113
1119
|
exp: string;
|
|
@@ -1119,7 +1125,7 @@ export type Database = {
|
|
|
1119
1125
|
role: string;
|
|
1120
1126
|
token: string;
|
|
1121
1127
|
token_metadata?: Json | null;
|
|
1122
|
-
type: Database[
|
|
1128
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
1123
1129
|
};
|
|
1124
1130
|
Update: {
|
|
1125
1131
|
exp?: string;
|
|
@@ -1131,22 +1137,22 @@ export type Database = {
|
|
|
1131
1137
|
role?: string;
|
|
1132
1138
|
token?: string;
|
|
1133
1139
|
token_metadata?: Json | null;
|
|
1134
|
-
type?: Database[
|
|
1140
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
1135
1141
|
};
|
|
1136
1142
|
Relationships: [
|
|
1137
1143
|
{
|
|
1138
|
-
foreignKeyName:
|
|
1139
|
-
columns: [
|
|
1144
|
+
foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
|
|
1145
|
+
columns: ['org_id'];
|
|
1140
1146
|
isOneToOne: false;
|
|
1141
|
-
referencedRelation:
|
|
1142
|
-
referencedColumns: [
|
|
1147
|
+
referencedRelation: 'tbl_org';
|
|
1148
|
+
referencedColumns: ['org_id'];
|
|
1143
1149
|
},
|
|
1144
1150
|
{
|
|
1145
|
-
foreignKeyName:
|
|
1146
|
-
columns: [
|
|
1151
|
+
foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
|
|
1152
|
+
columns: ['org_id'];
|
|
1147
1153
|
isOneToOne: false;
|
|
1148
|
-
referencedRelation:
|
|
1149
|
-
referencedColumns: [
|
|
1154
|
+
referencedRelation: 'view_org';
|
|
1155
|
+
referencedColumns: ['org_id'];
|
|
1150
1156
|
}
|
|
1151
1157
|
];
|
|
1152
1158
|
};
|
|
@@ -1216,18 +1222,18 @@ export type Database = {
|
|
|
1216
1222
|
};
|
|
1217
1223
|
Relationships: [
|
|
1218
1224
|
{
|
|
1219
|
-
foreignKeyName:
|
|
1220
|
-
columns: [
|
|
1225
|
+
foreignKeyName: 'tbl_org_labels_org_id_fkey';
|
|
1226
|
+
columns: ['org_id'];
|
|
1221
1227
|
isOneToOne: false;
|
|
1222
|
-
referencedRelation:
|
|
1223
|
-
referencedColumns: [
|
|
1228
|
+
referencedRelation: 'tbl_org';
|
|
1229
|
+
referencedColumns: ['org_id'];
|
|
1224
1230
|
},
|
|
1225
1231
|
{
|
|
1226
|
-
foreignKeyName:
|
|
1227
|
-
columns: [
|
|
1232
|
+
foreignKeyName: 'tbl_org_labels_org_id_fkey';
|
|
1233
|
+
columns: ['org_id'];
|
|
1228
1234
|
isOneToOne: false;
|
|
1229
|
-
referencedRelation:
|
|
1230
|
-
referencedColumns: [
|
|
1235
|
+
referencedRelation: 'view_org';
|
|
1236
|
+
referencedColumns: ['org_id'];
|
|
1231
1237
|
}
|
|
1232
1238
|
];
|
|
1233
1239
|
};
|
|
@@ -1240,13 +1246,13 @@ export type Database = {
|
|
|
1240
1246
|
is_active: boolean;
|
|
1241
1247
|
is_owner: boolean | null;
|
|
1242
1248
|
label_ids: string[] | null;
|
|
1243
|
-
member_color: Database[
|
|
1249
|
+
member_color: Database['public']['Enums']['enum_chat_colors'];
|
|
1244
1250
|
member_image: string | null;
|
|
1245
1251
|
member_name: string | null;
|
|
1246
1252
|
org_id: string;
|
|
1247
1253
|
org_phones: string[] | null;
|
|
1248
1254
|
preferences: Json;
|
|
1249
|
-
role: Database[
|
|
1255
|
+
role: Database['public']['Enums']['enum_member_role'];
|
|
1250
1256
|
user_id: string | null;
|
|
1251
1257
|
};
|
|
1252
1258
|
Insert: {
|
|
@@ -1257,13 +1263,13 @@ export type Database = {
|
|
|
1257
1263
|
is_active?: boolean;
|
|
1258
1264
|
is_owner?: boolean | null;
|
|
1259
1265
|
label_ids?: string[] | null;
|
|
1260
|
-
member_color?: Database[
|
|
1266
|
+
member_color?: Database['public']['Enums']['enum_chat_colors'];
|
|
1261
1267
|
member_image?: string | null;
|
|
1262
1268
|
member_name?: string | null;
|
|
1263
1269
|
org_id: string;
|
|
1264
1270
|
org_phones?: string[] | null;
|
|
1265
1271
|
preferences?: Json;
|
|
1266
|
-
role?: Database[
|
|
1272
|
+
role?: Database['public']['Enums']['enum_member_role'];
|
|
1267
1273
|
user_id?: string | null;
|
|
1268
1274
|
};
|
|
1269
1275
|
Update: {
|
|
@@ -1274,36 +1280,36 @@ export type Database = {
|
|
|
1274
1280
|
is_active?: boolean;
|
|
1275
1281
|
is_owner?: boolean | null;
|
|
1276
1282
|
label_ids?: string[] | null;
|
|
1277
|
-
member_color?: Database[
|
|
1283
|
+
member_color?: Database['public']['Enums']['enum_chat_colors'];
|
|
1278
1284
|
member_image?: string | null;
|
|
1279
1285
|
member_name?: string | null;
|
|
1280
1286
|
org_id?: string;
|
|
1281
1287
|
org_phones?: string[] | null;
|
|
1282
1288
|
preferences?: Json;
|
|
1283
|
-
role?: Database[
|
|
1289
|
+
role?: Database['public']['Enums']['enum_member_role'];
|
|
1284
1290
|
user_id?: string | null;
|
|
1285
1291
|
};
|
|
1286
1292
|
Relationships: [
|
|
1287
1293
|
{
|
|
1288
|
-
foreignKeyName:
|
|
1289
|
-
columns: [
|
|
1294
|
+
foreignKeyName: 'tbl_org_members_fkey_auth_users';
|
|
1295
|
+
columns: ['user_id'];
|
|
1290
1296
|
isOneToOne: false;
|
|
1291
|
-
referencedRelation:
|
|
1292
|
-
referencedColumns: [
|
|
1297
|
+
referencedRelation: 'users';
|
|
1298
|
+
referencedColumns: ['id'];
|
|
1293
1299
|
},
|
|
1294
1300
|
{
|
|
1295
|
-
foreignKeyName:
|
|
1296
|
-
columns: [
|
|
1301
|
+
foreignKeyName: 'tbl_org_members_fkey_tbl_org';
|
|
1302
|
+
columns: ['org_id'];
|
|
1297
1303
|
isOneToOne: false;
|
|
1298
|
-
referencedRelation:
|
|
1299
|
-
referencedColumns: [
|
|
1304
|
+
referencedRelation: 'tbl_org';
|
|
1305
|
+
referencedColumns: ['org_id'];
|
|
1300
1306
|
},
|
|
1301
1307
|
{
|
|
1302
|
-
foreignKeyName:
|
|
1303
|
-
columns: [
|
|
1308
|
+
foreignKeyName: 'tbl_org_members_fkey_tbl_org';
|
|
1309
|
+
columns: ['org_id'];
|
|
1304
1310
|
isOneToOne: false;
|
|
1305
|
-
referencedRelation:
|
|
1306
|
-
referencedColumns: [
|
|
1311
|
+
referencedRelation: 'view_org';
|
|
1312
|
+
referencedColumns: ['org_id'];
|
|
1307
1313
|
}
|
|
1308
1314
|
];
|
|
1309
1315
|
};
|
|
@@ -1367,32 +1373,32 @@ export type Database = {
|
|
|
1367
1373
|
};
|
|
1368
1374
|
Relationships: [
|
|
1369
1375
|
{
|
|
1370
|
-
foreignKeyName:
|
|
1371
|
-
columns: [
|
|
1376
|
+
foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
|
|
1377
|
+
columns: ['org_id'];
|
|
1372
1378
|
isOneToOne: false;
|
|
1373
|
-
referencedRelation:
|
|
1374
|
-
referencedColumns: [
|
|
1379
|
+
referencedRelation: 'tbl_org';
|
|
1380
|
+
referencedColumns: ['org_id'];
|
|
1375
1381
|
},
|
|
1376
1382
|
{
|
|
1377
|
-
foreignKeyName:
|
|
1378
|
-
columns: [
|
|
1383
|
+
foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
|
|
1384
|
+
columns: ['org_id'];
|
|
1379
1385
|
isOneToOne: false;
|
|
1380
|
-
referencedRelation:
|
|
1381
|
-
referencedColumns: [
|
|
1386
|
+
referencedRelation: 'view_org';
|
|
1387
|
+
referencedColumns: ['org_id'];
|
|
1382
1388
|
},
|
|
1383
1389
|
{
|
|
1384
|
-
foreignKeyName:
|
|
1385
|
-
columns: [
|
|
1390
|
+
foreignKeyName: 'tbl_org_phones_org_id_fkey';
|
|
1391
|
+
columns: ['org_id'];
|
|
1386
1392
|
isOneToOne: false;
|
|
1387
|
-
referencedRelation:
|
|
1388
|
-
referencedColumns: [
|
|
1393
|
+
referencedRelation: 'tbl_org';
|
|
1394
|
+
referencedColumns: ['org_id'];
|
|
1389
1395
|
},
|
|
1390
1396
|
{
|
|
1391
|
-
foreignKeyName:
|
|
1392
|
-
columns: [
|
|
1397
|
+
foreignKeyName: 'tbl_org_phones_org_id_fkey';
|
|
1398
|
+
columns: ['org_id'];
|
|
1393
1399
|
isOneToOne: false;
|
|
1394
|
-
referencedRelation:
|
|
1395
|
-
referencedColumns: [
|
|
1400
|
+
referencedRelation: 'view_org';
|
|
1401
|
+
referencedColumns: ['org_id'];
|
|
1396
1402
|
}
|
|
1397
1403
|
];
|
|
1398
1404
|
};
|
|
@@ -1420,18 +1426,18 @@ export type Database = {
|
|
|
1420
1426
|
};
|
|
1421
1427
|
Relationships: [
|
|
1422
1428
|
{
|
|
1423
|
-
foreignKeyName:
|
|
1424
|
-
columns: [
|
|
1429
|
+
foreignKeyName: 'tbl_quick_replies_org_id_fkey';
|
|
1430
|
+
columns: ['org_id'];
|
|
1425
1431
|
isOneToOne: false;
|
|
1426
|
-
referencedRelation:
|
|
1427
|
-
referencedColumns: [
|
|
1432
|
+
referencedRelation: 'tbl_org';
|
|
1433
|
+
referencedColumns: ['org_id'];
|
|
1428
1434
|
},
|
|
1429
1435
|
{
|
|
1430
|
-
foreignKeyName:
|
|
1431
|
-
columns: [
|
|
1436
|
+
foreignKeyName: 'tbl_quick_replies_org_id_fkey';
|
|
1437
|
+
columns: ['org_id'];
|
|
1432
1438
|
isOneToOne: false;
|
|
1433
|
-
referencedRelation:
|
|
1434
|
-
referencedColumns: [
|
|
1439
|
+
referencedRelation: 'view_org';
|
|
1440
|
+
referencedColumns: ['org_id'];
|
|
1435
1441
|
}
|
|
1436
1442
|
];
|
|
1437
1443
|
};
|
|
@@ -1464,7 +1470,7 @@ export type Database = {
|
|
|
1464
1470
|
view_broadcast_logs: {
|
|
1465
1471
|
Row: {
|
|
1466
1472
|
broadcast_id: string | null;
|
|
1467
|
-
broadcast_status: Database[
|
|
1473
|
+
broadcast_status: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
1468
1474
|
created_at: string | null;
|
|
1469
1475
|
delivery_percentage: number | null;
|
|
1470
1476
|
failed_chats: number | null;
|
|
@@ -1483,18 +1489,18 @@ export type Database = {
|
|
|
1483
1489
|
};
|
|
1484
1490
|
Relationships: [
|
|
1485
1491
|
{
|
|
1486
|
-
foreignKeyName:
|
|
1487
|
-
columns: [
|
|
1492
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
1493
|
+
columns: ['org_id'];
|
|
1488
1494
|
isOneToOne: false;
|
|
1489
|
-
referencedRelation:
|
|
1490
|
-
referencedColumns: [
|
|
1495
|
+
referencedRelation: 'tbl_org';
|
|
1496
|
+
referencedColumns: ['org_id'];
|
|
1491
1497
|
},
|
|
1492
1498
|
{
|
|
1493
|
-
foreignKeyName:
|
|
1494
|
-
columns: [
|
|
1499
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
1500
|
+
columns: ['org_id'];
|
|
1495
1501
|
isOneToOne: false;
|
|
1496
|
-
referencedRelation:
|
|
1497
|
-
referencedColumns: [
|
|
1502
|
+
referencedRelation: 'view_org';
|
|
1503
|
+
referencedColumns: ['org_id'];
|
|
1498
1504
|
}
|
|
1499
1505
|
];
|
|
1500
1506
|
};
|
|
@@ -1531,6 +1537,7 @@ export type Database = {
|
|
|
1531
1537
|
};
|
|
1532
1538
|
view_chats: {
|
|
1533
1539
|
Row: {
|
|
1540
|
+
assigned_to: string | null;
|
|
1534
1541
|
chat_access: Json | null;
|
|
1535
1542
|
chat_id: string | null;
|
|
1536
1543
|
chat_image: string | null;
|
|
@@ -1565,7 +1572,6 @@ export type Database = {
|
|
|
1565
1572
|
is_enterprise: boolean | null;
|
|
1566
1573
|
is_free_trial: boolean | null;
|
|
1567
1574
|
is_hubspot_connected: boolean | null;
|
|
1568
|
-
is_freshdesk_connected: boolean | null;
|
|
1569
1575
|
org_id: string | null;
|
|
1570
1576
|
org_image: string | null;
|
|
1571
1577
|
org_metadata: Json | null;
|
|
@@ -1587,7 +1593,6 @@ export type Database = {
|
|
|
1587
1593
|
is_enterprise?: never;
|
|
1588
1594
|
is_free_trial?: never;
|
|
1589
1595
|
is_hubspot_connected?: never;
|
|
1590
|
-
is_freshdesk_connected?: never;
|
|
1591
1596
|
org_id?: string | null;
|
|
1592
1597
|
org_image?: string | null;
|
|
1593
1598
|
org_metadata?: Json | null;
|
|
@@ -1609,7 +1614,6 @@ export type Database = {
|
|
|
1609
1614
|
is_enterprise?: never;
|
|
1610
1615
|
is_free_trial?: never;
|
|
1611
1616
|
is_hubspot_connected?: never;
|
|
1612
|
-
is_freshdesk_connected?: never;
|
|
1613
1617
|
org_id?: string | null;
|
|
1614
1618
|
org_image?: string | null;
|
|
1615
1619
|
org_metadata?: Json | null;
|
|
@@ -1664,7 +1668,7 @@ export type Database = {
|
|
|
1664
1668
|
generate_access_token: {
|
|
1665
1669
|
Args: {
|
|
1666
1670
|
name_input?: string;
|
|
1667
|
-
type_input?: Database[
|
|
1671
|
+
type_input?: Database['public']['Enums']['enum_integration_type'];
|
|
1668
1672
|
org_id_input?: string;
|
|
1669
1673
|
};
|
|
1670
1674
|
Returns: Json;
|
|
@@ -1674,7 +1678,7 @@ export type Database = {
|
|
|
1674
1678
|
org_id_input?: string;
|
|
1675
1679
|
org_phone_input?: string;
|
|
1676
1680
|
token_id_input?: string;
|
|
1677
|
-
token_type_input?: Database[
|
|
1681
|
+
token_type_input?: Database['public']['Enums']['enum_integration_type'];
|
|
1678
1682
|
};
|
|
1679
1683
|
Returns: Json;
|
|
1680
1684
|
};
|
|
@@ -1797,7 +1801,7 @@ export type Database = {
|
|
|
1797
1801
|
};
|
|
1798
1802
|
list_role_from_user: {
|
|
1799
1803
|
Args: Record<PropertyKey, never>;
|
|
1800
|
-
Returns: Database[
|
|
1804
|
+
Returns: Database['public']['Enums']['enum_member_role'];
|
|
1801
1805
|
};
|
|
1802
1806
|
update_labels: {
|
|
1803
1807
|
Args: {
|
|
@@ -1810,12 +1814,12 @@ export type Database = {
|
|
|
1810
1814
|
};
|
|
1811
1815
|
};
|
|
1812
1816
|
Enums: {
|
|
1813
|
-
enum_broadcast_status:
|
|
1814
|
-
enum_chat_colors:
|
|
1815
|
-
enum_chat_tickets_status:
|
|
1817
|
+
enum_broadcast_status: 'inprogress' | 'completed' | 'stopped';
|
|
1818
|
+
enum_chat_colors: '#B4876E' | '#A5B337' | '#06CF9C' | '#25D366' | '#02A698' | '#7D9EF1' | '#007BFC' | '#5E47DE' | '#7F66FF' | '#9333EA' | '#FA6533' | '#C4532D' | '#DC2626' | '#FF2E74' | '#DB2777';
|
|
1819
|
+
enum_chat_tickets_status: 'open' | 'inprogress' | 'closed' | 'archived';
|
|
1816
1820
|
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' | 'chat.notification.created' | 'message.created' | 'message.updated' | 'message.deleted' | 'message.ack.updated' | 'reaction.created' | 'reaction.updated' | 'ticket.created' | 'ticket.updated' | 'ticket.deleted';
|
|
1817
|
-
enum_integration_type:
|
|
1818
|
-
enum_member_role:
|
|
1821
|
+
enum_integration_type: 'zapier' | 'pabbly' | 'api' | 'webhook' | 'hubspot' | 'freshdesk' | 'slack' | 'jira' | 'salesforce';
|
|
1822
|
+
enum_member_role: 'admin' | 'member';
|
|
1819
1823
|
};
|
|
1820
1824
|
CompositeTypes: {
|
|
1821
1825
|
[_ in never]: never;
|
|
@@ -1925,11 +1929,11 @@ export type Database = {
|
|
|
1925
1929
|
};
|
|
1926
1930
|
Relationships: [
|
|
1927
1931
|
{
|
|
1928
|
-
foreignKeyName:
|
|
1929
|
-
columns: [
|
|
1932
|
+
foreignKeyName: 'objects_bucketId_fkey';
|
|
1933
|
+
columns: ['bucket_id'];
|
|
1930
1934
|
isOneToOne: false;
|
|
1931
|
-
referencedRelation:
|
|
1932
|
-
referencedColumns: [
|
|
1935
|
+
referencedRelation: 'buckets';
|
|
1936
|
+
referencedColumns: ['id'];
|
|
1933
1937
|
}
|
|
1934
1938
|
];
|
|
1935
1939
|
};
|
|
@@ -1966,11 +1970,11 @@ export type Database = {
|
|
|
1966
1970
|
};
|
|
1967
1971
|
Relationships: [
|
|
1968
1972
|
{
|
|
1969
|
-
foreignKeyName:
|
|
1970
|
-
columns: [
|
|
1973
|
+
foreignKeyName: 's3_multipart_uploads_bucket_id_fkey';
|
|
1974
|
+
columns: ['bucket_id'];
|
|
1971
1975
|
isOneToOne: false;
|
|
1972
|
-
referencedRelation:
|
|
1973
|
-
referencedColumns: [
|
|
1976
|
+
referencedRelation: 'buckets';
|
|
1977
|
+
referencedColumns: ['id'];
|
|
1974
1978
|
}
|
|
1975
1979
|
];
|
|
1976
1980
|
};
|
|
@@ -2013,18 +2017,18 @@ export type Database = {
|
|
|
2013
2017
|
};
|
|
2014
2018
|
Relationships: [
|
|
2015
2019
|
{
|
|
2016
|
-
foreignKeyName:
|
|
2017
|
-
columns: [
|
|
2020
|
+
foreignKeyName: 's3_multipart_uploads_parts_bucket_id_fkey';
|
|
2021
|
+
columns: ['bucket_id'];
|
|
2018
2022
|
isOneToOne: false;
|
|
2019
|
-
referencedRelation:
|
|
2020
|
-
referencedColumns: [
|
|
2023
|
+
referencedRelation: 'buckets';
|
|
2024
|
+
referencedColumns: ['id'];
|
|
2021
2025
|
},
|
|
2022
2026
|
{
|
|
2023
|
-
foreignKeyName:
|
|
2024
|
-
columns: [
|
|
2027
|
+
foreignKeyName: 's3_multipart_uploads_parts_upload_id_fkey';
|
|
2028
|
+
columns: ['upload_id'];
|
|
2025
2029
|
isOneToOne: false;
|
|
2026
|
-
referencedRelation:
|
|
2027
|
-
referencedColumns: [
|
|
2030
|
+
referencedRelation: 's3_multipart_uploads';
|
|
2031
|
+
referencedColumns: ['id'];
|
|
2028
2032
|
}
|
|
2029
2033
|
];
|
|
2030
2034
|
};
|
|
@@ -2098,6 +2102,10 @@ export type Database = {
|
|
|
2098
2102
|
updated_at: string;
|
|
2099
2103
|
}[];
|
|
2100
2104
|
};
|
|
2105
|
+
operation: {
|
|
2106
|
+
Args: Record<PropertyKey, never>;
|
|
2107
|
+
Returns: string;
|
|
2108
|
+
};
|
|
2101
2109
|
search: {
|
|
2102
2110
|
Args: {
|
|
2103
2111
|
prefix: string;
|
|
@@ -2127,45 +2135,45 @@ export type Database = {
|
|
|
2127
2135
|
};
|
|
2128
2136
|
};
|
|
2129
2137
|
};
|
|
2130
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
2131
|
-
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2138
|
+
type PublicSchema = Database[Extract<keyof Database, 'public'>];
|
|
2139
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) | {
|
|
2132
2140
|
schema: keyof Database;
|
|
2133
2141
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2134
2142
|
schema: keyof Database;
|
|
2135
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
2143
|
+
} ? keyof (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views']) : never = never> = PublicTableNameOrOptions extends {
|
|
2136
2144
|
schema: keyof Database;
|
|
2137
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
2145
|
+
} ? (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
|
2138
2146
|
Row: infer R;
|
|
2139
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2147
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) ? (PublicSchema['Tables'] & PublicSchema['Views'])[PublicTableNameOrOptions] extends {
|
|
2140
2148
|
Row: infer R;
|
|
2141
2149
|
} ? R : never : never;
|
|
2142
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2150
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
|
|
2143
2151
|
schema: keyof Database;
|
|
2144
2152
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2145
2153
|
schema: keyof Database;
|
|
2146
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2154
|
+
} ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] : never = never> = PublicTableNameOrOptions extends {
|
|
2147
2155
|
schema: keyof Database;
|
|
2148
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2156
|
+
} ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
2149
2157
|
Insert: infer I;
|
|
2150
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2158
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
|
|
2151
2159
|
Insert: infer I;
|
|
2152
2160
|
} ? I : never : never;
|
|
2153
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2161
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
|
|
2154
2162
|
schema: keyof Database;
|
|
2155
2163
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
2156
2164
|
schema: keyof Database;
|
|
2157
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2165
|
+
} ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] : never = never> = PublicTableNameOrOptions extends {
|
|
2158
2166
|
schema: keyof Database;
|
|
2159
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2167
|
+
} ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
2160
2168
|
Update: infer U;
|
|
2161
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2169
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
|
|
2162
2170
|
Update: infer U;
|
|
2163
2171
|
} ? U : never : never;
|
|
2164
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
2172
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] | {
|
|
2165
2173
|
schema: keyof Database;
|
|
2166
2174
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
2167
2175
|
schema: keyof Database;
|
|
2168
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
2176
|
+
} ? keyof Database[PublicEnumNameOrOptions['schema']]['Enums'] : never = never> = PublicEnumNameOrOptions extends {
|
|
2169
2177
|
schema: keyof Database;
|
|
2170
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
2178
|
+
} ? Database[PublicEnumNameOrOptions['schema']]['Enums'][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] ? PublicSchema['Enums'][PublicEnumNameOrOptions] : never;
|
|
2171
2179
|
export {};
|