@aws-sdk/client-location 3.43.0 → 3.45.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 +11 -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 +44 -3
- package/dist-cjs/protocols/Aws_restJson1.js +227 -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 +24 -4
- package/dist-es/protocols/Aws_restJson1.js +234 -2
- package/dist-types/Location.d.ts +33 -4
- 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/CreatePlaceIndexCommand.d.ts +2 -1
- package/dist-types/commands/SearchPlaceIndexForSuggestionsCommand.d.ts +44 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +267 -12
- 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 +98 -5
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +5 -5
|
@@ -175,6 +175,15 @@ export declare namespace BatchDeleteGeofenceResponse {
|
|
|
175
175
|
const filterSensitiveLog: (obj: BatchDeleteGeofenceResponse) => any;
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
+
export interface PositionalAccuracy {
|
|
179
|
+
|
|
180
|
+
Horizontal: number | undefined;
|
|
181
|
+
}
|
|
182
|
+
export declare namespace PositionalAccuracy {
|
|
183
|
+
|
|
184
|
+
const filterSensitiveLog: (obj: PositionalAccuracy) => any;
|
|
185
|
+
}
|
|
186
|
+
|
|
178
187
|
export interface DevicePositionUpdate {
|
|
179
188
|
|
|
180
189
|
DeviceId: string | undefined;
|
|
@@ -182,6 +191,12 @@ export interface DevicePositionUpdate {
|
|
|
182
191
|
SampleTime: Date | undefined;
|
|
183
192
|
|
|
184
193
|
Position: number[] | undefined;
|
|
194
|
+
|
|
195
|
+
Accuracy?: PositionalAccuracy;
|
|
196
|
+
|
|
197
|
+
PositionProperties?: {
|
|
198
|
+
[key: string]: string;
|
|
199
|
+
};
|
|
185
200
|
}
|
|
186
201
|
export declare namespace DevicePositionUpdate {
|
|
187
202
|
|
|
@@ -238,6 +253,12 @@ export interface DevicePosition {
|
|
|
238
253
|
ReceivedTime: Date | undefined;
|
|
239
254
|
|
|
240
255
|
Position: number[] | undefined;
|
|
256
|
+
|
|
257
|
+
Accuracy?: PositionalAccuracy;
|
|
258
|
+
|
|
259
|
+
PositionProperties?: {
|
|
260
|
+
[key: string]: string;
|
|
261
|
+
};
|
|
241
262
|
}
|
|
242
263
|
export declare namespace DevicePosition {
|
|
243
264
|
|
|
@@ -521,7 +542,7 @@ export interface CreateGeofenceCollectionRequest {
|
|
|
521
542
|
|
|
522
543
|
CollectionName: string | undefined;
|
|
523
544
|
|
|
524
|
-
PricingPlan
|
|
545
|
+
PricingPlan?: PricingPlan | string;
|
|
525
546
|
|
|
526
547
|
PricingPlanDataSource?: string;
|
|
527
548
|
|
|
@@ -564,7 +585,7 @@ export interface CreateMapRequest {
|
|
|
564
585
|
|
|
565
586
|
Configuration: MapConfiguration | undefined;
|
|
566
587
|
|
|
567
|
-
PricingPlan
|
|
588
|
+
PricingPlan?: PricingPlan | string;
|
|
568
589
|
|
|
569
590
|
Description?: string;
|
|
570
591
|
|
|
@@ -604,7 +625,7 @@ export interface CreatePlaceIndexRequest {
|
|
|
604
625
|
|
|
605
626
|
DataSource: string | undefined;
|
|
606
627
|
|
|
607
|
-
PricingPlan
|
|
628
|
+
PricingPlan?: PricingPlan | string;
|
|
608
629
|
|
|
609
630
|
Description?: string;
|
|
610
631
|
|
|
@@ -636,7 +657,7 @@ export interface CreateRouteCalculatorRequest {
|
|
|
636
657
|
|
|
637
658
|
DataSource: string | undefined;
|
|
638
659
|
|
|
639
|
-
PricingPlan
|
|
660
|
+
PricingPlan?: PricingPlan | string;
|
|
640
661
|
|
|
641
662
|
Description?: string;
|
|
642
663
|
|
|
@@ -665,7 +686,7 @@ export interface CreateTrackerRequest {
|
|
|
665
686
|
|
|
666
687
|
TrackerName: string | undefined;
|
|
667
688
|
|
|
668
|
-
PricingPlan
|
|
689
|
+
PricingPlan?: PricingPlan | string;
|
|
669
690
|
|
|
670
691
|
KmsKeyId?: string;
|
|
671
692
|
|
|
@@ -1174,6 +1195,12 @@ export interface GetDevicePositionResponse {
|
|
|
1174
1195
|
ReceivedTime: Date | undefined;
|
|
1175
1196
|
|
|
1176
1197
|
Position: number[] | undefined;
|
|
1198
|
+
|
|
1199
|
+
Accuracy?: PositionalAccuracy;
|
|
1200
|
+
|
|
1201
|
+
PositionProperties?: {
|
|
1202
|
+
[key: string]: string;
|
|
1203
|
+
};
|
|
1177
1204
|
}
|
|
1178
1205
|
export declare namespace GetDevicePositionResponse {
|
|
1179
1206
|
|
|
@@ -1309,6 +1336,12 @@ export interface ListDevicePositionsResponseEntry {
|
|
|
1309
1336
|
SampleTime: Date | undefined;
|
|
1310
1337
|
|
|
1311
1338
|
Position: number[] | undefined;
|
|
1339
|
+
|
|
1340
|
+
Accuracy?: PositionalAccuracy;
|
|
1341
|
+
|
|
1342
|
+
PositionProperties?: {
|
|
1343
|
+
[key: string]: string;
|
|
1344
|
+
};
|
|
1312
1345
|
}
|
|
1313
1346
|
export declare namespace ListDevicePositionsResponseEntry {
|
|
1314
1347
|
|
|
@@ -1627,6 +1660,66 @@ export declare namespace SearchPlaceIndexForPositionResponse {
|
|
|
1627
1660
|
|
|
1628
1661
|
const filterSensitiveLog: (obj: SearchPlaceIndexForPositionResponse) => any;
|
|
1629
1662
|
}
|
|
1663
|
+
export interface SearchPlaceIndexForSuggestionsRequest {
|
|
1664
|
+
|
|
1665
|
+
IndexName: string | undefined;
|
|
1666
|
+
|
|
1667
|
+
Text: string | undefined;
|
|
1668
|
+
|
|
1669
|
+
BiasPosition?: number[];
|
|
1670
|
+
|
|
1671
|
+
FilterBBox?: number[];
|
|
1672
|
+
|
|
1673
|
+
FilterCountries?: string[];
|
|
1674
|
+
|
|
1675
|
+
MaxResults?: number;
|
|
1676
|
+
|
|
1677
|
+
Language?: string;
|
|
1678
|
+
}
|
|
1679
|
+
export declare namespace SearchPlaceIndexForSuggestionsRequest {
|
|
1680
|
+
|
|
1681
|
+
const filterSensitiveLog: (obj: SearchPlaceIndexForSuggestionsRequest) => any;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
export interface SearchForSuggestionsResult {
|
|
1685
|
+
|
|
1686
|
+
Text: string | undefined;
|
|
1687
|
+
}
|
|
1688
|
+
export declare namespace SearchForSuggestionsResult {
|
|
1689
|
+
|
|
1690
|
+
const filterSensitiveLog: (obj: SearchForSuggestionsResult) => any;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
export interface SearchPlaceIndexForSuggestionsSummary {
|
|
1694
|
+
|
|
1695
|
+
Text: string | undefined;
|
|
1696
|
+
|
|
1697
|
+
BiasPosition?: number[];
|
|
1698
|
+
|
|
1699
|
+
FilterBBox?: number[];
|
|
1700
|
+
|
|
1701
|
+
FilterCountries?: string[];
|
|
1702
|
+
|
|
1703
|
+
MaxResults?: number;
|
|
1704
|
+
|
|
1705
|
+
DataSource: string | undefined;
|
|
1706
|
+
|
|
1707
|
+
Language?: string;
|
|
1708
|
+
}
|
|
1709
|
+
export declare namespace SearchPlaceIndexForSuggestionsSummary {
|
|
1710
|
+
|
|
1711
|
+
const filterSensitiveLog: (obj: SearchPlaceIndexForSuggestionsSummary) => any;
|
|
1712
|
+
}
|
|
1713
|
+
export interface SearchPlaceIndexForSuggestionsResponse {
|
|
1714
|
+
|
|
1715
|
+
Summary: SearchPlaceIndexForSuggestionsSummary | undefined;
|
|
1716
|
+
|
|
1717
|
+
Results: SearchForSuggestionsResult[] | undefined;
|
|
1718
|
+
}
|
|
1719
|
+
export declare namespace SearchPlaceIndexForSuggestionsResponse {
|
|
1720
|
+
|
|
1721
|
+
const filterSensitiveLog: (obj: SearchPlaceIndexForSuggestionsResponse) => any;
|
|
1722
|
+
}
|
|
1630
1723
|
export interface SearchPlaceIndexForTextRequest {
|
|
1631
1724
|
|
|
1632
1725
|
IndexName: string | undefined;
|
|
@@ -42,6 +42,7 @@ import { ListTrackerConsumersCommandInput, ListTrackerConsumersCommandOutput } f
|
|
|
42
42
|
import { ListTrackersCommandInput, ListTrackersCommandOutput } from "../commands/ListTrackersCommand";
|
|
43
43
|
import { PutGeofenceCommandInput, PutGeofenceCommandOutput } from "../commands/PutGeofenceCommand";
|
|
44
44
|
import { SearchPlaceIndexForPositionCommandInput, SearchPlaceIndexForPositionCommandOutput } from "../commands/SearchPlaceIndexForPositionCommand";
|
|
45
|
+
import { SearchPlaceIndexForSuggestionsCommandInput, SearchPlaceIndexForSuggestionsCommandOutput } from "../commands/SearchPlaceIndexForSuggestionsCommand";
|
|
45
46
|
import { SearchPlaceIndexForTextCommandInput, SearchPlaceIndexForTextCommandOutput } from "../commands/SearchPlaceIndexForTextCommand";
|
|
46
47
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
47
48
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
@@ -92,6 +93,7 @@ export declare const serializeAws_restJson1ListTrackerConsumersCommand: (input:
|
|
|
92
93
|
export declare const serializeAws_restJson1ListTrackersCommand: (input: ListTrackersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
93
94
|
export declare const serializeAws_restJson1PutGeofenceCommand: (input: PutGeofenceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
94
95
|
export declare const serializeAws_restJson1SearchPlaceIndexForPositionCommand: (input: SearchPlaceIndexForPositionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
96
|
+
export declare const serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand: (input: SearchPlaceIndexForSuggestionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
95
97
|
export declare const serializeAws_restJson1SearchPlaceIndexForTextCommand: (input: SearchPlaceIndexForTextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
96
98
|
export declare const serializeAws_restJson1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
97
99
|
export declare const serializeAws_restJson1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -142,6 +144,7 @@ export declare const deserializeAws_restJson1ListTrackerConsumersCommand: (outpu
|
|
|
142
144
|
export declare const deserializeAws_restJson1ListTrackersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTrackersCommandOutput>;
|
|
143
145
|
export declare const deserializeAws_restJson1PutGeofenceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PutGeofenceCommandOutput>;
|
|
144
146
|
export declare const deserializeAws_restJson1SearchPlaceIndexForPositionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchPlaceIndexForPositionCommandOutput>;
|
|
147
|
+
export declare const deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchPlaceIndexForSuggestionsCommandOutput>;
|
|
145
148
|
export declare const deserializeAws_restJson1SearchPlaceIndexForTextCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchPlaceIndexForTextCommandOutput>;
|
|
146
149
|
export declare const deserializeAws_restJson1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
147
150
|
export declare const deserializeAws_restJson1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-location",
|
|
3
3
|
"description": "AWS SDK for JavaScript Location Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.45.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.45.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.45.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.45.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.40.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.40.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.40.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@aws-sdk/middleware-logger": "3.40.0",
|
|
33
33
|
"@aws-sdk/middleware-retry": "3.40.0",
|
|
34
34
|
"@aws-sdk/middleware-serde": "3.40.0",
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.45.0",
|
|
36
36
|
"@aws-sdk/middleware-stack": "3.40.0",
|
|
37
37
|
"@aws-sdk/middleware-user-agent": "3.40.0",
|
|
38
38
|
"@aws-sdk/node-config-provider": "3.40.0",
|