@wildix/xbees-conversations-client 1.0.39 → 1.0.41

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ exports.ConversationsServiceException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MessageWhatsAppStatus = 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,6 +151,15 @@ 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
+ };
154
163
  exports.GroupChannelUnsetOptions = {
155
164
  ACCESS: "access",
156
165
  BROADCAST: "broadcast",
@@ -140,6 +140,15 @@ 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
+ };
143
152
  export const GroupChannelUnsetOptions = {
144
153
  ACCESS: "access",
145
154
  BROADCAST: "broadcast",
@@ -60,6 +60,8 @@ declare const AddChannelMemberCommand_base: {
60
60
  * // email: "STRING_VALUE",
61
61
  * // phone: "STRING_VALUE",
62
62
  * // picture: "STRING_VALUE",
63
+ * // locale: "STRING_VALUE",
64
+ * // timeZone: "STRING_VALUE",
63
65
  * // company: "STRING_VALUE",
64
66
  * // pbxDomain: "STRING_VALUE",
65
67
  * // pbxPort: "STRING_VALUE",
@@ -67,6 +67,8 @@ declare const AddChannelMembersCommand_base: {
67
67
  * // email: "STRING_VALUE",
68
68
  * // phone: "STRING_VALUE",
69
69
  * // picture: "STRING_VALUE",
70
+ * // locale: "STRING_VALUE",
71
+ * // timeZone: "STRING_VALUE",
70
72
  * // company: "STRING_VALUE",
71
73
  * // pbxDomain: "STRING_VALUE",
72
74
  * // pbxPort: "STRING_VALUE",
@@ -100,6 +100,8 @@ declare const CreateGroupChannelCommand_base: {
100
100
  * // email: "STRING_VALUE",
101
101
  * // phone: "STRING_VALUE",
102
102
  * // picture: "STRING_VALUE",
103
+ * // locale: "STRING_VALUE",
104
+ * // timeZone: "STRING_VALUE",
103
105
  * // company: "STRING_VALUE",
104
106
  * // pbxDomain: "STRING_VALUE",
105
107
  * // pbxPort: "STRING_VALUE",
@@ -112,6 +114,7 @@ declare const CreateGroupChannelCommand_base: {
112
114
  * // telephony: true || false,
113
115
  * // sms: true || false,
114
116
  * // mms: true || false,
117
+ * // whatsapp: true || false,
115
118
  * // broadcast: true || false,
116
119
  * // external: true || false,
117
120
  * // channelId: "STRING_VALUE", // required
@@ -82,6 +82,8 @@ declare const GetChannelCommand_base: {
82
82
  * // email: "STRING_VALUE",
83
83
  * // phone: "STRING_VALUE",
84
84
  * // picture: "STRING_VALUE",
85
+ * // locale: "STRING_VALUE",
86
+ * // timeZone: "STRING_VALUE",
85
87
  * // company: "STRING_VALUE",
86
88
  * // pbxDomain: "STRING_VALUE",
87
89
  * // pbxPort: "STRING_VALUE",
@@ -94,6 +96,7 @@ declare const GetChannelCommand_base: {
94
96
  * // telephony: true || false,
95
97
  * // sms: true || false,
96
98
  * // mms: true || false,
99
+ * // whatsapp: true || false,
97
100
  * // broadcast: true || false,
98
101
  * // external: true || false,
99
102
  * // channelId: "STRING_VALUE", // required
@@ -52,6 +52,8 @@ declare const GetChannelMemberCommand_base: {
52
52
  * // email: "STRING_VALUE",
53
53
  * // phone: "STRING_VALUE",
54
54
  * // picture: "STRING_VALUE",
55
+ * // locale: "STRING_VALUE",
56
+ * // timeZone: "STRING_VALUE",
55
57
  * // company: "STRING_VALUE",
56
58
  * // pbxDomain: "STRING_VALUE",
57
59
  * // pbxPort: "STRING_VALUE",
@@ -64,6 +64,8 @@ declare const GetMessageCommand_base: {
64
64
  * // email: "STRING_VALUE",
65
65
  * // phone: "STRING_VALUE",
66
66
  * // picture: "STRING_VALUE",
67
+ * // locale: "STRING_VALUE",
68
+ * // timeZone: "STRING_VALUE",
67
69
  * // company: "STRING_VALUE",
68
70
  * // pbxDomain: "STRING_VALUE",
69
71
  * // pbxPort: "STRING_VALUE",
@@ -99,6 +101,8 @@ declare const GetMessageCommand_base: {
99
101
  * // email: "STRING_VALUE",
100
102
  * // phone: "STRING_VALUE",
101
103
  * // picture: "STRING_VALUE",
104
+ * // locale: "STRING_VALUE",
105
+ * // timeZone: "STRING_VALUE",
102
106
  * // company: "STRING_VALUE",
103
107
  * // pbxDomain: "STRING_VALUE",
104
108
  * // pbxPort: "STRING_VALUE",
@@ -137,6 +141,9 @@ declare const GetMessageCommand_base: {
137
141
  * // event: "STRING_VALUE",
138
142
  * // sms: true || false,
139
143
  * // smsStatus: "sent" || "delivered" || "trying" || "error",
144
+ * // whatsapp: true || false,
145
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
146
+ * // whatsappStatusReason: "STRING_VALUE",
140
147
  * // messageId: "STRING_VALUE", // required
141
148
  * // channelId: "STRING_VALUE", // required
142
149
  * // user: "<User>", // required
@@ -89,6 +89,8 @@ declare const GetOrCreateDirectChannelCommand_base: {
89
89
  * // email: "STRING_VALUE",
90
90
  * // phone: "STRING_VALUE",
91
91
  * // picture: "STRING_VALUE",
92
+ * // locale: "STRING_VALUE",
93
+ * // timeZone: "STRING_VALUE",
92
94
  * // company: "STRING_VALUE",
93
95
  * // pbxDomain: "STRING_VALUE",
94
96
  * // pbxPort: "STRING_VALUE",
@@ -101,6 +103,7 @@ declare const GetOrCreateDirectChannelCommand_base: {
101
103
  * // telephony: true || false,
102
104
  * // sms: true || false,
103
105
  * // mms: true || false,
106
+ * // whatsapp: true || false,
104
107
  * // broadcast: true || false,
105
108
  * // external: true || false,
106
109
  * // channelId: "STRING_VALUE", // required
@@ -54,6 +54,8 @@ declare const InviteCommand_base: {
54
54
  * // email: "STRING_VALUE",
55
55
  * // phone: "STRING_VALUE",
56
56
  * // picture: "STRING_VALUE",
57
+ * // locale: "STRING_VALUE",
58
+ * // timeZone: "STRING_VALUE",
57
59
  * // company: "STRING_VALUE",
58
60
  * // pbxDomain: "STRING_VALUE",
59
61
  * // pbxPort: "STRING_VALUE",
@@ -84,6 +84,8 @@ declare const JoinChannelCommand_base: {
84
84
  * // email: "STRING_VALUE",
85
85
  * // phone: "STRING_VALUE",
86
86
  * // picture: "STRING_VALUE",
87
+ * // locale: "STRING_VALUE",
88
+ * // timeZone: "STRING_VALUE",
87
89
  * // company: "STRING_VALUE",
88
90
  * // pbxDomain: "STRING_VALUE",
89
91
  * // pbxPort: "STRING_VALUE",
@@ -96,6 +98,7 @@ declare const JoinChannelCommand_base: {
96
98
  * // telephony: true || false,
97
99
  * // sms: true || false,
98
100
  * // mms: true || false,
101
+ * // whatsapp: true || false,
99
102
  * // broadcast: true || false,
100
103
  * // external: true || false,
101
104
  * // channelId: "STRING_VALUE", // required
@@ -56,6 +56,8 @@ declare const ListChannelMembersCommand_base: {
56
56
  * // email: "STRING_VALUE",
57
57
  * // phone: "STRING_VALUE",
58
58
  * // picture: "STRING_VALUE",
59
+ * // locale: "STRING_VALUE",
60
+ * // timeZone: "STRING_VALUE",
59
61
  * // company: "STRING_VALUE",
60
62
  * // pbxDomain: "STRING_VALUE",
61
63
  * // pbxPort: "STRING_VALUE",
@@ -85,6 +85,8 @@ declare const ListChannelsCommand_base: {
85
85
  * // email: "STRING_VALUE",
86
86
  * // phone: "STRING_VALUE",
87
87
  * // picture: "STRING_VALUE",
88
+ * // locale: "STRING_VALUE",
89
+ * // timeZone: "STRING_VALUE",
88
90
  * // company: "STRING_VALUE",
89
91
  * // pbxDomain: "STRING_VALUE",
90
92
  * // pbxPort: "STRING_VALUE",
@@ -97,6 +99,7 @@ declare const ListChannelsCommand_base: {
97
99
  * // telephony: true || false,
98
100
  * // sms: true || false,
99
101
  * // mms: true || false,
102
+ * // whatsapp: true || false,
100
103
  * // broadcast: true || false,
101
104
  * // external: true || false,
102
105
  * // channelId: "STRING_VALUE", // required
@@ -54,6 +54,8 @@ declare const ListMessageReactionsCommand_base: {
54
54
  * // email: "STRING_VALUE",
55
55
  * // phone: "STRING_VALUE",
56
56
  * // picture: "STRING_VALUE",
57
+ * // locale: "STRING_VALUE",
58
+ * // timeZone: "STRING_VALUE",
57
59
  * // company: "STRING_VALUE",
58
60
  * // pbxDomain: "STRING_VALUE",
59
61
  * // pbxPort: "STRING_VALUE",
@@ -66,6 +66,8 @@ declare const ListMessagesCommand_base: {
66
66
  * // email: "STRING_VALUE",
67
67
  * // phone: "STRING_VALUE",
68
68
  * // picture: "STRING_VALUE",
69
+ * // locale: "STRING_VALUE",
70
+ * // timeZone: "STRING_VALUE",
69
71
  * // company: "STRING_VALUE",
70
72
  * // pbxDomain: "STRING_VALUE",
71
73
  * // pbxPort: "STRING_VALUE",
@@ -101,6 +103,8 @@ declare const ListMessagesCommand_base: {
101
103
  * // email: "STRING_VALUE",
102
104
  * // phone: "STRING_VALUE",
103
105
  * // picture: "STRING_VALUE",
106
+ * // locale: "STRING_VALUE",
107
+ * // timeZone: "STRING_VALUE",
104
108
  * // company: "STRING_VALUE",
105
109
  * // pbxDomain: "STRING_VALUE",
106
110
  * // pbxPort: "STRING_VALUE",
@@ -139,6 +143,9 @@ declare const ListMessagesCommand_base: {
139
143
  * // event: "STRING_VALUE",
140
144
  * // sms: true || false,
141
145
  * // smsStatus: "sent" || "delivered" || "trying" || "error",
146
+ * // whatsapp: true || false,
147
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
148
+ * // whatsappStatusReason: "STRING_VALUE",
142
149
  * // messageId: "STRING_VALUE", // required
143
150
  * // channelId: "STRING_VALUE", // required
144
151
  * // user: "<User>", // required
@@ -95,6 +95,8 @@ declare const PartialUpdateChannelCommand_base: {
95
95
  * // email: "STRING_VALUE",
96
96
  * // phone: "STRING_VALUE",
97
97
  * // picture: "STRING_VALUE",
98
+ * // locale: "STRING_VALUE",
99
+ * // timeZone: "STRING_VALUE",
98
100
  * // company: "STRING_VALUE",
99
101
  * // pbxDomain: "STRING_VALUE",
100
102
  * // pbxPort: "STRING_VALUE",
@@ -107,6 +109,7 @@ declare const PartialUpdateChannelCommand_base: {
107
109
  * // telephony: true || false,
108
110
  * // sms: true || false,
109
111
  * // mms: true || false,
112
+ * // whatsapp: true || false,
110
113
  * // broadcast: true || false,
111
114
  * // external: true || false,
112
115
  * // channelId: "STRING_VALUE", // required
@@ -60,6 +60,8 @@ declare const PartialUpdateMessageCommand_base: {
60
60
  * email: "STRING_VALUE",
61
61
  * phone: "STRING_VALUE",
62
62
  * picture: "STRING_VALUE",
63
+ * locale: "STRING_VALUE",
64
+ * timeZone: "STRING_VALUE",
63
65
  * company: "STRING_VALUE",
64
66
  * pbxDomain: "STRING_VALUE",
65
67
  * pbxPort: "STRING_VALUE",
@@ -95,6 +97,8 @@ declare const PartialUpdateMessageCommand_base: {
95
97
  * email: "STRING_VALUE",
96
98
  * phone: "STRING_VALUE",
97
99
  * picture: "STRING_VALUE",
100
+ * locale: "STRING_VALUE",
101
+ * timeZone: "STRING_VALUE",
98
102
  * company: "STRING_VALUE",
99
103
  * pbxDomain: "STRING_VALUE",
100
104
  * pbxPort: "STRING_VALUE",
@@ -152,6 +156,8 @@ declare const PartialUpdateMessageCommand_base: {
152
156
  * // email: "STRING_VALUE",
153
157
  * // phone: "STRING_VALUE",
154
158
  * // picture: "STRING_VALUE",
159
+ * // locale: "STRING_VALUE",
160
+ * // timeZone: "STRING_VALUE",
155
161
  * // company: "STRING_VALUE",
156
162
  * // pbxDomain: "STRING_VALUE",
157
163
  * // pbxPort: "STRING_VALUE",
@@ -187,6 +193,8 @@ declare const PartialUpdateMessageCommand_base: {
187
193
  * // email: "STRING_VALUE",
188
194
  * // phone: "STRING_VALUE",
189
195
  * // picture: "STRING_VALUE",
196
+ * // locale: "STRING_VALUE",
197
+ * // timeZone: "STRING_VALUE",
190
198
  * // company: "STRING_VALUE",
191
199
  * // pbxDomain: "STRING_VALUE",
192
200
  * // pbxPort: "STRING_VALUE",
@@ -225,6 +233,9 @@ declare const PartialUpdateMessageCommand_base: {
225
233
  * // event: "STRING_VALUE",
226
234
  * // sms: true || false,
227
235
  * // smsStatus: "sent" || "delivered" || "trying" || "error",
236
+ * // whatsapp: true || false,
237
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
238
+ * // whatsappStatusReason: "STRING_VALUE",
228
239
  * // messageId: "STRING_VALUE", // required
229
240
  * // channelId: "STRING_VALUE", // required
230
241
  * // user: "<User>", // required
@@ -72,6 +72,8 @@ declare const SendGiphyCommand_base: {
72
72
  * // email: "STRING_VALUE",
73
73
  * // phone: "STRING_VALUE",
74
74
  * // picture: "STRING_VALUE",
75
+ * // locale: "STRING_VALUE",
76
+ * // timeZone: "STRING_VALUE",
75
77
  * // company: "STRING_VALUE",
76
78
  * // pbxDomain: "STRING_VALUE",
77
79
  * // pbxPort: "STRING_VALUE",
@@ -107,6 +109,8 @@ declare const SendGiphyCommand_base: {
107
109
  * // email: "STRING_VALUE",
108
110
  * // phone: "STRING_VALUE",
109
111
  * // picture: "STRING_VALUE",
112
+ * // locale: "STRING_VALUE",
113
+ * // timeZone: "STRING_VALUE",
110
114
  * // company: "STRING_VALUE",
111
115
  * // pbxDomain: "STRING_VALUE",
112
116
  * // pbxPort: "STRING_VALUE",
@@ -145,6 +149,9 @@ declare const SendGiphyCommand_base: {
145
149
  * // event: "STRING_VALUE",
146
150
  * // sms: true || false,
147
151
  * // smsStatus: "sent" || "delivered" || "trying" || "error",
152
+ * // whatsapp: true || false,
153
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
154
+ * // whatsappStatusReason: "STRING_VALUE",
148
155
  * // messageId: "STRING_VALUE", // required
149
156
  * // channelId: "STRING_VALUE", // required
150
157
  * // user: "<User>", // required
@@ -57,6 +57,8 @@ declare const SendMessageCommand_base: {
57
57
  * email: "STRING_VALUE",
58
58
  * phone: "STRING_VALUE",
59
59
  * picture: "STRING_VALUE",
60
+ * locale: "STRING_VALUE",
61
+ * timeZone: "STRING_VALUE",
60
62
  * company: "STRING_VALUE",
61
63
  * pbxDomain: "STRING_VALUE",
62
64
  * pbxPort: "STRING_VALUE",
@@ -92,6 +94,8 @@ declare const SendMessageCommand_base: {
92
94
  * email: "STRING_VALUE",
93
95
  * phone: "STRING_VALUE",
94
96
  * picture: "STRING_VALUE",
97
+ * locale: "STRING_VALUE",
98
+ * timeZone: "STRING_VALUE",
95
99
  * company: "STRING_VALUE",
96
100
  * pbxDomain: "STRING_VALUE",
97
101
  * pbxPort: "STRING_VALUE",
@@ -151,6 +155,8 @@ declare const SendMessageCommand_base: {
151
155
  * // email: "STRING_VALUE",
152
156
  * // phone: "STRING_VALUE",
153
157
  * // picture: "STRING_VALUE",
158
+ * // locale: "STRING_VALUE",
159
+ * // timeZone: "STRING_VALUE",
154
160
  * // company: "STRING_VALUE",
155
161
  * // pbxDomain: "STRING_VALUE",
156
162
  * // pbxPort: "STRING_VALUE",
@@ -186,6 +192,8 @@ declare const SendMessageCommand_base: {
186
192
  * // email: "STRING_VALUE",
187
193
  * // phone: "STRING_VALUE",
188
194
  * // picture: "STRING_VALUE",
195
+ * // locale: "STRING_VALUE",
196
+ * // timeZone: "STRING_VALUE",
189
197
  * // company: "STRING_VALUE",
190
198
  * // pbxDomain: "STRING_VALUE",
191
199
  * // pbxPort: "STRING_VALUE",
@@ -224,6 +232,9 @@ declare const SendMessageCommand_base: {
224
232
  * // event: "STRING_VALUE",
225
233
  * // sms: true || false,
226
234
  * // smsStatus: "sent" || "delivered" || "trying" || "error",
235
+ * // whatsapp: true || false,
236
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
237
+ * // whatsappStatusReason: "STRING_VALUE",
227
238
  * // messageId: "STRING_VALUE", // required
228
239
  * // channelId: "STRING_VALUE", // required
229
240
  * // user: "<User>", // required
@@ -90,6 +90,8 @@ declare const UpdateChannelCommand_base: {
90
90
  * // email: "STRING_VALUE",
91
91
  * // phone: "STRING_VALUE",
92
92
  * // picture: "STRING_VALUE",
93
+ * // locale: "STRING_VALUE",
94
+ * // timeZone: "STRING_VALUE",
93
95
  * // company: "STRING_VALUE",
94
96
  * // pbxDomain: "STRING_VALUE",
95
97
  * // pbxPort: "STRING_VALUE",
@@ -102,6 +104,7 @@ declare const UpdateChannelCommand_base: {
102
104
  * // telephony: true || false,
103
105
  * // sms: true || false,
104
106
  * // mms: true || false,
107
+ * // whatsapp: true || false,
105
108
  * // broadcast: true || false,
106
109
  * // external: true || false,
107
110
  * // channelId: "STRING_VALUE", // required
@@ -57,6 +57,8 @@ declare const UpdateMessageCommand_base: {
57
57
  * email: "STRING_VALUE",
58
58
  * phone: "STRING_VALUE",
59
59
  * picture: "STRING_VALUE",
60
+ * locale: "STRING_VALUE",
61
+ * timeZone: "STRING_VALUE",
60
62
  * company: "STRING_VALUE",
61
63
  * pbxDomain: "STRING_VALUE",
62
64
  * pbxPort: "STRING_VALUE",
@@ -92,6 +94,8 @@ declare const UpdateMessageCommand_base: {
92
94
  * email: "STRING_VALUE",
93
95
  * phone: "STRING_VALUE",
94
96
  * picture: "STRING_VALUE",
97
+ * locale: "STRING_VALUE",
98
+ * timeZone: "STRING_VALUE",
95
99
  * company: "STRING_VALUE",
96
100
  * pbxDomain: "STRING_VALUE",
97
101
  * pbxPort: "STRING_VALUE",
@@ -150,6 +154,8 @@ declare const UpdateMessageCommand_base: {
150
154
  * // email: "STRING_VALUE",
151
155
  * // phone: "STRING_VALUE",
152
156
  * // picture: "STRING_VALUE",
157
+ * // locale: "STRING_VALUE",
158
+ * // timeZone: "STRING_VALUE",
153
159
  * // company: "STRING_VALUE",
154
160
  * // pbxDomain: "STRING_VALUE",
155
161
  * // pbxPort: "STRING_VALUE",
@@ -185,6 +191,8 @@ declare const UpdateMessageCommand_base: {
185
191
  * // email: "STRING_VALUE",
186
192
  * // phone: "STRING_VALUE",
187
193
  * // picture: "STRING_VALUE",
194
+ * // locale: "STRING_VALUE",
195
+ * // timeZone: "STRING_VALUE",
188
196
  * // company: "STRING_VALUE",
189
197
  * // pbxDomain: "STRING_VALUE",
190
198
  * // pbxPort: "STRING_VALUE",
@@ -223,6 +231,9 @@ declare const UpdateMessageCommand_base: {
223
231
  * // event: "STRING_VALUE",
224
232
  * // sms: true || false,
225
233
  * // smsStatus: "sent" || "delivered" || "trying" || "error",
234
+ * // whatsapp: true || false,
235
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
236
+ * // whatsappStatusReason: "STRING_VALUE",
226
237
  * // messageId: "STRING_VALUE", // required
227
238
  * // channelId: "STRING_VALUE", // required
228
239
  * // user: "<User>", // required
@@ -31,6 +31,8 @@ export interface User {
31
31
  email?: string;
32
32
  phone?: string;
33
33
  picture?: string;
34
+ locale?: string;
35
+ timeZone?: string;
34
36
  company?: string;
35
37
  pbxDomain?: string;
36
38
  pbxPort?: string;
@@ -265,6 +267,7 @@ export interface Channel {
265
267
  telephony?: boolean;
266
268
  sms?: boolean;
267
269
  mms?: boolean;
270
+ whatsapp?: boolean;
268
271
  broadcast?: boolean;
269
272
  external?: boolean;
270
273
  channelId: string;
@@ -617,6 +620,23 @@ export declare const MessageType: {
617
620
  * @public
618
621
  */
619
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];
620
640
  /**
621
641
  * @public
622
642
  */
@@ -631,6 +651,9 @@ export interface Message {
631
651
  event?: string;
632
652
  sms?: boolean;
633
653
  smsStatus?: MessageSmsStatus;
654
+ whatsapp?: boolean;
655
+ whatsappStatus?: MessageWhatsAppStatus;
656
+ whatsappStatusReason?: string;
634
657
  messageId: string;
635
658
  channelId: string;
636
659
  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.39",
4
+ "version": "1.0.41",
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",
@@ -19,45 +19,44 @@
19
19
  "tslib": "^2.6.2",
20
20
  "@aws-crypto/sha256-browser": "3.0.0",
21
21
  "@aws-crypto/sha256-js": "3.0.0",
22
- "@aws-sdk/middleware-user-agent": "3.428.0",
22
+ "@aws-sdk/middleware-user-agent": "3.587.0",
23
23
  "@aws-sdk/types": "latest",
24
- "@aws-sdk/util-user-agent-browser": "3.428.0",
25
- "@aws-sdk/util-user-agent-node": "3.428.0",
26
- "@smithy/config-resolver": "^2.2.0",
27
- "@smithy/core": "^1.4.0",
28
- "@smithy/fetch-http-handler": "^2.5.0",
29
- "@smithy/hash-node": "^2.2.0",
30
- "@smithy/invalid-dependency": "^2.2.0",
31
- "@smithy/middleware-content-length": "^2.2.0",
32
- "@smithy/middleware-retry": "^2.2.0",
33
- "@smithy/middleware-serde": "^2.3.0",
34
- "@smithy/middleware-stack": "^2.2.0",
35
- "@smithy/node-config-provider": "^2.3.0",
36
- "@smithy/node-http-handler": "^2.5.0",
37
- "@smithy/protocol-http": "^3.3.0",
38
- "@smithy/smithy-client": "^2.5.0",
39
- "@smithy/types": "^2.12.0",
40
- "@smithy/url-parser": "^2.2.0",
41
- "@smithy/util-base64": "^2.3.0",
42
- "@smithy/util-body-length-browser": "^2.2.0",
43
- "@smithy/util-body-length-node": "^2.3.0",
44
- "@smithy/util-defaults-mode-browser": "^2.2.0",
45
- "@smithy/util-defaults-mode-node": "^2.3.0",
46
- "@smithy/util-retry": "^2.2.0",
47
- "@smithy/util-utf8": "^2.3.0",
24
+ "@aws-sdk/util-user-agent-browser": "3.577.0",
25
+ "@aws-sdk/util-user-agent-node": "3.577.0",
26
+ "@smithy/config-resolver": "^3.0.0",
27
+ "@smithy/core": "^2.0.1",
28
+ "@smithy/fetch-http-handler": "^3.0.1",
29
+ "@smithy/hash-node": "^3.0.0",
30
+ "@smithy/invalid-dependency": "^3.0.0",
31
+ "@smithy/middleware-content-length": "^3.0.0",
32
+ "@smithy/middleware-retry": "^3.0.1",
33
+ "@smithy/middleware-serde": "^3.0.0",
34
+ "@smithy/middleware-stack": "^3.0.0",
35
+ "@smithy/node-config-provider": "^3.0.0",
36
+ "@smithy/node-http-handler": "^3.0.0",
37
+ "@smithy/protocol-http": "^4.0.0",
38
+ "@smithy/smithy-client": "^3.0.1",
39
+ "@smithy/types": "^3.0.0",
40
+ "@smithy/url-parser": "^3.0.0",
41
+ "@smithy/util-base64": "^3.0.0",
42
+ "@smithy/util-body-length-browser": "^3.0.0",
43
+ "@smithy/util-body-length-node": "^3.0.0",
44
+ "@smithy/util-defaults-mode-browser": "^3.0.1",
45
+ "@smithy/util-defaults-mode-node": "^3.0.1",
46
+ "@smithy/util-retry": "^3.0.0",
47
+ "@smithy/util-utf8": "^3.0.0",
48
48
  "@wildix/smithy-utils": "^1.0.2"
49
49
  },
50
50
  "devDependencies": {
51
- "@tsconfig/node14": "1.0.3",
51
+ "@tsconfig/node16": "16.1.3",
52
52
  "concurrently": "7.0.0",
53
53
  "downlevel-dts": "0.10.1",
54
54
  "rimraf": "^3.0.0",
55
55
  "typescript": "~4.9.5",
56
- "@smithy/service-client-documentation-generator": "^2.2.0",
57
- "@types/node": "^14.14.31"
56
+ "@types/node": "^16.18.96"
58
57
  },
59
58
  "engines": {
60
- "node": ">=14.0.0"
59
+ "node": ">=16.0.0"
61
60
  },
62
61
  "typesVersions": {
63
62
  "<4.0": {
@@ -76,4 +75,4 @@
76
75
  "react-native": {
77
76
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
78
77
  }
79
- }
78
+ }