@wildix/xbees-conversations-utils 1.0.15 → 1.0.16
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.
|
@@ -63,8 +63,6 @@ function normalizeStreamMessage(streamMessage, channelId) {
|
|
|
63
63
|
edit,
|
|
64
64
|
sms: streamMessage.sms,
|
|
65
65
|
smsStatus: streamMessage.sms_status,
|
|
66
|
-
whatsapp: streamMessage.whatsapp,
|
|
67
|
-
whatsappStatus: streamMessage.whatsapp_status,
|
|
68
66
|
silent,
|
|
69
67
|
event,
|
|
70
68
|
};
|
|
@@ -139,8 +137,6 @@ function normalizeStreamChannel(channel) {
|
|
|
139
137
|
telephony: data.telephony,
|
|
140
138
|
sms: data.sms,
|
|
141
139
|
mms: data.mms,
|
|
142
|
-
whatsapp: data.whatsapp,
|
|
143
|
-
whatsappStatus: data.whatsapp_status,
|
|
144
140
|
broadcast: data.broadcast || data.is_broadcast,
|
|
145
141
|
external: data.external,
|
|
146
142
|
createdAt: data.created_at,
|
package/dist-es/normalization.js
CHANGED
|
@@ -57,8 +57,6 @@ export function normalizeStreamMessage(streamMessage, channelId) {
|
|
|
57
57
|
edit,
|
|
58
58
|
sms: streamMessage.sms,
|
|
59
59
|
smsStatus: streamMessage.sms_status,
|
|
60
|
-
whatsapp: streamMessage.whatsapp,
|
|
61
|
-
whatsappStatus: streamMessage.whatsapp_status,
|
|
62
60
|
silent,
|
|
63
61
|
event,
|
|
64
62
|
};
|
|
@@ -131,8 +129,6 @@ export function normalizeStreamChannel(channel) {
|
|
|
131
129
|
telephony: data.telephony,
|
|
132
130
|
sms: data.sms,
|
|
133
131
|
mms: data.mms,
|
|
134
|
-
whatsapp: data.whatsapp,
|
|
135
|
-
whatsappStatus: data.whatsapp_status,
|
|
136
132
|
broadcast: data.broadcast || data.is_broadcast,
|
|
137
133
|
external: data.external,
|
|
138
134
|
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
|
}
|
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.16",
|
|
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.43",
|
|
24
24
|
"stream-chat": "8.12.1",
|
|
25
25
|
"tslib": "^2.5.0"
|
|
26
26
|
},
|