@wildix/xbees-conversations-client 1.0.40 → 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",
@@ -114,6 +114,7 @@ declare const CreateGroupChannelCommand_base: {
114
114
  * // telephony: true || false,
115
115
  * // sms: true || false,
116
116
  * // mms: true || false,
117
+ * // whatsapp: true || false,
117
118
  * // broadcast: true || false,
118
119
  * // external: true || false,
119
120
  * // channelId: "STRING_VALUE", // required
@@ -96,6 +96,7 @@ declare const GetChannelCommand_base: {
96
96
  * // telephony: true || false,
97
97
  * // sms: true || false,
98
98
  * // mms: true || false,
99
+ * // whatsapp: true || false,
99
100
  * // broadcast: true || false,
100
101
  * // external: true || false,
101
102
  * // channelId: "STRING_VALUE", // required
@@ -141,6 +141,9 @@ declare const GetMessageCommand_base: {
141
141
  * // event: "STRING_VALUE",
142
142
  * // sms: true || false,
143
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",
144
147
  * // messageId: "STRING_VALUE", // required
145
148
  * // channelId: "STRING_VALUE", // required
146
149
  * // user: "<User>", // required
@@ -103,6 +103,7 @@ declare const GetOrCreateDirectChannelCommand_base: {
103
103
  * // telephony: true || false,
104
104
  * // sms: true || false,
105
105
  * // mms: true || false,
106
+ * // whatsapp: true || false,
106
107
  * // broadcast: true || false,
107
108
  * // external: true || false,
108
109
  * // channelId: "STRING_VALUE", // required
@@ -98,6 +98,7 @@ declare const JoinChannelCommand_base: {
98
98
  * // telephony: true || false,
99
99
  * // sms: true || false,
100
100
  * // mms: true || false,
101
+ * // whatsapp: true || false,
101
102
  * // broadcast: true || false,
102
103
  * // external: true || false,
103
104
  * // channelId: "STRING_VALUE", // required
@@ -99,6 +99,7 @@ declare const ListChannelsCommand_base: {
99
99
  * // telephony: true || false,
100
100
  * // sms: true || false,
101
101
  * // mms: true || false,
102
+ * // whatsapp: true || false,
102
103
  * // broadcast: true || false,
103
104
  * // external: true || false,
104
105
  * // channelId: "STRING_VALUE", // required
@@ -143,6 +143,9 @@ declare const ListMessagesCommand_base: {
143
143
  * // event: "STRING_VALUE",
144
144
  * // sms: true || false,
145
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",
146
149
  * // messageId: "STRING_VALUE", // required
147
150
  * // channelId: "STRING_VALUE", // required
148
151
  * // user: "<User>", // required
@@ -109,6 +109,7 @@ declare const PartialUpdateChannelCommand_base: {
109
109
  * // telephony: true || false,
110
110
  * // sms: true || false,
111
111
  * // mms: true || false,
112
+ * // whatsapp: true || false,
112
113
  * // broadcast: true || false,
113
114
  * // external: true || false,
114
115
  * // channelId: "STRING_VALUE", // required
@@ -233,6 +233,9 @@ declare const PartialUpdateMessageCommand_base: {
233
233
  * // event: "STRING_VALUE",
234
234
  * // sms: true || false,
235
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",
236
239
  * // messageId: "STRING_VALUE", // required
237
240
  * // channelId: "STRING_VALUE", // required
238
241
  * // user: "<User>", // required
@@ -149,6 +149,9 @@ declare const SendGiphyCommand_base: {
149
149
  * // event: "STRING_VALUE",
150
150
  * // sms: true || false,
151
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",
152
155
  * // messageId: "STRING_VALUE", // required
153
156
  * // channelId: "STRING_VALUE", // required
154
157
  * // user: "<User>", // required
@@ -232,6 +232,9 @@ declare const SendMessageCommand_base: {
232
232
  * // event: "STRING_VALUE",
233
233
  * // sms: true || false,
234
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",
235
238
  * // messageId: "STRING_VALUE", // required
236
239
  * // channelId: "STRING_VALUE", // required
237
240
  * // user: "<User>", // required
@@ -104,6 +104,7 @@ declare const UpdateChannelCommand_base: {
104
104
  * // telephony: true || false,
105
105
  * // sms: true || false,
106
106
  * // mms: true || false,
107
+ * // whatsapp: true || false,
107
108
  * // broadcast: true || false,
108
109
  * // external: true || false,
109
110
  * // channelId: "STRING_VALUE", // required
@@ -231,6 +231,9 @@ declare const UpdateMessageCommand_base: {
231
231
  * // event: "STRING_VALUE",
232
232
  * // sms: true || false,
233
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",
234
237
  * // messageId: "STRING_VALUE", // required
235
238
  * // channelId: "STRING_VALUE", // required
236
239
  * // user: "<User>", // required
@@ -267,6 +267,7 @@ export interface Channel {
267
267
  telephony?: boolean;
268
268
  sms?: boolean;
269
269
  mms?: boolean;
270
+ whatsapp?: boolean;
270
271
  broadcast?: boolean;
271
272
  external?: boolean;
272
273
  channelId: string;
@@ -619,6 +620,23 @@ export declare const MessageType: {
619
620
  * @public
620
621
  */
621
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];
622
640
  /**
623
641
  * @public
624
642
  */
@@ -633,6 +651,9 @@ export interface Message {
633
651
  event?: string;
634
652
  sms?: boolean;
635
653
  smsStatus?: MessageSmsStatus;
654
+ whatsapp?: boolean;
655
+ whatsappStatus?: MessageWhatsAppStatus;
656
+ whatsappStatusReason?: string;
636
657
  messageId: string;
637
658
  channelId: string;
638
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.40",
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",
@@ -75,4 +75,4 @@
75
75
  "react-native": {
76
76
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
77
77
  }
78
- }
78
+ }