@periskope/types 0.6.35 → 0.6.37
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 +59 -8
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
- package/supabase.types.ts +59 -8
- package/types.ts +2 -2
package/dist/supabase.types.d.ts
CHANGED
|
@@ -37,9 +37,8 @@ export interface Database {
|
|
|
37
37
|
created_at: string;
|
|
38
38
|
message_payload: Json | null;
|
|
39
39
|
org_id: string;
|
|
40
|
+
performed_by: string | null;
|
|
40
41
|
scheduled_at: string | null;
|
|
41
|
-
sent_by: string | null;
|
|
42
|
-
status: string | null;
|
|
43
42
|
};
|
|
44
43
|
Insert: {
|
|
45
44
|
broadcast_id?: string;
|
|
@@ -48,9 +47,8 @@ export interface Database {
|
|
|
48
47
|
created_at?: string;
|
|
49
48
|
message_payload?: Json | null;
|
|
50
49
|
org_id?: string;
|
|
50
|
+
performed_by?: string | null;
|
|
51
51
|
scheduled_at?: string | null;
|
|
52
|
-
sent_by?: string | null;
|
|
53
|
-
status?: string | null;
|
|
54
52
|
};
|
|
55
53
|
Update: {
|
|
56
54
|
broadcast_id?: string;
|
|
@@ -59,9 +57,8 @@ export interface Database {
|
|
|
59
57
|
created_at?: string;
|
|
60
58
|
message_payload?: Json | null;
|
|
61
59
|
org_id?: string;
|
|
60
|
+
performed_by?: string | null;
|
|
62
61
|
scheduled_at?: string | null;
|
|
63
|
-
sent_by?: string | null;
|
|
64
|
-
status?: string | null;
|
|
65
62
|
};
|
|
66
63
|
Relationships: [
|
|
67
64
|
{
|
|
@@ -851,12 +848,11 @@ export interface Database {
|
|
|
851
848
|
failed_chats: number | null;
|
|
852
849
|
message_payload: Json | null;
|
|
853
850
|
org_id: string | null;
|
|
851
|
+
performed_by: string | null;
|
|
854
852
|
read_member_count: number | null;
|
|
855
853
|
read_percentage: number | null;
|
|
856
854
|
scheduled_at: string | null;
|
|
857
|
-
sent_by: string | null;
|
|
858
855
|
sent_chats: number | null;
|
|
859
|
-
status: string | null;
|
|
860
856
|
total_chats: number | null;
|
|
861
857
|
total_member_count: number | null;
|
|
862
858
|
};
|
|
@@ -877,6 +873,7 @@ export interface Database {
|
|
|
877
873
|
chat_id: string | null;
|
|
878
874
|
chat_image: string | null;
|
|
879
875
|
chat_name: string | null;
|
|
876
|
+
chat_org_phones: string[] | null;
|
|
880
877
|
chat_type: string | null;
|
|
881
878
|
group_metadata: Json | null;
|
|
882
879
|
has_access: boolean | null;
|
|
@@ -909,6 +906,47 @@ export interface Database {
|
|
|
909
906
|
}
|
|
910
907
|
];
|
|
911
908
|
};
|
|
909
|
+
view_contacts: {
|
|
910
|
+
Row: {
|
|
911
|
+
business_profile: Json | null;
|
|
912
|
+
chat_count: number | null;
|
|
913
|
+
chat_ids: string[] | null;
|
|
914
|
+
contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null;
|
|
915
|
+
contact_id: string | null;
|
|
916
|
+
contact_image: string | null;
|
|
917
|
+
contact_name: string | null;
|
|
918
|
+
contact_type: string | null;
|
|
919
|
+
id: Json | null;
|
|
920
|
+
is_blocked: boolean | null;
|
|
921
|
+
is_business: boolean | null;
|
|
922
|
+
is_enterprise: boolean | null;
|
|
923
|
+
is_group: boolean | null;
|
|
924
|
+
is_internal: boolean | null;
|
|
925
|
+
is_me: boolean | null;
|
|
926
|
+
is_my_contact: boolean | null;
|
|
927
|
+
is_user: boolean | null;
|
|
928
|
+
is_wa_contact: boolean | null;
|
|
929
|
+
label_ids: Json | null;
|
|
930
|
+
last_updated_at: string | null;
|
|
931
|
+
name: string | null;
|
|
932
|
+
number: string | null;
|
|
933
|
+
org_id: string | null;
|
|
934
|
+
pushname: string | null;
|
|
935
|
+
short_name: string | null;
|
|
936
|
+
updated_at: string | null;
|
|
937
|
+
verified_level: number | null;
|
|
938
|
+
verified_name: string | null;
|
|
939
|
+
};
|
|
940
|
+
Relationships: [
|
|
941
|
+
{
|
|
942
|
+
foreignKeyName: "tbl_contacts_org_id_fkey";
|
|
943
|
+
columns: ["org_id"];
|
|
944
|
+
isOneToOne: false;
|
|
945
|
+
referencedRelation: "tbl_org";
|
|
946
|
+
referencedColumns: ["org_id"];
|
|
947
|
+
}
|
|
948
|
+
];
|
|
949
|
+
};
|
|
912
950
|
};
|
|
913
951
|
Functions: {
|
|
914
952
|
gen_id: {
|
|
@@ -930,6 +968,12 @@ export interface Database {
|
|
|
930
968
|
};
|
|
931
969
|
Returns: Json;
|
|
932
970
|
};
|
|
971
|
+
get_chat_labels_data: {
|
|
972
|
+
Args: {
|
|
973
|
+
chat_ids_input?: string[];
|
|
974
|
+
};
|
|
975
|
+
Returns: unknown;
|
|
976
|
+
};
|
|
933
977
|
get_chats: {
|
|
934
978
|
Args: {
|
|
935
979
|
chat_id_input?: string[];
|
|
@@ -951,6 +995,13 @@ export interface Database {
|
|
|
951
995
|
};
|
|
952
996
|
Returns: Json;
|
|
953
997
|
};
|
|
998
|
+
get_export_chats_data: {
|
|
999
|
+
Args: {
|
|
1000
|
+
chat_ids: string[];
|
|
1001
|
+
org_id_input?: string;
|
|
1002
|
+
};
|
|
1003
|
+
Returns: Json;
|
|
1004
|
+
};
|
|
954
1005
|
get_media: {
|
|
955
1006
|
Args: {
|
|
956
1007
|
filters?: Json;
|
package/dist/types.d.ts
CHANGED
|
@@ -25,8 +25,8 @@ export type ChatType = Merge<Tables<'view_chats'>, {
|
|
|
25
25
|
}>;
|
|
26
26
|
export type MediaType = {
|
|
27
27
|
path: string;
|
|
28
|
-
mimetype
|
|
29
|
-
filename
|
|
28
|
+
mimetype?: string;
|
|
29
|
+
filename?: string;
|
|
30
30
|
};
|
|
31
31
|
export type MessageType = OverrideProperties<Tables<'tbl_chat_messages'>, {
|
|
32
32
|
message_type: MessageTypes;
|
package/package.json
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -36,9 +36,8 @@ export interface Database {
|
|
|
36
36
|
created_at: string
|
|
37
37
|
message_payload: Json | null
|
|
38
38
|
org_id: string
|
|
39
|
+
performed_by: string | null
|
|
39
40
|
scheduled_at: string | null
|
|
40
|
-
sent_by: string | null
|
|
41
|
-
status: string | null
|
|
42
41
|
}
|
|
43
42
|
Insert: {
|
|
44
43
|
broadcast_id?: string
|
|
@@ -47,9 +46,8 @@ export interface Database {
|
|
|
47
46
|
created_at?: string
|
|
48
47
|
message_payload?: Json | null
|
|
49
48
|
org_id?: string
|
|
49
|
+
performed_by?: string | null
|
|
50
50
|
scheduled_at?: string | null
|
|
51
|
-
sent_by?: string | null
|
|
52
|
-
status?: string | null
|
|
53
51
|
}
|
|
54
52
|
Update: {
|
|
55
53
|
broadcast_id?: string
|
|
@@ -58,9 +56,8 @@ export interface Database {
|
|
|
58
56
|
created_at?: string
|
|
59
57
|
message_payload?: Json | null
|
|
60
58
|
org_id?: string
|
|
59
|
+
performed_by?: string | null
|
|
61
60
|
scheduled_at?: string | null
|
|
62
|
-
sent_by?: string | null
|
|
63
|
-
status?: string | null
|
|
64
61
|
}
|
|
65
62
|
Relationships: [
|
|
66
63
|
{
|
|
@@ -854,12 +851,11 @@ export interface Database {
|
|
|
854
851
|
failed_chats: number | null
|
|
855
852
|
message_payload: Json | null
|
|
856
853
|
org_id: string | null
|
|
854
|
+
performed_by: string | null
|
|
857
855
|
read_member_count: number | null
|
|
858
856
|
read_percentage: number | null
|
|
859
857
|
scheduled_at: string | null
|
|
860
|
-
sent_by: string | null
|
|
861
858
|
sent_chats: number | null
|
|
862
|
-
status: string | null
|
|
863
859
|
total_chats: number | null
|
|
864
860
|
total_member_count: number | null
|
|
865
861
|
}
|
|
@@ -880,6 +876,7 @@ export interface Database {
|
|
|
880
876
|
chat_id: string | null
|
|
881
877
|
chat_image: string | null
|
|
882
878
|
chat_name: string | null
|
|
879
|
+
chat_org_phones: string[] | null
|
|
883
880
|
chat_type: string | null
|
|
884
881
|
group_metadata: Json | null
|
|
885
882
|
has_access: boolean | null
|
|
@@ -912,6 +909,47 @@ export interface Database {
|
|
|
912
909
|
}
|
|
913
910
|
]
|
|
914
911
|
}
|
|
912
|
+
view_contacts: {
|
|
913
|
+
Row: {
|
|
914
|
+
business_profile: Json | null
|
|
915
|
+
chat_count: number | null
|
|
916
|
+
chat_ids: string[] | null
|
|
917
|
+
contact_color: Database["public"]["Enums"]["enum_chat_colors"] | null
|
|
918
|
+
contact_id: string | null
|
|
919
|
+
contact_image: string | null
|
|
920
|
+
contact_name: string | null
|
|
921
|
+
contact_type: string | null
|
|
922
|
+
id: Json | null
|
|
923
|
+
is_blocked: boolean | null
|
|
924
|
+
is_business: boolean | null
|
|
925
|
+
is_enterprise: boolean | null
|
|
926
|
+
is_group: boolean | null
|
|
927
|
+
is_internal: boolean | null
|
|
928
|
+
is_me: boolean | null
|
|
929
|
+
is_my_contact: boolean | null
|
|
930
|
+
is_user: boolean | null
|
|
931
|
+
is_wa_contact: boolean | null
|
|
932
|
+
label_ids: Json | null
|
|
933
|
+
last_updated_at: string | null
|
|
934
|
+
name: string | null
|
|
935
|
+
number: string | null
|
|
936
|
+
org_id: string | null
|
|
937
|
+
pushname: string | null
|
|
938
|
+
short_name: string | null
|
|
939
|
+
updated_at: string | null
|
|
940
|
+
verified_level: number | null
|
|
941
|
+
verified_name: string | null
|
|
942
|
+
}
|
|
943
|
+
Relationships: [
|
|
944
|
+
{
|
|
945
|
+
foreignKeyName: "tbl_contacts_org_id_fkey"
|
|
946
|
+
columns: ["org_id"]
|
|
947
|
+
isOneToOne: false
|
|
948
|
+
referencedRelation: "tbl_org"
|
|
949
|
+
referencedColumns: ["org_id"]
|
|
950
|
+
}
|
|
951
|
+
]
|
|
952
|
+
}
|
|
915
953
|
}
|
|
916
954
|
Functions: {
|
|
917
955
|
gen_id: {
|
|
@@ -933,6 +971,12 @@ export interface Database {
|
|
|
933
971
|
}
|
|
934
972
|
Returns: Json
|
|
935
973
|
}
|
|
974
|
+
get_chat_labels_data: {
|
|
975
|
+
Args: {
|
|
976
|
+
chat_ids_input?: string[]
|
|
977
|
+
}
|
|
978
|
+
Returns: unknown
|
|
979
|
+
}
|
|
936
980
|
get_chats: {
|
|
937
981
|
Args: {
|
|
938
982
|
chat_id_input?: string[]
|
|
@@ -954,6 +998,13 @@ export interface Database {
|
|
|
954
998
|
}
|
|
955
999
|
Returns: Json
|
|
956
1000
|
}
|
|
1001
|
+
get_export_chats_data: {
|
|
1002
|
+
Args: {
|
|
1003
|
+
chat_ids: string[]
|
|
1004
|
+
org_id_input?: string
|
|
1005
|
+
}
|
|
1006
|
+
Returns: Json
|
|
1007
|
+
}
|
|
957
1008
|
get_media: {
|
|
958
1009
|
Args: {
|
|
959
1010
|
filters?: Json
|
package/types.ts
CHANGED