@aws-sdk/client-apigatewaymanagementapi 3.476.0 → 3.478.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,64 +1,43 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_PostToConnectionCommand = exports.de_GetConnectionCommand = exports.de_DeleteConnectionCommand = exports.se_PostToConnectionCommand = exports.se_GetConnectionCommand = exports.se_DeleteConnectionCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const ApiGatewayManagementApiServiceException_1 = require("../models/ApiGatewayManagementApiServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_DeleteConnectionCommand = async (input, context) => {
|
|
9
|
-
const
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = {};
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
b.bp("/@connections/{ConnectionId}");
|
|
12
|
+
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
13
13
|
let body;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
hostname,
|
|
17
|
-
port,
|
|
18
|
-
method: "DELETE",
|
|
19
|
-
headers,
|
|
20
|
-
path: resolvedPath,
|
|
21
|
-
body,
|
|
22
|
-
});
|
|
14
|
+
b.m("DELETE").h(headers).b(body);
|
|
15
|
+
return b.build();
|
|
23
16
|
};
|
|
24
17
|
exports.se_DeleteConnectionCommand = se_DeleteConnectionCommand;
|
|
25
18
|
const se_GetConnectionCommand = async (input, context) => {
|
|
26
|
-
const
|
|
19
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
27
20
|
const headers = {};
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
b.bp("/@connections/{ConnectionId}");
|
|
22
|
+
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
30
23
|
let body;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
hostname,
|
|
34
|
-
port,
|
|
35
|
-
method: "GET",
|
|
36
|
-
headers,
|
|
37
|
-
path: resolvedPath,
|
|
38
|
-
body,
|
|
39
|
-
});
|
|
24
|
+
b.m("GET").h(headers).b(body);
|
|
25
|
+
return b.build();
|
|
40
26
|
};
|
|
41
27
|
exports.se_GetConnectionCommand = se_GetConnectionCommand;
|
|
42
28
|
const se_PostToConnectionCommand = async (input, context) => {
|
|
43
|
-
const
|
|
29
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
44
30
|
const headers = {
|
|
45
31
|
"content-type": "application/octet-stream",
|
|
46
32
|
};
|
|
47
|
-
|
|
48
|
-
|
|
33
|
+
b.bp("/@connections/{ConnectionId}");
|
|
34
|
+
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
49
35
|
let body;
|
|
50
36
|
if (input.Data !== undefined) {
|
|
51
37
|
body = input.Data;
|
|
52
38
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
hostname,
|
|
56
|
-
port,
|
|
57
|
-
method: "POST",
|
|
58
|
-
headers,
|
|
59
|
-
path: resolvedPath,
|
|
60
|
-
body,
|
|
61
|
-
});
|
|
39
|
+
b.m("POST").h(headers).b(body);
|
|
40
|
+
return b.build();
|
|
62
41
|
};
|
|
63
42
|
exports.se_PostToConnectionCommand = se_PostToConnectionCommand;
|
|
64
43
|
const de_DeleteConnectionCommand = async (output, context) => {
|
|
@@ -1,59 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { ApiGatewayManagementApiServiceException as __BaseException } from "../models/ApiGatewayManagementApiServiceException";
|
|
4
4
|
import { ForbiddenException, GoneException, LimitExceededException, PayloadTooLargeException, } from "../models/models_0";
|
|
5
5
|
export const se_DeleteConnectionCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {};
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
b.bp("/@connections/{ConnectionId}");
|
|
9
|
+
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
10
10
|
let body;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
hostname,
|
|
14
|
-
port,
|
|
15
|
-
method: "DELETE",
|
|
16
|
-
headers,
|
|
17
|
-
path: resolvedPath,
|
|
18
|
-
body,
|
|
19
|
-
});
|
|
11
|
+
b.m("DELETE").h(headers).b(body);
|
|
12
|
+
return b.build();
|
|
20
13
|
};
|
|
21
14
|
export const se_GetConnectionCommand = async (input, context) => {
|
|
22
|
-
const
|
|
15
|
+
const b = rb(input, context);
|
|
23
16
|
const headers = {};
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
b.bp("/@connections/{ConnectionId}");
|
|
18
|
+
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
26
19
|
let body;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
hostname,
|
|
30
|
-
port,
|
|
31
|
-
method: "GET",
|
|
32
|
-
headers,
|
|
33
|
-
path: resolvedPath,
|
|
34
|
-
body,
|
|
35
|
-
});
|
|
20
|
+
b.m("GET").h(headers).b(body);
|
|
21
|
+
return b.build();
|
|
36
22
|
};
|
|
37
23
|
export const se_PostToConnectionCommand = async (input, context) => {
|
|
38
|
-
const
|
|
24
|
+
const b = rb(input, context);
|
|
39
25
|
const headers = {
|
|
40
26
|
"content-type": "application/octet-stream",
|
|
41
27
|
};
|
|
42
|
-
|
|
43
|
-
|
|
28
|
+
b.bp("/@connections/{ConnectionId}");
|
|
29
|
+
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
44
30
|
let body;
|
|
45
31
|
if (input.Data !== undefined) {
|
|
46
32
|
body = input.Data;
|
|
47
33
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
hostname,
|
|
51
|
-
port,
|
|
52
|
-
method: "POST",
|
|
53
|
-
headers,
|
|
54
|
-
path: resolvedPath,
|
|
55
|
-
body,
|
|
56
|
-
});
|
|
34
|
+
b.m("POST").h(headers).b(body);
|
|
35
|
+
return b.build();
|
|
57
36
|
};
|
|
58
37
|
export const de_DeleteConnectionCommand = async (output, context) => {
|
|
59
38
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-apigatewaymanagementapi",
|
|
3
3
|
"description": "AWS SDK for JavaScript Apigatewaymanagementapi Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.478.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,20 +20,21 @@
|
|
|
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.478.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.478.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",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.468.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.478.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.470.0",
|
|
32
32
|
"@aws-sdk/types": "3.468.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.478.0",
|
|
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",
|