@aws-sdk/client-geo-places 3.987.0 → 3.989.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultGeoPlacesHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2020-11-19",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.geoplaces",
30
+ errorTypeRegistries,
29
31
  version: "2020-11-19",
30
32
  serviceTarget: "PlacesService",
31
33
  },
@@ -163,7 +163,7 @@ const _QRu = "QueryRadius";
163
163
  const _QRue = "QueryRefinements";
164
164
  const _QT = "QueryText";
165
165
  const _QTu = "QueryType";
166
- const _R = "Restricted";
166
+ const _R = "Reason";
167
167
  const _RD = "RouteDistance";
168
168
  const _RG = "ReverseGeocode";
169
169
  const _RGF = "ReverseGeocodeFilter";
@@ -178,9 +178,9 @@ const _RPL = "RelatedPlaceList";
178
178
  const _RT = "RefinedTerm";
179
179
  const _RTC = "RecordTypeCode";
180
180
  const _Ra = "Radius";
181
- const _Re = "Region";
182
- const _Rea = "Reason";
181
+ const _Re = "Restricted";
183
182
  const _Rec = "Recurrence";
183
+ const _Reg = "Region";
184
184
  const _S = "Street";
185
185
  const _SA = "SecondaryAddresses";
186
186
  const _SAC = "SecondaryAddressComponents";
@@ -251,13 +251,45 @@ const _m = "message";
251
251
  const _n = "name";
252
252
  const _pv = "political-view";
253
253
  const _r = "reason";
254
- const _s = "server";
255
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.geoplaces";
254
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.geoplaces";
255
+ const _se = "server";
256
256
  const _xagpb = "x-amz-geo-pricing-bucket";
257
257
  const n0 = "com.amazonaws.geoplaces";
258
258
  import { TypeRegistry } from "@smithy/core/schema";
259
259
  import { AccessDeniedException, InternalServerException, ThrottlingException, ValidationException, } from "../models/errors";
260
260
  import { GeoPlacesServiceException } from "../models/GeoPlacesServiceException";
261
+ const _s_registry = TypeRegistry.for(_s);
262
+ export var GeoPlacesServiceException$ = [-3, _s, "GeoPlacesServiceException", 0, [], []];
263
+ _s_registry.registerError(GeoPlacesServiceException$, GeoPlacesServiceException);
264
+ const n0_registry = TypeRegistry.for(n0);
265
+ export var AccessDeniedException$ = [-3, n0, _ADE,
266
+ { [_e]: _c, [_hE]: 403 },
267
+ [_M],
268
+ [[0, { [_jN]: _m }]], 1
269
+ ];
270
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
271
+ export var InternalServerException$ = [-3, n0, _ISE,
272
+ { [_e]: _se, [_hE]: 500 },
273
+ [_M],
274
+ [[0, { [_jN]: _m }]], 1
275
+ ];
276
+ n0_registry.registerError(InternalServerException$, InternalServerException);
277
+ export var ThrottlingException$ = [-3, n0, _TE,
278
+ { [_e]: _c, [_hE]: 429 },
279
+ [_M],
280
+ [[0, { [_jN]: _m }]], 1
281
+ ];
282
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
283
+ export var ValidationException$ = [-3, n0, _VE,
284
+ { [_e]: _c, [_hE]: 400 },
285
+ [_M, _R, _FL],
286
+ [[0, { [_jN]: _m }], [0, { [_jN]: _r }], [() => ValidationExceptionFieldList, { [_jN]: _fL }]], 3
287
+ ];
288
+ n0_registry.registerError(ValidationException$, ValidationException);
289
+ export const errorTypeRegistries = [
290
+ _s_registry,
291
+ n0_registry,
292
+ ];
261
293
  var ApiKey = [0, n0, _AK, 8, 0];
262
294
  var CountryCode = [0, n0, _CC, 8, 0];
263
295
  var CountryCode2 = [0, n0, _CCo, 8, 0];
@@ -274,12 +306,6 @@ var RecordTypeCode = [0, n0, _RTC, 8, 0];
274
306
  var SensitiveBoolean = [0, n0, _SB, 8, 2];
275
307
  var SensitiveString = [0, n0, _SS, 8, 0];
276
308
  var ZipClassificationCode = [0, n0, _ZCC, 8, 0];
