@periskope/types 0.6.87 → 0.6.88
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 +221 -225
- package/mod_json_type.ps1 +109 -15
- package/package.json +17 -17
- package/supabase.types.ts +1916 -1914
- package/tsconfig.json +105 -105
- package/update_package.ps1 +21 -21
package/dist/supabase.types.d.ts
CHANGED
|
@@ -74,28 +74,28 @@ export type Database = {
|
|
|
74
74
|
};
|
|
75
75
|
Relationships: [
|
|
76
76
|
{
|
|
77
|
-
foreignKeyName:
|
|
78
|
-
columns: [
|
|
79
|
-
referencedRelation:
|
|
80
|
-
referencedColumns: [
|
|
77
|
+
foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
|
|
78
|
+
columns: ['broadcast_id'];
|
|
79
|
+
referencedRelation: 'tbl_broadcast_messages';
|
|
80
|
+
referencedColumns: ['broadcast_id'];
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
|
-
foreignKeyName:
|
|
84
|
-
columns: [
|
|
85
|
-
referencedRelation:
|
|
86
|
-
referencedColumns: [
|
|
83
|
+
foreignKeyName: 'tbl_broadcast_logs_broadcast_id_fkey';
|
|
84
|
+
columns: ['broadcast_id'];
|
|
85
|
+
referencedRelation: 'view_broadcast_logs';
|
|
86
|
+
referencedColumns: ['broadcast_id'];
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
foreignKeyName:
|
|
90
|
-
columns: [
|
|
91
|
-
referencedRelation:
|
|
92
|
-
referencedColumns: [
|
|
89
|
+
foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
|
|
90
|
+
columns: ['org_id'];
|
|
91
|
+
referencedRelation: 'tbl_org';
|
|
92
|
+
referencedColumns: ['org_id'];
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
|
-
foreignKeyName:
|
|
96
|
-
columns: [
|
|
97
|
-
referencedRelation:
|
|
98
|
-
referencedColumns: [
|
|
95
|
+
foreignKeyName: 'tbl_broadcast_logs_org_id_fkey';
|
|
96
|
+
columns: ['org_id'];
|
|
97
|
+
referencedRelation: 'view_org';
|
|
98
|
+
referencedColumns: ['org_id'];
|
|
99
99
|
}
|
|
100
100
|
];
|
|
101
101
|
};
|
|
@@ -107,6 +107,7 @@ export type Database = {
|
|
|
107
107
|
created_at: string;
|
|
108
108
|
message_payload: Json | null;
|
|
109
109
|
org_id: string;
|
|
110
|
+
org_phone: string | null;
|
|
110
111
|
performed_at: string | null;
|
|
111
112
|
performed_by: string | null;
|
|
112
113
|
scheduled_at: string | null;
|
|
@@ -118,6 +119,7 @@ export type Database = {
|
|
|
118
119
|
created_at?: string;
|
|
119
120
|
message_payload?: Json | null;
|
|
120
121
|
org_id: string;
|
|
122
|
+
org_phone?: string | null;
|
|
121
123
|
performed_at?: string | null;
|
|
122
124
|
performed_by?: string | null;
|
|
123
125
|
scheduled_at?: string | null;
|
|
@@ -129,22 +131,23 @@ export type Database = {
|
|
|
129
131
|
created_at?: string;
|
|
130
132
|
message_payload?: Json | null;
|
|
131
133
|
org_id?: string;
|
|
134
|
+
org_phone?: string | null;
|
|
132
135
|
performed_at?: string | null;
|
|
133
136
|
performed_by?: string | null;
|
|
134
137
|
scheduled_at?: string | null;
|
|
135
138
|
};
|
|
136
139
|
Relationships: [
|
|
137
140
|
{
|
|
138
|
-
foreignKeyName:
|
|
139
|
-
columns: [
|
|
140
|
-
referencedRelation:
|
|
141
|
-
referencedColumns: [
|
|
141
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
142
|
+
columns: ['org_id'];
|
|
143
|
+
referencedRelation: 'tbl_org';
|
|
144
|
+
referencedColumns: ['org_id'];
|
|
142
145
|
},
|
|
143
146
|
{
|
|
144
|
-
foreignKeyName:
|
|
145
|
-
columns: [
|
|
146
|
-
referencedRelation:
|
|
147
|
-
referencedColumns: [
|
|
147
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
148
|
+
columns: ['org_id'];
|
|
149
|
+
referencedRelation: 'view_org';
|
|
150
|
+
referencedColumns: ['org_id'];
|
|
148
151
|
}
|
|
149
152
|
];
|
|
150
153
|
};
|
|
@@ -175,16 +178,16 @@ export type Database = {
|
|
|
175
178
|
};
|
|
176
179
|
Relationships: [
|
|
177
180
|
{
|
|
178
|
-
foreignKeyName:
|
|
179
|
-
columns: [
|
|
180
|
-
referencedRelation:
|
|
181
|
-
referencedColumns: [
|
|
181
|
+
foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
|
|
182
|
+
columns: ['org_id'];
|
|
183
|
+
referencedRelation: 'tbl_org';
|
|
184
|
+
referencedColumns: ['org_id'];
|
|
182
185
|
},
|
|
183
186
|
{
|
|
184
|
-
foreignKeyName:
|
|
185
|
-
columns: [
|
|
186
|
-
referencedRelation:
|
|
187
|
-
referencedColumns: [
|
|
187
|
+
foreignKeyName: 'tbl_broadcast_templates_org_id_fkey';
|
|
188
|
+
columns: ['org_id'];
|
|
189
|
+
referencedRelation: 'view_org';
|
|
190
|
+
referencedColumns: ['org_id'];
|
|
188
191
|
}
|
|
189
192
|
];
|
|
190
193
|
};
|
|
@@ -218,10 +221,10 @@ export type Database = {
|
|
|
218
221
|
};
|
|
219
222
|
Relationships: [
|
|
220
223
|
{
|
|
221
|
-
foreignKeyName:
|
|
222
|
-
columns: [
|
|
223
|
-
referencedRelation:
|
|
224
|
-
referencedColumns: [
|
|
224
|
+
foreignKeyName: 'tbl_chat_access_org_id_email_fkey';
|
|
225
|
+
columns: ['org_id', 'email'];
|
|
226
|
+
referencedRelation: 'tbl_org_members';
|
|
227
|
+
referencedColumns: ['org_id', 'email'];
|
|
225
228
|
}
|
|
226
229
|
];
|
|
227
230
|
};
|
|
@@ -378,10 +381,10 @@ export type Database = {
|
|
|
378
381
|
};
|
|
379
382
|
Relationships: [
|
|
380
383
|
{
|
|
381
|
-
foreignKeyName:
|
|
382
|
-
columns: [
|
|
383
|
-
referencedRelation:
|
|
384
|
-
referencedColumns: [
|
|
384
|
+
foreignKeyName: 'tbl_chat_messages_fkey_tbl_org_phones';
|
|
385
|
+
columns: ['org_phone', 'org_id'];
|
|
386
|
+
referencedRelation: 'tbl_org_phones';
|
|
387
|
+
referencedColumns: ['org_phone', 'org_id'];
|
|
385
388
|
}
|
|
386
389
|
];
|
|
387
390
|
};
|
|
@@ -427,10 +430,10 @@ export type Database = {
|
|
|
427
430
|
};
|
|
428
431
|
Relationships: [
|
|
429
432
|
{
|
|
430
|
-
foreignKeyName:
|
|
431
|
-
columns: [
|
|
432
|
-
referencedRelation:
|
|
433
|
-
referencedColumns: [
|
|
433
|
+
foreignKeyName: 'tbl_chat_notifications_fkey_tbl_org_phones';
|
|
434
|
+
columns: ['org_id', 'org_phone'];
|
|
435
|
+
referencedRelation: 'tbl_org_phones';
|
|
436
|
+
referencedColumns: ['org_id', 'org_phone'];
|
|
434
437
|
}
|
|
435
438
|
];
|
|
436
439
|
};
|
|
@@ -464,10 +467,10 @@ export type Database = {
|
|
|
464
467
|
};
|
|
465
468
|
Relationships: [
|
|
466
469
|
{
|
|
467
|
-
foreignKeyName:
|
|
468
|
-
columns: [
|
|
469
|
-
referencedRelation:
|
|
470
|
-
referencedColumns: [
|
|
470
|
+
foreignKeyName: 'tbl_chat_participants_fkey_tbl_chats';
|
|
471
|
+
columns: ['org_id', 'org_phone', 'chat_id'];
|
|
472
|
+
referencedRelation: 'tbl_chats';
|
|
473
|
+
referencedColumns: ['org_id', 'org_phone', 'chat_id'];
|
|
471
474
|
}
|
|
472
475
|
];
|
|
473
476
|
};
|
|
@@ -552,10 +555,10 @@ export type Database = {
|
|
|
552
555
|
};
|
|
553
556
|
Relationships: [
|
|
554
557
|
{
|
|
555
|
-
foreignKeyName:
|
|
556
|
-
columns: [
|
|
557
|
-
referencedRelation:
|
|
558
|
-
referencedColumns: [
|
|
558
|
+
foreignKeyName: 'tbl_chat_reactions_fkey_tbl_org_phones';
|
|
559
|
+
columns: ['org_id', 'org_phone'];
|
|
560
|
+
referencedRelation: 'tbl_org_phones';
|
|
561
|
+
referencedColumns: ['org_id', 'org_phone'];
|
|
559
562
|
}
|
|
560
563
|
];
|
|
561
564
|
};
|
|
@@ -574,7 +577,7 @@ export type Database = {
|
|
|
574
577
|
priority: number | null;
|
|
575
578
|
quoted_message_id: string | null;
|
|
576
579
|
raised_by: string | null;
|
|
577
|
-
status: Database[
|
|
580
|
+
status: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
578
581
|
subject: string;
|
|
579
582
|
ticket_id: string;
|
|
580
583
|
};
|
|
@@ -592,7 +595,7 @@ export type Database = {
|
|
|
592
595
|
priority?: number | null;
|
|
593
596
|
quoted_message_id?: string | null;
|
|
594
597
|
raised_by?: string | null;
|
|
595
|
-
status?: Database[
|
|
598
|
+
status?: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
596
599
|
subject: string;
|
|
597
600
|
ticket_id?: string;
|
|
598
601
|
};
|
|
@@ -610,22 +613,22 @@ export type Database = {
|
|
|
610
613
|
priority?: number | null;
|
|
611
614
|
quoted_message_id?: string | null;
|
|
612
615
|
raised_by?: string | null;
|
|
613
|
-
status?: Database[
|
|
616
|
+
status?: Database['public']['Enums']['enum_chat_tickets_status'] | null;
|
|
614
617
|
subject?: string;
|
|
615
618
|
ticket_id?: string;
|
|
616
619
|
};
|
|
617
620
|
Relationships: [
|
|
618
621
|
{
|
|
619
|
-
foreignKeyName:
|
|
620
|
-
columns: [
|
|
621
|
-
referencedRelation:
|
|
622
|
-
referencedColumns: [
|
|
622
|
+
foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
|
|
623
|
+
columns: ['org_id'];
|
|
624
|
+
referencedRelation: 'tbl_org';
|
|
625
|
+
referencedColumns: ['org_id'];
|
|
623
626
|
},
|
|
624
627
|
{
|
|
625
|
-
foreignKeyName:
|
|
626
|
-
columns: [
|
|
627
|
-
referencedRelation:
|
|
628
|
-
referencedColumns: [
|
|
628
|
+
foreignKeyName: 'tbl_chat_tickets_org_id_fkey';
|
|
629
|
+
columns: ['org_id'];
|
|
630
|
+
referencedRelation: 'view_org';
|
|
631
|
+
referencedColumns: ['org_id'];
|
|
629
632
|
}
|
|
630
633
|
];
|
|
631
634
|
};
|
|
@@ -704,17 +707,17 @@ export type Database = {
|
|
|
704
707
|
};
|
|
705
708
|
Relationships: [
|
|
706
709
|
{
|
|
707
|
-
foreignKeyName:
|
|
708
|
-
columns: [
|
|
709
|
-
referencedRelation:
|
|
710
|
-
referencedColumns: [
|
|
710
|
+
foreignKeyName: 'tbl_chats_fkey_tbl_org_phones';
|
|
711
|
+
columns: ['org_phone', 'org_id'];
|
|
712
|
+
referencedRelation: 'tbl_org_phones';
|
|
713
|
+
referencedColumns: ['org_phone', 'org_id'];
|
|
711
714
|
}
|
|
712
715
|
];
|
|
713
716
|
};
|
|
714
717
|
tbl_contacts: {
|
|
715
718
|
Row: {
|
|
716
719
|
business_profile: Json | null;
|
|
717
|
-
contact_color: Database[
|
|
720
|
+
contact_color: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
718
721
|
contact_id: string;
|
|
719
722
|
contact_image: string | null;
|
|
720
723
|
contact_name: string | null;
|
|
@@ -741,7 +744,7 @@ export type Database = {
|
|
|
741
744
|
};
|
|
742
745
|
Insert: {
|
|
743
746
|
business_profile?: Json | null;
|
|
744
|
-
contact_color?: Database[
|
|
747
|
+
contact_color?: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
745
748
|
contact_id: string;
|
|
746
749
|
contact_image?: string | null;
|
|
747
750
|
contact_name?: string | null;
|
|
@@ -768,7 +771,7 @@ export type Database = {
|
|
|
768
771
|
};
|
|
769
772
|
Update: {
|
|
770
773
|
business_profile?: Json | null;
|
|
771
|
-
contact_color?: Database[
|
|
774
|
+
contact_color?: Database['public']['Enums']['enum_chat_colors'] | null;
|
|
772
775
|
contact_id?: string;
|
|
773
776
|
contact_image?: string | null;
|
|
774
777
|
contact_name?: string | null;
|
|
@@ -795,16 +798,16 @@ export type Database = {
|
|
|
795
798
|
};
|
|
796
799
|
Relationships: [
|
|
797
800
|
{
|
|
798
|
-
foreignKeyName:
|
|
799
|
-
columns: [
|
|
800
|
-
referencedRelation:
|
|
801
|
-
referencedColumns: [
|
|
801
|
+
foreignKeyName: 'tbl_contacts_org_id_fkey';
|
|
802
|
+
columns: ['org_id'];
|
|
803
|
+
referencedRelation: 'tbl_org';
|
|
804
|
+
referencedColumns: ['org_id'];
|
|
802
805
|
},
|
|
803
806
|
{
|
|
804
|
-
foreignKeyName:
|
|
805
|
-
columns: [
|
|
806
|
-
referencedRelation:
|
|
807
|
-
referencedColumns: [
|
|
807
|
+
foreignKeyName: 'tbl_contacts_org_id_fkey';
|
|
808
|
+
columns: ['org_id'];
|
|
809
|
+
referencedRelation: 'view_org';
|
|
810
|
+
referencedColumns: ['org_id'];
|
|
808
811
|
}
|
|
809
812
|
];
|
|
810
813
|
};
|
|
@@ -841,16 +844,16 @@ export type Database = {
|
|
|
841
844
|
};
|
|
842
845
|
Relationships: [
|
|
843
846
|
{
|
|
844
|
-
foreignKeyName:
|
|
845
|
-
columns: [
|
|
846
|
-
referencedRelation:
|
|
847
|
-
referencedColumns: [
|
|
847
|
+
foreignKeyName: 'tbl_custom_properties_org_id_fkey';
|
|
848
|
+
columns: ['org_id'];
|
|
849
|
+
referencedRelation: 'tbl_org';
|
|
850
|
+
referencedColumns: ['org_id'];
|
|
848
851
|
},
|
|
849
852
|
{
|
|
850
|
-
foreignKeyName:
|
|
851
|
-
columns: [
|
|
852
|
-
referencedRelation:
|
|
853
|
-
referencedColumns: [
|
|
853
|
+
foreignKeyName: 'tbl_custom_properties_org_id_fkey';
|
|
854
|
+
columns: ['org_id'];
|
|
855
|
+
referencedRelation: 'view_org';
|
|
856
|
+
referencedColumns: ['org_id'];
|
|
854
857
|
}
|
|
855
858
|
];
|
|
856
859
|
};
|
|
@@ -860,49 +863,49 @@ export type Database = {
|
|
|
860
863
|
id: string;
|
|
861
864
|
integration_id: string | null;
|
|
862
865
|
integration_metadata: Json;
|
|
863
|
-
integration_name: Database[
|
|
866
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
864
867
|
integration_type: string;
|
|
865
868
|
is_subscribed: boolean;
|
|
866
869
|
org_id: string;
|
|
867
870
|
subscribed_at: string;
|
|
868
|
-
type: Database[
|
|
871
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
869
872
|
};
|
|
870
873
|
Insert: {
|
|
871
874
|
hook_url: string;
|
|
872
875
|
id?: string;
|
|
873
876
|
integration_id?: string | null;
|
|
874
877
|
integration_metadata: Json;
|
|
875
|
-
integration_name: Database[
|
|
878
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
876
879
|
integration_type: string;
|
|
877
880
|
is_subscribed: boolean;
|
|
878
881
|
org_id: string;
|
|
879
882
|
subscribed_at?: string;
|
|
880
|
-
type: Database[
|
|
883
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
881
884
|
};
|
|
882
885
|
Update: {
|
|
883
886
|
hook_url?: string;
|
|
884
887
|
id?: string;
|
|
885
888
|
integration_id?: string | null;
|
|
886
889
|
integration_metadata?: Json;
|
|
887
|
-
integration_name?: Database[
|
|
890
|
+
integration_name?: Database['public']['Enums']['enum_integration_name'];
|
|
888
891
|
integration_type?: string;
|
|
889
892
|
is_subscribed?: boolean;
|
|
890
893
|
org_id?: string;
|
|
891
894
|
subscribed_at?: string;
|
|
892
|
-
type?: Database[
|
|
895
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
893
896
|
};
|
|
894
897
|
Relationships: [
|
|
895
898
|
{
|
|
896
|
-
foreignKeyName:
|
|
897
|
-
columns: [
|
|
898
|
-
referencedRelation:
|
|
899
|
-
referencedColumns: [
|
|
899
|
+
foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
|
|
900
|
+
columns: ['org_id'];
|
|
901
|
+
referencedRelation: 'tbl_org';
|
|
902
|
+
referencedColumns: ['org_id'];
|
|
900
903
|
},
|
|
901
904
|
{
|
|
902
|
-
foreignKeyName:
|
|
903
|
-
columns: [
|
|
904
|
-
referencedRelation:
|
|
905
|
-
referencedColumns: [
|
|
905
|
+
foreignKeyName: 'tbl_integration_hooks_org_id_fkey';
|
|
906
|
+
columns: ['org_id'];
|
|
907
|
+
referencedRelation: 'view_org';
|
|
908
|
+
referencedColumns: ['org_id'];
|
|
906
909
|
}
|
|
907
910
|
];
|
|
908
911
|
};
|
|
@@ -910,48 +913,48 @@ export type Database = {
|
|
|
910
913
|
Row: {
|
|
911
914
|
created_at: string;
|
|
912
915
|
id: string;
|
|
913
|
-
integration_name: Database[
|
|
916
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
914
917
|
integration_type: string;
|
|
915
918
|
metadata: Json;
|
|
916
919
|
org_id: string;
|
|
917
920
|
response: Json | null;
|
|
918
921
|
success: boolean;
|
|
919
|
-
type: Database[
|
|
922
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
920
923
|
};
|
|
921
924
|
Insert: {
|
|
922
925
|
created_at?: string;
|
|
923
926
|
id?: string;
|
|
924
|
-
integration_name: Database[
|
|
927
|
+
integration_name: Database['public']['Enums']['enum_integration_name'];
|
|
925
928
|
integration_type: string;
|
|
926
929
|
metadata?: Json;
|
|
927
930
|
org_id: string;
|
|
928
931
|
response?: Json | null;
|
|
929
932
|
success?: boolean;
|
|
930
|
-
type: Database[
|
|
933
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
931
934
|
};
|
|
932
935
|
Update: {
|
|
933
936
|
created_at?: string;
|
|
934
937
|
id?: string;
|
|
935
|
-
integration_name?: Database[
|
|
938
|
+
integration_name?: Database['public']['Enums']['enum_integration_name'];
|
|
936
939
|
integration_type?: string;
|
|
937
940
|
metadata?: Json;
|
|
938
941
|
org_id?: string;
|
|
939
942
|
response?: Json | null;
|
|
940
943
|
success?: boolean;
|
|
941
|
-
type?: Database[
|
|
944
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
942
945
|
};
|
|
943
946
|
Relationships: [
|
|
944
947
|
{
|
|
945
|
-
foreignKeyName:
|
|
946
|
-
columns: [
|
|
947
|
-
referencedRelation:
|
|
948
|
-
referencedColumns: [
|
|
948
|
+
foreignKeyName: 'tbl_integration_logs_org_id_fkey';
|
|
949
|
+
columns: ['org_id'];
|
|
950
|
+
referencedRelation: 'tbl_org';
|
|
951
|
+
referencedColumns: ['org_id'];
|
|
949
952
|
},
|
|
950
953
|
{
|
|
951
|
-
foreignKeyName:
|
|
952
|
-
columns: [
|
|
953
|
-
referencedRelation:
|
|
954
|
-
referencedColumns: [
|
|
954
|
+
foreignKeyName: 'tbl_integration_logs_org_id_fkey';
|
|
955
|
+
columns: ['org_id'];
|
|
956
|
+
referencedRelation: 'view_org';
|
|
957
|
+
referencedColumns: ['org_id'];
|
|
955
958
|
}
|
|
956
959
|
];
|
|
957
960
|
};
|
|
@@ -966,7 +969,7 @@ export type Database = {
|
|
|
966
969
|
role: string;
|
|
967
970
|
token: string;
|
|
968
971
|
token_metadata: Json | null;
|
|
969
|
-
type: Database[
|
|
972
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
970
973
|
};
|
|
971
974
|
Insert: {
|
|
972
975
|
exp: string;
|
|
@@ -978,7 +981,7 @@ export type Database = {
|
|
|
978
981
|
role: string;
|
|
979
982
|
token: string;
|
|
980
983
|
token_metadata?: Json | null;
|
|
981
|
-
type: Database[
|
|
984
|
+
type: Database['public']['Enums']['enum_integration_type'];
|
|
982
985
|
};
|
|
983
986
|
Update: {
|
|
984
987
|
exp?: string;
|
|
@@ -990,20 +993,20 @@ export type Database = {
|
|
|
990
993
|
role?: string;
|
|
991
994
|
token?: string;
|
|
992
995
|
token_metadata?: Json | null;
|
|
993
|
-
type?: Database[
|
|
996
|
+
type?: Database['public']['Enums']['enum_integration_type'];
|
|
994
997
|
};
|
|
995
998
|
Relationships: [
|
|
996
999
|
{
|
|
997
|
-
foreignKeyName:
|
|
998
|
-
columns: [
|
|
999
|
-
referencedRelation:
|
|
1000
|
-
referencedColumns: [
|
|
1000
|
+
foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
|
|
1001
|
+
columns: ['org_id'];
|
|
1002
|
+
referencedRelation: 'tbl_org';
|
|
1003
|
+
referencedColumns: ['org_id'];
|
|
1001
1004
|
},
|
|
1002
1005
|
{
|
|
1003
|
-
foreignKeyName:
|
|
1004
|
-
columns: [
|
|
1005
|
-
referencedRelation:
|
|
1006
|
-
referencedColumns: [
|
|
1006
|
+
foreignKeyName: 'public_tbl_integration_tokens_org_id_fkey';
|
|
1007
|
+
columns: ['org_id'];
|
|
1008
|
+
referencedRelation: 'view_org';
|
|
1009
|
+
referencedColumns: ['org_id'];
|
|
1007
1010
|
}
|
|
1008
1011
|
];
|
|
1009
1012
|
};
|
|
@@ -1073,16 +1076,16 @@ export type Database = {
|
|
|
1073
1076
|
};
|
|
1074
1077
|
Relationships: [
|
|
1075
1078
|
{
|
|
1076
|
-
foreignKeyName:
|
|
1077
|
-
columns: [
|
|
1078
|
-
referencedRelation:
|
|
1079
|
-
referencedColumns: [
|
|
1079
|
+
foreignKeyName: 'tbl_org_labels_org_id_fkey';
|
|
1080
|
+
columns: ['org_id'];
|
|
1081
|
+
referencedRelation: 'tbl_org';
|
|
1082
|
+
referencedColumns: ['org_id'];
|
|
1080
1083
|
},
|
|
1081
1084
|
{
|
|
1082
|
-
foreignKeyName:
|
|
1083
|
-
columns: [
|
|
1084
|
-
referencedRelation:
|
|
1085
|
-
referencedColumns: [
|
|
1085
|
+
foreignKeyName: 'tbl_org_labels_org_id_fkey';
|
|
1086
|
+
columns: ['org_id'];
|
|
1087
|
+
referencedRelation: 'view_org';
|
|
1088
|
+
referencedColumns: ['org_id'];
|
|
1086
1089
|
}
|
|
1087
1090
|
];
|
|
1088
1091
|
};
|
|
@@ -1095,13 +1098,13 @@ export type Database = {
|
|
|
1095
1098
|
is_active: boolean;
|
|
1096
1099
|
is_owner: boolean | null;
|
|
1097
1100
|
label_ids: string[] | null;
|
|
1098
|
-
member_color: Database[
|
|
1101
|
+
member_color: Database['public']['Enums']['enum_chat_colors'];
|
|
1099
1102
|
member_image: string | null;
|
|
1100
1103
|
member_name: string | null;
|
|
1101
1104
|
org_id: string;
|
|
1102
1105
|
org_phones: string[] | null;
|
|
1103
1106
|
preferences: Json;
|
|
1104
|
-
role: Database[
|
|
1107
|
+
role: Database['public']['Enums']['enum_member_role'];
|
|
1105
1108
|
user_id: string | null;
|
|
1106
1109
|
};
|
|
1107
1110
|
Insert: {
|
|
@@ -1112,13 +1115,13 @@ export type Database = {
|
|
|
1112
1115
|
is_active?: boolean;
|
|
1113
1116
|
is_owner?: boolean | null;
|
|
1114
1117
|
label_ids?: string[] | null;
|
|
1115
|
-
member_color?: Database[
|
|
1118
|
+
member_color?: Database['public']['Enums']['enum_chat_colors'];
|
|
1116
1119
|
member_image?: string | null;
|
|
1117
1120
|
member_name?: string | null;
|
|
1118
1121
|
org_id: string;
|
|
1119
1122
|
org_phones?: string[] | null;
|
|
1120
1123
|
preferences?: Json;
|
|
1121
|
-
role?: Database[
|
|
1124
|
+
role?: Database['public']['Enums']['enum_member_role'];
|
|
1122
1125
|
user_id?: string | null;
|
|
1123
1126
|
};
|
|
1124
1127
|
Update: {
|
|
@@ -1129,33 +1132,33 @@ export type Database = {
|
|
|
1129
1132
|
is_active?: boolean;
|
|
1130
1133
|
is_owner?: boolean | null;
|
|
1131
1134
|
label_ids?: string[] | null;
|
|
1132
|
-
member_color?: Database[
|
|
1135
|
+
member_color?: Database['public']['Enums']['enum_chat_colors'];
|
|
1133
1136
|
member_image?: string | null;
|
|
1134
1137
|
member_name?: string | null;
|
|
1135
1138
|
org_id?: string;
|
|
1136
1139
|
org_phones?: string[] | null;
|
|
1137
1140
|
preferences?: Json;
|
|
1138
|
-
role?: Database[
|
|
1141
|
+
role?: Database['public']['Enums']['enum_member_role'];
|
|
1139
1142
|
user_id?: string | null;
|
|
1140
1143
|
};
|
|
1141
1144
|
Relationships: [
|
|
1142
1145
|
{
|
|
1143
|
-
foreignKeyName:
|
|
1144
|
-
columns: [
|
|
1145
|
-
referencedRelation:
|
|
1146
|
-
referencedColumns: [
|
|
1146
|
+
foreignKeyName: 'tbl_org_members_fkey_auth_users';
|
|
1147
|
+
columns: ['user_id'];
|
|
1148
|
+
referencedRelation: 'users';
|
|
1149
|
+
referencedColumns: ['id'];
|
|
1147
1150
|
},
|
|
1148
1151
|
{
|
|
1149
|
-
foreignKeyName:
|
|
1150
|
-
columns: [
|
|
1151
|
-
referencedRelation:
|
|
1152
|
-
referencedColumns: [
|
|
1152
|
+
foreignKeyName: 'tbl_org_members_fkey_tbl_org';
|
|
1153
|
+
columns: ['org_id'];
|
|
1154
|
+
referencedRelation: 'tbl_org';
|
|
1155
|
+
referencedColumns: ['org_id'];
|
|
1153
1156
|
},
|
|
1154
1157
|
{
|
|
1155
|
-
foreignKeyName:
|
|
1156
|
-
columns: [
|
|
1157
|
-
referencedRelation:
|
|
1158
|
-
referencedColumns: [
|
|
1158
|
+
foreignKeyName: 'tbl_org_members_fkey_tbl_org';
|
|
1159
|
+
columns: ['org_id'];
|
|
1160
|
+
referencedRelation: 'view_org';
|
|
1161
|
+
referencedColumns: ['org_id'];
|
|
1159
1162
|
}
|
|
1160
1163
|
];
|
|
1161
1164
|
};
|
|
@@ -1216,28 +1219,28 @@ export type Database = {
|
|
|
1216
1219
|
};
|
|
1217
1220
|
Relationships: [
|
|
1218
1221
|
{
|
|
1219
|
-
foreignKeyName:
|
|
1220
|
-
columns: [
|
|
1221
|
-
referencedRelation:
|
|
1222
|
-
referencedColumns: [
|
|
1222
|
+
foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
|
|
1223
|
+
columns: ['org_id'];
|
|
1224
|
+
referencedRelation: 'tbl_org';
|
|
1225
|
+
referencedColumns: ['org_id'];
|
|
1223
1226
|
},
|
|
1224
1227
|
{
|
|
1225
|
-
foreignKeyName:
|
|
1226
|
-
columns: [
|
|
1227
|
-
referencedRelation:
|
|
1228
|
-
referencedColumns: [
|
|
1228
|
+
foreignKeyName: 'tbl_org_phones_fkey_tbl_org';
|
|
1229
|
+
columns: ['org_id'];
|
|
1230
|
+
referencedRelation: 'view_org';
|
|
1231
|
+
referencedColumns: ['org_id'];
|
|
1229
1232
|
},
|
|
1230
1233
|
{
|
|
1231
|
-
foreignKeyName:
|
|
1232
|
-
columns: [
|
|
1233
|
-
referencedRelation:
|
|
1234
|
-
referencedColumns: [
|
|
1234
|
+
foreignKeyName: 'tbl_org_phones_org_id_fkey';
|
|
1235
|
+
columns: ['org_id'];
|
|
1236
|
+
referencedRelation: 'tbl_org';
|
|
1237
|
+
referencedColumns: ['org_id'];
|
|
1235
1238
|
},
|
|
1236
1239
|
{
|
|
1237
|
-
foreignKeyName:
|
|
1238
|
-
columns: [
|
|
1239
|
-
referencedRelation:
|
|
1240
|
-
referencedColumns: [
|
|
1240
|
+
foreignKeyName: 'tbl_org_phones_org_id_fkey';
|
|
1241
|
+
columns: ['org_id'];
|
|
1242
|
+
referencedRelation: 'view_org';
|
|
1243
|
+
referencedColumns: ['org_id'];
|
|
1241
1244
|
}
|
|
1242
1245
|
];
|
|
1243
1246
|
};
|
|
@@ -1265,16 +1268,16 @@ export type Database = {
|
|
|
1265
1268
|
};
|
|
1266
1269
|
Relationships: [
|
|
1267
1270
|
{
|
|
1268
|
-
foreignKeyName:
|
|
1269
|
-
columns: [
|
|
1270
|
-
referencedRelation:
|
|
1271
|
-
referencedColumns: [
|
|
1271
|
+
foreignKeyName: 'tbl_quick_replies_org_id_fkey';
|
|
1272
|
+
columns: ['org_id'];
|
|
1273
|
+
referencedRelation: 'tbl_org';
|
|
1274
|
+
referencedColumns: ['org_id'];
|
|
1272
1275
|
},
|
|
1273
1276
|
{
|
|
1274
|
-
foreignKeyName:
|
|
1275
|
-
columns: [
|
|
1276
|
-
referencedRelation:
|
|
1277
|
-
referencedColumns: [
|
|
1277
|
+
foreignKeyName: 'tbl_quick_replies_org_id_fkey';
|
|
1278
|
+
columns: ['org_id'];
|
|
1279
|
+
referencedRelation: 'view_org';
|
|
1280
|
+
referencedColumns: ['org_id'];
|
|
1278
1281
|
}
|
|
1279
1282
|
];
|
|
1280
1283
|
};
|
|
@@ -1325,16 +1328,16 @@ export type Database = {
|
|
|
1325
1328
|
};
|
|
1326
1329
|
Relationships: [
|
|
1327
1330
|
{
|
|
1328
|
-
foreignKeyName:
|
|
1329
|
-
columns: [
|
|
1330
|
-
referencedRelation:
|
|
1331
|
-
referencedColumns: [
|
|
1331
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
1332
|
+
columns: ['org_id'];
|
|
1333
|
+
referencedRelation: 'tbl_org';
|
|
1334
|
+
referencedColumns: ['org_id'];
|
|
1332
1335
|
},
|
|
1333
1336
|
{
|
|
1334
|
-
foreignKeyName:
|
|
1335
|
-
columns: [
|
|
1336
|
-
referencedRelation:
|
|
1337
|
-
referencedColumns: [
|
|
1337
|
+
foreignKeyName: 'tbl_broadcast_messages_org_id_fkey';
|
|
1338
|
+
columns: ['org_id'];
|
|
1339
|
+
referencedRelation: 'view_org';
|
|
1340
|
+
referencedColumns: ['org_id'];
|
|
1338
1341
|
}
|
|
1339
1342
|
];
|
|
1340
1343
|
};
|
|
@@ -1430,13 +1433,6 @@ export type Database = {
|
|
|
1430
1433
|
};
|
|
1431
1434
|
};
|
|
1432
1435
|
Functions: {
|
|
1433
|
-
calculate_response_time: {
|
|
1434
|
-
Args: {
|
|
1435
|
-
flag_metadata: Json;
|
|
1436
|
-
message_timestamp: string;
|
|
1437
|
-
};
|
|
1438
|
-
Returns: number;
|
|
1439
|
-
};
|
|
1440
1436
|
gen_id: {
|
|
1441
1437
|
Args: {
|
|
1442
1438
|
prefix: string;
|
|
@@ -1454,7 +1450,7 @@ export type Database = {
|
|
|
1454
1450
|
generate_access_token: {
|
|
1455
1451
|
Args: {
|
|
1456
1452
|
name_input?: string;
|
|
1457
|
-
type_input?: Database[
|
|
1453
|
+
type_input?: Database['public']['Enums']['enum_integration_type'];
|
|
1458
1454
|
org_id_input?: string;
|
|
1459
1455
|
};
|
|
1460
1456
|
Returns: Json;
|
|
@@ -1464,7 +1460,7 @@ export type Database = {
|
|
|
1464
1460
|
org_id_input?: string;
|
|
1465
1461
|
org_phone_input?: string;
|
|
1466
1462
|
token_id_input?: string;
|
|
1467
|
-
token_type_input?: Database[
|
|
1463
|
+
token_type_input?: Database['public']['Enums']['enum_integration_type'];
|
|
1468
1464
|
};
|
|
1469
1465
|
Returns: Json;
|
|
1470
1466
|
};
|
|
@@ -1473,7 +1469,7 @@ export type Database = {
|
|
|
1473
1469
|
org_id_input: string;
|
|
1474
1470
|
chat_ids_input?: string[];
|
|
1475
1471
|
};
|
|
1476
|
-
Returns:
|
|
1472
|
+
Returns: unknown;
|
|
1477
1473
|
};
|
|
1478
1474
|
get_chat_members: {
|
|
1479
1475
|
Args: {
|
|
@@ -1576,11 +1572,11 @@ export type Database = {
|
|
|
1576
1572
|
};
|
|
1577
1573
|
list_org_from_user: {
|
|
1578
1574
|
Args: Record<PropertyKey, never>;
|
|
1579
|
-
Returns:
|
|
1575
|
+
Returns: unknown;
|
|
1580
1576
|
};
|
|
1581
1577
|
list_role_from_user: {
|
|
1582
1578
|
Args: Record<PropertyKey, never>;
|
|
1583
|
-
Returns: Database[
|
|
1579
|
+
Returns: Database['public']['Enums']['enum_member_role'];
|
|
1584
1580
|
};
|
|
1585
1581
|
update_labels: {
|
|
1586
1582
|
Args: {
|
|
@@ -1594,11 +1590,11 @@ export type Database = {
|
|
|
1594
1590
|
};
|
|
1595
1591
|
};
|
|
1596
1592
|
Enums: {
|
|
1597
|
-
enum_chat_colors:
|
|
1598
|
-
enum_chat_tickets_status:
|
|
1599
|
-
enum_integration_name:
|
|
1600
|
-
enum_integration_type:
|
|
1601
|
-
enum_member_role:
|
|
1593
|
+
enum_chat_colors: '#B4876E' | '#A5B337' | '#06CF9C' | '#25D366' | '#02A698' | '#7D9EF1' | '#007BFC' | '#5E47DE' | '#7F66FF' | '#9333EA' | '#FA6533' | '#C4532D' | '#DC2626' | '#FF2E74' | '#DB2777';
|
|
1594
|
+
enum_chat_tickets_status: 'open' | 'inprogress' | 'closed' | 'archived';
|
|
1595
|
+
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';
|
|
1596
|
+
enum_integration_type: 'zapier' | 'pabbly' | 'api' | 'webhook' | 'hubspot' | 'freshdesk' | 'slack' | 'jira' | 'salesforce';
|
|
1597
|
+
enum_member_role: 'admin' | 'member';
|
|
1602
1598
|
};
|
|
1603
1599
|
CompositeTypes: {
|
|
1604
1600
|
[_ in never]: never;
|
|
@@ -1642,10 +1638,10 @@ export type Database = {
|
|
|
1642
1638
|
};
|
|
1643
1639
|
Relationships: [
|
|
1644
1640
|
{
|
|
1645
|
-
foreignKeyName:
|
|
1646
|
-
columns: [
|
|
1647
|
-
referencedRelation:
|
|
1648
|
-
referencedColumns: [
|
|
1641
|
+
foreignKeyName: 'buckets_owner_fkey';
|
|
1642
|
+
columns: ['owner'];
|
|
1643
|
+
referencedRelation: 'users';
|
|
1644
|
+
referencedColumns: ['id'];
|
|
1649
1645
|
}
|
|
1650
1646
|
];
|
|
1651
1647
|
};
|
|
@@ -1709,10 +1705,10 @@ export type Database = {
|
|
|
1709
1705
|
};
|
|
1710
1706
|
Relationships: [
|
|
1711
1707
|
{
|
|
1712
|
-
foreignKeyName:
|
|
1713
|
-
columns: [
|
|
1714
|
-
referencedRelation:
|
|
1715
|
-
referencedColumns: [
|
|
1708
|
+
foreignKeyName: 'objects_bucketId_fkey';
|
|
1709
|
+
columns: ['bucket_id'];
|
|
1710
|
+
referencedRelation: 'buckets';
|
|
1711
|
+
referencedColumns: ['id'];
|
|
1716
1712
|
}
|
|
1717
1713
|
];
|
|
1718
1714
|
};
|
|
@@ -1746,7 +1742,7 @@ export type Database = {
|
|
|
1746
1742
|
Args: {
|
|
1747
1743
|
name: string;
|
|
1748
1744
|
};
|
|
1749
|
-
Returns:
|
|
1745
|
+
Returns: unknown;
|
|
1750
1746
|
};
|
|
1751
1747
|
get_size_by_bucket: {
|
|
1752
1748
|
Args: Record<PropertyKey, never>;
|
|
@@ -1784,45 +1780,45 @@ export type Database = {
|
|
|
1784
1780
|
};
|
|
1785
1781
|
};
|
|
1786
1782
|
};
|
|
1787
|
-
type PublicSchema = Database[Extract<keyof Database,
|
|
1788
|
-
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
1783
|
+
type PublicSchema = Database[Extract<keyof Database, 'public'>];
|
|
1784
|
+
export type Tables<PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) | {
|
|
1789
1785
|
schema: keyof Database;
|
|
1790
1786
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1791
1787
|
schema: keyof Database;
|
|
1792
|
-
} ? keyof (Database[PublicTableNameOrOptions[
|
|
1788
|
+
} ? keyof (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views']) : never = never> = PublicTableNameOrOptions extends {
|
|
1793
1789
|
schema: keyof Database;
|
|
1794
|
-
} ? (Database[PublicTableNameOrOptions[
|
|
1790
|
+
} ? (Database[PublicTableNameOrOptions['schema']]['Tables'] & Database[PublicTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
|
1795
1791
|
Row: infer R;
|
|
1796
|
-
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema[
|
|
1792
|
+
} ? R : never : PublicTableNameOrOptions extends keyof (PublicSchema['Tables'] & PublicSchema['Views']) ? (PublicSchema['Tables'] & PublicSchema['Views'])[PublicTableNameOrOptions] extends {
|
|
1797
1793
|
Row: infer R;
|
|
1798
1794
|
} ? R : never : never;
|
|
1799
|
-
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1795
|
+
export type TablesInsert<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
|
|
1800
1796
|
schema: keyof Database;
|
|
1801
1797
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1802
1798
|
schema: keyof Database;
|
|
1803
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
1799
|
+
} ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] : never = never> = PublicTableNameOrOptions extends {
|
|
1804
1800
|
schema: keyof Database;
|
|
1805
|
-
} ? Database[PublicTableNameOrOptions[
|
|
1801
|
+
} ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
1806
1802
|
Insert: infer I;
|
|
1807
|
-
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1803
|
+
} ? I : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
|
|
1808
1804
|
Insert: infer I;
|
|
1809
1805
|
} ? I : never : never;
|
|
1810
|
-
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1806
|
+
export type TablesUpdate<PublicTableNameOrOptions extends keyof PublicSchema['Tables'] | {
|
|
1811
1807
|
schema: keyof Database;
|
|
1812
1808
|
}, TableName extends PublicTableNameOrOptions extends {
|
|
1813
1809
|
schema: keyof Database;
|
|
1814
|
-
} ? keyof Database[PublicTableNameOrOptions[
|
|
1810
|
+
} ? keyof Database[PublicTableNameOrOptions['schema']]['Tables'] : never = never> = PublicTableNameOrOptions extends {
|
|
1815
1811
|
schema: keyof Database;
|
|
1816
|
-
} ? Database[PublicTableNameOrOptions[
|
|
1812
|
+
} ? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
1817
1813
|
Update: infer U;
|
|
1818
|
-
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema[
|
|
1814
|
+
} ? U : never : PublicTableNameOrOptions extends keyof PublicSchema['Tables'] ? PublicSchema['Tables'][PublicTableNameOrOptions] extends {
|
|
1819
1815
|
Update: infer U;
|
|
1820
1816
|
} ? U : never : never;
|
|
1821
|
-
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema[
|
|
1817
|
+
export type Enums<PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] | {
|
|
1822
1818
|
schema: keyof Database;
|
|
1823
1819
|
}, EnumName extends PublicEnumNameOrOptions extends {
|
|
1824
1820
|
schema: keyof Database;
|
|
1825
|
-
} ? keyof Database[PublicEnumNameOrOptions[
|
|
1821
|
+
} ? keyof Database[PublicEnumNameOrOptions['schema']]['Enums'] : never = never> = PublicEnumNameOrOptions extends {
|
|
1826
1822
|
schema: keyof Database;
|
|
1827
|
-
} ? Database[PublicEnumNameOrOptions[
|
|
1823
|
+
} ? Database[PublicEnumNameOrOptions['schema']]['Enums'][EnumName] : PublicEnumNameOrOptions extends keyof PublicSchema['Enums'] ? PublicSchema['Enums'][PublicEnumNameOrOptions] : never;
|
|
1828
1824
|
export {};
|