@periskope/types 0.6.9-2.2 → 0.6.9-6.1
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 +453 -227
- package/dist/types.d.ts +31 -6
- package/mod_json_type.ps1 +82 -82
- package/package.json +16 -16
- package/supabase.types.ts +1836 -1596
- package/types.ts +34 -6
package/dist/supabase.types.d.ts
CHANGED
|
@@ -29,6 +29,39 @@ export type Database = {
|
|
|
29
29
|
};
|
|
30
30
|
public: {
|
|
31
31
|
Tables: {
|
|
32
|
+
tbl_api_logs: {
|
|
33
|
+
Row: {
|
|
34
|
+
org_id: string;
|
|
35
|
+
path: string;
|
|
36
|
+
req: Json;
|
|
37
|
+
request_id: string;
|
|
38
|
+
res: Json;
|
|
39
|
+
status: number;
|
|
40
|
+
timestamp: string;
|
|
41
|
+
token_id: string;
|
|
42
|
+
};
|
|
43
|
+
Insert: {
|
|
44
|
+
org_id: string;
|
|
45
|
+
path: string;
|
|
46
|
+
req: Json;
|
|
47
|
+
request_id: string;
|
|
48
|
+
res: Json;
|
|
49
|
+
status: number;
|
|
50
|
+
timestamp: string;
|
|
51
|
+
token_id: string;
|
|
52
|
+
};
|
|
53
|
+
Update: {
|
|
54
|
+
org_id?: string;
|
|
55
|
+
path?: string;
|
|
56
|
+
req?: Json;
|
|
57
|
+
request_id?: string;
|
|
58
|
+
res?: Json;
|
|
59
|
+
status?: number;
|
|
60
|
+
timestamp?: string;
|
|
61
|
+
token_id?: string;
|
|
62
|
+
};
|
|
63
|
+
Relationships: [];
|
|
64
|
+
};
|
|
32
65
|
tbl_broadcast_logs: {
|
|
33
66
|
Row: {
|
|
34
67
|
broadcast_id: string;
|
|
@@ -74,35 +107,39 @@ export type Database = {
|
|
|
74
107
|
};
|
|
75
108
|
Relationships: [
|
|
76
109
|
{
|
|
77
|
-
foreignKeyName:
|
|
78
|
-
columns: [
|
|
79
|
-
|
|
80
|
-
|
|
110
|
+
foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
|
|
111
|
+
columns: ['broadcast_id'];
|
|
112
|
+
isOneToOne: false;
|
|
113
|
+
referencedRelation: 'tbl_broadcast_messages';
|
|
114
|
+
referencedColumns: ['broadcast_id'];
|
|
81
115
|
},
|
|
82
116
|
{
|
|
83
|
-
foreignKeyName:
|
|
84
|
-
columns: [
|
|
85
|
-
|
|
86
|
-
|
|
117
|
+
foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
|
|
118
|
+
columns: ['broadcast_id'];
|
|
119
|
+
isOneToOne: false;
|
|
120
|
+
referencedRelation: 'view_broadcast_logs';
|
|
121
|
+
referencedColumns: ['broadcast_id'];
|
|
87
122
|
},
|
|
88
123
|
{
|
|
89
|
-
foreignKeyName:
|
|
90
|
-
columns: [
|
|
91
|
-
|
|
92
|
-
|
|
124
|
+
foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
|
|
125
|
+
columns: ['org_id'];
|
|
126
|
+
isOneToOne: false;
|
|
127
|
+
referencedRelation: 'tbl_org';
|
|
128
|
+
referencedColumns: ['org_id'];
|
|
93
129
|
},
|
|
94
130
|
{
|
|
95
|
-
foreignKeyName:
|
|
96
|
-
columns: [
|
|
97
|
-
|
|
98
|
-
|
|
131
|
+
foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
|
|
132
|
+
columns: ['org_id'];
|
|
133
|
+
isOneToOne: false;
|
|
134
|
+
referencedRelation: 'view_org';
|
|
135
|
+
referencedColumns: ['org_id'];
|
|
99
136
|
}
|
|
100
137
|
];
|
|
101
138
|
};
|
|
102
139
|
tbl_broadcast_messages: {
|
|
103
140
|
Row: {
|
|
104
141
|
broadcast_id: string;
|
|
105
|
-
broadcast_status:
|
|
142
|
+
broadcast_status: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
106
143
|
chat_ids: string[] | null;
|
|
107
144
|
created_at: string;
|
|
108
145
|
message_payload: Json | null;
|
|
@@ -111,10 +148,11 @@ export type Database = {
|
|
|
111
148
|
performed_at: string | null;
|
|
112
149
|
performed_by: string | null;
|
|
113
150
|
scheduled_at: string | null;
|
|
151
|
+
variables: Json | null;
|
|
114
152
|
};
|
|
115
153
|
Insert: {
|
|
116
154
|
broadcast_id?: string;
|
|
117
|
-
broadcast_status?:
|
|
155
|
+
broadcast_status?: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
118
156
|
chat_ids?: string[] | null;
|
|
119
157
|
created_at?: string;
|
|
120
158
|
message_payload?: Json | null;
|
|
@@ -123,10 +161,11 @@ export type Database = {
|
|
|
123
161
|
performed_at?: string | null;
|
|
124
162
|
performed_by?: string | null;
|
|
125
163
|
scheduled_at?: string | null;
|
|
164
|
+
variables?: Json | null;
|
|
126
165
|
};
|
|
127
166
|
Update: {
|
|
128
167
|
broadcast_id?: string;
|
|
129
|
-
broadcast_status?:
|
|
168
|
+
broadcast_status?: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
130
169
|
chat_ids?: string[] | null;
|
|
131
170
|
created_at?: string;
|
|
132
171
|
message_payload?: Json | null;
|
|
@@ -135,19 +174,22 @@ export type Database = {
|
|
|
135
174
|
performed_at?: string | null;
|
|
136
175
|
performed_by?: string | null;
|
|
137
176
|
scheduled_at?: string | null;
|
|
177
|
+
variables?: Json | null;
|
|
138
178
|
};
|
|
139
179
|
Relationships: [
|
|
140
180
|
{
|
|
141
|
-
foreignKeyName:
|
|
142
|
-
columns: [
|
|
143
|
-
|
|
144
|
-
|
|
181
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
182
|
+
columns: ['org_id'];
|
|
183
|
+
isOneToOne: false;
|
|
184
|
+
referencedRelation: 'tbl_org';
|
|
185
|
+
referencedColumns: ['org_id'];
|
|
145
186
|
},
|
|
146
187
|
{
|
|
147
|
-
foreignKeyName:
|
|
148
|
-
columns: [
|
|
149
|
-
|
|
150
|
-
|
|
188
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
189
|
+
columns: ['org_id'];
|
|
190
|
+
isOneToOne: false;
|
|
191
|
+
referencedRelation: 'view_org';
|
|
192
|
+
referencedColumns: ['org_id'];
|
|
151
193
|
}
|
|
152
194
|
];
|
|
153
195
|
};
|
|
@@ -159,6 +201,7 @@ export type Database = {
|
|
|
159
201
|
template_id: string;
|
|
160
202
|
template_name: string | null;
|
|
161
203
|
updated_at: string | null;
|
|
204
|
+
variable_names: Json | null;
|
|
162
205
|
};
|
|
163
206
|
Insert: {
|
|
164
207
|
created_at?: string;
|
|
@@ -167,6 +210,7 @@ export type Database = {
|
|
|
167
210
|
template_id?: string;
|
|
168
211
|
template_name?: string | null;
|
|
169
212
|
updated_at?: string | null;
|
|
213
|
+
variable_names?: Json | null;
|
|
170
214
|
};
|
|
171
215
|
Update: {
|
|
172
216
|
created_at?: string;
|
|
@@ -175,19 +219,22 @@ export type Database = {
|
|
|
175
219
|
template_id?: string;
|
|
176
220
|
template_name?: string | null;
|
|
177
221
|
updated_at?: string | null;
|
|
222
|
+
variable_names?: Json | null;
|
|
178
223
|
};
|
|
179
224
|
Relationships: [
|
|
180
225
|
{
|
|
181
|
-
foreignKeyName:
|
|
182
|
-
columns: [
|
|
183
|
-
|
|
184
|
-
|
|
226
|
+
foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
|
|
227
|
+
columns: ['org_id'];
|
|
228
|
+
isOneToOne: false;
|
|
229
|
+
referencedRelation: 'tbl_org';
|
|
230
|
+
referencedColumns: ['org_id'];
|
|
185
231
|
},
|
|
186
232
|
{
|
|
187
|
-
foreignKeyName:
|
|
188
|
-
columns: [
|
|
189
|
-
|
|
190
|
-
|
|
233
|
+
foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
|
|
234
|
+
columns: ['org_id'];
|
|
235
|
+
isOneToOne: false;
|
|
236
|
+
referencedRelation: 'view_org';
|
|
237
|
+
referencedColumns: ['org_id'];
|
|
191
238
|
}
|
|
192
239
|
];
|
|
193
240
|
};
|
|
@@ -221,10 +268,11 @@ export type Database = {
|
|
|
221
268
|
};
|
|
222
269
|
Relationships: [
|
|
223
270
|
{
|
|
224
|
-
foreignKeyName:
|
|
225
|
-
columns: [
|
|
226
|
-
|
|
227
|
-
|
|
271
|
+
foreignKeyName: 'tbl_chat_access_org_id_email_fkey';
|
|
272
|
+
columns: ['org_id', 'email'];
|
|
273
|
+
isOneToOne: false;
|
|
274
|
+
referencedRelation: 'tbl_org_members';
|
|
275
|
+
referencedColumns: ['org_id', 'email'];
|
|
228
276
|
}
|
|
229
277
|
];
|
|
230
278
|
};
|
|
@@ -381,10 +429,11 @@ export type Database = {
|
|
|
381
429
|
};
|
|
382
430
|
Relationships: [
|
|
383
431
|
{
|
|
384
|
-
foreignKeyName:
|
|
385
|
-
columns: [
|
|
386
|
-
|
|
387
|
-
|
|
432
|
+
foreignKeyName: 'tbl_chat_messages_parent_fkey_tbl_org_phones';
|
|
433
|
+
columns: ['org_phone', 'org_id'];
|
|
434
|
+
isOneToOne: false;
|
|
435
|
+
referencedRelation: 'tbl_org_phones';
|
|
436
|
+
referencedColumns: ['org_phone', 'org_id'];
|
|
388
437
|
}
|
|
389
438
|
];
|
|
390
439
|
};
|
|
@@ -430,10 +479,11 @@ export type Database = {
|
|
|
430
479
|
};
|
|
431
480
|
Relationships: [
|
|
432
481
|
{
|
|
433
|
-
foreignKeyName:
|
|
434
|
-
columns: [
|
|
435
|
-
|
|
436
|
-
|
|
482
|
+
foreignKeyName: 'tbl_chat_notifications_fkey_tbl_org_phones';
|
|
483
|
+
columns: ['org_id', 'org_phone'];
|
|
484
|
+
isOneToOne: false;
|
|
485
|
+
referencedRelation: 'tbl_org_phones';
|
|
486
|
+
referencedColumns: ['org_id', 'org_phone'];
|
|
437
487
|
}
|
|
438
488
|
];
|
|
439
489
|
};
|
|
@@ -467,10 +517,11 @@ export type Database = {
|
|
|
467
517
|
};
|
|
468
518
|
Relationships: [
|
|
469
519
|
{
|
|
470
|
-
foreignKeyName:
|
|
471
|
-
columns: [
|
|
472
|
-
|
|
473
|
-
|
|
520
|
+
foreignKeyName: 'tbl_chat_participants_fkey_tbl_chats';
|
|
521
|
+
columns: ['org_id', 'org_phone', 'chat_id'];
|
|
522
|
+
isOneToOne: false;
|
|
523
|
+
referencedRelation: 'tbl_chats';
|
|
524
|
+
referencedColumns: ['org_id', 'org_phone', 'chat_id'];
|
|
474
525
|
}
|
|
475
526
|
];
|
|
476
527
|
};
|
|
@@ -555,10 +606,11 @@ export type Database = {
|
|
|
555
606
|
};
|
|
556
607
|
Relationships: [
|
|
557
608
|
{
|
|
558
|
-
foreignKeyName:
|
|
559
|
-
columns: [
|
|
560
|
-
|
|
561
|
-
|
|
609
|
+
foreignKeyName: 'tbl_chat_reactions_fkey_tbl_org_phones';
|
|
610
|
+
columns: ['org_id', 'org_phone'];
|
|
611
|
+
isOneToOne: false;
|
|
612
|
+
referencedRelation: 'tbl_org_phones';
|
|
613
|
+
referencedColumns: ['org_id', 'org_phone'];
|
|
562
614
|
}
|
|
563
615
|
];
|
|
564
616
|
};
|
|
@@ -567,6 +619,7 @@ export type Database = {
|
|
|
567
619
|
assigned_by: string | null;
|
|
568
620
|
assignee: string | null;
|
|
569
621
|
chat_id: string;
|
|
622
|
+
closed_at: string | null;
|
|
570
623
|
created_at: string;
|
|
571
624
|
due_date: string | null;
|
|
572
625
|
hubspot_metadata: Json | null;
|
|
@@ -577,14 +630,16 @@ export type Database = {
|
|
|
577
630
|
priority: number | null;
|
|
578
631
|
quoted_message_id: string | null;
|
|
579
632
|
raised_by: string | null;
|
|
580
|
-
status: Database[
|
|
633
|
+
status: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
581
634
|
subject: string;
|
|
582
635
|
ticket_id: string;
|
|
636
|
+
ticket_metadata: Json | null;
|
|
583
637
|
};
|
|
584
638
|
Insert: {
|
|
585
639
|
assigned_by?: string | null;
|
|
586
640
|
assignee?: string | null;
|
|
587
641
|
chat_id: string;
|
|
642
|
+
closed_at?: string | null;
|
|
588
643
|
created_at?: string;
|
|
589
644
|
due_date?: string | null;
|
|
590
645
|
hubspot_metadata?: Json | null;
|
|
@@ -595,14 +650,16 @@ export type Database = {
|
|
|
595
650
|
priority?: number | null;
|
|
596
651
|
quoted_message_id?: string | null;
|
|
597
652
|
raised_by?: string | null;
|
|
598
|
-
status?: Database[
|
|
653
|
+
status?: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
599
654
|
subject: string;
|
|
600
655
|
ticket_id?: string;
|
|
656
|
+
ticket_metadata?: Json | null;
|
|
601
657
|
};
|
|
602
658
|
Update: {
|
|
603
659
|
assigned_by?: string | null;
|
|
604
660
|
assignee?: string | null;
|
|
605
661
|
chat_id?: string;
|
|
662
|
+
closed_at?: string | null;
|
|
606
663
|
created_at?: string;
|
|
607
664
|
due_date?: string | null;
|
|
608
665
|
hubspot_metadata?: Json | null;
|
|
@@ -613,22 +670,25 @@ export type Database = {
|
|
|
613
670
|
priority?: number | null;
|
|
614
671
|
quoted_message_id?: string | null;
|
|
615
672
|
raised_by?: string | null;
|
|
616
|
-
status?: Database[
|
|
673
|
+
status?: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
617
674
|
subject?: string;
|
|
618
675
|
ticket_id?: string;
|
|
676
|
+
ticket_metadata?: Json | null;
|
|
619
677
|
};
|
|
620
678
|
Relationships: [
|
|
621
679
|
{
|
|
622
|
-
foreignKeyName:
|
|
623
|
-
columns: [
|
|
624
|
-
|
|
625
|
-
|
|
680
|
+
foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
|
|
681
|
+
columns: ['org_id'];
|
|
682
|
+
isOneToOne: false;
|
|
683
|
+
referencedRelation: 'tbl_org';
|
|
684
|
+
referencedColumns: ['org_id'];
|
|
626
685
|
},
|
|
627
686
|
{
|
|
628
|
-
foreignKeyName:
|
|
629
|
-
columns: [
|
|
630
|
-
|
|
631
|
-
|
|
687
|
+
foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
|
|
688
|
+
columns: ['org_id'];
|
|
689
|
+
isOneToOne: false;
|
|
690
|
+
referencedRelation: 'view_org';
|
|
691
|
+
referencedColumns: ['org_id'];
|
|
632
692
|
}
|
|
633
693
|
];
|
|
634
694
|
};
|
|
@@ -707,17 +767,18 @@ export type Database = {
|
|
|
707
767
|
};
|
|
708
768
|
Relationships: [
|
|
709
769
|
{
|
|
710
|
-
foreignKeyName:
|
|
711
|
-
columns: [
|
|
712
|
-
|
|
713
|
-
|
|
770
|
+
foreignKeyName: 'tbl_chats_fkey_tbl_org_phones';
|
|
771
|
+
columns: ['org_phone', 'org_id'];
|
|
772
|
+
isOneToOne: false;
|
|
773
|
+
referencedRelation: 'tbl_org_phones';
|
|
774
|
+
referencedColumns: ['org_phone', 'org_id'];
|
|
714
775
|
}
|
|
715
776
|
];
|
|
716
777
|
};
|
|
717
778
|
tbl_contacts: {
|
|
718
779
|
Row: {
|
|
719
780
|
business_profile: Json | null;
|
|
720
|
-
contact_color: Database[
|
|
781
|
+
contact_color: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
721
782
|
contact_id: string;
|
|
722
783
|
contact_image: string | null;
|
|
723
784
|
contact_name: string | null;
|
|
@@ -744,7 +805,7 @@ export type Database = {
|
|
|
744
805
|
};
|
|
745
806
|
Insert: {
|
|
746
807
|
business_profile?: Json | null;
|
|
747
|
-
contact_color?: Database[
|
|
808
|
+
contact_color?: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
748
809
|
contact_id: string;
|
|
749
810
|
contact_image?: string | null;
|
|
750
811
|
contact_name?: string | null;
|
|
@@ -771,7 +832,7 @@ export type Database = {
|
|
|
771
832
|
};
|
|
772
833
|
Update: {
|
|
773
834
|
business_profile?: Json | null;
|
|
774
|
-
contact_color?: Database[
|
|
835
|
+
contact_color?: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
775
836
|
contact_id?: string;
|
|
776
837
|
contact_image?: string | null;
|
|
777
838
|
contact_name?: string | null;
|
|
@@ -798,16 +859,18 @@ export type Database = {
|
|
|
798
859
|
};
|
|
799
860
|
Relationships: [
|
|
800
861
|
{
|
|
801
|
-
foreignKeyName:
|
|
802
|
-
columns: [
|
|
803
|
-
|
|
804
|
-
|
|
862
|
+
foreignKeyName: 'tbl_contacts_org_id_fkey';
|
|
863
|
+
columns: ['org_id'];
|
|
864
|
+
isOneToOne: false;
|
|
865
|
+
referencedRelation: 'tbl_org';
|
|
866
|
+
referencedColumns: ['org_id'];
|
|
805
867
|
},
|
|
806
868
|
{
|
|
807
|
-
foreignKeyName:
|
|
808
|
-
columns: [
|
|
809
|
-
|
|
810
|
-
|
|
869
|
+
foreignKeyName: 'tbl_contacts_org_id_fkey';
|
|
870
|
+
columns: ['org_id'];
|
|
871
|
+
isOneToOne: false;
|
|
872
|
+
referencedRelation: 'view_org';
|
|
873
|
+
referencedColumns: ['org_id'];
|
|
811
874
|
}
|
|
812
875
|
];
|
|
813
876
|
};
|
|
@@ -844,16 +907,18 @@ export type Database = {
|
|
|
844
907
|
};
|
|
845
908
|
Relationships: [
|
|
846
909
|
{
|
|
847
|
-
foreignKeyName:
|
|
848
|
-
columns: [
|
|
849
|
-
|
|
850
|
-
|
|
910
|
+
foreignKeyName: 'tbl_custom_properties_org_id_fkey';
|
|
911
|
+
columns: ['org_id'];
|
|
912
|
+
isOneToOne: false;
|
|
913
|
+
referencedRelation: 'tbl_org';
|
|
914
|
+
referencedColumns: ['org_id'];
|
|
851
915
|
},
|
|
852
916
|
{
|
|
853
|
-
foreignKeyName:
|
|
854
|
-
columns: [
|
|
855
|
-
|
|
856
|
-
|
|
917
|
+
foreignKeyName: 'tbl_custom_properties_org_id_fkey';
|
|
918
|
+
columns: ['org_id'];
|
|
919
|
+
isOneToOne: false;
|
|
920
|
+
referencedRelation: 'view_org';
|
|
921
|
+
referencedColumns: ['org_id'];
|
|
857
922
|
}
|
|
858
923
|
];
|
|
859
924
|
};
|
|
@@ -863,49 +928,51 @@ export type Database = {
|
|
|
863
928
|
id: string;
|
|
864
929
|
integration_id: string | null;
|
|
865
930
|
integration_metadata: Json;
|
|
866
|
-
integration_name: Database[
|
|
931
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
867
932
|
integration_type: string;
|
|
868
933
|
is_subscribed: boolean;
|
|
869
934
|
org_id: string;
|
|
870
935
|
subscribed_at: string;
|
|
871
|
-
type: Database[
|
|
936
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
872
937
|
};
|
|
873
938
|
Insert: {
|
|
874
939
|
hook_url: string;
|
|
875
940
|
id?: string;
|
|
876
941
|
integration_id?: string | null;
|
|
877
942
|
integration_metadata: Json;
|
|
878
|
-
integration_name: Database[
|
|
943
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
879
944
|
integration_type: string;
|
|
880
945
|
is_subscribed: boolean;
|
|
881
946
|
org_id: string;
|
|
882
947
|
subscribed_at?: string;
|
|
883
|
-
type: Database[
|
|
948
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
884
949
|
};
|
|
885
950
|
Update: {
|
|
886
951
|
hook_url?: string;
|
|
887
952
|
id?: string;
|
|
888
953
|
integration_id?: string | null;
|
|
889
954
|
integration_metadata?: Json;
|
|
890
|
-
integration_name?: Database[
|
|
955
|
+
integration_name?: Database['public']['Enums']['enum_integration_name'];
|
|
891
956
|
integration_type?: string;
|
|
892
957
|
is_subscribed?: boolean;
|
|
893
958
|
org_id?: string;
|
|
894
959
|
subscribed_at?: string;
|
|
895
|
-
type?: Database[
|
|
960
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
896
961
|
};
|
|
897
962
|
Relationships: [
|
|
898
963
|
{
|
|
899
|
-
foreignKeyName:
|
|
900
|
-
columns: [
|
|
901
|
-
|
|
902
|
-
|
|
964
|
+
foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
|
|
965
|
+
columns: ['org_id'];
|
|
966
|
+
isOneToOne: false;
|
|
967
|
+
referencedRelation: 'tbl_org';
|
|
968
|
+
referencedColumns: ['org_id'];
|
|
903
969
|
},
|
|
904
970
|
{
|
|
905
|
-
foreignKeyName:
|
|
906
|
-
columns: [
|
|
907
|
-
|
|
908
|
-
|
|
971
|
+
foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
|
|
972
|
+
columns: ['org_id'];
|
|
973
|
+
isOneToOne: false;
|
|
974
|
+
referencedRelation: 'view_org';
|
|
975
|
+
referencedColumns: ['org_id'];
|
|
909
976
|
}
|
|
910
977
|
];
|
|
911
978
|
};
|
|
@@ -913,48 +980,50 @@ export type Database = {
|
|
|
913
980
|
Row: {
|
|
914
981
|
created_at: string;
|
|
915
982
|
id: string;
|
|
916
|
-
integration_name: Database[
|
|
983
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
917
984
|
integration_type: string;
|
|
918
985
|
metadata: Json;
|
|
919
986
|
org_id: string;
|
|
920
987
|
response: Json | null;
|
|
921
988
|
success: boolean;
|
|
922
|
-
type: Database[
|
|
989
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
923
990
|
};
|
|
924
991
|
Insert: {
|
|
925
992
|
created_at?: string;
|
|
926
993
|
id?: string;
|
|
927
|
-
integration_name: Database[
|
|
994
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
928
995
|
integration_type: string;
|
|
929
996
|
metadata?: Json;
|
|
930
997
|
org_id: string;
|
|
931
998
|
response?: Json | null;
|
|
932
999
|
success?: boolean;
|
|
933
|
-
type: Database[
|
|
1000
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
934
1001
|
};
|
|
935
1002
|
Update: {
|
|
936
1003
|
created_at?: string;
|
|
937
1004
|
id?: string;
|
|
938
|
-
integration_name?: Database[
|
|
1005
|
+
integration_name?: Database['public']['Enums']['enum_integration_name'];
|
|
939
1006
|
integration_type?: string;
|
|
940
1007
|
metadata?: Json;
|
|
941
1008
|
org_id?: string;
|
|
942
1009
|
response?: Json | null;
|
|
943
1010
|
success?: boolean;
|
|
944
|
-
type?: Database[
|
|
1011
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
945
1012
|
};
|
|
946
1013
|
Relationships: [
|
|
947
1014
|
{
|
|
948
|
-
foreignKeyName:
|
|
949
|
-
columns: [
|
|
950
|
-
|
|
951
|
-
|
|
1015
|
+
foreignKeyName: 'tbl_integration_logs_org_id_fkey';
|
|
1016
|
+
columns: ['org_id'];
|
|
1017
|
+
isOneToOne: false;
|
|
1018
|
+
referencedRelation: 'tbl_org';
|
|
1019
|
+
referencedColumns: ['org_id'];
|
|
952
1020
|
},
|
|
953
1021
|
{
|
|
954
|
-
foreignKeyName:
|
|
955
|
-
columns: [
|
|
956
|
-
|
|
957
|
-
|
|
1022
|
+
foreignKeyName: 'tbl_integration_logs_org_id_fkey';
|
|
1023
|
+
columns: ['org_id'];
|
|
1024
|
+
isOneToOne: false;
|
|
1025
|
+
referencedRelation: 'view_org';
|
|
1026
|
+
referencedColumns: ['org_id'];
|
|
958
1027
|
}
|
|
959
1028
|
];
|
|
960
1029
|
};
|
|
@@ -969,7 +1038,7 @@ export type Database = {
|
|
|
969
1038
|
role: string;
|
|
970
1039
|
token: string;
|
|
971
1040
|
token_metadata: Json | null;
|
|
972
|
-
type: Database[
|
|
1041
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
973
1042
|
};
|
|
974
1043
|
Insert: {
|
|
975
1044
|
exp: string;
|
|
@@ -981,7 +1050,7 @@ export type Database = {
|
|
|
981
1050
|
role: string;
|
|
982
1051
|
token: string;
|
|
983
1052
|
token_metadata?: Json | null;
|
|
984
|
-
type: Database[
|
|
1053
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
985
1054
|
};
|
|
986
1055
|
Update: {
|
|
987
1056
|
exp?: string;
|
|
@@ -993,20 +1062,22 @@ export type Database = {
|
|
|
993
1062
|
role?: string;
|
|
994
1063
|
token?: string;
|
|
995
1064
|
token_metadata?: Json | null;
|
|
996
|
-
type?: Database[
|
|
1065
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
997
1066
|
};
|
|
998
1067
|
Relationships: [
|
|
999
1068
|
{
|
|
1000
|
-
foreignKeyName:
|
|
1001
|
-
columns: [
|
|
1002
|
-
|
|
1003
|
-
|
|
1069
|
+
foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
|
|
1070
|
+
columns: ['org_id'];
|
|
1071
|
+
isOneToOne: false;
|
|
1072
|
+
referencedRelation: 'tbl_org';
|
|
1073
|
+
referencedColumns: ['org_id'];
|
|
1004
1074
|
},
|
|
1005
1075
|
{
|
|
1006
|
-
foreignKeyName:
|
|
1007
|
-
columns: [
|
|
1008
|
-
|
|
1009
|
-
|
|
1076
|
+
foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
|
|
1077
|
+
columns: ['org_id'];
|
|
1078
|
+
isOneToOne: false;
|
|
1079
|
+
referencedRelation: 'view_org';
|
|
1080
|
+
referencedColumns: ['org_id'];
|
|
1010
1081
|
}
|
|
1011
1082
|
];
|
|
1012
1083
|
};
|
|
@@ -1076,16 +1147,18 @@ export type Database = {
|
|
|
1076
1147
|
};
|
|
1077
1148
|
Relationships: [
|
|
1078
1149
|
{
|
|
1079
|
-
foreignKeyName:
|
|
1080
|
-
columns: [
|
|
1081
|
-
|
|
1082
|
-
|
|
1150
|
+
foreignKeyName: 'tbl_org_labels_org_id_fkey';
|
|
1151
|
+
columns: ['org_id'];
|
|
1152
|
+
isOneToOne: false;
|
|
1153
|
+
referencedRelation: 'tbl_org';
|
|
1154
|
+
referencedColumns: ['org_id'];
|
|
1083
1155
|
},
|
|
1084
1156
|
{
|
|
1085
|
-
foreignKeyName:
|
|
1086
|
-
columns: [
|
|
1087
|
-
|
|
1088
|
-
|
|
1157
|
+
foreignKeyName: 'tbl_org_labels_org_id_fkey';
|
|
1158
|
+
columns: ['org_id'];
|
|
1159
|
+
isOneToOne: false;
|
|
1160
|
+
referencedRelation: 'view_org';
|
|
1161
|
+
referencedColumns: ['org_id'];
|
|
1089
1162
|
}
|
|
1090
1163
|
];
|
|
1091
1164
|
};
|
|
@@ -1098,13 +1171,13 @@ export type Database = {
|
|
|
1098
1171
|
is_active: boolean;
|
|
1099
1172
|
is_owner: boolean | null;
|
|
1100
1173
|
label_ids: string[] | null;
|
|
1101
|
-
member_color: Database[
|
|
1174
|
+
member_color: Database['public']['Enums']['enum_chat_colors'];
|
|
1102
1175
|
member_image: string | null;
|
|
1103
1176
|
member_name: string | null;
|
|
1104
1177
|
org_id: string;
|
|
1105
1178
|
org_phones: string[] | null;
|
|
1106
1179
|
preferences: Json;
|
|
1107
|
-
role: Database[
|
|
1180
|
+
role: Database['public']['Enums']['enum_member_role'];
|
|
1108
1181
|
user_id: string | null;
|
|
1109
1182
|
};
|
|
1110
1183
|
Insert: {
|
|
@@ -1115,13 +1188,13 @@ export type Database = {
|
|
|
1115
1188
|
is_active?: boolean;
|
|
1116
1189
|
is_owner?: boolean | null;
|
|
1117
1190
|
label_ids?: string[] | null;
|
|
1118
|
-
member_color?: Database[
|
|
1191
|
+
member_color?: Database['public']['Enums']['enum_chat_colors'];
|
|
1119
1192
|
member_image?: string | null;
|
|
1120
1193
|
member_name?: string | null;
|
|
1121
1194
|
org_id: string;
|
|
1122
1195
|
org_phones?: string[] | null;
|
|
1123
1196
|
preferences?: Json;
|
|
1124
|
-
role?: Database[
|
|
1197
|
+
role?: Database['public']['Enums']['enum_member_role'];
|
|
1125
1198
|
user_id?: string | null;
|
|
1126
1199
|
};
|
|
1127
1200
|
Update: {
|
|
@@ -1132,33 +1205,36 @@ export type Database = {
|
|
|
1132
1205
|
is_active?: boolean;
|
|
1133
1206
|
is_owner?: boolean | null;
|
|
1134
1207
|
label_ids?: string[] | null;
|
|
1135
|
-
member_color?: Database[
|
|
1208
|
+
member_color?: Database['public']['Enums']['enum_chat_colors'];
|
|
1136
1209
|
member_image?: string | null;
|
|
1137
1210
|
member_name?: string | null;
|
|
1138
1211
|
org_id?: string;
|
|
1139
1212
|
org_phones?: string[] | null;
|
|
1140
1213
|
preferences?: Json;
|
|
1141
|
-
role?: Database[
|
|
1214
|
+
role?: Database['public']['Enums']['enum_member_role'];
|
|
1142
1215
|
user_id?: string | null;
|
|
1143
1216
|
};
|
|
1144
1217
|
Relationships: [
|
|
1145
1218
|
{
|
|
1146
|
-
foreignKeyName:
|
|
1147
|
-
columns: [
|
|
1148
|
-
|
|
1149
|
-
|
|
1219
|
+
foreignKeyName: 'tbl_org_members_fkey_auth_users';
|
|
1220
|
+
columns: ['user_id'];
|
|
1221
|
+
isOneToOne: false;
|
|
1222
|
+
referencedRelation: 'users';
|
|
1223
|
+
referencedColumns: ['id'];
|
|
1150
1224
|
},
|
|
1151
1225
|
{
|
|
1152
|
-
foreignKeyName:
|
|
1153
|
-
columns: [
|
|
1154
|
-
|
|
1155
|
-
|
|
1226
|
+
foreignKeyName: 'tbl_org_members_fkey_tbl_org';
|
|
1227
|
+
columns: ['org_id'];
|
|
1228
|
+
isOneToOne: false;
|
|
1229
|
+
referencedRelation: 'tbl_org';
|
|
1230
|
+
referencedColumns: ['org_id'];
|
|
1156
1231
|
},
|
|
1157
1232
|
{
|
|
1158
|
-
foreignKeyName:
|
|
1159
|
-
columns: [
|
|
1160
|
-
|
|
1161
|
-
|
|
1233
|
+
foreignKeyName: 'tbl_org_members_fkey_tbl_org';
|
|
1234
|
+
columns: ['org_id'];
|
|
1235
|
+
isOneToOne: false;
|
|
1236
|
+
referencedRelation: 'view_org';
|
|
1237
|
+
referencedColumns: ['org_id'];
|
|
1162
1238
|
}
|
|
1163
1239
|
];
|
|
1164
1240
|
};
|
|
@@ -1176,6 +1252,7 @@ export type Database = {
|
|
|
1176
1252
|
phone_name: string | null;
|
|
1177
1253
|
phone_state: Json | null;
|
|
1178
1254
|
qr_code: string | null;
|
|
1255
|
+
server_image: string | null;
|
|
1179
1256
|
server_ip: string | null;
|
|
1180
1257
|
updated_at: string | null;
|
|
1181
1258
|
wa_state: string | null;
|
|
@@ -1194,6 +1271,7 @@ export type Database = {
|
|
|
1194
1271
|
phone_name?: string | null;
|
|
1195
1272
|
phone_state?: Json | null;
|
|
1196
1273
|
qr_code?: string | null;
|
|
1274
|
+
server_image?: string | null;
|
|
1197
1275
|
server_ip?: string | null;
|
|
1198
1276
|
updated_at?: string | null;
|
|
1199
1277
|
wa_state?: string | null;
|
|
@@ -1212,6 +1290,7 @@ export type Database = {
|
|
|
1212
1290
|
phone_name?: string | null;
|
|
1213
1291
|
phone_state?: Json | null;
|
|
1214
1292
|
qr_code?: string | null;
|
|
1293
|
+
server_image?: string | null;
|
|
1215
1294
|
server_ip?: string | null;
|
|
1216
1295
|
updated_at?: string | null;
|
|
1217
1296
|
wa_state?: string | null;
|
|
@@ -1219,28 +1298,32 @@ export type Database = {
|
|
|
1219
1298
|
};
|
|
1220
1299
|
Relationships: [
|
|
1221
1300
|
{
|
|
1222
|
-
foreignKeyName:
|
|
1223
|
-
columns: [
|
|
1224
|
-
|
|
1225
|
-
|
|
1301
|
+
foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
|
|
1302
|
+
columns: ['org_id'];
|
|
1303
|
+
isOneToOne: false;
|
|
1304
|
+
referencedRelation: 'tbl_org';
|
|
1305
|
+
referencedColumns: ['org_id'];
|
|
1226
1306
|
},
|
|
1227
1307
|
{
|
|
1228
|
-
foreignKeyName:
|
|
1229
|
-
columns: [
|
|
1230
|
-
|
|
1231
|
-
|
|
1308
|
+
foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
|
|
1309
|
+
columns: ['org_id'];
|
|
1310
|
+
isOneToOne: false;
|
|
1311
|
+
referencedRelation: 'view_org';
|
|
1312
|
+
referencedColumns: ['org_id'];
|
|
1232
1313
|
},
|
|
1233
1314
|
{
|
|
1234
|
-
foreignKeyName:
|
|
1235
|
-
columns: [
|
|
1236
|
-
|
|
1237
|
-
|
|
1315
|
+
foreignKeyName: 'tbl_org_phones_org_id_fkey';
|
|
1316
|
+
columns: ['org_id'];
|
|
1317
|
+
isOneToOne: false;
|
|
1318
|
+
referencedRelation: 'tbl_org';
|
|
1319
|
+
referencedColumns: ['org_id'];
|
|
1238
1320
|
},
|
|
1239
1321
|
{
|
|
1240
|
-
foreignKeyName:
|
|
1241
|
-
columns: [
|
|
1242
|
-
|
|
1243
|
-
|
|
1322
|
+
foreignKeyName: 'tbl_org_phones_org_id_fkey';
|
|
1323
|
+
columns: ['org_id'];
|
|
1324
|
+
isOneToOne: false;
|
|
1325
|
+
referencedRelation: 'view_org';
|
|
1326
|
+
referencedColumns: ['org_id'];
|
|
1244
1327
|
}
|
|
1245
1328
|
];
|
|
1246
1329
|
};
|
|
@@ -1268,16 +1351,18 @@ export type Database = {
|
|
|
1268
1351
|
};
|
|
1269
1352
|
Relationships: [
|
|
1270
1353
|
{
|
|
1271
|
-
foreignKeyName:
|
|
1272
|
-
columns: [
|
|
1273
|
-
|
|
1274
|
-
|
|
1354
|
+
foreignKeyName: 'tbl_quick_replies_org_id_fkey';
|
|
1355
|
+
columns: ['org_id'];
|
|
1356
|
+
isOneToOne: false;
|
|
1357
|
+
referencedRelation: 'tbl_org';
|
|
1358
|
+
referencedColumns: ['org_id'];
|
|
1275
1359
|
},
|
|
1276
1360
|
{
|
|
1277
|
-
foreignKeyName:
|
|
1278
|
-
columns: [
|
|
1279
|
-
|
|
1280
|
-
|
|
1361
|
+
foreignKeyName: 'tbl_quick_replies_org_id_fkey';
|
|
1362
|
+
columns: ['org_id'];
|
|
1363
|
+
isOneToOne: false;
|
|
1364
|
+
referencedRelation: 'view_org';
|
|
1365
|
+
referencedColumns: ['org_id'];
|
|
1281
1366
|
}
|
|
1282
1367
|
];
|
|
1283
1368
|
};
|
|
@@ -1310,6 +1395,7 @@ export type Database = {
|
|
|
1310
1395
|
view_broadcast_logs: {
|
|
1311
1396
|
Row: {
|
|
1312
1397
|
broadcast_id: string | null;
|
|
1398
|
+
broadcast_status: Database['public']['Enums']['enum_broadcast_status'] | null;
|
|
1313
1399
|
created_at: string | null;
|
|
1314
1400
|
delivery_percentage: number | null;
|
|
1315
1401
|
failed_chats: number | null;
|
|
@@ -1328,16 +1414,18 @@ export type Database = {
|
|
|
1328
1414
|
};
|
|
1329
1415
|
Relationships: [
|
|
1330
1416
|
{
|
|
1331
|
-
foreignKeyName:
|
|
1332
|
-
columns: [
|
|
1333
|
-
|
|
1334
|
-
|
|
1417
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
1418
|
+
columns: ['org_id'];
|
|
1419
|
+
isOneToOne: false;
|
|
1420
|
+
referencedRelation: 'tbl_org';
|
|
1421
|
+
referencedColumns: ['org_id'];
|
|
1335
1422
|
},
|
|
1336
1423
|
{
|
|
1337
|
-
foreignKeyName:
|
|
1338
|
-
columns: [
|
|
1339
|
-
|
|
1340
|
-
|
|
1424
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
1425
|
+
columns: ['org_id'];
|
|
1426
|
+
isOneToOne: false;
|
|
1427
|
+
referencedRelation: 'view_org';
|
|
1428
|
+
referencedColumns: ['org_id'];
|
|
1341
1429
|
}
|
|
1342
1430
|
];
|
|
1343
1431
|
};
|
|
@@ -1433,6 +1521,18 @@ export type Database = {
|
|
|
1433
1521
|
};
|
|
1434
1522
|
};
|
|
1435
1523
|
Functions: {
|
|
1524
|
+
create_partition: {
|
|
1525
|
+
Args: {
|
|
1526
|
+
org_id_input: string;
|
|
1527
|
+
};
|
|
1528
|
+
Returns: boolean;
|
|
1529
|
+
};
|
|
1530
|
+
drop_partition: {
|
|
1531
|
+
Args: {
|
|
1532
|
+
org_id_input: string;
|
|
1533
|
+
};
|
|
1534
|
+
Returns: boolean;
|
|
1535
|
+
};
|
|
1436
1536
|
gen_id: {
|
|
1437
1537
|
Args: {
|
|
1438
1538
|
prefix: string;
|
|
@@ -1450,7 +1550,7 @@ export type Database = {
|
|
|
1450
1550
|
generate_access_token: {
|
|
1451
1551
|
Args: {
|
|
1452
1552
|
name_input?: string;
|
|
1453
|
-
type_input?: Database[
|
|
1553
|
+
type_input?: Database['public']['Enums']['enum_integration_type'];
|
|
1454
1554
|
org_id_input?: string;
|
|
1455
1555
|
};
|
|
1456
1556
|
Returns: Json;
|
|
@@ -1460,7 +1560,7 @@ export type Database = {
|
|
|
1460
1560
|
org_id_input?: string;
|
|
1461
1561
|
org_phone_input?: string;
|
|
1462
1562
|
token_id_input?: string;
|
|
1463
|
-
token_type_input?: Database[
|
|
1563
|
+
token_type_input?: Database['public']['Enums']['enum_integration_type'];
|
|
1464
1564
|
};
|
|
1465
1565
|
Returns: Json;
|
|
1466
1566
|
};
|
|
@@ -1469,7 +1569,7 @@ export type Database = {
|
|
|
1469
1569
|
org_id_input: string;
|
|
1470
1570
|
chat_ids_input?: string[];
|
|
1471
1571
|
};
|
|
1472
|
-
Returns:
|
|
1572
|
+
Returns: Json[];
|
|
1473
1573
|
};
|
|
1474
1574
|
get_chat_members: {
|
|
1475
1575
|
Args: {
|
|
@@ -1573,29 +1673,29 @@ export type Database = {
|
|
|
1573
1673
|
};
|
|
1574
1674
|
list_org_from_user: {
|
|
1575
1675
|
Args: Record<PropertyKey, never>;
|
|
1576
|
-
Returns:
|
|
1676
|
+
Returns: string[];
|
|
1577
1677
|
};
|
|
1578
1678
|
list_role_from_user: {
|
|
1579
1679
|
Args: Record<PropertyKey, never>;
|
|
1580
|
-
Returns: Database[
|
|
1680
|
+
Returns: Database['public']['Enums']['enum_member_role'];
|
|
1581
1681
|
};
|
|
1582
1682
|
update_labels: {
|
|
1583
1683
|
Args: {
|
|
1584
1684
|
org_id_input: string;
|
|
1585
1685
|
tbl_type: string;
|
|
1586
|
-
|
|
1587
|
-
row_id_input: string[];
|
|
1686
|
+
row_label_map: Json;
|
|
1588
1687
|
replace_labels?: boolean;
|
|
1589
1688
|
};
|
|
1590
1689
|
Returns: undefined;
|
|
1591
1690
|
};
|
|
1592
1691
|
};
|
|
1593
1692
|
Enums: {
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1693
|
+
enum_broadcast_status: 'inprogress' | 'completed' | 'stopped';
|
|
1694
|
+
enum_chat_colors: '#B4876E' | '#A5B337' | '#06CF9C' | '#25D366' | '#02A698' | '#7D9EF1' | '#007BFC' | '#5E47DE' | '#7F66FF' | '#9333EA' | '#FA6533' | '#C4532D' | '#DC2626' | '#FF2E74' | '#DB2777';
|
|
1695
|
+
enum_chat_tickets_status: 'open' | 'inprogress' | 'closed' | 'archived';
|
|
1696
|
+
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';
|
|
1697
|
+
enum_integration_type: 'zapier' | 'pabbly' | 'api' | 'webhook' | 'hubspot' | 'freshdesk' | 'slack' | 'jira' | 'salesforce';
|
|
1698
|
+
enum_member_role: 'admin' | 'member';
|
|
1599
1699
|
};
|
|
1600
1700
|
CompositeTypes: {
|
|
1601
1701
|
[_ in never]: never;
|
|
@@ -1612,6 +1712,7 @@ export type Database = {
|
|
|
1612
1712
|
id: string;
|
|
1613
1713
|
name: string;
|
|
1614
1714
|
owner: string | null;
|
|
1715
|
+
owner_id: string | null;
|
|
1615
1716
|
public: boolean | null;
|
|
1616
1717
|
updated_at: string | null;
|
|
1617
1718
|
};
|
|
@@ -1623,6 +1724,7 @@ export type Database = {
|
|
|
1623
1724
|
id: string;
|
|
1624
1725
|
name: string;
|
|
1625
1726
|
owner?: string | null;
|
|
1727
|
+
owner_id?: string | null;
|
|
1626
1728
|
public?: boolean | null;
|
|
1627
1729
|
updated_at?: string | null;
|
|
1628
1730
|
};
|
|
@@ -1634,17 +1736,11 @@ export type Database = {
|
|
|
1634
1736
|
id?: string;
|
|
1635
1737
|
name?: string;
|
|
1636
1738
|
owner?: string | null;
|
|
1739
|
+
owner_id?: string | null;
|
|
1637
1740
|
public?: boolean | null;
|
|
1638
1741
|
updated_at?: string | null;
|
|
1639
1742
|
};
|
|
1640
|
-
Relationships: [
|
|
1641
|
-
{
|
|
1642
|
-
foreignKeyName: "buckets_owner_fkey";
|
|
1643
|
-
columns: ["owner"];
|
|
1644
|
-
referencedRelation: "users";
|
|
1645
|
-
referencedColumns: ["id"];
|
|
1646
|
-
}
|
|
1647
|
-
];
|
|
1743
|
+
Relationships: [];
|
|
1648
1744
|
};
|
|
1649
1745
|
migrations: {
|
|
1650
1746
|
Row: {
|
|
@@ -1676,6 +1772,7 @@ export type Database = {
|
|
|
1676
1772
|
metadata: Json | null;
|
|
1677
1773
|
name: string | null;
|
|
1678
1774
|
owner: string | null;
|
|
1775
|
+
owner_id: string | null;
|
|
1679
1776
|
path_tokens: string[] | null;
|
|
1680
1777
|
updated_at: string | null;
|
|
1681
1778
|
version: string | null;
|
|
@@ -1688,6 +1785,7 @@ export type Database = {
|
|
|
1688
1785
|
metadata?: Json | null;
|
|
1689
1786
|
name?: string | null;
|
|
1690
1787
|
owner?: string | null;
|
|
1788
|
+
owner_id?: string | null;
|
|
1691
1789
|
path_tokens?: string[] | null;
|
|
1692
1790
|
updated_at?: string | null;
|
|
1693
1791
|
version?: string | null;
|
|
@@ -1700,16 +1798,113 @@ export type Database = {
|
|
|
1700
1798
|
metadata?: Json | null;
|
|
1701
1799
|
name?: string | null;
|
|
1702
1800
|
owner?: string | null;
|
|
1801
|
+
owner_id?: string | null;
|
|
1703
1802
|
path_tokens?: string[] | null;
|
|
1704
1803
|
updated_at?: string | null;
|
|
1705
1804
|
version?: string | null;
|
|
1706
1805
|
};
|
|
1707
1806
|
Relationships: [
|
|
1708
1807
|
{
|
|
1709
|
-
foreignKeyName:
|
|
1710
|
-
columns: [
|
|
1711
|
-
|
|
1712
|
-
|
|
1808
|
+
foreignKeyName: 'objects_bucketId_fkey';
|
|
1809
|
+
columns: ['bucket_id'];
|
|
1810
|
+
isOneToOne: false;
|
|
1811
|
+
referencedRelation: 'buckets';
|
|
1812
|
+
referencedColumns: ['id'];
|
|
1813
|
+
}
|
|
1814
|
+
];
|
|
1815
|
+
};
|
|
1816
|
+
s3_multipart_uploads: {
|
|
1817
|
+
Row: {
|
|
1818
|
+
bucket_id: string;
|
|
1819
|
+
created_at: string;
|
|
1820
|
+
id: string;
|
|
1821
|
+
in_progress_size: number;
|
|
1822
|
+
key: string;
|
|
1823
|
+
owner_id: string | null;
|
|
1824
|
+
upload_signature: string;
|
|
1825
|
+
version: string;
|
|
1826
|
+
};
|
|
1827
|
+
Insert: {
|
|
1828
|
+
bucket_id: string;
|
|
1829
|
+
created_at?: string;
|
|
1830
|
+
id: string;
|
|
1831
|
+
in_progress_size?: number;
|
|
1832
|
+
key: string;
|
|
1833
|
+
owner_id?: string | null;
|
|
1834
|
+
upload_signature: string;
|
|
1835
|
+
version: string;
|
|
1836
|
+
};
|
|
1837
|
+
Update: {
|
|
1838
|
+
bucket_id?: string;
|
|
1839
|
+
created_at?: string;
|
|
1840
|
+
id?: string;
|
|
1841
|
+
in_progress_size?: number;
|
|
1842
|
+
key?: string;
|
|
1843
|
+
owner_id?: string | null;
|
|
1844
|
+
upload_signature?: string;
|
|
1845
|
+
version?: string;
|
|
1846
|
+
};
|
|
1847
|
+
Relationships: [
|
|
1848
|
+
{
|
|
1849
|
+
foreignKeyName: 's3_multipart_uploads_bucket_id_fkey';
|
|
1850
|
+
columns: ['bucket_id'];
|
|
1851
|
+
isOneToOne: false;
|
|
1852
|
+
referencedRelation: 'buckets';
|
|
1853
|
+
referencedColumns: ['id'];
|
|
1854
|
+
}
|
|
1855
|
+
];
|
|
1856
|
+
};
|
|
1857
|
+
s3_multipart_uploads_parts: {
|
|
1858
|
+
Row: {
|
|
1859
|
+
bucket_id: string;
|
|
1860
|
+
created_at: string;
|
|
1861
|
+
etag: string;
|
|
1862
|
+
id: string;
|
|
1863
|
+
key: string;
|
|
1864
|
+
owner_id: string | null;
|
|
1865
|
+
part_number: number;
|
|
1866
|
+
size: number;
|
|
1867
|
+
upload_id: string;
|
|
1868
|
+
version: string;
|
|
1869
|
+
};
|
|
1870
|
+
Insert: {
|
|
1871
|
+
bucket_id: string;
|
|
1872
|
+
created_at?: string;
|
|
1873
|
+
etag: string;
|
|
1874
|
+
id?: string;
|
|
1875
|
+
key: string;
|
|
1876
|
+
owner_id?: string | null;
|
|
1877
|
+
part_number: number;
|
|
1878
|
+
size?: number;
|
|
1879
|
+
upload_id: string;
|
|
1880
|
+
version: string;
|
|
1881
|
+
};
|
|
1882
|
+
Update: {
|
|
1883
|
+
bucket_id?: string;
|
|
1884
|
+
created_at?: string;
|
|
1885
|
+
etag?: string;
|
|
1886
|
+
id?: string;
|
|
1887
|
+
key?: string;
|
|
1888
|
+
owner_id?: string | null;
|
|
1889
|
+
part_number?: number;
|
|
1890
|
+
size?: number;
|
|
1891
|
+
upload_id?: string;
|
|
1892
|
+
version?: string;
|
|
1893
|
+
};
|
|
1894
|
+
Relationships: [
|
|
1895
|
+
{
|
|
1896
|
+
foreignKeyName: 's3_multipart_uploads_parts_bucket_id_fkey';
|
|
1897
|
+
columns: ['bucket_id'];
|
|
1898
|
+
isOneToOne: false;
|
|
1899
|
+
referencedRelation: 'buckets';
|
|
1900
|
+
referencedColumns: ['id'];
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
foreignKeyName: 's3_multipart_uploads_parts_upload_id_fkey';
|
|
1904
|
+
columns: ['upload_id'];
|
|
1905
|
+
isOneToOne: false;
|
|
1906
|
+
referencedRelation: 's3_multipart_uploads';
|
|
1907
|
+
referencedColumns: ['id'];
|
|
1713
1908
|
}
|
|
1714
1909
|
];
|
|
1715
1910
|
};
|
|
@@ -1743,7 +1938,7 @@ export type Database = {
|
|
|
1743
1938
|
Args: {
|
|
1744
1939
|
name: string;
|
|
1745
1940
|
};
|
|
1746
|
-
Returns:
|
|
1941
|
+
Returns: string[];
|
|
1747
1942
|
};
|
|
1748
1943
|
get_size_by_bucket: {
|
|
1749
1944
|
Args: Record<PropertyKey, never>;
|
|
@@ -1752,6 +1947,37 @@ export type Database = {
|
|
|
1752
1947
|
bucket_id: string;
|
|
1753
1948
|
}[];
|
|
1754
1949
|
};
|
|
1950
|
+
list_multipart_uploads_with_delimiter: {
|
|
1951
|
+
Args: {
|
|
1952
|
+
bucket_id: string;
|
|
1953
|
+
prefix_param: string;
|
|
1954
|
+
delimiter_param: string;
|
|
1955
|
+
max_keys?: number;
|
|
1956
|
+
next_key_token?: string;
|
|
1957
|
+
next_upload_token?: string;
|
|
1958
|
+
};
|
|
1959
|
+
Returns: {
|
|
1960
|
+
key: string;
|
|
1961
|
+
id: string;
|
|
1962
|
+
created_at: string;
|
|
1963
|
+
}[];
|
|
1964
|
+
};
|
|
1965
|
+
list_objects_with_delimiter: {
|
|
1966
|
+
Args: {
|
|
1967
|
+
bucket_id: string;
|
|
1968
|
+
prefix_param: string;
|
|
1969
|
+
delimiter_param: string;
|
|
1970
|
+
max_keys?: number;
|
|
1971
|
+
start_after?: string;
|
|
1972
|
+
next_token?: string;
|
|
1973
|
+
};
|
|
1974
|
+
Returns: {
|
|
1975
|
+
name: string;
|
|
1976
|
+
id: string;
|
|
1977
|
+
metadata: Json;
|
|
1978
|
+
updated_at: string;
|
|
1979
|
+
}[];
|
|
1980
|
+
};
|
|
1755
1981
|
search: {
|
|
1756
1982
|
Args: {
|
|
1757
1983
|
prefix: string;
|
|
@@ -1781,45 +2007,45 @@ export type Database = {
|
|
|
1781
2007
|
};
|
|
1782
2008
|
};
|
|
1783
2009
|
};
|
|
1784
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
1785
|
-
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2010
|
+
type PublicSchema = Database[Extract<keyof Database, 'public'>];
|
|
2011
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) | {
|
|
1786
2012
|
schema: keyof Database;
|
|
1787
2013
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1788
2014
|
schema: keyof Database;
|
|
1789
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
2015
|
+
} ? keyof (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views']) : never = never> = PublicTableNameOrOptions extends {
|
|
1790
2016
|
schema: keyof Database;
|
|
1791
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
2017
|
+
} ? (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
|
1792
2018
|
Row: infer R;
|
|
1793
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
2019
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) ? (PublicSchema['Tables'] & PublicSchema['Views'])[PublicTableNameOrOptions] extends {
|
|
1794
2020
|
Row: infer R;
|
|
1795
2021
|
} ? R : never : never;
|
|
1796
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2022
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
|
|
1797
2023
|
schema: keyof Database;
|
|
1798
2024
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1799
2025
|
schema: keyof Database;
|
|
1800
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2026
|
+
} ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] : never = never> = PublicTableNameOrOptions extends {
|
|
1801
2027
|
schema: keyof Database;
|
|
1802
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2028
|
+
} ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
1803
2029
|
Insert: infer I;
|
|
1804
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2030
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
|
|
1805
2031
|
Insert: infer I;
|
|
1806
2032
|
} ? I : never : never;
|
|
1807
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2033
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
|
|
1808
2034
|
schema: keyof Database;
|
|
1809
2035
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1810
2036
|
schema: keyof Database;
|
|
1811
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
2037
|
+
} ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] : never = never> = PublicTableNameOrOptions extends {
|
|
1812
2038
|
schema: keyof Database;
|
|
1813
|
-
} ? Database[PublicTableNameOrOptions[
|
|
2039
|
+
} ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
1814
2040
|
Update: infer U;
|
|
1815
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
2041
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
|
|
1816
2042
|
Update: infer U;
|
|
1817
2043
|
} ? U : never : never;
|
|
1818
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
2044
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] | {
|
|
1819
2045
|
schema: keyof Database;
|
|
1820
2046
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
1821
2047
|
schema: keyof Database;
|
|
1822
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
2048
|
+
} ? keyof Database[PublicEnumNameOrOptions['schema']]['Enums'] : never = never> = PublicEnumNameOrOptions extends {
|
|
1823
2049
|
schema: keyof Database;
|
|
1824
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
2050
|
+
} ? Database[PublicEnumNameOrOptions['schema']]['Enums'][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] ? PublicSchema['Enums'][PublicEnumNameOrOptions] : never;
|
|
1825
2051
|
export {};
|