@wildix/xbees-conversations-utils 1.1.49 → 1.1.50
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.
|
@@ -159,6 +159,8 @@ function normalizeStreamChannel(channel) {
|
|
|
159
159
|
updatedAt: data.updated_at,
|
|
160
160
|
whatsapp: data.whatsapp,
|
|
161
161
|
whatsappStatus: data.whatsapp_status,
|
|
162
|
+
autoRecord: data.is_auto_record,
|
|
163
|
+
transcriptionLanguage: data.transcription_language,
|
|
162
164
|
};
|
|
163
165
|
}
|
|
164
166
|
exports.normalizeStreamChannel = normalizeStreamChannel;
|
|
@@ -222,6 +224,7 @@ function localizeStreamChannel(streamChannel) {
|
|
|
222
224
|
unreadMark,
|
|
223
225
|
isExternal: Boolean(normalizedChannel.external),
|
|
224
226
|
isBroadcast: Boolean(normalizedChannel.broadcast),
|
|
227
|
+
isAutoRecord: Boolean(normalizedChannel.autoRecord),
|
|
225
228
|
lastRead,
|
|
226
229
|
lastMessage: normalizedLastMessage,
|
|
227
230
|
lastMessageAt,
|
package/dist-es/normalization.js
CHANGED
|
@@ -151,6 +151,8 @@ export function normalizeStreamChannel(channel) {
|
|
|
151
151
|
updatedAt: data.updated_at,
|
|
152
152
|
whatsapp: data.whatsapp,
|
|
153
153
|
whatsappStatus: data.whatsapp_status,
|
|
154
|
+
autoRecord: data.is_auto_record,
|
|
155
|
+
transcriptionLanguage: data.transcription_language,
|
|
154
156
|
};
|
|
155
157
|
}
|
|
156
158
|
export function normalizeStreamMember(member) {
|
|
@@ -209,6 +211,7 @@ export function localizeStreamChannel(streamChannel) {
|
|
|
209
211
|
unreadMark,
|
|
210
212
|
isExternal: Boolean(normalizedChannel.external),
|
|
211
213
|
isBroadcast: Boolean(normalizedChannel.broadcast),
|
|
214
|
+
isAutoRecord: Boolean(normalizedChannel.autoRecord),
|
|
212
215
|
lastRead,
|
|
213
216
|
lastMessage: normalizedLastMessage,
|
|
214
217
|
lastMessageAt,
|
package/dist-types/stream.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ export interface StreamChannelFields extends UR {
|
|
|
27
27
|
is_broadcast?: boolean;
|
|
28
28
|
external?: boolean;
|
|
29
29
|
unreadMarkUsers?: string[];
|
|
30
|
+
is_auto_record?: boolean;
|
|
31
|
+
transcription_language?: string;
|
|
30
32
|
}
|
|
31
33
|
export interface StreamType extends ExtendableGenerics {
|
|
32
34
|
attachmentType: StreamAttachmentFields;
|
package/dist-types/types.d.ts
CHANGED
|
@@ -19,11 +19,12 @@ 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'> {
|
|
22
|
+
export interface LocalizedChannel extends Omit<Channel, 'createdAt' | 'updatedAt' | 'is_broadcast' | 'external' | 'hidden' | 'autoRecord'> {
|
|
23
23
|
createdAt: Date;
|
|
24
24
|
isArchived: boolean;
|
|
25
25
|
isBroadcast?: boolean;
|
|
26
26
|
isExternal: boolean;
|
|
27
|
+
isAutoRecord?: boolean;
|
|
27
28
|
lastMessage: LocalizedMessage | null;
|
|
28
29
|
lastMessageAt: Date;
|
|
29
30
|
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.50",
|
|
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.1.
|
|
24
|
+
"@wildix/xbees-conversations-client": "1.1.24",
|
|
25
25
|
"stream-chat": "8.12.1",
|
|
26
26
|
"tslib": "^2.5.0"
|
|
27
27
|
},
|