@wildix/xbees-conversations-client 1.0.41 → 1.0.43
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.
- package/dist-cjs/models/models_0.js +1 -10
- package/dist-es/models/models_0.js +0 -9
- package/dist-types/commands/AddChannelMemberCommand.d.ts +1 -0
- package/dist-types/commands/AddChannelMembersCommand.d.ts +1 -0
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +1 -1
- package/dist-types/commands/GetChannelCommand.d.ts +1 -1
- package/dist-types/commands/GetChannelMemberCommand.d.ts +1 -0
- package/dist-types/commands/GetMessageCommand.d.ts +2 -3
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +1 -1
- package/dist-types/commands/InviteCommand.d.ts +1 -0
- package/dist-types/commands/JoinChannelCommand.d.ts +1 -1
- package/dist-types/commands/ListChannelMembersCommand.d.ts +1 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +1 -1
- package/dist-types/commands/ListMessageReactionsCommand.d.ts +1 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +2 -3
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +1 -1
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +4 -3
- package/dist-types/commands/SendGiphyCommand.d.ts +2 -3
- package/dist-types/commands/SendMessageCommand.d.ts +4 -3
- package/dist-types/commands/UpdateChannelCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMessageCommand.d.ts +4 -3
- package/dist-types/models/models_0.d.ts +1 -21
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConversationsServiceException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.
|
|
3
|
+
exports.ConversationsServiceException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MessageType = exports.MessageSmsStatus = exports.FileNotFoundException = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.ConversationFileCategory = exports.ChannelAlreadyExistException = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ChannelType = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const ConversationsServiceException_1 = require("./ConversationsServiceException");
|
|
5
5
|
class ValidationException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -151,15 +151,6 @@ exports.MessageSmsStatus = {
|
|
|
151
151
|
exports.MessageType = {
|
|
152
152
|
REGULAR: "regular",
|
|
153
153
|
};
|
|
154
|
-
exports.MessageWhatsAppStatus = {
|
|
155
|
-
CHANNEL_CLOSED: "24h_channel_closed",
|
|
156
|
-
DELETED: "deleted",
|
|
157
|
-
DELIVERED: "delivered",
|
|
158
|
-
ERROR: "error",
|
|
159
|
-
READ: "read",
|
|
160
|
-
SENT: "sent",
|
|
161
|
-
TRYING: "trying",
|
|
162
|
-
};
|
|
163
154
|
exports.GroupChannelUnsetOptions = {
|
|
164
155
|
ACCESS: "access",
|
|
165
156
|
BROADCAST: "broadcast",
|
|
@@ -140,15 +140,6 @@ export const MessageSmsStatus = {
|
|
|
140
140
|
export const MessageType = {
|
|
141
141
|
REGULAR: "regular",
|
|
142
142
|
};
|
|
143
|
-
export const MessageWhatsAppStatus = {
|
|
144
|
-
CHANNEL_CLOSED: "24h_channel_closed",
|
|
145
|
-
DELETED: "deleted",
|
|
146
|
-
DELIVERED: "delivered",
|
|
147
|
-
ERROR: "error",
|
|
148
|
-
READ: "read",
|
|
149
|
-
SENT: "sent",
|
|
150
|
-
TRYING: "trying",
|
|
151
|
-
};
|
|
152
143
|
export const GroupChannelUnsetOptions = {
|
|
153
144
|
ACCESS: "access",
|
|
154
145
|
BROADCAST: "broadcast",
|
|
@@ -63,6 +63,7 @@ declare const AddChannelMemberCommand_base: {
|
|
|
63
63
|
* // locale: "STRING_VALUE",
|
|
64
64
|
* // timeZone: "STRING_VALUE",
|
|
65
65
|
* // company: "STRING_VALUE",
|
|
66
|
+
* // bot: true || false,
|
|
66
67
|
* // pbxDomain: "STRING_VALUE",
|
|
67
68
|
* // pbxPort: "STRING_VALUE",
|
|
68
69
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -70,6 +70,7 @@ declare const AddChannelMembersCommand_base: {
|
|
|
70
70
|
* // locale: "STRING_VALUE",
|
|
71
71
|
* // timeZone: "STRING_VALUE",
|
|
72
72
|
* // company: "STRING_VALUE",
|
|
73
|
+
* // bot: true || false,
|
|
73
74
|
* // pbxDomain: "STRING_VALUE",
|
|
74
75
|
* // pbxPort: "STRING_VALUE",
|
|
75
76
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -103,6 +103,7 @@ declare const CreateGroupChannelCommand_base: {
|
|
|
103
103
|
* // locale: "STRING_VALUE",
|
|
104
104
|
* // timeZone: "STRING_VALUE",
|
|
105
105
|
* // company: "STRING_VALUE",
|
|
106
|
+
* // bot: true || false,
|
|
106
107
|
* // pbxDomain: "STRING_VALUE",
|
|
107
108
|
* // pbxPort: "STRING_VALUE",
|
|
108
109
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -114,7 +115,6 @@ declare const CreateGroupChannelCommand_base: {
|
|
|
114
115
|
* // telephony: true || false,
|
|
115
116
|
* // sms: true || false,
|
|
116
117
|
* // mms: true || false,
|
|
117
|
-
* // whatsapp: true || false,
|
|
118
118
|
* // broadcast: true || false,
|
|
119
119
|
* // external: true || false,
|
|
120
120
|
* // channelId: "STRING_VALUE", // required
|
|
@@ -85,6 +85,7 @@ declare const GetChannelCommand_base: {
|
|
|
85
85
|
* // locale: "STRING_VALUE",
|
|
86
86
|
* // timeZone: "STRING_VALUE",
|
|
87
87
|
* // company: "STRING_VALUE",
|
|
88
|
+
* // bot: true || false,
|
|
88
89
|
* // pbxDomain: "STRING_VALUE",
|
|
89
90
|
* // pbxPort: "STRING_VALUE",
|
|
90
91
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -96,7 +97,6 @@ declare const GetChannelCommand_base: {
|
|
|
96
97
|
* // telephony: true || false,
|
|
97
98
|
* // sms: true || false,
|
|
98
99
|
* // mms: true || false,
|
|
99
|
-
* // whatsapp: true || false,
|
|
100
100
|
* // broadcast: true || false,
|
|
101
101
|
* // external: true || false,
|
|
102
102
|
* // channelId: "STRING_VALUE", // required
|
|
@@ -55,6 +55,7 @@ declare const GetChannelMemberCommand_base: {
|
|
|
55
55
|
* // locale: "STRING_VALUE",
|
|
56
56
|
* // timeZone: "STRING_VALUE",
|
|
57
57
|
* // company: "STRING_VALUE",
|
|
58
|
+
* // bot: true || false,
|
|
58
59
|
* // pbxDomain: "STRING_VALUE",
|
|
59
60
|
* // pbxPort: "STRING_VALUE",
|
|
60
61
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -67,6 +67,7 @@ declare const GetMessageCommand_base: {
|
|
|
67
67
|
* // locale: "STRING_VALUE",
|
|
68
68
|
* // timeZone: "STRING_VALUE",
|
|
69
69
|
* // company: "STRING_VALUE",
|
|
70
|
+
* // bot: true || false,
|
|
70
71
|
* // pbxDomain: "STRING_VALUE",
|
|
71
72
|
* // pbxPort: "STRING_VALUE",
|
|
72
73
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -104,6 +105,7 @@ declare const GetMessageCommand_base: {
|
|
|
104
105
|
* // locale: "STRING_VALUE",
|
|
105
106
|
* // timeZone: "STRING_VALUE",
|
|
106
107
|
* // company: "STRING_VALUE",
|
|
108
|
+
* // bot: true || false,
|
|
107
109
|
* // pbxDomain: "STRING_VALUE",
|
|
108
110
|
* // pbxPort: "STRING_VALUE",
|
|
109
111
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -141,9 +143,6 @@ declare const GetMessageCommand_base: {
|
|
|
141
143
|
* // event: "STRING_VALUE",
|
|
142
144
|
* // sms: true || false,
|
|
143
145
|
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
144
|
-
* // whatsapp: true || false,
|
|
145
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
|
|
146
|
-
* // whatsappStatusReason: "STRING_VALUE",
|
|
147
146
|
* // messageId: "STRING_VALUE", // required
|
|
148
147
|
* // channelId: "STRING_VALUE", // required
|
|
149
148
|
* // user: "<User>", // required
|
|
@@ -92,6 +92,7 @@ declare const GetOrCreateDirectChannelCommand_base: {
|
|
|
92
92
|
* // locale: "STRING_VALUE",
|
|
93
93
|
* // timeZone: "STRING_VALUE",
|
|
94
94
|
* // company: "STRING_VALUE",
|
|
95
|
+
* // bot: true || false,
|
|
95
96
|
* // pbxDomain: "STRING_VALUE",
|
|
96
97
|
* // pbxPort: "STRING_VALUE",
|
|
97
98
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -103,7 +104,6 @@ declare const GetOrCreateDirectChannelCommand_base: {
|
|
|
103
104
|
* // telephony: true || false,
|
|
104
105
|
* // sms: true || false,
|
|
105
106
|
* // mms: true || false,
|
|
106
|
-
* // whatsapp: true || false,
|
|
107
107
|
* // broadcast: true || false,
|
|
108
108
|
* // external: true || false,
|
|
109
109
|
* // channelId: "STRING_VALUE", // required
|
|
@@ -57,6 +57,7 @@ declare const InviteCommand_base: {
|
|
|
57
57
|
* // locale: "STRING_VALUE",
|
|
58
58
|
* // timeZone: "STRING_VALUE",
|
|
59
59
|
* // company: "STRING_VALUE",
|
|
60
|
+
* // bot: true || false,
|
|
60
61
|
* // pbxDomain: "STRING_VALUE",
|
|
61
62
|
* // pbxPort: "STRING_VALUE",
|
|
62
63
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -87,6 +87,7 @@ declare const JoinChannelCommand_base: {
|
|
|
87
87
|
* // locale: "STRING_VALUE",
|
|
88
88
|
* // timeZone: "STRING_VALUE",
|
|
89
89
|
* // company: "STRING_VALUE",
|
|
90
|
+
* // bot: true || false,
|
|
90
91
|
* // pbxDomain: "STRING_VALUE",
|
|
91
92
|
* // pbxPort: "STRING_VALUE",
|
|
92
93
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -98,7 +99,6 @@ declare const JoinChannelCommand_base: {
|
|
|
98
99
|
* // telephony: true || false,
|
|
99
100
|
* // sms: true || false,
|
|
100
101
|
* // mms: true || false,
|
|
101
|
-
* // whatsapp: true || false,
|
|
102
102
|
* // broadcast: true || false,
|
|
103
103
|
* // external: true || false,
|
|
104
104
|
* // channelId: "STRING_VALUE", // required
|
|
@@ -59,6 +59,7 @@ declare const ListChannelMembersCommand_base: {
|
|
|
59
59
|
* // locale: "STRING_VALUE",
|
|
60
60
|
* // timeZone: "STRING_VALUE",
|
|
61
61
|
* // company: "STRING_VALUE",
|
|
62
|
+
* // bot: true || false,
|
|
62
63
|
* // pbxDomain: "STRING_VALUE",
|
|
63
64
|
* // pbxPort: "STRING_VALUE",
|
|
64
65
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -88,6 +88,7 @@ declare const ListChannelsCommand_base: {
|
|
|
88
88
|
* // locale: "STRING_VALUE",
|
|
89
89
|
* // timeZone: "STRING_VALUE",
|
|
90
90
|
* // company: "STRING_VALUE",
|
|
91
|
+
* // bot: true || false,
|
|
91
92
|
* // pbxDomain: "STRING_VALUE",
|
|
92
93
|
* // pbxPort: "STRING_VALUE",
|
|
93
94
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -99,7 +100,6 @@ declare const ListChannelsCommand_base: {
|
|
|
99
100
|
* // telephony: true || false,
|
|
100
101
|
* // sms: true || false,
|
|
101
102
|
* // mms: true || false,
|
|
102
|
-
* // whatsapp: true || false,
|
|
103
103
|
* // broadcast: true || false,
|
|
104
104
|
* // external: true || false,
|
|
105
105
|
* // channelId: "STRING_VALUE", // required
|
|
@@ -57,6 +57,7 @@ declare const ListMessageReactionsCommand_base: {
|
|
|
57
57
|
* // locale: "STRING_VALUE",
|
|
58
58
|
* // timeZone: "STRING_VALUE",
|
|
59
59
|
* // company: "STRING_VALUE",
|
|
60
|
+
* // bot: true || false,
|
|
60
61
|
* // pbxDomain: "STRING_VALUE",
|
|
61
62
|
* // pbxPort: "STRING_VALUE",
|
|
62
63
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -69,6 +69,7 @@ declare const ListMessagesCommand_base: {
|
|
|
69
69
|
* // locale: "STRING_VALUE",
|
|
70
70
|
* // timeZone: "STRING_VALUE",
|
|
71
71
|
* // company: "STRING_VALUE",
|
|
72
|
+
* // bot: true || false,
|
|
72
73
|
* // pbxDomain: "STRING_VALUE",
|
|
73
74
|
* // pbxPort: "STRING_VALUE",
|
|
74
75
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -106,6 +107,7 @@ declare const ListMessagesCommand_base: {
|
|
|
106
107
|
* // locale: "STRING_VALUE",
|
|
107
108
|
* // timeZone: "STRING_VALUE",
|
|
108
109
|
* // company: "STRING_VALUE",
|
|
110
|
+
* // bot: true || false,
|
|
109
111
|
* // pbxDomain: "STRING_VALUE",
|
|
110
112
|
* // pbxPort: "STRING_VALUE",
|
|
111
113
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -143,9 +145,6 @@ declare const ListMessagesCommand_base: {
|
|
|
143
145
|
* // event: "STRING_VALUE",
|
|
144
146
|
* // sms: true || false,
|
|
145
147
|
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
146
|
-
* // whatsapp: true || false,
|
|
147
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
|
|
148
|
-
* // whatsappStatusReason: "STRING_VALUE",
|
|
149
148
|
* // messageId: "STRING_VALUE", // required
|
|
150
149
|
* // channelId: "STRING_VALUE", // required
|
|
151
150
|
* // user: "<User>", // required
|
|
@@ -98,6 +98,7 @@ declare const PartialUpdateChannelCommand_base: {
|
|
|
98
98
|
* // locale: "STRING_VALUE",
|
|
99
99
|
* // timeZone: "STRING_VALUE",
|
|
100
100
|
* // company: "STRING_VALUE",
|
|
101
|
+
* // bot: true || false,
|
|
101
102
|
* // pbxDomain: "STRING_VALUE",
|
|
102
103
|
* // pbxPort: "STRING_VALUE",
|
|
103
104
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -109,7 +110,6 @@ declare const PartialUpdateChannelCommand_base: {
|
|
|
109
110
|
* // telephony: true || false,
|
|
110
111
|
* // sms: true || false,
|
|
111
112
|
* // mms: true || false,
|
|
112
|
-
* // whatsapp: true || false,
|
|
113
113
|
* // broadcast: true || false,
|
|
114
114
|
* // external: true || false,
|
|
115
115
|
* // channelId: "STRING_VALUE", // required
|
|
@@ -63,6 +63,7 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
63
63
|
* locale: "STRING_VALUE",
|
|
64
64
|
* timeZone: "STRING_VALUE",
|
|
65
65
|
* company: "STRING_VALUE",
|
|
66
|
+
* bot: true || false,
|
|
66
67
|
* pbxDomain: "STRING_VALUE",
|
|
67
68
|
* pbxPort: "STRING_VALUE",
|
|
68
69
|
* pbxExtension: "STRING_VALUE",
|
|
@@ -100,6 +101,7 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
100
101
|
* locale: "STRING_VALUE",
|
|
101
102
|
* timeZone: "STRING_VALUE",
|
|
102
103
|
* company: "STRING_VALUE",
|
|
104
|
+
* bot: true || false,
|
|
103
105
|
* pbxDomain: "STRING_VALUE",
|
|
104
106
|
* pbxPort: "STRING_VALUE",
|
|
105
107
|
* pbxExtension: "STRING_VALUE",
|
|
@@ -159,6 +161,7 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
159
161
|
* // locale: "STRING_VALUE",
|
|
160
162
|
* // timeZone: "STRING_VALUE",
|
|
161
163
|
* // company: "STRING_VALUE",
|
|
164
|
+
* // bot: true || false,
|
|
162
165
|
* // pbxDomain: "STRING_VALUE",
|
|
163
166
|
* // pbxPort: "STRING_VALUE",
|
|
164
167
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -196,6 +199,7 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
196
199
|
* // locale: "STRING_VALUE",
|
|
197
200
|
* // timeZone: "STRING_VALUE",
|
|
198
201
|
* // company: "STRING_VALUE",
|
|
202
|
+
* // bot: true || false,
|
|
199
203
|
* // pbxDomain: "STRING_VALUE",
|
|
200
204
|
* // pbxPort: "STRING_VALUE",
|
|
201
205
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -233,9 +237,6 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
233
237
|
* // event: "STRING_VALUE",
|
|
234
238
|
* // sms: true || false,
|
|
235
239
|
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
236
|
-
* // whatsapp: true || false,
|
|
237
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
|
|
238
|
-
* // whatsappStatusReason: "STRING_VALUE",
|
|
239
240
|
* // messageId: "STRING_VALUE", // required
|
|
240
241
|
* // channelId: "STRING_VALUE", // required
|
|
241
242
|
* // user: "<User>", // required
|
|
@@ -75,6 +75,7 @@ declare const SendGiphyCommand_base: {
|
|
|
75
75
|
* // locale: "STRING_VALUE",
|
|
76
76
|
* // timeZone: "STRING_VALUE",
|
|
77
77
|
* // company: "STRING_VALUE",
|
|
78
|
+
* // bot: true || false,
|
|
78
79
|
* // pbxDomain: "STRING_VALUE",
|
|
79
80
|
* // pbxPort: "STRING_VALUE",
|
|
80
81
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -112,6 +113,7 @@ declare const SendGiphyCommand_base: {
|
|
|
112
113
|
* // locale: "STRING_VALUE",
|
|
113
114
|
* // timeZone: "STRING_VALUE",
|
|
114
115
|
* // company: "STRING_VALUE",
|
|
116
|
+
* // bot: true || false,
|
|
115
117
|
* // pbxDomain: "STRING_VALUE",
|
|
116
118
|
* // pbxPort: "STRING_VALUE",
|
|
117
119
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -149,9 +151,6 @@ declare const SendGiphyCommand_base: {
|
|
|
149
151
|
* // event: "STRING_VALUE",
|
|
150
152
|
* // sms: true || false,
|
|
151
153
|
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
152
|
-
* // whatsapp: true || false,
|
|
153
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
|
|
154
|
-
* // whatsappStatusReason: "STRING_VALUE",
|
|
155
154
|
* // messageId: "STRING_VALUE", // required
|
|
156
155
|
* // channelId: "STRING_VALUE", // required
|
|
157
156
|
* // user: "<User>", // required
|
|
@@ -60,6 +60,7 @@ declare const SendMessageCommand_base: {
|
|
|
60
60
|
* locale: "STRING_VALUE",
|
|
61
61
|
* timeZone: "STRING_VALUE",
|
|
62
62
|
* company: "STRING_VALUE",
|
|
63
|
+
* bot: true || false,
|
|
63
64
|
* pbxDomain: "STRING_VALUE",
|
|
64
65
|
* pbxPort: "STRING_VALUE",
|
|
65
66
|
* pbxExtension: "STRING_VALUE",
|
|
@@ -97,6 +98,7 @@ declare const SendMessageCommand_base: {
|
|
|
97
98
|
* locale: "STRING_VALUE",
|
|
98
99
|
* timeZone: "STRING_VALUE",
|
|
99
100
|
* company: "STRING_VALUE",
|
|
101
|
+
* bot: true || false,
|
|
100
102
|
* pbxDomain: "STRING_VALUE",
|
|
101
103
|
* pbxPort: "STRING_VALUE",
|
|
102
104
|
* pbxExtension: "STRING_VALUE",
|
|
@@ -158,6 +160,7 @@ declare const SendMessageCommand_base: {
|
|
|
158
160
|
* // locale: "STRING_VALUE",
|
|
159
161
|
* // timeZone: "STRING_VALUE",
|
|
160
162
|
* // company: "STRING_VALUE",
|
|
163
|
+
* // bot: true || false,
|
|
161
164
|
* // pbxDomain: "STRING_VALUE",
|
|
162
165
|
* // pbxPort: "STRING_VALUE",
|
|
163
166
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -195,6 +198,7 @@ declare const SendMessageCommand_base: {
|
|
|
195
198
|
* // locale: "STRING_VALUE",
|
|
196
199
|
* // timeZone: "STRING_VALUE",
|
|
197
200
|
* // company: "STRING_VALUE",
|
|
201
|
+
* // bot: true || false,
|
|
198
202
|
* // pbxDomain: "STRING_VALUE",
|
|
199
203
|
* // pbxPort: "STRING_VALUE",
|
|
200
204
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -232,9 +236,6 @@ declare const SendMessageCommand_base: {
|
|
|
232
236
|
* // event: "STRING_VALUE",
|
|
233
237
|
* // sms: true || false,
|
|
234
238
|
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
235
|
-
* // whatsapp: true || false,
|
|
236
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
|
|
237
|
-
* // whatsappStatusReason: "STRING_VALUE",
|
|
238
239
|
* // messageId: "STRING_VALUE", // required
|
|
239
240
|
* // channelId: "STRING_VALUE", // required
|
|
240
241
|
* // user: "<User>", // required
|
|
@@ -93,6 +93,7 @@ declare const UpdateChannelCommand_base: {
|
|
|
93
93
|
* // locale: "STRING_VALUE",
|
|
94
94
|
* // timeZone: "STRING_VALUE",
|
|
95
95
|
* // company: "STRING_VALUE",
|
|
96
|
+
* // bot: true || false,
|
|
96
97
|
* // pbxDomain: "STRING_VALUE",
|
|
97
98
|
* // pbxPort: "STRING_VALUE",
|
|
98
99
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -104,7 +105,6 @@ declare const UpdateChannelCommand_base: {
|
|
|
104
105
|
* // telephony: true || false,
|
|
105
106
|
* // sms: true || false,
|
|
106
107
|
* // mms: true || false,
|
|
107
|
-
* // whatsapp: true || false,
|
|
108
108
|
* // broadcast: true || false,
|
|
109
109
|
* // external: true || false,
|
|
110
110
|
* // channelId: "STRING_VALUE", // required
|
|
@@ -60,6 +60,7 @@ declare const UpdateMessageCommand_base: {
|
|
|
60
60
|
* locale: "STRING_VALUE",
|
|
61
61
|
* timeZone: "STRING_VALUE",
|
|
62
62
|
* company: "STRING_VALUE",
|
|
63
|
+
* bot: true || false,
|
|
63
64
|
* pbxDomain: "STRING_VALUE",
|
|
64
65
|
* pbxPort: "STRING_VALUE",
|
|
65
66
|
* pbxExtension: "STRING_VALUE",
|
|
@@ -97,6 +98,7 @@ declare const UpdateMessageCommand_base: {
|
|
|
97
98
|
* locale: "STRING_VALUE",
|
|
98
99
|
* timeZone: "STRING_VALUE",
|
|
99
100
|
* company: "STRING_VALUE",
|
|
101
|
+
* bot: true || false,
|
|
100
102
|
* pbxDomain: "STRING_VALUE",
|
|
101
103
|
* pbxPort: "STRING_VALUE",
|
|
102
104
|
* pbxExtension: "STRING_VALUE",
|
|
@@ -157,6 +159,7 @@ declare const UpdateMessageCommand_base: {
|
|
|
157
159
|
* // locale: "STRING_VALUE",
|
|
158
160
|
* // timeZone: "STRING_VALUE",
|
|
159
161
|
* // company: "STRING_VALUE",
|
|
162
|
+
* // bot: true || false,
|
|
160
163
|
* // pbxDomain: "STRING_VALUE",
|
|
161
164
|
* // pbxPort: "STRING_VALUE",
|
|
162
165
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -194,6 +197,7 @@ declare const UpdateMessageCommand_base: {
|
|
|
194
197
|
* // locale: "STRING_VALUE",
|
|
195
198
|
* // timeZone: "STRING_VALUE",
|
|
196
199
|
* // company: "STRING_VALUE",
|
|
200
|
+
* // bot: true || false,
|
|
197
201
|
* // pbxDomain: "STRING_VALUE",
|
|
198
202
|
* // pbxPort: "STRING_VALUE",
|
|
199
203
|
* // pbxExtension: "STRING_VALUE",
|
|
@@ -231,9 +235,6 @@ declare const UpdateMessageCommand_base: {
|
|
|
231
235
|
* // event: "STRING_VALUE",
|
|
232
236
|
* // sms: true || false,
|
|
233
237
|
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
234
|
-
* // whatsapp: true || false,
|
|
235
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
|
|
236
|
-
* // whatsappStatusReason: "STRING_VALUE",
|
|
237
238
|
* // messageId: "STRING_VALUE", // required
|
|
238
239
|
* // channelId: "STRING_VALUE", // required
|
|
239
240
|
* // user: "<User>", // required
|
|
@@ -34,6 +34,7 @@ export interface User {
|
|
|
34
34
|
locale?: string;
|
|
35
35
|
timeZone?: string;
|
|
36
36
|
company?: string;
|
|
37
|
+
bot?: boolean;
|
|
37
38
|
pbxDomain?: string;
|
|
38
39
|
pbxPort?: string;
|
|
39
40
|
pbxExtension?: string;
|
|
@@ -267,7 +268,6 @@ export interface Channel {
|
|
|
267
268
|
telephony?: boolean;
|
|
268
269
|
sms?: boolean;
|
|
269
270
|
mms?: boolean;
|
|
270
|
-
whatsapp?: boolean;
|
|
271
271
|
broadcast?: boolean;
|
|
272
272
|
external?: boolean;
|
|
273
273
|
channelId: string;
|
|
@@ -620,23 +620,6 @@ export declare const MessageType: {
|
|
|
620
620
|
* @public
|
|
621
621
|
*/
|
|
622
622
|
export type MessageType = typeof MessageType[keyof typeof MessageType];
|
|
623
|
-
/**
|
|
624
|
-
* @public
|
|
625
|
-
* @enum
|
|
626
|
-
*/
|
|
627
|
-
export declare const MessageWhatsAppStatus: {
|
|
628
|
-
readonly CHANNEL_CLOSED: "24h_channel_closed";
|
|
629
|
-
readonly DELETED: "deleted";
|
|
630
|
-
readonly DELIVERED: "delivered";
|
|
631
|
-
readonly ERROR: "error";
|
|
632
|
-
readonly READ: "read";
|
|
633
|
-
readonly SENT: "sent";
|
|
634
|
-
readonly TRYING: "trying";
|
|
635
|
-
};
|
|
636
|
-
/**
|
|
637
|
-
* @public
|
|
638
|
-
*/
|
|
639
|
-
export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof MessageWhatsAppStatus];
|
|
640
623
|
/**
|
|
641
624
|
* @public
|
|
642
625
|
*/
|
|
@@ -651,9 +634,6 @@ export interface Message {
|
|
|
651
634
|
event?: string;
|
|
652
635
|
sms?: boolean;
|
|
653
636
|
smsStatus?: MessageSmsStatus;
|
|
654
|
-
whatsapp?: boolean;
|
|
655
|
-
whatsappStatus?: MessageWhatsAppStatus;
|
|
656
|
-
whatsappStatusReason?: string;
|
|
657
637
|
messageId: string;
|
|
658
638
|
channelId: string;
|
|
659
639
|
user: User;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-conversations-client",
|
|
3
3
|
"description": "@wildix/xbees-conversations-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.43",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -75,4 +75,4 @@
|
|
|
75
75
|
"react-native": {
|
|
76
76
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
77
77
|
}
|
|
78
|
-
}
|
|
78
|
+
}
|