@wildix/xbees-conversations-client 1.0.40 → 1.0.42

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.ChannelWhatsAppStatus = 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) {
@@ -75,6 +75,9 @@ exports.ChannelContextEventAttendeeStatus = {
75
75
  exports.ChannelContextSource = {
76
76
  KITE: "kite",
77
77
  };
78
+ exports.ChannelWhatsAppStatus = {
79
+ CHANNEL_CLOSED: "24h_channel_closed",
80
+ };
78
81
  class ChannelAlreadyExistException extends ConversationsServiceException_1.ConversationsServiceException {
79
82
  constructor(opts) {
80
83
  super({
@@ -151,6 +154,12 @@ exports.MessageSmsStatus = {
151
154
  exports.MessageType = {
152
155
  REGULAR: "regular",
153
156
  };
157
+ exports.MessageWhatsAppStatus = {
158
+ DELIVERED: "delivered",
159
+ ERROR: "error",
160
+ SENT: "sent",
161
+ TRYING: "trying",
162
+ };
154
163
  exports.GroupChannelUnsetOptions = {
155
164
  ACCESS: "access",
156
165
  BROADCAST: "broadcast",
@@ -68,6 +68,9 @@ export const ChannelContextEventAttendeeStatus = {
68
68
  export const ChannelContextSource = {
69
69
  KITE: "kite",
70
70
  };
71
+ export const ChannelWhatsAppStatus = {
72
+ CHANNEL_CLOSED: "24h_channel_closed",
73
+ };
71
74
  export class ChannelAlreadyExistException extends __BaseException {
72
75
  constructor(opts) {
73
76
  super({
@@ -140,6 +143,12 @@ export const MessageSmsStatus = {
140
143
  export const MessageType = {
141
144
  REGULAR: "regular",
142
145
  };
146
+ export const MessageWhatsAppStatus = {
147
+ DELIVERED: "delivered",
148
+ ERROR: "error",
149
+ SENT: "sent",
150
+ TRYING: "trying",
151
+ };
143
152
  export const GroupChannelUnsetOptions = {
144
153
  ACCESS: "access",
145
154
  BROADCAST: "broadcast",
@@ -114,6 +114,8 @@ declare const CreateGroupChannelCommand_base: {
114
114
  * // telephony: true || false,
115
115
  * // sms: true || false,
116
116
  * // mms: true || false,
117
+ * // whatsapp: true || false,
118
+ * // whatsappStatus: "24h_channel_closed",
117
119
  * // broadcast: true || false,
118
120
  * // external: true || false,
119
121
  * // channelId: "STRING_VALUE", // required
@@ -96,6 +96,8 @@ declare const GetChannelCommand_base: {
96
96
  * // telephony: true || false,
97
97
  * // sms: true || false,
98
98
  * // mms: true || false,
99
+ * // whatsapp: true || false,
100
+ * // whatsappStatus: "24h_channel_closed",
99
101
  * // broadcast: true || false,
100
102
  * // external: true || false,
101
103
  * // channelId: "STRING_VALUE", // required
@@ -141,6 +141,8 @@ 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",
144
146
  * // messageId: "STRING_VALUE", // required
145
147
  * // channelId: "STRING_VALUE", // required
146
148
  * // user: "<User>", // required
@@ -103,6 +103,8 @@ declare const GetOrCreateDirectChannelCommand_base: {
103
103
  * // telephony: true || false,
104
104
  * // sms: true || false,
105
105
  * // mms: true || false,
106
+ * // whatsapp: true || false,
107
+ * // whatsappStatus: "24h_channel_closed",
106
108
  * // broadcast: true || false,
107
109
  * // external: true || false,
108
110
  * // channelId: "STRING_VALUE", // required
@@ -98,6 +98,8 @@ declare const JoinChannelCommand_base: {
98
98
  * // telephony: true || false,
99
99
  * // sms: true || false,
100
100
  * // mms: true || false,
101
+ * // whatsapp: true || false,
102
+ * // whatsappStatus: "24h_channel_closed",
101
103
  * // broadcast: true || false,
102
104
  * // external: true || false,
103
105
  * // channelId: "STRING_VALUE", // required
@@ -99,6 +99,8 @@ declare const ListChannelsCommand_base: {
99
99
  * // telephony: true || false,
100
100
  * // sms: true || false,
101
101
  * // mms: true || false,
102
+ * // whatsapp: true || false,
103
+ * // whatsappStatus: "24h_channel_closed",
102
104
  * // broadcast: true || false,
103
105
  * // external: true || false,
104
106
  * // channelId: "STRING_VALUE", // required
@@ -143,6 +143,8 @@ 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",
146
148
  * // messageId: "STRING_VALUE", // required
147
149
  * // channelId: "STRING_VALUE", // required
148
150
  * // user: "<User>", // required
@@ -109,6 +109,8 @@ declare const PartialUpdateChannelCommand_base: {
109
109
  * // telephony: true || false,
110
110
  * // sms: true || false,
111
111
  * // mms: true || false,
112
+ * // whatsapp: true || false,
113
+ * // whatsappStatus: "24h_channel_closed",
112
114
  * // broadcast: true || false,
113
115
  * // external: true || false,
114
116
  * // channelId: "STRING_VALUE", // required
@@ -233,6 +233,8 @@ 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",
236
238
  * // messageId: "STRING_VALUE", // required
237
239
  * // channelId: "STRING_VALUE", // required
238
240
  * // user: "<User>", // required
@@ -149,6 +149,8 @@ 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",
152
154
  * // messageId: "STRING_VALUE", // required
153
155
  * // channelId: "STRING_VALUE", // required
154
156
  * // user: "<User>", // required
@@ -232,6 +232,8 @@ 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",
235
237
  * // messageId: "STRING_VALUE", // required
236
238
  * // channelId: "STRING_VALUE", // required
237
239
  * // user: "<User>", // required
@@ -104,6 +104,8 @@ declare const UpdateChannelCommand_base: {
104
104
  * // telephony: true || false,
105
105
  * // sms: true || false,
106
106
  * // mms: true || false,
107
+ * // whatsapp: true || false,
108
+ * // whatsappStatus: "24h_channel_closed",
107
109
  * // broadcast: true || false,
108
110
  * // external: true || false,
109
111
  * // channelId: "STRING_VALUE", // required
@@ -231,6 +231,8 @@ 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",
234
236
  * // messageId: "STRING_VALUE", // required
235
237
  * // channelId: "STRING_VALUE", // required
236
238
  * // user: "<User>", // required
@@ -235,6 +235,17 @@ export interface ChannelContext {
235
235
  target?: string;
236
236
  events?: (ChannelContextEvent)[];
237
237
  }
238
+ /**
239
+ * @public
240
+ * @enum
241
+ */
242
+ export declare const ChannelWhatsAppStatus: {
243
+ readonly CHANNEL_CLOSED: "24h_channel_closed";
244
+ };
245
+ /**
246
+ * @public
247
+ */
248
+ export type ChannelWhatsAppStatus = typeof ChannelWhatsAppStatus[keyof typeof ChannelWhatsAppStatus];
238
249
  /**
239
250
  * @public
240
251
  */
@@ -267,6 +278,8 @@ export interface Channel {
267
278
  telephony?: boolean;
268
279
  sms?: boolean;
269
280
  mms?: boolean;
281
+ whatsapp?: boolean;
282
+ whatsappStatus?: ChannelWhatsAppStatus;
270
283
  broadcast?: boolean;
271
284
  external?: boolean;
272
285
  channelId: string;
@@ -619,6 +632,20 @@ export declare const MessageType: {
619
632
  * @public
620
633
  */
621
634
  export type MessageType = typeof MessageType[keyof typeof MessageType];
635
+ /**
636
+ * @public
637
+ * @enum
638
+ */
639
+ export declare const MessageWhatsAppStatus: {
640
+ readonly DELIVERED: "delivered";
641
+ readonly ERROR: "error";
642
+ readonly SENT: "sent";
643
+ readonly TRYING: "trying";
644
+ };
645
+ /**
646
+ * @public
647
+ */
648
+ export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof MessageWhatsAppStatus];
622
649
  /**
623
650
  * @public
624
651
  */
@@ -633,6 +660,8 @@ export interface Message {
633
660
  event?: string;
634
661
  sms?: boolean;
635
662
  smsStatus?: MessageSmsStatus;
663
+ whatsapp?: boolean;
664
+ whatsappStatus?: MessageWhatsAppStatus;
636
665
  messageId: string;
637
666
  channelId: string;
638
667
  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.42",
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
+ }