@aws-sdk/client-workmailmessageflow 3.33.0 → 3.36.1
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 +47 -0
- package/{dist/cjs → dist-cjs}/WorkMailMessageFlow.js +1 -9
- package/{dist/cjs → dist-cjs}/WorkMailMessageFlowClient.js +8 -21
- package/{dist/cjs → dist-cjs}/commands/GetRawMessageContentCommand.js +2 -27
- package/dist-cjs/commands/PutRawMessageContentCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -31
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/WorkMailMessageFlow.js +2 -10
- package/{dist/es → dist-es}/WorkMailMessageFlowClient.js +2 -15
- package/{dist/es → dist-es}/commands/GetRawMessageContentCommand.js +4 -30
- package/dist-es/commands/PutRawMessageContentCommand.js +39 -0
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -31
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +39 -45
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/WorkMailMessageFlow.d.ts +2 -2
- package/{dist/types → dist-types}/WorkMailMessageFlowClient.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetRawMessageContentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PutRawMessageContentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/WorkMailMessageFlow.d.ts +15 -0
- package/dist-types/ts3.4/WorkMailMessageFlowClient.d.ts +69 -0
- package/dist-types/ts3.4/commands/GetRawMessageContentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutRawMessageContentCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +97 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +52 -49
- package/WorkMailMessageFlow.ts +0 -98
- package/WorkMailMessageFlowClient.ts +0 -247
- package/commands/GetRawMessageContentCommand.ts +0 -98
- package/commands/PutRawMessageContentCommand.ts +0 -111
- package/dist/cjs/WorkMailMessageFlow.js.map +0 -1
- package/dist/cjs/WorkMailMessageFlowClient.js.map +0 -1
- package/dist/cjs/commands/GetRawMessageContentCommand.js.map +0 -1
- package/dist/cjs/commands/PutRawMessageContentCommand.js +0 -74
- package/dist/cjs/commands/PutRawMessageContentCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/WorkMailMessageFlow.js.map +0 -1
- package/dist/es/WorkMailMessageFlowClient.js.map +0 -1
- package/dist/es/commands/GetRawMessageContentCommand.js.map +0 -1
- package/dist/es/commands/PutRawMessageContentCommand.js +0 -78
- package/dist/es/commands/PutRawMessageContentCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -6
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/ts3.4/WorkMailMessageFlow.d.ts +0 -38
- package/dist/types/ts3.4/WorkMailMessageFlowClient.d.ts +0 -138
- package/dist/types/ts3.4/commands/GetRawMessageContentCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/PutRawMessageContentCommand.d.ts +0 -48
- package/dist/types/ts3.4/models/models_0.d.ts +0 -194
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -235
- package/protocols/Aws_restJson1.ts +0 -368
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
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.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
|
|
23
|
+
* **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
|
|
24
|
+
* **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **clients:** eslint --fix using esprint ([#2849](https://github.com/aws/aws-sdk-js-v3/issues/2849)) ([94d0a2d](https://github.com/aws/aws-sdk-js-v3/commit/94d0a2d8a0579ee0a742337937ad05735cfbc1ba))
|
|
36
|
+
* **clients:** move source files to 'src' folder ([#2845](https://github.com/aws/aws-sdk-js-v3/issues/2845)) ([e0025cd](https://github.com/aws/aws-sdk-js-v3/commit/e0025cddbba244a41ddf1fd1adb761142e15c22d))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# [3.34.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.33.0...v3.34.0) (2021-09-24)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Features
|
|
46
|
+
|
|
47
|
+
* **clients:** remove comments from transpiled JS files ([#2817](https://github.com/aws/aws-sdk-js-v3/issues/2817)) ([d01420b](https://github.com/aws/aws-sdk-js-v3/commit/d01420b247966c8ec84c1dd0a1b42512ede10c90))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.33.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.32.0...v3.33.0) (2021-09-21)
|
|
7
54
|
|
|
8
55
|
**Note:** Version bump only for package @aws-sdk/client-workmailmessageflow
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WorkMailMessageFlow = void 0;
|
|
4
|
-
const WorkMailMessageFlowClient_1 = require("./WorkMailMessageFlowClient");
|
|
5
4
|
const GetRawMessageContentCommand_1 = require("./commands/GetRawMessageContentCommand");
|
|
6
5
|
const PutRawMessageContentCommand_1 = require("./commands/PutRawMessageContentCommand");
|
|
7
|
-
|
|
8
|
-
* <p>The WorkMail Message Flow API provides access to email messages as they are
|
|
9
|
-
* being
|
|
10
|
-
* sent and received by
|
|
11
|
-
* a
|
|
12
|
-
* WorkMail organization.</p>
|
|
13
|
-
*/
|
|
6
|
+
const WorkMailMessageFlowClient_1 = require("./WorkMailMessageFlowClient");
|
|
14
7
|
class WorkMailMessageFlow extends WorkMailMessageFlowClient_1.WorkMailMessageFlowClient {
|
|
15
8
|
getRawMessageContent(args, optionsOrCb, cb) {
|
|
16
9
|
const command = new GetRawMessageContentCommand_1.GetRawMessageContentCommand(args);
|
|
@@ -42,4 +35,3 @@ class WorkMailMessageFlow extends WorkMailMessageFlowClient_1.WorkMailMessageFlo
|
|
|
42
35
|
}
|
|
43
36
|
}
|
|
44
37
|
exports.WorkMailMessageFlow = WorkMailMessageFlow;
|
|
45
|
-
//# sourceMappingURL=WorkMailMessageFlow.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WorkMailMessageFlowClient = void 0;
|
|
4
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
5
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
6
5
|
const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
|
|
7
6
|
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
@@ -10,22 +9,16 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
|
10
9
|
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
11
10
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
12
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
13
|
-
|
|
14
|
-
* <p>The WorkMail Message Flow API provides access to email messages as they are
|
|
15
|
-
* being
|
|
16
|
-
* sent and received by
|
|
17
|
-
* a
|
|
18
|
-
* WorkMail organization.</p>
|
|
19
|
-
*/
|
|
12
|
+
const runtimeConfig_1 = require("./runtimeConfig");
|
|
20
13
|
class WorkMailMessageFlowClient extends smithy_client_1.Client {
|
|
21
14
|
constructor(configuration) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
15
|
+
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
16
|
+
const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
|
|
17
|
+
const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
|
|
18
|
+
const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
|
|
19
|
+
const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
|
|
20
|
+
const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
|
|
21
|
+
const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
|
|
29
22
|
super(_config_6);
|
|
30
23
|
this.config = _config_6;
|
|
31
24
|
this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
|
|
@@ -35,14 +28,8 @@ class WorkMailMessageFlowClient extends smithy_client_1.Client {
|
|
|
35
28
|
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
36
29
|
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
37
30
|
}
|
|
38
|
-
/**
|
|
39
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
40
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
41
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
42
|
-
*/
|
|
43
31
|
destroy() {
|
|
44
32
|
super.destroy();
|
|
45
33
|
}
|
|
46
34
|
}
|
|
47
35
|
exports.WorkMailMessageFlowClient = WorkMailMessageFlowClient;
|
|
48
|
-
//# sourceMappingURL=WorkMailMessageFlowClient.js.map
|
|
@@ -1,39 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetRawMessageContentCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* @example
|
|
11
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
12
|
-
* ```javascript
|
|
13
|
-
* import { WorkMailMessageFlowClient, GetRawMessageContentCommand } from "@aws-sdk/client-workmailmessageflow"; // ES Modules import
|
|
14
|
-
* // const { WorkMailMessageFlowClient, GetRawMessageContentCommand } = require("@aws-sdk/client-workmailmessageflow"); // CommonJS import
|
|
15
|
-
* const client = new WorkMailMessageFlowClient(config);
|
|
16
|
-
* const command = new GetRawMessageContentCommand(input);
|
|
17
|
-
* const response = await client.send(command);
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @see {@link GetRawMessageContentCommandInput} for command's `input` shape.
|
|
21
|
-
* @see {@link GetRawMessageContentCommandOutput} for command's `response` shape.
|
|
22
|
-
* @see {@link WorkMailMessageFlowClientResolvedConfig | config} for command's `input` shape.
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
25
8
|
class GetRawMessageContentCommand extends smithy_client_1.Command {
|
|
26
|
-
// Start section: command_properties
|
|
27
|
-
// End section: command_properties
|
|
28
9
|
constructor(input) {
|
|
29
|
-
// Start section: command_constructor
|
|
30
10
|
super();
|
|
31
11
|
this.input = input;
|
|
32
|
-
// End section: command_constructor
|
|
33
12
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
38
14
|
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
39
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
@@ -58,4 +34,3 @@ class GetRawMessageContentCommand extends smithy_client_1.Command {
|
|
|
58
34
|
}
|
|
59
35
|
}
|
|
60
36
|
exports.GetRawMessageContentCommand = GetRawMessageContentCommand;
|
|
61
|
-
//# sourceMappingURL=GetRawMessageContentCommand.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutRawMessageContentCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class PutRawMessageContentCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "WorkMailMessageFlowClient";
|
|
18
|
+
const commandName = "PutRawMessageContentCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.PutRawMessageContentRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.PutRawMessageContentResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1PutRawMessageContentCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1PutRawMessageContentCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.PutRawMessageContentCommand = PutRawMessageContentCommand;
|
|
@@ -6,4 +6,3 @@ tslib_1.__exportStar(require("./WorkMailMessageFlow"), exports);
|
|
|
6
6
|
tslib_1.__exportStar(require("./commands/GetRawMessageContentCommand"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./commands/PutRawMessageContentCommand"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./models/index"), exports);
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -3,92 +3,61 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PutRawMessageContentResponse = exports.PutRawMessageContentRequest = exports.RawMessageContent = exports.S3Reference = exports.MessageRejected = exports.MessageFrozen = exports.InvalidContentLocation = exports.ResourceNotFoundException = exports.GetRawMessageContentResponse = exports.GetRawMessageContentRequest = void 0;
|
|
4
4
|
var GetRawMessageContentRequest;
|
|
5
5
|
(function (GetRawMessageContentRequest) {
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
GetRawMessageContentRequest.filterSensitiveLog = (obj) => ({
|
|
10
7
|
...obj,
|
|
11
8
|
});
|
|
12
9
|
})(GetRawMessageContentRequest = exports.GetRawMessageContentRequest || (exports.GetRawMessageContentRequest = {}));
|
|
13
10
|
var GetRawMessageContentResponse;
|
|
14
11
|
(function (GetRawMessageContentResponse) {
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
12
|
GetRawMessageContentResponse.filterSensitiveLog = (obj) => ({
|
|
19
13
|
...obj,
|
|
20
14
|
});
|
|
21
15
|
})(GetRawMessageContentResponse = exports.GetRawMessageContentResponse || (exports.GetRawMessageContentResponse = {}));
|
|
22
16
|
var ResourceNotFoundException;
|
|
23
17
|
(function (ResourceNotFoundException) {
|
|
24
|
-
/**
|
|
25
|
-
* @internal
|
|
26
|
-
*/
|
|
27
18
|
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
28
19
|
...obj,
|
|
29
20
|
});
|
|
30
21
|
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
31
22
|
var InvalidContentLocation;
|
|
32
23
|
(function (InvalidContentLocation) {
|
|
33
|
-
/**
|
|
34
|
-
* @internal
|
|
35
|
-
*/
|
|
36
24
|
InvalidContentLocation.filterSensitiveLog = (obj) => ({
|
|
37
25
|
...obj,
|
|
38
26
|
});
|
|
39
27
|
})(InvalidContentLocation = exports.InvalidContentLocation || (exports.InvalidContentLocation = {}));
|
|
40
28
|
var MessageFrozen;
|
|
41
29
|
(function (MessageFrozen) {
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
30
|
MessageFrozen.filterSensitiveLog = (obj) => ({
|
|
46
31
|
...obj,
|
|
47
32
|
});
|
|
48
33
|
})(MessageFrozen = exports.MessageFrozen || (exports.MessageFrozen = {}));
|
|
49
34
|
var MessageRejected;
|
|
50
35
|
(function (MessageRejected) {
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
36
|
MessageRejected.filterSensitiveLog = (obj) => ({
|
|
55
37
|
...obj,
|
|
56
38
|
});
|
|
57
39
|
})(MessageRejected = exports.MessageRejected || (exports.MessageRejected = {}));
|
|
58
40
|
var S3Reference;
|
|
59
41
|
(function (S3Reference) {
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
42
|
S3Reference.filterSensitiveLog = (obj) => ({
|
|
64
43
|
...obj,
|
|
65
44
|
});
|
|
66
45
|
})(S3Reference = exports.S3Reference || (exports.S3Reference = {}));
|
|
67
46
|
var RawMessageContent;
|
|
68
47
|
(function (RawMessageContent) {
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
*/
|
|
72
48
|
RawMessageContent.filterSensitiveLog = (obj) => ({
|
|
73
49
|
...obj,
|
|
74
50
|
});
|
|
75
51
|
})(RawMessageContent = exports.RawMessageContent || (exports.RawMessageContent = {}));
|
|
76
52
|
var PutRawMessageContentRequest;
|
|
77
53
|
(function (PutRawMessageContentRequest) {
|
|
78
|
-
/**
|
|
79
|
-
* @internal
|
|
80
|
-
*/
|
|
81
54
|
PutRawMessageContentRequest.filterSensitiveLog = (obj) => ({
|
|
82
55
|
...obj,
|
|
83
56
|
});
|
|
84
57
|
})(PutRawMessageContentRequest = exports.PutRawMessageContentRequest || (exports.PutRawMessageContentRequest = {}));
|
|
85
58
|
var PutRawMessageContentResponse;
|
|
86
59
|
(function (PutRawMessageContentResponse) {
|
|
87
|
-
/**
|
|
88
|
-
* @internal
|
|
89
|
-
*/
|
|
90
60
|
PutRawMessageContentResponse.filterSensitiveLog = (obj) => ({
|
|
91
61
|
...obj,
|
|
92
62
|
});
|
|
93
63
|
})(PutRawMessageContentResponse = exports.PutRawMessageContentResponse || (exports.PutRawMessageContentResponse = {}));
|
|
94
|
-
//# sourceMappingURL=models_0.js.map
|
|
@@ -249,14 +249,12 @@ const deserializeMetadata = (output) => {
|
|
|
249
249
|
cfId: output.headers["x-amz-cf-id"],
|
|
250
250
|
});
|
|
251
251
|
};
|
|
252
|
-
// Collect low-level response body stream to Uint8Array.
|
|
253
252
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
254
253
|
if (streamBody instanceof Uint8Array) {
|
|
255
254
|
return Promise.resolve(streamBody);
|
|
256
255
|
}
|
|
257
256
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
258
257
|
};
|
|
259
|
-
// Encode Uint8Array data into string with utf-8.
|
|
260
258
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
261
259
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
262
260
|
value !== null &&
|
|
@@ -269,9 +267,6 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
269
267
|
}
|
|
270
268
|
return {};
|
|
271
269
|
});
|
|
272
|
-
/**
|
|
273
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
274
|
-
*/
|
|
275
270
|
const loadRestJsonErrorCode = (output, data) => {
|
|
276
271
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
277
272
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -296,4 +291,3 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
296
291
|
}
|
|
297
292
|
return "";
|
|
298
293
|
};
|
|
299
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const package_json_1 = tslib_1.__importDefault(require("
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
7
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
8
8
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
@@ -12,9 +12,6 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
12
12
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
13
13
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
14
14
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
15
|
const getRuntimeConfig = (config) => {
|
|
19
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
20
17
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
@@ -38,4 +35,3 @@ const getRuntimeConfig = (config) => {
|
|
|
38
35
|
};
|
|
39
36
|
};
|
|
40
37
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
41
|
-
//# sourceMappingURL=runtimeConfig.browser.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const package_json_1 = tslib_1.__importDefault(require("
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
7
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
@@ -16,9 +16,6 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
19
|
const getRuntimeConfig = (config) => {
|
|
23
20
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
24
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
@@ -43,4 +40,3 @@ const getRuntimeConfig = (config) => {
|
|
|
43
40
|
};
|
|
44
41
|
};
|
|
45
42
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
46
|
-
//# sourceMappingURL=runtimeConfig.js.map
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a;
|
|
11
8
|
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
@@ -17,4 +14,3 @@ const getRuntimeConfig = (config) => {
|
|
|
17
14
|
};
|
|
18
15
|
};
|
|
19
16
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
20
|
-
//# sourceMappingURL=runtimeConfig.native.js.map
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const endpoints_1 = require("./endpoints");
|
|
5
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
6
|
-
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
5
|
+
const endpoints_1 = require("./endpoints");
|
|
9
6
|
const getRuntimeConfig = (config) => {
|
|
10
7
|
var _a, _b, _c, _d, _e;
|
|
11
8
|
return ({
|
|
@@ -18,4 +15,3 @@ const getRuntimeConfig = (config) => {
|
|
|
18
15
|
});
|
|
19
16
|
};
|
|
20
17
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
21
|
-
//# sourceMappingURL=runtimeConfig.shared.js.map
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { WorkMailMessageFlowClient } from "./WorkMailMessageFlowClient";
|
|
3
2
|
import { GetRawMessageContentCommand, } from "./commands/GetRawMessageContentCommand";
|
|
4
3
|
import { PutRawMessageContentCommand, } from "./commands/PutRawMessageContentCommand";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* being
|
|
8
|
-
* sent and received by
|
|
9
|
-
* a
|
|
10
|
-
* WorkMail organization.</p>
|
|
11
|
-
*/
|
|
12
|
-
var WorkMailMessageFlow = /** @class */ (function (_super) {
|
|
4
|
+
import { WorkMailMessageFlowClient } from "./WorkMailMessageFlowClient";
|
|
5
|
+
var WorkMailMessageFlow = (function (_super) {
|
|
13
6
|
__extends(WorkMailMessageFlow, _super);
|
|
14
7
|
function WorkMailMessageFlow() {
|
|
15
8
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -45,4 +38,3 @@ var WorkMailMessageFlow = /** @class */ (function (_super) {
|
|
|
45
38
|
return WorkMailMessageFlow;
|
|
46
39
|
}(WorkMailMessageFlowClient));
|
|
47
40
|
export { WorkMailMessageFlow };
|
|
48
|
-
//# sourceMappingURL=WorkMailMessageFlow.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
3
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
4
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
5
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,14 +7,8 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
|
8
7
|
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* being
|
|
14
|
-
* sent and received by
|
|
15
|
-
* a
|
|
16
|
-
* WorkMail organization.</p>
|
|
17
|
-
*/
|
|
18
|
-
var WorkMailMessageFlowClient = /** @class */ (function (_super) {
|
|
10
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
+
var WorkMailMessageFlowClient = (function (_super) {
|
|
19
12
|
__extends(WorkMailMessageFlowClient, _super);
|
|
20
13
|
function WorkMailMessageFlowClient(configuration) {
|
|
21
14
|
var _this = this;
|
|
@@ -36,15 +29,9 @@ var WorkMailMessageFlowClient = /** @class */ (function (_super) {
|
|
|
36
29
|
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
37
30
|
return _this;
|
|
38
31
|
}
|
|
39
|
-
/**
|
|
40
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
41
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
42
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
43
|
-
*/
|
|
44
32
|
WorkMailMessageFlowClient.prototype.destroy = function () {
|
|
45
33
|
_super.prototype.destroy.call(this);
|
|
46
34
|
};
|
|
47
35
|
return WorkMailMessageFlowClient;
|
|
48
36
|
}(__Client));
|
|
49
37
|
export { WorkMailMessageFlowClient };
|
|
50
|
-
//# sourceMappingURL=WorkMailMessageFlowClient.js.map
|
|
@@ -1,40 +1,15 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { GetRawMessageContentRequest, GetRawMessageContentResponse } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_restJson1GetRawMessageContentCommand, serializeAws_restJson1GetRawMessageContentCommand, } from "../protocols/Aws_restJson1";
|
|
4
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
10
|
-
* ```javascript
|
|
11
|
-
* import { WorkMailMessageFlowClient, GetRawMessageContentCommand } from "@aws-sdk/client-workmailmessageflow"; // ES Modules import
|
|
12
|
-
* // const { WorkMailMessageFlowClient, GetRawMessageContentCommand } = require("@aws-sdk/client-workmailmessageflow"); // CommonJS import
|
|
13
|
-
* const client = new WorkMailMessageFlowClient(config);
|
|
14
|
-
* const command = new GetRawMessageContentCommand(input);
|
|
15
|
-
* const response = await client.send(command);
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @see {@link GetRawMessageContentCommandInput} for command's `input` shape.
|
|
19
|
-
* @see {@link GetRawMessageContentCommandOutput} for command's `response` shape.
|
|
20
|
-
* @see {@link WorkMailMessageFlowClientResolvedConfig | config} for command's `input` shape.
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
var GetRawMessageContentCommand = /** @class */ (function (_super) {
|
|
4
|
+
import { GetRawMessageContentRequest, GetRawMessageContentResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetRawMessageContentCommand, serializeAws_restJson1GetRawMessageContentCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetRawMessageContentCommand = (function (_super) {
|
|
24
7
|
__extends(GetRawMessageContentCommand, _super);
|
|
25
|
-
// Start section: command_properties
|
|
26
|
-
// End section: command_properties
|
|
27
8
|
function GetRawMessageContentCommand(input) {
|
|
28
|
-
var _this =
|
|
29
|
-
// Start section: command_constructor
|
|
30
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
31
10
|
_this.input = input;
|
|
32
11
|
return _this;
|
|
33
|
-
// End section: command_constructor
|
|
34
12
|
}
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
*/
|
|
38
13
|
GetRawMessageContentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
39
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
40
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -62,4 +37,3 @@ var GetRawMessageContentCommand = /** @class */ (function (_super) {
|
|
|
62
37
|
return GetRawMessageContentCommand;
|
|
63
38
|
}($Command));
|
|
64
39
|
export { GetRawMessageContentCommand };
|
|
65
|
-
//# sourceMappingURL=GetRawMessageContentCommand.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { PutRawMessageContentRequest, PutRawMessageContentResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1PutRawMessageContentCommand, serializeAws_restJson1PutRawMessageContentCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var PutRawMessageContentCommand = (function (_super) {
|
|
7
|
+
__extends(PutRawMessageContentCommand, _super);
|
|
8
|
+
function PutRawMessageContentCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
PutRawMessageContentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "WorkMailMessageFlowClient";
|
|
18
|
+
var commandName = "PutRawMessageContentCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: PutRawMessageContentRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: PutRawMessageContentResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
PutRawMessageContentCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1PutRawMessageContentCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
PutRawMessageContentCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1PutRawMessageContentCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return PutRawMessageContentCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { PutRawMessageContentCommand };
|
|
@@ -47,7 +47,6 @@ var partitionHash = {
|
|
|
47
47
|
};
|
|
48
48
|
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|
|
49
49
|
return __generator(this, function (_a) {
|
|
50
|
-
return [2
|
|
50
|
+
return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "workmailmessageflow", regionHash: regionHash, partitionHash: partitionHash }))];
|
|
51
51
|
});
|
|
52
52
|
}); };
|
|
53
|
-
//# sourceMappingURL=endpoints.js.map
|
|
File without changes
|
|
File without changes
|