@aws-sdk/client-appsync 3.200.0 → 3.202.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/CHANGELOG.md +19 -0
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/protocols/Aws_restJson1.js +57 -61
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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.202.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.201.0...v3.202.0) (2022-11-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-appsync
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-appsync
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
var _a, _b;
|
|
6
5
|
return {
|
|
7
6
|
...options,
|
|
8
|
-
useDualstackEndpoint:
|
|
9
|
-
useFipsEndpoint:
|
|
7
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
10
9
|
defaultSigningName: "appsync",
|
|
11
10
|
};
|
|
12
11
|
};
|
|
@@ -11,7 +11,7 @@ const serializeAws_restJson1AssociateApiCommand = async (input, context) => {
|
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
|
-
let resolvedPath = `${
|
|
14
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
15
15
|
"/v1/domainnames/{domainName}/apiassociation";
|
|
16
16
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
|
|
17
17
|
let body;
|
|
@@ -34,7 +34,7 @@ const serializeAws_restJson1CreateApiCacheCommand = async (input, context) => {
|
|
|
34
34
|
const headers = {
|
|
35
35
|
"content-type": "application/json",
|
|
36
36
|
};
|
|
37
|
-
let resolvedPath = `${
|
|
37
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/ApiCaches";
|
|
38
38
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
39
39
|
let body;
|
|
40
40
|
body = JSON.stringify({
|
|
@@ -60,7 +60,7 @@ const serializeAws_restJson1CreateApiKeyCommand = async (input, context) => {
|
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/json",
|
|
62
62
|
};
|
|
63
|
-
let resolvedPath = `${
|
|
63
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/apikeys";
|
|
64
64
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
65
65
|
let body;
|
|
66
66
|
body = JSON.stringify({
|
|
@@ -83,7 +83,7 @@ const serializeAws_restJson1CreateDataSourceCommand = async (input, context) =>
|
|
|
83
83
|
const headers = {
|
|
84
84
|
"content-type": "application/json",
|
|
85
85
|
};
|
|
86
|
-
let resolvedPath = `${
|
|
86
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources";
|
|
87
87
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
88
88
|
let body;
|
|
89
89
|
body = JSON.stringify({
|
|
@@ -126,7 +126,7 @@ const serializeAws_restJson1CreateDomainNameCommand = async (input, context) =>
|
|
|
126
126
|
const headers = {
|
|
127
127
|
"content-type": "application/json",
|
|
128
128
|
};
|
|
129
|
-
const resolvedPath = `${
|
|
129
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames";
|
|
130
130
|
let body;
|
|
131
131
|
body = JSON.stringify({
|
|
132
132
|
...(input.certificateArn != null && { certificateArn: input.certificateArn }),
|
|
@@ -149,7 +149,7 @@ const serializeAws_restJson1CreateFunctionCommand = async (input, context) => {
|
|
|
149
149
|
const headers = {
|
|
150
150
|
"content-type": "application/json",
|
|
151
151
|
};
|
|
152
|
-
let resolvedPath = `${
|
|
152
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions";
|
|
153
153
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
154
154
|
let body;
|
|
155
155
|
body = JSON.stringify({
|
|
@@ -178,7 +178,7 @@ const serializeAws_restJson1CreateGraphqlApiCommand = async (input, context) =>
|
|
|
178
178
|
const headers = {
|
|
179
179
|
"content-type": "application/json",
|
|
180
180
|
};
|
|
181
|
-
const resolvedPath = `${
|
|
181
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis";
|
|
182
182
|
let body;
|
|
183
183
|
body = JSON.stringify({
|
|
184
184
|
...(input.additionalAuthenticationProviders != null && {
|
|
@@ -215,7 +215,7 @@ const serializeAws_restJson1CreateResolverCommand = async (input, context) => {
|
|
|
215
215
|
const headers = {
|
|
216
216
|
"content-type": "application/json",
|
|
217
217
|
};
|
|
218
|
-
let resolvedPath = `${
|
|
218
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
219
219
|
"/v1/apis/{apiId}/types/{typeName}/resolvers";
|
|
220
220
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
221
221
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
|
|
@@ -251,7 +251,7 @@ const serializeAws_restJson1CreateTypeCommand = async (input, context) => {
|
|
|
251
251
|
const headers = {
|
|
252
252
|
"content-type": "application/json",
|
|
253
253
|
};
|
|
254
|
-
let resolvedPath = `${
|
|
254
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types";
|
|
255
255
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
256
256
|
let body;
|
|
257
257
|
body = JSON.stringify({
|
|
@@ -272,7 +272,7 @@ exports.serializeAws_restJson1CreateTypeCommand = serializeAws_restJson1CreateTy
|
|
|
272
272
|
const serializeAws_restJson1DeleteApiCacheCommand = async (input, context) => {
|
|
273
273
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
274
274
|
const headers = {};
|
|
275
|
-
let resolvedPath = `${
|
|
275
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/ApiCaches";
|
|
276
276
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
277
277
|
let body;
|
|
278
278
|
return new protocol_http_1.HttpRequest({
|
|
@@ -289,7 +289,7 @@ exports.serializeAws_restJson1DeleteApiCacheCommand = serializeAws_restJson1Dele
|
|
|
289
289
|
const serializeAws_restJson1DeleteApiKeyCommand = async (input, context) => {
|
|
290
290
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
291
291
|
const headers = {};
|
|
292
|
-
let resolvedPath = `${
|
|
292
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/apikeys/{id}";
|
|
293
293
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
294
294
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
295
295
|
let body;
|
|
@@ -307,7 +307,7 @@ exports.serializeAws_restJson1DeleteApiKeyCommand = serializeAws_restJson1Delete
|
|
|
307
307
|
const serializeAws_restJson1DeleteDataSourceCommand = async (input, context) => {
|
|
308
308
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
309
309
|
const headers = {};
|
|
310
|
-
let resolvedPath = `${
|
|
310
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources/{name}";
|
|
311
311
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
312
312
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
313
313
|
let body;
|
|
@@ -325,7 +325,7 @@ exports.serializeAws_restJson1DeleteDataSourceCommand = serializeAws_restJson1De
|
|
|
325
325
|
const serializeAws_restJson1DeleteDomainNameCommand = async (input, context) => {
|
|
326
326
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
327
327
|
const headers = {};
|
|
328
|
-
let resolvedPath = `${
|
|
328
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}";
|
|
329
329
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
|
|
330
330
|
let body;
|
|
331
331
|
return new protocol_http_1.HttpRequest({
|
|
@@ -342,7 +342,7 @@ exports.serializeAws_restJson1DeleteDomainNameCommand = serializeAws_restJson1De
|
|
|
342
342
|
const serializeAws_restJson1DeleteFunctionCommand = async (input, context) => {
|
|
343
343
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
344
344
|
const headers = {};
|
|
345
|
-
let resolvedPath = `${
|
|
345
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions/{functionId}";
|
|
346
346
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
347
347
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "functionId", () => input.functionId, "{functionId}", false);
|
|
348
348
|
let body;
|
|
@@ -360,7 +360,7 @@ exports.serializeAws_restJson1DeleteFunctionCommand = serializeAws_restJson1Dele
|
|
|
360
360
|
const serializeAws_restJson1DeleteGraphqlApiCommand = async (input, context) => {
|
|
361
361
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
362
362
|
const headers = {};
|
|
363
|
-
let resolvedPath = `${
|
|
363
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}";
|
|
364
364
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
365
365
|
let body;
|
|
366
366
|
return new protocol_http_1.HttpRequest({
|
|
@@ -377,7 +377,7 @@ exports.serializeAws_restJson1DeleteGraphqlApiCommand = serializeAws_restJson1De
|
|
|
377
377
|
const serializeAws_restJson1DeleteResolverCommand = async (input, context) => {
|
|
378
378
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
379
379
|
const headers = {};
|
|
380
|
-
let resolvedPath = `${
|
|
380
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
381
381
|
"/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}";
|
|
382
382
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
383
383
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
|
|
@@ -397,7 +397,7 @@ exports.serializeAws_restJson1DeleteResolverCommand = serializeAws_restJson1Dele
|
|
|
397
397
|
const serializeAws_restJson1DeleteTypeCommand = async (input, context) => {
|
|
398
398
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
399
399
|
const headers = {};
|
|
400
|
-
let resolvedPath = `${
|
|
400
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types/{typeName}";
|
|
401
401
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
402
402
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
|
|
403
403
|
let body;
|
|
@@ -415,7 +415,7 @@ exports.serializeAws_restJson1DeleteTypeCommand = serializeAws_restJson1DeleteTy
|
|
|
415
415
|
const serializeAws_restJson1DisassociateApiCommand = async (input, context) => {
|
|
416
416
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
417
417
|
const headers = {};
|
|
418
|
-
let resolvedPath = `${
|
|
418
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
419
419
|
"/v1/domainnames/{domainName}/apiassociation";
|
|
420
420
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
|
|
421
421
|
let body;
|
|
@@ -435,7 +435,7 @@ const serializeAws_restJson1EvaluateMappingTemplateCommand = async (input, conte
|
|
|
435
435
|
const headers = {
|
|
436
436
|
"content-type": "application/json",
|
|
437
437
|
};
|
|
438
|
-
const resolvedPath = `${
|
|
438
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/dataplane-evaluatetemplate";
|
|
439
439
|
let body;
|
|
440
440
|
body = JSON.stringify({
|
|
441
441
|
...(input.context != null && { context: input.context }),
|
|
@@ -455,7 +455,7 @@ exports.serializeAws_restJson1EvaluateMappingTemplateCommand = serializeAws_rest
|
|
|
455
455
|
const serializeAws_restJson1FlushApiCacheCommand = async (input, context) => {
|
|
456
456
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
457
457
|
const headers = {};
|
|
458
|
-
let resolvedPath = `${
|
|
458
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/FlushCache";
|
|
459
459
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
460
460
|
let body;
|
|
461
461
|
return new protocol_http_1.HttpRequest({
|
|
@@ -472,7 +472,7 @@ exports.serializeAws_restJson1FlushApiCacheCommand = serializeAws_restJson1Flush
|
|
|
472
472
|
const serializeAws_restJson1GetApiAssociationCommand = async (input, context) => {
|
|
473
473
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
474
474
|
const headers = {};
|
|
475
|
-
let resolvedPath = `${
|
|
475
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
476
476
|
"/v1/domainnames/{domainName}/apiassociation";
|
|
477
477
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
|
|
478
478
|
let body;
|
|
@@ -490,7 +490,7 @@ exports.serializeAws_restJson1GetApiAssociationCommand = serializeAws_restJson1G
|
|
|
490
490
|
const serializeAws_restJson1GetApiCacheCommand = async (input, context) => {
|
|
491
491
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
492
492
|
const headers = {};
|
|
493
|
-
let resolvedPath = `${
|
|
493
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/ApiCaches";
|
|
494
494
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
495
495
|
let body;
|
|
496
496
|
return new protocol_http_1.HttpRequest({
|
|
@@ -507,7 +507,7 @@ exports.serializeAws_restJson1GetApiCacheCommand = serializeAws_restJson1GetApiC
|
|
|
507
507
|
const serializeAws_restJson1GetDataSourceCommand = async (input, context) => {
|
|
508
508
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
509
509
|
const headers = {};
|
|
510
|
-
let resolvedPath = `${
|
|
510
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources/{name}";
|
|
511
511
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
512
512
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
513
513
|
let body;
|
|
@@ -525,7 +525,7 @@ exports.serializeAws_restJson1GetDataSourceCommand = serializeAws_restJson1GetDa
|
|
|
525
525
|
const serializeAws_restJson1GetDomainNameCommand = async (input, context) => {
|
|
526
526
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
527
527
|
const headers = {};
|
|
528
|
-
let resolvedPath = `${
|
|
528
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}";
|
|
529
529
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
|
|
530
530
|
let body;
|
|
531
531
|
return new protocol_http_1.HttpRequest({
|
|
@@ -542,7 +542,7 @@ exports.serializeAws_restJson1GetDomainNameCommand = serializeAws_restJson1GetDo
|
|
|
542
542
|
const serializeAws_restJson1GetFunctionCommand = async (input, context) => {
|
|
543
543
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
544
544
|
const headers = {};
|
|
545
|
-
let resolvedPath = `${
|
|
545
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions/{functionId}";
|
|
546
546
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
547
547
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "functionId", () => input.functionId, "{functionId}", false);
|
|
548
548
|
let body;
|
|
@@ -560,7 +560,7 @@ exports.serializeAws_restJson1GetFunctionCommand = serializeAws_restJson1GetFunc
|
|
|
560
560
|
const serializeAws_restJson1GetGraphqlApiCommand = async (input, context) => {
|
|
561
561
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
562
562
|
const headers = {};
|
|
563
|
-
let resolvedPath = `${
|
|
563
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}";
|
|
564
564
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
565
565
|
let body;
|
|
566
566
|
return new protocol_http_1.HttpRequest({
|
|
@@ -577,7 +577,7 @@ exports.serializeAws_restJson1GetGraphqlApiCommand = serializeAws_restJson1GetGr
|
|
|
577
577
|
const serializeAws_restJson1GetIntrospectionSchemaCommand = async (input, context) => {
|
|
578
578
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
579
579
|
const headers = {};
|
|
580
|
-
let resolvedPath = `${
|
|
580
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/schema";
|
|
581
581
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
582
582
|
const query = map({
|
|
583
583
|
format: [, input.format],
|
|
@@ -599,7 +599,7 @@ exports.serializeAws_restJson1GetIntrospectionSchemaCommand = serializeAws_restJ
|
|
|
599
599
|
const serializeAws_restJson1GetResolverCommand = async (input, context) => {
|
|
600
600
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
601
601
|
const headers = {};
|
|
602
|
-
let resolvedPath = `${
|
|
602
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
603
603
|
"/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}";
|
|
604
604
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
605
605
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
|
|
@@ -619,7 +619,7 @@ exports.serializeAws_restJson1GetResolverCommand = serializeAws_restJson1GetReso
|
|
|
619
619
|
const serializeAws_restJson1GetSchemaCreationStatusCommand = async (input, context) => {
|
|
620
620
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
621
621
|
const headers = {};
|
|
622
|
-
let resolvedPath = `${
|
|
622
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/schemacreation";
|
|
623
623
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
624
624
|
let body;
|
|
625
625
|
return new protocol_http_1.HttpRequest({
|
|
@@ -636,7 +636,7 @@ exports.serializeAws_restJson1GetSchemaCreationStatusCommand = serializeAws_rest
|
|
|
636
636
|
const serializeAws_restJson1GetTypeCommand = async (input, context) => {
|
|
637
637
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
638
638
|
const headers = {};
|
|
639
|
-
let resolvedPath = `${
|
|
639
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types/{typeName}";
|
|
640
640
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
641
641
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
|
|
642
642
|
const query = map({
|
|
@@ -658,7 +658,7 @@ exports.serializeAws_restJson1GetTypeCommand = serializeAws_restJson1GetTypeComm
|
|
|
658
658
|
const serializeAws_restJson1ListApiKeysCommand = async (input, context) => {
|
|
659
659
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
660
660
|
const headers = {};
|
|
661
|
-
let resolvedPath = `${
|
|
661
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/apikeys";
|
|
662
662
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
663
663
|
const query = map({
|
|
664
664
|
nextToken: [, input.nextToken],
|
|
@@ -680,7 +680,7 @@ exports.serializeAws_restJson1ListApiKeysCommand = serializeAws_restJson1ListApi
|
|
|
680
680
|
const serializeAws_restJson1ListDataSourcesCommand = async (input, context) => {
|
|
681
681
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
682
682
|
const headers = {};
|
|
683
|
-
let resolvedPath = `${
|
|
683
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources";
|
|
684
684
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
685
685
|
const query = map({
|
|
686
686
|
nextToken: [, input.nextToken],
|
|
@@ -702,7 +702,7 @@ exports.serializeAws_restJson1ListDataSourcesCommand = serializeAws_restJson1Lis
|
|
|
702
702
|
const serializeAws_restJson1ListDomainNamesCommand = async (input, context) => {
|
|
703
703
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
704
704
|
const headers = {};
|
|
705
|
-
const resolvedPath = `${
|
|
705
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames";
|
|
706
706
|
const query = map({
|
|
707
707
|
nextToken: [, input.nextToken],
|
|
708
708
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -723,7 +723,7 @@ exports.serializeAws_restJson1ListDomainNamesCommand = serializeAws_restJson1Lis
|
|
|
723
723
|
const serializeAws_restJson1ListFunctionsCommand = async (input, context) => {
|
|
724
724
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
725
725
|
const headers = {};
|
|
726
|
-
let resolvedPath = `${
|
|
726
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions";
|
|
727
727
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
728
728
|
const query = map({
|
|
729
729
|
nextToken: [, input.nextToken],
|
|
@@ -745,7 +745,7 @@ exports.serializeAws_restJson1ListFunctionsCommand = serializeAws_restJson1ListF
|
|
|
745
745
|
const serializeAws_restJson1ListGraphqlApisCommand = async (input, context) => {
|
|
746
746
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
747
747
|
const headers = {};
|
|
748
|
-
const resolvedPath = `${
|
|
748
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis";
|
|
749
749
|
const query = map({
|
|
750
750
|
nextToken: [, input.nextToken],
|
|
751
751
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
@@ -766,7 +766,7 @@ exports.serializeAws_restJson1ListGraphqlApisCommand = serializeAws_restJson1Lis
|
|
|
766
766
|
const serializeAws_restJson1ListResolversCommand = async (input, context) => {
|
|
767
767
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
768
768
|
const headers = {};
|
|
769
|
-
let resolvedPath = `${
|
|
769
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
770
770
|
"/v1/apis/{apiId}/types/{typeName}/resolvers";
|
|
771
771
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
772
772
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
|
|
@@ -790,7 +790,7 @@ exports.serializeAws_restJson1ListResolversCommand = serializeAws_restJson1ListR
|
|
|
790
790
|
const serializeAws_restJson1ListResolversByFunctionCommand = async (input, context) => {
|
|
791
791
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
792
792
|
const headers = {};
|
|
793
|
-
let resolvedPath = `${
|
|
793
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
794
794
|
"/v1/apis/{apiId}/functions/{functionId}/resolvers";
|
|
795
795
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
796
796
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "functionId", () => input.functionId, "{functionId}", false);
|
|
@@ -814,7 +814,7 @@ exports.serializeAws_restJson1ListResolversByFunctionCommand = serializeAws_rest
|
|
|
814
814
|
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
815
815
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
816
816
|
const headers = {};
|
|
817
|
-
let resolvedPath = `${
|
|
817
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
|
|
818
818
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
819
819
|
let body;
|
|
820
820
|
return new protocol_http_1.HttpRequest({
|
|
@@ -831,7 +831,7 @@ exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson
|
|
|
831
831
|
const serializeAws_restJson1ListTypesCommand = async (input, context) => {
|
|
832
832
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
833
833
|
const headers = {};
|
|
834
|
-
let resolvedPath = `${
|
|
834
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types";
|
|
835
835
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
836
836
|
const query = map({
|
|
837
837
|
format: [, input.format],
|
|
@@ -856,7 +856,7 @@ const serializeAws_restJson1StartSchemaCreationCommand = async (input, context)
|
|
|
856
856
|
const headers = {
|
|
857
857
|
"content-type": "application/json",
|
|
858
858
|
};
|
|
859
|
-
let resolvedPath = `${
|
|
859
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/schemacreation";
|
|
860
860
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
861
861
|
let body;
|
|
862
862
|
body = JSON.stringify({
|
|
@@ -878,7 +878,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
878
878
|
const headers = {
|
|
879
879
|
"content-type": "application/json",
|
|
880
880
|
};
|
|
881
|
-
let resolvedPath = `${
|
|
881
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
|
|
882
882
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
883
883
|
let body;
|
|
884
884
|
body = JSON.stringify({
|
|
@@ -898,7 +898,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
|
|
|
898
898
|
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
899
899
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
900
900
|
const headers = {};
|
|
901
|
-
let resolvedPath = `${
|
|
901
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
|
|
902
902
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
903
903
|
const query = map({
|
|
904
904
|
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys || []).map((_entry) => _entry)],
|
|
@@ -921,7 +921,7 @@ const serializeAws_restJson1UpdateApiCacheCommand = async (input, context) => {
|
|
|
921
921
|
const headers = {
|
|
922
922
|
"content-type": "application/json",
|
|
923
923
|
};
|
|
924
|
-
let resolvedPath = `${
|
|
924
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/ApiCaches/update";
|
|
925
925
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
926
926
|
let body;
|
|
927
927
|
body = JSON.stringify({
|
|
@@ -945,7 +945,7 @@ const serializeAws_restJson1UpdateApiKeyCommand = async (input, context) => {
|
|
|
945
945
|
const headers = {
|
|
946
946
|
"content-type": "application/json",
|
|
947
947
|
};
|
|
948
|
-
let resolvedPath = `${
|
|
948
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/apikeys/{id}";
|
|
949
949
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
950
950
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
951
951
|
let body;
|
|
@@ -969,7 +969,7 @@ const serializeAws_restJson1UpdateDataSourceCommand = async (input, context) =>
|
|
|
969
969
|
const headers = {
|
|
970
970
|
"content-type": "application/json",
|
|
971
971
|
};
|
|
972
|
-
let resolvedPath = `${
|
|
972
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/datasources/{name}";
|
|
973
973
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
974
974
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
975
975
|
let body;
|
|
@@ -1012,7 +1012,7 @@ const serializeAws_restJson1UpdateDomainNameCommand = async (input, context) =>
|
|
|
1012
1012
|
const headers = {
|
|
1013
1013
|
"content-type": "application/json",
|
|
1014
1014
|
};
|
|
1015
|
-
let resolvedPath = `${
|
|
1015
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/domainnames/{domainName}";
|
|
1016
1016
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainName", () => input.domainName, "{domainName}", false);
|
|
1017
1017
|
let body;
|
|
1018
1018
|
body = JSON.stringify({
|
|
@@ -1034,7 +1034,7 @@ const serializeAws_restJson1UpdateFunctionCommand = async (input, context) => {
|
|
|
1034
1034
|
const headers = {
|
|
1035
1035
|
"content-type": "application/json",
|
|
1036
1036
|
};
|
|
1037
|
-
let resolvedPath = `${
|
|
1037
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/functions/{functionId}";
|
|
1038
1038
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
1039
1039
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "functionId", () => input.functionId, "{functionId}", false);
|
|
1040
1040
|
let body;
|
|
@@ -1064,7 +1064,7 @@ const serializeAws_restJson1UpdateGraphqlApiCommand = async (input, context) =>
|
|
|
1064
1064
|
const headers = {
|
|
1065
1065
|
"content-type": "application/json",
|
|
1066
1066
|
};
|
|
1067
|
-
let resolvedPath = `${
|
|
1067
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}";
|
|
1068
1068
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
1069
1069
|
let body;
|
|
1070
1070
|
body = JSON.stringify({
|
|
@@ -1101,7 +1101,7 @@ const serializeAws_restJson1UpdateResolverCommand = async (input, context) => {
|
|
|
1101
1101
|
const headers = {
|
|
1102
1102
|
"content-type": "application/json",
|
|
1103
1103
|
};
|
|
1104
|
-
let resolvedPath = `${
|
|
1104
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1105
1105
|
"/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}";
|
|
1106
1106
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
1107
1107
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
|
|
@@ -1137,7 +1137,7 @@ const serializeAws_restJson1UpdateTypeCommand = async (input, context) => {
|
|
|
1137
1137
|
const headers = {
|
|
1138
1138
|
"content-type": "application/json",
|
|
1139
1139
|
};
|
|
1140
|
-
let resolvedPath = `${
|
|
1140
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types/{typeName}";
|
|
1141
1141
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "apiId", () => input.apiId, "{apiId}", false);
|
|
1142
1142
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "typeName", () => input.typeName, "{typeName}", false);
|
|
1143
1143
|
let body;
|
|
@@ -4119,15 +4119,12 @@ const deserializeAws_restJson1UserPoolConfig = (output, context) => {
|
|
|
4119
4119
|
userPoolId: (0, smithy_client_1.expectString)(output.userPoolId),
|
|
4120
4120
|
};
|
|
4121
4121
|
};
|
|
4122
|
-
const deserializeMetadata = (output) => {
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4129
|
-
});
|
|
4130
|
-
};
|
|
4122
|
+
const deserializeMetadata = (output) => ({
|
|
4123
|
+
httpStatusCode: output.statusCode,
|
|
4124
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
4125
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4126
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
4127
|
+
});
|
|
4131
4128
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
4132
4129
|
if (streamBody instanceof Uint8Array) {
|
|
4133
4130
|
return Promise.resolve(streamBody);
|
|
@@ -4147,9 +4144,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
4147
4144
|
return {};
|
|
4148
4145
|
});
|
|
4149
4146
|
const parseErrorBody = async (errorBody, context) => {
|
|
4150
|
-
var _a;
|
|
4151
4147
|
const value = await parseBody(errorBody, context);
|
|
4152
|
-
value.message =
|
|
4148
|
+
value.message = value.message ?? value.Message;
|
|
4153
4149
|
return value;
|
|
4154
4150
|
};
|
|
4155
4151
|
const loadRestJsonErrorCode = (output, data) => {
|
|
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
|
16
16
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
19
|
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
20
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
21
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
|
|
|
25
24
|
...config,
|
|
26
25
|
runtime: "browser",
|
|
27
26
|
defaultsMode,
|
|
28
|
-
base64Decoder:
|
|
29
|
-
base64Encoder:
|
|
30
|
-
bodyLengthChecker:
|
|
31
|
-
credentialDefaultProvider:
|
|
32
|
-
defaultUserAgentProvider:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
21
|
const getRuntimeConfig = (config) => {
|
|
22
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
22
|
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
|
|
|
29
28
|
...config,
|
|
30
29
|
runtime: "node",
|
|
31
30
|
defaultsMode,
|
|
32
|
-
base64Decoder:
|
|
33
|
-
base64Encoder:
|
|
34
|
-
bodyLengthChecker:
|
|
35
|
-
credentialDefaultProvider:
|
|
36
|
-
defaultUserAgentProvider:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
|
|
32
|
+
base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
|
|
33
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
(0, node_config_provider_1.loadConfig)({
|
|
42
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
44
|
+
}),
|
|
45
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
46
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
49
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
|
|
50
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
|
|
50
51
|
};
|
|
51
52
|
};
|
|
52
53
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -4,13 +4,12 @@ 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
6
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
var _a;
|
|
8
7
|
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
8
|
return {
|
|
10
9
|
...browserDefaults,
|
|
11
10
|
...config,
|
|
12
11
|
runtime: "react-native",
|
|
13
|
-
sha256:
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
15
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
|
-
const getRuntimeConfig = (config) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
-
});
|
|
16
|
-
};
|
|
6
|
+
const getRuntimeConfig = (config) => ({
|
|
7
|
+
apiVersion: "2017-07-25",
|
|
8
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
|
+
logger: config?.logger ?? {},
|
|
11
|
+
serviceId: config?.serviceId ?? "AppSync",
|
|
12
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
13
|
+
});
|
|
17
14
|
exports.getRuntimeConfig = getRuntimeConfig;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-appsync",
|
|
3
3
|
"description": "AWS SDK for JavaScript Appsync Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.202.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",
|
|
@@ -19,44 +19,44 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.202.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.201.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.202.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.201.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.201.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.201.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.201.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.201.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.201.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.201.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.201.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.201.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.201.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.201.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.201.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.201.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.201.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.201.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.201.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.201.0",
|
|
42
|
+
"@aws-sdk/types": "3.201.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.201.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.201.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.201.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.201.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.201.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.202.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-browser": "3.201.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-node": "3.201.0",
|
|
53
53
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
54
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
54
|
+
"@aws-sdk/util-utf8-node": "3.201.0",
|
|
55
55
|
"tslib": "^2.3.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@aws-sdk/service-client-documentation-generator": "3.188.0",
|
|
59
|
-
"@tsconfig/
|
|
59
|
+
"@tsconfig/node14": "1.0.3",
|
|
60
60
|
"@types/node": "^12.7.5",
|
|
61
61
|
"concurrently": "7.0.0",
|
|
62
62
|
"downlevel-dts": "0.10.1",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
|
-
"node": ">=
|
|
73
|
+
"node": ">=14.0.0"
|
|
74
74
|
},
|
|
75
75
|
"typesVersions": {
|
|
76
76
|
"<4.0": {
|