@wildix/xbees-conversations-client 1.0.43 → 1.0.44
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 +10 -1
- package/dist-es/models/models_0.js +9 -0
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +2 -0
- package/dist-types/commands/GetChannelCommand.d.ts +2 -0
- package/dist-types/commands/GetMessageCommand.d.ts +2 -0
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +2 -0
- package/dist-types/commands/JoinChannelCommand.d.ts +2 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +2 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +2 -0
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +2 -0
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +2 -0
- package/dist-types/commands/SendGiphyCommand.d.ts +2 -0
- package/dist-types/commands/SendMessageCommand.d.ts +2 -0
- package/dist-types/commands/UpdateChannelCommand.d.ts +2 -0
- package/dist-types/commands/UpdateMessageCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +29 -0
- package/package.json +1 -1
|
@@ -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",
|
|
@@ -115,6 +115,8 @@ declare const CreateGroupChannelCommand_base: {
|
|
|
115
115
|
* // telephony: true || false,
|
|
116
116
|
* // sms: true || false,
|
|
117
117
|
* // mms: true || false,
|
|
118
|
+
* // whatsapp: true || false,
|
|
119
|
+
* // whatsappStatus: "24h_channel_closed",
|
|
118
120
|
* // broadcast: true || false,
|
|
119
121
|
* // external: true || false,
|
|
120
122
|
* // channelId: "STRING_VALUE", // required
|
|
@@ -97,6 +97,8 @@ declare const GetChannelCommand_base: {
|
|
|
97
97
|
* // telephony: true || false,
|
|
98
98
|
* // sms: true || false,
|
|
99
99
|
* // mms: true || false,
|
|
100
|
+
* // whatsapp: true || false,
|
|
101
|
+
* // whatsappStatus: "24h_channel_closed",
|
|
100
102
|
* // broadcast: true || false,
|
|
101
103
|
* // external: true || false,
|
|
102
104
|
* // channelId: "STRING_VALUE", // required
|
|
@@ -143,6 +143,8 @@ declare const GetMessageCommand_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
|
|
@@ -104,6 +104,8 @@ declare const GetOrCreateDirectChannelCommand_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
|
|
@@ -99,6 +99,8 @@ declare const JoinChannelCommand_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
|
|
@@ -100,6 +100,8 @@ declare const ListChannelsCommand_base: {
|
|
|
100
100
|
* // telephony: true || false,
|
|
101
101
|
* // sms: true || false,
|
|
102
102
|
* // mms: true || false,
|
|
103
|
+
* // whatsapp: true || false,
|
|
104
|
+
* // whatsappStatus: "24h_channel_closed",
|
|
103
105
|
* // broadcast: true || false,
|
|
104
106
|
* // external: true || false,
|
|
105
107
|
* // channelId: "STRING_VALUE", // required
|
|
@@ -145,6 +145,8 @@ declare const ListMessagesCommand_base: {
|
|
|
145
145
|
* // event: "STRING_VALUE",
|
|
146
146
|
* // sms: true || false,
|
|
147
147
|
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
148
|
+
* // whatsapp: true || false,
|
|
149
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
148
150
|
* // messageId: "STRING_VALUE", // required
|
|
149
151
|
* // channelId: "STRING_VALUE", // required
|
|
150
152
|
* // user: "<User>", // required
|
|
@@ -110,6 +110,8 @@ declare const PartialUpdateChannelCommand_base: {
|
|
|
110
110
|
* // telephony: true || false,
|
|
111
111
|
* // sms: true || false,
|
|
112
112
|
* // mms: true || false,
|
|
113
|
+
* // whatsapp: true || false,
|
|
114
|
+
* // whatsappStatus: "24h_channel_closed",
|
|
113
115
|
* // broadcast: true || false,
|
|
114
116
|
* // external: true || false,
|
|
115
117
|
* // channelId: "STRING_VALUE", // required
|
|
@@ -237,6 +237,8 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
237
237
|
* // event: "STRING_VALUE",
|
|
238
238
|
* // sms: true || false,
|
|
239
239
|
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
240
|
+
* // whatsapp: true || false,
|
|
241
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
240
242
|
* // messageId: "STRING_VALUE", // required
|
|
241
243
|
* // channelId: "STRING_VALUE", // required
|
|
242
244
|
* // user: "<User>", // required
|
|
@@ -151,6 +151,8 @@ declare const SendGiphyCommand_base: {
|
|
|
151
151
|
* // event: "STRING_VALUE",
|
|
152
152
|
* // sms: true || false,
|
|
153
153
|
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
154
|
+
* // whatsapp: true || false,
|
|
155
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
154
156
|
* // messageId: "STRING_VALUE", // required
|
|
155
157
|
* // channelId: "STRING_VALUE", // required
|
|
156
158
|
* // user: "<User>", // required
|
|
@@ -236,6 +236,8 @@ declare const SendMessageCommand_base: {
|
|
|
236
236
|
* // event: "STRING_VALUE",
|
|
237
237
|
* // sms: true || false,
|
|
238
238
|
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
239
|
+
* // whatsapp: true || false,
|
|
240
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
239
241
|
* // messageId: "STRING_VALUE", // required
|
|
240
242
|
* // channelId: "STRING_VALUE", // required
|
|
241
243
|
* // user: "<User>", // required
|
|
@@ -105,6 +105,8 @@ declare const UpdateChannelCommand_base: {
|
|
|
105
105
|
* // telephony: true || false,
|
|
106
106
|
* // sms: true || false,
|
|
107
107
|
* // mms: true || false,
|
|
108
|
+
* // whatsapp: true || false,
|
|
109
|
+
* // whatsappStatus: "24h_channel_closed",
|
|
108
110
|
* // broadcast: true || false,
|
|
109
111
|
* // external: true || false,
|
|
110
112
|
* // channelId: "STRING_VALUE", // required
|
|
@@ -235,6 +235,8 @@ declare const UpdateMessageCommand_base: {
|
|
|
235
235
|
* // event: "STRING_VALUE",
|
|
236
236
|
* // sms: true || false,
|
|
237
237
|
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
238
|
+
* // whatsapp: true || false,
|
|
239
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
238
240
|
* // messageId: "STRING_VALUE", // required
|
|
239
241
|
* // channelId: "STRING_VALUE", // required
|
|
240
242
|
* // user: "<User>", // required
|
|
@@ -236,6 +236,17 @@ export interface ChannelContext {
|
|
|
236
236
|
target?: string;
|
|
237
237
|
events?: (ChannelContextEvent)[];
|
|
238
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* @public
|
|
241
|
+
* @enum
|
|
242
|
+
*/
|
|
243
|
+
export declare const ChannelWhatsAppStatus: {
|
|
244
|
+
readonly CHANNEL_CLOSED: "24h_channel_closed";
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* @public
|
|
248
|
+
*/
|
|
249
|
+
export type ChannelWhatsAppStatus = typeof ChannelWhatsAppStatus[keyof typeof ChannelWhatsAppStatus];
|
|
239
250
|
/**
|
|
240
251
|
* @public
|
|
241
252
|
*/
|
|
@@ -268,6 +279,8 @@ export interface Channel {
|
|
|
268
279
|
telephony?: boolean;
|
|
269
280
|
sms?: boolean;
|
|
270
281
|
mms?: boolean;
|
|
282
|
+
whatsapp?: boolean;
|
|
283
|
+
whatsappStatus?: ChannelWhatsAppStatus;
|
|
271
284
|
broadcast?: boolean;
|
|
272
285
|
external?: boolean;
|
|
273
286
|
channelId: string;
|
|
@@ -620,6 +633,20 @@ export declare const MessageType: {
|
|
|
620
633
|
* @public
|
|
621
634
|
*/
|
|
622
635
|
export type MessageType = typeof MessageType[keyof typeof MessageType];
|
|
636
|
+
/**
|
|
637
|
+
* @public
|
|
638
|
+
* @enum
|
|
639
|
+
*/
|
|
640
|
+
export declare const MessageWhatsAppStatus: {
|
|
641
|
+
readonly DELIVERED: "delivered";
|
|
642
|
+
readonly ERROR: "error";
|
|
643
|
+
readonly SENT: "sent";
|
|
644
|
+
readonly TRYING: "trying";
|
|
645
|
+
};
|
|
646
|
+
/**
|
|
647
|
+
* @public
|
|
648
|
+
*/
|
|
649
|
+
export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof MessageWhatsAppStatus];
|
|
623
650
|
/**
|
|
624
651
|
* @public
|
|
625
652
|
*/
|
|
@@ -634,6 +661,8 @@ export interface Message {
|
|
|
634
661
|
event?: string;
|
|
635
662
|
sms?: boolean;
|
|
636
663
|
smsStatus?: MessageSmsStatus;
|
|
664
|
+
whatsapp?: boolean;
|
|
665
|
+
whatsappStatus?: MessageWhatsAppStatus;
|
|
637
666
|
messageId: string;
|
|
638
667
|
channelId: string;
|
|
639
668
|
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.
|
|
4
|
+
"version": "1.0.44",
|
|
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",
|