@wildix/xbees-conversations-client 1.0.41 → 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.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;
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({
@@ -152,11 +155,8 @@ exports.MessageType = {
152
155
  REGULAR: "regular",
153
156
  };
154
157
  exports.MessageWhatsAppStatus = {
155
- CHANNEL_CLOSED: "24h_channel_closed",
156
- DELETED: "deleted",
157
158
  DELIVERED: "delivered",
158
159
  ERROR: "error",
159
- READ: "read",
160
160
  SENT: "sent",
161
161
  TRYING: "trying",
162
162
  };
@@ -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({
@@ -141,11 +144,8 @@ export const MessageType = {
141
144
  REGULAR: "regular",
142
145
  };
143
146
  export const MessageWhatsAppStatus = {
144
- CHANNEL_CLOSED: "24h_channel_closed",
145
- DELETED: "deleted",
146
147
  DELIVERED: "delivered",
147
148
  ERROR: "error",
148
- READ: "read",
149
149
  SENT: "sent",
150
150
  TRYING: "trying",
151
151
  };
@@ -115,6 +115,7 @@ declare const CreateGroupChannelCommand_base: {
115
115
  * // sms: true || false,
116
116
  * // mms: true || false,
117
117
  * // whatsapp: true || false,
118
+ * // whatsappStatus: "24h_channel_closed",
118
119
  * // broadcast: true || false,
119
120
  * // external: true || false,
120
121
  * // channelId: "STRING_VALUE", // required
@@ -97,6 +97,7 @@ declare const GetChannelCommand_base: {
97
97
  * // sms: true || false,
98
98
  * // mms: true || false,
99
99
  * // whatsapp: true || false,
100
+ * // whatsappStatus: "24h_channel_closed",
100
101
  * // broadcast: true || false,
101
102
  * // external: true || false,
102
103
  * // channelId: "STRING_VALUE", // required
@@ -142,8 +142,7 @@ declare const GetMessageCommand_base: {
142
142
  * // sms: true || false,
143
143
  * // smsStatus: "sent" || "delivered" || "trying" || "error",
144
144
  * // whatsapp: true || false,
145
- * // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
146
- * // whatsappStatusReason: "STRING_VALUE",
145
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error",
147
146
  * // messageId: "STRING_VALUE", // required
148
147
  * // channelId: "STRING_VALUE", // required
149
148
  * // user: "<User>", // required
@@ -104,6 +104,7 @@ declare const GetOrCreateDirectChannelCommand_base: {
104
104
  * // sms: true || false,
105
105
  * // mms: true || false,
106
106
  * // whatsapp: true || false,
107
+ * // whatsappStatus: "24h_channel_closed",
107
108
  * // broadcast: true || false,
108
109
  * // external: true || false,
109
110
  * // channelId: "STRING_VALUE", // required
@@ -99,6 +99,7 @@ declare const JoinChannelCommand_base: {
99
99
  * // sms: true || false,
100
100
  * // mms: true || false,
101
101
  * // whatsapp: true || false,
102
+ * // whatsappStatus: "24h_channel_closed",
102
103
  * // broadcast: true || false,
103
104
  * // external: true || false,
104
105
  * // channelId: "STRING_VALUE", // required
@@ -100,6 +100,7 @@ declare const ListChannelsCommand_base: {
100
100
  * // sms: true || false,
101
101
  * // mms: true || false,
102
102
  * // whatsapp: true || false,
103
+ * // whatsappStatus: "24h_channel_closed",
103
104
  * // broadcast: true || false,
104
105
  * // external: true || false,
105
106
  * // channelId: "STRING_VALUE", // required
@@ -144,8 +144,7 @@ declare const ListMessagesCommand_base: {
144
144
  * // sms: true || false,
145
145
  * // smsStatus: "sent" || "delivered" || "trying" || "error",
146
146
  * // whatsapp: true || false,
147
- * // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
148
- * // whatsappStatusReason: "STRING_VALUE",
147
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error",
149
148
  * // messageId: "STRING_VALUE", // required
150
149
  * // channelId: "STRING_VALUE", // required
151
150
  * // user: "<User>", // required
@@ -110,6 +110,7 @@ declare const PartialUpdateChannelCommand_base: {
110
110
  * // sms: true || false,
111
111
  * // mms: true || false,
112
112
  * // whatsapp: true || false,
113
+ * // whatsappStatus: "24h_channel_closed",
113
114
  * // broadcast: true || false,
114
115
  * // external: true || false,
115
116
  * // channelId: "STRING_VALUE", // required
@@ -234,8 +234,7 @@ declare const PartialUpdateMessageCommand_base: {
234
234
  * // sms: true || false,
235
235
  * // smsStatus: "sent" || "delivered" || "trying" || "error",
236
236
  * // whatsapp: true || false,
237
- * // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
238
- * // whatsappStatusReason: "STRING_VALUE",
237
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error",
239
238
  * // messageId: "STRING_VALUE", // required
240
239
  * // channelId: "STRING_VALUE", // required
241
240
  * // user: "<User>", // required
@@ -150,8 +150,7 @@ declare const SendGiphyCommand_base: {
150
150
  * // sms: true || false,
151
151
  * // smsStatus: "sent" || "delivered" || "trying" || "error",
152
152
  * // whatsapp: true || false,
153
- * // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
154
- * // whatsappStatusReason: "STRING_VALUE",
153
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error",
155
154
  * // messageId: "STRING_VALUE", // required
156
155
  * // channelId: "STRING_VALUE", // required
157
156
  * // user: "<User>", // required
@@ -233,8 +233,7 @@ declare const SendMessageCommand_base: {
233
233
  * // sms: true || false,
234
234
  * // smsStatus: "sent" || "delivered" || "trying" || "error",
235
235
  * // whatsapp: true || false,
236
- * // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
237
- * // whatsappStatusReason: "STRING_VALUE",
236
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error",
238
237
  * // messageId: "STRING_VALUE", // required
239
238
  * // channelId: "STRING_VALUE", // required
240
239
  * // user: "<User>", // required
@@ -105,6 +105,7 @@ declare const UpdateChannelCommand_base: {
105
105
  * // sms: true || false,
106
106
  * // mms: true || false,
107
107
  * // whatsapp: true || false,
108
+ * // whatsappStatus: "24h_channel_closed",
108
109
  * // broadcast: true || false,
109
110
  * // external: true || false,
110
111
  * // channelId: "STRING_VALUE", // required
@@ -232,8 +232,7 @@ declare const UpdateMessageCommand_base: {
232
232
  * // sms: true || false,
233
233
  * // smsStatus: "sent" || "delivered" || "trying" || "error",
234
234
  * // whatsapp: true || false,
235
- * // whatsappStatus: "trying" || "sent" || "delivered" || "error" || "read" || "deleted" || "24h_channel_closed",
236
- * // whatsappStatusReason: "STRING_VALUE",
235
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error",
237
236
  * // messageId: "STRING_VALUE", // required
238
237
  * // channelId: "STRING_VALUE", // required
239
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
  */
@@ -268,6 +279,7 @@ export interface Channel {
268
279
  sms?: boolean;
269
280
  mms?: boolean;
270
281
  whatsapp?: boolean;
282
+ whatsappStatus?: ChannelWhatsAppStatus;
271
283
  broadcast?: boolean;
272
284
  external?: boolean;
273
285
  channelId: string;
@@ -625,11 +637,8 @@ export type MessageType = typeof MessageType[keyof typeof MessageType];
625
637
  * @enum
626
638
  */
627
639
  export declare const MessageWhatsAppStatus: {
628
- readonly CHANNEL_CLOSED: "24h_channel_closed";
629
- readonly DELETED: "deleted";
630
640
  readonly DELIVERED: "delivered";
631
641
  readonly ERROR: "error";
632
- readonly READ: "read";
633
642
  readonly SENT: "sent";
634
643
  readonly TRYING: "trying";
635
644
  };
@@ -653,7 +662,6 @@ export interface Message {
653
662
  smsStatus?: MessageSmsStatus;
654
663
  whatsapp?: boolean;
655
664
  whatsappStatus?: MessageWhatsAppStatus;
656
- whatsappStatusReason?: string;
657
665
  messageId: string;
658
666
  channelId: string;
659
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.41",
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",