@aws-sdk/client-connectparticipant 3.312.0 → 3.316.0
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/ConnectParticipant.js +12 -112
- package/dist-cjs/protocols/Aws_restJson1.js +124 -253
- package/dist-es/ConnectParticipant.js +12 -112
- package/dist-es/protocols/Aws_restJson1.js +103 -232
- package/dist-types/ConnectParticipant.d.ts +23 -117
- package/dist-types/ts3.4/ConnectParticipant.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConnectParticipant = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CompleteAttachmentUploadCommand_1 = require("./commands/CompleteAttachmentUploadCommand");
|
|
5
6
|
const CreateParticipantConnectionCommand_1 = require("./commands/CreateParticipantConnectionCommand");
|
|
6
7
|
const DisconnectParticipantCommand_1 = require("./commands/DisconnectParticipantCommand");
|
|
@@ -10,118 +11,17 @@ const SendEventCommand_1 = require("./commands/SendEventCommand");
|
|
|
10
11
|
const SendMessageCommand_1 = require("./commands/SendMessageCommand");
|
|
11
12
|
const StartAttachmentUploadCommand_1 = require("./commands/StartAttachmentUploadCommand");
|
|
12
13
|
const ConnectParticipantClient_1 = require("./ConnectParticipantClient");
|
|
14
|
+
const commands = {
|
|
15
|
+
CompleteAttachmentUploadCommand: CompleteAttachmentUploadCommand_1.CompleteAttachmentUploadCommand,
|
|
16
|
+
CreateParticipantConnectionCommand: CreateParticipantConnectionCommand_1.CreateParticipantConnectionCommand,
|
|
17
|
+
DisconnectParticipantCommand: DisconnectParticipantCommand_1.DisconnectParticipantCommand,
|
|
18
|
+
GetAttachmentCommand: GetAttachmentCommand_1.GetAttachmentCommand,
|
|
19
|
+
GetTranscriptCommand: GetTranscriptCommand_1.GetTranscriptCommand,
|
|
20
|
+
SendEventCommand: SendEventCommand_1.SendEventCommand,
|
|
21
|
+
SendMessageCommand: SendMessageCommand_1.SendMessageCommand,
|
|
22
|
+
StartAttachmentUploadCommand: StartAttachmentUploadCommand_1.StartAttachmentUploadCommand,
|
|
23
|
+
};
|
|
13
24
|
class ConnectParticipant extends ConnectParticipantClient_1.ConnectParticipantClient {
|
|
14
|
-
completeAttachmentUpload(args, optionsOrCb, cb) {
|
|
15
|
-
const command = new CompleteAttachmentUploadCommand_1.CompleteAttachmentUploadCommand(args);
|
|
16
|
-
if (typeof optionsOrCb === "function") {
|
|
17
|
-
this.send(command, optionsOrCb);
|
|
18
|
-
}
|
|
19
|
-
else if (typeof cb === "function") {
|
|
20
|
-
if (typeof optionsOrCb !== "object")
|
|
21
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
22
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
return this.send(command, optionsOrCb);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
createParticipantConnection(args, optionsOrCb, cb) {
|
|
29
|
-
const command = new CreateParticipantConnectionCommand_1.CreateParticipantConnectionCommand(args);
|
|
30
|
-
if (typeof optionsOrCb === "function") {
|
|
31
|
-
this.send(command, optionsOrCb);
|
|
32
|
-
}
|
|
33
|
-
else if (typeof cb === "function") {
|
|
34
|
-
if (typeof optionsOrCb !== "object")
|
|
35
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
36
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return this.send(command, optionsOrCb);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
disconnectParticipant(args, optionsOrCb, cb) {
|
|
43
|
-
const command = new DisconnectParticipantCommand_1.DisconnectParticipantCommand(args);
|
|
44
|
-
if (typeof optionsOrCb === "function") {
|
|
45
|
-
this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
else if (typeof cb === "function") {
|
|
48
|
-
if (typeof optionsOrCb !== "object")
|
|
49
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
50
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return this.send(command, optionsOrCb);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
getAttachment(args, optionsOrCb, cb) {
|
|
57
|
-
const command = new GetAttachmentCommand_1.GetAttachmentCommand(args);
|
|
58
|
-
if (typeof optionsOrCb === "function") {
|
|
59
|
-
this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
else if (typeof cb === "function") {
|
|
62
|
-
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
64
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
return this.send(command, optionsOrCb);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
getTranscript(args, optionsOrCb, cb) {
|
|
71
|
-
const command = new GetTranscriptCommand_1.GetTranscriptCommand(args);
|
|
72
|
-
if (typeof optionsOrCb === "function") {
|
|
73
|
-
this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
else if (typeof cb === "function") {
|
|
76
|
-
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
78
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
return this.send(command, optionsOrCb);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
sendEvent(args, optionsOrCb, cb) {
|
|
85
|
-
const command = new SendEventCommand_1.SendEventCommand(args);
|
|
86
|
-
if (typeof optionsOrCb === "function") {
|
|
87
|
-
this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
else if (typeof cb === "function") {
|
|
90
|
-
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
92
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
return this.send(command, optionsOrCb);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
sendMessage(args, optionsOrCb, cb) {
|
|
99
|
-
const command = new SendMessageCommand_1.SendMessageCommand(args);
|
|
100
|
-
if (typeof optionsOrCb === "function") {
|
|
101
|
-
this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
else if (typeof cb === "function") {
|
|
104
|
-
if (typeof optionsOrCb !== "object")
|
|
105
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
106
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
return this.send(command, optionsOrCb);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
startAttachmentUpload(args, optionsOrCb, cb) {
|
|
113
|
-
const command = new StartAttachmentUploadCommand_1.StartAttachmentUploadCommand(args);
|
|
114
|
-
if (typeof optionsOrCb === "function") {
|
|
115
|
-
this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
else if (typeof cb === "function") {
|
|
118
|
-
if (typeof optionsOrCb !== "object")
|
|
119
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
120
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
return this.send(command, optionsOrCb);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
25
|
}
|
|
127
26
|
exports.ConnectParticipant = ConnectParticipant;
|
|
27
|
+
(0, smithy_client_1.createAggregatedClient)(commands, ConnectParticipant);
|