@periskope/types 0.6.50 → 0.6.51
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.columns.d.ts +1 -1
- package/dist/supabase.columns.js +2 -1
- package/dist/supabase.types.d.ts +8 -0
- package/dist/types.d.ts +10 -0
- package/package.json +1 -1
- package/supabase.columns.ts +2 -1
- package/supabase.types.ts +8 -0
- package/types.ts +15 -1
|
@@ -15,5 +15,5 @@ export declare const TableColumns: {
|
|
|
15
15
|
readonly tbl_org_phones: readonly ["org_id", "org_phone", "created_at", "updated_at", "wa_state", "phone_id", "qr_code", "phone_image", "phone_name", "server_ip"];
|
|
16
16
|
readonly view_broadcast_logs: readonly ["broadcast_id", "org_id", "message_payload", "created_at", "total_chats", "sent_chats", "failed_chats", "total_member_count", "delivered_member_count", "read_member_count", "completed_at", "scheduled_at", "performed_by", "delivery_percentage", "read_percentage"];
|
|
17
17
|
readonly view_chat_messages: readonly ["message_id", "org_id", "ack", "author", "body", "from_me", "invite_v4", "links", "location", "mentioned_ids", "message_type", "vcards", "chat_id", "timestamp", "org_phone", "broadcast_id", "is_deleted", "media", "performed_by", "prev_body", "quoted_message_id", "sender_phone", "sent_message_id", "delivery_info", "updated_at", "message_ticket_id", "unique_id"];
|
|
18
|
-
readonly view_chats: readonly ["org_id", "chat_id", "org_phone", "chat_image", "invite_link", "label_ids", "updated_at", "chat_name", "latest_message", "message_unread_count", "member_count", "chat_type", "chat_access", "has_access", "last_read_timestamp", "chat_org_phones", "active_phone"];
|
|
18
|
+
readonly view_chats: readonly ["org_id", "chat_id", "org_phone", "chat_image", "invite_link", "label_ids", "updated_at", "chat_name", "latest_message", "message_unread_count", "member_count", "chat_type", "chat_access", "has_access", "last_read_timestamp", "chat_org_phones", "active_phone", "group_description"];
|
|
19
19
|
};
|
package/dist/supabase.columns.js
CHANGED
package/dist/supabase.types.d.ts
CHANGED
|
@@ -941,6 +941,7 @@ export interface Database {
|
|
|
941
941
|
chat_name: string | null;
|
|
942
942
|
chat_org_phones: string[] | null;
|
|
943
943
|
chat_type: string | null;
|
|
944
|
+
group_description: string | null;
|
|
944
945
|
has_access: boolean | null;
|
|
945
946
|
invite_link: string | null;
|
|
946
947
|
label_ids: Json | null;
|
|
@@ -1006,6 +1007,13 @@ export interface Database {
|
|
|
1006
1007
|
};
|
|
1007
1008
|
Returns: Json;
|
|
1008
1009
|
};
|
|
1010
|
+
get_dashboard_statistics: {
|
|
1011
|
+
Args: {
|
|
1012
|
+
type_input?: string;
|
|
1013
|
+
interval_input?: unknown;
|
|
1014
|
+
};
|
|
1015
|
+
Returns: Json;
|
|
1016
|
+
};
|
|
1009
1017
|
get_export_chats_data: {
|
|
1010
1018
|
Args: {
|
|
1011
1019
|
chat_ids: string[];
|
package/dist/types.d.ts
CHANGED
|
@@ -100,3 +100,13 @@ export type ChatParticipantOperation = {
|
|
|
100
100
|
export type ChatParticipantOperationPayload = ChatParticipantOperation & {
|
|
101
101
|
chat_ids: string[];
|
|
102
102
|
};
|
|
103
|
+
export type PhoneRealtimeChannel = {
|
|
104
|
+
loading: boolean;
|
|
105
|
+
state: string;
|
|
106
|
+
ready: boolean;
|
|
107
|
+
sync: boolean;
|
|
108
|
+
percent: number | null;
|
|
109
|
+
message?: string;
|
|
110
|
+
error?: string;
|
|
111
|
+
presence_ref?: string;
|
|
112
|
+
};
|
package/package.json
CHANGED
package/supabase.columns.ts
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -944,6 +944,7 @@ export interface Database {
|
|
|
944
944
|
chat_name: string | null
|
|
945
945
|
chat_org_phones: string[] | null
|
|
946
946
|
chat_type: string | null
|
|
947
|
+
group_description: string | null
|
|
947
948
|
has_access: boolean | null
|
|
948
949
|
invite_link: string | null
|
|
949
950
|
label_ids: Json | null
|
|
@@ -1009,6 +1010,13 @@ export interface Database {
|
|
|
1009
1010
|
}
|
|
1010
1011
|
Returns: Json
|
|
1011
1012
|
}
|
|
1013
|
+
get_dashboard_statistics: {
|
|
1014
|
+
Args: {
|
|
1015
|
+
type_input?: string
|
|
1016
|
+
interval_input?: unknown
|
|
1017
|
+
}
|
|
1018
|
+
Returns: Json
|
|
1019
|
+
}
|
|
1012
1020
|
get_export_chats_data: {
|
|
1013
1021
|
Args: {
|
|
1014
1022
|
chat_ids: string[]
|
package/types.ts
CHANGED
|
@@ -180,4 +180,18 @@ export type ChatParticipantOperation = {
|
|
|
180
180
|
|
|
181
181
|
export type ChatParticipantOperationPayload = ChatParticipantOperation & {
|
|
182
182
|
chat_ids: string[];
|
|
183
|
-
};
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
/* -------------------------------- REALTIME -------------------------------- */
|
|
187
|
+
|
|
188
|
+
export type PhoneRealtimeChannel = {
|
|
189
|
+
loading: boolean;
|
|
190
|
+
state: string;
|
|
191
|
+
ready: boolean;
|
|
192
|
+
sync: boolean;
|
|
193
|
+
percent: number | null;
|
|
194
|
+
message?: string;
|
|
195
|
+
error?: string;
|
|
196
|
+
presence_ref?: string;
|
|
197
|
+
}
|