@aws-sdk/client-location 3.41.0 → 3.46.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 +47 -0
- package/dist-cjs/Location.js +15 -0
- package/dist-cjs/commands/SearchPlaceIndexForSuggestionsCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +50 -3
- package/dist-cjs/protocols/Aws_restJson1.js +244 -2
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-es/Location.js +15 -0
- package/dist-es/commands/SearchPlaceIndexForSuggestionsCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +28 -4
- package/dist-es/protocols/Aws_restJson1.js +253 -6
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-types/Location.d.ts +40 -10
- package/dist-types/LocationClient.d.ts +3 -2
- package/dist-types/commands/BatchEvaluateGeofencesCommand.d.ts +4 -0
- package/dist-types/commands/BatchUpdateDevicePositionCommand.d.ts +11 -3
- package/dist-types/commands/CalculateRouteCommand.d.ts +2 -3
- package/dist-types/commands/CreatePlaceIndexCommand.d.ts +4 -2
- package/dist-types/commands/SearchPlaceIndexForSuggestionsCommand.d.ts +44 -0
- package/dist-types/commands/SearchPlaceIndexForTextCommand.d.ts +3 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +488 -117
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/Location.d.ts +5 -0
- package/dist-types/ts3.4/LocationClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/SearchPlaceIndexForSuggestionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +128 -6
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +36 -43
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
|
|
4
4
|
export var serializeAws_restJson1AssociateTrackerConsumerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
@@ -1807,7 +1807,7 @@ export var serializeAws_restJson1SearchPlaceIndexForPositionCommand = function (
|
|
|
1807
1807
|
else {
|
|
1808
1808
|
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
1809
1809
|
}
|
|
1810
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.Position !== undefined &&
|
|
1810
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Language !== undefined && input.Language !== null && { Language: input.Language })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.Position !== undefined &&
|
|
1811
1811
|
input.Position !== null && { Position: serializeAws_restJson1Position(input.Position, context) })));
|
|
1812
1812
|
return [4, context.endpoint()];
|
|
1813
1813
|
case 2:
|
|
@@ -1830,6 +1830,55 @@ export var serializeAws_restJson1SearchPlaceIndexForPositionCommand = function (
|
|
|
1830
1830
|
}
|
|
1831
1831
|
});
|
|
1832
1832
|
}); };
|
|
1833
|
+
export var serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1834
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1835
|
+
return __generator(this, function (_c) {
|
|
1836
|
+
switch (_c.label) {
|
|
1837
|
+
case 0: return [4, context.endpoint()];
|
|
1838
|
+
case 1:
|
|
1839
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1840
|
+
headers = {
|
|
1841
|
+
"content-type": "application/json",
|
|
1842
|
+
};
|
|
1843
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1844
|
+
"/places/v0/indexes/{IndexName}/search/suggestions";
|
|
1845
|
+
if (input.IndexName !== undefined) {
|
|
1846
|
+
labelValue = input.IndexName;
|
|
1847
|
+
if (labelValue.length <= 0) {
|
|
1848
|
+
throw new Error("Empty value provided for input HTTP label: IndexName.");
|
|
1849
|
+
}
|
|
1850
|
+
resolvedPath = resolvedPath.replace("{IndexName}", __extendedEncodeURIComponent(labelValue));
|
|
1851
|
+
}
|
|
1852
|
+
else {
|
|
1853
|
+
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
1854
|
+
}
|
|
1855
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BiasPosition !== undefined &&
|
|
1856
|
+
input.BiasPosition !== null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) })), (input.FilterBBox !== undefined &&
|
|
1857
|
+
input.FilterBBox !== null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) })), (input.FilterCountries !== undefined &&
|
|
1858
|
+
input.FilterCountries !== null && {
|
|
1859
|
+
FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
|
|
1860
|
+
})), (input.Language !== undefined && input.Language !== null && { Language: input.Language })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.Text !== undefined && input.Text !== null && { Text: input.Text })));
|
|
1861
|
+
return [4, context.endpoint()];
|
|
1862
|
+
case 2:
|
|
1863
|
+
resolvedHostname = (_c.sent()).hostname;
|
|
1864
|
+
if (context.disableHostPrefix !== true) {
|
|
1865
|
+
resolvedHostname = "places." + resolvedHostname;
|
|
1866
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
1867
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1868
|
+
}
|
|
1869
|
+
}
|
|
1870
|
+
return [2, new __HttpRequest({
|
|
1871
|
+
protocol: protocol,
|
|
1872
|
+
hostname: resolvedHostname,
|
|
1873
|
+
port: port,
|
|
1874
|
+
method: "POST",
|
|
1875
|
+
headers: headers,
|
|
1876
|
+
path: resolvedPath,
|
|
1877
|
+
body: body,
|
|
1878
|
+
})];
|
|
1879
|
+
}
|
|
1880
|
+
});
|
|
1881
|
+
}); };
|
|
1833
1882
|
export var serializeAws_restJson1SearchPlaceIndexForTextCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1834
1883
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1835
1884
|
return __generator(this, function (_c) {
|
|
@@ -1852,12 +1901,12 @@ export var serializeAws_restJson1SearchPlaceIndexForTextCommand = function (inpu
|
|
|
1852
1901
|
else {
|
|
1853
1902
|
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
1854
1903
|
}
|
|
1855
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.BiasPosition !== undefined &&
|
|
1904
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BiasPosition !== undefined &&
|
|
1856
1905
|
input.BiasPosition !== null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) })), (input.FilterBBox !== undefined &&
|
|
1857
1906
|
input.FilterBBox !== null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) })), (input.FilterCountries !== undefined &&
|
|
1858
1907
|
input.FilterCountries !== null && {
|
|
1859
1908
|
FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
|
|
1860
|
-
})), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.Text !== undefined && input.Text !== null && { Text: input.Text })));
|
|
1909
|
+
})), (input.Language !== undefined && input.Language !== null && { Language: input.Language })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.Text !== undefined && input.Text !== null && { Text: input.Text })));
|
|
1861
1910
|
return [4, context.endpoint()];
|
|
1862
1911
|
case 2:
|
|
1863
1912
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -4638,8 +4687,10 @@ export var deserializeAws_restJson1GetDevicePositionCommand = function (output,
|
|
|
4638
4687
|
}
|
|
4639
4688
|
contents = {
|
|
4640
4689
|
$metadata: deserializeMetadata(output),
|
|
4690
|
+
Accuracy: undefined,
|
|
4641
4691
|
DeviceId: undefined,
|
|
4642
4692
|
Position: undefined,
|
|
4693
|
+
PositionProperties: undefined,
|
|
4643
4694
|
ReceivedTime: undefined,
|
|
4644
4695
|
SampleTime: undefined,
|
|
4645
4696
|
};
|
|
@@ -4648,12 +4699,18 @@ export var deserializeAws_restJson1GetDevicePositionCommand = function (output,
|
|
|
4648
4699
|
return [4, parseBody(output.body, context)];
|
|
4649
4700
|
case 1:
|
|
4650
4701
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4702
|
+
if (data.Accuracy !== undefined && data.Accuracy !== null) {
|
|
4703
|
+
contents.Accuracy = deserializeAws_restJson1PositionalAccuracy(data.Accuracy, context);
|
|
4704
|
+
}
|
|
4651
4705
|
if (data.DeviceId !== undefined && data.DeviceId !== null) {
|
|
4652
4706
|
contents.DeviceId = __expectString(data.DeviceId);
|
|
4653
4707
|
}
|
|
4654
4708
|
if (data.Position !== undefined && data.Position !== null) {
|
|
4655
4709
|
contents.Position = deserializeAws_restJson1Position(data.Position, context);
|
|
4656
4710
|
}
|
|
4711
|
+
if (data.PositionProperties !== undefined && data.PositionProperties !== null) {
|
|
4712
|
+
contents.PositionProperties = deserializeAws_restJson1PropertyMap(data.PositionProperties, context);
|
|
4713
|
+
}
|
|
4657
4714
|
if (data.ReceivedTime !== undefined && data.ReceivedTime !== null) {
|
|
4658
4715
|
contents.ReceivedTime = __expectNonNull(__parseRfc3339DateTime(data.ReceivedTime));
|
|
4659
4716
|
}
|
|
@@ -6356,6 +6413,104 @@ var deserializeAws_restJson1SearchPlaceIndexForPositionCommandError = function (
|
|
|
6356
6413
|
}
|
|
6357
6414
|
});
|
|
6358
6415
|
}); };
|
|
6416
|
+
export var deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6417
|
+
var contents, data, _a, _b;
|
|
6418
|
+
return __generator(this, function (_c) {
|
|
6419
|
+
switch (_c.label) {
|
|
6420
|
+
case 0:
|
|
6421
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6422
|
+
return [2, deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError(output, context)];
|
|
6423
|
+
}
|
|
6424
|
+
contents = {
|
|
6425
|
+
$metadata: deserializeMetadata(output),
|
|
6426
|
+
Results: undefined,
|
|
6427
|
+
Summary: undefined,
|
|
6428
|
+
};
|
|
6429
|
+
_a = __expectNonNull;
|
|
6430
|
+
_b = __expectObject;
|
|
6431
|
+
return [4, parseBody(output.body, context)];
|
|
6432
|
+
case 1:
|
|
6433
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6434
|
+
if (data.Results !== undefined && data.Results !== null) {
|
|
6435
|
+
contents.Results = deserializeAws_restJson1SearchForSuggestionsResultList(data.Results, context);
|
|
6436
|
+
}
|
|
6437
|
+
if (data.Summary !== undefined && data.Summary !== null) {
|
|
6438
|
+
contents.Summary = deserializeAws_restJson1SearchPlaceIndexForSuggestionsSummary(data.Summary, context);
|
|
6439
|
+
}
|
|
6440
|
+
return [2, Promise.resolve(contents)];
|
|
6441
|
+
}
|
|
6442
|
+
});
|
|
6443
|
+
}); };
|
|
6444
|
+
var deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6445
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
6446
|
+
var _h;
|
|
6447
|
+
return __generator(this, function (_j) {
|
|
6448
|
+
switch (_j.label) {
|
|
6449
|
+
case 0:
|
|
6450
|
+
_a = [__assign({}, output)];
|
|
6451
|
+
_h = {};
|
|
6452
|
+
return [4, parseBody(output.body, context)];
|
|
6453
|
+
case 1:
|
|
6454
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
6455
|
+
errorCode = "UnknownError";
|
|
6456
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6457
|
+
_b = errorCode;
|
|
6458
|
+
switch (_b) {
|
|
6459
|
+
case "AccessDeniedException": return [3, 2];
|
|
6460
|
+
case "com.amazonaws.location#AccessDeniedException": return [3, 2];
|
|
6461
|
+
case "InternalServerException": return [3, 4];
|
|
6462
|
+
case "com.amazonaws.location#InternalServerException": return [3, 4];
|
|
6463
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
6464
|
+
case "com.amazonaws.location#ResourceNotFoundException": return [3, 6];
|
|
6465
|
+
case "ThrottlingException": return [3, 8];
|
|
6466
|
+
case "com.amazonaws.location#ThrottlingException": return [3, 8];
|
|
6467
|
+
case "ValidationException": return [3, 10];
|
|
6468
|
+
case "com.amazonaws.location#ValidationException": return [3, 10];
|
|
6469
|
+
}
|
|
6470
|
+
return [3, 12];
|
|
6471
|
+
case 2:
|
|
6472
|
+
_c = [{}];
|
|
6473
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
6474
|
+
case 3:
|
|
6475
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6476
|
+
return [3, 13];
|
|
6477
|
+
case 4:
|
|
6478
|
+
_d = [{}];
|
|
6479
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
6480
|
+
case 5:
|
|
6481
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6482
|
+
return [3, 13];
|
|
6483
|
+
case 6:
|
|
6484
|
+
_e = [{}];
|
|
6485
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
6486
|
+
case 7:
|
|
6487
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6488
|
+
return [3, 13];
|
|
6489
|
+
case 8:
|
|
6490
|
+
_f = [{}];
|
|
6491
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
6492
|
+
case 9:
|
|
6493
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6494
|
+
return [3, 13];
|
|
6495
|
+
case 10:
|
|
6496
|
+
_g = [{}];
|
|
6497
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
6498
|
+
case 11:
|
|
6499
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
6500
|
+
return [3, 13];
|
|
6501
|
+
case 12:
|
|
6502
|
+
parsedBody = parsedOutput.body;
|
|
6503
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
6504
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
6505
|
+
_j.label = 13;
|
|
6506
|
+
case 13:
|
|
6507
|
+
message = response.message || response.Message || errorCode;
|
|
6508
|
+
response.message = message;
|
|
6509
|
+
delete response.Message;
|
|
6510
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
6511
|
+
}
|
|
6512
|
+
});
|
|
6513
|
+
}); };
|
|
6359
6514
|
export var deserializeAws_restJson1SearchPlaceIndexForTextCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6360
6515
|
var contents, data, _a, _b;
|
|
6361
6516
|
return __generator(this, function (_c) {
|
|
@@ -7318,8 +7473,12 @@ var serializeAws_restJson1DeviceIdsList = function (input, context) {
|
|
|
7318
7473
|
});
|
|
7319
7474
|
};
|
|
7320
7475
|
var serializeAws_restJson1DevicePositionUpdate = function (input, context) {
|
|
7321
|
-
return __assign(__assign(__assign(
|
|
7322
|
-
input.
|
|
7476
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Accuracy !== undefined &&
|
|
7477
|
+
input.Accuracy !== null && { Accuracy: serializeAws_restJson1PositionalAccuracy(input.Accuracy, context) })), (input.DeviceId !== undefined && input.DeviceId !== null && { DeviceId: input.DeviceId })), (input.Position !== undefined &&
|
|
7478
|
+
input.Position !== null && { Position: serializeAws_restJson1Position(input.Position, context) })), (input.PositionProperties !== undefined &&
|
|
7479
|
+
input.PositionProperties !== null && {
|
|
7480
|
+
PositionProperties: serializeAws_restJson1PropertyMap(input.PositionProperties, context),
|
|
7481
|
+
})), (input.SampleTime !== undefined &&
|
|
7323
7482
|
input.SampleTime !== null && { SampleTime: input.SampleTime.toISOString().split(".")[0] + "Z" }));
|
|
7324
7483
|
};
|
|
7325
7484
|
var serializeAws_restJson1DevicePositionUpdateList = function (input, context) {
|
|
@@ -7379,6 +7538,20 @@ var serializeAws_restJson1Position = function (input, context) {
|
|
|
7379
7538
|
return __serializeFloat(entry);
|
|
7380
7539
|
});
|
|
7381
7540
|
};
|
|
7541
|
+
var serializeAws_restJson1PositionalAccuracy = function (input, context) {
|
|
7542
|
+
return __assign({}, (input.Horizontal !== undefined &&
|
|
7543
|
+
input.Horizontal !== null && { Horizontal: __serializeFloat(input.Horizontal) }));
|
|
7544
|
+
};
|
|
7545
|
+
var serializeAws_restJson1PropertyMap = function (input, context) {
|
|
7546
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
7547
|
+
var _b;
|
|
7548
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
7549
|
+
if (value === null) {
|
|
7550
|
+
return acc;
|
|
7551
|
+
}
|
|
7552
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
7553
|
+
}, {});
|
|
7554
|
+
};
|
|
7382
7555
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
7383
7556
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
7384
7557
|
var _b;
|
|
@@ -7594,10 +7767,16 @@ var deserializeAws_restJson1DataSourceConfiguration = function (output, context)
|
|
|
7594
7767
|
};
|
|
7595
7768
|
var deserializeAws_restJson1DevicePosition = function (output, context) {
|
|
7596
7769
|
return {
|
|
7770
|
+
Accuracy: output.Accuracy !== undefined && output.Accuracy !== null
|
|
7771
|
+
? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context)
|
|
7772
|
+
: undefined,
|
|
7597
7773
|
DeviceId: __expectString(output.DeviceId),
|
|
7598
7774
|
Position: output.Position !== undefined && output.Position !== null
|
|
7599
7775
|
? deserializeAws_restJson1Position(output.Position, context)
|
|
7600
7776
|
: undefined,
|
|
7777
|
+
PositionProperties: output.PositionProperties !== undefined && output.PositionProperties !== null
|
|
7778
|
+
? deserializeAws_restJson1PropertyMap(output.PositionProperties, context)
|
|
7779
|
+
: undefined,
|
|
7601
7780
|
ReceivedTime: output.ReceivedTime !== undefined && output.ReceivedTime !== null
|
|
7602
7781
|
? __expectNonNull(__parseRfc3339DateTime(output.ReceivedTime))
|
|
7603
7782
|
: undefined,
|
|
@@ -7690,10 +7869,16 @@ var deserializeAws_restJson1LineString = function (output, context) {
|
|
|
7690
7869
|
};
|
|
7691
7870
|
var deserializeAws_restJson1ListDevicePositionsResponseEntry = function (output, context) {
|
|
7692
7871
|
return {
|
|
7872
|
+
Accuracy: output.Accuracy !== undefined && output.Accuracy !== null
|
|
7873
|
+
? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context)
|
|
7874
|
+
: undefined,
|
|
7693
7875
|
DeviceId: __expectString(output.DeviceId),
|
|
7694
7876
|
Position: output.Position !== undefined && output.Position !== null
|
|
7695
7877
|
? deserializeAws_restJson1Position(output.Position, context)
|
|
7696
7878
|
: undefined,
|
|
7879
|
+
PositionProperties: output.PositionProperties !== undefined && output.PositionProperties !== null
|
|
7880
|
+
? deserializeAws_restJson1PropertyMap(output.PositionProperties, context)
|
|
7881
|
+
: undefined,
|
|
7697
7882
|
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
7698
7883
|
? __expectNonNull(__parseRfc3339DateTime(output.SampleTime))
|
|
7699
7884
|
: undefined,
|
|
@@ -7866,6 +8051,7 @@ var deserializeAws_restJson1Place = function (output, context) {
|
|
|
7866
8051
|
Geometry: output.Geometry !== undefined && output.Geometry !== null
|
|
7867
8052
|
? deserializeAws_restJson1PlaceGeometry(output.Geometry, context)
|
|
7868
8053
|
: undefined,
|
|
8054
|
+
Interpolated: __expectBoolean(output.Interpolated),
|
|
7869
8055
|
Label: __expectString(output.Label),
|
|
7870
8056
|
Municipality: __expectString(output.Municipality),
|
|
7871
8057
|
Neighborhood: __expectString(output.Neighborhood),
|
|
@@ -7873,6 +8059,9 @@ var deserializeAws_restJson1Place = function (output, context) {
|
|
|
7873
8059
|
Region: __expectString(output.Region),
|
|
7874
8060
|
Street: __expectString(output.Street),
|
|
7875
8061
|
SubRegion: __expectString(output.SubRegion),
|
|
8062
|
+
TimeZone: output.TimeZone !== undefined && output.TimeZone !== null
|
|
8063
|
+
? deserializeAws_restJson1TimeZone(output.TimeZone, context)
|
|
8064
|
+
: undefined,
|
|
7876
8065
|
};
|
|
7877
8066
|
};
|
|
7878
8067
|
var deserializeAws_restJson1PlaceGeometry = function (output, context) {
|
|
@@ -7892,8 +8081,24 @@ var deserializeAws_restJson1Position = function (output, context) {
|
|
|
7892
8081
|
return __limitedParseDouble(entry);
|
|
7893
8082
|
});
|
|
7894
8083
|
};
|
|
8084
|
+
var deserializeAws_restJson1PositionalAccuracy = function (output, context) {
|
|
8085
|
+
return {
|
|
8086
|
+
Horizontal: __limitedParseDouble(output.Horizontal),
|
|
8087
|
+
};
|
|
8088
|
+
};
|
|
8089
|
+
var deserializeAws_restJson1PropertyMap = function (output, context) {
|
|
8090
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
8091
|
+
var _b;
|
|
8092
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
8093
|
+
if (value === null) {
|
|
8094
|
+
return acc;
|
|
8095
|
+
}
|
|
8096
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
8097
|
+
}, {});
|
|
8098
|
+
};
|
|
7895
8099
|
var deserializeAws_restJson1SearchForPositionResult = function (output, context) {
|
|
7896
8100
|
return {
|
|
8101
|
+
Distance: __limitedParseDouble(output.Distance),
|
|
7897
8102
|
Place: output.Place !== undefined && output.Place !== null
|
|
7898
8103
|
? deserializeAws_restJson1Place(output.Place, context)
|
|
7899
8104
|
: undefined,
|
|
@@ -7909,11 +8114,28 @@ var deserializeAws_restJson1SearchForPositionResultList = function (output, cont
|
|
|
7909
8114
|
return deserializeAws_restJson1SearchForPositionResult(entry, context);
|
|
7910
8115
|
});
|
|
7911
8116
|
};
|
|
8117
|
+
var deserializeAws_restJson1SearchForSuggestionsResult = function (output, context) {
|
|
8118
|
+
return {
|
|
8119
|
+
Text: __expectString(output.Text),
|
|
8120
|
+
};
|
|
8121
|
+
};
|
|
8122
|
+
var deserializeAws_restJson1SearchForSuggestionsResultList = function (output, context) {
|
|
8123
|
+
return (output || [])
|
|
8124
|
+
.filter(function (e) { return e != null; })
|
|
8125
|
+
.map(function (entry) {
|
|
8126
|
+
if (entry === null) {
|
|
8127
|
+
return null;
|
|
8128
|
+
}
|
|
8129
|
+
return deserializeAws_restJson1SearchForSuggestionsResult(entry, context);
|
|
8130
|
+
});
|
|
8131
|
+
};
|
|
7912
8132
|
var deserializeAws_restJson1SearchForTextResult = function (output, context) {
|
|
7913
8133
|
return {
|
|
8134
|
+
Distance: __limitedParseDouble(output.Distance),
|
|
7914
8135
|
Place: output.Place !== undefined && output.Place !== null
|
|
7915
8136
|
? deserializeAws_restJson1Place(output.Place, context)
|
|
7916
8137
|
: undefined,
|
|
8138
|
+
Relevance: __limitedParseDouble(output.Relevance),
|
|
7917
8139
|
};
|
|
7918
8140
|
};
|
|
7919
8141
|
var deserializeAws_restJson1SearchForTextResultList = function (output, context) {
|
|
@@ -7929,12 +8151,30 @@ var deserializeAws_restJson1SearchForTextResultList = function (output, context)
|
|
|
7929
8151
|
var deserializeAws_restJson1SearchPlaceIndexForPositionSummary = function (output, context) {
|
|
7930
8152
|
return {
|
|
7931
8153
|
DataSource: __expectString(output.DataSource),
|
|
8154
|
+
Language: __expectString(output.Language),
|
|
7932
8155
|
MaxResults: __expectInt32(output.MaxResults),
|
|
7933
8156
|
Position: output.Position !== undefined && output.Position !== null
|
|
7934
8157
|
? deserializeAws_restJson1Position(output.Position, context)
|
|
7935
8158
|
: undefined,
|
|
7936
8159
|
};
|
|
7937
8160
|
};
|
|
8161
|
+
var deserializeAws_restJson1SearchPlaceIndexForSuggestionsSummary = function (output, context) {
|
|
8162
|
+
return {
|
|
8163
|
+
BiasPosition: output.BiasPosition !== undefined && output.BiasPosition !== null
|
|
8164
|
+
? deserializeAws_restJson1Position(output.BiasPosition, context)
|
|
8165
|
+
: undefined,
|
|
8166
|
+
DataSource: __expectString(output.DataSource),
|
|
8167
|
+
FilterBBox: output.FilterBBox !== undefined && output.FilterBBox !== null
|
|
8168
|
+
? deserializeAws_restJson1BoundingBox(output.FilterBBox, context)
|
|
8169
|
+
: undefined,
|
|
8170
|
+
FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
|
|
8171
|
+
? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
|
|
8172
|
+
: undefined,
|
|
8173
|
+
Language: __expectString(output.Language),
|
|
8174
|
+
MaxResults: __expectInt32(output.MaxResults),
|
|
8175
|
+
Text: __expectString(output.Text),
|
|
8176
|
+
};
|
|
8177
|
+
};
|
|
7938
8178
|
var deserializeAws_restJson1SearchPlaceIndexForTextSummary = function (output, context) {
|
|
7939
8179
|
return {
|
|
7940
8180
|
BiasPosition: output.BiasPosition !== undefined && output.BiasPosition !== null
|
|
@@ -7947,6 +8187,7 @@ var deserializeAws_restJson1SearchPlaceIndexForTextSummary = function (output, c
|
|
|
7947
8187
|
FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
|
|
7948
8188
|
? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
|
|
7949
8189
|
: undefined,
|
|
8190
|
+
Language: __expectString(output.Language),
|
|
7950
8191
|
MaxResults: __expectInt32(output.MaxResults),
|
|
7951
8192
|
ResultBBox: output.ResultBBox !== undefined && output.ResultBBox !== null
|
|
7952
8193
|
? deserializeAws_restJson1BoundingBox(output.ResultBBox, context)
|
|
@@ -7987,6 +8228,12 @@ var deserializeAws_restJson1TagMap = function (output, context) {
|
|
|
7987
8228
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
7988
8229
|
}, {});
|
|
7989
8230
|
};
|
|
8231
|
+
var deserializeAws_restJson1TimeZone = function (output, context) {
|
|
8232
|
+
return {
|
|
8233
|
+
Name: __expectString(output.Name),
|
|
8234
|
+
Offset: __expectInt32(output.Offset),
|
|
8235
|
+
};
|
|
8236
|
+
};
|
|
7990
8237
|
var deserializeAws_restJson1ValidationExceptionField = function (output, context) {
|
|
7991
8238
|
return {
|
|
7992
8239
|
Message: __expectString(output.message),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -12,10 +12,8 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
15
|
export var getRuntimeConfig = function (config) {
|
|
17
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
19
17
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
18
|
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
19
|
};
|
package/dist-types/Location.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ import { ListTrackerConsumersCommandInput, ListTrackerConsumersCommandOutput } f
|
|
|
41
41
|
import { ListTrackersCommandInput, ListTrackersCommandOutput } from "./commands/ListTrackersCommand";
|
|
42
42
|
import { PutGeofenceCommandInput, PutGeofenceCommandOutput } from "./commands/PutGeofenceCommand";
|
|
43
43
|
import { SearchPlaceIndexForPositionCommandInput, SearchPlaceIndexForPositionCommandOutput } from "./commands/SearchPlaceIndexForPositionCommand";
|
|
44
|
+
import { SearchPlaceIndexForSuggestionsCommandInput, SearchPlaceIndexForSuggestionsCommandOutput } from "./commands/SearchPlaceIndexForSuggestionsCommand";
|
|
44
45
|
import { SearchPlaceIndexForTextCommandInput, SearchPlaceIndexForTextCommandOutput } from "./commands/SearchPlaceIndexForTextCommand";
|
|
45
46
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
46
47
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
@@ -103,6 +104,10 @@ export declare class Location extends LocationClient {
|
|
|
103
104
|
* <p>The last geofence that a device was observed within is tracked for 30 days after
|
|
104
105
|
* the most recent device position update.</p>
|
|
105
106
|
* </note>
|
|
107
|
+
* <note>
|
|
108
|
+
* <p>Geofence evaluation uses the given device position. It does not account for the
|
|
109
|
+
* optional <code>Accuracy</code> of a <code>DevicePositionUpdate</code>.</p>
|
|
110
|
+
* </note>
|
|
106
111
|
*/
|
|
107
112
|
batchEvaluateGeofences(args: BatchEvaluateGeofencesCommandInput, options?: __HttpHandlerOptions): Promise<BatchEvaluateGeofencesCommandOutput>;
|
|
108
113
|
batchEvaluateGeofences(args: BatchEvaluateGeofencesCommandInput, cb: (err: any, data?: BatchEvaluateGeofencesCommandOutput) => void): void;
|
|
@@ -128,9 +133,17 @@ export declare class Location extends LocationClient {
|
|
|
128
133
|
* <p>Position updates are handled based on the <code>PositionFiltering</code> property of the tracker.
|
|
129
134
|
* When <code>PositionFiltering</code> is set to <code>TimeBased</code>, updates are evaluated against linked geofence collections,
|
|
130
135
|
* and location data is stored at a maximum of one position per 30 second interval. If your update frequency is more often than
|
|
131
|
-
* every 30 seconds, only one update per 30 seconds is stored for each unique device ID
|
|
132
|
-
*
|
|
133
|
-
*
|
|
136
|
+
* every 30 seconds, only one update per 30 seconds is stored for each unique device ID.</p>
|
|
137
|
+
* <p>When <code>PositionFiltering</code> is set to <code>DistanceBased</code> filtering, location data is stored and evaluated against linked geofence
|
|
138
|
+
* collections only if the device has moved more than 30 m (98.4 ft).</p>
|
|
139
|
+
* <p>When <code>PositionFiltering</code> is set to <code>AccuracyBased</code> filtering,
|
|
140
|
+
* location data is stored and evaluated against linked geofence collections only if the
|
|
141
|
+
* device has moved more than the measured accuracy. For example, if two consecutive
|
|
142
|
+
* updates from a device have a horizontal accuracy of 5 m and 10 m, the second update
|
|
143
|
+
* is neither stored or evaluated if the device has moved less than 15 m. If
|
|
144
|
+
* <code>PositionFiltering</code> is set to <code>AccuracyBased</code> filtering, Amazon Location
|
|
145
|
+
* uses the default value <code>{ "Horizontal": 0}</code> when accuracy is not provided on
|
|
146
|
+
* a <code>DevicePositionUpdate</code>.</p>
|
|
134
147
|
* </note>
|
|
135
148
|
*/
|
|
136
149
|
batchUpdateDevicePosition(args: BatchUpdateDevicePositionCommandInput, options?: __HttpHandlerOptions): Promise<BatchUpdateDevicePositionCommandOutput>;
|
|
@@ -141,8 +154,7 @@ export declare class Location extends LocationClient {
|
|
|
141
154
|
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html">Calculates a route</a> given the following required parameters:
|
|
142
155
|
* <code>DeparturePostiton</code> and <code>DestinationPosition</code>. Requires that
|
|
143
156
|
* you first <a href="https://docs.aws.amazon.com/location-routes/latest/APIReference/API_CreateRouteCalculator.html">create a
|
|
144
|
-
* route calculator resource</a>
|
|
145
|
-
* </p>
|
|
157
|
+
* route calculator resource</a>.</p>
|
|
146
158
|
* <p>By default, a request that doesn't specify a departure time uses the best time of day
|
|
147
159
|
* to travel with the best traffic conditions when calculating the route.</p>
|
|
148
160
|
* <p>Additional options include:</p>
|
|
@@ -155,7 +167,7 @@ export declare class Location extends LocationClient {
|
|
|
155
167
|
* <note>
|
|
156
168
|
* <p>You can't specify both <code>DepartureTime</code> and
|
|
157
169
|
* <code>DepartureNow</code> in a single request. Specifying both
|
|
158
|
-
* parameters returns
|
|
170
|
+
* parameters returns a validation error.</p>
|
|
159
171
|
* </note>
|
|
160
172
|
* </li>
|
|
161
173
|
* <li>
|
|
@@ -186,8 +198,10 @@ export declare class Location extends LocationClient {
|
|
|
186
198
|
createMap(args: CreateMapCommandInput, cb: (err: any, data?: CreateMapCommandOutput) => void): void;
|
|
187
199
|
createMap(args: CreateMapCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMapCommandOutput) => void): void;
|
|
188
200
|
/**
|
|
189
|
-
* <p>Creates a place index resource in your AWS account
|
|
190
|
-
*
|
|
201
|
+
* <p>Creates a place index resource in your AWS account. Use a place index resource to
|
|
202
|
+
* geocode addresses and other text queries by using the <code>SearchPlaceIndexForText</code> operation,
|
|
203
|
+
* and reverse geocode coordinates by using the <code>SearchPlaceIndexForPosition</code> operation, and
|
|
204
|
+
* enable autosuggestions by using the <code>SearchPlaceIndexForSuggestions</code> operation.</p>
|
|
191
205
|
*/
|
|
192
206
|
createPlaceIndex(args: CreatePlaceIndexCommandInput, options?: __HttpHandlerOptions): Promise<CreatePlaceIndexCommandOutput>;
|
|
193
207
|
createPlaceIndex(args: CreatePlaceIndexCommandInput, cb: (err: any, data?: CreatePlaceIndexCommandOutput) => void): void;
|
|
@@ -424,16 +438,32 @@ export declare class Location extends LocationClient {
|
|
|
424
438
|
searchPlaceIndexForPosition(args: SearchPlaceIndexForPositionCommandInput, options?: __HttpHandlerOptions): Promise<SearchPlaceIndexForPositionCommandOutput>;
|
|
425
439
|
searchPlaceIndexForPosition(args: SearchPlaceIndexForPositionCommandInput, cb: (err: any, data?: SearchPlaceIndexForPositionCommandOutput) => void): void;
|
|
426
440
|
searchPlaceIndexForPosition(args: SearchPlaceIndexForPositionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchPlaceIndexForPositionCommandOutput) => void): void;
|
|
441
|
+
/**
|
|
442
|
+
* <p>Generates suggestions for addresses and points of interest based on partial or
|
|
443
|
+
* misspelled free-form text. This operation is also known as autocomplete, autosuggest,
|
|
444
|
+
* or fuzzy matching.</p>
|
|
445
|
+
* <p>Optional parameters let you narrow your search results by bounding box or
|
|
446
|
+
* country, or bias your search toward a specific position on the globe.</p>
|
|
447
|
+
* <note>
|
|
448
|
+
* <p>You can search for suggested place names near a specified position by using <code>BiasPosition</code>, or
|
|
449
|
+
* filter results within a bounding box by using <code>FilterBBox</code>. These parameters are mutually exclusive;
|
|
450
|
+
* using both <code>BiasPosition</code> and <code>FilterBBox</code> in the same command returns an error.</p>
|
|
451
|
+
* </note>
|
|
452
|
+
*/
|
|
453
|
+
searchPlaceIndexForSuggestions(args: SearchPlaceIndexForSuggestionsCommandInput, options?: __HttpHandlerOptions): Promise<SearchPlaceIndexForSuggestionsCommandOutput>;
|
|
454
|
+
searchPlaceIndexForSuggestions(args: SearchPlaceIndexForSuggestionsCommandInput, cb: (err: any, data?: SearchPlaceIndexForSuggestionsCommandOutput) => void): void;
|
|
455
|
+
searchPlaceIndexForSuggestions(args: SearchPlaceIndexForSuggestionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchPlaceIndexForSuggestionsCommandOutput) => void): void;
|
|
427
456
|
/**
|
|
428
457
|
* <p>Geocodes free-form text, such as an address, name, city, or region to allow you to
|
|
429
458
|
* search for Places or points of interest. </p>
|
|
430
|
-
* <p>
|
|
431
|
-
*
|
|
459
|
+
* <p>Optional parameters let you narrow your search results by bounding box or
|
|
460
|
+
* country, or bias your search toward a specific position on the globe.</p>
|
|
432
461
|
* <note>
|
|
433
462
|
* <p>You can search for places near a given position using <code>BiasPosition</code>, or
|
|
434
463
|
* filter results within a bounding box using <code>FilterBBox</code>. Providing both
|
|
435
464
|
* parameters simultaneously returns an error.</p>
|
|
436
465
|
* </note>
|
|
466
|
+
* <p>Search results are returned in order of highest to lowest relevance.</p>
|
|
437
467
|
*/
|
|
438
468
|
searchPlaceIndexForText(args: SearchPlaceIndexForTextCommandInput, options?: __HttpHandlerOptions): Promise<SearchPlaceIndexForTextCommandOutput>;
|
|
439
469
|
searchPlaceIndexForText(args: SearchPlaceIndexForTextCommandInput, cb: (err: any, data?: SearchPlaceIndexForTextCommandOutput) => void): void;
|
|
@@ -48,6 +48,7 @@ import { ListTrackerConsumersCommandInput, ListTrackerConsumersCommandOutput } f
|
|
|
48
48
|
import { ListTrackersCommandInput, ListTrackersCommandOutput } from "./commands/ListTrackersCommand";
|
|
49
49
|
import { PutGeofenceCommandInput, PutGeofenceCommandOutput } from "./commands/PutGeofenceCommand";
|
|
50
50
|
import { SearchPlaceIndexForPositionCommandInput, SearchPlaceIndexForPositionCommandOutput } from "./commands/SearchPlaceIndexForPositionCommand";
|
|
51
|
+
import { SearchPlaceIndexForSuggestionsCommandInput, SearchPlaceIndexForSuggestionsCommandOutput } from "./commands/SearchPlaceIndexForSuggestionsCommand";
|
|
51
52
|
import { SearchPlaceIndexForTextCommandInput, SearchPlaceIndexForTextCommandOutput } from "./commands/SearchPlaceIndexForTextCommand";
|
|
52
53
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
53
54
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
@@ -56,8 +57,8 @@ import { UpdateMapCommandInput, UpdateMapCommandOutput } from "./commands/Update
|
|
|
56
57
|
import { UpdatePlaceIndexCommandInput, UpdatePlaceIndexCommandOutput } from "./commands/UpdatePlaceIndexCommand";
|
|
57
58
|
import { UpdateRouteCalculatorCommandInput, UpdateRouteCalculatorCommandOutput } from "./commands/UpdateRouteCalculatorCommand";
|
|
58
59
|
import { UpdateTrackerCommandInput, UpdateTrackerCommandOutput } from "./commands/UpdateTrackerCommand";
|
|
59
|
-
export declare type ServiceInputTypes = AssociateTrackerConsumerCommandInput | BatchDeleteDevicePositionHistoryCommandInput | BatchDeleteGeofenceCommandInput | BatchEvaluateGeofencesCommandInput | BatchGetDevicePositionCommandInput | BatchPutGeofenceCommandInput | BatchUpdateDevicePositionCommandInput | CalculateRouteCommandInput | CreateGeofenceCollectionCommandInput | CreateMapCommandInput | CreatePlaceIndexCommandInput | CreateRouteCalculatorCommandInput | CreateTrackerCommandInput | DeleteGeofenceCollectionCommandInput | DeleteMapCommandInput | DeletePlaceIndexCommandInput | DeleteRouteCalculatorCommandInput | DeleteTrackerCommandInput | DescribeGeofenceCollectionCommandInput | DescribeMapCommandInput | DescribePlaceIndexCommandInput | DescribeRouteCalculatorCommandInput | DescribeTrackerCommandInput | DisassociateTrackerConsumerCommandInput | GetDevicePositionCommandInput | GetDevicePositionHistoryCommandInput | GetGeofenceCommandInput | GetMapGlyphsCommandInput | GetMapSpritesCommandInput | GetMapStyleDescriptorCommandInput | GetMapTileCommandInput | ListDevicePositionsCommandInput | ListGeofenceCollectionsCommandInput | ListGeofencesCommandInput | ListMapsCommandInput | ListPlaceIndexesCommandInput | ListRouteCalculatorsCommandInput | ListTagsForResourceCommandInput | ListTrackerConsumersCommandInput | ListTrackersCommandInput | PutGeofenceCommandInput | SearchPlaceIndexForPositionCommandInput | SearchPlaceIndexForTextCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGeofenceCollectionCommandInput | UpdateMapCommandInput | UpdatePlaceIndexCommandInput | UpdateRouteCalculatorCommandInput | UpdateTrackerCommandInput;
|
|
60
|
-
export declare type ServiceOutputTypes = AssociateTrackerConsumerCommandOutput | BatchDeleteDevicePositionHistoryCommandOutput | BatchDeleteGeofenceCommandOutput | BatchEvaluateGeofencesCommandOutput | BatchGetDevicePositionCommandOutput | BatchPutGeofenceCommandOutput | BatchUpdateDevicePositionCommandOutput | CalculateRouteCommandOutput | CreateGeofenceCollectionCommandOutput | CreateMapCommandOutput | CreatePlaceIndexCommandOutput | CreateRouteCalculatorCommandOutput | CreateTrackerCommandOutput | DeleteGeofenceCollectionCommandOutput | DeleteMapCommandOutput | DeletePlaceIndexCommandOutput | DeleteRouteCalculatorCommandOutput | DeleteTrackerCommandOutput | DescribeGeofenceCollectionCommandOutput | DescribeMapCommandOutput | DescribePlaceIndexCommandOutput | DescribeRouteCalculatorCommandOutput | DescribeTrackerCommandOutput | DisassociateTrackerConsumerCommandOutput | GetDevicePositionCommandOutput | GetDevicePositionHistoryCommandOutput | GetGeofenceCommandOutput | GetMapGlyphsCommandOutput | GetMapSpritesCommandOutput | GetMapStyleDescriptorCommandOutput | GetMapTileCommandOutput | ListDevicePositionsCommandOutput | ListGeofenceCollectionsCommandOutput | ListGeofencesCommandOutput | ListMapsCommandOutput | ListPlaceIndexesCommandOutput | ListRouteCalculatorsCommandOutput | ListTagsForResourceCommandOutput | ListTrackerConsumersCommandOutput | ListTrackersCommandOutput | PutGeofenceCommandOutput | SearchPlaceIndexForPositionCommandOutput | SearchPlaceIndexForTextCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGeofenceCollectionCommandOutput | UpdateMapCommandOutput | UpdatePlaceIndexCommandOutput | UpdateRouteCalculatorCommandOutput | UpdateTrackerCommandOutput;
|
|
60
|
+
export declare type ServiceInputTypes = AssociateTrackerConsumerCommandInput | BatchDeleteDevicePositionHistoryCommandInput | BatchDeleteGeofenceCommandInput | BatchEvaluateGeofencesCommandInput | BatchGetDevicePositionCommandInput | BatchPutGeofenceCommandInput | BatchUpdateDevicePositionCommandInput | CalculateRouteCommandInput | CreateGeofenceCollectionCommandInput | CreateMapCommandInput | CreatePlaceIndexCommandInput | CreateRouteCalculatorCommandInput | CreateTrackerCommandInput | DeleteGeofenceCollectionCommandInput | DeleteMapCommandInput | DeletePlaceIndexCommandInput | DeleteRouteCalculatorCommandInput | DeleteTrackerCommandInput | DescribeGeofenceCollectionCommandInput | DescribeMapCommandInput | DescribePlaceIndexCommandInput | DescribeRouteCalculatorCommandInput | DescribeTrackerCommandInput | DisassociateTrackerConsumerCommandInput | GetDevicePositionCommandInput | GetDevicePositionHistoryCommandInput | GetGeofenceCommandInput | GetMapGlyphsCommandInput | GetMapSpritesCommandInput | GetMapStyleDescriptorCommandInput | GetMapTileCommandInput | ListDevicePositionsCommandInput | ListGeofenceCollectionsCommandInput | ListGeofencesCommandInput | ListMapsCommandInput | ListPlaceIndexesCommandInput | ListRouteCalculatorsCommandInput | ListTagsForResourceCommandInput | ListTrackerConsumersCommandInput | ListTrackersCommandInput | PutGeofenceCommandInput | SearchPlaceIndexForPositionCommandInput | SearchPlaceIndexForSuggestionsCommandInput | SearchPlaceIndexForTextCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateGeofenceCollectionCommandInput | UpdateMapCommandInput | UpdatePlaceIndexCommandInput | UpdateRouteCalculatorCommandInput | UpdateTrackerCommandInput;
|
|
61
|
+
export declare type ServiceOutputTypes = AssociateTrackerConsumerCommandOutput | BatchDeleteDevicePositionHistoryCommandOutput | BatchDeleteGeofenceCommandOutput | BatchEvaluateGeofencesCommandOutput | BatchGetDevicePositionCommandOutput | BatchPutGeofenceCommandOutput | BatchUpdateDevicePositionCommandOutput | CalculateRouteCommandOutput | CreateGeofenceCollectionCommandOutput | CreateMapCommandOutput | CreatePlaceIndexCommandOutput | CreateRouteCalculatorCommandOutput | CreateTrackerCommandOutput | DeleteGeofenceCollectionCommandOutput | DeleteMapCommandOutput | DeletePlaceIndexCommandOutput | DeleteRouteCalculatorCommandOutput | DeleteTrackerCommandOutput | DescribeGeofenceCollectionCommandOutput | DescribeMapCommandOutput | DescribePlaceIndexCommandOutput | DescribeRouteCalculatorCommandOutput | DescribeTrackerCommandOutput | DisassociateTrackerConsumerCommandOutput | GetDevicePositionCommandOutput | GetDevicePositionHistoryCommandOutput | GetGeofenceCommandOutput | GetMapGlyphsCommandOutput | GetMapSpritesCommandOutput | GetMapStyleDescriptorCommandOutput | GetMapTileCommandOutput | ListDevicePositionsCommandOutput | ListGeofenceCollectionsCommandOutput | ListGeofencesCommandOutput | ListMapsCommandOutput | ListPlaceIndexesCommandOutput | ListRouteCalculatorsCommandOutput | ListTagsForResourceCommandOutput | ListTrackerConsumersCommandOutput | ListTrackersCommandOutput | PutGeofenceCommandOutput | SearchPlaceIndexForPositionCommandOutput | SearchPlaceIndexForSuggestionsCommandOutput | SearchPlaceIndexForTextCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateGeofenceCollectionCommandOutput | UpdateMapCommandOutput | UpdatePlaceIndexCommandOutput | UpdateRouteCalculatorCommandOutput | UpdateTrackerCommandOutput;
|
|
61
62
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
62
63
|
/**
|
|
63
64
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -28,6 +28,10 @@ export interface BatchEvaluateGeofencesCommandOutput extends BatchEvaluateGeofen
|
|
|
28
28
|
* <p>The last geofence that a device was observed within is tracked for 30 days after
|
|
29
29
|
* the most recent device position update.</p>
|
|
30
30
|
* </note>
|
|
31
|
+
* <note>
|
|
32
|
+
* <p>Geofence evaluation uses the given device position. It does not account for the
|
|
33
|
+
* optional <code>Accuracy</code> of a <code>DevicePositionUpdate</code>.</p>
|
|
34
|
+
* </note>
|
|
31
35
|
* @example
|
|
32
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
37
|
* ```javascript
|
|
@@ -14,9 +14,17 @@ export interface BatchUpdateDevicePositionCommandOutput extends BatchUpdateDevic
|
|
|
14
14
|
* <p>Position updates are handled based on the <code>PositionFiltering</code> property of the tracker.
|
|
15
15
|
* When <code>PositionFiltering</code> is set to <code>TimeBased</code>, updates are evaluated against linked geofence collections,
|
|
16
16
|
* and location data is stored at a maximum of one position per 30 second interval. If your update frequency is more often than
|
|
17
|
-
* every 30 seconds, only one update per 30 seconds is stored for each unique device ID
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* every 30 seconds, only one update per 30 seconds is stored for each unique device ID.</p>
|
|
18
|
+
* <p>When <code>PositionFiltering</code> is set to <code>DistanceBased</code> filtering, location data is stored and evaluated against linked geofence
|
|
19
|
+
* collections only if the device has moved more than 30 m (98.4 ft).</p>
|
|
20
|
+
* <p>When <code>PositionFiltering</code> is set to <code>AccuracyBased</code> filtering,
|
|
21
|
+
* location data is stored and evaluated against linked geofence collections only if the
|
|
22
|
+
* device has moved more than the measured accuracy. For example, if two consecutive
|
|
23
|
+
* updates from a device have a horizontal accuracy of 5 m and 10 m, the second update
|
|
24
|
+
* is neither stored or evaluated if the device has moved less than 15 m. If
|
|
25
|
+
* <code>PositionFiltering</code> is set to <code>AccuracyBased</code> filtering, Amazon Location
|
|
26
|
+
* uses the default value <code>{ "Horizontal": 0}</code> when accuracy is not provided on
|
|
27
|
+
* a <code>DevicePositionUpdate</code>.</p>
|
|
20
28
|
* </note>
|
|
21
29
|
* @example
|
|
22
30
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -11,8 +11,7 @@ export interface CalculateRouteCommandOutput extends CalculateRouteResponse, __M
|
|
|
11
11
|
* <a href="https://docs.aws.amazon.com/location/latest/developerguide/calculate-route.html">Calculates a route</a> given the following required parameters:
|
|
12
12
|
* <code>DeparturePostiton</code> and <code>DestinationPosition</code>. Requires that
|
|
13
13
|
* you first <a href="https://docs.aws.amazon.com/location-routes/latest/APIReference/API_CreateRouteCalculator.html">create a
|
|
14
|
-
* route calculator resource</a>
|
|
15
|
-
* </p>
|
|
14
|
+
* route calculator resource</a>.</p>
|
|
16
15
|
* <p>By default, a request that doesn't specify a departure time uses the best time of day
|
|
17
16
|
* to travel with the best traffic conditions when calculating the route.</p>
|
|
18
17
|
* <p>Additional options include:</p>
|
|
@@ -25,7 +24,7 @@ export interface CalculateRouteCommandOutput extends CalculateRouteResponse, __M
|
|
|
25
24
|
* <note>
|
|
26
25
|
* <p>You can't specify both <code>DepartureTime</code> and
|
|
27
26
|
* <code>DepartureNow</code> in a single request. Specifying both
|
|
28
|
-
* parameters returns
|
|
27
|
+
* parameters returns a validation error.</p>
|
|
29
28
|
* </note>
|
|
30
29
|
* </li>
|
|
31
30
|
* <li>
|