@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/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
@@ -1,3 +1,3 @@
1
- export * from './rules.types';
2
1
  export * from './supabase.types';
3
2
  export * from './types';
3
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.6.137",
3
+ "version": "0.6.138",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",