@periskope/types 0.6.41 → 0.6.43
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 +15 -61
- package/dist/types.d.ts +1 -3
- package/package.json +1 -1
- package/supabase.types.ts +15 -61
- package/types.ts +1 -3
package/dist/supabase.types.d.ts
CHANGED
|
@@ -807,7 +807,7 @@ export interface Database {
|
|
|
807
807
|
phone_name: string | null;
|
|
808
808
|
qr_code: string | null;
|
|
809
809
|
server_ip: string | null;
|
|
810
|
-
updated_at: string;
|
|
810
|
+
updated_at: string | null;
|
|
811
811
|
wa_state: string | null;
|
|
812
812
|
};
|
|
813
813
|
Insert: {
|
|
@@ -820,7 +820,7 @@ export interface Database {
|
|
|
820
820
|
phone_name?: string | null;
|
|
821
821
|
qr_code?: string | null;
|
|
822
822
|
server_ip?: string | null;
|
|
823
|
-
updated_at?: string;
|
|
823
|
+
updated_at?: string | null;
|
|
824
824
|
wa_state?: string | null;
|
|
825
825
|
};
|
|
826
826
|
Update: {
|
|
@@ -833,7 +833,7 @@ export interface Database {
|
|
|
833
833
|
phone_name?: string | null;
|
|
834
834
|
qr_code?: string | null;
|
|
835
835
|
server_ip?: string | null;
|
|
836
|
-
updated_at?: string;
|
|
836
|
+
updated_at?: string | null;
|
|
837
837
|
wa_state?: string | null;
|
|
838
838
|
};
|
|
839
839
|
Relationships: [
|
|
@@ -913,64 +913,6 @@ export interface Database {
|
|
|
913
913
|
updated_at: string | null;
|
|
914
914
|
vcards: string[] | null;
|
|
915
915
|
};
|
|
916
|
-
Insert: {
|
|
917
|
-
ack?: string | null;
|
|
918
|
-
author?: string | null;
|
|
919
|
-
body?: string | null;
|
|
920
|
-
broadcast_id?: string | null;
|
|
921
|
-
chat_id?: string | null;
|
|
922
|
-
delivery_info?: Json | null;
|
|
923
|
-
from_me?: boolean | null;
|
|
924
|
-
invite_v4?: Json | null;
|
|
925
|
-
is_deleted?: boolean | null;
|
|
926
|
-
links?: Json | null;
|
|
927
|
-
location?: Json | null;
|
|
928
|
-
media?: Json | null;
|
|
929
|
-
mentioned_ids?: string[] | null;
|
|
930
|
-
message_id?: string | null;
|
|
931
|
-
message_ticket_id?: string | null;
|
|
932
|
-
message_type?: string | null;
|
|
933
|
-
org_id?: string | null;
|
|
934
|
-
org_phone?: string | null;
|
|
935
|
-
performed_by?: string | null;
|
|
936
|
-
prev_body?: string | null;
|
|
937
|
-
quoted_message_id?: string | null;
|
|
938
|
-
sender_phone?: string | null;
|
|
939
|
-
sent_message_id?: string | null;
|
|
940
|
-
timestamp?: string | null;
|
|
941
|
-
unique_id?: string | null;
|
|
942
|
-
updated_at?: string | null;
|
|
943
|
-
vcards?: string[] | null;
|
|
944
|
-
};
|
|
945
|
-
Update: {
|
|
946
|
-
ack?: string | null;
|
|
947
|
-
author?: string | null;
|
|
948
|
-
body?: string | null;
|
|
949
|
-
broadcast_id?: string | null;
|
|
950
|
-
chat_id?: string | null;
|
|
951
|
-
delivery_info?: Json | null;
|
|
952
|
-
from_me?: boolean | null;
|
|
953
|
-
invite_v4?: Json | null;
|
|
954
|
-
is_deleted?: boolean | null;
|
|
955
|
-
links?: Json | null;
|
|
956
|
-
location?: Json | null;
|
|
957
|
-
media?: Json | null;
|
|
958
|
-
mentioned_ids?: string[] | null;
|
|
959
|
-
message_id?: string | null;
|
|
960
|
-
message_ticket_id?: string | null;
|
|
961
|
-
message_type?: string | null;
|
|
962
|
-
org_id?: string | null;
|
|
963
|
-
org_phone?: string | null;
|
|
964
|
-
performed_by?: string | null;
|
|
965
|
-
prev_body?: string | null;
|
|
966
|
-
quoted_message_id?: string | null;
|
|
967
|
-
sender_phone?: string | null;
|
|
968
|
-
sent_message_id?: string | null;
|
|
969
|
-
timestamp?: string | null;
|
|
970
|
-
unique_id?: string | null;
|
|
971
|
-
updated_at?: string | null;
|
|
972
|
-
vcards?: string[] | null;
|
|
973
|
-
};
|
|
974
916
|
Relationships: [
|
|
975
917
|
{
|
|
976
918
|
foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones";
|
|
@@ -1029,6 +971,7 @@ export interface Database {
|
|
|
1029
971
|
Args: {
|
|
1030
972
|
broadcast_id_input: string;
|
|
1031
973
|
chat_id_input?: string;
|
|
974
|
+
org_id_input?: string;
|
|
1032
975
|
};
|
|
1033
976
|
Returns: Json;
|
|
1034
977
|
};
|
|
@@ -1043,6 +986,7 @@ export interface Database {
|
|
|
1043
986
|
chat_id_input?: string[];
|
|
1044
987
|
with_metadata?: boolean;
|
|
1045
988
|
last_updated_at_input?: string;
|
|
989
|
+
org_id_input?: string;
|
|
1046
990
|
};
|
|
1047
991
|
Returns: Json;
|
|
1048
992
|
};
|
|
@@ -1060,6 +1004,16 @@ export interface Database {
|
|
|
1060
1004
|
};
|
|
1061
1005
|
Returns: Json;
|
|
1062
1006
|
};
|
|
1007
|
+
get_messages_notifications_reactions: {
|
|
1008
|
+
Args: {
|
|
1009
|
+
chat_id_input?: string[];
|
|
1010
|
+
message_limit_input?: number;
|
|
1011
|
+
reaction_notification_limit_input?: number;
|
|
1012
|
+
org_id_input?: string;
|
|
1013
|
+
last_updated_at_input?: string;
|
|
1014
|
+
};
|
|
1015
|
+
Returns: Json;
|
|
1016
|
+
};
|
|
1063
1017
|
get_org: {
|
|
1064
1018
|
Args: {
|
|
1065
1019
|
org_id_input?: string;
|
package/dist/types.d.ts
CHANGED
|
@@ -86,13 +86,11 @@ export type LogsType = {
|
|
|
86
86
|
total_count: number | null;
|
|
87
87
|
delivery_info: MessageInfo | null;
|
|
88
88
|
delivered_count: number | null;
|
|
89
|
-
chat_image: string | null;
|
|
90
|
-
chat_name: string | null;
|
|
91
89
|
members: Partial<ChatMemberType>[];
|
|
92
90
|
member_count: number | null;
|
|
93
91
|
};
|
|
94
92
|
export type BroadcastLogType = Tables<'view_broadcast_logs'> & {
|
|
95
|
-
logs: LogsType[];
|
|
93
|
+
logs: (LogsType & ChatType)[];
|
|
96
94
|
};
|
|
97
95
|
export type ChatParticipantOperation = {
|
|
98
96
|
participant_ids: string[];
|
package/package.json
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -810,7 +810,7 @@ export interface Database {
|
|
|
810
810
|
phone_name: string | null
|
|
811
811
|
qr_code: string | null
|
|
812
812
|
server_ip: string | null
|
|
813
|
-
updated_at: string
|
|
813
|
+
updated_at: string | null
|
|
814
814
|
wa_state: string | null
|
|
815
815
|
}
|
|
816
816
|
Insert: {
|
|
@@ -823,7 +823,7 @@ export interface Database {
|
|
|
823
823
|
phone_name?: string | null
|
|
824
824
|
qr_code?: string | null
|
|
825
825
|
server_ip?: string | null
|
|
826
|
-
updated_at?: string
|
|
826
|
+
updated_at?: string | null
|
|
827
827
|
wa_state?: string | null
|
|
828
828
|
}
|
|
829
829
|
Update: {
|
|
@@ -836,7 +836,7 @@ export interface Database {
|
|
|
836
836
|
phone_name?: string | null
|
|
837
837
|
qr_code?: string | null
|
|
838
838
|
server_ip?: string | null
|
|
839
|
-
updated_at?: string
|
|
839
|
+
updated_at?: string | null
|
|
840
840
|
wa_state?: string | null
|
|
841
841
|
}
|
|
842
842
|
Relationships: [
|
|
@@ -916,64 +916,6 @@ export interface Database {
|
|
|
916
916
|
updated_at: string | null
|
|
917
917
|
vcards: string[] | null
|
|
918
918
|
}
|
|
919
|
-
Insert: {
|
|
920
|
-
ack?: string | null
|
|
921
|
-
author?: string | null
|
|
922
|
-
body?: string | null
|
|
923
|
-
broadcast_id?: string | null
|
|
924
|
-
chat_id?: string | null
|
|
925
|
-
delivery_info?: Json | null
|
|
926
|
-
from_me?: boolean | null
|
|
927
|
-
invite_v4?: Json | null
|
|
928
|
-
is_deleted?: boolean | null
|
|
929
|
-
links?: Json | null
|
|
930
|
-
location?: Json | null
|
|
931
|
-
media?: Json | null
|
|
932
|
-
mentioned_ids?: string[] | null
|
|
933
|
-
message_id?: string | null
|
|
934
|
-
message_ticket_id?: string | null
|
|
935
|
-
message_type?: string | null
|
|
936
|
-
org_id?: string | null
|
|
937
|
-
org_phone?: string | null
|
|
938
|
-
performed_by?: string | null
|
|
939
|
-
prev_body?: string | null
|
|
940
|
-
quoted_message_id?: string | null
|
|
941
|
-
sender_phone?: string | null
|
|
942
|
-
sent_message_id?: string | null
|
|
943
|
-
timestamp?: string | null
|
|
944
|
-
unique_id?: string | null
|
|
945
|
-
updated_at?: string | null
|
|
946
|
-
vcards?: string[] | null
|
|
947
|
-
}
|
|
948
|
-
Update: {
|
|
949
|
-
ack?: string | null
|
|
950
|
-
author?: string | null
|
|
951
|
-
body?: string | null
|
|
952
|
-
broadcast_id?: string | null
|
|
953
|
-
chat_id?: string | null
|
|
954
|
-
delivery_info?: Json | null
|
|
955
|
-
from_me?: boolean | null
|
|
956
|
-
invite_v4?: Json | null
|
|
957
|
-
is_deleted?: boolean | null
|
|
958
|
-
links?: Json | null
|
|
959
|
-
location?: Json | null
|
|
960
|
-
media?: Json | null
|
|
961
|
-
mentioned_ids?: string[] | null
|
|
962
|
-
message_id?: string | null
|
|
963
|
-
message_ticket_id?: string | null
|
|
964
|
-
message_type?: string | null
|
|
965
|
-
org_id?: string | null
|
|
966
|
-
org_phone?: string | null
|
|
967
|
-
performed_by?: string | null
|
|
968
|
-
prev_body?: string | null
|
|
969
|
-
quoted_message_id?: string | null
|
|
970
|
-
sender_phone?: string | null
|
|
971
|
-
sent_message_id?: string | null
|
|
972
|
-
timestamp?: string | null
|
|
973
|
-
unique_id?: string | null
|
|
974
|
-
updated_at?: string | null
|
|
975
|
-
vcards?: string[] | null
|
|
976
|
-
}
|
|
977
919
|
Relationships: [
|
|
978
920
|
{
|
|
979
921
|
foreignKeyName: "tbl_chat_messages_fkey_tbl_org_phones"
|
|
@@ -1032,6 +974,7 @@ export interface Database {
|
|
|
1032
974
|
Args: {
|
|
1033
975
|
broadcast_id_input: string
|
|
1034
976
|
chat_id_input?: string
|
|
977
|
+
org_id_input?: string
|
|
1035
978
|
}
|
|
1036
979
|
Returns: Json
|
|
1037
980
|
}
|
|
@@ -1046,6 +989,7 @@ export interface Database {
|
|
|
1046
989
|
chat_id_input?: string[]
|
|
1047
990
|
with_metadata?: boolean
|
|
1048
991
|
last_updated_at_input?: string
|
|
992
|
+
org_id_input?: string
|
|
1049
993
|
}
|
|
1050
994
|
Returns: Json
|
|
1051
995
|
}
|
|
@@ -1063,6 +1007,16 @@ export interface Database {
|
|
|
1063
1007
|
}
|
|
1064
1008
|
Returns: Json
|
|
1065
1009
|
}
|
|
1010
|
+
get_messages_notifications_reactions: {
|
|
1011
|
+
Args: {
|
|
1012
|
+
chat_id_input?: string[]
|
|
1013
|
+
message_limit_input?: number
|
|
1014
|
+
reaction_notification_limit_input?: number
|
|
1015
|
+
org_id_input?: string
|
|
1016
|
+
last_updated_at_input?: string
|
|
1017
|
+
}
|
|
1018
|
+
Returns: Json
|
|
1019
|
+
}
|
|
1066
1020
|
get_org: {
|
|
1067
1021
|
Args: {
|
|
1068
1022
|
org_id_input?: string
|
package/types.ts
CHANGED
|
@@ -162,14 +162,12 @@ export type LogsType = {
|
|
|
162
162
|
total_count: number | null;
|
|
163
163
|
delivery_info: MessageInfo | null;
|
|
164
164
|
delivered_count: number | null;
|
|
165
|
-
chat_image: string | null;
|
|
166
|
-
chat_name: string | null;
|
|
167
165
|
members: Partial<ChatMemberType>[];
|
|
168
166
|
member_count: number | null;
|
|
169
167
|
};
|
|
170
168
|
|
|
171
169
|
export type BroadcastLogType = Tables<'view_broadcast_logs'> & {
|
|
172
|
-
logs: LogsType[];
|
|
170
|
+
logs: (LogsType & ChatType)[];
|
|
173
171
|
};
|
|
174
172
|
|
|
175
173
|
/* ----------------------- CHAT PARTICIPANT OPERATION ----------------------- */
|