@periskope/types 0.6.137 → 0.6.138
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/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/supabase.types.d.ts +250 -303
- package/dist/types.d.ts +18 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/supabase.types.ts +2434 -2491
- package/types.ts +583 -559
- package/dist/rules.types.d.ts +0 -248
- package/dist/rules.types.js +0 -566
- package/rules.types.ts +0 -955
package/dist/types.d.ts
CHANGED
|
@@ -123,6 +123,7 @@ export type ChatType = Merge<Tables<'view_chats'>, {
|
|
|
123
123
|
flag_count_map?: {
|
|
124
124
|
[key: string]: number;
|
|
125
125
|
};
|
|
126
|
+
pin?: boolean;
|
|
126
127
|
}>;
|
|
127
128
|
export type MediaType = {
|
|
128
129
|
path: string;
|
|
@@ -146,6 +147,7 @@ export type MessageType = Merge<OverrideProperties<Tables<'tbl_chat_messages'>,
|
|
|
146
147
|
flag_metadata: MessageFlagType | null;
|
|
147
148
|
poll_info?: PollSendType | null;
|
|
148
149
|
poll_results?: PollResultType | null;
|
|
150
|
+
delivery_info?: DeliveryInfoType | null;
|
|
149
151
|
}>, {
|
|
150
152
|
reactions?: ReactionType[];
|
|
151
153
|
message_payload?: SingleMessagePayload;
|
|
@@ -387,6 +389,7 @@ export type UserPreferences = {
|
|
|
387
389
|
left_sidebar_open: boolean;
|
|
388
390
|
right_sidepanel_open: boolean;
|
|
389
391
|
sync_wa_unread_count: boolean;
|
|
392
|
+
pinned_chats: string[];
|
|
390
393
|
};
|
|
391
394
|
export type PollSendType = {
|
|
392
395
|
pollName: string;
|
|
@@ -400,4 +403,19 @@ export type PollSendType = {
|
|
|
400
403
|
export type PollResultType = {
|
|
401
404
|
[name: string]: Record<string, string>;
|
|
402
405
|
};
|
|
406
|
+
export type CreateGroupOptions = {
|
|
407
|
+
messagesAdminsOnly?: boolean;
|
|
408
|
+
infoAdminsOnly?: boolean;
|
|
409
|
+
memberAddMode?: boolean;
|
|
410
|
+
image?: string;
|
|
411
|
+
name?: string;
|
|
412
|
+
description?: string;
|
|
413
|
+
};
|
|
414
|
+
export type DeliveryInfoType = {
|
|
415
|
+
delivered: Record<string, number | undefined>;
|
|
416
|
+
read: Record<string, number | undefined>;
|
|
417
|
+
pending: string[];
|
|
418
|
+
read_count: number;
|
|
419
|
+
delivered_count: number;
|
|
420
|
+
};
|
|
403
421
|
export {};
|
package/index.ts
CHANGED