@wildix/xbees-conversations-utils 1.0.17 → 1.0.19
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.
|
@@ -64,8 +64,6 @@ function normalizeStreamMessage(streamMessage, channelId) {
|
|
|
64
64
|
edit,
|
|
65
65
|
sms: streamMessage.sms,
|
|
66
66
|
smsStatus: streamMessage.sms_status,
|
|
67
|
-
whatsapp: streamMessage.whatsapp,
|
|
68
|
-
whatsappStatus: streamMessage.whatsapp_status,
|
|
69
67
|
silent,
|
|
70
68
|
event,
|
|
71
69
|
};
|
|
@@ -140,8 +138,6 @@ function normalizeStreamChannel(channel) {
|
|
|
140
138
|
telephony: data.telephony,
|
|
141
139
|
sms: data.sms,
|
|
142
140
|
mms: data.mms,
|
|
143
|
-
whatsapp: data.whatsapp,
|
|
144
|
-
whatsappStatus: data.whatsapp_status,
|
|
145
141
|
broadcast: data.broadcast || data.is_broadcast,
|
|
146
142
|
external: data.external,
|
|
147
143
|
createdAt: data.created_at,
|
package/dist-es/normalization.js
CHANGED
|
@@ -58,8 +58,6 @@ export function normalizeStreamMessage(streamMessage, channelId) {
|
|
|
58
58
|
edit,
|
|
59
59
|
sms: streamMessage.sms,
|
|
60
60
|
smsStatus: streamMessage.sms_status,
|
|
61
|
-
whatsapp: streamMessage.whatsapp,
|
|
62
|
-
whatsappStatus: streamMessage.whatsapp_status,
|
|
63
61
|
silent,
|
|
64
62
|
event,
|
|
65
63
|
};
|
|
@@ -132,8 +130,6 @@ export function normalizeStreamChannel(channel) {
|
|
|
132
130
|
telephony: data.telephony,
|
|
133
131
|
sms: data.sms,
|
|
134
132
|
mms: data.mms,
|
|
135
|
-
whatsapp: data.whatsapp,
|
|
136
|
-
whatsappStatus: data.whatsapp_status,
|
|
137
133
|
broadcast: data.broadcast || data.is_broadcast,
|
|
138
134
|
external: data.external,
|
|
139
135
|
createdAt: data.created_at,
|
package/dist-types/stream.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Channel, ChannelData, ChannelFilters, ChannelMembership, ChannelMemberResponse, ChannelSort, ChannelResponse, Event, ExtendableGenerics, LiteralStringForUnion, Message, MessageResponse, ReactionResponse, UR, UserResponse, ChannelAPIResponse, User, Reaction, PartialMessageUpdate, UpdatedMessage, PartialUpdateChannel } from 'stream-chat';
|
|
2
|
-
import { Message as MessageNormalized, MessageForward, MessageAttachment, MessageGiphy, User as NormalizedUser, ChannelAccess, MessageSmsStatus
|
|
2
|
+
import { Message as MessageNormalized, MessageForward, MessageAttachment, MessageGiphy, User as NormalizedUser, ChannelAccess, MessageSmsStatus } from "@wildix/xbees-conversations-client";
|
|
3
3
|
export interface StreamChannelFields extends UR {
|
|
4
4
|
subject?: string;
|
|
5
5
|
description?: string;
|
|
@@ -21,8 +21,6 @@ export interface StreamChannelFields extends UR {
|
|
|
21
21
|
telephony?: boolean;
|
|
22
22
|
sms?: boolean;
|
|
23
23
|
mms?: boolean;
|
|
24
|
-
whatsapp?: boolean;
|
|
25
|
-
whatsapp_status?: ChannelWhatsAppStatus | string;
|
|
26
24
|
broadcast?: boolean;
|
|
27
25
|
is_broadcast?: boolean;
|
|
28
26
|
external?: boolean;
|
|
@@ -49,8 +47,6 @@ export interface StreamMessageFields extends UR {
|
|
|
49
47
|
attachments?: MessageAttachment[];
|
|
50
48
|
sms?: boolean;
|
|
51
49
|
sms_status?: MessageSmsStatus | string;
|
|
52
|
-
whatsapp?: boolean;
|
|
53
|
-
whatsapp_status?: MessageWhatsAppStatus | string;
|
|
54
50
|
created_at: string;
|
|
55
51
|
updated_at: string;
|
|
56
52
|
}
|
|
@@ -67,7 +63,7 @@ export interface StreamAttachmentFields extends UR {
|
|
|
67
63
|
export interface StreamUserFields extends UR {
|
|
68
64
|
email?: string;
|
|
69
65
|
phone?: string;
|
|
70
|
-
picture
|
|
66
|
+
picture?: string;
|
|
71
67
|
online: boolean;
|
|
72
68
|
banned: boolean;
|
|
73
69
|
company: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-conversations-utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.19",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@wildix/xbees-conversations-client": "1.0.
|
|
23
|
+
"@wildix/xbees-conversations-client": "1.0.47",
|
|
24
24
|
"stream-chat": "8.12.1",
|
|
25
25
|
"tslib": "^2.5.0"
|
|
26
26
|
},
|