@aws-sdk/client-ivschat 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 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-ivschat
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-ivschat
@@ -310,7 +310,7 @@ exports.deserializeAws_restJson1CreateChatTokenCommand = deserializeAws_restJson
310
310
  const deserializeAws_restJson1CreateChatTokenCommandError = async (output, context) => {
311
311
  const parsedOutput = {
312
312
  ...output,
313
- body: await parseBody(output.body, context),
313
+ body: await parseErrorBody(output.body, context),
314
314
  };
315
315
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
316
316
  switch (errorCode) {
@@ -377,7 +377,7 @@ exports.deserializeAws_restJson1CreateRoomCommand = deserializeAws_restJson1Crea
377
377
  const deserializeAws_restJson1CreateRoomCommandError = async (output, context) => {
378
378
  const parsedOutput = {
379
379
  ...output,
380
- body: await parseBody(output.body, context),
380
+ body: await parseErrorBody(output.body, context),
381
381
  };
382
382
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
383
383
  switch (errorCode) {
@@ -426,7 +426,7 @@ exports.deserializeAws_restJson1DeleteMessageCommand = deserializeAws_restJson1D
426
426
  const deserializeAws_restJson1DeleteMessageCommandError = async (output, context) => {
427
427
  const parsedOutput = {
428
428
  ...output,
429
- body: await parseBody(output.body, context),
429
+ body: await parseErrorBody(output.body, context),
430
430
  };
431
431
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
432
432
  switch (errorCode) {
@@ -466,7 +466,7 @@ exports.deserializeAws_restJson1DeleteRoomCommand = deserializeAws_restJson1Dele
466
466
  const deserializeAws_restJson1DeleteRoomCommandError = async (output, context) => {
467
467
  const parsedOutput = {
468
468
  ...output,
469
- body: await parseBody(output.body, context),
469
+ body: await parseErrorBody(output.body, context),
470
470
  };
471
471
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
472
472
  switch (errorCode) {
@@ -506,7 +506,7 @@ exports.deserializeAws_restJson1DisconnectUserCommand = deserializeAws_restJson1
506
506
  const deserializeAws_restJson1DisconnectUserCommandError = async (output, context) => {
507
507
  const parsedOutput = {
508
508
  ...output,
509
- body: await parseBody(output.body, context),
509
+ body: await parseErrorBody(output.body, context),
510
510
  };
511
511
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
512
512
  switch (errorCode) {
@@ -573,7 +573,7 @@ exports.deserializeAws_restJson1GetRoomCommand = deserializeAws_restJson1GetRoom
573
573
  const deserializeAws_restJson1GetRoomCommandError = async (output, context) => {
574
574
  const parsedOutput = {
575
575
  ...output,
576
- body: await parseBody(output.body, context),
576
+ body: await parseErrorBody(output.body, context),
577
577
  };
578
578
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
579
579
  switch (errorCode) {
@@ -616,7 +616,7 @@ exports.deserializeAws_restJson1ListRoomsCommand = deserializeAws_restJson1ListR
616
616
  const deserializeAws_restJson1ListRoomsCommandError = async (output, context) => {
617
617
  const parsedOutput = {
618
618
  ...output,
619
- body: await parseBody(output.body, context),
619
+ body: await parseErrorBody(output.body, context),
620
620
  };
621
621
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
622
622
  switch (errorCode) {
@@ -656,7 +656,7 @@ exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_rest
656
656
  const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
657
657
  const parsedOutput = {
658
658
  ...output,
659
- body: await parseBody(output.body, context),
659
+ body: await parseErrorBody(output.body, context),
660
660
  };
661
661
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
662
662
  switch (errorCode) {
@@ -696,7 +696,7 @@ exports.deserializeAws_restJson1SendEventCommand = deserializeAws_restJson1SendE
696
696
  const deserializeAws_restJson1SendEventCommandError = async (output, context) => {
697
697
  const parsedOutput = {
698
698
  ...output,
699
- body: await parseBody(output.body, context),
699
+ body: await parseErrorBody(output.body, context),
700
700
  };
701
701
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
702
702
  switch (errorCode) {
@@ -736,7 +736,7 @@ exports.deserializeAws_restJson1TagResourceCommand = deserializeAws_restJson1Tag
736
736
  const deserializeAws_restJson1TagResourceCommandError = async (output, context) => {
737
737
  const parsedOutput = {
738
738
  ...output,
739
- body: await parseBody(output.body, context),
739
+ body: await parseErrorBody(output.body, context),
740
740
  };
741
741
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
742
742
  switch (errorCode) {
@@ -773,7 +773,7 @@ exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1U
773
773
  const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
774
774
  const parsedOutput = {
775
775
  ...output,
776
- body: await parseBody(output.body, context),
776
+ body: await parseErrorBody(output.body, context),
777
777
  };
778
778
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
779
779
  switch (errorCode) {
@@ -837,7 +837,7 @@ exports.deserializeAws_restJson1UpdateRoomCommand = deserializeAws_restJson1Upda
837
837
  const deserializeAws_restJson1UpdateRoomCommandError = async (output, context) => {
838
838
  const parsedOutput = {
839
839
  ...output,
840
- body: await parseBody(output.body, context),
840
+ body: await parseErrorBody(output.body, context),
841
841
  };
842
842
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
843
843
  switch (errorCode) {
@@ -1127,6 +1127,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
1127
1127
  }
1128
1128
  return {};
1129
1129
  });
1130
+ const parseErrorBody = async (errorBody, context) => {
1131
+ var _a;
1132
+ const value = await parseBody(errorBody, context);
1133
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
1134
+ return value;
1135
+ };
1130
1136
  const loadRestJsonErrorCode = (output, data) => {
1131
1137
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1132
1138
  const sanitizeErrorCode = (rawValue) => {
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { CreateChatTokenCommand, } from "./commands/CreateChatTokenCommand";
3
2
  import { CreateRoomCommand } from "./commands/CreateRoomCommand";
4
3
  import { DeleteMessageCommand, } from "./commands/DeleteMessageCommand";
@@ -12,179 +11,173 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
12
11
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
13
12
  import { UpdateRoomCommand } from "./commands/UpdateRoomCommand";
14
13
  import { IvschatClient } from "./IvschatClient";
15
- var Ivschat = (function (_super) {
16
- __extends(Ivschat, _super);
17
- function Ivschat() {
18
- return _super !== null && _super.apply(this, arguments) || this;
19
- }
20
- Ivschat.prototype.createChatToken = function (args, optionsOrCb, cb) {
21
- var command = new CreateChatTokenCommand(args);
14
+ export class Ivschat extends IvschatClient {
15
+ createChatToken(args, optionsOrCb, cb) {
16
+ const command = new CreateChatTokenCommand(args);
22
17
  if (typeof optionsOrCb === "function") {
23
18
  this.send(command, optionsOrCb);
24
19
  }
25
20
  else if (typeof cb === "function") {
26
21
  if (typeof optionsOrCb !== "object")
27
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
22
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
28
23
  this.send(command, optionsOrCb || {}, cb);
29
24
  }
30
25
  else {
31
26
  return this.send(command, optionsOrCb);
32
27
  }
33
- };
34
- Ivschat.prototype.createRoom = function (args, optionsOrCb, cb) {
35
- var command = new CreateRoomCommand(args);
28
+ }
29
+ createRoom(args, optionsOrCb, cb) {
30
+ const command = new CreateRoomCommand(args);
36
31
  if (typeof optionsOrCb === "function") {
37
32
  this.send(command, optionsOrCb);
38
33
  }
39
34
  else if (typeof cb === "function") {
40
35
  if (typeof optionsOrCb !== "object")
41
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
36
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
42
37
  this.send(command, optionsOrCb || {}, cb);
43
38
  }
44
39
  else {
45
40
  return this.send(command, optionsOrCb);
46
41
  }
47
- };
48
- Ivschat.prototype.deleteMessage = function (args, optionsOrCb, cb) {
49
- var command = new DeleteMessageCommand(args);
42
+ }
43
+ deleteMessage(args, optionsOrCb, cb) {
44
+ const command = new DeleteMessageCommand(args);
50
45
  if (typeof optionsOrCb === "function") {
51
46
  this.send(command, optionsOrCb);
52
47
  }
53
48
  else if (typeof cb === "function") {
54
49
  if (typeof optionsOrCb !== "object")
55
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
50
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
56
51
  this.send(command, optionsOrCb || {}, cb);
57
52
  }
58
53
  else {
59
54
  return this.send(command, optionsOrCb);
60
55
  }
61
- };
62
- Ivschat.prototype.deleteRoom = function (args, optionsOrCb, cb) {
63
- var command = new DeleteRoomCommand(args);
56
+ }
57
+ deleteRoom(args, optionsOrCb, cb) {
58
+ const command = new DeleteRoomCommand(args);
64
59
  if (typeof optionsOrCb === "function") {
65
60
  this.send(command, optionsOrCb);
66
61
  }
67
62
  else if (typeof cb === "function") {
68
63
  if (typeof optionsOrCb !== "object")
69
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
64
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
70
65
  this.send(command, optionsOrCb || {}, cb);
71
66
  }
72
67
  else {
73
68
  return this.send(command, optionsOrCb);
74
69
  }
75
- };
76
- Ivschat.prototype.disconnectUser = function (args, optionsOrCb, cb) {
77
- var command = new DisconnectUserCommand(args);
70
+ }
71
+ disconnectUser(args, optionsOrCb, cb) {
72
+ const command = new DisconnectUserCommand(args);
78
73
  if (typeof optionsOrCb === "function") {
79
74
  this.send(command, optionsOrCb);
80
75
  }
81
76
  else if (typeof cb === "function") {
82
77
  if (typeof optionsOrCb !== "object")
83
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
78
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
84
79
  this.send(command, optionsOrCb || {}, cb);
85
80
  }
86
81
  else {
87
82
  return this.send(command, optionsOrCb);
88
83
  }
89
- };
90
- Ivschat.prototype.getRoom = function (args, optionsOrCb, cb) {
91
- var command = new GetRoomCommand(args);
84
+ }
85
+ getRoom(args, optionsOrCb, cb) {
86
+ const command = new GetRoomCommand(args);
92
87
  if (typeof optionsOrCb === "function") {
93
88
  this.send(command, optionsOrCb);
94
89
  }
95
90
  else if (typeof cb === "function") {
96
91
  if (typeof optionsOrCb !== "object")
97
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
92
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
98
93
  this.send(command, optionsOrCb || {}, cb);
99
94
  }
100
95
  else {
101
96
  return this.send(command, optionsOrCb);
102
97
  }
103
- };
104
- Ivschat.prototype.listRooms = function (args, optionsOrCb, cb) {
105
- var command = new ListRoomsCommand(args);
98
+ }
99
+ listRooms(args, optionsOrCb, cb) {
100
+ const command = new ListRoomsCommand(args);
106
101
  if (typeof optionsOrCb === "function") {
107
102
  this.send(command, optionsOrCb);
108
103
  }
109
104
  else if (typeof cb === "function") {
110
105
  if (typeof optionsOrCb !== "object")
111
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
106
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
112
107
  this.send(command, optionsOrCb || {}, cb);
113
108
  }
114
109
  else {
115
110
  return this.send(command, optionsOrCb);
116
111
  }
117
- };
118
- Ivschat.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
119
- var command = new ListTagsForResourceCommand(args);
112
+ }
113
+ listTagsForResource(args, optionsOrCb, cb) {
114
+ const command = new ListTagsForResourceCommand(args);
120
115
  if (typeof optionsOrCb === "function") {
121
116
  this.send(command, optionsOrCb);
122
117
  }
123
118
  else if (typeof cb === "function") {
124
119
  if (typeof optionsOrCb !== "object")
125
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
120
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
126
121
  this.send(command, optionsOrCb || {}, cb);
127
122
  }
128
123
  else {
129
124
  return this.send(command, optionsOrCb);
130
125
  }
131
- };
132
- Ivschat.prototype.sendEvent = function (args, optionsOrCb, cb) {
133
- var command = new SendEventCommand(args);
126
+ }
127
+ sendEvent(args, optionsOrCb, cb) {
128
+ const command = new SendEventCommand(args);
134
129
  if (typeof optionsOrCb === "function") {
135
130
  this.send(command, optionsOrCb);
136
131
  }
137
132
  else if (typeof cb === "function") {
138
133
  if (typeof optionsOrCb !== "object")
139
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
134
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
140
135
  this.send(command, optionsOrCb || {}, cb);
141
136
  }
142
137
  else {
143
138
  return this.send(command, optionsOrCb);
144
139
  }
145
- };
146
- Ivschat.prototype.tagResource = function (args, optionsOrCb, cb) {
147
- var command = new TagResourceCommand(args);
140
+ }
141
+ tagResource(args, optionsOrCb, cb) {
142
+ const command = new TagResourceCommand(args);
148
143
  if (typeof optionsOrCb === "function") {
149
144
  this.send(command, optionsOrCb);
150
145
  }
151
146
  else if (typeof cb === "function") {
152
147
  if (typeof optionsOrCb !== "object")
153
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
148
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
154
149
  this.send(command, optionsOrCb || {}, cb);
155
150
  }
156
151
  else {
157
152
  return this.send(command, optionsOrCb);
158
153
  }
159
- };
160
- Ivschat.prototype.untagResource = function (args, optionsOrCb, cb) {
161
- var command = new UntagResourceCommand(args);
154
+ }
155
+ untagResource(args, optionsOrCb, cb) {
156
+ const command = new UntagResourceCommand(args);
162
157
  if (typeof optionsOrCb === "function") {
163
158
  this.send(command, optionsOrCb);
164
159
  }
165
160
  else if (typeof cb === "function") {
166
161
  if (typeof optionsOrCb !== "object")
167
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
162
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
168
163
  this.send(command, optionsOrCb || {}, cb);
169
164
  }
170
165
  else {
171
166
  return this.send(command, optionsOrCb);
172
167
  }
173
- };
174
- Ivschat.prototype.updateRoom = function (args, optionsOrCb, cb) {
175
- var command = new UpdateRoomCommand(args);
168
+ }
169
+ updateRoom(args, optionsOrCb, cb) {
170
+ const command = new UpdateRoomCommand(args);
176
171
  if (typeof optionsOrCb === "function") {
177
172
  this.send(command, optionsOrCb);
178
173
  }
179
174
  else if (typeof cb === "function") {
180
175
  if (typeof optionsOrCb !== "object")
181
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
176
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
182
177
  this.send(command, optionsOrCb || {}, cb);
183
178
  }
184
179
  else {
185
180
  return this.send(command, optionsOrCb);
186
181
  }
187
- };
188
- return Ivschat;
189
- }(IvschatClient));
190
- export { Ivschat };
182
+ }
183
+ }
@@ -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,31 +8,26 @@ 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
- var IvschatClient = (function (_super) {
13
- __extends(IvschatClient, _super);
14
- function IvschatClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class IvschatClient 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));
33
29
  }
34
- IvschatClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return IvschatClient;
38
- }(__Client));
39
- export { IvschatClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -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 { CreateChatTokenRequestFilterSensitiveLog, CreateChatTokenResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateChatTokenCommand, serializeAws_restJson1CreateChatTokenCommand, } from "../protocols/Aws_restJson1";
6
- var CreateChatTokenCommand = (function (_super) {
7
- __extends(CreateChatTokenCommand, _super);
8
- function CreateChatTokenCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateChatTokenCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateChatTokenCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "IvschatClient";
18
- var commandName = "CreateChatTokenCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "IvschatClient";
15
+ const commandName = "CreateChatTokenCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateChatTokenRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateChatTokenResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateChatTokenCommand.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_restJson1CreateChatTokenCommand(input, context);
33
- };
34
- CreateChatTokenCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateChatTokenCommand(output, context);
36
- };
37
- return CreateChatTokenCommand;
38
- }($Command));
39
- export { CreateChatTokenCommand };
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 { CreateRoomRequestFilterSensitiveLog, CreateRoomResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateRoomCommand, serializeAws_restJson1CreateRoomCommand, } from "../protocols/Aws_restJson1";
6
- var CreateRoomCommand = (function (_super) {
7
- __extends(CreateRoomCommand, _super);
8
- function CreateRoomCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateRoomCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateRoomCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "IvschatClient";
18
- var commandName = "CreateRoomCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "IvschatClient";
15
+ const commandName = "CreateRoomCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateRoomRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateRoomResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateRoomCommand.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_restJson1CreateRoomCommand(input, context);
33
- };
34
- CreateRoomCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateRoomCommand(output, context);
36
- };
37
- return CreateRoomCommand;
38
- }($Command));
39
- export { CreateRoomCommand };
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 { DeleteMessageRequestFilterSensitiveLog, DeleteMessageResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteMessageCommand, serializeAws_restJson1DeleteMessageCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteMessageCommand = (function (_super) {
7
- __extends(DeleteMessageCommand, _super);
8
- function DeleteMessageCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteMessageCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteMessageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "IvschatClient";
18
- var commandName = "DeleteMessageCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "IvschatClient";
15
+ const commandName = "DeleteMessageCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteMessageRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteMessageResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteMessageCommand.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_restJson1DeleteMessageCommand(input, context);
33
- };
34
- DeleteMessageCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteMessageCommand(output, context);
36
- };
37
- return DeleteMessageCommand;
38
- }($Command));
39
- export { DeleteMessageCommand };
31
+ }
32
+ }