@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,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.serializeAws_restJson1UpdateRouteCalculatorCommand = exports.serializeAws_restJson1UpdatePlaceIndexCommand = exports.serializeAws_restJson1UpdateMapCommand = exports.serializeAws_restJson1UpdateGeofenceCollectionCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1SearchPlaceIndexForTextCommand = exports.serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = exports.serializeAws_restJson1SearchPlaceIndexForPositionCommand = exports.serializeAws_restJson1PutGeofenceCommand = exports.serializeAws_restJson1ListTrackersCommand = exports.serializeAws_restJson1ListTrackerConsumersCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListRouteCalculatorsCommand = exports.serializeAws_restJson1ListPlaceIndexesCommand = exports.serializeAws_restJson1ListMapsCommand = exports.serializeAws_restJson1ListGeofencesCommand = exports.serializeAws_restJson1ListGeofenceCollectionsCommand = exports.serializeAws_restJson1ListDevicePositionsCommand = exports.serializeAws_restJson1GetMapTileCommand = exports.serializeAws_restJson1GetMapStyleDescriptorCommand = exports.serializeAws_restJson1GetMapSpritesCommand = exports.serializeAws_restJson1GetMapGlyphsCommand = exports.serializeAws_restJson1GetGeofenceCommand = exports.serializeAws_restJson1GetDevicePositionHistoryCommand = exports.serializeAws_restJson1GetDevicePositionCommand = exports.serializeAws_restJson1DisassociateTrackerConsumerCommand = exports.serializeAws_restJson1DescribeTrackerCommand = exports.serializeAws_restJson1DescribeRouteCalculatorCommand = exports.serializeAws_restJson1DescribePlaceIndexCommand = exports.serializeAws_restJson1DescribeMapCommand = exports.serializeAws_restJson1DescribeGeofenceCollectionCommand = exports.serializeAws_restJson1DeleteTrackerCommand = exports.serializeAws_restJson1DeleteRouteCalculatorCommand = exports.serializeAws_restJson1DeletePlaceIndexCommand = exports.serializeAws_restJson1DeleteMapCommand = exports.serializeAws_restJson1DeleteGeofenceCollectionCommand = exports.serializeAws_restJson1CreateTrackerCommand = exports.serializeAws_restJson1CreateRouteCalculatorCommand = exports.serializeAws_restJson1CreatePlaceIndexCommand = exports.serializeAws_restJson1CreateMapCommand = exports.serializeAws_restJson1CreateGeofenceCollectionCommand = exports.serializeAws_restJson1CalculateRouteCommand = exports.serializeAws_restJson1BatchUpdateDevicePositionCommand = exports.serializeAws_restJson1BatchPutGeofenceCommand = exports.serializeAws_restJson1BatchGetDevicePositionCommand = exports.serializeAws_restJson1BatchEvaluateGeofencesCommand = exports.serializeAws_restJson1BatchDeleteGeofenceCommand = exports.serializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = exports.serializeAws_restJson1AssociateTrackerConsumerCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdatePlaceIndexCommand = exports.deserializeAws_restJson1UpdateMapCommand = exports.deserializeAws_restJson1UpdateGeofenceCollectionCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1SearchPlaceIndexForTextCommand = exports.deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = exports.deserializeAws_restJson1SearchPlaceIndexForPositionCommand = exports.deserializeAws_restJson1PutGeofenceCommand = exports.deserializeAws_restJson1ListTrackersCommand = exports.deserializeAws_restJson1ListTrackerConsumersCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListRouteCalculatorsCommand = exports.deserializeAws_restJson1ListPlaceIndexesCommand = exports.deserializeAws_restJson1ListMapsCommand = exports.deserializeAws_restJson1ListGeofencesCommand = exports.deserializeAws_restJson1ListGeofenceCollectionsCommand = exports.deserializeAws_restJson1ListDevicePositionsCommand = exports.deserializeAws_restJson1GetMapTileCommand = exports.deserializeAws_restJson1GetMapStyleDescriptorCommand = exports.deserializeAws_restJson1GetMapSpritesCommand = exports.deserializeAws_restJson1GetMapGlyphsCommand = exports.deserializeAws_restJson1GetGeofenceCommand = exports.deserializeAws_restJson1GetDevicePositionHistoryCommand = exports.deserializeAws_restJson1GetDevicePositionCommand = exports.deserializeAws_restJson1DisassociateTrackerConsumerCommand = exports.deserializeAws_restJson1DescribeTrackerCommand = exports.deserializeAws_restJson1DescribeRouteCalculatorCommand = exports.deserializeAws_restJson1DescribePlaceIndexCommand = exports.deserializeAws_restJson1DescribeMapCommand = exports.deserializeAws_restJson1DescribeGeofenceCollectionCommand = exports.deserializeAws_restJson1DeleteTrackerCommand = exports.deserializeAws_restJson1DeleteRouteCalculatorCommand = exports.deserializeAws_restJson1DeletePlaceIndexCommand = exports.deserializeAws_restJson1DeleteMapCommand = exports.deserializeAws_restJson1DeleteGeofenceCollectionCommand = exports.deserializeAws_restJson1CreateTrackerCommand = exports.deserializeAws_restJson1CreateRouteCalculatorCommand = exports.deserializeAws_restJson1CreatePlaceIndexCommand = exports.deserializeAws_restJson1CreateMapCommand = exports.deserializeAws_restJson1CreateGeofenceCollectionCommand = exports.deserializeAws_restJson1CalculateRouteCommand = exports.deserializeAws_restJson1BatchUpdateDevicePositionCommand = exports.deserializeAws_restJson1BatchPutGeofenceCommand = exports.deserializeAws_restJson1BatchGetDevicePositionCommand = exports.deserializeAws_restJson1BatchEvaluateGeofencesCommand = exports.deserializeAws_restJson1BatchDeleteGeofenceCommand = exports.deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = exports.deserializeAws_restJson1AssociateTrackerConsumerCommand = exports.serializeAws_restJson1UpdateTrackerCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1UpdateTrackerCommand = exports.deserializeAws_restJson1UpdateRouteCalculatorCommand = void 0;
|
|
5
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
8
|
const serializeAws_restJson1AssociateTrackerConsumerCommand = async (input, context) => {
|
|
@@ -1608,6 +1609,7 @@ const serializeAws_restJson1SearchPlaceIndexForPositionCommand = async (input, c
|
|
|
1608
1609
|
}
|
|
1609
1610
|
let body;
|
|
1610
1611
|
body = JSON.stringify({
|
|
1612
|
+
...(input.Language !== undefined && input.Language !== null && { Language: input.Language }),
|
|
1611
1613
|
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
1612
1614
|
...(input.Position !== undefined &&
|
|
1613
1615
|
input.Position !== null && { Position: serializeAws_restJson1Position(input.Position, context) }),
|
|
@@ -1630,6 +1632,55 @@ const serializeAws_restJson1SearchPlaceIndexForPositionCommand = async (input, c
|
|
|
1630
1632
|
});
|
|
1631
1633
|
};
|
|
1632
1634
|
exports.serializeAws_restJson1SearchPlaceIndexForPositionCommand = serializeAws_restJson1SearchPlaceIndexForPositionCommand;
|
|
1635
|
+
const serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = async (input, context) => {
|
|
1636
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1637
|
+
const headers = {
|
|
1638
|
+
"content-type": "application/json",
|
|
1639
|
+
};
|
|
1640
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1641
|
+
"/places/v0/indexes/{IndexName}/search/suggestions";
|
|
1642
|
+
if (input.IndexName !== undefined) {
|
|
1643
|
+
const labelValue = input.IndexName;
|
|
1644
|
+
if (labelValue.length <= 0) {
|
|
1645
|
+
throw new Error("Empty value provided for input HTTP label: IndexName.");
|
|
1646
|
+
}
|
|
1647
|
+
resolvedPath = resolvedPath.replace("{IndexName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1648
|
+
}
|
|
1649
|
+
else {
|
|
1650
|
+
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
1651
|
+
}
|
|
1652
|
+
let body;
|
|
1653
|
+
body = JSON.stringify({
|
|
1654
|
+
...(input.BiasPosition !== undefined &&
|
|
1655
|
+
input.BiasPosition !== null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) }),
|
|
1656
|
+
...(input.FilterBBox !== undefined &&
|
|
1657
|
+
input.FilterBBox !== null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) }),
|
|
1658
|
+
...(input.FilterCountries !== undefined &&
|
|
1659
|
+
input.FilterCountries !== null && {
|
|
1660
|
+
FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
|
|
1661
|
+
}),
|
|
1662
|
+
...(input.Language !== undefined && input.Language !== null && { Language: input.Language }),
|
|
1663
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
1664
|
+
...(input.Text !== undefined && input.Text !== null && { Text: input.Text }),
|
|
1665
|
+
});
|
|
1666
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1667
|
+
if (context.disableHostPrefix !== true) {
|
|
1668
|
+
resolvedHostname = "places." + resolvedHostname;
|
|
1669
|
+
if (!protocol_http_1.isValidHostname(resolvedHostname)) {
|
|
1670
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
return new protocol_http_1.HttpRequest({
|
|
1674
|
+
protocol,
|
|
1675
|
+
hostname: resolvedHostname,
|
|
1676
|
+
port,
|
|
1677
|
+
method: "POST",
|
|
1678
|
+
headers,
|
|
1679
|
+
path: resolvedPath,
|
|
1680
|
+
body,
|
|
1681
|
+
});
|
|
1682
|
+
};
|
|
1683
|
+
exports.serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand;
|
|
1633
1684
|
const serializeAws_restJson1SearchPlaceIndexForTextCommand = async (input, context) => {
|
|
1634
1685
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1635
1686
|
const headers = {
|
|
@@ -1657,6 +1708,7 @@ const serializeAws_restJson1SearchPlaceIndexForTextCommand = async (input, conte
|
|
|
1657
1708
|
input.FilterCountries !== null && {
|
|
1658
1709
|
FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
|
|
1659
1710
|
}),
|
|
1711
|
+
...(input.Language !== undefined && input.Language !== null && { Language: input.Language }),
|
|
1660
1712
|
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
1661
1713
|
...(input.Text !== undefined && input.Text !== null && { Text: input.Text }),
|
|
1662
1714
|
});
|
|
@@ -4085,18 +4137,26 @@ const deserializeAws_restJson1GetDevicePositionCommand = async (output, context)
|
|
|
4085
4137
|
}
|
|
4086
4138
|
const contents = {
|
|
4087
4139
|
$metadata: deserializeMetadata(output),
|
|
4140
|
+
Accuracy: undefined,
|
|
4088
4141
|
DeviceId: undefined,
|
|
4089
4142
|
Position: undefined,
|
|
4143
|
+
PositionProperties: undefined,
|
|
4090
4144
|
ReceivedTime: undefined,
|
|
4091
4145
|
SampleTime: undefined,
|
|
4092
4146
|
};
|
|
4093
4147
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4148
|
+
if (data.Accuracy !== undefined && data.Accuracy !== null) {
|
|
4149
|
+
contents.Accuracy = deserializeAws_restJson1PositionalAccuracy(data.Accuracy, context);
|
|
4150
|
+
}
|
|
4094
4151
|
if (data.DeviceId !== undefined && data.DeviceId !== null) {
|
|
4095
4152
|
contents.DeviceId = smithy_client_1.expectString(data.DeviceId);
|
|
4096
4153
|
}
|
|
4097
4154
|
if (data.Position !== undefined && data.Position !== null) {
|
|
4098
4155
|
contents.Position = deserializeAws_restJson1Position(data.Position, context);
|
|
4099
4156
|
}
|
|
4157
|
+
if (data.PositionProperties !== undefined && data.PositionProperties !== null) {
|
|
4158
|
+
contents.PositionProperties = deserializeAws_restJson1PropertyMap(data.PositionProperties, context);
|
|
4159
|
+
}
|
|
4100
4160
|
if (data.ReceivedTime !== undefined && data.ReceivedTime !== null) {
|
|
4101
4161
|
contents.ReceivedTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.ReceivedTime));
|
|
4102
4162
|
}
|
|
@@ -5563,6 +5623,90 @@ const deserializeAws_restJson1SearchPlaceIndexForPositionCommandError = async (o
|
|
|
5563
5623
|
delete response.Message;
|
|
5564
5624
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
5565
5625
|
};
|
|
5626
|
+
const deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = async (output, context) => {
|
|
5627
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5628
|
+
return deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError(output, context);
|
|
5629
|
+
}
|
|
5630
|
+
const contents = {
|
|
5631
|
+
$metadata: deserializeMetadata(output),
|
|
5632
|
+
Results: undefined,
|
|
5633
|
+
Summary: undefined,
|
|
5634
|
+
};
|
|
5635
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5636
|
+
if (data.Results !== undefined && data.Results !== null) {
|
|
5637
|
+
contents.Results = deserializeAws_restJson1SearchForSuggestionsResultList(data.Results, context);
|
|
5638
|
+
}
|
|
5639
|
+
if (data.Summary !== undefined && data.Summary !== null) {
|
|
5640
|
+
contents.Summary = deserializeAws_restJson1SearchPlaceIndexForSuggestionsSummary(data.Summary, context);
|
|
5641
|
+
}
|
|
5642
|
+
return Promise.resolve(contents);
|
|
5643
|
+
};
|
|
5644
|
+
exports.deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommand;
|
|
5645
|
+
const deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError = async (output, context) => {
|
|
5646
|
+
const parsedOutput = {
|
|
5647
|
+
...output,
|
|
5648
|
+
body: await parseBody(output.body, context),
|
|
5649
|
+
};
|
|
5650
|
+
let response;
|
|
5651
|
+
let errorCode = "UnknownError";
|
|
5652
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5653
|
+
switch (errorCode) {
|
|
5654
|
+
case "AccessDeniedException":
|
|
5655
|
+
case "com.amazonaws.location#AccessDeniedException":
|
|
5656
|
+
response = {
|
|
5657
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
5658
|
+
name: errorCode,
|
|
5659
|
+
$metadata: deserializeMetadata(output),
|
|
5660
|
+
};
|
|
5661
|
+
break;
|
|
5662
|
+
case "InternalServerException":
|
|
5663
|
+
case "com.amazonaws.location#InternalServerException":
|
|
5664
|
+
response = {
|
|
5665
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
5666
|
+
name: errorCode,
|
|
5667
|
+
$metadata: deserializeMetadata(output),
|
|
5668
|
+
};
|
|
5669
|
+
break;
|
|
5670
|
+
case "ResourceNotFoundException":
|
|
5671
|
+
case "com.amazonaws.location#ResourceNotFoundException":
|
|
5672
|
+
response = {
|
|
5673
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5674
|
+
name: errorCode,
|
|
5675
|
+
$metadata: deserializeMetadata(output),
|
|
5676
|
+
};
|
|
5677
|
+
break;
|
|
5678
|
+
case "ThrottlingException":
|
|
5679
|
+
case "com.amazonaws.location#ThrottlingException":
|
|
5680
|
+
response = {
|
|
5681
|
+
...(await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)),
|
|
5682
|
+
name: errorCode,
|
|
5683
|
+
$metadata: deserializeMetadata(output),
|
|
5684
|
+
};
|
|
5685
|
+
break;
|
|
5686
|
+
case "ValidationException":
|
|
5687
|
+
case "com.amazonaws.location#ValidationException":
|
|
5688
|
+
response = {
|
|
5689
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
5690
|
+
name: errorCode,
|
|
5691
|
+
$metadata: deserializeMetadata(output),
|
|
5692
|
+
};
|
|
5693
|
+
break;
|
|
5694
|
+
default:
|
|
5695
|
+
const parsedBody = parsedOutput.body;
|
|
5696
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
5697
|
+
response = {
|
|
5698
|
+
...parsedBody,
|
|
5699
|
+
name: `${errorCode}`,
|
|
5700
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5701
|
+
$fault: "client",
|
|
5702
|
+
$metadata: deserializeMetadata(output),
|
|
5703
|
+
};
|
|
5704
|
+
}
|
|
5705
|
+
const message = response.message || response.Message || errorCode;
|
|
5706
|
+
response.message = message;
|
|
5707
|
+
delete response.Message;
|
|
5708
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
5709
|
+
};
|
|
5566
5710
|
const deserializeAws_restJson1SearchPlaceIndexForTextCommand = async (output, context) => {
|
|
5567
5711
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5568
5712
|
return deserializeAws_restJson1SearchPlaceIndexForTextCommandError(output, context);
|
|
@@ -6410,9 +6554,15 @@ const serializeAws_restJson1DeviceIdsList = (input, context) => {
|
|
|
6410
6554
|
};
|
|
6411
6555
|
const serializeAws_restJson1DevicePositionUpdate = (input, context) => {
|
|
6412
6556
|
return {
|
|
6557
|
+
...(input.Accuracy !== undefined &&
|
|
6558
|
+
input.Accuracy !== null && { Accuracy: serializeAws_restJson1PositionalAccuracy(input.Accuracy, context) }),
|
|
6413
6559
|
...(input.DeviceId !== undefined && input.DeviceId !== null && { DeviceId: input.DeviceId }),
|
|
6414
6560
|
...(input.Position !== undefined &&
|
|
6415
6561
|
input.Position !== null && { Position: serializeAws_restJson1Position(input.Position, context) }),
|
|
6562
|
+
...(input.PositionProperties !== undefined &&
|
|
6563
|
+
input.PositionProperties !== null && {
|
|
6564
|
+
PositionProperties: serializeAws_restJson1PropertyMap(input.PositionProperties, context),
|
|
6565
|
+
}),
|
|
6416
6566
|
...(input.SampleTime !== undefined &&
|
|
6417
6567
|
input.SampleTime !== null && { SampleTime: input.SampleTime.toISOString().split(".")[0] + "Z" }),
|
|
6418
6568
|
};
|
|
@@ -6478,6 +6628,23 @@ const serializeAws_restJson1Position = (input, context) => {
|
|
|
6478
6628
|
return smithy_client_1.serializeFloat(entry);
|
|
6479
6629
|
});
|
|
6480
6630
|
};
|
|
6631
|
+
const serializeAws_restJson1PositionalAccuracy = (input, context) => {
|
|
6632
|
+
return {
|
|
6633
|
+
...(input.Horizontal !== undefined &&
|
|
6634
|
+
input.Horizontal !== null && { Horizontal: smithy_client_1.serializeFloat(input.Horizontal) }),
|
|
6635
|
+
};
|
|
6636
|
+
};
|
|
6637
|
+
const serializeAws_restJson1PropertyMap = (input, context) => {
|
|
6638
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
6639
|
+
if (value === null) {
|
|
6640
|
+
return acc;
|
|
6641
|
+
}
|
|
6642
|
+
return {
|
|
6643
|
+
...acc,
|
|
6644
|
+
[key]: value,
|
|
6645
|
+
};
|
|
6646
|
+
}, {});
|
|
6647
|
+
};
|
|
6481
6648
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
6482
6649
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
6483
6650
|
if (value === null) {
|
|
@@ -6702,10 +6869,16 @@ const deserializeAws_restJson1DataSourceConfiguration = (output, context) => {
|
|
|
6702
6869
|
};
|
|
6703
6870
|
const deserializeAws_restJson1DevicePosition = (output, context) => {
|
|
6704
6871
|
return {
|
|
6872
|
+
Accuracy: output.Accuracy !== undefined && output.Accuracy !== null
|
|
6873
|
+
? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context)
|
|
6874
|
+
: undefined,
|
|
6705
6875
|
DeviceId: smithy_client_1.expectString(output.DeviceId),
|
|
6706
6876
|
Position: output.Position !== undefined && output.Position !== null
|
|
6707
6877
|
? deserializeAws_restJson1Position(output.Position, context)
|
|
6708
6878
|
: undefined,
|
|
6879
|
+
PositionProperties: output.PositionProperties !== undefined && output.PositionProperties !== null
|
|
6880
|
+
? deserializeAws_restJson1PropertyMap(output.PositionProperties, context)
|
|
6881
|
+
: undefined,
|
|
6709
6882
|
ReceivedTime: output.ReceivedTime !== undefined && output.ReceivedTime !== null
|
|
6710
6883
|
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.ReceivedTime))
|
|
6711
6884
|
: undefined,
|
|
@@ -6798,10 +6971,16 @@ const deserializeAws_restJson1LineString = (output, context) => {
|
|
|
6798
6971
|
};
|
|
6799
6972
|
const deserializeAws_restJson1ListDevicePositionsResponseEntry = (output, context) => {
|
|
6800
6973
|
return {
|
|
6974
|
+
Accuracy: output.Accuracy !== undefined && output.Accuracy !== null
|
|
6975
|
+
? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context)
|
|
6976
|
+
: undefined,
|
|
6801
6977
|
DeviceId: smithy_client_1.expectString(output.DeviceId),
|
|
6802
6978
|
Position: output.Position !== undefined && output.Position !== null
|
|
6803
6979
|
? deserializeAws_restJson1Position(output.Position, context)
|
|
6804
6980
|
: undefined,
|
|
6981
|
+
PositionProperties: output.PositionProperties !== undefined && output.PositionProperties !== null
|
|
6982
|
+
? deserializeAws_restJson1PropertyMap(output.PositionProperties, context)
|
|
6983
|
+
: undefined,
|
|
6805
6984
|
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
6806
6985
|
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SampleTime))
|
|
6807
6986
|
: undefined,
|
|
@@ -6974,6 +7153,7 @@ const deserializeAws_restJson1Place = (output, context) => {
|
|
|
6974
7153
|
Geometry: output.Geometry !== undefined && output.Geometry !== null
|
|
6975
7154
|
? deserializeAws_restJson1PlaceGeometry(output.Geometry, context)
|
|
6976
7155
|
: undefined,
|
|
7156
|
+
Interpolated: smithy_client_1.expectBoolean(output.Interpolated),
|
|
6977
7157
|
Label: smithy_client_1.expectString(output.Label),
|
|
6978
7158
|
Municipality: smithy_client_1.expectString(output.Municipality),
|
|
6979
7159
|
Neighborhood: smithy_client_1.expectString(output.Neighborhood),
|
|
@@ -6981,6 +7161,9 @@ const deserializeAws_restJson1Place = (output, context) => {
|
|
|
6981
7161
|
Region: smithy_client_1.expectString(output.Region),
|
|
6982
7162
|
Street: smithy_client_1.expectString(output.Street),
|
|
6983
7163
|
SubRegion: smithy_client_1.expectString(output.SubRegion),
|
|
7164
|
+
TimeZone: output.TimeZone !== undefined && output.TimeZone !== null
|
|
7165
|
+
? deserializeAws_restJson1TimeZone(output.TimeZone, context)
|
|
7166
|
+
: undefined,
|
|
6984
7167
|
};
|
|
6985
7168
|
};
|
|
6986
7169
|
const deserializeAws_restJson1PlaceGeometry = (output, context) => {
|
|
@@ -7000,8 +7183,25 @@ const deserializeAws_restJson1Position = (output, context) => {
|
|
|
7000
7183
|
return smithy_client_1.limitedParseDouble(entry);
|
|
7001
7184
|
});
|
|
7002
7185
|
};
|
|
7186
|
+
const deserializeAws_restJson1PositionalAccuracy = (output, context) => {
|
|
7187
|
+
return {
|
|
7188
|
+
Horizontal: smithy_client_1.limitedParseDouble(output.Horizontal),
|
|
7189
|
+
};
|
|
7190
|
+
};
|
|
7191
|
+
const deserializeAws_restJson1PropertyMap = (output, context) => {
|
|
7192
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
7193
|
+
if (value === null) {
|
|
7194
|
+
return acc;
|
|
7195
|
+
}
|
|
7196
|
+
return {
|
|
7197
|
+
...acc,
|
|
7198
|
+
[key]: smithy_client_1.expectString(value),
|
|
7199
|
+
};
|
|
7200
|
+
}, {});
|
|
7201
|
+
};
|
|
7003
7202
|
const deserializeAws_restJson1SearchForPositionResult = (output, context) => {
|
|
7004
7203
|
return {
|
|
7204
|
+
Distance: smithy_client_1.limitedParseDouble(output.Distance),
|
|
7005
7205
|
Place: output.Place !== undefined && output.Place !== null
|
|
7006
7206
|
? deserializeAws_restJson1Place(output.Place, context)
|
|
7007
7207
|
: undefined,
|
|
@@ -7017,11 +7217,28 @@ const deserializeAws_restJson1SearchForPositionResultList = (output, context) =>
|
|
|
7017
7217
|
return deserializeAws_restJson1SearchForPositionResult(entry, context);
|
|
7018
7218
|
});
|
|
7019
7219
|
};
|
|
7220
|
+
const deserializeAws_restJson1SearchForSuggestionsResult = (output, context) => {
|
|
7221
|
+
return {
|
|
7222
|
+
Text: smithy_client_1.expectString(output.Text),
|
|
7223
|
+
};
|
|
7224
|
+
};
|
|
7225
|
+
const deserializeAws_restJson1SearchForSuggestionsResultList = (output, context) => {
|
|
7226
|
+
return (output || [])
|
|
7227
|
+
.filter((e) => e != null)
|
|
7228
|
+
.map((entry) => {
|
|
7229
|
+
if (entry === null) {
|
|
7230
|
+
return null;
|
|
7231
|
+
}
|
|
7232
|
+
return deserializeAws_restJson1SearchForSuggestionsResult(entry, context);
|
|
7233
|
+
});
|
|
7234
|
+
};
|
|
7020
7235
|
const deserializeAws_restJson1SearchForTextResult = (output, context) => {
|
|
7021
7236
|
return {
|
|
7237
|
+
Distance: smithy_client_1.limitedParseDouble(output.Distance),
|
|
7022
7238
|
Place: output.Place !== undefined && output.Place !== null
|
|
7023
7239
|
? deserializeAws_restJson1Place(output.Place, context)
|
|
7024
7240
|
: undefined,
|
|
7241
|
+
Relevance: smithy_client_1.limitedParseDouble(output.Relevance),
|
|
7025
7242
|
};
|
|
7026
7243
|
};
|
|
7027
7244
|
const deserializeAws_restJson1SearchForTextResultList = (output, context) => {
|
|
@@ -7037,12 +7254,30 @@ const deserializeAws_restJson1SearchForTextResultList = (output, context) => {
|
|
|
7037
7254
|
const deserializeAws_restJson1SearchPlaceIndexForPositionSummary = (output, context) => {
|
|
7038
7255
|
return {
|
|
7039
7256
|
DataSource: smithy_client_1.expectString(output.DataSource),
|
|
7257
|
+
Language: smithy_client_1.expectString(output.Language),
|
|
7040
7258
|
MaxResults: smithy_client_1.expectInt32(output.MaxResults),
|
|
7041
7259
|
Position: output.Position !== undefined && output.Position !== null
|
|
7042
7260
|
? deserializeAws_restJson1Position(output.Position, context)
|
|
7043
7261
|
: undefined,
|
|
7044
7262
|
};
|
|
7045
7263
|
};
|
|
7264
|
+
const deserializeAws_restJson1SearchPlaceIndexForSuggestionsSummary = (output, context) => {
|
|
7265
|
+
return {
|
|
7266
|
+
BiasPosition: output.BiasPosition !== undefined && output.BiasPosition !== null
|
|
7267
|
+
? deserializeAws_restJson1Position(output.BiasPosition, context)
|
|
7268
|
+
: undefined,
|
|
7269
|
+
DataSource: smithy_client_1.expectString(output.DataSource),
|
|
7270
|
+
FilterBBox: output.FilterBBox !== undefined && output.FilterBBox !== null
|
|
7271
|
+
? deserializeAws_restJson1BoundingBox(output.FilterBBox, context)
|
|
7272
|
+
: undefined,
|
|
7273
|
+
FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
|
|
7274
|
+
? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
|
|
7275
|
+
: undefined,
|
|
7276
|
+
Language: smithy_client_1.expectString(output.Language),
|
|
7277
|
+
MaxResults: smithy_client_1.expectInt32(output.MaxResults),
|
|
7278
|
+
Text: smithy_client_1.expectString(output.Text),
|
|
7279
|
+
};
|
|
7280
|
+
};
|
|
7046
7281
|
const deserializeAws_restJson1SearchPlaceIndexForTextSummary = (output, context) => {
|
|
7047
7282
|
return {
|
|
7048
7283
|
BiasPosition: output.BiasPosition !== undefined && output.BiasPosition !== null
|
|
@@ -7055,6 +7290,7 @@ const deserializeAws_restJson1SearchPlaceIndexForTextSummary = (output, context)
|
|
|
7055
7290
|
FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
|
|
7056
7291
|
? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
|
|
7057
7292
|
: undefined,
|
|
7293
|
+
Language: smithy_client_1.expectString(output.Language),
|
|
7058
7294
|
MaxResults: smithy_client_1.expectInt32(output.MaxResults),
|
|
7059
7295
|
ResultBBox: output.ResultBBox !== undefined && output.ResultBBox !== null
|
|
7060
7296
|
? deserializeAws_restJson1BoundingBox(output.ResultBBox, context)
|
|
@@ -7096,6 +7332,12 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
7096
7332
|
};
|
|
7097
7333
|
}, {});
|
|
7098
7334
|
};
|
|
7335
|
+
const deserializeAws_restJson1TimeZone = (output, context) => {
|
|
7336
|
+
return {
|
|
7337
|
+
Name: smithy_client_1.expectString(output.Name),
|
|
7338
|
+
Offset: smithy_client_1.expectInt32(output.Offset),
|
|
7339
|
+
};
|
|
7340
|
+
};
|
|
7099
7341
|
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
7100
7342
|
return {
|
|
7101
7343
|
Message: smithy_client_1.expectString(output.message),
|
|
@@ -15,10 +15,8 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
18
|
const getRuntimeConfig = (config) => {
|
|
20
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
20
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
21
|
return {
|
|
24
22
|
...clientSharedValues,
|
package/dist-es/Location.js
CHANGED
|
@@ -41,6 +41,7 @@ import { ListTrackerConsumersCommand, } from "./commands/ListTrackerConsumersCom
|
|
|
41
41
|
import { ListTrackersCommand, } from "./commands/ListTrackersCommand";
|
|
42
42
|
import { PutGeofenceCommand } from "./commands/PutGeofenceCommand";
|
|
43
43
|
import { SearchPlaceIndexForPositionCommand, } from "./commands/SearchPlaceIndexForPositionCommand";
|
|
44
|
+
import { SearchPlaceIndexForSuggestionsCommand, } from "./commands/SearchPlaceIndexForSuggestionsCommand";
|
|
44
45
|
import { SearchPlaceIndexForTextCommand, } from "./commands/SearchPlaceIndexForTextCommand";
|
|
45
46
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
46
47
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
@@ -643,6 +644,20 @@ var Location = (function (_super) {
|
|
|
643
644
|
return this.send(command, optionsOrCb);
|
|
644
645
|
}
|
|
645
646
|
};
|
|
647
|
+
Location.prototype.searchPlaceIndexForSuggestions = function (args, optionsOrCb, cb) {
|
|
648
|
+
var command = new SearchPlaceIndexForSuggestionsCommand(args);
|
|
649
|
+
if (typeof optionsOrCb === "function") {
|
|
650
|
+
this.send(command, optionsOrCb);
|
|
651
|
+
}
|
|
652
|
+
else if (typeof cb === "function") {
|
|
653
|
+
if (typeof optionsOrCb !== "object")
|
|
654
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
655
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
656
|
+
}
|
|
657
|
+
else {
|
|
658
|
+
return this.send(command, optionsOrCb);
|
|
659
|
+
}
|
|
660
|
+
};
|
|
646
661
|
Location.prototype.searchPlaceIndexForText = function (args, optionsOrCb, cb) {
|
|
647
662
|
var command = new SearchPlaceIndexForTextCommand(args);
|
|
648
663
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { SearchPlaceIndexForSuggestionsRequest, SearchPlaceIndexForSuggestionsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommand, serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var SearchPlaceIndexForSuggestionsCommand = (function (_super) {
|
|
7
|
+
__extends(SearchPlaceIndexForSuggestionsCommand, _super);
|
|
8
|
+
function SearchPlaceIndexForSuggestionsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
SearchPlaceIndexForSuggestionsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "LocationClient";
|
|
18
|
+
var commandName = "SearchPlaceIndexForSuggestionsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: SearchPlaceIndexForSuggestionsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: SearchPlaceIndexForSuggestionsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
SearchPlaceIndexForSuggestionsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
SearchPlaceIndexForSuggestionsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return SearchPlaceIndexForSuggestionsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { SearchPlaceIndexForSuggestionsCommand };
|
|
@@ -40,6 +40,7 @@ export * from "./ListTrackerConsumersCommand";
|
|
|
40
40
|
export * from "./ListTrackersCommand";
|
|
41
41
|
export * from "./PutGeofenceCommand";
|
|
42
42
|
export * from "./SearchPlaceIndexForPositionCommand";
|
|
43
|
+
export * from "./SearchPlaceIndexForSuggestionsCommand";
|
|
43
44
|
export * from "./SearchPlaceIndexForTextCommand";
|
|
44
45
|
export * from "./TagResourceCommand";
|
|
45
46
|
export * from "./UntagResourceCommand";
|
package/dist-es/endpoints.js
CHANGED
|
@@ -68,9 +68,13 @@ export var BatchDeleteGeofenceResponse;
|
|
|
68
68
|
(function (BatchDeleteGeofenceResponse) {
|
|
69
69
|
BatchDeleteGeofenceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
70
70
|
})(BatchDeleteGeofenceResponse || (BatchDeleteGeofenceResponse = {}));
|
|
71
|
+
export var PositionalAccuracy;
|
|
72
|
+
(function (PositionalAccuracy) {
|
|
73
|
+
PositionalAccuracy.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
74
|
+
})(PositionalAccuracy || (PositionalAccuracy = {}));
|
|
71
75
|
export var DevicePositionUpdate;
|
|
72
76
|
(function (DevicePositionUpdate) {
|
|
73
|
-
DevicePositionUpdate.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING }))); };
|
|
77
|
+
DevicePositionUpdate.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING })), (obj.PositionProperties && { PositionProperties: SENSITIVE_STRING }))); };
|
|
74
78
|
})(DevicePositionUpdate || (DevicePositionUpdate = {}));
|
|
75
79
|
export var BatchEvaluateGeofencesRequest;
|
|
76
80
|
(function (BatchEvaluateGeofencesRequest) {
|
|
@@ -92,7 +96,7 @@ export var BatchGetDevicePositionRequest;
|
|
|
92
96
|
})(BatchGetDevicePositionRequest || (BatchGetDevicePositionRequest = {}));
|
|
93
97
|
export var DevicePosition;
|
|
94
98
|
(function (DevicePosition) {
|
|
95
|
-
DevicePosition.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING }))); };
|
|
99
|
+
DevicePosition.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING })), (obj.PositionProperties && { PositionProperties: SENSITIVE_STRING }))); };
|
|
96
100
|
})(DevicePosition || (DevicePosition = {}));
|
|
97
101
|
export var BatchGetDevicePositionError;
|
|
98
102
|
(function (BatchGetDevicePositionError) {
|
|
@@ -394,7 +398,7 @@ export var GetDevicePositionRequest;
|
|
|
394
398
|
})(GetDevicePositionRequest || (GetDevicePositionRequest = {}));
|
|
395
399
|
export var GetDevicePositionResponse;
|
|
396
400
|
(function (GetDevicePositionResponse) {
|
|
397
|
-
GetDevicePositionResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING }))); };
|
|
401
|
+
GetDevicePositionResponse.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING })), (obj.PositionProperties && { PositionProperties: SENSITIVE_STRING }))); };
|
|
398
402
|
})(GetDevicePositionResponse || (GetDevicePositionResponse = {}));
|
|
399
403
|
export var GetDevicePositionHistoryRequest;
|
|
400
404
|
(function (GetDevicePositionHistoryRequest) {
|
|
@@ -444,7 +448,7 @@ export var ListDevicePositionsRequest;
|
|
|
444
448
|
})(ListDevicePositionsRequest || (ListDevicePositionsRequest = {}));
|
|
445
449
|
export var ListDevicePositionsResponseEntry;
|
|
446
450
|
(function (ListDevicePositionsResponseEntry) {
|
|
447
|
-
ListDevicePositionsResponseEntry.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING }))); };
|
|
451
|
+
ListDevicePositionsResponseEntry.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING })), (obj.PositionProperties && { PositionProperties: SENSITIVE_STRING }))); };
|
|
448
452
|
})(ListDevicePositionsResponseEntry || (ListDevicePositionsResponseEntry = {}));
|
|
449
453
|
export var ListDevicePositionsResponse;
|
|
450
454
|
(function (ListDevicePositionsResponse) {
|
|
@@ -524,6 +528,10 @@ export var PlaceGeometry;
|
|
|
524
528
|
(function (PlaceGeometry) {
|
|
525
529
|
PlaceGeometry.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Point && { Point: SENSITIVE_STRING }))); };
|
|
526
530
|
})(PlaceGeometry || (PlaceGeometry = {}));
|
|
531
|
+
export var TimeZone;
|
|
532
|
+
(function (TimeZone) {
|
|
533
|
+
TimeZone.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
534
|
+
})(TimeZone || (TimeZone = {}));
|
|
527
535
|
export var Place;
|
|
528
536
|
(function (Place) {
|
|
529
537
|
Place.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Geometry && { Geometry: PlaceGeometry.filterSensitiveLog(obj.Geometry) }))); };
|
|
@@ -540,6 +548,22 @@ export var SearchPlaceIndexForPositionResponse;
|
|
|
540
548
|
(function (SearchPlaceIndexForPositionResponse) {
|
|
541
549
|
SearchPlaceIndexForPositionResponse.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Summary && { Summary: SearchPlaceIndexForPositionSummary.filterSensitiveLog(obj.Summary) })), (obj.Results && { Results: obj.Results.map(function (item) { return SearchForPositionResult.filterSensitiveLog(item); }) }))); };
|
|
542
550
|
})(SearchPlaceIndexForPositionResponse || (SearchPlaceIndexForPositionResponse = {}));
|
|
551
|
+
export var SearchPlaceIndexForSuggestionsRequest;
|
|
552
|
+
(function (SearchPlaceIndexForSuggestionsRequest) {
|
|
553
|
+
SearchPlaceIndexForSuggestionsRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.Text && { Text: SENSITIVE_STRING })), (obj.BiasPosition && { BiasPosition: SENSITIVE_STRING })), (obj.FilterBBox && { FilterBBox: SENSITIVE_STRING }))); };
|
|
554
|
+
})(SearchPlaceIndexForSuggestionsRequest || (SearchPlaceIndexForSuggestionsRequest = {}));
|
|
555
|
+
export var SearchForSuggestionsResult;
|
|
556
|
+
(function (SearchForSuggestionsResult) {
|
|
557
|
+
SearchForSuggestionsResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
558
|
+
})(SearchForSuggestionsResult || (SearchForSuggestionsResult = {}));
|
|
559
|
+
export var SearchPlaceIndexForSuggestionsSummary;
|
|
560
|
+
(function (SearchPlaceIndexForSuggestionsSummary) {
|
|
561
|
+
SearchPlaceIndexForSuggestionsSummary.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.Text && { Text: SENSITIVE_STRING })), (obj.BiasPosition && { BiasPosition: SENSITIVE_STRING })), (obj.FilterBBox && { FilterBBox: SENSITIVE_STRING }))); };
|
|
562
|
+
})(SearchPlaceIndexForSuggestionsSummary || (SearchPlaceIndexForSuggestionsSummary = {}));
|
|
563
|
+
export var SearchPlaceIndexForSuggestionsResponse;
|
|
564
|
+
(function (SearchPlaceIndexForSuggestionsResponse) {
|
|
565
|
+
SearchPlaceIndexForSuggestionsResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Summary && { Summary: SearchPlaceIndexForSuggestionsSummary.filterSensitiveLog(obj.Summary) }))); };
|
|
566
|
+
})(SearchPlaceIndexForSuggestionsResponse || (SearchPlaceIndexForSuggestionsResponse = {}));
|
|
543
567
|
export var SearchPlaceIndexForTextRequest;
|
|
544
568
|
(function (SearchPlaceIndexForTextRequest) {
|
|
545
569
|
SearchPlaceIndexForTextRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign(__assign({}, obj), (obj.Text && { Text: SENSITIVE_STRING })), (obj.BiasPosition && { BiasPosition: SENSITIVE_STRING })), (obj.FilterBBox && { FilterBBox: SENSITIVE_STRING }))); };
|