@aws-sdk/client-geo-places 3.830.0 → 3.835.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.
@@ -223,6 +223,7 @@ const de_GetPlaceCommand = async (output, context) => {
223
223
  Categories: smithy_client_1._json,
224
224
  Contacts: smithy_client_1._json,
225
225
  FoodTypes: smithy_client_1._json,
226
+ MainAddress: (_) => de_RelatedPlace(_, context),
226
227
  MapView: (_) => de_BoundingBox(_, context),
227
228
  OpeningHours: smithy_client_1._json,
228
229
  Phonemes: smithy_client_1._json,
@@ -231,6 +232,7 @@ const de_GetPlaceCommand = async (output, context) => {
231
232
  PoliticalView: smithy_client_1.expectString,
232
233
  Position: (_) => de_Position(_, context),
233
234
  PostalCodeDetails: smithy_client_1._json,
235
+ SecondaryAddresses: (_) => de_RelatedPlaceList(_, context),
234
236
  TimeZone: smithy_client_1._json,
235
237
  Title: smithy_client_1.expectString,
236
238
  });
@@ -466,6 +468,7 @@ const de_AddressComponentMatchScores = (output, context) => {
466
468
  Locality: smithy_client_1.limitedParseDouble,
467
469
  PostalCode: smithy_client_1.limitedParseDouble,
468
470
  Region: smithy_client_1.limitedParseDouble,
471
+ SecondaryAddressComponents: (_) => de_SecondaryAddressComponentMatchScoreList(_, context),
469
472
  SubBlock: smithy_client_1.limitedParseDouble,
470
473
  SubDistrict: smithy_client_1.limitedParseDouble,
471
474
  SubRegion: smithy_client_1.limitedParseDouble,
@@ -493,13 +496,17 @@ const de_GeocodeResultItem = (output, context) => {
493
496
  Categories: smithy_client_1._json,
494
497
  Distance: smithy_client_1.expectLong,
495
498
  FoodTypes: smithy_client_1._json,
499
+ Intersections: (_) => de_IntersectionList(_, context),
500
+ MainAddress: (_) => de_RelatedPlace(_, context),
496
501
  MapView: (_) => de_BoundingBox(_, context),
497
502
  MatchScores: (_) => de_MatchScoreDetails(_, context),
503
+ ParsedQuery: smithy_client_1._json,
498
504
  PlaceId: smithy_client_1.expectString,
499
505
  PlaceType: smithy_client_1.expectString,
500
506
  PoliticalView: smithy_client_1.expectString,
501
507
  Position: (_) => de_Position(_, context),
502
508
  PostalCodeDetails: smithy_client_1._json,
509
+ SecondaryAddresses: (_) => de_RelatedPlaceList(_, context),
503
510
  TimeZone: smithy_client_1._json,
504
511
  Title: smithy_client_1.expectString,
505
512
  });
@@ -512,6 +519,26 @@ const de_GeocodeResultItemList = (output, context) => {
512
519
  });
513
520
  return retVal;
514
521
  };
