@periskope/types 0.6.33 → 0.6.35
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 +3 -0
- package/dist/types.d.ts +19 -13
- package/package.json +1 -1
- package/supabase.types.ts +3 -0
- package/types.ts +28 -18
package/dist/supabase.types.d.ts
CHANGED
|
@@ -847,11 +847,14 @@ export interface Database {
|
|
|
847
847
|
broadcast_id: string | null;
|
|
848
848
|
completed_at: string | null;
|
|
849
849
|
delivered_member_count: number | null;
|
|
850
|
+
delivery_percentage: number | null;
|
|
850
851
|
failed_chats: number | null;
|
|
851
852
|
message_payload: Json | null;
|
|
852
853
|
org_id: string | null;
|
|
853
854
|
read_member_count: number | null;
|
|
855
|
+
read_percentage: number | null;
|
|
854
856
|
scheduled_at: string | null;
|
|
857
|
+
sent_by: string | null;
|
|
855
858
|
sent_chats: number | null;
|
|
856
859
|
status: string | null;
|
|
857
860
|
total_chats: number | null;
|
package/dist/types.d.ts
CHANGED
|
@@ -46,11 +46,7 @@ export declare const enumChatColors: readonly ["#B4876E", "#A5B337", "#06CF9C",
|
|
|
46
46
|
export type SendMessageContent = {
|
|
47
47
|
message_type?: 'chat' | 'audio' | 'ptt' | 'image' | 'video' | 'document' | 'sticker' | 'location' | 'vcard';
|
|
48
48
|
body?: string;
|
|
49
|
-
media?:
|
|
50
|
-
url: string;
|
|
51
|
-
mimetype?: string;
|
|
52
|
-
filename?: string;
|
|
53
|
-
};
|
|
49
|
+
media?: MediaType;
|
|
54
50
|
contact_ids?: string[];
|
|
55
51
|
location?: Location;
|
|
56
52
|
quoted_message_id?: string;
|
|
@@ -68,15 +64,25 @@ export type SingleMessagePayload = SendMessageContent & {
|
|
|
68
64
|
chat_id: string;
|
|
69
65
|
job_id?: string;
|
|
70
66
|
};
|
|
67
|
+
export type AttachmentTypeProps = {
|
|
68
|
+
result: string;
|
|
69
|
+
file: File | null;
|
|
70
|
+
type: 'image' | 'audio' | 'document' | 'video';
|
|
71
|
+
};
|
|
72
|
+
export type LogsType = {
|
|
73
|
+
chat_id: string | null;
|
|
74
|
+
message_id: string | null;
|
|
75
|
+
read_count: number | null;
|
|
76
|
+
total_count: number | null;
|
|
77
|
+
delivery_info: MessageInfo | null;
|
|
78
|
+
delivered_count: number | null;
|
|
79
|
+
chat_image: string | null;
|
|
80
|
+
chat_name: string | null;
|
|
81
|
+
members: Partial<ChatMemberType>[];
|
|
82
|
+
member_count: number | null;
|
|
83
|
+
};
|
|
71
84
|
export type BroadcastLogType = Tables<'view_broadcast_logs'> & {
|
|
72
|
-
logs:
|
|
73
|
-
chat_id: string;
|
|
74
|
-
message_id: string | null;
|
|
75
|
-
read_count: number | null;
|
|
76
|
-
total_count: number | null;
|
|
77
|
-
delivery_info: MessageInfo | null;
|
|
78
|
-
delivered_count: number | null;
|
|
79
|
-
};
|
|
85
|
+
logs: LogsType[];
|
|
80
86
|
};
|
|
81
87
|
export type ChatParticipantOperation = {
|
|
82
88
|
participant_ids: string[];
|
package/package.json
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -850,11 +850,14 @@ export interface Database {
|
|
|
850
850
|
broadcast_id: string | null
|
|
851
851
|
completed_at: string | null
|
|
852
852
|
delivered_member_count: number | null
|
|
853
|
+
delivery_percentage: number | null
|
|
853
854
|
failed_chats: number | null
|
|
854
855
|
message_payload: Json | null
|
|
855
856
|
org_id: string | null
|
|
856
857
|
read_member_count: number | null
|
|
858
|
+
read_percentage: number | null
|
|
857
859
|
scheduled_at: string | null
|
|
860
|
+
sent_by: string | null
|
|
858
861
|
sent_chats: number | null
|
|
859
862
|
status: string | null
|
|
860
863
|
total_chats: number | null
|
package/types.ts
CHANGED
|
@@ -53,9 +53,12 @@ export type MessageType = OverrideProperties<
|
|
|
53
53
|
media: MediaType | null;
|
|
54
54
|
}
|
|
55
55
|
>;
|
|
56
|
-
export type TicketType = OverrideProperties<
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
export type TicketType = OverrideProperties<
|
|
57
|
+
Tables<'tbl_chat_tickets'>,
|
|
58
|
+
{
|
|
59
|
+
label_ids: Record<string, boolean>;
|
|
60
|
+
}
|
|
61
|
+
>;
|
|
59
62
|
export type ContactType = Merge<
|
|
60
63
|
Tables<'tbl_contacts'>,
|
|
61
64
|
{
|
|
@@ -112,11 +115,7 @@ export type SendMessageContent = {
|
|
|
112
115
|
| 'location'
|
|
113
116
|
| 'vcard';
|
|
114
117
|
body?: string;
|
|
115
|
-
media?:
|
|
116
|
-
url: string;
|
|
117
|
-
mimetype?: string;
|
|
118
|
-
filename?: string;
|
|
119
|
-
};
|
|
118
|
+
media?: MediaType;
|
|
120
119
|
contact_ids?: string[];
|
|
121
120
|
location?: Location;
|
|
122
121
|
quoted_message_id?: string;
|
|
@@ -138,19 +137,30 @@ export type SingleMessagePayload = SendMessageContent & {
|
|
|
138
137
|
job_id?: string;
|
|
139
138
|
};
|
|
140
139
|
|
|
140
|
+
export type AttachmentTypeProps = {
|
|
141
|
+
result: string;
|
|
142
|
+
file: File | null;
|
|
143
|
+
type: 'image' | 'audio' | 'document' | 'video';
|
|
144
|
+
};
|
|
145
|
+
|
|
141
146
|
/* -------------------------------- BROADCAST ------------------------------- */
|
|
142
147
|
|
|
143
|
-
export type
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
148
|
+
export type LogsType = {
|
|
149
|
+
chat_id: string | null;
|
|
150
|
+
message_id: string | null;
|
|
151
|
+
read_count: number | null;
|
|
152
|
+
total_count: number | null;
|
|
153
|
+
delivery_info: MessageInfo | null;
|
|
154
|
+
delivered_count: number | null;
|
|
155
|
+
chat_image: string | null;
|
|
156
|
+
chat_name: string | null;
|
|
157
|
+
members: Partial<ChatMemberType>[];
|
|
158
|
+
member_count: number | null;
|
|
159
|
+
};
|
|
153
160
|
|
|
161
|
+
export type BroadcastLogType = Tables<'view_broadcast_logs'> & {
|
|
162
|
+
logs: LogsType[];
|
|
163
|
+
};
|
|
154
164
|
|
|
155
165
|
/* ----------------------- CHAT PARTICIPANT OPERATION ----------------------- */
|
|
156
166
|
|