@aws-sdk/client-connectparticipant 3.180.0 → 3.183.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/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +14 -8
- package/dist-es/ConnectParticipant.js +34 -41
- package/dist-es/ConnectParticipantClient.js +23 -29
- package/dist-es/commands/CompleteAttachmentUploadCommand.js +21 -28
- package/dist-es/commands/CreateParticipantConnectionCommand.js +21 -28
- package/dist-es/commands/DisconnectParticipantCommand.js +21 -28
- package/dist-es/commands/GetAttachmentCommand.js +21 -28
- package/dist-es/commands/GetTranscriptCommand.js +21 -28
- package/dist-es/commands/SendEventCommand.js +21 -28
- package/dist-es/commands/SendMessageCommand.js +21 -28
- package/dist-es/commands/StartAttachmentUploadCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ConnectParticipantServiceException.js +5 -10
- package/dist-es/models/models_0.js +138 -95
- package/dist-es/pagination/GetTranscriptPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +656 -889
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-connectparticipant
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-connectparticipant
|
|
@@ -219,7 +219,7 @@ exports.deserializeAws_restJson1CompleteAttachmentUploadCommand = deserializeAws
|
|
|
219
219
|
const deserializeAws_restJson1CompleteAttachmentUploadCommandError = async (output, context) => {
|
|
220
220
|
const parsedOutput = {
|
|
221
221
|
...output,
|
|
222
|
-
body: await
|
|
222
|
+
body: await parseErrorBody(output.body, context),
|
|
223
223
|
};
|
|
224
224
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
225
225
|
switch (errorCode) {
|
|
@@ -271,7 +271,7 @@ exports.deserializeAws_restJson1CreateParticipantConnectionCommand = deserialize
|
|
|
271
271
|
const deserializeAws_restJson1CreateParticipantConnectionCommandError = async (output, context) => {
|
|
272
272
|
const parsedOutput = {
|
|
273
273
|
...output,
|
|
274
|
-
body: await
|
|
274
|
+
body: await parseErrorBody(output.body, context),
|
|
275
275
|
};
|
|
276
276
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
277
277
|
switch (errorCode) {
|
|
@@ -311,7 +311,7 @@ exports.deserializeAws_restJson1DisconnectParticipantCommand = deserializeAws_re
|
|
|
311
311
|
const deserializeAws_restJson1DisconnectParticipantCommandError = async (output, context) => {
|
|
312
312
|
const parsedOutput = {
|
|
313
313
|
...output,
|
|
314
|
-
body: await
|
|
314
|
+
body: await parseErrorBody(output.body, context),
|
|
315
315
|
};
|
|
316
316
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
317
317
|
switch (errorCode) {
|
|
@@ -357,7 +357,7 @@ exports.deserializeAws_restJson1GetAttachmentCommand = deserializeAws_restJson1G
|
|
|
357
357
|
const deserializeAws_restJson1GetAttachmentCommandError = async (output, context) => {
|
|
358
358
|
const parsedOutput = {
|
|
359
359
|
...output,
|
|
360
|
-
body: await
|
|
360
|
+
body: await parseErrorBody(output.body, context),
|
|
361
361
|
};
|
|
362
362
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
363
363
|
switch (errorCode) {
|
|
@@ -406,7 +406,7 @@ exports.deserializeAws_restJson1GetTranscriptCommand = deserializeAws_restJson1G
|
|
|
406
406
|
const deserializeAws_restJson1GetTranscriptCommandError = async (output, context) => {
|
|
407
407
|
const parsedOutput = {
|
|
408
408
|
...output,
|
|
409
|
-
body: await
|
|
409
|
+
body: await parseErrorBody(output.body, context),
|
|
410
410
|
};
|
|
411
411
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
412
412
|
switch (errorCode) {
|
|
@@ -452,7 +452,7 @@ exports.deserializeAws_restJson1SendEventCommand = deserializeAws_restJson1SendE
|
|
|
452
452
|
const deserializeAws_restJson1SendEventCommandError = async (output, context) => {
|
|
453
453
|
const parsedOutput = {
|
|
454
454
|
...output,
|
|
455
|
-
body: await
|
|
455
|
+
body: await parseErrorBody(output.body, context),
|
|
456
456
|
};
|
|
457
457
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
458
458
|
switch (errorCode) {
|
|
@@ -498,7 +498,7 @@ exports.deserializeAws_restJson1SendMessageCommand = deserializeAws_restJson1Sen
|
|
|
498
498
|
const deserializeAws_restJson1SendMessageCommandError = async (output, context) => {
|
|
499
499
|
const parsedOutput = {
|
|
500
500
|
...output,
|
|
501
|
-
body: await
|
|
501
|
+
body: await parseErrorBody(output.body, context),
|
|
502
502
|
};
|
|
503
503
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
504
504
|
switch (errorCode) {
|
|
@@ -544,7 +544,7 @@ exports.deserializeAws_restJson1StartAttachmentUploadCommand = deserializeAws_re
|
|
|
544
544
|
const deserializeAws_restJson1StartAttachmentUploadCommandError = async (output, context) => {
|
|
545
545
|
const parsedOutput = {
|
|
546
546
|
...output,
|
|
547
|
-
body: await
|
|
547
|
+
body: await parseErrorBody(output.body, context),
|
|
548
548
|
};
|
|
549
549
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
550
550
|
switch (errorCode) {
|
|
@@ -769,6 +769,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
769
769
|
}
|
|
770
770
|
return {};
|
|
771
771
|
});
|
|
772
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
773
|
+
var _a;
|
|
774
|
+
const value = await parseBody(errorBody, context);
|
|
775
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
776
|
+
return value;
|
|
777
|
+
};
|
|
772
778
|
const loadRestJsonErrorCode = (output, data) => {
|
|
773
779
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
774
780
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { CompleteAttachmentUploadCommand, } from "./commands/CompleteAttachmentUploadCommand";
|
|
3
2
|
import { CreateParticipantConnectionCommand, } from "./commands/CreateParticipantConnectionCommand";
|
|
4
3
|
import { DisconnectParticipantCommand, } from "./commands/DisconnectParticipantCommand";
|
|
@@ -8,123 +7,117 @@ import { SendEventCommand } from "./commands/SendEventCommand";
|
|
|
8
7
|
import { SendMessageCommand } from "./commands/SendMessageCommand";
|
|
9
8
|
import { StartAttachmentUploadCommand, } from "./commands/StartAttachmentUploadCommand";
|
|
10
9
|
import { ConnectParticipantClient } from "./ConnectParticipantClient";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
15
|
-
}
|
|
16
|
-
ConnectParticipant.prototype.completeAttachmentUpload = function (args, optionsOrCb, cb) {
|
|
17
|
-
var command = new CompleteAttachmentUploadCommand(args);
|
|
10
|
+
export class ConnectParticipant extends ConnectParticipantClient {
|
|
11
|
+
completeAttachmentUpload(args, optionsOrCb, cb) {
|
|
12
|
+
const command = new CompleteAttachmentUploadCommand(args);
|
|
18
13
|
if (typeof optionsOrCb === "function") {
|
|
19
14
|
this.send(command, optionsOrCb);
|
|
20
15
|
}
|
|
21
16
|
else if (typeof cb === "function") {
|
|
22
17
|
if (typeof optionsOrCb !== "object")
|
|
23
|
-
throw new Error(
|
|
18
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
24
19
|
this.send(command, optionsOrCb || {}, cb);
|
|
25
20
|
}
|
|
26
21
|
else {
|
|
27
22
|
return this.send(command, optionsOrCb);
|
|
28
23
|
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
}
|
|
25
|
+
createParticipantConnection(args, optionsOrCb, cb) {
|
|
26
|
+
const command = new CreateParticipantConnectionCommand(args);
|
|
32
27
|
if (typeof optionsOrCb === "function") {
|
|
33
28
|
this.send(command, optionsOrCb);
|
|
34
29
|
}
|
|
35
30
|
else if (typeof cb === "function") {
|
|
36
31
|
if (typeof optionsOrCb !== "object")
|
|
37
|
-
throw new Error(
|
|
32
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
38
33
|
this.send(command, optionsOrCb || {}, cb);
|
|
39
34
|
}
|
|
40
35
|
else {
|
|
41
36
|
return this.send(command, optionsOrCb);
|
|
42
37
|
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
}
|
|
39
|
+
disconnectParticipant(args, optionsOrCb, cb) {
|
|
40
|
+
const command = new DisconnectParticipantCommand(args);
|
|
46
41
|
if (typeof optionsOrCb === "function") {
|
|
47
42
|
this.send(command, optionsOrCb);
|
|
48
43
|
}
|
|
49
44
|
else if (typeof cb === "function") {
|
|
50
45
|
if (typeof optionsOrCb !== "object")
|
|
51
|
-
throw new Error(
|
|
46
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
52
47
|
this.send(command, optionsOrCb || {}, cb);
|
|
53
48
|
}
|
|
54
49
|
else {
|
|
55
50
|
return this.send(command, optionsOrCb);
|
|
56
51
|
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|
|
52
|
+
}
|
|
53
|
+
getAttachment(args, optionsOrCb, cb) {
|
|
54
|
+
const command = new GetAttachmentCommand(args);
|
|
60
55
|
if (typeof optionsOrCb === "function") {
|
|
61
56
|
this.send(command, optionsOrCb);
|
|
62
57
|
}
|
|
63
58
|
else if (typeof cb === "function") {
|
|
64
59
|
if (typeof optionsOrCb !== "object")
|
|
65
|
-
throw new Error(
|
|
60
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
66
61
|
this.send(command, optionsOrCb || {}, cb);
|
|
67
62
|
}
|
|
68
63
|
else {
|
|
69
64
|
return this.send(command, optionsOrCb);
|
|
70
65
|
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
66
|
+
}
|
|
67
|
+
getTranscript(args, optionsOrCb, cb) {
|
|
68
|
+
const command = new GetTranscriptCommand(args);
|
|
74
69
|
if (typeof optionsOrCb === "function") {
|
|
75
70
|
this.send(command, optionsOrCb);
|
|
76
71
|
}
|
|
77
72
|
else if (typeof cb === "function") {
|
|
78
73
|
if (typeof optionsOrCb !== "object")
|
|
79
|
-
throw new Error(
|
|
74
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
80
75
|
this.send(command, optionsOrCb || {}, cb);
|
|
81
76
|
}
|
|
82
77
|
else {
|
|
83
78
|
return this.send(command, optionsOrCb);
|
|
84
79
|
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
}
|
|
81
|
+
sendEvent(args, optionsOrCb, cb) {
|
|
82
|
+
const command = new SendEventCommand(args);
|
|
88
83
|
if (typeof optionsOrCb === "function") {
|
|
89
84
|
this.send(command, optionsOrCb);
|
|
90
85
|
}
|
|
91
86
|
else if (typeof cb === "function") {
|
|
92
87
|
if (typeof optionsOrCb !== "object")
|
|
93
|
-
throw new Error(
|
|
88
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
94
89
|
this.send(command, optionsOrCb || {}, cb);
|
|
95
90
|
}
|
|
96
91
|
else {
|
|
97
92
|
return this.send(command, optionsOrCb);
|
|
98
93
|
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
94
|
+
}
|
|
95
|
+
sendMessage(args, optionsOrCb, cb) {
|
|
96
|
+
const command = new SendMessageCommand(args);
|
|
102
97
|
if (typeof optionsOrCb === "function") {
|
|
103
98
|
this.send(command, optionsOrCb);
|
|
104
99
|
}
|
|
105
100
|
else if (typeof cb === "function") {
|
|
106
101
|
if (typeof optionsOrCb !== "object")
|
|
107
|
-
throw new Error(
|
|
102
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
108
103
|
this.send(command, optionsOrCb || {}, cb);
|
|
109
104
|
}
|
|
110
105
|
else {
|
|
111
106
|
return this.send(command, optionsOrCb);
|
|
112
107
|
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
108
|
+
}
|
|
109
|
+
startAttachmentUpload(args, optionsOrCb, cb) {
|
|
110
|
+
const command = new StartAttachmentUploadCommand(args);
|
|
116
111
|
if (typeof optionsOrCb === "function") {
|
|
117
112
|
this.send(command, optionsOrCb);
|
|
118
113
|
}
|
|
119
114
|
else if (typeof cb === "function") {
|
|
120
115
|
if (typeof optionsOrCb !== "object")
|
|
121
|
-
throw new Error(
|
|
116
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
122
117
|
this.send(command, optionsOrCb || {}, cb);
|
|
123
118
|
}
|
|
124
119
|
else {
|
|
125
120
|
return this.send(command, optionsOrCb);
|
|
126
121
|
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
}(ConnectParticipantClient));
|
|
130
|
-
export { ConnectParticipant };
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,32 +8,27 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
_this.middlewareStack.use(getOmitRetryHeadersPlugin(_this.config));
|
|
33
|
-
return _this;
|
|
11
|
+
export class ConnectParticipantClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
29
|
+
this.middlewareStack.use(getOmitRetryHeadersPlugin(this.config));
|
|
34
30
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
}(__Client));
|
|
40
|
-
export { ConnectParticipantClient };
|
|
31
|
+
destroy() {
|
|
32
|
+
super.destroy();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { CompleteAttachmentUploadRequestFilterSensitiveLog, CompleteAttachmentUploadResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1CompleteAttachmentUploadCommand, serializeAws_restJson1CompleteAttachmentUploadCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class CompleteAttachmentUploadCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "ConnectParticipantClient";
|
|
15
|
+
const commandName = "CompleteAttachmentUploadCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: CompleteAttachmentUploadRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: CompleteAttachmentUploadResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
CompleteAttachmentUploadCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1CompleteAttachmentUploadCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1CompleteAttachmentUploadCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { CompleteAttachmentUploadCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { CreateParticipantConnectionRequestFilterSensitiveLog, CreateParticipantConnectionResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1CreateParticipantConnectionCommand, serializeAws_restJson1CreateParticipantConnectionCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class CreateParticipantConnectionCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "ConnectParticipantClient";
|
|
15
|
+
const commandName = "CreateParticipantConnectionCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: CreateParticipantConnectionRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: CreateParticipantConnectionResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
CreateParticipantConnectionCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1CreateParticipantConnectionCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1CreateParticipantConnectionCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { CreateParticipantConnectionCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { DisconnectParticipantRequestFilterSensitiveLog, DisconnectParticipantResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1DisconnectParticipantCommand, serializeAws_restJson1DisconnectParticipantCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class DisconnectParticipantCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "ConnectParticipantClient";
|
|
15
|
+
const commandName = "DisconnectParticipantCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: DisconnectParticipantRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: DisconnectParticipantResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
DisconnectParticipantCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1DisconnectParticipantCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1DisconnectParticipantCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { DisconnectParticipantCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { GetAttachmentRequestFilterSensitiveLog, GetAttachmentResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_restJson1GetAttachmentCommand, serializeAws_restJson1GetAttachmentCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class GetAttachmentCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "ConnectParticipantClient";
|
|
15
|
+
const commandName = "GetAttachmentCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: GetAttachmentRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: GetAttachmentResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
GetAttachmentCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_restJson1GetAttachmentCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_restJson1GetAttachmentCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { GetAttachmentCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|