@wildix/xbees-conversations-client 1.1.17 → 1.1.18
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 +17 -13
- package/dist-cjs/protocols/Aws_restJson1.js +8 -7
- package/dist-es/models/models_0.js +16 -12
- package/dist-es/protocols/Aws_restJson1.js +8 -7
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +8 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +20 -20
- package/dist-types/commands/GetMessageCommand.d.ts +4 -4
- package/dist-types/commands/ListMessagesCommand.d.ts +4 -4
- package/dist-types/commands/ListPinnedMessagesCommand.d.ts +4 -4
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +9 -5
- package/dist-types/commands/SendGiphyCommand.d.ts +4 -4
- package/dist-types/commands/SendMessageCommand.d.ts +8 -4
- package/dist-types/commands/SendTemplateMessageCommand.d.ts +4 -125
- package/dist-types/commands/UpdateMessageCommand.d.ts +8 -4
- package/dist-types/models/models_0.d.ts +56 -47
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageActionNotFoundException = exports.TaggedChannelsLimitReachedException = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.
|
|
3
|
+
exports.MessageActionNotFoundException = exports.TaggedChannelsLimitReachedException = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.MessageType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TargetNotFoundException = exports.TargetNotEligibleException = exports.TargetNotEligibleReason = exports.MessageWhatsAppStatus = exports.MessageSmsStatus = exports.Element = exports.TagsLimitReachedException = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.AssignChannelVariant = exports.AssignChannelServiceRequest = exports.AssignChannelAssigneeRequest = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ActionTriggerStatus = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelType = exports.FileNotFoundException = exports.ConversationFileCategory = exports.RateLimitExceededException = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const ConversationsServiceException_1 = require("./ConversationsServiceException");
|
|
5
5
|
class ValidationException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
6
6
|
name = "ValidationException";
|
|
@@ -203,6 +203,18 @@ var Element;
|
|
|
203
203
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
204
204
|
};
|
|
205
205
|
})(Element || (exports.Element = Element = {}));
|
|
206
|
+
exports.MessageSmsStatus = {
|
|
207
|
+
DELIVERED: "delivered",
|
|
208
|
+
ERROR: "error",
|
|
209
|
+
SENT: "sent",
|
|
210
|
+
TRYING: "trying",
|
|
211
|
+
};
|
|
212
|
+
exports.MessageWhatsAppStatus = {
|
|
213
|
+
DELIVERED: "delivered",
|
|
214
|
+
ERROR: "error",
|
|
215
|
+
SENT: "sent",
|
|
216
|
+
TRYING: "trying",
|
|
217
|
+
};
|
|
206
218
|
exports.TargetNotEligibleReason = {
|
|
207
219
|
NO_LICENSE: "no_license",
|
|
208
220
|
};
|
|
@@ -271,22 +283,10 @@ exports.ReactionType = {
|
|
|
271
283
|
THUMBSUP: "thumbsup",
|
|
272
284
|
WHITE_CHECK_MARK: "white_check_mark",
|
|
273
285
|
};
|
|
274
|
-
exports.MessageSmsStatus = {
|
|
275
|
-
DELIVERED: "delivered",
|
|
276
|
-
ERROR: "error",
|
|
277
|
-
SENT: "sent",
|
|
278
|
-
TRYING: "trying",
|
|
279
|
-
};
|
|
280
286
|
exports.MessageType = {
|
|
281
287
|
REGULAR: "regular",
|
|
282
288
|
SYSTEM: "system",
|
|
283
289
|
};
|
|
284
|
-
exports.MessageWhatsAppStatus = {
|
|
285
|
-
DELIVERED: "delivered",
|
|
286
|
-
ERROR: "error",
|
|
287
|
-
SENT: "sent",
|
|
288
|
-
TRYING: "trying",
|
|
289
|
-
};
|
|
290
290
|
exports.WebhookEventType = {
|
|
291
291
|
ACTION_TRIGGERED: "chat:action:triggered",
|
|
292
292
|
CHANNEL_CREATED: "chat:channel:created",
|
|
@@ -355,7 +355,11 @@ exports.MessageUnsetFields = {
|
|
|
355
355
|
FORWARD: "forward",
|
|
356
356
|
MENTIONS: "mentions",
|
|
357
357
|
QUOTE: "quote",
|
|
358
|
+
SMS: "sms",
|
|
359
|
+
SMS_STATUS: "smsStatus",
|
|
358
360
|
TEXT: "text",
|
|
361
|
+
WHATSAPP: "whatsapp",
|
|
362
|
+
WHATSAPP_STATUS: "whatsappStatus",
|
|
359
363
|
};
|
|
360
364
|
class PinnedChannelsLimitReachedException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
361
365
|
name = "PinnedChannelsLimitReachedException";
|
|
@@ -963,7 +963,11 @@ const se_SendMessageCommand = async (input, context) => {
|
|
|
963
963
|
'mentions': _ => (0, smithy_client_1._json)(_),
|
|
964
964
|
'messageId': [],
|
|
965
965
|
'quote': _ => (0, smithy_client_1._json)(_),
|
|
966
|
+
'sms': [],
|
|
967
|
+
'smsStatus': [],
|
|
966
968
|
'text': [],
|
|
969
|
+
'whatsapp': [],
|
|
970
|
+
'whatsappStatus': [],
|
|
967
971
|
}));
|
|
968
972
|
b.m("POST")
|
|
969
973
|
.h(headers)
|
|
@@ -1003,13 +1007,6 @@ const se_SendTemplateMessageCommand = async (input, context) => {
|
|
|
1003
1007
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
1004
1008
|
let body;
|
|
1005
1009
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1006
|
-
'attachments': _ => (0, smithy_client_1._json)(_),
|
|
1007
|
-
'elements': _ => (0, smithy_client_1._json)(_),
|
|
1008
|
-
'forward': _ => (0, smithy_client_1._json)(_),
|
|
1009
|
-
'mentions': _ => (0, smithy_client_1._json)(_),
|
|
1010
|
-
'messageId': [],
|
|
1011
|
-
'quote': _ => (0, smithy_client_1._json)(_),
|
|
1012
|
-
'text': [],
|
|
1013
1010
|
'userId': [],
|
|
1014
1011
|
'whatsapp': _ => (0, smithy_client_1._json)(_),
|
|
1015
1012
|
}));
|
|
@@ -1226,7 +1223,11 @@ const se_UpdateMessageCommand = async (input, context) => {
|
|
|
1226
1223
|
'mentions': _ => (0, smithy_client_1._json)(_),
|
|
1227
1224
|
'quote': _ => (0, smithy_client_1._json)(_),
|
|
1228
1225
|
'silent': [],
|
|
1226
|
+
'sms': [],
|
|
1227
|
+
'smsStatus': [],
|
|
1229
1228
|
'text': [],
|
|
1229
|
+
'whatsapp': [],
|
|
1230
|
+
'whatsappStatus': [],
|
|
1230
1231
|
}));
|
|
1231
1232
|
b.m("PUT")
|
|
1232
1233
|
.h(headers)
|
|
@@ -192,6 +192,18 @@ export var Element;
|
|
|
192
192
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
193
193
|
};
|
|
194
194
|
})(Element || (Element = {}));
|
|
195
|
+
export const MessageSmsStatus = {
|
|
196
|
+
DELIVERED: "delivered",
|
|
197
|
+
ERROR: "error",
|
|
198
|
+
SENT: "sent",
|
|
199
|
+
TRYING: "trying",
|
|
200
|
+
};
|
|
201
|
+
export const MessageWhatsAppStatus = {
|
|
202
|
+
DELIVERED: "delivered",
|
|
203
|
+
ERROR: "error",
|
|
204
|
+
SENT: "sent",
|
|
205
|
+
TRYING: "trying",
|
|
206
|
+
};
|
|
195
207
|
export const TargetNotEligibleReason = {
|
|
196
208
|
NO_LICENSE: "no_license",
|
|
197
209
|
};
|
|
@@ -256,22 +268,10 @@ export const ReactionType = {
|
|
|
256
268
|
THUMBSUP: "thumbsup",
|
|
257
269
|
WHITE_CHECK_MARK: "white_check_mark",
|
|
258
270
|
};
|
|
259
|
-
export const MessageSmsStatus = {
|
|
260
|
-
DELIVERED: "delivered",
|
|
261
|
-
ERROR: "error",
|
|
262
|
-
SENT: "sent",
|
|
263
|
-
TRYING: "trying",
|
|
264
|
-
};
|
|
265
271
|
export const MessageType = {
|
|
266
272
|
REGULAR: "regular",
|
|
267
273
|
SYSTEM: "system",
|
|
268
274
|
};
|
|
269
|
-
export const MessageWhatsAppStatus = {
|
|
270
|
-
DELIVERED: "delivered",
|
|
271
|
-
ERROR: "error",
|
|
272
|
-
SENT: "sent",
|
|
273
|
-
TRYING: "trying",
|
|
274
|
-
};
|
|
275
275
|
export const WebhookEventType = {
|
|
276
276
|
ACTION_TRIGGERED: "chat:action:triggered",
|
|
277
277
|
CHANNEL_CREATED: "chat:channel:created",
|
|
@@ -337,7 +337,11 @@ export const MessageUnsetFields = {
|
|
|
337
337
|
FORWARD: "forward",
|
|
338
338
|
MENTIONS: "mentions",
|
|
339
339
|
QUOTE: "quote",
|
|
340
|
+
SMS: "sms",
|
|
341
|
+
SMS_STATUS: "smsStatus",
|
|
340
342
|
TEXT: "text",
|
|
343
|
+
WHATSAPP: "whatsapp",
|
|
344
|
+
WHATSAPP_STATUS: "whatsappStatus",
|
|
341
345
|
};
|
|
342
346
|
export class PinnedChannelsLimitReachedException extends __BaseException {
|
|
343
347
|
name = "PinnedChannelsLimitReachedException";
|
|
@@ -908,7 +908,11 @@ export const se_SendMessageCommand = async (input, context) => {
|
|
|
908
908
|
'mentions': _ => _json(_),
|
|
909
909
|
'messageId': [],
|
|
910
910
|
'quote': _ => _json(_),
|
|
911
|
+
'sms': [],
|
|
912
|
+
'smsStatus': [],
|
|
911
913
|
'text': [],
|
|
914
|
+
'whatsapp': [],
|
|
915
|
+
'whatsappStatus': [],
|
|
912
916
|
}));
|
|
913
917
|
b.m("POST")
|
|
914
918
|
.h(headers)
|
|
@@ -946,13 +950,6 @@ export const se_SendTemplateMessageCommand = async (input, context) => {
|
|
|
946
950
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
947
951
|
let body;
|
|
948
952
|
body = JSON.stringify(take(input, {
|
|
949
|
-
'attachments': _ => _json(_),
|
|
950
|
-
'elements': _ => _json(_),
|
|
951
|
-
'forward': _ => _json(_),
|
|
952
|
-
'mentions': _ => _json(_),
|
|
953
|
-
'messageId': [],
|
|
954
|
-
'quote': _ => _json(_),
|
|
955
|
-
'text': [],
|
|
956
953
|
'userId': [],
|
|
957
954
|
'whatsapp': _ => _json(_),
|
|
958
955
|
}));
|
|
@@ -1158,7 +1155,11 @@ export const se_UpdateMessageCommand = async (input, context) => {
|
|
|
1158
1155
|
'mentions': _ => _json(_),
|
|
1159
1156
|
'quote': _ => _json(_),
|
|
1160
1157
|
'silent': [],
|
|
1158
|
+
'sms': [],
|
|
1159
|
+
'smsStatus': [],
|
|
1161
1160
|
'text': [],
|
|
1161
|
+
'whatsapp': [],
|
|
1162
|
+
'whatsappStatus': [],
|
|
1162
1163
|
}));
|
|
1163
1164
|
b.m("PUT")
|
|
1164
1165
|
.h(headers)
|
|
@@ -158,6 +158,10 @@ declare const CreateKiteChannelCommand_base: {
|
|
|
158
158
|
* messageId: "STRING_VALUE", // required
|
|
159
159
|
* channelId: "STRING_VALUE", // required
|
|
160
160
|
* },
|
|
161
|
+
* whatsapp: true || false,
|
|
162
|
+
* whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
163
|
+
* sms: true || false,
|
|
164
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
161
165
|
* messageId: "STRING_VALUE", // required
|
|
162
166
|
* mentions: [ // UsersIdList
|
|
163
167
|
* "STRING_VALUE",
|
|
@@ -220,6 +224,10 @@ declare const CreateKiteChannelCommand_base: {
|
|
|
220
224
|
* updatedAt: "STRING_VALUE",
|
|
221
225
|
* },
|
|
222
226
|
* forward: "<MessageForward>",
|
|
227
|
+
* whatsapp: true || false,
|
|
228
|
+
* whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
229
|
+
* sms: true || false,
|
|
230
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
223
231
|
* messageId: "STRING_VALUE", // required
|
|
224
232
|
* mentions: [
|
|
225
233
|
* "STRING_VALUE",
|
|
@@ -568,6 +568,10 @@ declare const DescribeEventCommand_base: {
|
|
|
568
568
|
* // messageId: "STRING_VALUE", // required
|
|
569
569
|
* // channelId: "STRING_VALUE", // required
|
|
570
570
|
* // },
|
|
571
|
+
* // whatsapp: true || false,
|
|
572
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
573
|
+
* // sms: true || false,
|
|
574
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
571
575
|
* // type: "regular" || "system", // required
|
|
572
576
|
* // giphy: {
|
|
573
577
|
* // id: "STRING_VALUE", // required
|
|
@@ -578,10 +582,6 @@ declare const DescribeEventCommand_base: {
|
|
|
578
582
|
* // },
|
|
579
583
|
* // silent: true || false,
|
|
580
584
|
* // event: "STRING_VALUE",
|
|
581
|
-
* // sms: true || false,
|
|
582
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
583
|
-
* // whatsapp: true || false,
|
|
584
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
585
585
|
* // messageId: "STRING_VALUE", // required
|
|
586
586
|
* // channelId: "STRING_VALUE", // required
|
|
587
587
|
* // user: "<User>", // required
|
|
@@ -694,6 +694,10 @@ declare const DescribeEventCommand_base: {
|
|
|
694
694
|
* // messageId: "STRING_VALUE", // required
|
|
695
695
|
* // channelId: "STRING_VALUE", // required
|
|
696
696
|
* // },
|
|
697
|
+
* // whatsapp: true || false,
|
|
698
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
699
|
+
* // sms: true || false,
|
|
700
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
697
701
|
* // type: "regular" || "system", // required
|
|
698
702
|
* // giphy: {
|
|
699
703
|
* // id: "STRING_VALUE", // required
|
|
@@ -704,10 +708,6 @@ declare const DescribeEventCommand_base: {
|
|
|
704
708
|
* // },
|
|
705
709
|
* // silent: true || false,
|
|
706
710
|
* // event: "STRING_VALUE",
|
|
707
|
-
* // sms: true || false,
|
|
708
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
709
|
-
* // whatsapp: true || false,
|
|
710
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
711
711
|
* // messageId: "STRING_VALUE", // required
|
|
712
712
|
* // channelId: "STRING_VALUE", // required
|
|
713
713
|
* // user: "<User>", // required
|
|
@@ -802,14 +802,14 @@ declare const DescribeEventCommand_base: {
|
|
|
802
802
|
* // updatedAt: "STRING_VALUE",
|
|
803
803
|
* // },
|
|
804
804
|
* // forward: "<MessageForward>",
|
|
805
|
+
* // whatsapp: true || false,
|
|
806
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
807
|
+
* // sms: true || false,
|
|
808
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
805
809
|
* // type: "regular" || "system", // required
|
|
806
810
|
* // giphy: "<MessageGiphy>",
|
|
807
811
|
* // silent: true || false,
|
|
808
812
|
* // event: "STRING_VALUE",
|
|
809
|
-
* // sms: true || false,
|
|
810
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
811
|
-
* // whatsapp: true || false,
|
|
812
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
813
813
|
* // messageId: "STRING_VALUE", // required
|
|
814
814
|
* // channelId: "STRING_VALUE", // required
|
|
815
815
|
* // user: "<User>", // required
|
|
@@ -880,14 +880,14 @@ declare const DescribeEventCommand_base: {
|
|
|
880
880
|
* // updatedAt: "STRING_VALUE",
|
|
881
881
|
* // },
|
|
882
882
|
* // forward: "<MessageForward>",
|
|
883
|
+
* // whatsapp: true || false,
|
|
884
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
885
|
+
* // sms: true || false,
|
|
886
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
883
887
|
* // type: "regular" || "system", // required
|
|
884
888
|
* // giphy: "<MessageGiphy>",
|
|
885
889
|
* // silent: true || false,
|
|
886
890
|
* // event: "STRING_VALUE",
|
|
887
|
-
* // sms: true || false,
|
|
888
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
889
|
-
* // whatsapp: true || false,
|
|
890
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
891
891
|
* // messageId: "STRING_VALUE", // required
|
|
892
892
|
* // channelId: "STRING_VALUE", // required
|
|
893
893
|
* // user: "<User>", // required
|
|
@@ -964,14 +964,14 @@ declare const DescribeEventCommand_base: {
|
|
|
964
964
|
* // updatedAt: "STRING_VALUE",
|
|
965
965
|
* // },
|
|
966
966
|
* // forward: "<MessageForward>",
|
|
967
|
+
* // whatsapp: true || false,
|
|
968
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
969
|
+
* // sms: true || false,
|
|
970
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
967
971
|
* // type: "regular" || "system", // required
|
|
968
972
|
* // giphy: "<MessageGiphy>",
|
|
969
973
|
* // silent: true || false,
|
|
970
974
|
* // event: "STRING_VALUE",
|
|
971
|
-
* // sms: true || false,
|
|
972
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
973
|
-
* // whatsapp: true || false,
|
|
974
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
975
975
|
* // messageId: "STRING_VALUE", // required
|
|
976
976
|
* // channelId: "STRING_VALUE", // required
|
|
977
977
|
* // user: "<User>", // required
|
|
@@ -159,6 +159,10 @@ declare const GetMessageCommand_base: {
|
|
|
159
159
|
* // messageId: "STRING_VALUE", // required
|
|
160
160
|
* // channelId: "STRING_VALUE", // required
|
|
161
161
|
* // },
|
|
162
|
+
* // whatsapp: true || false,
|
|
163
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
164
|
+
* // sms: true || false,
|
|
165
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
162
166
|
* // type: "regular" || "system", // required
|
|
163
167
|
* // giphy: {
|
|
164
168
|
* // id: "STRING_VALUE", // required
|
|
@@ -169,10 +173,6 @@ declare const GetMessageCommand_base: {
|
|
|
169
173
|
* // },
|
|
170
174
|
* // silent: true || false,
|
|
171
175
|
* // event: "STRING_VALUE",
|
|
172
|
-
* // sms: true || false,
|
|
173
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
174
|
-
* // whatsapp: true || false,
|
|
175
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
176
176
|
* // messageId: "STRING_VALUE", // required
|
|
177
177
|
* // channelId: "STRING_VALUE", // required
|
|
178
178
|
* // user: "<User>", // required
|
|
@@ -161,6 +161,10 @@ declare const ListMessagesCommand_base: {
|
|
|
161
161
|
* // messageId: "STRING_VALUE", // required
|
|
162
162
|
* // channelId: "STRING_VALUE", // required
|
|
163
163
|
* // },
|
|
164
|
+
* // whatsapp: true || false,
|
|
165
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
166
|
+
* // sms: true || false,
|
|
167
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
164
168
|
* // type: "regular" || "system", // required
|
|
165
169
|
* // giphy: {
|
|
166
170
|
* // id: "STRING_VALUE", // required
|
|
@@ -171,10 +175,6 @@ declare const ListMessagesCommand_base: {
|
|
|
171
175
|
* // },
|
|
172
176
|
* // silent: true || false,
|
|
173
177
|
* // event: "STRING_VALUE",
|
|
174
|
-
* // sms: true || false,
|
|
175
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
176
|
-
* // whatsapp: true || false,
|
|
177
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
178
178
|
* // messageId: "STRING_VALUE", // required
|
|
179
179
|
* // channelId: "STRING_VALUE", // required
|
|
180
180
|
* // user: "<User>", // required
|
|
@@ -161,6 +161,10 @@ declare const ListPinnedMessagesCommand_base: {
|
|
|
161
161
|
* // messageId: "STRING_VALUE", // required
|
|
162
162
|
* // channelId: "STRING_VALUE", // required
|
|
163
163
|
* // },
|
|
164
|
+
* // whatsapp: true || false,
|
|
165
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
166
|
+
* // sms: true || false,
|
|
167
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
164
168
|
* // type: "regular" || "system", // required
|
|
165
169
|
* // giphy: {
|
|
166
170
|
* // id: "STRING_VALUE", // required
|
|
@@ -171,10 +175,6 @@ declare const ListPinnedMessagesCommand_base: {
|
|
|
171
175
|
* // },
|
|
172
176
|
* // silent: true || false,
|
|
173
177
|
* // event: "STRING_VALUE",
|
|
174
|
-
* // sms: true || false,
|
|
175
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
176
|
-
* // whatsapp: true || false,
|
|
177
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
178
178
|
* // messageId: "STRING_VALUE", // required
|
|
179
179
|
* // channelId: "STRING_VALUE", // required
|
|
180
180
|
* // user: "<User>", // required
|
|
@@ -156,12 +156,16 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
156
156
|
* messageId: "STRING_VALUE", // required
|
|
157
157
|
* channelId: "STRING_VALUE", // required
|
|
158
158
|
* },
|
|
159
|
+
* whatsapp: true || false,
|
|
160
|
+
* whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
161
|
+
* sms: true || false,
|
|
162
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
159
163
|
* mentions: [ // UsersIdList
|
|
160
164
|
* "STRING_VALUE",
|
|
161
165
|
* ],
|
|
162
166
|
* },
|
|
163
167
|
* unset: [ // MessageUnsetFieldsList
|
|
164
|
-
* "text" || "mentions" || "elements" || "attachments" || "quote" || "forward",
|
|
168
|
+
* "text" || "mentions" || "elements" || "attachments" || "quote" || "forward" || "whatsapp" || "whatsappStatus" || "sms" || "smsStatus",
|
|
165
169
|
* ],
|
|
166
170
|
* silent: true || false,
|
|
167
171
|
* };
|
|
@@ -286,6 +290,10 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
286
290
|
* // messageId: "STRING_VALUE", // required
|
|
287
291
|
* // channelId: "STRING_VALUE", // required
|
|
288
292
|
* // },
|
|
293
|
+
* // whatsapp: true || false,
|
|
294
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
295
|
+
* // sms: true || false,
|
|
296
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
289
297
|
* // type: "regular" || "system", // required
|
|
290
298
|
* // giphy: {
|
|
291
299
|
* // id: "STRING_VALUE", // required
|
|
@@ -296,10 +304,6 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
296
304
|
* // },
|
|
297
305
|
* // silent: true || false,
|
|
298
306
|
* // event: "STRING_VALUE",
|
|
299
|
-
* // sms: true || false,
|
|
300
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
301
|
-
* // whatsapp: true || false,
|
|
302
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
303
307
|
* // messageId: "STRING_VALUE", // required
|
|
304
308
|
* // channelId: "STRING_VALUE", // required
|
|
305
309
|
* // user: "<User>", // required
|
|
@@ -167,6 +167,10 @@ declare const SendGiphyCommand_base: {
|
|
|
167
167
|
* // messageId: "STRING_VALUE", // required
|
|
168
168
|
* // channelId: "STRING_VALUE", // required
|
|
169
169
|
* // },
|
|
170
|
+
* // whatsapp: true || false,
|
|
171
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
172
|
+
* // sms: true || false,
|
|
173
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
170
174
|
* // type: "regular" || "system", // required
|
|
171
175
|
* // giphy: {
|
|
172
176
|
* // id: "STRING_VALUE", // required
|
|
@@ -177,10 +181,6 @@ declare const SendGiphyCommand_base: {
|
|
|
177
181
|
* // },
|
|
178
182
|
* // silent: true || false,
|
|
179
183
|
* // event: "STRING_VALUE",
|
|
180
|
-
* // sms: true || false,
|
|
181
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
182
|
-
* // whatsapp: true || false,
|
|
183
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
184
184
|
* // messageId: "STRING_VALUE", // required
|
|
185
185
|
* // channelId: "STRING_VALUE", // required
|
|
186
186
|
* // user: "<User>", // required
|
|
@@ -152,6 +152,10 @@ declare const SendMessageCommand_base: {
|
|
|
152
152
|
* messageId: "STRING_VALUE", // required
|
|
153
153
|
* channelId: "STRING_VALUE", // required
|
|
154
154
|
* },
|
|
155
|
+
* whatsapp: true || false,
|
|
156
|
+
* whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
157
|
+
* sms: true || false,
|
|
158
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
155
159
|
* messageId: "STRING_VALUE",
|
|
156
160
|
* mentions: [ // UsersIdList
|
|
157
161
|
* "STRING_VALUE",
|
|
@@ -280,6 +284,10 @@ declare const SendMessageCommand_base: {
|
|
|
280
284
|
* // messageId: "STRING_VALUE", // required
|
|
281
285
|
* // channelId: "STRING_VALUE", // required
|
|
282
286
|
* // },
|
|
287
|
+
* // whatsapp: true || false,
|
|
288
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
289
|
+
* // sms: true || false,
|
|
290
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
283
291
|
* // type: "regular" || "system", // required
|
|
284
292
|
* // giphy: {
|
|
285
293
|
* // id: "STRING_VALUE", // required
|
|
@@ -290,10 +298,6 @@ declare const SendMessageCommand_base: {
|
|
|
290
298
|
* // },
|
|
291
299
|
* // silent: true || false,
|
|
292
300
|
* // event: "STRING_VALUE",
|
|
293
|
-
* // sms: true || false,
|
|
294
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
295
|
-
* // whatsapp: true || false,
|
|
296
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
297
301
|
* // messageId: "STRING_VALUE", // required
|
|
298
302
|
* // channelId: "STRING_VALUE", // required
|
|
299
303
|
* // user: "<User>", // required
|
|
@@ -35,127 +35,6 @@ declare const SendTemplateMessageCommand_base: {
|
|
|
35
35
|
* // const { ConversationsClient, SendTemplateMessageCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
36
36
|
* const client = new ConversationsClient(config);
|
|
37
37
|
* const input = { // SendTemplateMessageInput
|
|
38
|
-
* text: "STRING_VALUE",
|
|
39
|
-
* elements: [ // ElementsList
|
|
40
|
-
* { // Element Union: only one key present
|
|
41
|
-
* actions: [ // ActionsElementsList
|
|
42
|
-
* { // ActionElement Union: only one key present
|
|
43
|
-
* button: { // ButtonElement
|
|
44
|
-
* text: "STRING_VALUE", // required
|
|
45
|
-
* handler: { // ButtonHandler Union: only one key present
|
|
46
|
-
* link: { // ButtonLinkHandler
|
|
47
|
-
* url: "STRING_VALUE", // required
|
|
48
|
-
* },
|
|
49
|
-
* reply: { // ButtonReplyHandler
|
|
50
|
-
* text: "STRING_VALUE",
|
|
51
|
-
* },
|
|
52
|
-
* action: { // ButtonActionHandler
|
|
53
|
-
* id: "STRING_VALUE", // required
|
|
54
|
-
* },
|
|
55
|
-
* },
|
|
56
|
-
* variant: "contained" || "outlined",
|
|
57
|
-
* disabled: true || false,
|
|
58
|
-
* },
|
|
59
|
-
* },
|
|
60
|
-
* ],
|
|
61
|
-
* },
|
|
62
|
-
* ],
|
|
63
|
-
* attachments: [ // MessageAttachmentList
|
|
64
|
-
* { // MessageAttachment
|
|
65
|
-
* id: "STRING_VALUE", // required
|
|
66
|
-
* fsId: "STRING_VALUE", // required
|
|
67
|
-
* mime: "STRING_VALUE",
|
|
68
|
-
* name: "STRING_VALUE", // required
|
|
69
|
-
* size: Number("int"), // required
|
|
70
|
-
* width: Number("int"),
|
|
71
|
-
* height: Number("int"),
|
|
72
|
-
* thumbnail: "STRING_VALUE",
|
|
73
|
-
* },
|
|
74
|
-
* ],
|
|
75
|
-
* quote: { // MessageQuote
|
|
76
|
-
* messageId: "STRING_VALUE", // required
|
|
77
|
-
* channelId: "STRING_VALUE", // required
|
|
78
|
-
* user: { // User
|
|
79
|
-
* id: "STRING_VALUE", // required
|
|
80
|
-
* name: "STRING_VALUE",
|
|
81
|
-
* email: "STRING_VALUE",
|
|
82
|
-
* phone: "STRING_VALUE",
|
|
83
|
-
* picture: "STRING_VALUE",
|
|
84
|
-
* locale: "STRING_VALUE",
|
|
85
|
-
* timeZone: "STRING_VALUE",
|
|
86
|
-
* company: "STRING_VALUE",
|
|
87
|
-
* bot: true || false,
|
|
88
|
-
* pbxDomain: "STRING_VALUE",
|
|
89
|
-
* pbxPort: "STRING_VALUE",
|
|
90
|
-
* pbxExtension: "STRING_VALUE",
|
|
91
|
-
* pbxSerial: "STRING_VALUE",
|
|
92
|
-
* pbxUserId: "STRING_VALUE",
|
|
93
|
-
* createdAt: "STRING_VALUE",
|
|
94
|
-
* updatedAt: "STRING_VALUE",
|
|
95
|
-
* },
|
|
96
|
-
* text: "STRING_VALUE",
|
|
97
|
-
* attachments: [
|
|
98
|
-
* {
|
|
99
|
-
* id: "STRING_VALUE", // required
|
|
100
|
-
* fsId: "STRING_VALUE", // required
|
|
101
|
-
* mime: "STRING_VALUE",
|
|
102
|
-
* name: "STRING_VALUE", // required
|
|
103
|
-
* size: Number("int"), // required
|
|
104
|
-
* width: Number("int"),
|
|
105
|
-
* height: Number("int"),
|
|
106
|
-
* thumbnail: "STRING_VALUE",
|
|
107
|
-
* },
|
|
108
|
-
* ],
|
|
109
|
-
* forward: { // MessageForward
|
|
110
|
-
* forwardCompany: "STRING_VALUE",
|
|
111
|
-
* forwardDate: "STRING_VALUE", // required
|
|
112
|
-
* forwardEmail: "STRING_VALUE",
|
|
113
|
-
* forwardName: "STRING_VALUE",
|
|
114
|
-
* messageId: "STRING_VALUE", // required
|
|
115
|
-
* channelId: "STRING_VALUE", // required
|
|
116
|
-
* },
|
|
117
|
-
* mentions: [ // UsersList
|
|
118
|
-
* {
|
|
119
|
-
* id: "STRING_VALUE", // required
|
|
120
|
-
* name: "STRING_VALUE",
|
|
121
|
-
* email: "STRING_VALUE",
|
|
122
|
-
* phone: "STRING_VALUE",
|
|
123
|
-
* picture: "STRING_VALUE",
|
|
124
|
-
* locale: "STRING_VALUE",
|
|
125
|
-
* timeZone: "STRING_VALUE",
|
|
126
|
-
* company: "STRING_VALUE",
|
|
127
|
-
* bot: true || false,
|
|
128
|
-
* pbxDomain: "STRING_VALUE",
|
|
129
|
-
* pbxPort: "STRING_VALUE",
|
|
130
|
-
* pbxExtension: "STRING_VALUE",
|
|
131
|
-
* pbxSerial: "STRING_VALUE",
|
|
132
|
-
* pbxUserId: "STRING_VALUE",
|
|
133
|
-
* createdAt: "STRING_VALUE",
|
|
134
|
-
* updatedAt: "STRING_VALUE",
|
|
135
|
-
* },
|
|
136
|
-
* ],
|
|
137
|
-
* giphy: { // MessageGiphy
|
|
138
|
-
* id: "STRING_VALUE", // required
|
|
139
|
-
* size: "STRING_VALUE", // required
|
|
140
|
-
* url: "STRING_VALUE", // required
|
|
141
|
-
* height: "STRING_VALUE", // required
|
|
142
|
-
* width: "STRING_VALUE", // required
|
|
143
|
-
* },
|
|
144
|
-
* createdAt: "STRING_VALUE", // required
|
|
145
|
-
* updatedAt: "STRING_VALUE",
|
|
146
|
-
* },
|
|
147
|
-
* forward: {
|
|
148
|
-
* forwardCompany: "STRING_VALUE",
|
|
149
|
-
* forwardDate: "STRING_VALUE", // required
|
|
150
|
-
* forwardEmail: "STRING_VALUE",
|
|
151
|
-
* forwardName: "STRING_VALUE",
|
|
152
|
-
* messageId: "STRING_VALUE", // required
|
|
153
|
-
* channelId: "STRING_VALUE", // required
|
|
154
|
-
* },
|
|
155
|
-
* messageId: "STRING_VALUE",
|
|
156
|
-
* mentions: [ // UsersIdList
|
|
157
|
-
* "STRING_VALUE",
|
|
158
|
-
* ],
|
|
159
38
|
* channelId: "STRING_VALUE", // required
|
|
160
39
|
* userId: "STRING_VALUE",
|
|
161
40
|
* whatsapp: { // WhatsAppTemplateConfig
|
|
@@ -291,6 +170,10 @@ declare const SendTemplateMessageCommand_base: {
|
|
|
291
170
|
* // messageId: "STRING_VALUE", // required
|
|
292
171
|
* // channelId: "STRING_VALUE", // required
|
|
293
172
|
* // },
|
|
173
|
+
* // whatsapp: true || false,
|
|
174
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
175
|
+
* // sms: true || false,
|
|
176
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
294
177
|
* // type: "regular" || "system", // required
|
|
295
178
|
* // giphy: {
|
|
296
179
|
* // id: "STRING_VALUE", // required
|
|
@@ -301,10 +184,6 @@ declare const SendTemplateMessageCommand_base: {
|
|
|
301
184
|
* // },
|
|
302
185
|
* // silent: true || false,
|
|
303
186
|
* // event: "STRING_VALUE",
|
|
304
|
-
* // sms: true || false,
|
|
305
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
306
|
-
* // whatsapp: true || false,
|
|
307
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
308
187
|
* // messageId: "STRING_VALUE", // required
|
|
309
188
|
* // channelId: "STRING_VALUE", // required
|
|
310
189
|
* // user: "<User>", // required
|
|
@@ -152,6 +152,10 @@ declare const UpdateMessageCommand_base: {
|
|
|
152
152
|
* messageId: "STRING_VALUE", // required
|
|
153
153
|
* channelId: "STRING_VALUE", // required
|
|
154
154
|
* },
|
|
155
|
+
* whatsapp: true || false,
|
|
156
|
+
* whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
157
|
+
* sms: true || false,
|
|
158
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
155
159
|
* messageId: "STRING_VALUE", // required
|
|
156
160
|
* mentions: [ // UsersIdList
|
|
157
161
|
* "STRING_VALUE",
|
|
@@ -281,6 +285,10 @@ declare const UpdateMessageCommand_base: {
|
|
|
281
285
|
* // messageId: "STRING_VALUE", // required
|
|
282
286
|
* // channelId: "STRING_VALUE", // required
|
|
283
287
|
* // },
|
|
288
|
+
* // whatsapp: true || false,
|
|
289
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
290
|
+
* // sms: true || false,
|
|
291
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
284
292
|
* // type: "regular" || "system", // required
|
|
285
293
|
* // giphy: {
|
|
286
294
|
* // id: "STRING_VALUE", // required
|
|
@@ -291,10 +299,6 @@ declare const UpdateMessageCommand_base: {
|
|
|
291
299
|
* // },
|
|
292
300
|
* // silent: true || false,
|
|
293
301
|
* // event: "STRING_VALUE",
|
|
294
|
-
* // sms: true || false,
|
|
295
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
296
|
-
* // whatsapp: true || false,
|
|
297
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
298
302
|
* // messageId: "STRING_VALUE", // required
|
|
299
303
|
* // channelId: "STRING_VALUE", // required
|
|
300
304
|
* // user: "<User>", // required
|
|
@@ -913,6 +913,34 @@ export interface MessageQuote {
|
|
|
913
913
|
createdAt: string;
|
|
914
914
|
updatedAt?: string | undefined;
|
|
915
915
|
}
|
|
916
|
+
/**
|
|
917
|
+
* @public
|
|
918
|
+
* @enum
|
|
919
|
+
*/
|
|
920
|
+
export declare const MessageSmsStatus: {
|
|
921
|
+
readonly DELIVERED: "delivered";
|
|
922
|
+
readonly ERROR: "error";
|
|
923
|
+
readonly SENT: "sent";
|
|
924
|
+
readonly TRYING: "trying";
|
|
925
|
+
};
|
|
926
|
+
/**
|
|
927
|
+
* @public
|
|
928
|
+
*/
|
|
929
|
+
export type MessageSmsStatus = typeof MessageSmsStatus[keyof typeof MessageSmsStatus];
|
|
930
|
+
/**
|
|
931
|
+
* @public
|
|
932
|
+
* @enum
|
|
933
|
+
*/
|
|
934
|
+
export declare const MessageWhatsAppStatus: {
|
|
935
|
+
readonly DELIVERED: "delivered";
|
|
936
|
+
readonly ERROR: "error";
|
|
937
|
+
readonly SENT: "sent";
|
|
938
|
+
readonly TRYING: "trying";
|
|
939
|
+
};
|
|
940
|
+
/**
|
|
941
|
+
* @public
|
|
942
|
+
*/
|
|
943
|
+
export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof MessageWhatsAppStatus];
|
|
916
944
|
/**
|
|
917
945
|
* @public
|
|
918
946
|
*/
|
|
@@ -922,6 +950,10 @@ export interface InitialMessage {
|
|
|
922
950
|
attachments?: (MessageAttachment)[] | undefined;
|
|
923
951
|
quote?: MessageQuote | undefined;
|
|
924
952
|
forward?: MessageForward | undefined;
|
|
953
|
+
whatsapp?: boolean | undefined;
|
|
954
|
+
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
955
|
+
sms?: boolean | undefined;
|
|
956
|
+
smsStatus?: MessageSmsStatus | undefined;
|
|
925
957
|
/**
|
|
926
958
|
* The unique identifier of the message. If not provided, an ID will be auto-generated.
|
|
927
959
|
* @public
|
|
@@ -942,6 +974,10 @@ export interface WelcomeMessage {
|
|
|
942
974
|
attachments?: (MessageAttachment)[] | undefined;
|
|
943
975
|
quote?: MessageQuote | undefined;
|
|
944
976
|
forward?: MessageForward | undefined;
|
|
977
|
+
whatsapp?: boolean | undefined;
|
|
978
|
+
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
979
|
+
sms?: boolean | undefined;
|
|
980
|
+
smsStatus?: MessageSmsStatus | undefined;
|
|
945
981
|
/**
|
|
946
982
|
* The unique identifier of the message. If not provided, an ID will be auto-generated.
|
|
947
983
|
* @public
|
|
@@ -1204,20 +1240,6 @@ export interface Reaction {
|
|
|
1204
1240
|
messageId?: string | undefined;
|
|
1205
1241
|
user?: User | undefined;
|
|
1206
1242
|
}
|
|
1207
|
-
/**
|
|
1208
|
-
* @public
|
|
1209
|
-
* @enum
|
|
1210
|
-
*/
|
|
1211
|
-
export declare const MessageSmsStatus: {
|
|
1212
|
-
readonly DELIVERED: "delivered";
|
|
1213
|
-
readonly ERROR: "error";
|
|
1214
|
-
readonly SENT: "sent";
|
|
1215
|
-
readonly TRYING: "trying";
|
|
1216
|
-
};
|
|
1217
|
-
/**
|
|
1218
|
-
* @public
|
|
1219
|
-
*/
|
|
1220
|
-
export type MessageSmsStatus = typeof MessageSmsStatus[keyof typeof MessageSmsStatus];
|
|
1221
1243
|
/**
|
|
1222
1244
|
* @public
|
|
1223
1245
|
* @enum
|
|
@@ -1230,20 +1252,6 @@ export declare const MessageType: {
|
|
|
1230
1252
|
* @public
|
|
1231
1253
|
*/
|
|
1232
1254
|
export type MessageType = typeof MessageType[keyof typeof MessageType];
|
|
1233
|
-
/**
|
|
1234
|
-
* @public
|
|
1235
|
-
* @enum
|
|
1236
|
-
*/
|
|
1237
|
-
export declare const MessageWhatsAppStatus: {
|
|
1238
|
-
readonly DELIVERED: "delivered";
|
|
1239
|
-
readonly ERROR: "error";
|
|
1240
|
-
readonly SENT: "sent";
|
|
1241
|
-
readonly TRYING: "trying";
|
|
1242
|
-
};
|
|
1243
|
-
/**
|
|
1244
|
-
* @public
|
|
1245
|
-
*/
|
|
1246
|
-
export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof MessageWhatsAppStatus];
|
|
1247
1255
|
/**
|
|
1248
1256
|
* @public
|
|
1249
1257
|
*/
|
|
@@ -1253,14 +1261,14 @@ export interface Message {
|
|
|
1253
1261
|
attachments?: (MessageAttachment)[] | undefined;
|
|
1254
1262
|
quote?: MessageQuote | undefined;
|
|
1255
1263
|
forward?: MessageForward | undefined;
|
|
1264
|
+
whatsapp?: boolean | undefined;
|
|
1265
|
+
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
1266
|
+
sms?: boolean | undefined;
|
|
1267
|
+
smsStatus?: MessageSmsStatus | undefined;
|
|
1256
1268
|
type: MessageType;
|
|
1257
1269
|
giphy?: MessageGiphy | undefined;
|
|
1258
1270
|
silent?: boolean | undefined;
|
|
1259
1271
|
event?: string | undefined;
|
|
1260
|
-
sms?: boolean | undefined;
|
|
1261
|
-
smsStatus?: MessageSmsStatus | undefined;
|
|
1262
|
-
whatsapp?: boolean | undefined;
|
|
1263
|
-
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
1264
1272
|
messageId: string;
|
|
1265
1273
|
channelId: string;
|
|
1266
1274
|
user: User;
|
|
@@ -2440,6 +2448,10 @@ export interface PartialUpdateMessageSetInput {
|
|
|
2440
2448
|
attachments?: (MessageAttachment)[] | undefined;
|
|
2441
2449
|
quote?: MessageQuote | undefined;
|
|
2442
2450
|
forward?: MessageForward | undefined;
|
|
2451
|
+
whatsapp?: boolean | undefined;
|
|
2452
|
+
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
2453
|
+
sms?: boolean | undefined;
|
|
2454
|
+
smsStatus?: MessageSmsStatus | undefined;
|
|
2443
2455
|
/**
|
|
2444
2456
|
* A list of user IDs mentioned in the message.
|
|
2445
2457
|
* @public
|
|
@@ -2456,7 +2468,11 @@ export declare const MessageUnsetFields: {
|
|
|
2456
2468
|
readonly FORWARD: "forward";
|
|
2457
2469
|
readonly MENTIONS: "mentions";
|
|
2458
2470
|
readonly QUOTE: "quote";
|
|
2471
|
+
readonly SMS: "sms";
|
|
2472
|
+
readonly SMS_STATUS: "smsStatus";
|
|
2459
2473
|
readonly TEXT: "text";
|
|
2474
|
+
readonly WHATSAPP: "whatsapp";
|
|
2475
|
+
readonly WHATSAPP_STATUS: "whatsappStatus";
|
|
2460
2476
|
};
|
|
2461
2477
|
/**
|
|
2462
2478
|
* @public
|
|
@@ -2694,6 +2710,10 @@ export interface SendMessageInput {
|
|
|
2694
2710
|
attachments?: (MessageAttachment)[] | undefined;
|
|
2695
2711
|
quote?: MessageQuote | undefined;
|
|
2696
2712
|
forward?: MessageForward | undefined;
|
|
2713
|
+
whatsapp?: boolean | undefined;
|
|
2714
|
+
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
2715
|
+
sms?: boolean | undefined;
|
|
2716
|
+
smsStatus?: MessageSmsStatus | undefined;
|
|
2697
2717
|
/**
|
|
2698
2718
|
* The unique identifier of the message. If not provided, an ID will be auto-generated.
|
|
2699
2719
|
* @public
|
|
@@ -2761,21 +2781,6 @@ export interface WhatsAppTemplateConfig {
|
|
|
2761
2781
|
* @public
|
|
2762
2782
|
*/
|
|
2763
2783
|
export interface SendTemplateMessageInput {
|
|
2764
|
-
text?: string | undefined;
|
|
2765
|
-
elements?: (Element)[] | undefined;
|
|
2766
|
-
attachments?: (MessageAttachment)[] | undefined;
|
|
2767
|
-
quote?: MessageQuote | undefined;
|
|
2768
|
-
forward?: MessageForward | undefined;
|
|
2769
|
-
/**
|
|
2770
|
-
* The unique identifier of the message. If not provided, an ID will be auto-generated.
|
|
2771
|
-
* @public
|
|
2772
|
-
*/
|
|
2773
|
-
messageId?: string | undefined;
|
|
2774
|
-
/**
|
|
2775
|
-
* A list of user IDs mentioned in the message.
|
|
2776
|
-
* @public
|
|
2777
|
-
*/
|
|
2778
|
-
mentions?: (string)[] | undefined;
|
|
2779
2784
|
/**
|
|
2780
2785
|
* The unique identifier of the channel to which the template message is sent.
|
|
2781
2786
|
* @public
|
|
@@ -3104,6 +3109,10 @@ export interface UpdateMessageInput {
|
|
|
3104
3109
|
attachments?: (MessageAttachment)[] | undefined;
|
|
3105
3110
|
quote?: MessageQuote | undefined;
|
|
3106
3111
|
forward?: MessageForward | undefined;
|
|
3112
|
+
whatsapp?: boolean | undefined;
|
|
3113
|
+
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
3114
|
+
sms?: boolean | undefined;
|
|
3115
|
+
smsStatus?: MessageSmsStatus | undefined;
|
|
3107
3116
|
/**
|
|
3108
3117
|
* The unique identifier of the message to update.
|
|
3109
3118
|
* @public
|
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.1.
|
|
4
|
+
"version": "1.1.18",
|
|
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",
|