@aws-sdk/client-appconfigdata 3.476.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.
|
@@ -2,36 +2,28 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_StartConfigurationSessionCommand = exports.de_GetLatestConfigurationCommand = exports.se_StartConfigurationSessionCommand = exports.se_GetLatestConfigurationCommand = void 0;
|
|
4
4
|
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const
|
|
5
|
+
const core_2 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const AppConfigDataServiceException_1 = require("../models/AppConfigDataServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_GetLatestConfigurationCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
11
11
|
const headers = {};
|
|
12
|
-
|
|
12
|
+
b.bp("/configuration");
|
|
13
13
|
const query = (0, smithy_client_1.map)({
|
|
14
|
-
|
|
14
|
+
[_ct]: [, (0, smithy_client_1.expectNonNull)(input[_CT], `ConfigurationToken`)],
|
|
15
15
|
});
|
|
16
16
|
let body;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
hostname,
|
|
20
|
-
port,
|
|
21
|
-
method: "GET",
|
|
22
|
-
headers,
|
|
23
|
-
path: resolvedPath,
|
|
24
|
-
query,
|
|
25
|
-
body,
|
|
26
|
-
});
|
|
17
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
18
|
+
return b.build();
|
|
27
19
|
};
|
|
28
20
|
exports.se_GetLatestConfigurationCommand = se_GetLatestConfigurationCommand;
|
|
29
21
|
const se_StartConfigurationSessionCommand = async (input, context) => {
|
|
30
|
-
const
|
|
22
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
31
23
|
const headers = {
|
|
32
24
|
"content-type": "application/json",
|
|
33
25
|
};
|
|
34
|
-
|
|
26
|
+
b.bp("/configurationsessions");
|
|
35
27
|
let body;
|
|
36
28
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
37
29
|
ApplicationIdentifier: [],
|
|
@@ -39,15 +31,8 @@ const se_StartConfigurationSessionCommand = async (input, context) => {
|
|
|
39
31
|
EnvironmentIdentifier: [],
|
|
40
32
|
RequiredMinimumPollIntervalInSeconds: [],
|
|
41
33
|
}));
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
hostname,
|
|
45
|
-
port,
|
|
46
|
-
method: "POST",
|
|
47
|
-
headers,
|
|
48
|
-
path: resolvedPath,
|
|
49
|
-
body,
|
|
50
|
-
});
|
|
34
|
+
b.m("POST").h(headers).b(body);
|
|
35
|
+
return b.build();
|
|
51
36
|
};
|
|
52
37
|
exports.se_StartConfigurationSessionCommand = se_StartConfigurationSessionCommand;
|
|
53
38
|
const de_GetLatestConfigurationCommand = async (output, context) => {
|
|
@@ -56,13 +41,10 @@ const de_GetLatestConfigurationCommand = async (output, context) => {
|
|
|
56
41
|
}
|
|
57
42
|
const contents = (0, smithy_client_1.map)({
|
|
58
43
|
$metadata: deserializeMetadata(output),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
],
|
|
64
|
-
ContentType: [, output.headers["content-type"]],
|
|
65
|
-
VersionLabel: [, output.headers["version-label"]],
|
|
44
|
+
[_NPCT]: [, output.headers[_npct]],
|
|
45
|
+
[_NPIIS]: [() => void 0 !== output.headers[_npiis], () => (0, smithy_client_1.strictParseInt32)(output.headers[_npiis])],
|
|
46
|
+
[_CTo]: [, output.headers[_ct_]],
|
|
47
|
+
[_VL]: [, output.headers[_vl]],
|
|
66
48
|
});
|
|
67
49
|
const data = await (0, smithy_client_1.collectBody)(output.body, context);
|
|
68
50
|
contents.Configuration = data;
|
|
@@ -209,6 +191,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
209
191
|
value !== "" &&
|
|
210
192
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
211
193
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
194
|
+
const _CT = "ConfigurationToken";
|
|
195
|
+
const _CTo = "ContentType";
|
|
196
|
+
const _NPCT = "NextPollConfigurationToken";
|
|
197
|
+
const _NPIIS = "NextPollIntervalInSeconds";
|
|
198
|
+
const _VL = "VersionLabel";
|
|
199
|
+
const _ct = "configuration_token";
|
|
200
|
+
const _ct_ = "content-type";
|
|
201
|
+
const _npct = "next-poll-configuration-token";
|
|
202
|
+
const _npiis = "next-poll-interval-in-seconds";
|
|
203
|
+
const _vl = "version-label";
|
|
212
204
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
213
205
|
if (encoded.length) {
|
|
214
206
|
return JSON.parse(encoded);
|
|
@@ -1,33 +1,25 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
2
|
-
import {
|
|
2
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { AppConfigDataServiceException as __BaseException } from "../models/AppConfigDataServiceException";
|
|
5
5
|
import { BadRequestException, InternalServerException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
|
|
6
6
|
export const se_GetLatestConfigurationCommand = async (input, context) => {
|
|
7
|
-
const
|
|
7
|
+
const b = rb(input, context);
|
|
8
8
|
const headers = {};
|
|
9
|
-
|
|
9
|
+
b.bp("/configuration");
|
|
10
10
|
const query = map({
|
|
11
|
-
|
|
11
|
+
[_ct]: [, __expectNonNull(input[_CT], `ConfigurationToken`)],
|
|
12
12
|
});
|
|
13
13
|
let body;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
hostname,
|
|
17
|
-
port,
|
|
18
|
-
method: "GET",
|
|
19
|
-
headers,
|
|
20
|
-
path: resolvedPath,
|
|
21
|
-
query,
|
|
22
|
-
body,
|
|
23
|
-
});
|
|
14
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
15
|
+
return b.build();
|
|
24
16
|
};
|
|
25
17
|
export const se_StartConfigurationSessionCommand = async (input, context) => {
|
|
26
|
-
const
|
|
18
|
+
const b = rb(input, context);
|
|
27
19
|
const headers = {
|
|
28
20
|
"content-type": "application/json",
|
|
29
21
|
};
|
|
30
|
-
|
|
22
|
+
b.bp("/configurationsessions");
|
|
31
23
|
let body;
|
|
32
24
|
body = JSON.stringify(take(input, {
|
|
33
25
|
ApplicationIdentifier: [],
|
|
@@ -35,15 +27,8 @@ export const se_StartConfigurationSessionCommand = async (input, context) => {
|
|
|
35
27
|
EnvironmentIdentifier: [],
|
|
36
28
|
RequiredMinimumPollIntervalInSeconds: [],
|
|
37
29
|
}));
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
hostname,
|
|
41
|
-
port,
|
|
42
|
-
method: "POST",
|
|
43
|
-
headers,
|
|
44
|
-
path: resolvedPath,
|
|
45
|
-
body,
|
|
46
|
-
});
|
|
30
|
+
b.m("POST").h(headers).b(body);
|
|
31
|
+
return b.build();
|
|
47
32
|
};
|
|
48
33
|
export const de_GetLatestConfigurationCommand = async (output, context) => {
|
|
49
34
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -51,13 +36,10 @@ export const de_GetLatestConfigurationCommand = async (output, context) => {
|
|
|
51
36
|
}
|
|
52
37
|
const contents = map({
|
|
53
38
|
$metadata: deserializeMetadata(output),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
],
|
|
59
|
-
ContentType: [, output.headers["content-type"]],
|
|
60
|
-
VersionLabel: [, output.headers["version-label"]],
|
|
39
|
+
[_NPCT]: [, output.headers[_npct]],
|
|
40
|
+
[_NPIIS]: [() => void 0 !== output.headers[_npiis], () => __strictParseInt32(output.headers[_npiis])],
|
|
41
|
+
[_CTo]: [, output.headers[_ct_]],
|
|
42
|
+
[_VL]: [, output.headers[_vl]],
|
|
61
43
|
});
|
|
62
44
|
const data = await collectBody(output.body, context);
|
|
63
45
|
contents.Configuration = data;
|
|
@@ -202,6 +184,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
202
184
|
value !== "" &&
|
|
203
185
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
204
186
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
187
|
+
const _CT = "ConfigurationToken";
|
|
188
|
+
const _CTo = "ContentType";
|
|
189
|
+
const _NPCT = "NextPollConfigurationToken";
|
|
190
|
+
const _NPIIS = "NextPollIntervalInSeconds";
|
|
191
|
+
const _VL = "VersionLabel";
|
|
192
|
+
const _ct = "configuration_token";
|
|
193
|
+
const _ct_ = "content-type";
|
|
194
|
+
const _npct = "next-poll-configuration-token";
|
|
195
|
+
const _npiis = "next-poll-interval-in-seconds";
|
|
196
|
+
const _vl = "version-label";
|
|
205
197
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
206
198
|
if (encoded.length) {
|
|
207
199
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-appconfigdata",
|
|
3
3
|
"description": "AWS SDK for JavaScript Appconfigdata 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",
|