@periskope/types 0.6.134 → 0.6.136

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/types.ts CHANGED
@@ -145,6 +145,7 @@ export type ChatType = Merge<
145
145
  unread_count?: { [key: string]: number };
146
146
  active_phone: string | null;
147
147
  flag_count_map?: { [key: string]: number };
148
+ pin?: boolean;
148
149
  }
149
150
  >;
150
151
 
@@ -180,7 +181,7 @@ export type MessageType = Merge<
180
181
  reactions?: ReactionType[];
181
182
  message_payload?: SingleMessagePayload;
182
183
  show_unread?: boolean;
183
- highlight?: boolean;
184
+ highlight?: number;
184
185
  }
185
186
  >;
186
187
 
@@ -441,6 +442,12 @@ export type TicketInfoType = {
441
442
  };
442
443
  };
443
444
 
445
+ export type IntegrationLogObjectType =
446
+ | 'chat'
447
+ | 'message'
448
+ | 'reaction'
449
+ | 'ticket';
450
+
444
451
  export enum IntegrationLogType {
445
452
  NEW_CHAT = 'chat.created',
446
453
  NEW_CHAT_NOTIFICATION = 'chat.notification.created',
@@ -534,6 +541,7 @@ export type UserPreferences = {
534
541
  left_sidebar_open: boolean;
535
542
  right_sidepanel_open: boolean;
536
543
  sync_wa_unread_count: boolean;
544
+ pinned_chats: string[];
537
545
  };
538
546
 
539
547
  /* ----------------------------- POLL VOTE INFO ----------------------------- */
@@ -551,3 +559,14 @@ export type PollSendType = {
551
559
  export type PollResultType = {
552
560
  [name: string]: Record<string, string>;
553
561
  };
562
+
563
+ /* -------------------------- CREATE GROUP OPTIONS -------------------------- */
564
+
565
+ export type CreateGroupOptions = {
566
+ messagesAdminsOnly?: boolean;
567
+ infoAdminsOnly?: boolean;
568
+ memberAddMode?: boolean;
569
+ image?: string;
570
+ name?: string;
571
+ description?: string;
572
+ };