@aws-sdk/client-workmailmessageflow 3.474.0 → 3.477.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.
|
@@ -1,47 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_PutRawMessageContentCommand = exports.de_GetRawMessageContentCommand = exports.se_PutRawMessageContentCommand = exports.se_GetRawMessageContentCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const WorkMailMessageFlowServiceException_1 = require("../models/WorkMailMessageFlowServiceException");
|
|
8
8
|
const se_GetRawMessageContentCommand = async (input, context) => {
|
|
9
|
-
const
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = {};
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
b.bp("/messages/{messageId}");
|
|
12
|
+
b.p("messageId", () => input.messageId, "{messageId}", false);
|
|
13
13
|
let body;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
hostname,
|
|
17
|
-
port,
|
|
18
|
-
method: "GET",
|
|
19
|
-
headers,
|
|
20
|
-
path: resolvedPath,
|
|
21
|
-
body,
|
|
22
|
-
});
|
|
14
|
+
b.m("GET").h(headers).b(body);
|
|
15
|
+
return b.build();
|
|
23
16
|
};
|
|
24
17
|
exports.se_GetRawMessageContentCommand = se_GetRawMessageContentCommand;
|
|
25
18
|
const se_PutRawMessageContentCommand = async (input, context) => {
|
|
26
|
-
const
|
|
19
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
27
20
|
const headers = {
|
|
28
21
|
"content-type": "application/json",
|
|
29
22
|
};
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
b.bp("/messages/{messageId}");
|
|
24
|
+
b.p("messageId", () => input.messageId, "{messageId}", false);
|
|
32
25
|
let body;
|
|
33
26
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
34
27
|
content: (_) => (0, smithy_client_1._json)(_),
|
|
35
28
|
}));
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
hostname,
|
|
39
|
-
port,
|
|
40
|
-
method: "POST",
|
|
41
|
-
headers,
|
|
42
|
-
path: resolvedPath,
|
|
43
|
-
body,
|
|
44
|
-
});
|
|
29
|
+
b.m("POST").h(headers).b(body);
|
|
30
|
+
return b.build();
|
|
45
31
|
};
|
|
46
32
|
exports.se_PutRawMessageContentCommand = se_PutRawMessageContentCommand;
|
|
47
33
|
const de_GetRawMessageContentCommand = async (output, context) => {
|
|
@@ -1,43 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectString as __expectString, map,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { InvalidContentLocation, MessageFrozen, MessageRejected, ResourceNotFoundException, } from "../models/models_0";
|
|
4
4
|
import { WorkMailMessageFlowServiceException as __BaseException } from "../models/WorkMailMessageFlowServiceException";
|
|
5
5
|
export const se_GetRawMessageContentCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {};
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
b.bp("/messages/{messageId}");
|
|
9
|
+
b.p("messageId", () => input.messageId, "{messageId}", false);
|
|
10
10
|
let body;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
hostname,
|
|
14
|
-
port,
|
|
15
|
-
method: "GET",
|
|
16
|
-
headers,
|
|
17
|
-
path: resolvedPath,
|
|
18
|
-
body,
|
|
19
|
-
});
|
|
11
|
+
b.m("GET").h(headers).b(body);
|
|
12
|
+
return b.build();
|
|
20
13
|
};
|
|
21
14
|
export const se_PutRawMessageContentCommand = async (input, context) => {
|
|
22
|
-
const
|
|
15
|
+
const b = rb(input, context);
|
|
23
16
|
const headers = {
|
|
24
17
|
"content-type": "application/json",
|
|
25
18
|
};
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
b.bp("/messages/{messageId}");
|
|
20
|
+
b.p("messageId", () => input.messageId, "{messageId}", false);
|
|
28
21
|
let body;
|
|
29
22
|
body = JSON.stringify(take(input, {
|
|
30
23
|
content: (_) => _json(_),
|
|
31
24
|
}));
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
hostname,
|
|
35
|
-
port,
|
|
36
|
-
method: "POST",
|
|
37
|
-
headers,
|
|
38
|
-
path: resolvedPath,
|
|
39
|
-
body,
|
|
40
|
-
});
|
|
25
|
+
b.m("POST").h(headers).b(body);
|
|
26
|
+
return b.build();
|
|
41
27
|
};
|
|
42
28
|
export const de_GetRawMessageContentCommand = async (output, context) => {
|
|
43
29
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
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.477.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",
|
|
@@ -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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|