@wildix/xbees-conversations-utils 1.1.52 → 1.1.53
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.
|
@@ -19,7 +19,6 @@ function normalizeStreamUser(streamUser) {
|
|
|
19
19
|
pbxExtension: streamUser.pbxExtension || undefined,
|
|
20
20
|
pbxSerial: streamUser.pbxSerial || undefined,
|
|
21
21
|
pbxUserId: streamUser.pbxUserId || undefined,
|
|
22
|
-
pbxGroupId: streamUser.pbxGroupId || undefined,
|
|
23
22
|
createdAt: streamUser.created_at || undefined,
|
|
24
23
|
updatedAt: streamUser.updated_at || undefined,
|
|
25
24
|
};
|
|
@@ -162,6 +161,7 @@ function normalizeStreamChannel(channel) {
|
|
|
162
161
|
whatsappStatus: data.whatsapp_status,
|
|
163
162
|
autoRecord: data.is_auto_record,
|
|
164
163
|
transcriptionLanguage: data.transcription_language,
|
|
164
|
+
wizyGuestViewOnly: data.is_wizy_guest_view_only,
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
167
|
exports.normalizeStreamChannel = normalizeStreamChannel;
|
|
@@ -226,6 +226,7 @@ function localizeStreamChannel(streamChannel) {
|
|
|
226
226
|
isExternal: Boolean(normalizedChannel.external),
|
|
227
227
|
isBroadcast: Boolean(normalizedChannel.broadcast),
|
|
228
228
|
isAutoRecord: Boolean(normalizedChannel.autoRecord),
|
|
229
|
+
isWizyGuestViewOnly: Boolean(normalizedChannel.wizyGuestViewOnly),
|
|
229
230
|
lastRead,
|
|
230
231
|
lastMessage: normalizedLastMessage,
|
|
231
232
|
lastMessageAt,
|
package/dist-es/normalization.js
CHANGED
|
@@ -16,7 +16,6 @@ export function normalizeStreamUser(streamUser) {
|
|
|
16
16
|
pbxExtension: streamUser.pbxExtension || undefined,
|
|
17
17
|
pbxSerial: streamUser.pbxSerial || undefined,
|
|
18
18
|
pbxUserId: streamUser.pbxUserId || undefined,
|
|
19
|
-
pbxGroupId: streamUser.pbxGroupId || undefined,
|
|
20
19
|
createdAt: streamUser.created_at || undefined,
|
|
21
20
|
updatedAt: streamUser.updated_at || undefined,
|
|
22
21
|
};
|
|
@@ -154,6 +153,7 @@ export function normalizeStreamChannel(channel) {
|
|
|
154
153
|
whatsappStatus: data.whatsapp_status,
|
|
155
154
|
autoRecord: data.is_auto_record,
|
|
156
155
|
transcriptionLanguage: data.transcription_language,
|
|
156
|
+
wizyGuestViewOnly: data.is_wizy_guest_view_only,
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
export function normalizeStreamMember(member) {
|
|
@@ -213,6 +213,7 @@ export function localizeStreamChannel(streamChannel) {
|
|
|
213
213
|
isExternal: Boolean(normalizedChannel.external),
|
|
214
214
|
isBroadcast: Boolean(normalizedChannel.broadcast),
|
|
215
215
|
isAutoRecord: Boolean(normalizedChannel.autoRecord),
|
|
216
|
+
isWizyGuestViewOnly: Boolean(normalizedChannel.wizyGuestViewOnly),
|
|
216
217
|
lastRead,
|
|
217
218
|
lastMessage: normalizedLastMessage,
|
|
218
219
|
lastMessageAt,
|
package/dist-types/stream.d.ts
CHANGED
|
@@ -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;
|
|
@@ -79,7 +80,6 @@ export interface StreamUserFields extends UR {
|
|
|
79
80
|
pbxPort: string;
|
|
80
81
|
pbxDomain: string;
|
|
81
82
|
pbxUserId: string;
|
|
82
|
-
pbxGroupId?: string;
|
|
83
83
|
pbxUpdatedAt?: string;
|
|
84
84
|
pbxExtension: string;
|
|
85
85
|
created_at: string;
|
package/dist-types/types.d.ts
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "1.1.53",
|
|
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.
|
|
24
|
+
"@wildix/xbees-conversations-client": "1.2.3",
|
|
25
25
|
"stream-chat": "8.12.1",
|
|
26
26
|
"tslib": "^2.5.0"
|
|
27
27
|
},
|