@wildix/xbees-conversations-utils 1.0.20 → 1.0.22
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,6 +64,8 @@ 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,
|
|
67
69
|
silent,
|
|
68
70
|
event,
|
|
69
71
|
};
|
|
@@ -138,6 +140,8 @@ function normalizeStreamChannel(channel) {
|
|
|
138
140
|
telephony: data.telephony,
|
|
139
141
|
sms: data.sms,
|
|
140
142
|
mms: data.mms,
|
|
143
|
+
whatsapp: data.whatsapp,
|
|
144
|
+
whatsappStatus: data.whatsapp_status,
|
|
141
145
|
broadcast: data.broadcast || data.is_broadcast,
|
|
142
146
|
external: data.external,
|
|
143
147
|
createdAt: data.created_at,
|
package/dist-es/normalization.js
CHANGED
|
@@ -58,6 +58,8 @@ 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,
|
|
61
63
|
silent,
|
|
62
64
|
event,
|
|
63
65
|
};
|
|
@@ -130,6 +132,8 @@ export function normalizeStreamChannel(channel) {
|
|
|
130
132
|
telephony: data.telephony,
|
|
131
133
|
sms: data.sms,
|
|
132
134
|
mms: data.mms,
|
|
135
|
+
whatsapp: data.whatsapp,
|
|
136
|
+
whatsappStatus: data.whatsapp_status,
|
|
133
137
|
broadcast: data.broadcast || data.is_broadcast,
|
|
134
138
|
external: data.external,
|
|
135
139
|
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 {
|
|
2
|
+
import { Message as MessageNormalized, MessageForward, MessageAttachment, MessageGiphy, User as NormalizedUser, ChannelAccess, MessageSmsStatus, MessageWhatsAppStatus, ChannelWhatsAppStatus } from "@wildix/xbees-conversations-client";
|
|
3
3
|
export interface StreamChannelFields extends UR {
|
|
4
4
|
subject?: string;
|
|
5
5
|
description?: string;
|
|
@@ -21,6 +21,8 @@ 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;
|
|
24
26
|
broadcast?: boolean;
|
|
25
27
|
is_broadcast?: boolean;
|
|
26
28
|
external?: boolean;
|
|
@@ -39,7 +41,7 @@ export interface StreamEventFields extends UR {
|
|
|
39
41
|
}
|
|
40
42
|
export interface StreamMessageFields extends UR {
|
|
41
43
|
type: 'regular' | 'system';
|
|
42
|
-
quote?:
|
|
44
|
+
quote?: MessageNormalized;
|
|
43
45
|
forward?: MessageForward;
|
|
44
46
|
giphy?: MessageGiphy;
|
|
45
47
|
edit?: boolean;
|
|
@@ -47,6 +49,8 @@ export interface StreamMessageFields extends UR {
|
|
|
47
49
|
attachments?: MessageAttachment[];
|
|
48
50
|
sms?: boolean;
|
|
49
51
|
sms_status?: MessageSmsStatus | string;
|
|
52
|
+
whatsapp?: boolean;
|
|
53
|
+
whatsapp_status?: MessageWhatsAppStatus | string;
|
|
50
54
|
created_at: string;
|
|
51
55
|
updated_at: string;
|
|
52
56
|
}
|
|
@@ -63,7 +67,7 @@ export interface StreamAttachmentFields extends UR {
|
|
|
63
67
|
export interface StreamUserFields extends UR {
|
|
64
68
|
email?: string;
|
|
65
69
|
phone?: string;
|
|
66
|
-
picture
|
|
70
|
+
picture: string;
|
|
67
71
|
online: boolean;
|
|
68
72
|
banned: boolean;
|
|
69
73
|
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.22",
|
|
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.48",
|
|
24
24
|
"stream-chat": "8.12.1",
|
|
25
25
|
"tslib": "^2.5.0"
|
|
26
26
|
},
|