@periskope/types 0.6.77 → 0.6.80
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 +242 -273
- package/dist/types.d.ts +7 -3
- package/dist/types.js +2 -1
- package/mod_json_type.ps1 +15 -15
- package/package.json +2 -2
- package/supabase.types.ts +1581 -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
|
};
|
|
@@ -1215,6 +1182,7 @@ export type Database = {
|
|
|
1215
1182
|
Row: {
|
|
1216
1183
|
created_at: string;
|
|
1217
1184
|
first_connected_at: string | null;
|
|
1185
|
+
is_browser_open: boolean;
|
|
1218
1186
|
is_ready: boolean | null;
|
|
1219
1187
|
legacy_version: boolean | null;
|
|
1220
1188
|
org_id: string;
|
|
@@ -1232,6 +1200,7 @@ export type Database = {
|
|
|
1232
1200
|
Insert: {
|
|
1233
1201
|
created_at?: string;
|
|
1234
1202
|
first_connected_at?: string | null;
|
|
1203
|
+
is_browser_open?: boolean;
|
|
1235
1204
|
is_ready?: boolean | null;
|
|
1236
1205
|
legacy_version?: boolean | null;
|
|
1237
1206
|
org_id: string;
|
|
@@ -1249,6 +1218,7 @@ export type Database = {
|
|
|
1249
1218
|
Update: {
|
|
1250
1219
|
created_at?: string;
|
|
1251
1220
|
first_connected_at?: string | null;
|
|
1221
|
+
is_browser_open?: boolean;
|
|
1252
1222
|
is_ready?: boolean | null;
|
|
1253
1223
|
legacy_version?: boolean | null;
|
|
1254
1224
|
org_id?: string;
|
|
@@ -1265,32 +1235,28 @@ export type Database = {
|
|
|
1265
1235
|
};
|
|
1266
1236
|
Relationships: [
|
|
1267
1237
|
{
|
|
1268
|
-
foreignKeyName:
|
|
1269
|
-
columns: [
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
referencedColumns: ['org_id'];
|
|
1238
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1239
|
+
columns: ["org_id"];
|
|
1240
|
+
referencedRelation: "tbl_org";
|
|
1241
|
+
referencedColumns: ["org_id"];
|
|
1273
1242
|
},
|
|
1274
1243
|
{
|
|
1275
|
-
foreignKeyName:
|
|
1276
|
-
columns: [
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
referencedColumns: ['org_id'];
|
|
1244
|
+
foreignKeyName: "tbl_org_phones_fkey_tbl_org";
|
|
1245
|
+
columns: ["org_id"];
|
|
1246
|
+
referencedRelation: "view_org";
|
|
1247
|
+
referencedColumns: ["org_id"];
|
|
1280
1248
|
},
|
|
1281
1249
|
{
|
|
1282
|
-
foreignKeyName:
|
|
1283
|
-
columns: [
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
referencedColumns: ['org_id'];
|
|
1250
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1251
|
+
columns: ["org_id"];
|
|
1252
|
+
referencedRelation: "tbl_org";
|
|
1253
|
+
referencedColumns: ["org_id"];
|
|
1287
1254
|
},
|
|
1288
1255
|
{
|
|
1289
|
-
foreignKeyName:
|
|
1290
|
-
columns: [
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
referencedColumns: ['org_id'];
|
|
1256
|
+
foreignKeyName: "tbl_org_phones_org_id_fkey";
|
|
1257
|
+
columns: ["org_id"];
|
|
1258
|
+
referencedRelation: "view_org";
|
|
1259
|
+
referencedColumns: ["org_id"];
|
|
1294
1260
|
}
|
|
1295
1261
|
];
|
|
1296
1262
|
};
|
|
@@ -1318,18 +1284,16 @@ export type Database = {
|
|
|
1318
1284
|
};
|
|
1319
1285
|
Relationships: [
|
|
1320
1286
|
{
|
|
1321
|
-
foreignKeyName:
|
|
1322
|
-
columns: [
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
referencedColumns: ['org_id'];
|
|
1287
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1288
|
+
columns: ["org_id"];
|
|
1289
|
+
referencedRelation: "tbl_org";
|
|
1290
|
+
referencedColumns: ["org_id"];
|
|
1326
1291
|
},
|
|
1327
1292
|
{
|
|
1328
|
-
foreignKeyName:
|
|
1329
|
-
columns: [
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
referencedColumns: ['org_id'];
|
|
1293
|
+
foreignKeyName: "tbl_quick_replies_org_id_fkey";
|
|
1294
|
+
columns: ["org_id"];
|
|
1295
|
+
referencedRelation: "view_org";
|
|
1296
|
+
referencedColumns: ["org_id"];
|
|
1333
1297
|
}
|
|
1334
1298
|
];
|
|
1335
1299
|
};
|
|
@@ -1380,18 +1344,16 @@ export type Database = {
|
|
|
1380
1344
|
};
|
|
1381
1345
|
Relationships: [
|
|
1382
1346
|
{
|
|
1383
|
-
foreignKeyName:
|
|
1384
|
-
columns: [
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
referencedColumns: ['org_id'];
|
|
1347
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1348
|
+
columns: ["org_id"];
|
|
1349
|
+
referencedRelation: "tbl_org";
|
|
1350
|
+
referencedColumns: ["org_id"];
|
|
1388
1351
|
},
|
|
1389
1352
|
{
|
|
1390
|
-
foreignKeyName:
|
|
1391
|
-
columns: [
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
referencedColumns: ['org_id'];
|
|
1353
|
+
foreignKeyName: "tbl_broadcast_messages_org_id_fkey";
|
|
1354
|
+
columns: ["org_id"];
|
|
1355
|
+
referencedRelation: "view_org";
|
|
1356
|
+
referencedColumns: ["org_id"];
|
|
1395
1357
|
}
|
|
1396
1358
|
];
|
|
1397
1359
|
};
|
|
@@ -1499,7 +1461,7 @@ export type Database = {
|
|
|
1499
1461
|
generate_access_token: {
|
|
1500
1462
|
Args: {
|
|
1501
1463
|
name_input?: string;
|
|
1502
|
-
type_input?:
|
|
1464
|
+
type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1503
1465
|
org_id_input?: string;
|
|
1504
1466
|
};
|
|
1505
1467
|
Returns: Json;
|
|
@@ -1509,7 +1471,7 @@ export type Database = {
|
|
|
1509
1471
|
org_id_input?: string;
|
|
1510
1472
|
org_phone_input?: string;
|
|
1511
1473
|
token_id_input?: string;
|
|
1512
|
-
token_type_input?:
|
|
1474
|
+
token_type_input?: Database["public"]["Enums"]["enum_integration_type"];
|
|
1513
1475
|
};
|
|
1514
1476
|
Returns: Json;
|
|
1515
1477
|
};
|
|
@@ -1518,7 +1480,14 @@ export type Database = {
|
|
|
1518
1480
|
org_id_input: string;
|
|
1519
1481
|
chat_ids_input?: string[];
|
|
1520
1482
|
};
|
|
1521
|
-
Returns:
|
|
1483
|
+
Returns: unknown;
|
|
1484
|
+
};
|
|
1485
|
+
get_chat_members: {
|
|
1486
|
+
Args: {
|
|
1487
|
+
org_id_input?: string;
|
|
1488
|
+
chat_id_input?: string[];
|
|
1489
|
+
};
|
|
1490
|
+
Returns: Json;
|
|
1522
1491
|
};
|
|
1523
1492
|
get_chats: {
|
|
1524
1493
|
Args: {
|
|
@@ -1588,7 +1557,7 @@ export type Database = {
|
|
|
1588
1557
|
};
|
|
1589
1558
|
list_role_from_user: {
|
|
1590
1559
|
Args: Record<PropertyKey, never>;
|
|
1591
|
-
Returns: Database[
|
|
1560
|
+
Returns: Database["public"]["Enums"]["enum_member_role"];
|
|
1592
1561
|
};
|
|
1593
1562
|
update_labels: {
|
|
1594
1563
|
Args: {
|
|
@@ -1602,11 +1571,11 @@ export type Database = {
|
|
|
1602
1571
|
};
|
|
1603
1572
|
};
|
|
1604
1573
|
Enums: {
|
|
1605
|
-
enum_chat_colors:
|
|
1606
|
-
enum_chat_tickets_status:
|
|
1607
|
-
enum_integration_name:
|
|
1608
|
-
enum_integration_type:
|
|
1609
|
-
enum_member_role:
|
|
1574
|
+
enum_chat_colors: "#B4876E" | "#A5B337" | "#06CF9C" | "#25D366" | "#02A698" | "#7D9EF1" | "#007BFC" | "#5E47DE" | "#7F66FF" | "#9333EA" | "#FA6533" | "#C4532D" | "#DC2626" | "#FF2E74" | "#DB2777";
|
|
1575
|
+
enum_chat_tickets_status: "open" | "inprogress" | "closed" | "archived";
|
|
1576
|
+
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";
|
|
1577
|
+
enum_integration_type: "zapier" | "pabbly" | "api" | "webhook" | "hubspot" | "freshdesk" | "slack" | "jira" | "salesforce";
|
|
1578
|
+
enum_member_role: "admin" | "member";
|
|
1610
1579
|
};
|
|
1611
1580
|
CompositeTypes: {
|
|
1612
1581
|
[_ in never]: never;
|
|
@@ -1623,7 +1592,6 @@ export type Database = {
|
|
|
1623
1592
|
id: string;
|
|
1624
1593
|
name: string;
|
|
1625
1594
|
owner: string | null;
|
|
1626
|
-
owner_id: string | null;
|
|
1627
1595
|
public: boolean | null;
|
|
1628
1596
|
updated_at: string | null;
|
|
1629
1597
|
};
|
|
@@ -1635,7 +1603,6 @@ export type Database = {
|
|
|
1635
1603
|
id: string;
|
|
1636
1604
|
name: string;
|
|
1637
1605
|
owner?: string | null;
|
|
1638
|
-
owner_id?: string | null;
|
|
1639
1606
|
public?: boolean | null;
|
|
1640
1607
|
updated_at?: string | null;
|
|
1641
1608
|
};
|
|
@@ -1647,11 +1614,17 @@ export type Database = {
|
|
|
1647
1614
|
id?: string;
|
|
1648
1615
|
name?: string;
|
|
1649
1616
|
owner?: string | null;
|
|
1650
|
-
owner_id?: string | null;
|
|
1651
1617
|
public?: boolean | null;
|
|
1652
1618
|
updated_at?: string | null;
|
|
1653
1619
|
};
|
|
1654
|
-
Relationships: [
|
|
1620
|
+
Relationships: [
|
|
1621
|
+
{
|
|
1622
|
+
foreignKeyName: "buckets_owner_fkey";
|
|
1623
|
+
columns: ["owner"];
|
|
1624
|
+
referencedRelation: "users";
|
|
1625
|
+
referencedColumns: ["id"];
|
|
1626
|
+
}
|
|
1627
|
+
];
|
|
1655
1628
|
};
|
|
1656
1629
|
migrations: {
|
|
1657
1630
|
Row: {
|
|
@@ -1683,7 +1656,6 @@ export type Database = {
|
|
|
1683
1656
|
metadata: Json | null;
|
|
1684
1657
|
name: string | null;
|
|
1685
1658
|
owner: string | null;
|
|
1686
|
-
owner_id: string | null;
|
|
1687
1659
|
path_tokens: string[] | null;
|
|
1688
1660
|
updated_at: string | null;
|
|
1689
1661
|
version: string | null;
|
|
@@ -1696,7 +1668,6 @@ export type Database = {
|
|
|
1696
1668
|
metadata?: Json | null;
|
|
1697
1669
|
name?: string | null;
|
|
1698
1670
|
owner?: string | null;
|
|
1699
|
-
owner_id?: string | null;
|
|
1700
1671
|
path_tokens?: string[] | null;
|
|
1701
1672
|
updated_at?: string | null;
|
|
1702
1673
|
version?: string | null;
|
|
@@ -1709,18 +1680,16 @@ export type Database = {
|
|
|
1709
1680
|
metadata?: Json | null;
|
|
1710
1681
|
name?: string | null;
|
|
1711
1682
|
owner?: string | null;
|
|
1712
|
-
owner_id?: string | null;
|
|
1713
1683
|
path_tokens?: string[] | null;
|
|
1714
1684
|
updated_at?: string | null;
|
|
1715
1685
|
version?: string | null;
|
|
1716
1686
|
};
|
|
1717
1687
|
Relationships: [
|
|
1718
1688
|
{
|
|
1719
|
-
foreignKeyName:
|
|
1720
|
-
columns: [
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
referencedColumns: ['id'];
|
|
1689
|
+
foreignKeyName: "objects_bucketId_fkey";
|
|
1690
|
+
columns: ["bucket_id"];
|
|
1691
|
+
referencedRelation: "buckets";
|
|
1692
|
+
referencedColumns: ["id"];
|
|
1724
1693
|
}
|
|
1725
1694
|
];
|
|
1726
1695
|
};
|
|
@@ -1754,7 +1723,7 @@ export type Database = {
|
|
|
1754
1723
|
Args: {
|
|
1755
1724
|
name: string;
|
|
1756
1725
|
};
|
|
1757
|
-
Returns:
|
|
1726
|
+
Returns: unknown;
|
|
1758
1727
|
};
|
|
1759
1728
|
get_size_by_bucket: {
|
|
1760
1729
|
Args: Record<PropertyKey, never>;
|
|
@@ -1792,45 +1761,45 @@ export type Database = {
|
|
|
1792
1761
|
};
|
|
1793
1762
|
};
|
|
1794
1763
|
};
|
|
1795
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
1796
|
-
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
1764
|
+
type PublicSchema = Database[Extract<keyof Database, "public">];
|
|
1765
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) | {
|
|
1797
1766
|
schema: keyof Database;
|
|
1798
1767
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1799
1768
|
schema: keyof Database;
|
|
1800
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
1769
|
+
} ? keyof (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"]) : never = never> = PublicTableNameOrOptions extends {
|
|
1801
1770
|
schema: keyof Database;
|
|
1802
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
1771
|
+
} ? (Database[PublicTableNameOrOptions["schema"]]["Tables"] & Database[PublicTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
1803
1772
|
Row: infer R;
|
|
1804
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
1773
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema["Tables"] & PublicSchema["Views"]) ? (PublicSchema["Tables"] & PublicSchema["Views"])[PublicTableNameOrOptions] extends {
|
|
1805
1774
|
Row: infer R;
|
|
1806
1775
|
} ? R : never : never;
|
|
1807
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1776
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
1808
1777
|
schema: keyof Database;
|
|
1809
1778
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1810
1779
|
schema: keyof Database;
|
|
1811
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
1780
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
1812
1781
|
schema: keyof Database;
|
|
1813
|
-
} ? Database[PublicTableNameOrOptions[
|
|
1782
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
1814
1783
|
Insert: infer I;
|
|
1815
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1784
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
1816
1785
|
Insert: infer I;
|
|
1817
1786
|
} ? I : never : never;
|
|
1818
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1787
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema["Tables"] | {
|
|
1819
1788
|
schema: keyof Database;
|
|
1820
1789
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1821
1790
|
schema: keyof Database;
|
|
1822
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
1791
|
+
} ? keyof Database[PublicTableNameOrOptions["schema"]]["Tables"] : never = never> = PublicTableNameOrOptions extends {
|
|
1823
1792
|
schema: keyof Database;
|
|
1824
|
-
} ? Database[PublicTableNameOrOptions[
|
|
1793
|
+
} ? Database[PublicTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
1825
1794
|
Update: infer U;
|
|
1826
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1795
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema["Tables"] ? PublicSchema["Tables"][PublicTableNameOrOptions] extends {
|
|
1827
1796
|
Update: infer U;
|
|
1828
1797
|
} ? U : never : never;
|
|
1829
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
1798
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] | {
|
|
1830
1799
|
schema: keyof Database;
|
|
1831
1800
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
1832
1801
|
schema: keyof Database;
|
|
1833
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
1802
|
+
} ? keyof Database[PublicEnumNameOrOptions["schema"]]["Enums"] : never = never> = PublicEnumNameOrOptions extends {
|
|
1834
1803
|
schema: keyof Database;
|
|
1835
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
1804
|
+
} ? Database[PublicEnumNameOrOptions["schema"]]["Enums"][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema["Enums"] ? PublicSchema["Enums"][PublicEnumNameOrOptions] : never;
|
|
1836
1805
|
export {};
|