522
+ const de_Intersection = (output, context) => {
523
+ return (0, smithy_client_1.take)(output, {
524
+ AccessPoints: (_) => de_AccessPointList(_, context),
525
+ Address: smithy_client_1._json,
526
+ Distance: smithy_client_1.expectLong,
527
+ MapView: (_) => de_BoundingBox(_, context),
528
+ PlaceId: smithy_client_1.expectString,
529
+ Position: (_) => de_Position(_, context),
530
+ RouteDistance: smithy_client_1.expectLong,
531
+ Title: smithy_client_1.expectString,
532
+ });
533
+ };
534
+ const de_IntersectionList = (output, context) => {
535
+ const retVal = (output || [])
536
+ .filter((e) => e != null)
537
+ .map((entry) => {
538
+ return de_Intersection(entry, context);
539
+ });
540
+ return retVal;
541
+ };
515
542
  const de_MatchScoreDetails = (output, context) => {
516
543
  return (0, smithy_client_1.take)(output, {
517
544
  Components: (_) => de_ComponentMatchScores(_, context),
@@ -534,6 +561,24 @@ const de_Position = (output, context) => {
534
561
  });
535
562
  return retVal;
536
563
  };
564
+ const de_RelatedPlace = (output, context) => {
565
+ return (0, smithy_client_1.take)(output, {
566
+ AccessPoints: (_) => de_AccessPointList(_, context),
567
+ Address: smithy_client_1._json,
568
+ PlaceId: smithy_client_1.expectString,
569
+ PlaceType: smithy_client_1.expectString,
570
+ Position: (_) => de_Position(_, context),
571
+ Title: smithy_client_1.expectString,
572
+ });
573
+ };
574
+ const de_RelatedPlaceList = (output, context) => {
575
+ const retVal = (output || [])
576
+ .filter((e) => e != null)
577
+ .map((entry) => {
578
+ return de_RelatedPlace(entry, context);
579
+ });
580
+ return retVal;
581
+ };
537
582
  const de_ReverseGeocodeResultItem = (output, context) => {
538
583
  return (0, smithy_client_1.take)(output, {
539
584
  AccessPoints: (_) => de_AccessPointList(_, context),
@@ -542,6 +587,7 @@ const de_ReverseGeocodeResultItem = (output, context) => {
542
587
  Categories: smithy_client_1._json,
543
588
  Distance: smithy_client_1.expectLong,
544
589
  FoodTypes: smithy_client_1._json,
590
+ Intersections: (_) => de_IntersectionList(_, context),
545
591
  MapView: (_) => de_BoundingBox(_, context),
546
592
  PlaceId: smithy_client_1.expectString,
547
593
  PlaceType: smithy_client_1.expectString,
@@ -620,6 +666,19 @@ const de_SearchTextResultItemList = (output, context) => {
620
666
  });
621
667
  return retVal;
622
668
  };
669
+ const de_SecondaryAddressComponentMatchScore = (output, context) => {
670
+ return (0, smithy_client_1.take)(output, {
671
+ Number: smithy_client_1.limitedParseDouble,
672
+ });
673
+ };
674
+ const de_SecondaryAddressComponentMatchScoreList = (output, context) => {
675
+ const retVal = (output || [])
676
+ .filter((e) => e != null)
677
+ .map((entry) => {
678
+ return de_SecondaryAddressComponentMatchScore(entry, context);
679
+ });
680
+ return retVal;
681
+ };
623
682
  const de_SuggestPlaceResult = (output, context) => {
624
683
  return (0, smithy_client_1.take)(output, {
625
684
  AccessPoints: (_) => de_AccessPointList(_, context),
@@ -2,7 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { AutocompleteRequestFilterSensitiveLog } from "../models/models_0";
5
+ import { AutocompleteRequestFilterSensitiveLog, AutocompleteResponseFilterSensitiveLog, } from "../models/models_0";
6
6
  import { de_AutocompleteCommand, se_AutocompleteCommand } from "../protocols/Aws_restJson1";
7
7
  export { $Command };
8
8
  export class AutocompleteCommand extends $Command
@@ -16,7 +16,7 @@ export class AutocompleteCommand extends $Command
16
16
  })
17
17
  .s("PlacesService", "Autocomplete", {})
18
18
  .n("GeoPlacesClient", "AutocompleteCommand")
19
- .f(AutocompleteRequestFilterSensitiveLog, void 0)
19
+ .f(AutocompleteRequestFilterSensitiveLog, AutocompleteResponseFilterSensitiveLog)
20
20
  .ser(se_AutocompleteCommand)
21
21
  .de(de_AutocompleteCommand)
22
22
  .build() {
@@ -1,4 +1,4 @@
1
- const u = "required", v = "fn", w = "argv", x = "ref";
2
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [u]: true, "default": false, "type": "Boolean" }, i = { [u]: false, "type": "String" }, j = { [x]: "Endpoint" }, k = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, l = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, m = {}, n = { [v]: "stringEquals", [w]: [{ [v]: "getAttr", [w]: [{ [x]: g }, "name"] }, "aws"] }, o = { [v]: c, [w]: [{ [x]: "UseFIPS" }, false] }, p = { [v]: c, [w]: [{ [x]: "UseDualStack" }, false] }, q = { [v]: "stringEquals", [w]: [{ [v]: "getAttr", [w]: [{ [x]: g }, "name"] }, "aws-us-gov"] }, r = { [v]: "getAttr", [w]: [{ [x]: g }, "supportsFIPS"] }, s = { [v]: c, [w]: [true, { [v]: "getAttr", [w]: [{ [x]: g }, "supportsDualStack"] }] }, t = [{ [x]: "Region" }];
3
- const _data = { version: "1.0", parameters: { UseDualStack: h, UseFIPS: h, Endpoint: i, Region: i }, rules: [{ conditions: [{ [v]: b, [w]: [j] }], rules: [{ conditions: [k], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: [l], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [n, o, p], endpoint: { url: "https://places.geo.{Region}.{PartitionResult#dnsSuffix}/v2", properties: m, headers: m }, type: e }, { conditions: [n, k, l], endpoint: { url: "https://places.geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}/v2", properties: m, headers: m }, type: e }, { conditions: [n, k, p], endpoint: { url: "https://places.geo-fips.{Region}.{PartitionResult#dnsSuffix}/v2", properties: m, headers: m }, type: e }, { conditions: [n, o, l], endpoint: { url: "https://places.geo.{Region}.{PartitionResult#dualStackDnsSuffix}/v2", properties: m, headers: m }, type: e }, { conditions: [q, o, p], endpoint: { url: "https://places.geo.{Region}.us-gov.{PartitionResult#dnsSuffix}/v2", properties: m, headers: m }, type: e }, { conditions: [q, k, l], endpoint: { url: "https://places.geo-fips.{Region}.us-gov.{PartitionResult#dualStackDnsSuffix}/v2", properties: m, headers: m }, type: e }, { conditions: [q, k, p], endpoint: { url: "https://places.geo-fips.{Region}.us-gov.{PartitionResult#dnsSuffix}/v2", properties: m, headers: m }, type: e }, { conditions: [q, o, l], endpoint: { url: "https://places.geo.{Region}.us-gov.{PartitionResult#dualStackDnsSuffix}/v2", properties: m, headers: m }, type: e }, { conditions: [k, l], rules: [{ conditions: [{ [v]: c, [w]: [a, r] }, s], rules: [{ endpoint: { url: "https://geo-places-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: [k, p], rules: [{ conditions: [{ [v]: c, [w]: [r, a] }], rules: [{ endpoint: { url: "https://geo-places-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: [o, l], rules: [{ conditions: [s], rules: [{ endpoint: { url: "https://geo-places.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://geo-places.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
1
+ const y = "required", z = "fn", A = "argv", B = "ref", C = "url", D = "properties", E = "headers";
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [y]: true, "default": false, "type": "Boolean" }, i = { [y]: false, "type": "String" }, j = { [B]: "Endpoint" }, k = { [z]: c, [A]: [{ [B]: "UseFIPS" }, true] }, l = { [z]: c, [A]: [{ [B]: "UseDualStack" }, true] }, m = {}, n = { [z]: "stringEquals", [A]: [{ [z]: "getAttr", [A]: [{ [B]: g }, "name"] }, "aws"] }, o = { [z]: c, [A]: [{ [B]: "UseFIPS" }, false] }, p = { [z]: c, [A]: [{ [B]: "UseDualStack" }, false] }, q = { [C]: "https://places.geo.{Region}.{PartitionResult#dnsSuffix}/v2", [D]: {}, [E]: {} }, r = { [C]: "https://places.geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}/v2", [D]: {}, [E]: {} }, s = { [C]: "https://places.geo-fips.{Region}.{PartitionResult#dnsSuffix}/v2", [D]: {}, [E]: {} }, t = { [C]: "https://places.geo.{Region}.{PartitionResult#dualStackDnsSuffix}/v2", [D]: {}, [E]: {} }, u = { [z]: "stringEquals", [A]: [{ [z]: "getAttr", [A]: [{ [B]: g }, "name"] }, "aws-us-gov"] }, v = { [z]: "getAttr", [A]: [{ [B]: g }, "supportsFIPS"] }, w = { [z]: c, [A]: [true, { [z]: "getAttr", [A]: [{ [B]: g }, "supportsDualStack"] }] }, x = [{ [B]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { UseDualStack: h, UseFIPS: h, Endpoint: i, Region: i }, rules: [{ conditions: [{ [z]: b, [A]: [j] }], rules: [{ conditions: [k], error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: [l], error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { [C]: j, [D]: m, [E]: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [z]: b, [A]: x }], rules: [{ conditions: [{ [z]: "aws.partition", [A]: x, assign: g }], rules: [{ conditions: [n, o, p], endpoint: q, type: e }, { conditions: [n, k, l], endpoint: r, type: e }, { conditions: [n, k, p], endpoint: s, type: e }, { conditions: [n, o, l], endpoint: t, type: e }, { conditions: [u, o, p], endpoint: q, type: e }, { conditions: [u, k, l], endpoint: r, type: e }, { conditions: [u, k, p], endpoint: s, type: e }, { conditions: [u, o, l], endpoint: t, type: e }, { conditions: [k, l], rules: [{ conditions: [{ [z]: c, [A]: [a, v] }, w], rules: [{ endpoint: { [C]: "https://geo-places-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", [D]: m, [E]: m }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: [k, p], rules: [{ conditions: [{ [z]: c, [A]: [v, a] }], rules: [{ endpoint: { [C]: "https://geo-places-fips.{Region}.{PartitionResult#dnsSuffix}", [D]: m, [E]: m }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: [o, l], rules: [{ conditions: [w], rules: [{ endpoint: { [C]: "https://geo-places.{Region}.{PartitionResult#dualStackDnsSuffix}", [D]: m, [E]: m }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { [C]: "https://geo-places.{Region}.{PartitionResult#dnsSuffix}", [D]: m, [E]: m }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
4
  export const ruleSet = _data;