@wildix/xbees-conversations-client 1.0.46 → 1.0.47
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 +2 -0
- package/dist-cjs/commands/AssignChannelCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +24 -1
- package/dist-cjs/protocols/Aws_restJson1.js +42 -2
- package/dist-es/Conversations.js +2 -0
- package/dist-es/commands/AssignChannelCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +23 -0
- package/dist-es/protocols/Aws_restJson1.js +38 -0
- package/dist-types/Conversations.d.ts +7 -0
- package/dist-types/ConversationsClient.d.ts +3 -2
- package/dist-types/commands/AssignChannelCommand.d.ts +101 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +5 -5
- package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +2 -2
- package/dist-types/commands/GetMessageCommand.d.ts +1 -1
- package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +2 -2
- package/dist-types/commands/ListMessagesCommand.d.ts +1 -1
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +1 -1
- package/dist-types/commands/SendGiphyCommand.d.ts +1 -1
- package/dist-types/commands/SendMessageCommand.d.ts +1 -1
- package/dist-types/commands/UpdateMessageCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +133 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ exports.Conversations = void 0;
|
|
|
4
4
|
const ConversationsClient_1 = require("./ConversationsClient");
|
|
5
5
|
const AddChannelMemberCommand_1 = require("./commands/AddChannelMemberCommand");
|
|
6
6
|
const AddChannelMembersCommand_1 = require("./commands/AddChannelMembersCommand");
|
|
7
|
+
const AssignChannelCommand_1 = require("./commands/AssignChannelCommand");
|
|
7
8
|
const CreateGroupChannelCommand_1 = require("./commands/CreateGroupChannelCommand");
|
|
8
9
|
const DeleteChannelCommand_1 = require("./commands/DeleteChannelCommand");
|
|
9
10
|
const DeleteChannelMemberCommand_1 = require("./commands/DeleteChannelMemberCommand");
|
|
@@ -42,6 +43,7 @@ const smithy_client_1 = require("@smithy/smithy-client");
|
|
|
42
43
|
const commands = {
|
|
43
44
|
AddChannelMemberCommand: AddChannelMemberCommand_1.AddChannelMemberCommand,
|
|
44
45
|
AddChannelMembersCommand: AddChannelMembersCommand_1.AddChannelMembersCommand,
|
|
46
|
+
AssignChannelCommand: AssignChannelCommand_1.AssignChannelCommand,
|
|
45
47
|
CreateGroupChannelCommand: CreateGroupChannelCommand_1.CreateGroupChannelCommand,
|
|
46
48
|
DeleteChannelCommand: DeleteChannelCommand_1.DeleteChannelCommand,
|
|
47
49
|
DeleteChannelMemberCommand: DeleteChannelMemberCommand_1.DeleteChannelMemberCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssignChannelCommand = 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 AssignChannelCommand 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", "AssignChannel", {})
|
|
15
|
+
.n("ConversationsClient", "AssignChannelCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_AssignChannelCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_AssignChannelCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.AssignChannelCommand = AssignChannelCommand;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./AddChannelMemberCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./AddChannelMembersCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./AssignChannelCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./CreateGroupChannelCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./DeleteChannelCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./DeleteChannelMemberCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConversationsServiceException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.FileNotFoundException = exports.MessageType = exports.MessageSmsStatus = exports.WebhookEventType = 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.FileNotFoundException = exports.MessageType = exports.MessageSmsStatus = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.ConversationFileCategory = exports.ChannelAlreadyExistException = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.AssignChannelServiceRequest = exports.AssignChannelAssigneeRequest = 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) {
|
|
@@ -62,6 +62,28 @@ class MemberAlreadyExistException extends ConversationsServiceException_1.Conver
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
exports.MemberAlreadyExistException = MemberAlreadyExistException;
|
|
65
|
+
var AssignChannelAssigneeRequest;
|
|
66
|
+
(function (AssignChannelAssigneeRequest) {
|
|
67
|
+
AssignChannelAssigneeRequest.visit = (value, visitor) => {
|
|
68
|
+
if (value.id !== undefined)
|
|
69
|
+
return visitor.id(value.id);
|
|
70
|
+
if (value.email !== undefined)
|
|
71
|
+
return visitor.email(value.email);
|
|
72
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
73
|
+
};
|
|
74
|
+
})(AssignChannelAssigneeRequest = exports.AssignChannelAssigneeRequest || (exports.AssignChannelAssigneeRequest = {}));
|
|
75
|
+
var AssignChannelServiceRequest;
|
|
76
|
+
(function (AssignChannelServiceRequest) {
|
|
77
|
+
AssignChannelServiceRequest.visit = (value, visitor) => {
|
|
78
|
+
if (value.uri !== undefined)
|
|
79
|
+
return visitor.uri(value.uri);
|
|
80
|
+
if (value.id !== undefined)
|
|
81
|
+
return visitor.id(value.id);
|
|
82
|
+
if (value.name !== undefined)
|
|
83
|
+
return visitor.name(value.name);
|
|
84
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
85
|
+
};
|
|
86
|
+
})(AssignChannelServiceRequest = exports.AssignChannelServiceRequest || (exports.AssignChannelServiceRequest = {}));
|
|
65
87
|
exports.ChannelAccess = {
|
|
66
88
|
PRIVATE: "private",
|
|
67
89
|
PUBLIC: "public",
|
|
@@ -148,6 +170,7 @@ exports.MessageSmsStatus = {
|
|
|
148
170
|
};
|
|
149
171
|
exports.MessageType = {
|
|
150
172
|
REGULAR: "regular",
|
|
173
|
+
SYSTEM: "system",
|
|
151
174
|
};
|
|
152
175
|
class FileNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
153
176
|
constructor(opts) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkReadCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = exports.de_HideChannelCommand = exports.de_GetUploadedFileInfoCommand = void 0;
|
|
3
|
+
exports.de_GetFilePresignedDownloadUrlCommand = exports.de_GetDirectChannelIdCommand = exports.de_GetChannelMemberCommand = exports.de_GetChannelCommand = exports.de_DescribeEventCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateGroupChannelCommand = exports.de_AssignChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateChannelCommand = exports.se_ShowChannelCommand = exports.se_SendTypingStopCommand = exports.se_SendTypingStartCommand = exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_ScheduleExternalFlagAdjustmentJobCommand = exports.se_PartialUpdateMessageCommand = exports.se_PartialUpdateChannelCommand = exports.se_MarkReadCommand = exports.se_ListMessagesCommand = exports.se_ListMessageReactionsCommand = exports.se_ListChannelsCommand = exports.se_ListChannelMembersCommand = exports.se_LeaveChannelCommand = exports.se_JoinChannelCommand = exports.se_InviteCommand = exports.se_HideChannelCommand = exports.se_GetUploadedFileInfoCommand = exports.se_GetOrCreateDirectChannelCommand = exports.se_GetMessageCommand = exports.se_GetFilePresignedDownloadUrlCommand = exports.se_GetDirectChannelIdCommand = exports.se_GetChannelMemberCommand = exports.se_GetChannelCommand = exports.se_DescribeEventCommand = exports.se_DeleteMessageReactionCommand = exports.se_DeleteMessageCommand = exports.se_DeleteChannelMemberCommand = exports.se_DeleteChannelCommand = exports.se_CreateGroupChannelCommand = exports.se_AssignChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
|
|
4
|
+
exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkReadCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = exports.de_HideChannelCommand = exports.de_GetUploadedFileInfoCommand = exports.de_GetOrCreateDirectChannelCommand = exports.de_GetMessageCommand = void 0;
|
|
5
5
|
const ConversationsServiceException_1 = require("../models/ConversationsServiceException");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const core_1 = require("@smithy/core");
|
|
@@ -52,6 +52,30 @@ const se_AddChannelMembersCommand = async (input, context) => {
|
|
|
52
52
|
return b.build();
|
|
53
53
|
};
|
|
54
54
|
exports.se_AddChannelMembersCommand = se_AddChannelMembersCommand;
|
|
55
|
+
const se_AssignChannelCommand = async (input, context) => {
|
|
56
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
57
|
+
const headers = {
|
|
58
|
+
'content-type': 'application/json',
|
|
59
|
+
};
|
|
60
|
+
b.bp("/v2/conversations/channels/{channelId}/assign");
|
|
61
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
62
|
+
const query = (0, smithy_client_1.map)({
|
|
63
|
+
[_u]: [, input[_uI]],
|
|
64
|
+
});
|
|
65
|
+
let body;
|
|
66
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
67
|
+
'assignee': _ => (0, smithy_client_1._json)(_),
|
|
68
|
+
'options': _ => (0, smithy_client_1._json)(_),
|
|
69
|
+
'service': _ => (0, smithy_client_1._json)(_),
|
|
70
|
+
'silent': [],
|
|
71
|
+
}));
|
|
72
|
+
b.m("POST")
|
|
73
|
+
.h(headers)
|
|
74
|
+
.q(query)
|
|
75
|
+
.b(body);
|
|
76
|
+
return b.build();
|
|
77
|
+
};
|
|
78
|
+
exports.se_AssignChannelCommand = se_AssignChannelCommand;
|
|
55
79
|
const se_CreateGroupChannelCommand = async (input, context) => {
|
|
56
80
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
57
81
|
const headers = {
|
|
@@ -708,6 +732,22 @@ const de_AddChannelMembersCommand = async (output, context) => {
|
|
|
708
732
|
return contents;
|
|
709
733
|
};
|
|
710
734
|
exports.de_AddChannelMembersCommand = de_AddChannelMembersCommand;
|
|
735
|
+
const de_AssignChannelCommand = async (output, context) => {
|
|
736
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
|
+
return de_CommandError(output, context);
|
|
738
|
+
}
|
|
739
|
+
const contents = (0, smithy_client_1.map)({
|
|
740
|
+
$metadata: deserializeMetadata(output),
|
|
741
|
+
});
|
|
742
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
743
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
744
|
+
'assignee': smithy_client_1._json,
|
|
745
|
+
'service': smithy_client_1._json,
|
|
746
|
+
});
|
|
747
|
+
Object.assign(contents, doc);
|
|
748
|
+
return contents;
|
|
749
|
+
};
|
|
750
|
+
exports.de_AssignChannelCommand = de_AssignChannelCommand;
|
|
711
751
|
const de_CreateGroupChannelCommand = async (output, context) => {
|
|
712
752
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
713
753
|
return de_CommandError(output, context);
|
package/dist-es/Conversations.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ConversationsClient, } from "./ConversationsClient";
|
|
2
2
|
import { AddChannelMemberCommand, } from "./commands/AddChannelMemberCommand";
|
|
3
3
|
import { AddChannelMembersCommand, } from "./commands/AddChannelMembersCommand";
|
|
4
|
+
import { AssignChannelCommand, } from "./commands/AssignChannelCommand";
|
|
4
5
|
import { CreateGroupChannelCommand, } from "./commands/CreateGroupChannelCommand";
|
|
5
6
|
import { DeleteChannelCommand, } from "./commands/DeleteChannelCommand";
|
|
6
7
|
import { DeleteChannelMemberCommand, } from "./commands/DeleteChannelMemberCommand";
|
|
@@ -39,6 +40,7 @@ import { createAggregatedClient } from "@smithy/smithy-client";
|
|
|
39
40
|
const commands = {
|
|
40
41
|
AddChannelMemberCommand,
|
|
41
42
|
AddChannelMembersCommand,
|
|
43
|
+
AssignChannelCommand,
|
|
42
44
|
CreateGroupChannelCommand,
|
|
43
45
|
DeleteChannelCommand,
|
|
44
46
|
DeleteChannelMemberCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_AssignChannelCommand, se_AssignChannelCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class AssignChannelCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Conversations", "AssignChannel", {})
|
|
12
|
+
.n("ConversationsClient", "AssignChannelCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_AssignChannelCommand)
|
|
15
|
+
.de(de_AssignChannelCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -55,6 +55,28 @@ export class MemberAlreadyExistException extends __BaseException {
|
|
|
55
55
|
Object.setPrototypeOf(this, MemberAlreadyExistException.prototype);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
export var AssignChannelAssigneeRequest;
|
|
59
|
+
(function (AssignChannelAssigneeRequest) {
|
|
60
|
+
AssignChannelAssigneeRequest.visit = (value, visitor) => {
|
|
61
|
+
if (value.id !== undefined)
|
|
62
|
+
return visitor.id(value.id);
|
|
63
|
+
if (value.email !== undefined)
|
|
64
|
+
return visitor.email(value.email);
|
|
65
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
66
|
+
};
|
|
67
|
+
})(AssignChannelAssigneeRequest || (AssignChannelAssigneeRequest = {}));
|
|
68
|
+
export var AssignChannelServiceRequest;
|
|
69
|
+
(function (AssignChannelServiceRequest) {
|
|
70
|
+
AssignChannelServiceRequest.visit = (value, visitor) => {
|
|
71
|
+
if (value.uri !== undefined)
|
|
72
|
+
return visitor.uri(value.uri);
|
|
73
|
+
if (value.id !== undefined)
|
|
74
|
+
return visitor.id(value.id);
|
|
75
|
+
if (value.name !== undefined)
|
|
76
|
+
return visitor.name(value.name);
|
|
77
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
78
|
+
};
|
|
79
|
+
})(AssignChannelServiceRequest || (AssignChannelServiceRequest = {}));
|
|
58
80
|
export const ChannelAccess = {
|
|
59
81
|
PRIVATE: "private",
|
|
60
82
|
PUBLIC: "public",
|
|
@@ -138,6 +160,7 @@ export const MessageSmsStatus = {
|
|
|
138
160
|
};
|
|
139
161
|
export const MessageType = {
|
|
140
162
|
REGULAR: "regular",
|
|
163
|
+
SYSTEM: "system",
|
|
141
164
|
};
|
|
142
165
|
export class FileNotFoundException extends __BaseException {
|
|
143
166
|
constructor(opts) {
|
|
@@ -46,6 +46,29 @@ export const se_AddChannelMembersCommand = async (input, context) => {
|
|
|
46
46
|
.b(body);
|
|
47
47
|
return b.build();
|
|
48
48
|
};
|
|
49
|
+
export const se_AssignChannelCommand = async (input, context) => {
|
|
50
|
+
const b = rb(input, context);
|
|
51
|
+
const headers = {
|
|
52
|
+
'content-type': 'application/json',
|
|
53
|
+
};
|
|
54
|
+
b.bp("/v2/conversations/channels/{channelId}/assign");
|
|
55
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
56
|
+
const query = map({
|
|
57
|
+
[_u]: [, input[_uI]],
|
|
58
|
+
});
|
|
59
|
+
let body;
|
|
60
|
+
body = JSON.stringify(take(input, {
|
|
61
|
+
'assignee': _ => _json(_),
|
|
62
|
+
'options': _ => _json(_),
|
|
63
|
+
'service': _ => _json(_),
|
|
64
|
+
'silent': [],
|
|
65
|
+
}));
|
|
66
|
+
b.m("POST")
|
|
67
|
+
.h(headers)
|
|
68
|
+
.q(query)
|
|
69
|
+
.b(body);
|
|
70
|
+
return b.build();
|
|
71
|
+
};
|
|
49
72
|
export const se_CreateGroupChannelCommand = async (input, context) => {
|
|
50
73
|
const b = rb(input, context);
|
|
51
74
|
const headers = {
|
|
@@ -666,6 +689,21 @@ export const de_AddChannelMembersCommand = async (output, context) => {
|
|
|
666
689
|
Object.assign(contents, doc);
|
|
667
690
|
return contents;
|
|
668
691
|
};
|
|
692
|
+
export const de_AssignChannelCommand = async (output, context) => {
|
|
693
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
694
|
+
return de_CommandError(output, context);
|
|
695
|
+
}
|
|
696
|
+
const contents = map({
|
|
697
|
+
$metadata: deserializeMetadata(output),
|
|
698
|
+
});
|
|
699
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
700
|
+
const doc = take(data, {
|
|
701
|
+
'assignee': _json,
|
|
702
|
+
'service': _json,
|
|
703
|
+
});
|
|
704
|
+
Object.assign(contents, doc);
|
|
705
|
+
return contents;
|
|
706
|
+
};
|
|
669
707
|
export const de_CreateGroupChannelCommand = async (output, context) => {
|
|
670
708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
671
709
|
return de_CommandError(output, context);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ConversationsClient } from "./ConversationsClient";
|
|
2
2
|
import { AddChannelMemberCommandInput, AddChannelMemberCommandOutput } from "./commands/AddChannelMemberCommand";
|
|
3
3
|
import { AddChannelMembersCommandInput, AddChannelMembersCommandOutput } from "./commands/AddChannelMembersCommand";
|
|
4
|
+
import { AssignChannelCommandInput, AssignChannelCommandOutput } from "./commands/AssignChannelCommand";
|
|
4
5
|
import { CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput } from "./commands/CreateGroupChannelCommand";
|
|
5
6
|
import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./commands/DeleteChannelCommand";
|
|
6
7
|
import { DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput } from "./commands/DeleteChannelMemberCommand";
|
|
@@ -49,6 +50,12 @@ export interface Conversations {
|
|
|
49
50
|
addChannelMembers(args: AddChannelMembersCommandInput, options?: __HttpHandlerOptions): Promise<AddChannelMembersCommandOutput>;
|
|
50
51
|
addChannelMembers(args: AddChannelMembersCommandInput, cb: (err: any, data?: AddChannelMembersCommandOutput) => void): void;
|
|
51
52
|
addChannelMembers(args: AddChannelMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddChannelMembersCommandOutput) => void): void;
|
|
53
|
+
/**
|
|
54
|
+
* @see {@link AssignChannelCommand}
|
|
55
|
+
*/
|
|
56
|
+
assignChannel(args: AssignChannelCommandInput, options?: __HttpHandlerOptions): Promise<AssignChannelCommandOutput>;
|
|
57
|
+
assignChannel(args: AssignChannelCommandInput, cb: (err: any, data?: AssignChannelCommandOutput) => void): void;
|
|
58
|
+
assignChannel(args: AssignChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssignChannelCommandOutput) => void): void;
|
|
52
59
|
/**
|
|
53
60
|
* @see {@link CreateGroupChannelCommand}
|
|
54
61
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AddChannelMemberCommandInput, AddChannelMemberCommandOutput } from "./commands/AddChannelMemberCommand";
|
|
2
2
|
import { AddChannelMembersCommandInput, AddChannelMembersCommandOutput } from "./commands/AddChannelMembersCommand";
|
|
3
|
+
import { AssignChannelCommandInput, AssignChannelCommandOutput } from "./commands/AssignChannelCommand";
|
|
3
4
|
import { CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput } from "./commands/CreateGroupChannelCommand";
|
|
4
5
|
import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./commands/DeleteChannelCommand";
|
|
5
6
|
import { DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput } from "./commands/DeleteChannelMemberCommand";
|
|
@@ -44,11 +45,11 @@ export { __Client };
|
|
|
44
45
|
/**
|
|
45
46
|
* @public
|
|
46
47
|
*/
|
|
47
|
-
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
48
|
+
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | AssignChannelCommandInput | CreateGroupChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
48
49
|
/**
|
|
49
50
|
* @public
|
|
50
51
|
*/
|
|
51
|
-
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
52
|
+
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | AssignChannelCommandOutput | CreateGroupChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
52
53
|
/**
|
|
53
54
|
* @public
|
|
54
55
|
*/
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { AssignChannelInput, AssignChannelOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link AssignChannelCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface AssignChannelCommandInput extends AssignChannelInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link AssignChannelCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface AssignChannelCommandOutput extends AssignChannelOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
declare const AssignChannelCommand_base: {
|
|
24
|
+
new (input: AssignChannelCommandInput): import("@smithy/smithy-client").CommandImpl<AssignChannelCommandInput, AssignChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
25
|
+
new (__0_0: AssignChannelCommandInput): import("@smithy/smithy-client").CommandImpl<AssignChannelCommandInput, AssignChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ConversationsClient, AssignChannelCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
35
|
+
* // const { ConversationsClient, AssignChannelCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
36
|
+
* const client = new ConversationsClient(config);
|
|
37
|
+
* const input = { // AssignChannelInput
|
|
38
|
+
* channelId: "STRING_VALUE", // required
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* silent: true || false,
|
|
41
|
+
* service: { // AssignChannelServiceRequest Union: only one key present
|
|
42
|
+
* uri: "STRING_VALUE",
|
|
43
|
+
* id: "STRING_VALUE",
|
|
44
|
+
* name: "STRING_VALUE",
|
|
45
|
+
* },
|
|
46
|
+
* assignee: { // AssignChannelAssigneeRequest Union: only one key present
|
|
47
|
+
* id: "STRING_VALUE",
|
|
48
|
+
* email: "STRING_VALUE",
|
|
49
|
+
* },
|
|
50
|
+
* options: { // AssignChannelOptions
|
|
51
|
+
* addAgentFromService: true || false,
|
|
52
|
+
* },
|
|
53
|
+
* };
|
|
54
|
+
* const command = new AssignChannelCommand(input);
|
|
55
|
+
* const response = await client.send(command);
|
|
56
|
+
* // { // AssignChannelOutput
|
|
57
|
+
* // assignee: { // User
|
|
58
|
+
* // id: "STRING_VALUE", // required
|
|
59
|
+
* // name: "STRING_VALUE",
|
|
60
|
+
* // email: "STRING_VALUE",
|
|
61
|
+
* // phone: "STRING_VALUE",
|
|
62
|
+
* // picture: "STRING_VALUE",
|
|
63
|
+
* // locale: "STRING_VALUE",
|
|
64
|
+
* // timeZone: "STRING_VALUE",
|
|
65
|
+
* // company: "STRING_VALUE",
|
|
66
|
+
* // bot: true || false,
|
|
67
|
+
* // pbxDomain: "STRING_VALUE",
|
|
68
|
+
* // pbxPort: "STRING_VALUE",
|
|
69
|
+
* // pbxExtension: "STRING_VALUE",
|
|
70
|
+
* // pbxSerial: "STRING_VALUE",
|
|
71
|
+
* // pbxUserId: "STRING_VALUE",
|
|
72
|
+
* // createdAt: "STRING_VALUE",
|
|
73
|
+
* // updatedAt: "STRING_VALUE",
|
|
74
|
+
* // },
|
|
75
|
+
* // service: { // AssignService
|
|
76
|
+
* // uri: "STRING_VALUE", // required
|
|
77
|
+
* // id: "STRING_VALUE", // required
|
|
78
|
+
* // name: "STRING_VALUE", // required
|
|
79
|
+
* // },
|
|
80
|
+
* // };
|
|
81
|
+
*
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
84
|
+
* @param AssignChannelCommandInput - {@link AssignChannelCommandInput}
|
|
85
|
+
* @returns {@link AssignChannelCommandOutput}
|
|
86
|
+
* @see {@link AssignChannelCommandInput} for command's `input` shape.
|
|
87
|
+
* @see {@link AssignChannelCommandOutput} for command's `response` shape.
|
|
88
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ValidationException} (client fault)
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ConversationsServiceException}
|
|
97
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
export declare class AssignChannelCommand extends AssignChannelCommand_base {
|
|
101
|
+
}
|
|
@@ -514,7 +514,7 @@ declare const DescribeEventCommand_base: {
|
|
|
514
514
|
* // forwardEmail: "STRING_VALUE",
|
|
515
515
|
* // forwardName: "STRING_VALUE",
|
|
516
516
|
* // },
|
|
517
|
-
* // type: "regular", // required
|
|
517
|
+
* // type: "regular" || "system", // required
|
|
518
518
|
* // giphy: {
|
|
519
519
|
* // id: "STRING_VALUE",
|
|
520
520
|
* // size: "STRING_VALUE",
|
|
@@ -610,7 +610,7 @@ declare const DescribeEventCommand_base: {
|
|
|
610
610
|
* // forwardEmail: "STRING_VALUE",
|
|
611
611
|
* // forwardName: "STRING_VALUE",
|
|
612
612
|
* // },
|
|
613
|
-
* // type: "regular", // required
|
|
613
|
+
* // type: "regular" || "system", // required
|
|
614
614
|
* // giphy: {
|
|
615
615
|
* // id: "STRING_VALUE",
|
|
616
616
|
* // size: "STRING_VALUE",
|
|
@@ -690,7 +690,7 @@ declare const DescribeEventCommand_base: {
|
|
|
690
690
|
* // updatedAt: "STRING_VALUE",
|
|
691
691
|
* // },
|
|
692
692
|
* // forward: "<MessageForward>",
|
|
693
|
-
* // type: "regular", // required
|
|
693
|
+
* // type: "regular" || "system", // required
|
|
694
694
|
* // giphy: "<MessageGiphy>",
|
|
695
695
|
* // silent: true || false,
|
|
696
696
|
* // event: "STRING_VALUE",
|
|
@@ -742,7 +742,7 @@ declare const DescribeEventCommand_base: {
|
|
|
742
742
|
* // updatedAt: "STRING_VALUE",
|
|
743
743
|
* // },
|
|
744
744
|
* // forward: "<MessageForward>",
|
|
745
|
-
* // type: "regular", // required
|
|
745
|
+
* // type: "regular" || "system", // required
|
|
746
746
|
* // giphy: "<MessageGiphy>",
|
|
747
747
|
* // silent: true || false,
|
|
748
748
|
* // event: "STRING_VALUE",
|
|
@@ -800,7 +800,7 @@ declare const DescribeEventCommand_base: {
|
|
|
800
800
|
* // updatedAt: "STRING_VALUE",
|
|
801
801
|
* // },
|
|
802
802
|
* // forward: "<MessageForward>",
|
|
803
|
-
* // type: "regular", // required
|
|
803
|
+
* // type: "regular" || "system", // required
|
|
804
804
|
* // giphy: "<MessageGiphy>",
|
|
805
805
|
* // silent: true || false,
|
|
806
806
|
* // event: "STRING_VALUE",
|
|
@@ -26,8 +26,7 @@ declare const GetFilePresignedDownloadUrlCommand_base: {
|
|
|
26
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
29
|
+
* Get presigned download URL.
|
|
31
30
|
* @example
|
|
32
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
32
|
* ```javascript
|
|
@@ -67,6 +66,7 @@ declare const GetFilePresignedDownloadUrlCommand_base: {
|
|
|
67
66
|
* @throws {@link ConversationsServiceException}
|
|
68
67
|
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
69
68
|
*
|
|
69
|
+
* @public
|
|
70
70
|
*/
|
|
71
71
|
export declare class GetFilePresignedDownloadUrlCommand extends GetFilePresignedDownloadUrlCommand_base {
|
|
72
72
|
}
|
|
@@ -131,7 +131,7 @@ declare const GetMessageCommand_base: {
|
|
|
131
131
|
* // forwardEmail: "STRING_VALUE",
|
|
132
132
|
* // forwardName: "STRING_VALUE",
|
|
133
133
|
* // },
|
|
134
|
-
* // type: "regular", // required
|
|
134
|
+
* // type: "regular" || "system", // required
|
|
135
135
|
* // giphy: {
|
|
136
136
|
* // id: "STRING_VALUE",
|
|
137
137
|
* // size: "STRING_VALUE",
|
|
@@ -26,8 +26,7 @@ declare const GetUploadedFileInfoCommand_base: {
|
|
|
26
26
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
27
27
|
};
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
29
|
+
* Get information about uploaded file.
|
|
31
30
|
* @example
|
|
32
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
32
|
* ```javascript
|
|
@@ -73,6 +72,7 @@ declare const GetUploadedFileInfoCommand_base: {
|
|
|
73
72
|
* @throws {@link ConversationsServiceException}
|
|
74
73
|
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
75
74
|
*
|
|
75
|
+
* @public
|
|
76
76
|
*/
|
|
77
77
|
export declare class GetUploadedFileInfoCommand extends GetUploadedFileInfoCommand_base {
|
|
78
78
|
}
|
|
@@ -133,7 +133,7 @@ declare const ListMessagesCommand_base: {
|
|
|
133
133
|
* // forwardEmail: "STRING_VALUE",
|
|
134
134
|
* // forwardName: "STRING_VALUE",
|
|
135
135
|
* // },
|
|
136
|
-
* // type: "regular", // required
|
|
136
|
+
* // type: "regular" || "system", // required
|
|
137
137
|
* // giphy: {
|
|
138
138
|
* // id: "STRING_VALUE",
|
|
139
139
|
* // size: "STRING_VALUE",
|
|
@@ -225,7 +225,7 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
225
225
|
* // forwardEmail: "STRING_VALUE",
|
|
226
226
|
* // forwardName: "STRING_VALUE",
|
|
227
227
|
* // },
|
|
228
|
-
* // type: "regular", // required
|
|
228
|
+
* // type: "regular" || "system", // required
|
|
229
229
|
* // giphy: {
|
|
230
230
|
* // id: "STRING_VALUE",
|
|
231
231
|
* // size: "STRING_VALUE",
|
|
@@ -139,7 +139,7 @@ declare const SendGiphyCommand_base: {
|
|
|
139
139
|
* // forwardEmail: "STRING_VALUE",
|
|
140
140
|
* // forwardName: "STRING_VALUE",
|
|
141
141
|
* // },
|
|
142
|
-
* // type: "regular", // required
|
|
142
|
+
* // type: "regular" || "system", // required
|
|
143
143
|
* // giphy: {
|
|
144
144
|
* // id: "STRING_VALUE",
|
|
145
145
|
* // size: "STRING_VALUE",
|
|
@@ -224,7 +224,7 @@ declare const SendMessageCommand_base: {
|
|
|
224
224
|
* // forwardEmail: "STRING_VALUE",
|
|
225
225
|
* // forwardName: "STRING_VALUE",
|
|
226
226
|
* // },
|
|
227
|
-
* // type: "regular", // required
|
|
227
|
+
* // type: "regular" || "system", // required
|
|
228
228
|
* // giphy: {
|
|
229
229
|
* // id: "STRING_VALUE",
|
|
230
230
|
* // size: "STRING_VALUE",
|
|
@@ -223,7 +223,7 @@ declare const UpdateMessageCommand_base: {
|
|
|
223
223
|
* // forwardEmail: "STRING_VALUE",
|
|
224
224
|
* // forwardName: "STRING_VALUE",
|
|
225
225
|
* // },
|
|
226
|
-
* // type: "regular", // required
|
|
226
|
+
* // type: "regular" || "system", // required
|
|
227
227
|
* // giphy: {
|
|
228
228
|
* // id: "STRING_VALUE",
|
|
229
229
|
* // size: "STRING_VALUE",
|
|
@@ -172,6 +172,138 @@ export interface AddChannelMembersOutput {
|
|
|
172
172
|
*/
|
|
173
173
|
users: (User)[];
|
|
174
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
export type AssignChannelAssigneeRequest = AssignChannelAssigneeRequest.EmailMember | AssignChannelAssigneeRequest.IdMember | AssignChannelAssigneeRequest.$UnknownMember;
|
|
179
|
+
/**
|
|
180
|
+
* @public
|
|
181
|
+
*/
|
|
182
|
+
export declare namespace AssignChannelAssigneeRequest {
|
|
183
|
+
interface IdMember {
|
|
184
|
+
id: string;
|
|
185
|
+
email?: never;
|
|
186
|
+
$unknown?: never;
|
|
187
|
+
}
|
|
188
|
+
interface EmailMember {
|
|
189
|
+
id?: never;
|
|
190
|
+
email: string;
|
|
191
|
+
$unknown?: never;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* @public
|
|
195
|
+
*/
|
|
196
|
+
interface $UnknownMember {
|
|
197
|
+
id?: never;
|
|
198
|
+
email?: never;
|
|
199
|
+
$unknown: [string, any];
|
|
200
|
+
}
|
|
201
|
+
interface Visitor<T> {
|
|
202
|
+
id: (value: string) => T;
|
|
203
|
+
email: (value: string) => T;
|
|
204
|
+
_: (name: string, value: any) => T;
|
|
205
|
+
}
|
|
206
|
+
const visit: <T>(value: AssignChannelAssigneeRequest, visitor: Visitor<T>) => T;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* @public
|
|
210
|
+
*/
|
|
211
|
+
export interface AssignChannelOptions {
|
|
212
|
+
/**
|
|
213
|
+
* True to add all members that are in service to the conversation. Default - false.
|
|
214
|
+
* @public
|
|
215
|
+
*/
|
|
216
|
+
addAgentFromService?: boolean;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* @public
|
|
220
|
+
*/
|
|
221
|
+
export type AssignChannelServiceRequest = AssignChannelServiceRequest.IdMember | AssignChannelServiceRequest.NameMember | AssignChannelServiceRequest.UriMember | AssignChannelServiceRequest.$UnknownMember;
|
|
222
|
+
/**
|
|
223
|
+
* @public
|
|
224
|
+
*/
|
|
225
|
+
export declare namespace AssignChannelServiceRequest {
|
|
226
|
+
interface UriMember {
|
|
227
|
+
uri: string;
|
|
228
|
+
id?: never;
|
|
229
|
+
name?: never;
|
|
230
|
+
$unknown?: never;
|
|
231
|
+
}
|
|
232
|
+
interface IdMember {
|
|
233
|
+
uri?: never;
|
|
234
|
+
id: string;
|
|
235
|
+
name?: never;
|
|
236
|
+
$unknown?: never;
|
|
237
|
+
}
|
|
238
|
+
interface NameMember {
|
|
239
|
+
uri?: never;
|
|
240
|
+
id?: never;
|
|
241
|
+
name: string;
|
|
242
|
+
$unknown?: never;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* @public
|
|
246
|
+
*/
|
|
247
|
+
interface $UnknownMember {
|
|
248
|
+
uri?: never;
|
|
249
|
+
id?: never;
|
|
250
|
+
name?: never;
|
|
251
|
+
$unknown: [string, any];
|
|
252
|
+
}
|
|
253
|
+
interface Visitor<T> {
|
|
254
|
+
uri: (value: string) => T;
|
|
255
|
+
id: (value: string) => T;
|
|
256
|
+
name: (value: string) => T;
|
|
257
|
+
_: (name: string, value: any) => T;
|
|
258
|
+
}
|
|
259
|
+
const visit: <T>(value: AssignChannelServiceRequest, visitor: Visitor<T>) => T;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* @public
|
|
263
|
+
*/
|
|
264
|
+
export interface AssignChannelInput {
|
|
265
|
+
channelId: string;
|
|
266
|
+
userId?: string;
|
|
267
|
+
/**
|
|
268
|
+
* True to not send a system message that channel was assigned to specific service or user. Default - false.
|
|
269
|
+
* @public
|
|
270
|
+
*/
|
|
271
|
+
silent?: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* Service information to assign to. If service is not empty than `addAgentFromService` option could be used.
|
|
274
|
+
* @public
|
|
275
|
+
*/
|
|
276
|
+
service?: AssignChannelServiceRequest;
|
|
277
|
+
/**
|
|
278
|
+
* A user that should be assigned to the channel. If service was specified than this field can be optional.
|
|
279
|
+
* @public
|
|
280
|
+
*/
|
|
281
|
+
assignee?: AssignChannelAssigneeRequest;
|
|
282
|
+
options?: AssignChannelOptions;
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* @public
|
|
286
|
+
*/
|
|
287
|
+
export interface AssignService {
|
|
288
|
+
uri: string;
|
|
289
|
+
id: string;
|
|
290
|
+
name: string;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* @public
|
|
294
|
+
*/
|
|
295
|
+
export interface AssignChannelOutput {
|
|
296
|
+
/**
|
|
297
|
+
* A user that assigned to the channel if specified in the request, otherwise previously assigned user or undefined.
|
|
298
|
+
* @public
|
|
299
|
+
*/
|
|
300
|
+
assignee?: User;
|
|
301
|
+
/**
|
|
302
|
+
* A service that assigned to the channel if specified in the request, otherwise previously assigned service or undefined.
|
|
303
|
+
* @public
|
|
304
|
+
*/
|
|
305
|
+
service?: AssignService;
|
|
306
|
+
}
|
|
175
307
|
/**
|
|
176
308
|
* @public
|
|
177
309
|
* @enum
|
|
@@ -614,6 +746,7 @@ export type MessageSmsStatus = typeof MessageSmsStatus[keyof typeof MessageSmsSt
|
|
|
614
746
|
*/
|
|
615
747
|
export declare const MessageType: {
|
|
616
748
|
readonly REGULAR: "regular";
|
|
749
|
+
readonly SYSTEM: "system";
|
|
617
750
|
};
|
|
618
751
|
/**
|
|
619
752
|
* @public
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AddChannelMemberCommandInput, AddChannelMemberCommandOutput } from "../commands/AddChannelMemberCommand";
|
|
2
2
|
import { AddChannelMembersCommandInput, AddChannelMembersCommandOutput } from "../commands/AddChannelMembersCommand";
|
|
3
|
+
import { AssignChannelCommandInput, AssignChannelCommandOutput } from "../commands/AssignChannelCommand";
|
|
3
4
|
import { CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput } from "../commands/CreateGroupChannelCommand";
|
|
4
5
|
import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "../commands/DeleteChannelCommand";
|
|
5
6
|
import { DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput } from "../commands/DeleteChannelMemberCommand";
|
|
@@ -44,6 +45,10 @@ export declare const se_AddChannelMemberCommand: (input: AddChannelMemberCommand
|
|
|
44
45
|
* serializeAws_restJson1AddChannelMembersCommand
|
|
45
46
|
*/
|
|
46
47
|
export declare const se_AddChannelMembersCommand: (input: AddChannelMembersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
48
|
+
/**
|
|
49
|
+
* serializeAws_restJson1AssignChannelCommand
|
|
50
|
+
*/
|
|
51
|
+
export declare const se_AssignChannelCommand: (input: AssignChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
47
52
|
/**
|
|
48
53
|
* serializeAws_restJson1CreateGroupChannelCommand
|
|
49
54
|
*/
|
|
@@ -188,6 +193,10 @@ export declare const de_AddChannelMemberCommand: (output: __HttpResponse, contex
|
|
|
188
193
|
* deserializeAws_restJson1AddChannelMembersCommand
|
|
189
194
|
*/
|
|
190
195
|
export declare const de_AddChannelMembersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AddChannelMembersCommandOutput>;
|
|
196
|
+
/**
|
|
197
|
+
* deserializeAws_restJson1AssignChannelCommand
|
|
198
|
+
*/
|
|
199
|
+
export declare const de_AssignChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AssignChannelCommandOutput>;
|
|
191
200
|
/**
|
|
192
201
|
* deserializeAws_restJson1CreateGroupChannelCommand
|
|
193
202
|
*/
|
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.47",
|
|
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",
|