@aws-sdk/client-location 3.179.0 → 3.181.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 +23 -0
- package/dist-cjs/Location.js +15 -0
- package/dist-cjs/commands/GetPlaceCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +25 -16
- package/dist-cjs/protocols/Aws_restJson1.js +142 -55
- package/dist-es/Location.js +15 -0
- package/dist-es/commands/GetPlaceCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +5 -3
- package/dist-es/protocols/Aws_restJson1.js +178 -51
- package/dist-types/Location.d.ts +23 -0
- package/dist-types/LocationClient.d.ts +3 -2
- package/dist-types/commands/GetPlaceCommand.d.ts +51 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +207 -123
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/Location.d.ts +17 -0
- package/dist-types/ts3.4/LocationClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetPlaceCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +45 -26
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +6 -6
|
@@ -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 { GetPlaceRequestFilterSensitiveLog, GetPlaceResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetPlaceCommand, serializeAws_restJson1GetPlaceCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetPlaceCommand = (function (_super) {
|
|
7
|
+
__extends(GetPlaceCommand, _super);
|
|
8
|
+
function GetPlaceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetPlaceCommand.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 = "GetPlaceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetPlaceRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetPlaceResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetPlaceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetPlaceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetPlaceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetPlaceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetPlaceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetPlaceCommand };
|
|
@@ -30,6 +30,7 @@ export * from "./GetMapGlyphsCommand";
|
|
|
30
30
|
export * from "./GetMapSpritesCommand";
|
|
31
31
|
export * from "./GetMapStyleDescriptorCommand";
|
|
32
32
|
export * from "./GetMapTileCommand";
|
|
33
|
+
export * from "./GetPlaceCommand";
|
|
33
34
|
export * from "./ListDevicePositionsCommand";
|
|
34
35
|
export * from "./ListGeofenceCollectionsCommand";
|
|
35
36
|
export * from "./ListGeofencesCommand";
|
|
@@ -210,6 +210,11 @@ export var GetMapStyleDescriptorRequestFilterSensitiveLog = function (obj) { ret
|
|
|
210
210
|
export var GetMapStyleDescriptorResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
211
211
|
export var GetMapTileRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
212
212
|
export var GetMapTileResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
213
|
+
export var GetPlaceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
214
|
+
export var PlaceGeometryFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Point && { Point: SENSITIVE_STRING }))); };
|
|
215
|
+
export var TimeZoneFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
216
|
+
export var PlaceFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Geometry && { Geometry: PlaceGeometryFilterSensitiveLog(obj.Geometry) }))); };
|
|
217
|
+
export var GetPlaceResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Place && { Place: PlaceFilterSensitiveLog(obj.Place) }))); };
|
|
213
218
|
export var ListDevicePositionsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
214
219
|
export var ListDevicePositionsResponseEntryFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING })), (obj.PositionProperties && { PositionProperties: SENSITIVE_STRING }))); };
|
|
215
220
|
export var ListDevicePositionsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Entries && { Entries: obj.Entries.map(function (item) { return ListDevicePositionsResponseEntryFilterSensitiveLog(item); }) }))); };
|
|
@@ -230,9 +235,6 @@ export var ListTrackersResponseFilterSensitiveLog = function (obj) { return (__a
|
|
|
230
235
|
export var UpdateMapRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
231
236
|
export var UpdateMapResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
232
237
|
export var SearchPlaceIndexForPositionRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING }))); };
|
|
233
|
-
export var PlaceGeometryFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Point && { Point: SENSITIVE_STRING }))); };
|
|
234
|
-
export var TimeZoneFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
235
|
-
export var PlaceFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Geometry && { Geometry: PlaceGeometryFilterSensitiveLog(obj.Geometry) }))); };
|
|
236
238
|
export var SearchForPositionResultFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Place && { Place: PlaceFilterSensitiveLog(obj.Place) }))); };
|
|
237
239
|
export var SearchPlaceIndexForPositionSummaryFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Position && { Position: SENSITIVE_STRING }))); };
|
|
238
240
|
export var SearchPlaceIndexForPositionResponseFilterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.Summary && { Summary: SearchPlaceIndexForPositionSummaryFilterSensitiveLog(obj.Summary) })), (obj.Results && { Results: obj.Results.map(function (item) { return SearchForPositionResultFilterSensitiveLog(item); }) }))); };
|