@aws-sdk/client-workmailmessageflow 3.141.0 → 3.150.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 +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +27 -51
- package/dist-es/protocols/Aws_restJson1.js +36 -54
- package/package.json +11 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.150.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.149.0...v3.150.0) (2022-08-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-workmailmessageflow
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.145.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.144.0...v3.145.0) (2022-08-08)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-workmailmessageflow
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -9,16 +9,7 @@ const serializeAws_restJson1GetRawMessageContentCommand = async (input, context)
|
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {};
|
|
11
11
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/messages/{messageId}";
|
|
12
|
-
|
|
13
|
-
const labelValue = input.messageId;
|
|
14
|
-
if (labelValue.length <= 0) {
|
|
15
|
-
throw new Error("Empty value provided for input HTTP label: messageId.");
|
|
16
|
-
}
|
|
17
|
-
resolvedPath = resolvedPath.replace("{messageId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("No value provided for input HTTP label: messageId.");
|
|
21
|
-
}
|
|
12
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "messageId", () => input.messageId, "{messageId}", false);
|
|
22
13
|
let body;
|
|
23
14
|
return new protocol_http_1.HttpRequest({
|
|
24
15
|
protocol,
|
|
@@ -37,16 +28,7 @@ const serializeAws_restJson1PutRawMessageContentCommand = async (input, context)
|
|
|
37
28
|
"content-type": "application/json",
|
|
38
29
|
};
|
|
39
30
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/messages/{messageId}";
|
|
40
|
-
|
|
41
|
-
const labelValue = input.messageId;
|
|
42
|
-
if (labelValue.length <= 0) {
|
|
43
|
-
throw new Error("Empty value provided for input HTTP label: messageId.");
|
|
44
|
-
}
|
|
45
|
-
resolvedPath = resolvedPath.replace("{messageId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
throw new Error("No value provided for input HTTP label: messageId.");
|
|
49
|
-
}
|
|
31
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "messageId", () => input.messageId, "{messageId}", false);
|
|
50
32
|
let body;
|
|
51
33
|
body = JSON.stringify({
|
|
52
34
|
...(input.content != null && { content: serializeAws_restJson1RawMessageContent(input.content, context) }),
|
|
@@ -66,13 +48,12 @@ const deserializeAws_restJson1GetRawMessageContentCommand = async (output, conte
|
|
|
66
48
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
67
49
|
return deserializeAws_restJson1GetRawMessageContentCommandError(output, context);
|
|
68
50
|
}
|
|
69
|
-
const contents = {
|
|
51
|
+
const contents = map({
|
|
70
52
|
$metadata: deserializeMetadata(output),
|
|
71
|
-
|
|
72
|
-
};
|
|
53
|
+
});
|
|
73
54
|
const data = output.body;
|
|
74
55
|
contents.messageContent = data;
|
|
75
|
-
return
|
|
56
|
+
return contents;
|
|
76
57
|
};
|
|
77
58
|
exports.deserializeAws_restJson1GetRawMessageContentCommand = deserializeAws_restJson1GetRawMessageContentCommand;
|
|
78
59
|
const deserializeAws_restJson1GetRawMessageContentCommandError = async (output, context) => {
|
|
@@ -80,7 +61,6 @@ const deserializeAws_restJson1GetRawMessageContentCommandError = async (output,
|
|
|
80
61
|
...output,
|
|
81
62
|
body: await parseBody(output.body, context),
|
|
82
63
|
};
|
|
83
|
-
let response;
|
|
84
64
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
85
65
|
switch (errorCode) {
|
|
86
66
|
case "ResourceNotFoundException":
|
|
@@ -88,25 +68,23 @@ const deserializeAws_restJson1GetRawMessageContentCommandError = async (output,
|
|
|
88
68
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
89
69
|
default:
|
|
90
70
|
const parsedBody = parsedOutput.body;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
$metadata,
|
|
71
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
72
|
+
output,
|
|
73
|
+
parsedBody,
|
|
74
|
+
exceptionCtor: WorkMailMessageFlowServiceException_1.WorkMailMessageFlowServiceException,
|
|
75
|
+
errorCode,
|
|
97
76
|
});
|
|
98
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
99
77
|
}
|
|
100
78
|
};
|
|
101
79
|
const deserializeAws_restJson1PutRawMessageContentCommand = async (output, context) => {
|
|
102
80
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
103
81
|
return deserializeAws_restJson1PutRawMessageContentCommandError(output, context);
|
|
104
82
|
}
|
|
105
|
-
const contents = {
|
|
83
|
+
const contents = map({
|
|
106
84
|
$metadata: deserializeMetadata(output),
|
|
107
|
-
};
|
|
85
|
+
});
|
|
108
86
|
await collectBody(output.body, context);
|
|
109
|
-
return
|
|
87
|
+
return contents;
|
|
110
88
|
};
|
|
111
89
|
exports.deserializeAws_restJson1PutRawMessageContentCommand = deserializeAws_restJson1PutRawMessageContentCommand;
|
|
112
90
|
const deserializeAws_restJson1PutRawMessageContentCommandError = async (output, context) => {
|
|
@@ -114,7 +92,6 @@ const deserializeAws_restJson1PutRawMessageContentCommandError = async (output,
|
|
|
114
92
|
...output,
|
|
115
93
|
body: await parseBody(output.body, context),
|
|
116
94
|
};
|
|
117
|
-
let response;
|
|
118
95
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
119
96
|
switch (errorCode) {
|
|
120
97
|
case "InvalidContentLocation":
|
|
@@ -131,20 +108,19 @@ const deserializeAws_restJson1PutRawMessageContentCommandError = async (output,
|
|
|
131
108
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
132
109
|
default:
|
|
133
110
|
const parsedBody = parsedOutput.body;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
$metadata,
|
|
111
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
112
|
+
output,
|
|
113
|
+
parsedBody,
|
|
114
|
+
exceptionCtor: WorkMailMessageFlowServiceException_1.WorkMailMessageFlowServiceException,
|
|
115
|
+
errorCode,
|
|
140
116
|
});
|
|
141
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
142
117
|
}
|
|
143
118
|
};
|
|
119
|
+
const map = smithy_client_1.map;
|
|
144
120
|
const deserializeAws_restJson1InvalidContentLocationResponse = async (parsedOutput, context) => {
|
|
145
|
-
const contents = {};
|
|
121
|
+
const contents = map({});
|
|
146
122
|
const data = parsedOutput.body;
|
|
147
|
-
if (data.message
|
|
123
|
+
if (data.message != null) {
|
|
148
124
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
149
125
|
}
|
|
150
126
|
const exception = new models_0_1.InvalidContentLocation({
|
|
@@ -154,9 +130,9 @@ const deserializeAws_restJson1InvalidContentLocationResponse = async (parsedOutp
|
|
|
154
130
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
155
131
|
};
|
|
156
132
|
const deserializeAws_restJson1MessageFrozenResponse = async (parsedOutput, context) => {
|
|
157
|
-
const contents = {};
|
|
133
|
+
const contents = map({});
|
|
158
134
|
const data = parsedOutput.body;
|
|
159
|
-
if (data.message
|
|
135
|
+
if (data.message != null) {
|
|
160
136
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
161
137
|
}
|
|
162
138
|
const exception = new models_0_1.MessageFrozen({
|
|
@@ -166,9 +142,9 @@ const deserializeAws_restJson1MessageFrozenResponse = async (parsedOutput, conte
|
|
|
166
142
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
167
143
|
};
|
|
168
144
|
const deserializeAws_restJson1MessageRejectedResponse = async (parsedOutput, context) => {
|
|
169
|
-
const contents = {};
|
|
145
|
+
const contents = map({});
|
|
170
146
|
const data = parsedOutput.body;
|
|
171
|
-
if (data.message
|
|
147
|
+
if (data.message != null) {
|
|
172
148
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
173
149
|
}
|
|
174
150
|
const exception = new models_0_1.MessageRejected({
|
|
@@ -178,9 +154,9 @@ const deserializeAws_restJson1MessageRejectedResponse = async (parsedOutput, con
|
|
|
178
154
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
179
155
|
};
|
|
180
156
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
181
|
-
const contents = {};
|
|
157
|
+
const contents = map({});
|
|
182
158
|
const data = parsedOutput.body;
|
|
183
|
-
if (data.message
|
|
159
|
+
if (data.message != null) {
|
|
184
160
|
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
185
161
|
}
|
|
186
162
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { InvalidContentLocation, MessageFrozen, MessageRejected, ResourceNotFoundException, } from "../models/models_0";
|
|
5
5
|
import { WorkMailMessageFlowServiceException as __BaseException } from "../models/WorkMailMessageFlowServiceException";
|
|
6
6
|
export var serializeAws_restJson1GetRawMessageContentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
7
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
8
8
|
return __generator(this, function (_c) {
|
|
9
9
|
switch (_c.label) {
|
|
10
10
|
case 0: return [4, context.endpoint()];
|
|
@@ -12,16 +12,7 @@ export var serializeAws_restJson1GetRawMessageContentCommand = function (input,
|
|
|
12
12
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
13
|
headers = {};
|
|
14
14
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/messages/{messageId}";
|
|
15
|
-
|
|
16
|
-
labelValue = input.messageId;
|
|
17
|
-
if (labelValue.length <= 0) {
|
|
18
|
-
throw new Error("Empty value provided for input HTTP label: messageId.");
|
|
19
|
-
}
|
|
20
|
-
resolvedPath = resolvedPath.replace("{messageId}", __extendedEncodeURIComponent(labelValue));
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
throw new Error("No value provided for input HTTP label: messageId.");
|
|
24
|
-
}
|
|
15
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "messageId", function () { return input.messageId; }, "{messageId}", false);
|
|
25
16
|
return [2, new __HttpRequest({
|
|
26
17
|
protocol: protocol,
|
|
27
18
|
hostname: hostname,
|
|
@@ -35,7 +26,7 @@ export var serializeAws_restJson1GetRawMessageContentCommand = function (input,
|
|
|
35
26
|
});
|
|
36
27
|
}); };
|
|
37
28
|
export var serializeAws_restJson1PutRawMessageContentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
38
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
29
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
39
30
|
return __generator(this, function (_c) {
|
|
40
31
|
switch (_c.label) {
|
|
41
32
|
case 0: return [4, context.endpoint()];
|
|
@@ -45,16 +36,7 @@ export var serializeAws_restJson1PutRawMessageContentCommand = function (input,
|
|
|
45
36
|
"content-type": "application/json",
|
|
46
37
|
};
|
|
47
38
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/messages/{messageId}";
|
|
48
|
-
|
|
49
|
-
labelValue = input.messageId;
|
|
50
|
-
if (labelValue.length <= 0) {
|
|
51
|
-
throw new Error("Empty value provided for input HTTP label: messageId.");
|
|
52
|
-
}
|
|
53
|
-
resolvedPath = resolvedPath.replace("{messageId}", __extendedEncodeURIComponent(labelValue));
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
throw new Error("No value provided for input HTTP label: messageId.");
|
|
57
|
-
}
|
|
39
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "messageId", function () { return input.messageId; }, "{messageId}", false);
|
|
58
40
|
body = JSON.stringify(__assign({}, (input.content != null && { content: serializeAws_restJson1RawMessageContent(input.content, context) })));
|
|
59
41
|
return [2, new __HttpRequest({
|
|
60
42
|
protocol: protocol,
|
|
@@ -74,17 +56,16 @@ export var deserializeAws_restJson1GetRawMessageContentCommand = function (outpu
|
|
|
74
56
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
75
57
|
return [2, deserializeAws_restJson1GetRawMessageContentCommandError(output, context)];
|
|
76
58
|
}
|
|
77
|
-
contents = {
|
|
59
|
+
contents = map({
|
|
78
60
|
$metadata: deserializeMetadata(output),
|
|
79
|
-
|
|
80
|
-
};
|
|
61
|
+
});
|
|
81
62
|
data = output.body;
|
|
82
63
|
contents.messageContent = data;
|
|
83
|
-
return [2,
|
|
64
|
+
return [2, contents];
|
|
84
65
|
});
|
|
85
66
|
}); };
|
|
86
67
|
var deserializeAws_restJson1GetRawMessageContentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
87
|
-
var parsedOutput, _a,
|
|
68
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
88
69
|
var _c;
|
|
89
70
|
return __generator(this, function (_d) {
|
|
90
71
|
switch (_d.label) {
|
|
@@ -105,14 +86,14 @@ var deserializeAws_restJson1GetRawMessageContentCommandError = function (output,
|
|
|
105
86
|
case 3: throw _d.sent();
|
|
106
87
|
case 4:
|
|
107
88
|
parsedBody = parsedOutput.body;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
$metadata: $metadata,
|
|
89
|
+
throwDefaultError({
|
|
90
|
+
output: output,
|
|
91
|
+
parsedBody: parsedBody,
|
|
92
|
+
exceptionCtor: __BaseException,
|
|
93
|
+
errorCode: errorCode,
|
|
114
94
|
});
|
|
115
|
-
|
|
95
|
+
_d.label = 5;
|
|
96
|
+
case 5: return [2];
|
|
116
97
|
}
|
|
117
98
|
});
|
|
118
99
|
}); };
|
|
@@ -124,18 +105,18 @@ export var deserializeAws_restJson1PutRawMessageContentCommand = function (outpu
|
|
|
124
105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
125
106
|
return [2, deserializeAws_restJson1PutRawMessageContentCommandError(output, context)];
|
|
126
107
|
}
|
|
127
|
-
contents = {
|
|
108
|
+
contents = map({
|
|
128
109
|
$metadata: deserializeMetadata(output),
|
|
129
|
-
};
|
|
110
|
+
});
|
|
130
111
|
return [4, collectBody(output.body, context)];
|
|
131
112
|
case 1:
|
|
132
113
|
_a.sent();
|
|
133
|
-
return [2,
|
|
114
|
+
return [2, contents];
|
|
134
115
|
}
|
|
135
116
|
});
|
|
136
117
|
}); };
|
|
137
118
|
var deserializeAws_restJson1PutRawMessageContentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
138
|
-
var parsedOutput, _a,
|
|
119
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
139
120
|
var _c;
|
|
140
121
|
return __generator(this, function (_d) {
|
|
141
122
|
switch (_d.label) {
|
|
@@ -168,23 +149,24 @@ var deserializeAws_restJson1PutRawMessageContentCommandError = function (output,
|
|
|
168
149
|
case 9: throw _d.sent();
|
|
169
150
|
case 10:
|
|
170
151
|
parsedBody = parsedOutput.body;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
$metadata: $metadata,
|
|
152
|
+
throwDefaultError({
|
|
153
|
+
output: output,
|
|
154
|
+
parsedBody: parsedBody,
|
|
155
|
+
exceptionCtor: __BaseException,
|
|
156
|
+
errorCode: errorCode,
|
|
177
157
|
});
|
|
178
|
-
|
|
158
|
+
_d.label = 11;
|
|
159
|
+
case 11: return [2];
|
|
179
160
|
}
|
|
180
161
|
});
|
|
181
162
|
}); };
|
|
163
|
+
var map = __map;
|
|
182
164
|
var deserializeAws_restJson1InvalidContentLocationResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
183
165
|
var contents, data, exception;
|
|
184
166
|
return __generator(this, function (_a) {
|
|
185
|
-
contents = {};
|
|
167
|
+
contents = map({});
|
|
186
168
|
data = parsedOutput.body;
|
|
187
|
-
if (data.message
|
|
169
|
+
if (data.message != null) {
|
|
188
170
|
contents.message = __expectString(data.message);
|
|
189
171
|
}
|
|
190
172
|
exception = new InvalidContentLocation(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -194,9 +176,9 @@ var deserializeAws_restJson1InvalidContentLocationResponse = function (parsedOut
|
|
|
194
176
|
var deserializeAws_restJson1MessageFrozenResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
195
177
|
var contents, data, exception;
|
|
196
178
|
return __generator(this, function (_a) {
|
|
197
|
-
contents = {};
|
|
179
|
+
contents = map({});
|
|
198
180
|
data = parsedOutput.body;
|
|
199
|
-
if (data.message
|
|
181
|
+
if (data.message != null) {
|
|
200
182
|
contents.message = __expectString(data.message);
|
|
201
183
|
}
|
|
202
184
|
exception = new MessageFrozen(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -206,9 +188,9 @@ var deserializeAws_restJson1MessageFrozenResponse = function (parsedOutput, cont
|
|
|
206
188
|
var deserializeAws_restJson1MessageRejectedResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
207
189
|
var contents, data, exception;
|
|
208
190
|
return __generator(this, function (_a) {
|
|
209
|
-
contents = {};
|
|
191
|
+
contents = map({});
|
|
210
192
|
data = parsedOutput.body;
|
|
211
|
-
if (data.message
|
|
193
|
+
if (data.message != null) {
|
|
212
194
|
contents.message = __expectString(data.message);
|
|
213
195
|
}
|
|
214
196
|
exception = new MessageRejected(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -218,9 +200,9 @@ var deserializeAws_restJson1MessageRejectedResponse = function (parsedOutput, co
|
|
|
218
200
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
219
201
|
var contents, data, exception;
|
|
220
202
|
return __generator(this, function (_a) {
|
|
221
|
-
contents = {};
|
|
203
|
+
contents = map({});
|
|
222
204
|
data = parsedOutput.body;
|
|
223
|
-
if (data.message
|
|
205
|
+
if (data.message != null) {
|
|
224
206
|
contents.message = __expectString(data.message);
|
|
225
207
|
}
|
|
226
208
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-workmailmessageflow",
|
|
3
3
|
"description": "AWS SDK for JavaScript Workmailmessageflow Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.150.0",
|
|
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",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.150.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.150.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.131.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.127.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
37
|
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
+
"@aws-sdk/smithy-client": "3.142.0",
|
|
40
40
|
"@aws-sdk/types": "3.127.0",
|
|
41
41
|
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.142.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.142.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
@@ -61,6 +61,11 @@
|
|
|
61
61
|
"typedoc": "0.19.2",
|
|
62
62
|
"typescript": "~4.6.2"
|
|
63
63
|
},
|
|
64
|
+
"overrides": {
|
|
65
|
+
"typedoc": {
|
|
66
|
+
"typescript": "~4.6.2"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
64
69
|
"engines": {
|
|
65
70
|
"node": ">=12.0.0"
|
|
66
71
|
},
|