277
- export var AccessDeniedException$ = [-3, n0, _ADE,
278
- { [_e]: _c, [_hE]: 403 },
279
- [_M],
280
- [[0, { [_jN]: _m }]], 1
281
- ];
282
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
283
309
  export var AccessPoint$ = [3, n0, _AP,
284
310
  0,
285
311
  [_P],
@@ -287,27 +313,27 @@ export var AccessPoint$ = [3, n0, _AP,
287
313
  ];
288
314
  export var AccessRestriction$ = [3, n0, _AR,
289
315
  0,
290
- [_R, _C],
316
+ [_Re, _C],
291
317
  [[() => SensitiveBoolean, 0], [() => CategoryList, 0]]
292
318
  ];
293
319
  export var Address$ = [3, n0, _A,
294
320
  0,
295
- [_L, _Co, _Re, _SR, _Lo, _D, _SD, _PC, _B, _SBu, _I, _S, _SC, _AN, _Bu, _SAC],
321
+ [_L, _Co, _Reg, _SR, _Lo, _D, _SD, _PC, _B, _SBu, _I, _S, _SC, _AN, _Bu, _SAC],
296
322
  [[() => SensitiveString, 0], [() => Country$, 0], [() => Region$, 0], [() => SubRegion$, 0], [() => SensitiveString, 0], [() => SensitiveString, 0], [() => SensitiveString, 0], [() => SensitiveString, 0], [() => SensitiveString, 0], [() => SensitiveString, 0], 64 | 0, [() => SensitiveString, 0], [() => StreetComponentsList, 0], [() => SensitiveString, 0], [() => SensitiveString, 0], [() => SecondaryAddressComponentList, 0]]
297
323
  ];
298
324
  export var AddressComponentMatchScores$ = [3, n0, _ACMS,
299
325
  0,
300
- [_Co, _Re, _SR, _Lo, _D, _SD, _PC, _B, _SBu, _I, _AN, _Bu, _SAC],
326
+ [_Co, _Reg, _SR, _Lo, _D, _SD, _PC, _B, _SBu, _I, _AN, _Bu, _SAC],
301
327
  [1, 1, 1, 1, 1, 1, 1, 1, 1, 64 | 1, 1, 1, () => SecondaryAddressComponentMatchScoreList]
302
328
  ];
303
329
  export var AddressComponentPhonemes$ = [3, n0, _ACP,
304
330
  0,
305
- [_Co, _Re, _SR, _Lo, _D, _SD, _B, _SBu, _S],
331
+ [_Co, _Reg, _SR, _Lo, _D, _SD, _B, _SBu, _S],
306
332
  [[() => PhonemeTranscriptionList, 0], [() => PhonemeTranscriptionList, 0], [() => PhonemeTranscriptionList, 0], [() => PhonemeTranscriptionList, 0], [() => PhonemeTranscriptionList, 0], [() => PhonemeTranscriptionList, 0], [() => PhonemeTranscriptionList, 0], [() => PhonemeTranscriptionList, 0], [() => PhonemeTranscriptionList, 0]]
307
333
  ];
308
334
  export var AutocompleteAddressHighlights$ = [3, n0, _AAH,
309
335
  0,
310
- [_L, _Co, _Re, _SR, _Lo, _D, _SD, _S, _B, _SBu, _I, _PC, _AN, _Bu],
336
+ [_L, _Co, _Reg, _SR, _Lo, _D, _SD, _S, _B, _SBu, _I, _PC, _AN, _Bu],
311
337
  [[() => HighlightList, 0], [() => CountryHighlights$, 0], [() => RegionHighlights$, 0], [() => SubRegionHighlights$, 0], [() => HighlightList, 0], [() => HighlightList, 0], [() => HighlightList, 0], [() => HighlightList, 0], [() => HighlightList, 0], [() => HighlightList, 0], [() => IntersectionHighlightsList, 0], [() => HighlightList, 0], [() => HighlightList, 0], [() => HighlightList, 0]]
312
338
  ];
313
339
  export var AutocompleteFilter$ = [3, n0, _AF,
@@ -392,12 +418,12 @@ export var GeocodeParsedQuery$ = [3, n0, _GPQ,
392
418
  ];
393
419
  export var GeocodeParsedQueryAddressComponents$ = [3, n0, _GPQAC,
394
420
  0,
395
- [_Co, _Re, _SR, _Lo, _D, _SD, _PC, _B, _SBu, _S, _AN, _Bu, _SAC],
421
+ [_Co, _Reg, _SR, _Lo, _D, _SD, _PC, _B, _SBu, _S, _AN, _Bu, _SAC],
396
422
  [[() => ParsedQueryComponentList, 0], [() => ParsedQueryComponentList, 0], [() => ParsedQueryComponentList, 0], [() => ParsedQueryComponentList, 0], [() => ParsedQueryComponentList, 0], [() => ParsedQueryComponentList, 0], [() => ParsedQueryComponentList, 0], [() => ParsedQueryComponentList, 0], [() => ParsedQueryComponentList, 0], [() => ParsedQueryComponentList, 0], [() => ParsedQueryComponentList, 0], [() => ParsedQueryComponentList, 0], [() => ParsedQuerySecondaryAddressComponentList, 0]]
397
423
  ];
398
424
  export var GeocodeQueryComponents$ = [3, n0, _GQC,
399
425
  0,
400
- [_Co, _Re, _SR, _Lo, _D, _S, _AN, _PC],
426
+ [_Co, _Reg, _SR, _Lo, _D, _S, _AN, _PC],
401
427
  [[() => SensitiveString, 0], [() => SensitiveString, 0], [() => SensitiveString, 0], [() => SensitiveString, 0], [() => SensitiveString, 0], [() => SensitiveString, 0], [() => SensitiveString, 0], [() => SensitiveString, 0]]
402
428
  ];
403
429
  export var GeocodeRequest$ = [3, n0, _GR,
@@ -430,12 +456,6 @@ export var Highlight$ = [3, n0, _Hig,
430
456
  [_SI, _EI, _V],
431
457
  [1, 1, [() => SensitiveString, 0]]
432
458
  ];
433
- export var InternalServerException$ = [-3, n0, _ISE,
434
- { [_e]: _s, [_hE]: 500 },
435
- [_M],
436
- [[0, { [_jN]: _m }]], 1
437
- ];
438
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
439
459
  export var Intersection$ = [3, n0, _I,
440
460
  0,
441
461
  [_PI, _T, _A, _P, _Di, _RD, _MV, _APc],
@@ -486,7 +506,7 @@ export var QueryRefinement$ = [3, n0, _QR,
486
506
  [_RT, _OTr, _SI, _EI],
487
507
  [[() => SensitiveString, 0], [() => SensitiveString, 0], 1, 1], 4
488
508
  ];
489
- export var Region$ = [3, n0, _Re,
509
+ export var Region$ = [3, n0, _Reg,
490
510
  0,
491
511
  [_Code_, _N],
492
512
  [[() => SensitiveString, 0], [() => SensitiveString, 0]]
@@ -626,12 +646,6 @@ export var SuggestResultItem$ = [3, n0, _SRI,
626
646
  [_T, _SRIT, _Pl, _Q, _Hi],
627
647
  [[() => SensitiveString, 0], 0, [() => SuggestPlaceResult$, 0], [() => SuggestQueryResult$, 0], [() => SuggestHighlights$, 0]], 2
628
648
  ];
629
- export var ThrottlingException$ = [-3, n0, _TE,
630
- { [_e]: _c, [_hE]: 429 },
631
- [_M],
632
- [[0, { [_jN]: _m }]], 1
633
- ];
634
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
635
649
  export var TimeZone$ = [3, n0, _TZ,
636
650
  0,
637
651
  [_N, _Of, _OS],
@@ -647,19 +661,11 @@ export var UspsZipPlus4$ = [3, n0, _UZP,
647
661
  [_RTC],
648
662
  [[() => RecordTypeCode, 0]]
649
663
  ];
650
- export var ValidationException$ = [-3, n0, _VE,
651
- { [_e]: _c, [_hE]: 400 },
652
- [_M, _Rea, _FL],
653
- [[0, { [_jN]: _m }], [0, { [_jN]: _r }], [() => ValidationExceptionFieldList, { [_jN]: _fL }]], 3
654
- ];
655
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
656
664
  export var ValidationExceptionField$ = [3, n0, _VEF,
657
665
  0,
658
666
  [_N, _M],
659
667
  [[0, { [_jN]: _n }], [0, { [_jN]: _m }]], 2
660
668
  ];
661
- export var GeoPlacesServiceException$ = [-3, _sm, "GeoPlacesServiceException", 0, [], []];
662
- TypeRegistry.for(_sm).registerError(GeoPlacesServiceException$, GeoPlacesServiceException);
663
669
  var AccessPointList = [1, n0, _APL,
664
670
  0, [() => AccessPoint$,
665
671
  0]
@@ -1,5 +1,16 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var GeoPlacesServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var InternalServerException$: StaticErrorSchema;
6
+ export declare var ThrottlingException$: StaticErrorSchema;
7
+ export declare var ValidationException$: StaticErrorSchema;
8
+ /**
9
+ * TypeRegistry instances containing modeled errors.
10
+ * @internal
11
+ *
12
+ */
13
+ export declare const errorTypeRegistries: TypeRegistry[];
3
14
  export declare var AccessPoint$: StaticStructureSchema;
4
15
  export declare var AccessRestriction$: StaticStructureSchema;
5
16
  export declare var Address$: StaticStructureSchema;
@@ -30,7 +41,6 @@ export declare var GeocodeResultItem$: StaticStructureSchema;
30
41
  export declare var GetPlaceRequest$: StaticStructureSchema;
31
42
  export declare var GetPlaceResponse$: StaticStructureSchema;
32
43
  export declare var Highlight$: StaticStructureSchema;
33
- export declare var InternalServerException$: StaticErrorSchema;
34
44
  export declare var Intersection$: StaticStructureSchema;
35
45
  export declare var MatchScoreDetails$: StaticStructureSchema;
36
46
  export declare var OpeningHours$: StaticStructureSchema;
@@ -69,13 +79,10 @@ export declare var SuggestQueryResult$: StaticStructureSchema;
69
79
  export declare var SuggestRequest$: StaticStructureSchema;
70
80
  export declare var SuggestResponse$: StaticStructureSchema;
71
81
  export declare var SuggestResultItem$: StaticStructureSchema;
72
- export declare var ThrottlingException$: StaticErrorSchema;
73
82
  export declare var TimeZone$: StaticStructureSchema;
74
83
  export declare var UspsZip$: StaticStructureSchema;
75
84
  export declare var UspsZipPlus4$: StaticStructureSchema;
76
- export declare var ValidationException$: StaticErrorSchema;
77
85
  export declare var ValidationExceptionField$: StaticStructureSchema;
78
- export declare var GeoPlacesServiceException$: StaticErrorSchema;
79
86
  export declare var Autocomplete$: StaticOperationSchema;
80
87
  export declare var Geocode$: StaticOperationSchema;
81
88
  export declare var GetPlace$: StaticOperationSchema;
@@ -1,9 +1,15 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var GeoPlacesServiceException$: StaticErrorSchema;
6
8
  export declare var AccessDeniedException$: StaticErrorSchema;
9
+ export declare var InternalServerException$: StaticErrorSchema;
10
+ export declare var ThrottlingException$: StaticErrorSchema;
11
+ export declare var ValidationException$: StaticErrorSchema;
12
+ export declare const errorTypeRegistries: TypeRegistry[];
7
13
  export declare var AccessPoint$: StaticStructureSchema;
8
14
  export declare var AccessRestriction$: StaticStructureSchema;
9
15
  export declare var Address$: StaticStructureSchema;
@@ -34,7 +40,6 @@ export declare var GeocodeResultItem$: StaticStructureSchema;
34
40
  export declare var GetPlaceRequest$: StaticStructureSchema;
35
41
  export declare var GetPlaceResponse$: StaticStructureSchema;
36
42
  export declare var Highlight$: StaticStructureSchema;
37
- export declare var InternalServerException$: StaticErrorSchema;
38
43
  export declare var Intersection$: StaticStructureSchema;
39
44
  export declare var MatchScoreDetails$: StaticStructureSchema;
40
45
  export declare var OpeningHours$: StaticStructureSchema;
@@ -73,13 +78,10 @@ export declare var SuggestQueryResult$: StaticStructureSchema;
73
78
  export declare var SuggestRequest$: StaticStructureSchema;
74
79
  export declare var SuggestResponse$: StaticStructureSchema;
75
80
  export declare var SuggestResultItem$: StaticStructureSchema;
76
- export declare var ThrottlingException$: StaticErrorSchema;
77
81
  export declare var TimeZone$: StaticStructureSchema;
78
82
  export declare var UspsZip$: StaticStructureSchema;
79
83
  export declare var UspsZipPlus4$: StaticStructureSchema;
80
- export declare var ValidationException$: StaticErrorSchema;
81
84
  export declare var ValidationExceptionField$: StaticStructureSchema;
82
- export declare var GeoPlacesServiceException$: StaticErrorSchema;
83
85
  export declare var Autocomplete$: StaticOperationSchema;
84
86
  export declare var Geocode$: StaticOperationSchema;
85
87
  export declare var GetPlace$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-geo-places",
3
3
  "description": "AWS SDK for JavaScript Geo Places Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.989.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-geo-places",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.9",
25
+ "@aws-sdk/credential-provider-node": "^3.972.8",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.9",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.989.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.7",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",