@aws-sdk/client-geo-places 3.943.0 → 3.946.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.
Files changed (33) hide show
  1. package/dist-cjs/index.js +36 -213
  2. package/dist-cjs/runtimeConfig.browser.js +2 -2
  3. package/dist-cjs/runtimeConfig.js +3 -4
  4. package/dist-es/GeoPlacesClient.js +2 -2
  5. package/dist-es/runtimeConfig.browser.js +2 -2
  6. package/dist-es/runtimeConfig.js +2 -3
  7. package/dist-es/schemas/schemas_0.js +36 -213
  8. package/dist-types/GeoPlaces.d.ts +1 -1
  9. package/dist-types/GeoPlacesClient.d.ts +10 -10
  10. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
  11. package/dist-types/auth/httpAuthSchemeProvider.d.ts +2 -2
  12. package/dist-types/commands/AutocompleteCommand.d.ts +3 -3
  13. package/dist-types/commands/GeocodeCommand.d.ts +3 -3
  14. package/dist-types/commands/GetPlaceCommand.d.ts +3 -3
  15. package/dist-types/commands/ReverseGeocodeCommand.d.ts +3 -3
  16. package/dist-types/commands/SearchNearbyCommand.d.ts +3 -3
  17. package/dist-types/commands/SearchTextCommand.d.ts +3 -3
  18. package/dist-types/commands/SuggestCommand.d.ts +3 -3
  19. package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
  20. package/dist-types/endpoint/endpointResolver.d.ts +5 -2
  21. package/dist-types/extensionConfiguration.d.ts +4 -4
  22. package/dist-types/models/GeoPlacesServiceException.d.ts +1 -1
  23. package/dist-types/models/errors.d.ts +1 -1
  24. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  25. package/dist-types/runtimeConfig.d.ts +1 -1
  26. package/dist-types/runtimeConfig.native.d.ts +1 -1
  27. package/dist-types/runtimeConfig.shared.d.ts +1 -1
  28. package/dist-types/runtimeExtensions.d.ts +1 -1
  29. package/dist-types/schemas/schemas_0.d.ts +1 -1
  30. package/dist-types/ts3.4/GeoPlacesClient.d.ts +3 -3
  31. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  32. package/dist-types/ts3.4/models/GeoPlacesServiceException.d.ts +1 -1
  33. package/package.json +13 -12
package/dist-cjs/index.js CHANGED
@@ -455,19 +455,9 @@ var AccessDeniedException = [
455
455
  -3,
456
456
  n0,
457
457
  _ADE,
458
- {
459
- [_e]: _c,
460
- [_hE]: 403,
461
- },
458
+ { [_e]: _c, [_hE]: 403 },
462
459
  [_M],
463
- [
464
- [
465
- 0,
466
- {
467
- [_jN]: _m,
468
- },
469
- ],
470
- ],
460
+ [[0, { [_jN]: _m }]],
471
461
  ];
472
462
  schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
473
463
  var AccessPoint = [3, n0, _AP, 0, [_P], [[() => Position, 0]]];
@@ -591,12 +581,7 @@ var AutocompleteRequest = [
591
581
  0,
592
582
  [() => CountryCode, 0],
593
583
  0,
594
- [
595
- () => ApiKey,
596
- {
597
- [_hQ]: _k,
598
- },
599
- ],
584
+ [() => ApiKey, { [_hQ]: _k }],
600
585
  ],
601
586
  ];
602
587
  var AutocompleteResponse = [
@@ -606,12 +591,7 @@ var AutocompleteResponse = [
606
591
  0,
607
592
  [_PB, _RI],
608
593
  [
609
- [
610
- 0,
611
- {
612
- [_hH]: _xagpb,
613
- },
614
- ],
594
+ [0, { [_hH]: _xagpb }],
615
595
  [() => AutocompleteResultItemList, 0],
616
596
  ],
617
597
  ];
@@ -812,12 +792,7 @@ var GeocodeRequest = [
812
792
  0,
813
793
  [() => CountryCode, 0],
814
794
  0,
815
- [
816
- () => ApiKey,
817
- {
818
- [_hQ]: _k,
819
- },
820
- ],
795
+ [() => ApiKey, { [_hQ]: _k }],
821
796
  ],
822
797
  ];
