@aws-sdk/client-workmailmessageflow 3.504.0 → 3.509.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/index.js +7 -26
- package/dist-es/protocols/Aws_restJson1.js +6 -25
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -246,7 +246,7 @@ var se_PutRawMessageContentCommand = /* @__PURE__ */ __name(async (input, contex
|
|
|
246
246
|
}, "se_PutRawMessageContentCommand");
|
|
247
247
|
var de_GetRawMessageContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
248
248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
249
|
-
return
|
|
249
|
+
return de_CommandError(output, context);
|
|
250
250
|
}
|
|
251
251
|
const contents = (0, import_smithy_client.map)({
|
|
252
252
|
$metadata: deserializeMetadata(output)
|
|
@@ -256,28 +256,9 @@ var de_GetRawMessageContentCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
256
256
|
contents.messageContent = data;
|
|
257
257
|
return contents;
|
|
258
258
|
}, "de_GetRawMessageContentCommand");
|
|
259
|
-
var de_GetRawMessageContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
260
|
-
const parsedOutput = {
|
|
261
|
-
...output,
|
|
262
|
-
body: await parseErrorBody(output.body, context)
|
|
263
|
-
};
|
|
264
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
265
|
-
switch (errorCode) {
|
|
266
|
-
case "ResourceNotFoundException":
|
|
267
|
-
case "com.amazonaws.workmailmessageflow#ResourceNotFoundException":
|
|
268
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
269
|
-
default:
|
|
270
|
-
const parsedBody = parsedOutput.body;
|
|
271
|
-
return throwDefaultError({
|
|
272
|
-
output,
|
|
273
|
-
parsedBody,
|
|
274
|
-
errorCode
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
}, "de_GetRawMessageContentCommandError");
|
|
278
259
|
var de_PutRawMessageContentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
279
260
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
280
|
-
return
|
|
261
|
+
return de_CommandError(output, context);
|
|
281
262
|
}
|
|
282
263
|
const contents = (0, import_smithy_client.map)({
|
|
283
264
|
$metadata: deserializeMetadata(output)
|
|
@@ -285,13 +266,16 @@ var de_PutRawMessageContentCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
285
266
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
286
267
|
return contents;
|
|
287
268
|
}, "de_PutRawMessageContentCommand");
|
|
288
|
-
var
|
|
269
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
289
270
|
const parsedOutput = {
|
|
290
271
|
...output,
|
|
291
272
|
body: await parseErrorBody(output.body, context)
|
|
292
273
|
};
|
|
293
274
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
294
275
|
switch (errorCode) {
|
|
276
|
+
case "ResourceNotFoundException":
|
|
277
|
+
case "com.amazonaws.workmailmessageflow#ResourceNotFoundException":
|
|
278
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
295
279
|
case "InvalidContentLocation":
|
|
296
280
|
case "com.amazonaws.workmailmessageflow#InvalidContentLocation":
|
|
297
281
|
throw await de_InvalidContentLocationRes(parsedOutput, context);
|
|
@@ -301,9 +285,6 @@ var de_PutRawMessageContentCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
301
285
|
case "MessageRejected":
|
|
302
286
|
case "com.amazonaws.workmailmessageflow#MessageRejected":
|
|
303
287
|
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
304
|
-
case "ResourceNotFoundException":
|
|
305
|
-
case "com.amazonaws.workmailmessageflow#ResourceNotFoundException":
|
|
306
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
307
288
|
default:
|
|
308
289
|
const parsedBody = parsedOutput.body;
|
|
309
290
|
return throwDefaultError({
|
|
@@ -312,7 +293,7 @@ var de_PutRawMessageContentCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
312
293
|
errorCode
|
|
313
294
|
});
|
|
314
295
|
}
|
|
315
|
-
}, "
|
|
296
|
+
}, "de_CommandError");
|
|
316
297
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(WorkMailMessageFlowServiceException);
|
|
317
298
|
var de_InvalidContentLocationRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
318
299
|
const contents = (0, import_smithy_client.map)({});
|
|
@@ -27,7 +27,7 @@ export const se_PutRawMessageContentCommand = async (input, context) => {
|
|
|
27
27
|
};
|
|
28
28
|
export const de_GetRawMessageContentCommand = async (output, context) => {
|
|
29
29
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
30
|
-
return
|
|
30
|
+
return de_CommandError(output, context);
|
|
31
31
|
}
|
|
32
32
|
const contents = map({
|
|
33
33
|
$metadata: deserializeMetadata(output),
|
|
@@ -37,28 +37,9 @@ export const de_GetRawMessageContentCommand = async (output, context) => {
|
|
|
37
37
|
contents.messageContent = data;
|
|
38
38
|
return contents;
|
|
39
39
|
};
|
|
40
|
-
const de_GetRawMessageContentCommandError = async (output, context) => {
|
|
41
|
-
const parsedOutput = {
|
|
42
|
-
...output,
|
|
43
|
-
body: await parseErrorBody(output.body, context),
|
|
44
|
-
};
|
|
45
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
46
|
-
switch (errorCode) {
|
|
47
|
-
case "ResourceNotFoundException":
|
|
48
|
-
case "com.amazonaws.workmailmessageflow#ResourceNotFoundException":
|
|
49
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
50
|
-
default:
|
|
51
|
-
const parsedBody = parsedOutput.body;
|
|
52
|
-
return throwDefaultError({
|
|
53
|
-
output,
|
|
54
|
-
parsedBody,
|
|
55
|
-
errorCode,
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
40
|
export const de_PutRawMessageContentCommand = async (output, context) => {
|
|
60
41
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
61
|
-
return
|
|
42
|
+
return de_CommandError(output, context);
|
|
62
43
|
}
|
|
63
44
|
const contents = map({
|
|
64
45
|
$metadata: deserializeMetadata(output),
|
|
@@ -66,13 +47,16 @@ export const de_PutRawMessageContentCommand = async (output, context) => {
|
|
|
66
47
|
await collectBody(output.body, context);
|
|
67
48
|
return contents;
|
|
68
49
|
};
|
|
69
|
-
const
|
|
50
|
+
const de_CommandError = async (output, context) => {
|
|
70
51
|
const parsedOutput = {
|
|
71
52
|
...output,
|
|
72
53
|
body: await parseErrorBody(output.body, context),
|
|
73
54
|
};
|
|
74
55
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
75
56
|
switch (errorCode) {
|
|
57
|
+
case "ResourceNotFoundException":
|
|
58
|
+
case "com.amazonaws.workmailmessageflow#ResourceNotFoundException":
|
|
59
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
76
60
|
case "InvalidContentLocation":
|
|
77
61
|
case "com.amazonaws.workmailmessageflow#InvalidContentLocation":
|
|
78
62
|
throw await de_InvalidContentLocationRes(parsedOutput, context);
|
|
@@ -82,9 +66,6 @@ const de_PutRawMessageContentCommandError = async (output, context) => {
|
|
|
82
66
|
case "MessageRejected":
|
|
83
67
|
case "com.amazonaws.workmailmessageflow#MessageRejected":
|
|
84
68
|
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
85
|
-
case "ResourceNotFoundException":
|
|
86
|
-
case "com.amazonaws.workmailmessageflow#ResourceNotFoundException":
|
|
87
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
88
69
|
default:
|
|
89
70
|
const parsedBody = parsedOutput.body;
|
|
90
71
|
return throwDefaultError({
|
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.509.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-workmailmessageflow",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.509.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|