@aws-sdk/client-workmailmessageflow 3.306.0 → 3.309.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/commands/GetRawMessageContentCommand.js +2 -2
- package/dist-cjs/commands/PutRawMessageContentCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +26 -26
- package/dist-es/commands/GetRawMessageContentCommand.js +3 -3
- package/dist-es/commands/PutRawMessageContentCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +21 -21
- package/dist-types/protocols/Aws_restJson1.d.ts +16 -4
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +4 -4
- package/package.json +6 -6
|
@@ -37,10 +37,10 @@ class GetRawMessageContentCommand extends smithy_client_1.Command {
|
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
38
|
}
|
|
39
39
|
serialize(input, context) {
|
|
40
|
-
return (0, Aws_restJson1_1.
|
|
40
|
+
return (0, Aws_restJson1_1.se_GetRawMessageContentCommand)(input, context);
|
|
41
41
|
}
|
|
42
42
|
deserialize(output, context) {
|
|
43
|
-
return (0, Aws_restJson1_1.
|
|
43
|
+
return (0, Aws_restJson1_1.de_GetRawMessageContentCommand)(output, context);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
exports.GetRawMessageContentCommand = GetRawMessageContentCommand;
|
|
@@ -36,10 +36,10 @@ class PutRawMessageContentCommand extends smithy_client_1.Command {
|
|
|
36
36
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
37
|
}
|
|
38
38
|
serialize(input, context) {
|
|
39
|
-
return (0, Aws_restJson1_1.
|
|
39
|
+
return (0, Aws_restJson1_1.se_PutRawMessageContentCommand)(input, context);
|
|
40
40
|
}
|
|
41
41
|
deserialize(output, context) {
|
|
42
|
-
return (0, Aws_restJson1_1.
|
|
42
|
+
return (0, Aws_restJson1_1.de_PutRawMessageContentCommand)(output, context);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.PutRawMessageContentCommand = PutRawMessageContentCommand;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_PutRawMessageContentCommand = exports.de_GetRawMessageContentCommand = exports.se_PutRawMessageContentCommand = exports.se_GetRawMessageContentCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const WorkMailMessageFlowServiceException_1 = require("../models/WorkMailMessageFlowServiceException");
|
|
8
|
-
const
|
|
8
|
+
const se_GetRawMessageContentCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {};
|
|
11
11
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/messages/{messageId}";
|
|
@@ -21,8 +21,8 @@ const serializeAws_restJson1GetRawMessageContentCommand = async (input, context)
|
|
|
21
21
|
body,
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
|
-
exports.
|
|
25
|
-
const
|
|
24
|
+
exports.se_GetRawMessageContentCommand = se_GetRawMessageContentCommand;
|
|
25
|
+
const se_PutRawMessageContentCommand = async (input, context) => {
|
|
26
26
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
27
27
|
const headers = {
|
|
28
28
|
"content-type": "application/json",
|
|
@@ -31,7 +31,7 @@ const serializeAws_restJson1PutRawMessageContentCommand = async (input, context)
|
|
|
31
31
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "messageId", () => input.messageId, "{messageId}", false);
|
|
32
32
|
let body;
|
|
33
33
|
body = JSON.stringify({
|
|
34
|
-
...(input.content != null && { content:
|
|
34
|
+
...(input.content != null && { content: se_RawMessageContent(input.content, context) }),
|
|
35
35
|
});
|
|
36
36
|
return new protocol_http_1.HttpRequest({
|
|
37
37
|
protocol,
|
|
@@ -43,10 +43,10 @@ const serializeAws_restJson1PutRawMessageContentCommand = async (input, context)
|
|
|
43
43
|
body,
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
|
-
exports.
|
|
47
|
-
const
|
|
46
|
+
exports.se_PutRawMessageContentCommand = se_PutRawMessageContentCommand;
|
|
47
|
+
const de_GetRawMessageContentCommand = async (output, context) => {
|
|
48
48
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
49
|
-
return
|
|
49
|
+
return de_GetRawMessageContentCommandError(output, context);
|
|
50
50
|
}
|
|
51
51
|
const contents = map({
|
|
52
52
|
$metadata: deserializeMetadata(output),
|
|
@@ -56,8 +56,8 @@ const deserializeAws_restJson1GetRawMessageContentCommand = async (output, conte
|
|
|
56
56
|
contents.messageContent = data;
|
|
57
57
|
return contents;
|
|
58
58
|
};
|
|
59
|
-
exports.
|
|
60
|
-
const
|
|
59
|
+
exports.de_GetRawMessageContentCommand = de_GetRawMessageContentCommand;
|
|
60
|
+
const de_GetRawMessageContentCommandError = async (output, context) => {
|
|
61
61
|
const parsedOutput = {
|
|
62
62
|
...output,
|
|
63
63
|
body: await parseErrorBody(output.body, context),
|
|
@@ -66,7 +66,7 @@ const deserializeAws_restJson1GetRawMessageContentCommandError = async (output,
|
|
|
66
66
|
switch (errorCode) {
|
|
67
67
|
case "ResourceNotFoundException":
|
|
68
68
|
case "com.amazonaws.workmailmessageflow#ResourceNotFoundException":
|
|
69
|
-
throw await
|
|
69
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
70
70
|
default:
|
|
71
71
|
const parsedBody = parsedOutput.body;
|
|
72
72
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -77,9 +77,9 @@ const deserializeAws_restJson1GetRawMessageContentCommandError = async (output,
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
|
-
const
|
|
80
|
+
const de_PutRawMessageContentCommand = async (output, context) => {
|
|
81
81
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
82
|
-
return
|
|
82
|
+
return de_PutRawMessageContentCommandError(output, context);
|
|
83
83
|
}
|
|
84
84
|
const contents = map({
|
|
85
85
|
$metadata: deserializeMetadata(output),
|
|
@@ -87,8 +87,8 @@ const deserializeAws_restJson1PutRawMessageContentCommand = async (output, conte
|
|
|
87
87
|
await collectBody(output.body, context);
|
|
88
88
|
return contents;
|
|
89
89
|
};
|
|
90
|
-
exports.
|
|
91
|
-
const
|
|
90
|
+
exports.de_PutRawMessageContentCommand = de_PutRawMessageContentCommand;
|
|
91
|
+
const de_PutRawMessageContentCommandError = async (output, context) => {
|
|
92
92
|
const parsedOutput = {
|
|
93
93
|
...output,
|
|
94
94
|
body: await parseErrorBody(output.body, context),
|
|
@@ -97,16 +97,16 @@ const deserializeAws_restJson1PutRawMessageContentCommandError = async (output,
|
|
|
97
97
|
switch (errorCode) {
|
|
98
98
|
case "InvalidContentLocation":
|
|
99
99
|
case "com.amazonaws.workmailmessageflow#InvalidContentLocation":
|
|
100
|
-
throw await
|
|
100
|
+
throw await de_InvalidContentLocationRes(parsedOutput, context);
|
|
101
101
|
case "MessageFrozen":
|
|
102
102
|
case "com.amazonaws.workmailmessageflow#MessageFrozen":
|
|
103
|
-
throw await
|
|
103
|
+
throw await de_MessageFrozenRes(parsedOutput, context);
|
|
104
104
|
case "MessageRejected":
|
|
105
105
|
case "com.amazonaws.workmailmessageflow#MessageRejected":
|
|
106
|
-
throw await
|
|
106
|
+
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
107
107
|
case "ResourceNotFoundException":
|
|
108
108
|
case "com.amazonaws.workmailmessageflow#ResourceNotFoundException":
|
|
109
|
-
throw await
|
|
109
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
110
110
|
default:
|
|
111
111
|
const parsedBody = parsedOutput.body;
|
|
112
112
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -118,7 +118,7 @@ const deserializeAws_restJson1PutRawMessageContentCommandError = async (output,
|
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
const map = smithy_client_1.map;
|
|
121
|
-
const
|
|
121
|
+
const de_InvalidContentLocationRes = async (parsedOutput, context) => {
|
|
122
122
|
const contents = map({});
|
|
123
123
|
const data = parsedOutput.body;
|
|
124
124
|
if (data.message != null) {
|
|
@@ -130,7 +130,7 @@ const deserializeAws_restJson1InvalidContentLocationResponse = async (parsedOutp
|
|
|
130
130
|
});
|
|
131
131
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
132
132
|
};
|
|
133
|
-
const
|
|
133
|
+
const de_MessageFrozenRes = async (parsedOutput, context) => {
|
|
134
134
|
const contents = map({});
|
|
135
135
|
const data = parsedOutput.body;
|
|
136
136
|
if (data.message != null) {
|
|
@@ -142,7 +142,7 @@ const deserializeAws_restJson1MessageFrozenResponse = async (parsedOutput, conte
|
|
|
142
142
|
});
|
|
143
143
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
144
144
|
};
|
|
145
|
-
const
|
|
145
|
+
const de_MessageRejectedRes = async (parsedOutput, context) => {
|
|
146
146
|
const contents = map({});
|
|
147
147
|
const data = parsedOutput.body;
|
|
148
148
|
if (data.message != null) {
|
|
@@ -154,7 +154,7 @@ const deserializeAws_restJson1MessageRejectedResponse = async (parsedOutput, con
|
|
|
154
154
|
});
|
|
155
155
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
156
156
|
};
|
|
157
|
-
const
|
|
157
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
158
158
|
const contents = map({});
|
|
159
159
|
const data = parsedOutput.body;
|
|
160
160
|
if (data.message != null) {
|
|
@@ -166,12 +166,12 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
166
166
|
});
|
|
167
167
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
168
168
|
};
|
|
169
|
-
const
|
|
169
|
+
const se_RawMessageContent = (input, context) => {
|
|
170
170
|
return {
|
|
171
|
-
...(input.s3Reference != null && { s3Reference:
|
|
171
|
+
...(input.s3Reference != null && { s3Reference: se_S3Reference(input.s3Reference, context) }),
|
|
172
172
|
};
|
|
173
173
|
};
|
|
174
|
-
const
|
|
174
|
+
const se_S3Reference = (input, context) => {
|
|
175
175
|
return {
|
|
176
176
|
...(input.bucket != null && { bucket: input.bucket }),
|
|
177
177
|
...(input.key != null && { key: input.key }),
|
|
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { GetRawMessageContentResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
-
import {
|
|
5
|
+
import { de_GetRawMessageContentCommand, se_GetRawMessageContentCommand } from "../protocols/Aws_restJson1";
|
|
6
6
|
export class GetRawMessageContentCommand extends $Command {
|
|
7
7
|
static getEndpointParameterInstructions() {
|
|
8
8
|
return {
|
|
@@ -34,9 +34,9 @@ export class GetRawMessageContentCommand extends $Command {
|
|
|
34
34
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
35
|
}
|
|
36
36
|
serialize(input, context) {
|
|
37
|
-
return
|
|
37
|
+
return se_GetRawMessageContentCommand(input, context);
|
|
38
38
|
}
|
|
39
39
|
deserialize(output, context) {
|
|
40
|
-
return
|
|
40
|
+
return de_GetRawMessageContentCommand(output, context);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
4
|
+
import { de_PutRawMessageContentCommand, se_PutRawMessageContentCommand } from "../protocols/Aws_restJson1";
|
|
5
5
|
export class PutRawMessageContentCommand extends $Command {
|
|
6
6
|
static getEndpointParameterInstructions() {
|
|
7
7
|
return {
|
|
@@ -33,9 +33,9 @@ export class PutRawMessageContentCommand extends $Command {
|
|
|
33
33
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
34
|
}
|
|
35
35
|
serialize(input, context) {
|
|
36
|
-
return
|
|
36
|
+
return se_PutRawMessageContentCommand(input, context);
|
|
37
37
|
}
|
|
38
38
|
deserialize(output, context) {
|
|
39
|
-
return
|
|
39
|
+
return de_PutRawMessageContentCommand(output, context);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectString as __expectString, map as __map, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { InvalidContentLocation, MessageFrozen, MessageRejected, ResourceNotFoundException, } from "../models/models_0";
|
|
4
4
|
import { WorkMailMessageFlowServiceException as __BaseException } from "../models/WorkMailMessageFlowServiceException";
|
|
5
|
-
export const
|
|
5
|
+
export const se_GetRawMessageContentCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {};
|
|
8
8
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/messages/{messageId}";
|
|
@@ -18,7 +18,7 @@ export const serializeAws_restJson1GetRawMessageContentCommand = async (input, c
|
|
|
18
18
|
body,
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
|
-
export const
|
|
21
|
+
export const se_PutRawMessageContentCommand = async (input, context) => {
|
|
22
22
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
23
23
|
const headers = {
|
|
24
24
|
"content-type": "application/json",
|
|
@@ -27,7 +27,7 @@ export const serializeAws_restJson1PutRawMessageContentCommand = async (input, c
|
|
|
27
27
|
resolvedPath = __resolvedPath(resolvedPath, input, "messageId", () => input.messageId, "{messageId}", false);
|
|
28
28
|
let body;
|
|
29
29
|
body = JSON.stringify({
|
|
30
|
-
...(input.content != null && { content:
|
|
30
|
+
...(input.content != null && { content: se_RawMessageContent(input.content, context) }),
|
|
31
31
|
});
|
|
32
32
|
return new __HttpRequest({
|
|
33
33
|
protocol,
|
|
@@ -39,9 +39,9 @@ export const serializeAws_restJson1PutRawMessageContentCommand = async (input, c
|
|
|
39
39
|
body,
|
|
40
40
|
});
|
|
41
41
|
};
|
|
42
|
-
export const
|
|
42
|
+
export const de_GetRawMessageContentCommand = async (output, context) => {
|
|
43
43
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
44
|
-
return
|
|
44
|
+
return de_GetRawMessageContentCommandError(output, context);
|
|
45
45
|
}
|
|
46
46
|
const contents = map({
|
|
47
47
|
$metadata: deserializeMetadata(output),
|
|
@@ -51,7 +51,7 @@ export const deserializeAws_restJson1GetRawMessageContentCommand = async (output
|
|
|
51
51
|
contents.messageContent = data;
|
|
52
52
|
return contents;
|
|
53
53
|
};
|
|
54
|
-
const
|
|
54
|
+
const de_GetRawMessageContentCommandError = async (output, context) => {
|
|
55
55
|
const parsedOutput = {
|
|
56
56
|
...output,
|
|
57
57
|
body: await parseErrorBody(output.body, context),
|
|
@@ -60,7 +60,7 @@ const deserializeAws_restJson1GetRawMessageContentCommandError = async (output,
|
|
|
60
60
|
switch (errorCode) {
|
|
61
61
|
case "ResourceNotFoundException":
|
|
62
62
|
case "com.amazonaws.workmailmessageflow#ResourceNotFoundException":
|
|
63
|
-
throw await
|
|
63
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
64
64
|
default:
|
|
65
65
|
const parsedBody = parsedOutput.body;
|
|
66
66
|
throwDefaultError({
|
|
@@ -71,9 +71,9 @@ const deserializeAws_restJson1GetRawMessageContentCommandError = async (output,
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
export const
|
|
74
|
+
export const de_PutRawMessageContentCommand = async (output, context) => {
|
|
75
75
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
76
|
-
return
|
|
76
|
+
return de_PutRawMessageContentCommandError(output, context);
|
|
77
77
|
}
|
|
78
78
|
const contents = map({
|
|
79
79
|
$metadata: deserializeMetadata(output),
|
|
@@ -81,7 +81,7 @@ export const deserializeAws_restJson1PutRawMessageContentCommand = async (output
|
|
|
81
81
|
await collectBody(output.body, context);
|
|
82
82
|
return contents;
|
|
83
83
|
};
|
|
84
|
-
const
|
|
84
|
+
const de_PutRawMessageContentCommandError = async (output, context) => {
|
|
85
85
|
const parsedOutput = {
|
|
86
86
|
...output,
|
|
87
87
|
body: await parseErrorBody(output.body, context),
|
|
@@ -90,16 +90,16 @@ const deserializeAws_restJson1PutRawMessageContentCommandError = async (output,
|
|
|
90
90
|
switch (errorCode) {
|
|
91
91
|
case "InvalidContentLocation":
|
|
92
92
|
case "com.amazonaws.workmailmessageflow#InvalidContentLocation":
|
|
93
|
-
throw await
|
|
93
|
+
throw await de_InvalidContentLocationRes(parsedOutput, context);
|
|
94
94
|
case "MessageFrozen":
|
|
95
95
|
case "com.amazonaws.workmailmessageflow#MessageFrozen":
|
|
96
|
-
throw await
|
|
96
|
+
throw await de_MessageFrozenRes(parsedOutput, context);
|
|
97
97
|
case "MessageRejected":
|
|
98
98
|
case "com.amazonaws.workmailmessageflow#MessageRejected":
|
|
99
|
-
throw await
|
|
99
|
+
throw await de_MessageRejectedRes(parsedOutput, context);
|
|
100
100
|
case "ResourceNotFoundException":
|
|
101
101
|
case "com.amazonaws.workmailmessageflow#ResourceNotFoundException":
|
|
102
|
-
throw await
|
|
102
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
103
103
|
default:
|
|
104
104
|
const parsedBody = parsedOutput.body;
|
|
105
105
|
throwDefaultError({
|
|
@@ -111,7 +111,7 @@ const deserializeAws_restJson1PutRawMessageContentCommandError = async (output,
|
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
const map = __map;
|
|
114
|
-
const
|
|
114
|
+
const de_InvalidContentLocationRes = async (parsedOutput, context) => {
|
|
115
115
|
const contents = map({});
|
|
116
116
|
const data = parsedOutput.body;
|
|
117
117
|
if (data.message != null) {
|
|
@@ -123,7 +123,7 @@ const deserializeAws_restJson1InvalidContentLocationResponse = async (parsedOutp
|
|
|
123
123
|
});
|
|
124
124
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
125
125
|
};
|
|
126
|
-
const
|
|
126
|
+
const de_MessageFrozenRes = async (parsedOutput, context) => {
|
|
127
127
|
const contents = map({});
|
|
128
128
|
const data = parsedOutput.body;
|
|
129
129
|
if (data.message != null) {
|
|
@@ -135,7 +135,7 @@ const deserializeAws_restJson1MessageFrozenResponse = async (parsedOutput, conte
|
|
|
135
135
|
});
|
|
136
136
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
137
137
|
};
|
|
138
|
-
const
|
|
138
|
+
const de_MessageRejectedRes = async (parsedOutput, context) => {
|
|
139
139
|
const contents = map({});
|
|
140
140
|
const data = parsedOutput.body;
|
|
141
141
|
if (data.message != null) {
|
|
@@ -147,7 +147,7 @@ const deserializeAws_restJson1MessageRejectedResponse = async (parsedOutput, con
|
|
|
147
147
|
});
|
|
148
148
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
149
149
|
};
|
|
150
|
-
const
|
|
150
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
151
151
|
const contents = map({});
|
|
152
152
|
const data = parsedOutput.body;
|
|
153
153
|
if (data.message != null) {
|
|
@@ -159,12 +159,12 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
159
159
|
});
|
|
160
160
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
161
161
|
};
|
|
162
|
-
const
|
|
162
|
+
const se_RawMessageContent = (input, context) => {
|
|
163
163
|
return {
|
|
164
|
-
...(input.s3Reference != null && { s3Reference:
|
|
164
|
+
...(input.s3Reference != null && { s3Reference: se_S3Reference(input.s3Reference, context) }),
|
|
165
165
|
};
|
|
166
166
|
};
|
|
167
|
-
const
|
|
167
|
+
const se_S3Reference = (input, context) => {
|
|
168
168
|
return {
|
|
169
169
|
...(input.bucket != null && { bucket: input.bucket }),
|
|
170
170
|
...(input.key != null && { key: input.key }),
|
|
@@ -2,7 +2,19 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a
|
|
|
2
2
|
import { SdkStreamSerdeContext as __SdkStreamSerdeContext, SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
3
|
import { GetRawMessageContentCommandInput, GetRawMessageContentCommandOutput } from "../commands/GetRawMessageContentCommand";
|
|
4
4
|
import { PutRawMessageContentCommandInput, PutRawMessageContentCommandOutput } from "../commands/PutRawMessageContentCommand";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export declare const
|
|
5
|
+
/**
|
|
6
|
+
* serializeAws_restJson1GetRawMessageContentCommand
|
|
7
|
+
*/
|
|
8
|
+
export declare const se_GetRawMessageContentCommand: (input: GetRawMessageContentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
9
|
+
/**
|
|
10
|
+
* serializeAws_restJson1PutRawMessageContentCommand
|
|
11
|
+
*/
|
|
12
|
+
export declare const se_PutRawMessageContentCommand: (input: PutRawMessageContentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
13
|
+
/**
|
|
14
|
+
* deserializeAws_restJson1GetRawMessageContentCommand
|
|
15
|
+
*/
|
|
16
|
+
export declare const de_GetRawMessageContentCommand: (output: __HttpResponse, context: __SerdeContext & __SdkStreamSerdeContext) => Promise<GetRawMessageContentCommandOutput>;
|
|
17
|
+
/**
|
|
18
|
+
* deserializeAws_restJson1PutRawMessageContentCommand
|
|
19
|
+
*/
|
|
20
|
+
export declare const de_PutRawMessageContentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutRawMessageContentCommandOutput>;
|
|
@@ -14,19 +14,19 @@ import {
|
|
|
14
14
|
PutRawMessageContentCommandInput,
|
|
15
15
|
PutRawMessageContentCommandOutput,
|
|
16
16
|
} from "../commands/PutRawMessageContentCommand";
|
|
17
|
-
export declare const
|
|
17
|
+
export declare const se_GetRawMessageContentCommand: (
|
|
18
18
|
input: GetRawMessageContentCommandInput,
|
|
19
19
|
context: __SerdeContext
|
|
20
20
|
) => Promise<__HttpRequest>;
|
|
21
|
-
export declare const
|
|
21
|
+
export declare const se_PutRawMessageContentCommand: (
|
|
22
22
|
input: PutRawMessageContentCommandInput,
|
|
23
23
|
context: __SerdeContext
|
|
24
24
|
) => Promise<__HttpRequest>;
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const de_GetRawMessageContentCommand: (
|
|
26
26
|
output: __HttpResponse,
|
|
27
27
|
context: __SerdeContext & __SdkStreamSerdeContext
|
|
28
28
|
) => Promise<GetRawMessageContentCommandOutput>;
|
|
29
|
-
export declare const
|
|
29
|
+
export declare const de_PutRawMessageContentCommand: (
|
|
30
30
|
output: __HttpResponse,
|
|
31
31
|
context: __SerdeContext
|
|
32
32
|
) => Promise<PutRawMessageContentCommandOutput>;
|
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.309.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",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.309.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.306.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.309.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.306.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.306.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.306.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.306.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.306.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.306.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.309.0",
|
|
44
44
|
"@aws-sdk/types": "3.306.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.306.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.303.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.309.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.309.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.306.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.306.0",
|
|
53
53
|
"@aws-sdk/util-stream-browser": "3.306.0",
|