823
798
  var GeocodeResponse = [
@@ -827,12 +802,7 @@ var GeocodeResponse = [
827
802
  0,
828
803
  [_PB, _RI],
829
804
  [
830
- [
831
- 0,
832
- {
833
- [_hH]: _xagpb,
834
- },
835
- ],
805
+ [0, { [_hH]: _xagpb }],
836
806
  [() => GeocodeResultItemList, 0],
837
807
  ],
838
808
  ];
@@ -872,36 +842,11 @@ var GetPlaceRequest = [
872
842
  [_PI, _AFd, _La, _PV, _IU, _K],
873
843
  [
874
844
  [() => SensitiveString, 1],
875
- [
876
- 64 | 0,
877
- {
878
- [_hQ]: _af,
879
- },
880
- ],
881
- [
882
- 0,
883
- {
884
- [_hQ]: _l,
885
- },
886
- ],
887
- [
888
- () => CountryCode,
889
- {
890
- [_hQ]: _pv,
891
- },
892
- ],
893
- [
894
- 0,
895
- {
896
- [_hQ]: _iu,
897
- },
898
- ],
899
- [
900
- () => ApiKey,
901
- {
902
- [_hQ]: _k,
903
- },
904
- ],
845
+ [64 | 0, { [_hQ]: _af }],
846
+ [0, { [_hQ]: _l }],
847
+ [() => CountryCode, { [_hQ]: _pv }],
848
+ [0, { [_hQ]: _iu }],
849
+ [() => ApiKey, { [_hQ]: _k }],
905
850
  ],
906
851
  ];
907
852
  var GetPlaceResponse = [
@@ -914,12 +859,7 @@ var GetPlaceResponse = [
914
859
  [() => SensitiveString, 0],
915
860
  [() => PlaceType$1, 0],
916
861
  [() => SensitiveString, 0],
917
- [
918
- 0,
919
- {
920
- [_hH]: _xagpb,
921
- },
922
- ],
862
+ [0, { [_hH]: _xagpb }],
923
863
  [() => Address, 0],
924
864
  [() => SensitiveBoolean, 0],
925
865
  [() => PostalCodeDetailsList, 0],
@@ -944,19 +884,9 @@ var InternalServerException = [
944
884
  -3,
945
885
  n0,
946
886
  _ISE,
947
- {
948
- [_e]: _s,
949
- [_hE]: 500,
950
- },
887
+ { [_e]: _s, [_hE]: 500 },
951
888
  [_M],
952
- [
953
- [
954
- 0,
955
- {
956
- [_jN]: _m,
957
- },
958
- ],
959
- ],
889
+ [[0, { [_jN]: _m }]],
960
890
  ];
961
891
  schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
962
892
  var Intersection = [
@@ -1112,12 +1042,7 @@ var ReverseGeocodeRequest = [
1112
1042
  0,
1113
1043
  [() => CountryCode, 0],
1114
1044
  0,
1115
- [
1116
- () => ApiKey,
1117
- {
1118
- [_hQ]: _k,
1119
- },
1120
- ],
1045
+ [() => ApiKey, { [_hQ]: _k }],
1121
1046
  ],
1122
1047
  ];
1123
1048
  var ReverseGeocodeResponse = [
@@ -1127,12 +1052,7 @@ var ReverseGeocodeResponse = [
1127
1052
  0,
1128
1053
  [_PB, _RI],
1129
1054
  [
1130
- [
1131
- 0,
1132
- {
1133
- [_hH]: _xagpb,
1134
- },
1135
- ],
1055
+ [0, { [_hH]: _xagpb }],
1136
1056
  [() => ReverseGeocodeResultItemList, 0],
1137
1057
  ],
1138
1058
  ];
@@ -1193,12 +1113,7 @@ var SearchNearbyRequest = [
1193
1113
  [() => CountryCode, 0],
1194
1114
  0,
1195
1115
  0,
1196
- [
1197
- () => ApiKey,
1198
- {
1199
- [_hQ]: _k,
1200
- },
1201
- ],
1116
+ [() => ApiKey, { [_hQ]: _k }],
1202
1117
  ],
1203
1118
  ];
1204
1119
  var SearchNearbyResponse = [
@@ -1207,16 +1122,7 @@ var SearchNearbyResponse = [
1207
1122
  _SNRe,
1208
1123
  0,
1209
1124
  [_PB, _RI, _NT],
1210
- [
1211
- [
1212
- 0,
1213
- {
1214
- [_hH]: _xagpb,
1215
- },
1216
- ],
1217
- [() => SearchNearbyResultItemList, 0],
1218
- 0,
1219
- ],
1125
+ [[0, { [_hH]: _xagpb }], [() => SearchNearbyResultItemList, 0], 0],
1220
1126
  ];
1221
1127
  var SearchNearbyResultItem = [
1222
1128
  3,
@@ -1274,12 +1180,7 @@ var SearchTextRequest = [
1274
1180
  [() => CountryCode, 0],
1275
1181
  0,
1276
1182
  0,
1277
- [
1278
- () => ApiKey,
1279
- {
1280
- [_hQ]: _k,
1281
- },
1282
- ],
1183
+ [() => ApiKey, { [_hQ]: _k }],
1283
1184
  ],
1284
1185
  ];
1285
1186
  var SearchTextResponse = [
@@ -1288,16 +1189,7 @@ var SearchTextResponse = [
1288
1189
  _STRe,
1289
1190
  0,
1290
1191
  [_PB, _RI, _NT],
1291
- [
1292
- [
1293
- 0,
1294
- {
1295
- [_hH]: _xagpb,
1296
- },
1297
- ],
1298
- [() => SearchTextResultItemList, 0],
1299
- 0,
1300
- ],
1192
+ [[0, { [_hH]: _xagpb }], [() => SearchTextResultItemList, 0], 0],
1301
1193
  ];
1302
1194
  var SearchTextResultItem = [
1303
1195
  3,
@@ -1431,12 +1323,7 @@ var SuggestRequest = [
1431
1323
  0,
1432
1324
  [() => CountryCode, 0],
1433
1325
  0,
1434
- [
1435
- () => ApiKey,
1436
- {
1437
- [_hQ]: _k,
1438
- },
1439
- ],
1326
+ [() => ApiKey, { [_hQ]: _k }],
1440
1327
  ],
1441
1328
  ];
1442
1329
  var SuggestResponse = [
@@ -1446,12 +1333,7 @@ var SuggestResponse = [
1446
1333
  0,
1447
1334
  [_PB, _RI, _QRue],
1448
1335
  [
1449
- [
1450
- 0,
1451
- {
1452
- [_hH]: _xagpb,
1453
- },
1454
- ],
1336
+ [0, { [_hH]: _xagpb }],
1455
1337
  [() => SuggestResultItemList, 0],
1456
1338
  [() => QueryRefinementList, 0],
1457
1339
  ],
@@ -1470,24 +1352,7 @@ var SuggestResultItem = [
1470
1352
  [() => SuggestHighlights, 0],
1471
1353
  ],
1472
1354
  ];
1473
- var ThrottlingException = [
1474
- -3,
1475
- n0,
1476
- _TE,
1477
- {
1478
- [_e]: _c,
1479
- [_hE]: 429,
1480
- },
1481
- [_M],
1482
- [
1483
- [
1484
- 0,
1485
- {
1486
- [_jN]: _m,
1487
- },
1488
- ],
1489
- ],
1490
- ];
1355
+ var ThrottlingException = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_M], [[0, { [_jN]: _m }]]];
1491
1356
  schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
1492
1357
  var TimeZone = [
1493
1358
  3,
@@ -1507,30 +1372,12 @@ var ValidationException = [
1507
1372
  -3,
1508
1373
  n0,
1509
1374
  _VE,
1510
- {
1511
- [_e]: _c,
1512
- [_hE]: 400,
1513
- },
1375
+ { [_e]: _c, [_hE]: 400 },
1514
1376
  [_M, _Rea, _FL],
1515
1377
  [
1516
- [
1517
- 0,
1518
- {
1519
- [_jN]: _m,
1520
- },
1521
- ],
1522
- [
1523
- 0,
1524
- {
1525
- [_jN]: _r,
1526
- },
1527
- ],
1528
- [
1529
- () => ValidationExceptionFieldList,
1530
- {
1531
- [_jN]: _fL,
1532
- },
1533
- ],
1378
+ [0, { [_jN]: _m }],
1379
+ [0, { [_jN]: _r }],
1380
+ [() => ValidationExceptionFieldList, { [_jN]: _fL }],
1534
1381
  ],
1535
1382
  ];
1536
1383
  schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
@@ -1541,18 +1388,8 @@ var ValidationExceptionField = [
1541
1388
  0,
1542
1389
  [_N, _M],
1543
1390
  [
1544
- [
1545
- 0,
1546
- {
1547
- [_jN]: _n,
1548
- },
1549
- ],
1550
- [
1551
- 0,
1552
- {
1553
- [_jN]: _m,
1554
- },
1555
- ],
1391
+ [0, { [_jN]: _n }],
1392
+ [0, { [_jN]: _m }],
1556
1393
  ],
1557
1394
  ];
1558
1395
  var GeoPlacesServiceException = [-3, _sm, "GeoPlacesServiceException", 0, [], []];
@@ -1608,9 +1445,7 @@ var Autocomplete = [
1608
1445
  9,
1609
1446
  n0,
1610
1447
  _Au,
1611
- {
1612
- [_h]: ["POST", "/autocomplete", 200],
1613
- },
1448
+ { [_h]: ["POST", "/autocomplete", 200] },
1614
1449
  () => AutocompleteRequest,
1615
1450
  () => AutocompleteResponse,
1616
1451
  ];
@@ -1618,9 +1453,7 @@ var Geocode = [
1618
1453
  9,
1619
1454
  n0,
1620
1455
  _G,
1621
- {
1622
- [_h]: ["POST", "/geocode", 200],
1623
- },
1456
+ { [_h]: ["POST", "/geocode", 200] },
1624
1457
  () => GeocodeRequest,
1625
1458
  () => GeocodeResponse,
1626
1459
  ];
@@ -1628,9 +1461,7 @@ var GetPlace = [
1628
1461
  9,
1629
1462
  n0,
1630
1463
  _GP,
1631
- {
1632
- [_h]: ["GET", "/place/{PlaceId}", 200],
1633
- },
1464
+ { [_h]: ["GET", "/place/{PlaceId}", 200] },
1634
1465
  () => GetPlaceRequest,
1635
1466
  () => GetPlaceResponse,
1636
1467
  ];
@@ -1638,9 +1469,7 @@ var ReverseGeocode = [
1638
1469
  9,
1639
1470
  n0,
1640
1471
  _RG,
1641
- {
1642
- [_h]: ["POST", "/reverse-geocode", 200],
1643
- },
1472
+ { [_h]: ["POST", "/reverse-geocode", 200] },
1644
1473
  () => ReverseGeocodeRequest,
1645
1474
  () => ReverseGeocodeResponse,
1646
1475
  ];
@@ -1648,9 +1477,7 @@ var SearchNearby = [
1648
1477
  9,
1649
1478
  n0,
1650
1479
  _SN,
1651
- {
1652
- [_h]: ["POST", "/search-nearby", 200],
1653
- },
1480
+ { [_h]: ["POST", "/search-nearby", 200] },
1654
1481
  () => SearchNearbyRequest,
1655
1482
  () => SearchNearbyResponse,
1656
1483
  ];
@@ -1658,9 +1485,7 @@ var SearchText = [
1658
1485
  9,
1659
1486
  n0,
1660
1487
  _ST,
1661
- {
1662
- [_h]: ["POST", "/search-text", 200],
1663
- },
1488
+ { [_h]: ["POST", "/search-text", 200] },
1664
1489
  () => SearchTextRequest,
1665
1490
  () => SearchTextResponse,
1666
1491
  ];
@@ -1668,9 +1493,7 @@ var Suggest = [
1668
1493
  9,
1669
1494
  n0,
1670
1495
  _Sug,
1671
- {
1672
- [_h]: ["POST", "/suggest", 200],
1673
- },
1496
+ { [_h]: ["POST", "/suggest", 200] },
1674
1497
  () => SuggestRequest,
1675
1498
  () => SuggestResponse,
1676
1499
  ];
@@ -8,11 +8,11 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
8
  const config_resolver_1 = require("@smithy/config-resolver");
9
9
  const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
10
10
  const invalid_dependency_1 = require("@smithy/invalid-dependency");
11
+ const smithy_client_1 = require("@smithy/smithy-client");
11
12
  const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
13
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
12
14
  const util_retry_1 = require("@smithy/util-retry");
13
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
14
- const smithy_client_1 = require("@smithy/smithy-client");
15
- const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
16
16
  const getRuntimeConfig = (config) => {
17
17
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
18
18
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -11,14 +11,13 @@ const hash_node_1 = require("@smithy/hash-node");
11
11
  const middleware_retry_1 = require("@smithy/middleware-retry");
12
12
  const node_config_provider_1 = require("@smithy/node-config-provider");
13
13
  const node_http_handler_1 = require("@smithy/node-http-handler");
14
+ const smithy_client_1 = require("@smithy/smithy-client");
14
15
  const util_body_length_node_1 = require("@smithy/util-body-length-node");
16
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
15
17
  const util_retry_1 = require("@smithy/util-retry");
16
18
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
17
- const smithy_client_1 = require("@smithy/smithy-client");
18
- const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
19
- const smithy_client_2 = require("@smithy/smithy-client");
20
19
  const getRuntimeConfig = (config) => {
21
- (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
20
+ (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
22
21
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
22
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
23
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -6,8 +6,8 @@ import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
7
  import { getSchemaSerdePlugin } from "@smithy/core/schema";
8
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
9
- import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
10
- import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
9
+ import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
10
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
11
11
  import { Client as __Client, } from "@smithy/smithy-client";
12
12
  import { defaultGeoPlacesHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
13
13
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
@@ -4,11 +4,11 @@ import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
5
5
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
6
6
  import { invalidProvider } from "@smithy/invalid-dependency";
7
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
7
8
  import { calculateBodyLength } from "@smithy/util-body-length-browser";
9
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
8
10
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
9
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
11
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
12
12
  export const getRuntimeConfig = (config) => {
13
13
  const defaultsMode = resolveDefaultsModeConfig(config);
14
14
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
@@ -7,12 +7,11 @@ import { Hash } from "@smithy/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
+ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
10
11
  import { calculateBodyLength } from "@smithy/util-body-length-node";
12
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
11
13
  import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
12
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
14
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
15
- import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
16
15
  export const getRuntimeConfig = (config) => {
17
16
  emitWarningIfUnsupportedVersion(process.version);
18
17
  const defaultsMode = resolveDefaultsModeConfig(config);