@wildix/xbees-conversations-utils 1.1.52 → 1.1.54

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.
@@ -162,6 +162,7 @@ function normalizeStreamChannel(channel) {
162
162
  whatsappStatus: data.whatsapp_status,
163
163
  autoRecord: data.is_auto_record,
164
164
  transcriptionLanguage: data.transcription_language,
165
+ wizyGuestViewOnly: data.is_wizy_guest_view_only,
165
166
  };
166
167
  }
167
168
  exports.normalizeStreamChannel = normalizeStreamChannel;
@@ -226,6 +227,7 @@ function localizeStreamChannel(streamChannel) {
226
227
  isExternal: Boolean(normalizedChannel.external),
227
228
  isBroadcast: Boolean(normalizedChannel.broadcast),
228
229
  isAutoRecord: Boolean(normalizedChannel.autoRecord),
230
+ isWizyGuestViewOnly: Boolean(normalizedChannel.wizyGuestViewOnly),
229
231
  lastRead,
230
232
  lastMessage: normalizedLastMessage,
231
233
  lastMessageAt,
@@ -154,6 +154,7 @@ export function normalizeStreamChannel(channel) {
154
154
  whatsappStatus: data.whatsapp_status,
155
155
  autoRecord: data.is_auto_record,
156
156
  transcriptionLanguage: data.transcription_language,
157
+ wizyGuestViewOnly: data.is_wizy_guest_view_only,
157
158
  };
158
159
  }
159
160
  export function normalizeStreamMember(member) {
@@ -213,6 +214,7 @@ export function localizeStreamChannel(streamChannel) {
213
214
  isExternal: Boolean(normalizedChannel.external),
214
215
  isBroadcast: Boolean(normalizedChannel.broadcast),
215
216
  isAutoRecord: Boolean(normalizedChannel.autoRecord),
217
+ isWizyGuestViewOnly: Boolean(normalizedChannel.wizyGuestViewOnly),
216
218
  lastRead,
217
219
  lastMessage: normalizedLastMessage,
218
220
  lastMessageAt,
@@ -29,6 +29,7 @@ export interface StreamChannelFields extends UR {
29
29
  unreadMarkUsers?: string[];
30
30
  is_auto_record?: boolean;
31
31
  transcription_language?: string;
32
+ is_wizy_guest_view_only?: boolean;
32
33
  }
33
34
  export interface StreamType extends ExtendableGenerics {
34
35
  attachmentType: StreamAttachmentFields;
@@ -19,12 +19,13 @@ export interface LocalizedMessage extends Omit<Message, 'user' | 'createdAt' | '
19
19
  pinned: boolean | undefined;
20
20
  ref?: string | null;
21
21
  }
22
- export interface LocalizedChannel extends Omit<Channel, 'createdAt' | 'updatedAt' | 'is_broadcast' | 'external' | 'hidden' | 'autoRecord'> {
22
+ export interface LocalizedChannel extends Omit<Channel, 'createdAt' | 'updatedAt' | 'is_broadcast' | 'external' | 'hidden' | 'autoRecord' | 'wizyGuestViewOnly'> {
23
23
  createdAt: Date;
24
24
  isArchived: boolean;
25
25
  isBroadcast?: boolean;
26
26
  isExternal: boolean;
27
27
  isAutoRecord?: boolean;
28
+ isWizyGuestViewOnly?: boolean;
28
29
  lastMessage: LocalizedMessage | null;
29
30
  lastMessageAt: Date;
30
31
  lastRead: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wildix/xbees-conversations-utils",
3
- "version": "1.1.52",
3
+ "version": "1.1.54",
4
4
  "description": "",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@wildix/xbees-conversations-client": "1.2.1",
24
+ "@wildix/xbees-conversations-client": "1.2.5",
25
25
  "stream-chat": "8.12.1",
26
26
  "tslib": "^2.5.0"
27
27
  },