@periskope/types 0.6.32 → 0.6.34
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 +9 -6
- package/dist/types.d.ts +18 -19
- package/package.json +1 -1
- package/supabase.types.ts +9 -6
- package/types.ts +27 -28
package/dist/supabase.types.d.ts
CHANGED
|
@@ -395,7 +395,7 @@ export interface Database {
|
|
|
395
395
|
ack: number | null;
|
|
396
396
|
chat_id: string | null;
|
|
397
397
|
id: Json | null;
|
|
398
|
-
message_id: string
|
|
398
|
+
message_id: string;
|
|
399
399
|
msg_id: Json | null;
|
|
400
400
|
org_id: string;
|
|
401
401
|
org_phone: string;
|
|
@@ -404,7 +404,7 @@ export interface Database {
|
|
|
404
404
|
reaction: string | null;
|
|
405
405
|
reaction_id: string;
|
|
406
406
|
read: boolean | null;
|
|
407
|
-
sender_id: string
|
|
407
|
+
sender_id: string;
|
|
408
408
|
timestamp: string | null;
|
|
409
409
|
unique_id: string | null;
|
|
410
410
|
};
|
|
@@ -412,7 +412,7 @@ export interface Database {
|
|
|
412
412
|
ack?: number | null;
|
|
413
413
|
chat_id?: string | null;
|
|
414
414
|
id?: Json | null;
|
|
415
|
-
message_id
|
|
415
|
+
message_id: string;
|
|
416
416
|
msg_id?: Json | null;
|
|
417
417
|
org_id: string;
|
|
418
418
|
org_phone: string;
|
|
@@ -421,7 +421,7 @@ export interface Database {
|
|
|
421
421
|
reaction?: string | null;
|
|
422
422
|
reaction_id: string;
|
|
423
423
|
read?: boolean | null;
|
|
424
|
-
sender_id
|
|
424
|
+
sender_id: string;
|
|
425
425
|
timestamp?: string | null;
|
|
426
426
|
unique_id?: string | null;
|
|
427
427
|
};
|
|
@@ -429,7 +429,7 @@ export interface Database {
|
|
|
429
429
|
ack?: number | null;
|
|
430
430
|
chat_id?: string | null;
|
|
431
431
|
id?: Json | null;
|
|
432
|
-
message_id?: string
|
|
432
|
+
message_id?: string;
|
|
433
433
|
msg_id?: Json | null;
|
|
434
434
|
org_id?: string;
|
|
435
435
|
org_phone?: string;
|
|
@@ -438,7 +438,7 @@ export interface Database {
|
|
|
438
438
|
reaction?: string | null;
|
|
439
439
|
reaction_id?: string;
|
|
440
440
|
read?: boolean | null;
|
|
441
|
-
sender_id?: string
|
|
441
|
+
sender_id?: string;
|
|
442
442
|
timestamp?: string | null;
|
|
443
443
|
unique_id?: string | null;
|
|
444
444
|
};
|
|
@@ -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,20 +64,23 @@ export type SingleMessagePayload = SendMessageContent & {
|
|
|
68
64
|
chat_id: string;
|
|
69
65
|
job_id?: string;
|
|
70
66
|
};
|
|
71
|
-
export type
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
read_count: number | null;
|
|
76
|
-
total_count: number | null;
|
|
77
|
-
delivery_info: MessageInfo | null;
|
|
78
|
-
delivered_count: number | null;
|
|
79
|
-
};
|
|
67
|
+
export type AttachmentTypeProps = {
|
|
68
|
+
result: string;
|
|
69
|
+
file: File | null;
|
|
70
|
+
type: 'image' | 'audio' | 'document' | 'video';
|
|
80
71
|
};
|
|
81
|
-
export type
|
|
82
|
-
|
|
83
|
-
|
|
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;
|
|
84
83
|
};
|
|
85
|
-
export type
|
|
86
|
-
|
|
84
|
+
export type BroadcastLogType = Tables<'view_broadcast_logs'> & {
|
|
85
|
+
logs: LogsType[];
|
|
87
86
|
};
|
package/package.json
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -394,7 +394,7 @@ export interface Database {
|
|
|
394
394
|
ack: number | null
|
|
395
395
|
chat_id: string | null
|
|
396
396
|
id: Json | null
|
|
397
|
-
message_id: string
|
|
397
|
+
message_id: string
|
|
398
398
|
msg_id: Json | null
|
|
399
399
|
org_id: string
|
|
400
400
|
org_phone: string
|
|
@@ -403,7 +403,7 @@ export interface Database {
|
|
|
403
403
|
reaction: string | null
|
|
404
404
|
reaction_id: string
|
|
405
405
|
read: boolean | null
|
|
406
|
-
sender_id: string
|
|
406
|
+
sender_id: string
|
|
407
407
|
timestamp: string | null
|
|
408
408
|
unique_id: string | null
|
|
409
409
|
}
|
|
@@ -411,7 +411,7 @@ export interface Database {
|
|
|
411
411
|
ack?: number | null
|
|
412
412
|
chat_id?: string | null
|
|
413
413
|
id?: Json | null
|
|
414
|
-
message_id
|
|
414
|
+
message_id: string
|
|
415
415
|
msg_id?: Json | null
|
|
416
416
|
org_id: string
|
|
417
417
|
org_phone: string
|
|
@@ -420,7 +420,7 @@ export interface Database {
|
|
|
420
420
|
reaction?: string | null
|
|
421
421
|
reaction_id: string
|
|
422
422
|
read?: boolean | null
|
|
423
|
-
sender_id
|
|
423
|
+
sender_id: string
|
|
424
424
|
timestamp?: string | null
|
|
425
425
|
unique_id?: string | null
|
|
426
426
|
}
|
|
@@ -428,7 +428,7 @@ export interface Database {
|
|
|
428
428
|
ack?: number | null
|
|
429
429
|
chat_id?: string | null
|
|
430
430
|
id?: Json | null
|
|
431
|
-
message_id?: string
|
|
431
|
+
message_id?: string
|
|
432
432
|
msg_id?: Json | null
|
|
433
433
|
org_id?: string
|
|
434
434
|
org_phone?: string
|
|
@@ -437,7 +437,7 @@ export interface Database {
|
|
|
437
437
|
reaction?: string | null
|
|
438
438
|
reaction_id?: string
|
|
439
439
|
read?: boolean | null
|
|
440
|
-
sender_id?: string
|
|
440
|
+
sender_id?: string
|
|
441
441
|
timestamp?: string | null
|
|
442
442
|
unique_id?: string | null
|
|
443
443
|
}
|
|
@@ -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,27 +137,27 @@ 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
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
/* ----------------------- CHAT PARTICIPANT OPERATION ----------------------- */
|
|
156
|
-
|
|
157
|
-
export type ChatParticipantOperation = {
|
|
158
|
-
participant_ids: string[];
|
|
159
|
-
operation_type: 'ADD' | 'REMOVE' | 'PROMOTE' | 'DEMOTE';
|
|
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;
|
|
160
159
|
};
|
|
161
160
|
|
|
162
|
-
export type
|
|
163
|
-
|
|
164
|
-
};
|
|
161
|
+
export type BroadcastLogType = Tables<'view_broadcast_logs'> & {
|
|
162
|
+
logs: LogsType[];
|
|
163
|
+
};
|