@periskope/types 0.6.30 → 0.6.32
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 -1
- package/dist/types.d.ts +8 -1
- package/package.json +1 -1
- package/supabase.types.ts +9 -1
- package/types.ts +14 -2
package/dist/supabase.types.d.ts
CHANGED
|
@@ -307,6 +307,7 @@ export interface Database {
|
|
|
307
307
|
recipientids: string[] | null;
|
|
308
308
|
timestamp: string | null;
|
|
309
309
|
type: string | null;
|
|
310
|
+
unique_id: string | null;
|
|
310
311
|
};
|
|
311
312
|
Insert: {
|
|
312
313
|
author?: string | null;
|
|
@@ -319,6 +320,7 @@ export interface Database {
|
|
|
319
320
|
recipientids?: string[] | null;
|
|
320
321
|
timestamp?: string | null;
|
|
321
322
|
type?: string | null;
|
|
323
|
+
unique_id?: string | null;
|
|
322
324
|
};
|
|
323
325
|
Update: {
|
|
324
326
|
author?: string | null;
|
|
@@ -331,6 +333,7 @@ export interface Database {
|
|
|
331
333
|
recipientids?: string[] | null;
|
|
332
334
|
timestamp?: string | null;
|
|
333
335
|
type?: string | null;
|
|
336
|
+
unique_id?: string | null;
|
|
334
337
|
};
|
|
335
338
|
Relationships: [
|
|
336
339
|
{
|
|
@@ -390,6 +393,7 @@ export interface Database {
|
|
|
390
393
|
tbl_chat_reactions: {
|
|
391
394
|
Row: {
|
|
392
395
|
ack: number | null;
|
|
396
|
+
chat_id: string | null;
|
|
393
397
|
id: Json | null;
|
|
394
398
|
message_id: string | null;
|
|
395
399
|
msg_id: Json | null;
|
|
@@ -402,9 +406,11 @@ export interface Database {
|
|
|
402
406
|
read: boolean | null;
|
|
403
407
|
sender_id: string | null;
|
|
404
408
|
timestamp: string | null;
|
|
409
|
+
unique_id: string | null;
|
|
405
410
|
};
|
|
406
411
|
Insert: {
|
|
407
412
|
ack?: number | null;
|
|
413
|
+
chat_id?: string | null;
|
|
408
414
|
id?: Json | null;
|
|
409
415
|
message_id?: string | null;
|
|
410
416
|
msg_id?: Json | null;
|
|
@@ -417,9 +423,11 @@ export interface Database {
|
|
|
417
423
|
read?: boolean | null;
|
|
418
424
|
sender_id?: string | null;
|
|
419
425
|
timestamp?: string | null;
|
|
426
|
+
unique_id?: string | null;
|
|
420
427
|
};
|
|
421
428
|
Update: {
|
|
422
429
|
ack?: number | null;
|
|
430
|
+
chat_id?: string | null;
|
|
423
431
|
id?: Json | null;
|
|
424
432
|
message_id?: string | null;
|
|
425
433
|
msg_id?: Json | null;
|
|
@@ -432,6 +440,7 @@ export interface Database {
|
|
|
432
440
|
read?: boolean | null;
|
|
433
441
|
sender_id?: string | null;
|
|
434
442
|
timestamp?: string | null;
|
|
443
|
+
unique_id?: string | null;
|
|
435
444
|
};
|
|
436
445
|
Relationships: [
|
|
437
446
|
{
|
|
@@ -876,7 +885,6 @@ export interface Database {
|
|
|
876
885
|
label_ids: Json | null;
|
|
877
886
|
last_read_timestamp: string | null;
|
|
878
887
|
latest_message: Json | null;
|
|
879
|
-
latest_message_timestamp: string | null;
|
|
880
888
|
member_count: number | null;
|
|
881
889
|
message_unread_count: number | null;
|
|
882
890
|
mute_expiration: number | null;
|
package/dist/types.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type ChatType = Merge<Tables<'view_chats'>, {
|
|
|
17
17
|
chat_id: string;
|
|
18
18
|
latest_message: MessageType | null;
|
|
19
19
|
members: Record<string, ChatMemberType> | null;
|
|
20
|
-
chat_type: 'user' | 'group' | 'business';
|
|
20
|
+
chat_type: 'user' | 'group' | 'business' | 'unknown';
|
|
21
21
|
active_phone?: string;
|
|
22
22
|
chat_access: Record<string, boolean>;
|
|
23
23
|
label_ids: Record<string, boolean>;
|
|
@@ -78,3 +78,10 @@ export type BroadcastLogType = Tables<'view_broadcast_logs'> & {
|
|
|
78
78
|
delivered_count: number | null;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
|
+
export type ChatParticipantOperation = {
|
|
82
|
+
participant_ids: string[];
|
|
83
|
+
operation_type: 'ADD' | 'REMOVE' | 'PROMOTE' | 'DEMOTE';
|
|
84
|
+
};
|
|
85
|
+
export type ChatParticipantOperationPayload = ChatParticipantOperation & {
|
|
86
|
+
chat_ids: string[];
|
|
87
|
+
};
|
package/package.json
CHANGED
package/supabase.types.ts
CHANGED
|
@@ -306,6 +306,7 @@ export interface Database {
|
|
|
306
306
|
recipientids: string[] | null
|
|
307
307
|
timestamp: string | null
|
|
308
308
|
type: string | null
|
|
309
|
+
unique_id: string | null
|
|
309
310
|
}
|
|
310
311
|
Insert: {
|
|
311
312
|
author?: string | null
|
|
@@ -318,6 +319,7 @@ export interface Database {
|
|
|
318
319
|
recipientids?: string[] | null
|
|
319
320
|
timestamp?: string | null
|
|
320
321
|
type?: string | null
|
|
322
|
+
unique_id?: string | null
|
|
321
323
|
}
|
|
322
324
|
Update: {
|
|
323
325
|
author?: string | null
|
|
@@ -330,6 +332,7 @@ export interface Database {
|
|
|
330
332
|
recipientids?: string[] | null
|
|
331
333
|
timestamp?: string | null
|
|
332
334
|
type?: string | null
|
|
335
|
+
unique_id?: string | null
|
|
333
336
|
}
|
|
334
337
|
Relationships: [
|
|
335
338
|
{
|
|
@@ -389,6 +392,7 @@ export interface Database {
|
|
|
389
392
|
tbl_chat_reactions: {
|
|
390
393
|
Row: {
|
|
391
394
|
ack: number | null
|
|
395
|
+
chat_id: string | null
|
|
392
396
|
id: Json | null
|
|
393
397
|
message_id: string | null
|
|
394
398
|
msg_id: Json | null
|
|
@@ -401,9 +405,11 @@ export interface Database {
|
|
|
401
405
|
read: boolean | null
|
|
402
406
|
sender_id: string | null
|
|
403
407
|
timestamp: string | null
|
|
408
|
+
unique_id: string | null
|
|
404
409
|
}
|
|
405
410
|
Insert: {
|
|
406
411
|
ack?: number | null
|
|
412
|
+
chat_id?: string | null
|
|
407
413
|
id?: Json | null
|
|
408
414
|
message_id?: string | null
|
|
409
415
|
msg_id?: Json | null
|
|
@@ -416,9 +422,11 @@ export interface Database {
|
|
|
416
422
|
read?: boolean | null
|
|
417
423
|
sender_id?: string | null
|
|
418
424
|
timestamp?: string | null
|
|
425
|
+
unique_id?: string | null
|
|
419
426
|
}
|
|
420
427
|
Update: {
|
|
421
428
|
ack?: number | null
|
|
429
|
+
chat_id?: string | null
|
|
422
430
|
id?: Json | null
|
|
423
431
|
message_id?: string | null
|
|
424
432
|
msg_id?: Json | null
|
|
@@ -431,6 +439,7 @@ export interface Database {
|
|
|
431
439
|
read?: boolean | null
|
|
432
440
|
sender_id?: string | null
|
|
433
441
|
timestamp?: string | null
|
|
442
|
+
unique_id?: string | null
|
|
434
443
|
}
|
|
435
444
|
Relationships: [
|
|
436
445
|
{
|
|
@@ -879,7 +888,6 @@ export interface Database {
|
|
|
879
888
|
label_ids: Json | null
|
|
880
889
|
last_read_timestamp: string | null
|
|
881
890
|
latest_message: Json | null
|
|
882
|
-
latest_message_timestamp: string | null
|
|
883
891
|
member_count: number | null
|
|
884
892
|
message_unread_count: number | null
|
|
885
893
|
mute_expiration: number | null
|
package/types.ts
CHANGED
|
@@ -32,7 +32,7 @@ export type ChatType = Merge<
|
|
|
32
32
|
chat_id: string;
|
|
33
33
|
latest_message: MessageType | null;
|
|
34
34
|
members: Record<string, ChatMemberType> | null;
|
|
35
|
-
chat_type: 'user' | 'group' | 'business';
|
|
35
|
+
chat_type: 'user' | 'group' | 'business' | 'unknown';
|
|
36
36
|
active_phone?: string;
|
|
37
37
|
chat_access: Record<string, boolean>;
|
|
38
38
|
label_ids: Record<string, boolean>;
|
|
@@ -149,4 +149,16 @@ export type BroadcastLogType = Tables<'view_broadcast_logs'> & {
|
|
|
149
149
|
delivery_info: MessageInfo | null,
|
|
150
150
|
delivered_count: number | null
|
|
151
151
|
},
|
|
152
|
-
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
/* ----------------------- CHAT PARTICIPANT OPERATION ----------------------- */
|
|
156
|
+
|
|
157
|
+
export type ChatParticipantOperation = {
|
|
158
|
+
participant_ids: string[];
|
|
159
|
+
operation_type: 'ADD' | 'REMOVE' | 'PROMOTE' | 'DEMOTE';
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
export type ChatParticipantOperationPayload = ChatParticipantOperation & {
|
|
163
|
+
chat_ids: string[];
|
|
164
|
+
};
|