@aws-sdk/client-location 3.199.0 → 3.201.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 +60 -64
- 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.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* 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))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-location
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.199.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.198.0...v3.199.0) (2022-10-28)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-location
|
|
@@ -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: "geo",
|
|
11
10
|
};
|
|
12
11
|
};
|
|
@@ -12,7 +12,7 @@ const serializeAws_restJson1AssociateTrackerConsumerCommand = async (input, cont
|
|
|
12
12
|
const headers = {
|
|
13
13
|
"content-type": "application/json",
|
|
14
14
|
};
|
|
15
|
-
let resolvedPath = `${
|
|
15
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
16
16
|
"/tracking/v0/trackers/{TrackerName}/consumers";
|
|
17
17
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
18
18
|
let body;
|
|
@@ -42,7 +42,7 @@ const serializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = async (inp
|
|
|
42
42
|
const headers = {
|
|
43
43
|
"content-type": "application/json",
|
|
44
44
|
};
|
|
45
|
-
let resolvedPath = `${
|
|
45
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
46
46
|
"/tracking/v0/trackers/{TrackerName}/delete-positions";
|
|
47
47
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
48
48
|
let body;
|
|
@@ -72,7 +72,7 @@ const serializeAws_restJson1BatchDeleteGeofenceCommand = async (input, context)
|
|
|
72
72
|
const headers = {
|
|
73
73
|
"content-type": "application/json",
|
|
74
74
|
};
|
|
75
|
-
let resolvedPath = `${
|
|
75
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
76
76
|
"/geofencing/v0/collections/{CollectionName}/delete-geofences";
|
|
77
77
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
78
78
|
let body;
|
|
@@ -102,7 +102,7 @@ const serializeAws_restJson1BatchEvaluateGeofencesCommand = async (input, contex
|
|
|
102
102
|
const headers = {
|
|
103
103
|
"content-type": "application/json",
|
|
104
104
|
};
|
|
105
|
-
let resolvedPath = `${
|
|
105
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
106
106
|
"/geofencing/v0/collections/{CollectionName}/positions";
|
|
107
107
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
108
108
|
let body;
|
|
@@ -134,7 +134,7 @@ const serializeAws_restJson1BatchGetDevicePositionCommand = async (input, contex
|
|
|
134
134
|
const headers = {
|
|
135
135
|
"content-type": "application/json",
|
|
136
136
|
};
|
|
137
|
-
let resolvedPath = `${
|
|
137
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
138
138
|
"/tracking/v0/trackers/{TrackerName}/get-positions";
|
|
139
139
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
140
140
|
let body;
|
|
@@ -164,7 +164,7 @@ const serializeAws_restJson1BatchPutGeofenceCommand = async (input, context) =>
|
|
|
164
164
|
const headers = {
|
|
165
165
|
"content-type": "application/json",
|
|
166
166
|
};
|
|
167
|
-
let resolvedPath = `${
|
|
167
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
168
168
|
"/geofencing/v0/collections/{CollectionName}/put-geofences";
|
|
169
169
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
170
170
|
let body;
|
|
@@ -196,7 +196,7 @@ const serializeAws_restJson1BatchUpdateDevicePositionCommand = async (input, con
|
|
|
196
196
|
const headers = {
|
|
197
197
|
"content-type": "application/json",
|
|
198
198
|
};
|
|
199
|
-
let resolvedPath = `${
|
|
199
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
200
200
|
"/tracking/v0/trackers/{TrackerName}/positions";
|
|
201
201
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
202
202
|
let body;
|
|
@@ -226,7 +226,7 @@ const serializeAws_restJson1CalculateRouteCommand = async (input, context) => {
|
|
|
226
226
|
const headers = {
|
|
227
227
|
"content-type": "application/json",
|
|
228
228
|
};
|
|
229
|
-
let resolvedPath = `${
|
|
229
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
230
230
|
"/routes/v0/calculators/{CalculatorName}/calculate/route";
|
|
231
231
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
232
232
|
let body;
|
|
@@ -275,7 +275,7 @@ const serializeAws_restJson1CalculateRouteMatrixCommand = async (input, context)
|
|
|
275
275
|
const headers = {
|
|
276
276
|
"content-type": "application/json",
|
|
277
277
|
};
|
|
278
|
-
let resolvedPath = `${
|
|
278
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
279
279
|
"/routes/v0/calculators/{CalculatorName}/calculate/route-matrix";
|
|
280
280
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
281
281
|
let body;
|
|
@@ -320,7 +320,7 @@ const serializeAws_restJson1CreateGeofenceCollectionCommand = async (input, cont
|
|
|
320
320
|
const headers = {
|
|
321
321
|
"content-type": "application/json",
|
|
322
322
|
};
|
|
323
|
-
const resolvedPath = `${
|
|
323
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/geofencing/v0/collections";
|
|
324
324
|
let body;
|
|
325
325
|
body = JSON.stringify({
|
|
326
326
|
...(input.CollectionName != null && { CollectionName: input.CollectionName }),
|
|
@@ -353,7 +353,7 @@ const serializeAws_restJson1CreateMapCommand = async (input, context) => {
|
|
|
353
353
|
const headers = {
|
|
354
354
|
"content-type": "application/json",
|
|
355
355
|
};
|
|
356
|
-
const resolvedPath = `${
|
|
356
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps";
|
|
357
357
|
let body;
|
|
358
358
|
body = JSON.stringify({
|
|
359
359
|
...(input.Configuration != null && {
|
|
@@ -387,7 +387,7 @@ const serializeAws_restJson1CreatePlaceIndexCommand = async (input, context) =>
|
|
|
387
387
|
const headers = {
|
|
388
388
|
"content-type": "application/json",
|
|
389
389
|
};
|
|
390
|
-
const resolvedPath = `${
|
|
390
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/indexes";
|
|
391
391
|
let body;
|
|
392
392
|
body = JSON.stringify({
|
|
393
393
|
...(input.DataSource != null && { DataSource: input.DataSource }),
|
|
@@ -422,7 +422,7 @@ const serializeAws_restJson1CreateRouteCalculatorCommand = async (input, context
|
|
|
422
422
|
const headers = {
|
|
423
423
|
"content-type": "application/json",
|
|
424
424
|
};
|
|
425
|
-
const resolvedPath = `${
|
|
425
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/calculators";
|
|
426
426
|
let body;
|
|
427
427
|
body = JSON.stringify({
|
|
428
428
|
...(input.CalculatorName != null && { CalculatorName: input.CalculatorName }),
|
|
@@ -454,7 +454,7 @@ const serializeAws_restJson1CreateTrackerCommand = async (input, context) => {
|
|
|
454
454
|
const headers = {
|
|
455
455
|
"content-type": "application/json",
|
|
456
456
|
};
|
|
457
|
-
const resolvedPath = `${
|
|
457
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/trackers";
|
|
458
458
|
let body;
|
|
459
459
|
body = JSON.stringify({
|
|
460
460
|
...(input.Description != null && { Description: input.Description }),
|
|
@@ -486,7 +486,7 @@ exports.serializeAws_restJson1CreateTrackerCommand = serializeAws_restJson1Creat
|
|
|
486
486
|
const serializeAws_restJson1DeleteGeofenceCollectionCommand = async (input, context) => {
|
|
487
487
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
488
488
|
const headers = {};
|
|
489
|
-
let resolvedPath = `${
|
|
489
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
490
490
|
"/geofencing/v0/collections/{CollectionName}";
|
|
491
491
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
492
492
|
let body;
|
|
@@ -511,7 +511,7 @@ exports.serializeAws_restJson1DeleteGeofenceCollectionCommand = serializeAws_res
|
|
|
511
511
|
const serializeAws_restJson1DeleteMapCommand = async (input, context) => {
|
|
512
512
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
513
513
|
const headers = {};
|
|
514
|
-
let resolvedPath = `${
|
|
514
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps/{MapName}";
|
|
515
515
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MapName", () => input.MapName, "{MapName}", false);
|
|
516
516
|
let body;
|
|
517
517
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -535,7 +535,7 @@ exports.serializeAws_restJson1DeleteMapCommand = serializeAws_restJson1DeleteMap
|
|
|
535
535
|
const serializeAws_restJson1DeletePlaceIndexCommand = async (input, context) => {
|
|
536
536
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
537
537
|
const headers = {};
|
|
538
|
-
let resolvedPath = `${
|
|
538
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/indexes/{IndexName}";
|
|
539
539
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
540
540
|
let body;
|
|
541
541
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -559,7 +559,7 @@ exports.serializeAws_restJson1DeletePlaceIndexCommand = serializeAws_restJson1De
|
|
|
559
559
|
const serializeAws_restJson1DeleteRouteCalculatorCommand = async (input, context) => {
|
|
560
560
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
561
561
|
const headers = {};
|
|
562
|
-
let resolvedPath = `${
|
|
562
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/calculators/{CalculatorName}";
|
|
563
563
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
564
564
|
let body;
|
|
565
565
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -583,7 +583,7 @@ exports.serializeAws_restJson1DeleteRouteCalculatorCommand = serializeAws_restJs
|
|
|
583
583
|
const serializeAws_restJson1DeleteTrackerCommand = async (input, context) => {
|
|
584
584
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
585
585
|
const headers = {};
|
|
586
|
-
let resolvedPath = `${
|
|
586
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/trackers/{TrackerName}";
|
|
587
587
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
588
588
|
let body;
|
|
589
589
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -607,7 +607,7 @@ exports.serializeAws_restJson1DeleteTrackerCommand = serializeAws_restJson1Delet
|
|
|
607
607
|
const serializeAws_restJson1DescribeGeofenceCollectionCommand = async (input, context) => {
|
|
608
608
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
609
609
|
const headers = {};
|
|
610
|
-
let resolvedPath = `${
|
|
610
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
611
611
|
"/geofencing/v0/collections/{CollectionName}";
|
|
612
612
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
613
613
|
let body;
|
|
@@ -632,7 +632,7 @@ exports.serializeAws_restJson1DescribeGeofenceCollectionCommand = serializeAws_r
|
|
|
632
632
|
const serializeAws_restJson1DescribeMapCommand = async (input, context) => {
|
|
633
633
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
634
634
|
const headers = {};
|
|
635
|
-
let resolvedPath = `${
|
|
635
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps/{MapName}";
|
|
636
636
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MapName", () => input.MapName, "{MapName}", false);
|
|
637
637
|
let body;
|
|
638
638
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -656,7 +656,7 @@ exports.serializeAws_restJson1DescribeMapCommand = serializeAws_restJson1Describ
|
|
|
656
656
|
const serializeAws_restJson1DescribePlaceIndexCommand = async (input, context) => {
|
|
657
657
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
658
658
|
const headers = {};
|
|
659
|
-
let resolvedPath = `${
|
|
659
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/indexes/{IndexName}";
|
|
660
660
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
661
661
|
let body;
|
|
662
662
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -680,7 +680,7 @@ exports.serializeAws_restJson1DescribePlaceIndexCommand = serializeAws_restJson1
|
|
|
680
680
|
const serializeAws_restJson1DescribeRouteCalculatorCommand = 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 || ""}` + "/routes/v0/calculators/{CalculatorName}";
|
|
684
684
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
685
685
|
let body;
|
|
686
686
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -704,7 +704,7 @@ exports.serializeAws_restJson1DescribeRouteCalculatorCommand = serializeAws_rest
|
|
|
704
704
|
const serializeAws_restJson1DescribeTrackerCommand = async (input, context) => {
|
|
705
705
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
706
706
|
const headers = {};
|
|
707
|
-
let resolvedPath = `${
|
|
707
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/trackers/{TrackerName}";
|
|
708
708
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
709
709
|
let body;
|
|
710
710
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -728,7 +728,7 @@ exports.serializeAws_restJson1DescribeTrackerCommand = serializeAws_restJson1Des
|
|
|
728
728
|
const serializeAws_restJson1DisassociateTrackerConsumerCommand = async (input, context) => {
|
|
729
729
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
730
730
|
const headers = {};
|
|
731
|
-
let resolvedPath = `${
|
|
731
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
732
732
|
"/tracking/v0/trackers/{TrackerName}/consumers/{ConsumerArn}";
|
|
733
733
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
734
734
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ConsumerArn", () => input.ConsumerArn, "{ConsumerArn}", false);
|
|
@@ -754,7 +754,7 @@ exports.serializeAws_restJson1DisassociateTrackerConsumerCommand = serializeAws_
|
|
|
754
754
|
const serializeAws_restJson1GetDevicePositionCommand = async (input, context) => {
|
|
755
755
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
756
756
|
const headers = {};
|
|
757
|
-
let resolvedPath = `${
|
|
757
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
758
758
|
"/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/positions/latest";
|
|
759
759
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
760
760
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
@@ -782,7 +782,7 @@ const serializeAws_restJson1GetDevicePositionHistoryCommand = async (input, cont
|
|
|
782
782
|
const headers = {
|
|
783
783
|
"content-type": "application/json",
|
|
784
784
|
};
|
|
785
|
-
let resolvedPath = `${
|
|
785
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
786
786
|
"/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/list-positions";
|
|
787
787
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
788
788
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
@@ -818,7 +818,7 @@ exports.serializeAws_restJson1GetDevicePositionHistoryCommand = serializeAws_res
|
|
|
818
818
|
const serializeAws_restJson1GetGeofenceCommand = async (input, context) => {
|
|
819
819
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
820
820
|
const headers = {};
|
|
821
|
-
let resolvedPath = `${
|
|
821
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
822
822
|
"/geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}";
|
|
823
823
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
824
824
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GeofenceId", () => input.GeofenceId, "{GeofenceId}", false);
|
|
@@ -844,7 +844,7 @@ exports.serializeAws_restJson1GetGeofenceCommand = serializeAws_restJson1GetGeof
|
|
|
844
844
|
const serializeAws_restJson1GetMapGlyphsCommand = async (input, context) => {
|
|
845
845
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
846
846
|
const headers = {};
|
|
847
|
-
let resolvedPath = `${
|
|
847
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
848
848
|
"/maps/v0/maps/{MapName}/glyphs/{FontStack}/{FontUnicodeRange}";
|
|
849
849
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MapName", () => input.MapName, "{MapName}", false);
|
|
850
850
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FontStack", () => input.FontStack, "{FontStack}", false);
|
|
@@ -871,7 +871,7 @@ exports.serializeAws_restJson1GetMapGlyphsCommand = serializeAws_restJson1GetMap
|
|
|
871
871
|
const serializeAws_restJson1GetMapSpritesCommand = async (input, context) => {
|
|
872
872
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
873
873
|
const headers = {};
|
|
874
|
-
let resolvedPath = `${
|
|
874
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
875
875
|
"/maps/v0/maps/{MapName}/sprites/{FileName}";
|
|
876
876
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MapName", () => input.MapName, "{MapName}", false);
|
|
877
877
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "FileName", () => input.FileName, "{FileName}", false);
|
|
@@ -897,7 +897,7 @@ exports.serializeAws_restJson1GetMapSpritesCommand = serializeAws_restJson1GetMa
|
|
|
897
897
|
const serializeAws_restJson1GetMapStyleDescriptorCommand = async (input, context) => {
|
|
898
898
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
899
899
|
const headers = {};
|
|
900
|
-
let resolvedPath = `${
|
|
900
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps/{MapName}/style-descriptor";
|
|
901
901
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MapName", () => input.MapName, "{MapName}", false);
|
|
902
902
|
let body;
|
|
903
903
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -921,7 +921,7 @@ exports.serializeAws_restJson1GetMapStyleDescriptorCommand = serializeAws_restJs
|
|
|
921
921
|
const serializeAws_restJson1GetMapTileCommand = async (input, context) => {
|
|
922
922
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
923
923
|
const headers = {};
|
|
924
|
-
let resolvedPath = `${
|
|
924
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps/{MapName}/tiles/{Z}/{X}/{Y}";
|
|
925
925
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MapName", () => input.MapName, "{MapName}", false);
|
|
926
926
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Z", () => input.Z, "{Z}", false);
|
|
927
927
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "X", () => input.X, "{X}", false);
|
|
@@ -948,7 +948,7 @@ exports.serializeAws_restJson1GetMapTileCommand = serializeAws_restJson1GetMapTi
|
|
|
948
948
|
const serializeAws_restJson1GetPlaceCommand = async (input, context) => {
|
|
949
949
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
950
950
|
const headers = {};
|
|
951
|
-
let resolvedPath = `${
|
|
951
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
952
952
|
"/places/v0/indexes/{IndexName}/places/{PlaceId}";
|
|
953
953
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
954
954
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "PlaceId", () => input.PlaceId, "{PlaceId}", false);
|
|
@@ -980,7 +980,7 @@ const serializeAws_restJson1ListDevicePositionsCommand = async (input, context)
|
|
|
980
980
|
const headers = {
|
|
981
981
|
"content-type": "application/json",
|
|
982
982
|
};
|
|
983
|
-
let resolvedPath = `${
|
|
983
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
984
984
|
"/tracking/v0/trackers/{TrackerName}/list-positions";
|
|
985
985
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
986
986
|
let body;
|
|
@@ -1011,7 +1011,7 @@ const serializeAws_restJson1ListGeofenceCollectionsCommand = async (input, conte
|
|
|
1011
1011
|
const headers = {
|
|
1012
1012
|
"content-type": "application/json",
|
|
1013
1013
|
};
|
|
1014
|
-
const resolvedPath = `${
|
|
1014
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/geofencing/v0/list-collections";
|
|
1015
1015
|
let body;
|
|
1016
1016
|
body = JSON.stringify({
|
|
1017
1017
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -1040,7 +1040,7 @@ const serializeAws_restJson1ListGeofencesCommand = async (input, context) => {
|
|
|
1040
1040
|
const headers = {
|
|
1041
1041
|
"content-type": "application/json",
|
|
1042
1042
|
};
|
|
1043
|
-
let resolvedPath = `${
|
|
1043
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1044
1044
|
"/geofencing/v0/collections/{CollectionName}/list-geofences";
|
|
1045
1045
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
1046
1046
|
let body;
|
|
@@ -1071,7 +1071,7 @@ const serializeAws_restJson1ListMapsCommand = async (input, context) => {
|
|
|
1071
1071
|
const headers = {
|
|
1072
1072
|
"content-type": "application/json",
|
|
1073
1073
|
};
|
|
1074
|
-
const resolvedPath = `${
|
|
1074
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/list-maps";
|
|
1075
1075
|
let body;
|
|
1076
1076
|
body = JSON.stringify({
|
|
1077
1077
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -1100,7 +1100,7 @@ const serializeAws_restJson1ListPlaceIndexesCommand = async (input, context) =>
|
|
|
1100
1100
|
const headers = {
|
|
1101
1101
|
"content-type": "application/json",
|
|
1102
1102
|
};
|
|
1103
|
-
const resolvedPath = `${
|
|
1103
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/list-indexes";
|
|
1104
1104
|
let body;
|
|
1105
1105
|
body = JSON.stringify({
|
|
1106
1106
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -1129,7 +1129,7 @@ const serializeAws_restJson1ListRouteCalculatorsCommand = async (input, context)
|
|
|
1129
1129
|
const headers = {
|
|
1130
1130
|
"content-type": "application/json",
|
|
1131
1131
|
};
|
|
1132
|
-
const resolvedPath = `${
|
|
1132
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/list-calculators";
|
|
1133
1133
|
let body;
|
|
1134
1134
|
body = JSON.stringify({
|
|
1135
1135
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -1156,7 +1156,7 @@ exports.serializeAws_restJson1ListRouteCalculatorsCommand = serializeAws_restJso
|
|
|
1156
1156
|
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
1157
1157
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1158
1158
|
const headers = {};
|
|
1159
|
-
let resolvedPath = `${
|
|
1159
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
1160
1160
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1161
1161
|
let body;
|
|
1162
1162
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1182,7 +1182,7 @@ const serializeAws_restJson1ListTrackerConsumersCommand = async (input, context)
|
|
|
1182
1182
|
const headers = {
|
|
1183
1183
|
"content-type": "application/json",
|
|
1184
1184
|
};
|
|
1185
|
-
let resolvedPath = `${
|
|
1185
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1186
1186
|
"/tracking/v0/trackers/{TrackerName}/list-consumers";
|
|
1187
1187
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
1188
1188
|
let body;
|
|
@@ -1213,7 +1213,7 @@ const serializeAws_restJson1ListTrackersCommand = async (input, context) => {
|
|
|
1213
1213
|
const headers = {
|
|
1214
1214
|
"content-type": "application/json",
|
|
1215
1215
|
};
|
|
1216
|
-
const resolvedPath = `${
|
|
1216
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/list-trackers";
|
|
1217
1217
|
let body;
|
|
1218
1218
|
body = JSON.stringify({
|
|
1219
1219
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -1242,7 +1242,7 @@ const serializeAws_restJson1PutGeofenceCommand = async (input, context) => {
|
|
|
1242
1242
|
const headers = {
|
|
1243
1243
|
"content-type": "application/json",
|
|
1244
1244
|
};
|
|
1245
|
-
let resolvedPath = `${
|
|
1245
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1246
1246
|
"/geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}";
|
|
1247
1247
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
1248
1248
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "GeofenceId", () => input.GeofenceId, "{GeofenceId}", false);
|
|
@@ -1273,7 +1273,7 @@ const serializeAws_restJson1SearchPlaceIndexForPositionCommand = async (input, c
|
|
|
1273
1273
|
const headers = {
|
|
1274
1274
|
"content-type": "application/json",
|
|
1275
1275
|
};
|
|
1276
|
-
let resolvedPath = `${
|
|
1276
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1277
1277
|
"/places/v0/indexes/{IndexName}/search/position";
|
|
1278
1278
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1279
1279
|
let body;
|
|
@@ -1305,7 +1305,7 @@ const serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = async (input
|
|
|
1305
1305
|
const headers = {
|
|
1306
1306
|
"content-type": "application/json",
|
|
1307
1307
|
};
|
|
1308
|
-
let resolvedPath = `${
|
|
1308
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1309
1309
|
"/places/v0/indexes/{IndexName}/search/suggestions";
|
|
1310
1310
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1311
1311
|
let body;
|
|
@@ -1342,7 +1342,7 @@ const serializeAws_restJson1SearchPlaceIndexForTextCommand = async (input, conte
|
|
|
1342
1342
|
const headers = {
|
|
1343
1343
|
"content-type": "application/json",
|
|
1344
1344
|
};
|
|
1345
|
-
let resolvedPath = `${
|
|
1345
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1346
1346
|
"/places/v0/indexes/{IndexName}/search/text";
|
|
1347
1347
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1348
1348
|
let body;
|
|
@@ -1379,7 +1379,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1379
1379
|
const headers = {
|
|
1380
1380
|
"content-type": "application/json",
|
|
1381
1381
|
};
|
|
1382
|
-
let resolvedPath = `${
|
|
1382
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
1383
1383
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1384
1384
|
let body;
|
|
1385
1385
|
body = JSON.stringify({
|
|
@@ -1406,7 +1406,7 @@ exports.serializeAws_restJson1TagResourceCommand = serializeAws_restJson1TagReso
|
|
|
1406
1406
|
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
1407
1407
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1408
1408
|
const headers = {};
|
|
1409
|
-
let resolvedPath = `${
|
|
1409
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
1410
1410
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1411
1411
|
const query = map({
|
|
1412
1412
|
tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
|
|
@@ -1436,7 +1436,7 @@ const serializeAws_restJson1UpdateGeofenceCollectionCommand = async (input, cont
|
|
|
1436
1436
|
const headers = {
|
|
1437
1437
|
"content-type": "application/json",
|
|
1438
1438
|
};
|
|
1439
|
-
let resolvedPath = `${
|
|
1439
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1440
1440
|
"/geofencing/v0/collections/{CollectionName}";
|
|
1441
1441
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
1442
1442
|
let body;
|
|
@@ -1468,7 +1468,7 @@ const serializeAws_restJson1UpdateMapCommand = async (input, context) => {
|
|
|
1468
1468
|
const headers = {
|
|
1469
1469
|
"content-type": "application/json",
|
|
1470
1470
|
};
|
|
1471
|
-
let resolvedPath = `${
|
|
1471
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps/{MapName}";
|
|
1472
1472
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "MapName", () => input.MapName, "{MapName}", false);
|
|
1473
1473
|
let body;
|
|
1474
1474
|
body = JSON.stringify({
|
|
@@ -1498,7 +1498,7 @@ const serializeAws_restJson1UpdatePlaceIndexCommand = async (input, context) =>
|
|
|
1498
1498
|
const headers = {
|
|
1499
1499
|
"content-type": "application/json",
|
|
1500
1500
|
};
|
|
1501
|
-
let resolvedPath = `${
|
|
1501
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/indexes/{IndexName}";
|
|
1502
1502
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1503
1503
|
let body;
|
|
1504
1504
|
body = JSON.stringify({
|
|
@@ -1531,7 +1531,7 @@ const serializeAws_restJson1UpdateRouteCalculatorCommand = async (input, context
|
|
|
1531
1531
|
const headers = {
|
|
1532
1532
|
"content-type": "application/json",
|
|
1533
1533
|
};
|
|
1534
|
-
let resolvedPath = `${
|
|
1534
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/calculators/{CalculatorName}";
|
|
1535
1535
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
1536
1536
|
let body;
|
|
1537
1537
|
body = JSON.stringify({
|
|
@@ -1561,7 +1561,7 @@ const serializeAws_restJson1UpdateTrackerCommand = async (input, context) => {
|
|
|
1561
1561
|
const headers = {
|
|
1562
1562
|
"content-type": "application/json",
|
|
1563
1563
|
};
|
|
1564
|
-
let resolvedPath = `${
|
|
1564
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/trackers/{TrackerName}";
|
|
1565
1565
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
1566
1566
|
let body;
|
|
1567
1567
|
body = JSON.stringify({
|
|
@@ -5183,15 +5183,12 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
|
|
|
5183
5183
|
});
|
|
5184
5184
|
return retVal;
|
|
5185
5185
|
};
|
|
5186
|
-
const deserializeMetadata = (output) => {
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
5193
|
-
});
|
|
5194
|
-
};
|
|
5186
|
+
const deserializeMetadata = (output) => ({
|
|
5187
|
+
httpStatusCode: output.statusCode,
|
|
5188
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
5189
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
5190
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
5191
|
+
});
|
|
5195
5192
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
5196
5193
|
if (streamBody instanceof Uint8Array) {
|
|
5197
5194
|
return Promise.resolve(streamBody);
|
|
@@ -5211,9 +5208,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
5211
5208
|
return {};
|
|
5212
5209
|
});
|
|
5213
5210
|
const parseErrorBody = async (errorBody, context) => {
|
|
5214
|
-
var _a;
|
|
5215
5211
|
const value = await parseBody(errorBody, context);
|
|
5216
|
-
value.message =
|
|
5212
|
+
value.message = value.message ?? value.Message;
|
|
5217
5213
|
return value;
|
|
5218
5214
|
};
|
|
5219
5215
|
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: "2020-11-19",
|
|
8
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
|
+
logger: config?.logger ?? {},
|
|
11
|
+
serviceId: config?.serviceId ?? "Location",
|
|
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-location",
|
|
3
3
|
"description": "AWS SDK for JavaScript Location Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.201.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.201.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.201.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.201.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.201.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": {
|