@wildix/xbees-conversations-client 1.1.0 → 1.1.1
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/Conversations.js +12 -0
- package/dist-cjs/commands/GetActionTriggerResultCommand.js +21 -0
- package/dist-cjs/commands/ListPinnedMessagesCommand.js +21 -0
- package/dist-cjs/commands/PinMessageCommand.js +21 -0
- package/dist-cjs/commands/SendActionTriggerResultCommand.js +21 -0
- package/dist-cjs/commands/TriggerMessageActionCommand.js +21 -0
- package/dist-cjs/commands/UnpinMessageCommand.js +21 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/models/models_0.js +77 -12
- package/dist-cjs/protocols/Aws_restJson1.js +230 -2
- package/dist-es/Conversations.js +12 -0
- package/dist-es/commands/GetActionTriggerResultCommand.js +17 -0
- package/dist-es/commands/ListPinnedMessagesCommand.js +17 -0
- package/dist-es/commands/PinMessageCommand.js +17 -0
- package/dist-es/commands/SendActionTriggerResultCommand.js +17 -0
- package/dist-es/commands/TriggerMessageActionCommand.js +17 -0
- package/dist-es/commands/UnpinMessageCommand.js +17 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +74 -11
- package/dist-es/protocols/Aws_restJson1.js +216 -1
- package/dist-types/Conversations.d.ts +42 -0
- package/dist-types/ConversationsClient.d.ts +8 -2
- package/dist-types/commands/DescribeEventCommand.d.ts +144 -9
- package/dist-types/commands/GetActionTriggerResultCommand.d.ts +70 -0
- package/dist-types/commands/GetMessageCommand.d.ts +24 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +24 -0
- package/dist-types/commands/ListPinnedMessagesCommand.d.ts +224 -0
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +53 -1
- package/dist-types/commands/PinMessageCommand.d.ts +73 -0
- package/dist-types/commands/SendActionTriggerResultCommand.d.ts +68 -0
- package/dist-types/commands/SendGiphyCommand.d.ts +24 -0
- package/dist-types/commands/SendMessageCommand.d.ts +48 -0
- package/dist-types/commands/TriggerMessageActionCommand.d.ts +75 -0
- package/dist-types/commands/UnpinMessageCommand.d.ts +71 -0
- package/dist-types/commands/UpdateMessageCommand.d.ts +49 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +466 -84
- package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/package.json +2 -2
|
@@ -12,6 +12,7 @@ const DeleteInboxTagCommand_1 = require("./commands/DeleteInboxTagCommand");
|
|
|
12
12
|
const DeleteMessageCommand_1 = require("./commands/DeleteMessageCommand");
|
|
13
13
|
const DeleteMessageReactionCommand_1 = require("./commands/DeleteMessageReactionCommand");
|
|
14
14
|
const DescribeEventCommand_1 = require("./commands/DescribeEventCommand");
|
|
15
|
+
const GetActionTriggerResultCommand_1 = require("./commands/GetActionTriggerResultCommand");
|
|
15
16
|
const GetChannelCommand_1 = require("./commands/GetChannelCommand");
|
|
16
17
|
const GetChannelMemberCommand_1 = require("./commands/GetChannelMemberCommand");
|
|
17
18
|
const GetDirectChannelIdCommand_1 = require("./commands/GetDirectChannelIdCommand");
|
|
@@ -30,12 +31,15 @@ const ListInboxTaggedChannelsCommand_1 = require("./commands/ListInboxTaggedChan
|
|
|
30
31
|
const ListInboxTagsCommand_1 = require("./commands/ListInboxTagsCommand");
|
|
31
32
|
const ListMessageReactionsCommand_1 = require("./commands/ListMessageReactionsCommand");
|
|
32
33
|
const ListMessagesCommand_1 = require("./commands/ListMessagesCommand");
|
|
34
|
+
const ListPinnedMessagesCommand_1 = require("./commands/ListPinnedMessagesCommand");
|
|
33
35
|
const MarkReadCommand_1 = require("./commands/MarkReadCommand");
|
|
34
36
|
const MarkUnreadCommand_1 = require("./commands/MarkUnreadCommand");
|
|
35
37
|
const PartialUpdateChannelCommand_1 = require("./commands/PartialUpdateChannelCommand");
|
|
36
38
|
const PartialUpdateMessageCommand_1 = require("./commands/PartialUpdateMessageCommand");
|
|
37
39
|
const PinChannelCommand_1 = require("./commands/PinChannelCommand");
|
|
40
|
+
const PinMessageCommand_1 = require("./commands/PinMessageCommand");
|
|
38
41
|
const ScheduleExternalFlagAdjustmentJobCommand_1 = require("./commands/ScheduleExternalFlagAdjustmentJobCommand");
|
|
42
|
+
const SendActionTriggerResultCommand_1 = require("./commands/SendActionTriggerResultCommand");
|
|
39
43
|
const SendGiphyCommand_1 = require("./commands/SendGiphyCommand");
|
|
40
44
|
const SendMessageCommand_1 = require("./commands/SendMessageCommand");
|
|
41
45
|
const SendMessageReactionCommand_1 = require("./commands/SendMessageReactionCommand");
|
|
@@ -43,7 +47,9 @@ const SendTypingStartCommand_1 = require("./commands/SendTypingStartCommand");
|
|
|
43
47
|
const SendTypingStopCommand_1 = require("./commands/SendTypingStopCommand");
|
|
44
48
|
const ShowChannelCommand_1 = require("./commands/ShowChannelCommand");
|
|
45
49
|
const TagChannelCommand_1 = require("./commands/TagChannelCommand");
|
|
50
|
+
const TriggerMessageActionCommand_1 = require("./commands/TriggerMessageActionCommand");
|
|
46
51
|
const UnpinChannelCommand_1 = require("./commands/UnpinChannelCommand");
|
|
52
|
+
const UnpinMessageCommand_1 = require("./commands/UnpinMessageCommand");
|
|
47
53
|
const UntagChannelCommand_1 = require("./commands/UntagChannelCommand");
|
|
48
54
|
const UpdateChannelCommand_1 = require("./commands/UpdateChannelCommand");
|
|
49
55
|
const UpdateInboxTagCommand_1 = require("./commands/UpdateInboxTagCommand");
|
|
@@ -61,6 +67,7 @@ const commands = {
|
|
|
61
67
|
DeleteMessageCommand: DeleteMessageCommand_1.DeleteMessageCommand,
|
|
62
68
|
DeleteMessageReactionCommand: DeleteMessageReactionCommand_1.DeleteMessageReactionCommand,
|
|
63
69
|
DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
|
|
70
|
+
GetActionTriggerResultCommand: GetActionTriggerResultCommand_1.GetActionTriggerResultCommand,
|
|
64
71
|
GetChannelCommand: GetChannelCommand_1.GetChannelCommand,
|
|
65
72
|
GetChannelMemberCommand: GetChannelMemberCommand_1.GetChannelMemberCommand,
|
|
66
73
|
GetDirectChannelIdCommand: GetDirectChannelIdCommand_1.GetDirectChannelIdCommand,
|
|
@@ -79,12 +86,15 @@ const commands = {
|
|
|
79
86
|
ListInboxTagsCommand: ListInboxTagsCommand_1.ListInboxTagsCommand,
|
|
80
87
|
ListMessageReactionsCommand: ListMessageReactionsCommand_1.ListMessageReactionsCommand,
|
|
81
88
|
ListMessagesCommand: ListMessagesCommand_1.ListMessagesCommand,
|
|
89
|
+
ListPinnedMessagesCommand: ListPinnedMessagesCommand_1.ListPinnedMessagesCommand,
|
|
82
90
|
MarkReadCommand: MarkReadCommand_1.MarkReadCommand,
|
|
83
91
|
MarkUnreadCommand: MarkUnreadCommand_1.MarkUnreadCommand,
|
|
84
92
|
PartialUpdateChannelCommand: PartialUpdateChannelCommand_1.PartialUpdateChannelCommand,
|
|
85
93
|
PartialUpdateMessageCommand: PartialUpdateMessageCommand_1.PartialUpdateMessageCommand,
|
|
86
94
|
PinChannelCommand: PinChannelCommand_1.PinChannelCommand,
|
|
95
|
+
PinMessageCommand: PinMessageCommand_1.PinMessageCommand,
|
|
87
96
|
ScheduleExternalFlagAdjustmentJobCommand: ScheduleExternalFlagAdjustmentJobCommand_1.ScheduleExternalFlagAdjustmentJobCommand,
|
|
97
|
+
SendActionTriggerResultCommand: SendActionTriggerResultCommand_1.SendActionTriggerResultCommand,
|
|
88
98
|
SendGiphyCommand: SendGiphyCommand_1.SendGiphyCommand,
|
|
89
99
|
SendMessageCommand: SendMessageCommand_1.SendMessageCommand,
|
|
90
100
|
SendMessageReactionCommand: SendMessageReactionCommand_1.SendMessageReactionCommand,
|
|
@@ -92,7 +102,9 @@ const commands = {
|
|
|
92
102
|
SendTypingStopCommand: SendTypingStopCommand_1.SendTypingStopCommand,
|
|
93
103
|
ShowChannelCommand: ShowChannelCommand_1.ShowChannelCommand,
|
|
94
104
|
TagChannelCommand: TagChannelCommand_1.TagChannelCommand,
|
|
105
|
+
TriggerMessageActionCommand: TriggerMessageActionCommand_1.TriggerMessageActionCommand,
|
|
95
106
|
UnpinChannelCommand: UnpinChannelCommand_1.UnpinChannelCommand,
|
|
107
|
+
UnpinMessageCommand: UnpinMessageCommand_1.UnpinMessageCommand,
|
|
96
108
|
UntagChannelCommand: UntagChannelCommand_1.UntagChannelCommand,
|
|
97
109
|
UpdateChannelCommand: UpdateChannelCommand_1.UpdateChannelCommand,
|
|
98
110
|
UpdateInboxTagCommand: UpdateInboxTagCommand_1.UpdateInboxTagCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetActionTriggerResultCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class GetActionTriggerResultCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Conversations", "GetActionTriggerResult", {})
|
|
15
|
+
.n("ConversationsClient", "GetActionTriggerResultCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetActionTriggerResultCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetActionTriggerResultCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetActionTriggerResultCommand = GetActionTriggerResultCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListPinnedMessagesCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class ListPinnedMessagesCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Conversations", "ListPinnedMessages", {})
|
|
15
|
+
.n("ConversationsClient", "ListPinnedMessagesCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListPinnedMessagesCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListPinnedMessagesCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListPinnedMessagesCommand = ListPinnedMessagesCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PinMessageCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class PinMessageCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Conversations", "PinMessage", {})
|
|
15
|
+
.n("ConversationsClient", "PinMessageCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_PinMessageCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_PinMessageCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.PinMessageCommand = PinMessageCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SendActionTriggerResultCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class SendActionTriggerResultCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Conversations", "SendActionTriggerResult", {})
|
|
15
|
+
.n("ConversationsClient", "SendActionTriggerResultCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_SendActionTriggerResultCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_SendActionTriggerResultCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.SendActionTriggerResultCommand = SendActionTriggerResultCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TriggerMessageActionCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class TriggerMessageActionCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Conversations", "TriggerMessageAction", {})
|
|
15
|
+
.n("ConversationsClient", "TriggerMessageActionCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_TriggerMessageActionCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_TriggerMessageActionCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.TriggerMessageActionCommand = TriggerMessageActionCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnpinMessageCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class UnpinMessageCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("Conversations", "UnpinMessage", {})
|
|
15
|
+
.n("ConversationsClient", "UnpinMessageCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_UnpinMessageCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_UnpinMessageCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.UnpinMessageCommand = UnpinMessageCommand;
|
|
@@ -11,6 +11,7 @@ tslib_1.__exportStar(require("./DeleteInboxTagCommand"), exports);
|
|
|
11
11
|
tslib_1.__exportStar(require("./DeleteMessageCommand"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./DeleteMessageReactionCommand"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./DescribeEventCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./GetActionTriggerResultCommand"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./GetChannelCommand"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./GetChannelMemberCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./GetDirectChannelIdCommand"), exports);
|
|
@@ -29,12 +30,15 @@ tslib_1.__exportStar(require("./ListInboxTaggedChannelsCommand"), exports);
|
|
|
29
30
|
tslib_1.__exportStar(require("./ListInboxTagsCommand"), exports);
|
|
30
31
|
tslib_1.__exportStar(require("./ListMessageReactionsCommand"), exports);
|
|
31
32
|
tslib_1.__exportStar(require("./ListMessagesCommand"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./ListPinnedMessagesCommand"), exports);
|
|
32
34
|
tslib_1.__exportStar(require("./MarkReadCommand"), exports);
|
|
33
35
|
tslib_1.__exportStar(require("./MarkUnreadCommand"), exports);
|
|
34
36
|
tslib_1.__exportStar(require("./PartialUpdateChannelCommand"), exports);
|
|
35
37
|
tslib_1.__exportStar(require("./PartialUpdateMessageCommand"), exports);
|
|
36
38
|
tslib_1.__exportStar(require("./PinChannelCommand"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./PinMessageCommand"), exports);
|
|
37
40
|
tslib_1.__exportStar(require("./ScheduleExternalFlagAdjustmentJobCommand"), exports);
|
|
41
|
+
tslib_1.__exportStar(require("./SendActionTriggerResultCommand"), exports);
|
|
38
42
|
tslib_1.__exportStar(require("./SendGiphyCommand"), exports);
|
|
39
43
|
tslib_1.__exportStar(require("./SendMessageCommand"), exports);
|
|
40
44
|
tslib_1.__exportStar(require("./SendMessageReactionCommand"), exports);
|
|
@@ -42,7 +46,9 @@ tslib_1.__exportStar(require("./SendTypingStartCommand"), exports);
|
|
|
42
46
|
tslib_1.__exportStar(require("./SendTypingStopCommand"), exports);
|
|
43
47
|
tslib_1.__exportStar(require("./ShowChannelCommand"), exports);
|
|
44
48
|
tslib_1.__exportStar(require("./TagChannelCommand"), exports);
|
|
49
|
+
tslib_1.__exportStar(require("./TriggerMessageActionCommand"), exports);
|
|
45
50
|
tslib_1.__exportStar(require("./UnpinChannelCommand"), exports);
|
|
51
|
+
tslib_1.__exportStar(require("./UnpinMessageCommand"), exports);
|
|
46
52
|
tslib_1.__exportStar(require("./UntagChannelCommand"), exports);
|
|
47
53
|
tslib_1.__exportStar(require("./UpdateChannelCommand"), exports);
|
|
48
54
|
tslib_1.__exportStar(require("./UpdateInboxTagCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TaggedChannelsLimitReachedException = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.
|
|
3
|
+
exports.MessageActionNotFoundException = exports.TaggedChannelsLimitReachedException = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TagsLimitReachedException = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ActionTriggerStatus = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelType = exports.FileNotFoundException = exports.ConversationFileCategory = exports.RateLimitExceededException = 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) {
|
|
@@ -67,6 +67,34 @@ exports.ChannelType = {
|
|
|
67
67
|
DIRECT: "direct",
|
|
68
68
|
GROUP: "group",
|
|
69
69
|
};
|
|
70
|
+
var ButtonHandler;
|
|
71
|
+
(function (ButtonHandler) {
|
|
72
|
+
ButtonHandler.visit = (value, visitor) => {
|
|
73
|
+
if (value.link !== undefined)
|
|
74
|
+
return visitor.link(value.link);
|
|
75
|
+
if (value.reply !== undefined)
|
|
76
|
+
return visitor.reply(value.reply);
|
|
77
|
+
if (value.action !== undefined)
|
|
78
|
+
return visitor.action(value.action);
|
|
79
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
80
|
+
};
|
|
81
|
+
})(ButtonHandler = exports.ButtonHandler || (exports.ButtonHandler = {}));
|
|
82
|
+
exports.ButtonVariant = {
|
|
83
|
+
CONTAINED: "contained",
|
|
84
|
+
OUTLINED: "outlined",
|
|
85
|
+
};
|
|
86
|
+
var ActionElement;
|
|
87
|
+
(function (ActionElement) {
|
|
88
|
+
ActionElement.visit = (value, visitor) => {
|
|
89
|
+
if (value.button !== undefined)
|
|
90
|
+
return visitor.button(value.button);
|
|
91
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
92
|
+
};
|
|
93
|
+
})(ActionElement = exports.ActionElement || (exports.ActionElement = {}));
|
|
94
|
+
exports.ActionTriggerStatus = {
|
|
95
|
+
COMPLETED: "completed",
|
|
96
|
+
PENDING: "pending",
|
|
97
|
+
};
|
|
70
98
|
exports.ChannelMemberRole = {
|
|
71
99
|
MEMBER: "member",
|
|
72
100
|
SUPERVISOR: "supervisor",
|
|
@@ -176,17 +204,14 @@ exports.ReactionType = {
|
|
|
176
204
|
THUMBSUP: "thumbsup",
|
|
177
205
|
WHITE_CHECK_MARK: "white_check_mark",
|
|
178
206
|
};
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
REACTION_DELETED: "chat:reaction:deleted",
|
|
188
|
-
REACTION_NEW: "chat:reaction:new",
|
|
189
|
-
};
|
|
207
|
+
var Element;
|
|
208
|
+
(function (Element) {
|
|
209
|
+
Element.visit = (value, visitor) => {
|
|
210
|
+
if (value.actions !== undefined)
|
|
211
|
+
return visitor.actions(value.actions);
|
|
212
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
213
|
+
};
|
|
214
|
+
})(Element = exports.Element || (exports.Element = {}));
|
|
190
215
|
exports.MessageSmsStatus = {
|
|
191
216
|
DELIVERED: "delivered",
|
|
192
217
|
ERROR: "error",
|
|
@@ -203,6 +228,31 @@ exports.MessageWhatsAppStatus = {
|
|
|
203
228
|
SENT: "sent",
|
|
204
229
|
TRYING: "trying",
|
|
205
230
|
};
|
|
231
|
+
exports.WebhookEventType = {
|
|
232
|
+
ACTION_TRIGGERED: "chat:action:triggered",
|
|
233
|
+
CHANNEL_CREATED: "chat:channel:created",
|
|
234
|
+
CHANNEL_UPDATED: "chat:channel:updated",
|
|
235
|
+
MEMBER_ADDED: "chat:member:added",
|
|
236
|
+
MEMBER_REMOVED: "chat:member:removed",
|
|
237
|
+
MESSAGE_DELETED: "chat:message:deleted",
|
|
238
|
+
MESSAGE_NEW: "chat:message:new",
|
|
239
|
+
MESSAGE_UPDATED: "chat:message:updated",
|
|
240
|
+
REACTION_DELETED: "chat:reaction:deleted",
|
|
241
|
+
REACTION_NEW: "chat:reaction:new",
|
|
242
|
+
};
|
|
243
|
+
class TriggerNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
244
|
+
constructor(opts) {
|
|
245
|
+
super({
|
|
246
|
+
name: "TriggerNotFoundException",
|
|
247
|
+
$fault: "client",
|
|
248
|
+
...opts
|
|
249
|
+
});
|
|
250
|
+
this.name = "TriggerNotFoundException";
|
|
251
|
+
this.$fault = "client";
|
|
252
|
+
Object.setPrototypeOf(this, TriggerNotFoundException.prototype);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
exports.TriggerNotFoundException = TriggerNotFoundException;
|
|
206
256
|
class TagNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
207
257
|
constructor(opts) {
|
|
208
258
|
super({
|
|
@@ -239,7 +289,9 @@ exports.GroupChannelUnsetOptions = {
|
|
|
239
289
|
};
|
|
240
290
|
exports.MessageUnsetFields = {
|
|
241
291
|
ATTACHMENTS: "attachments",
|
|
292
|
+
ELEMENTS: "elements",
|
|
242
293
|
FORWARD: "forward",
|
|
294
|
+
MENTIONS: "mentions",
|
|
243
295
|
QUOTE: "quote",
|
|
244
296
|
TEXT: "text",
|
|
245
297
|
};
|
|
@@ -282,3 +334,16 @@ class TaggedChannelsLimitReachedException extends ConversationsServiceException_
|
|
|
282
334
|
}
|
|
283
335
|
}
|
|
284
336
|
exports.TaggedChannelsLimitReachedException = TaggedChannelsLimitReachedException;
|
|
337
|
+
class MessageActionNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
338
|
+
constructor(opts) {
|
|
339
|
+
super({
|
|
340
|
+
name: "MessageActionNotFoundException",
|
|
341
|
+
$fault: "client",
|
|
342
|
+
...opts
|
|
343
|
+
});
|
|
344
|
+
this.name = "MessageActionNotFoundException";
|
|
345
|
+
this.$fault = "client";
|
|
346
|
+
Object.setPrototypeOf(this, MessageActionNotFoundException.prototype);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
exports.MessageActionNotFoundException = MessageActionNotFoundException;
|