@wildix/xbees-conversations-utils 1.1.48 → 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-cjs/types.js CHANGED
@@ -5,4 +5,4 @@ var MessageDirection;
5
5
  (function (MessageDirection) {
6
6
  MessageDirection["INCOMING"] = "incoming";
7
7
  MessageDirection["OUTGOING"] = "outgoing";
8
- })(MessageDirection = exports.MessageDirection || (exports.MessageDirection = {}));
8
+ })(MessageDirection || (exports.MessageDirection = MessageDirection = {}));
@@ -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,
@@ -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;
@@ -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.48",
3
+ "version": "1.1.50",
4
4
  "description": "",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -17,21 +17,21 @@
17
17
  "postpublish": "node ../../scripts/postpublish.js"
18
18
  },
19
19
  "engines": {
20
- "node": ">=16.0.0"
20
+ "node": ">=18.0.0"
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@wildix/xbees-conversations-client": "1.1.10",
24
+ "@wildix/xbees-conversations-client": "1.1.24",
25
25
  "stream-chat": "8.12.1",
26
26
  "tslib": "^2.5.0"
27
27
  },
28
28
  "devDependencies": {
29
- "@tsconfig/node16": "16.1.3",
29
+ "@tsconfig/node18": "18.2.4",
30
30
  "@tsconfig/recommended": "1.0.1",
31
31
  "concurrently": "7.0.0",
32
32
  "downlevel-dts": "0.10.1",
33
33
  "rimraf": "^3.0.0",
34
- "typescript": "~4.9.5"
34
+ "typescript": "~5.2.2"
35
35
  },
36
36
  "typesVersions": {
37
37
  "<4.0": {