@aws-sdk/client-geo-maps 3.928.0 → 3.929.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.
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: GeoMapsClientConfig) => {
29
29
  profile?: string;
30
30
  logger: import("@smithy/types").Logger;
31
31
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
32
33
  customUserAgent?: string | import("@smithy/types").UserAgent;
33
34
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
34
35
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: GeoMapsClientConfig) => {
31
31
  profile?: string;
32
32
  logger: import("@smithy/types").Logger;
33
33
  extensions: import("./runtimeExtensions").RuntimeExtension[];
34
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
34
35
  customUserAgent?: string | import("@smithy/types").UserAgent;
35
36
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
36
37
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: GeoMapsClientConfig) => {
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
30
31
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
31
32
  customUserAgent?: string | import("@smithy/types").UserAgent;
32
33
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: GeoMapsClientConfig) => {
14
14
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").GeoMapsHttpAuthSchemeProvider;
15
15
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
16
  logger: import("@smithy/types").Logger;
17
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
17
18
  serviceId: string;
18
19
  urlParser: import("@smithy/types").UrlParser;
19
20
  utf8Decoder: import("@smithy/types").Decoder;
@@ -0,0 +1,36 @@
1
+ import { StaticErrorSchema, StaticListSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
2
+ export declare var ApiKey: StaticSimpleSchema;
3
+ export declare var CompactOverlay: StaticSimpleSchema;
4
+ export declare var CountryCode: StaticSimpleSchema;
5
+ export declare var DistanceMeters: StaticSimpleSchema;
6
+ export declare var GeoJsonOverlay: StaticSimpleSchema;
7
+ export declare var PositionListString: StaticSimpleSchema;
8
+ export declare var PositionString: StaticSimpleSchema;
9
+ export declare var SensitiveFloat: StaticSimpleSchema;
10
+ export declare var SensitiveInteger: StaticSimpleSchema;
11
+ export declare var SensitiveString: StaticSimpleSchema;
12
+ export declare var AccessDeniedException: StaticErrorSchema;
13
+ export declare var GetGlyphsRequest: StaticStructureSchema;
14
+ export declare var GetGlyphsResponse: StaticStructureSchema;
15
+ export declare var GetSpritesRequest: StaticStructureSchema;
16
+ export declare var GetSpritesResponse: StaticStructureSchema;
17
+ export declare var GetStaticMapRequest: StaticStructureSchema;
18
+ export declare var GetStaticMapResponse: StaticStructureSchema;
19
+ export declare var GetStyleDescriptorRequest: StaticStructureSchema;
20
+ export declare var GetStyleDescriptorResponse: StaticStructureSchema;
21
+ export declare var GetTileRequest: StaticStructureSchema;
22
+ export declare var GetTileResponse: StaticStructureSchema;
23
+ export declare var InternalServerException: StaticErrorSchema;
24
+ export declare var ResourceNotFoundException: StaticErrorSchema;
25
+ export declare var ThrottlingException: StaticErrorSchema;
26
+ export declare var ValidationException: StaticErrorSchema;
27
+ export declare var ValidationExceptionField: StaticStructureSchema;
28
+ export declare var GeoMapsServiceException: StaticErrorSchema;
29
+ export declare var TileAdditionalFeatureList: number;
30
+ export declare var TravelModeList: number;
31
+ export declare var ValidationExceptionFieldList: StaticListSchema;
32
+ export declare var GetGlyphs: StaticOperationSchema;
33
+ export declare var GetSprites: StaticOperationSchema;
34
+ export declare var GetStaticMap: StaticOperationSchema;
35
+ export declare var GetStyleDescriptor: StaticOperationSchema;
36
+ export declare var GetTile: StaticOperationSchema;
@@ -30,10 +30,13 @@ import {
30
30
  BodyLengthCalculator as __BodyLengthCalculator,
31
31
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
32
32
  ChecksumConstructor as __ChecksumConstructor,
33
+ ClientProtocol,
33
34
  Decoder as __Decoder,
34
35
  Encoder as __Encoder,
35
36
  HashConstructor as __HashConstructor,
36
37
  HttpHandlerOptions as __HttpHandlerOptions,
38
+ HttpRequest,
39
+ HttpResponse,
37
40
  Logger as __Logger,
38
41
  Provider as __Provider,
39
42
  Provider,
@@ -108,6 +111,7 @@ export interface ClientDefaults
108
111
  retryMode?: string | __Provider<string>;
109
112
  logger?: __Logger;
110
113
  extensions?: RuntimeExtension[];
114
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
111
115
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
112
116
  }
113
117
  export type GeoMapsClientConfigType = Partial<
@@ -206,12 +206,3 @@ export declare class ResourceNotFoundException extends __BaseException {
206
206
  opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
207
207
  );
208
208
  }
209
- export declare const GetStaticMapRequestFilterSensitiveLog: (
210
- obj: GetStaticMapRequest
211
- ) => any;
212
- export declare const GetStyleDescriptorRequestFilterSensitiveLog: (
213
- obj: GetStyleDescriptorRequest
214
- ) => any;
215
- export declare const GetTileRequestFilterSensitiveLog: (
216
- obj: GetTileRequest
217
- ) => any;
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: GeoMapsClientConfig) => {
38
38
  profile?: string;
39
39
  logger: import("@smithy/types").Logger;
40
40
  extensions: import("./runtimeExtensions").RuntimeExtension[];
41
+ protocol: import("@smithy/types").ClientProtocol<
42
+ import("@smithy/types").HttpRequest,
43
+ import("@smithy/types").HttpResponse
44
+ >;
41
45
  customUserAgent?: string | import("@smithy/types").UserAgent;
42
46
  userAgentAppId?:
43
47
  | string
@@ -38,6 +38,10 @@ export declare const getRuntimeConfig: (config: GeoMapsClientConfig) => {
38
38
  profile?: string;
39
39
  logger: import("@smithy/types").Logger;
40
40
  extensions: import("./runtimeExtensions").RuntimeExtension[];
41
+ protocol: import("@smithy/types").ClientProtocol<
42
+ import("@smithy/types").HttpRequest,
43
+ import("@smithy/types").HttpResponse
44
+ >;
41
45
  customUserAgent?: string | import("@smithy/types").UserAgent;
42
46
  retryStrategy?:
43
47
  | import("@smithy/types").RetryStrategy
@@ -37,6 +37,10 @@ export declare const getRuntimeConfig: (config: GeoMapsClientConfig) => {
37
37
  retryMode: string | import("@smithy/types").Provider<string>;
38
38
  logger: import("@smithy/types").Logger;
39
39
  extensions: import("./runtimeExtensions").RuntimeExtension[];
40
+ protocol: import("@smithy/types").ClientProtocol<
41
+ import("@smithy/types").HttpRequest,
42
+ import("@smithy/types").HttpResponse
43
+ >;
40
44
  defaultsMode:
41
45
  | import("@smithy/smithy-client").DefaultsMode
42
46
  | import("@smithy/types").Provider<
@@ -14,6 +14,10 @@ export declare const getRuntimeConfig: (config: GeoMapsClientConfig) => {
14
14
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").GeoMapsHttpAuthSchemeProvider;
15
15
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
16
  logger: import("@smithy/types").Logger;
17
+ protocol: import("@smithy/types").ClientProtocol<
18
+ import("@smithy/types").HttpRequest,
19
+ import("@smithy/types").HttpResponse
20
+ >;
17
21
  serviceId: string;
18
22
  urlParser: import("@smithy/types").UrlParser;
19
23
  utf8Decoder: import("@smithy/types").Decoder;
@@ -0,0 +1,42 @@
1
+ import {
2
+ StaticErrorSchema,
3
+ StaticListSchema,
4
+ StaticOperationSchema,
5
+ StaticSimpleSchema,
6
+ StaticStructureSchema,
7
+ } from "@smithy/types";
8
+ export declare var ApiKey: StaticSimpleSchema;
9
+ export declare var CompactOverlay: StaticSimpleSchema;
10
+ export declare var CountryCode: StaticSimpleSchema;
11
+ export declare var DistanceMeters: StaticSimpleSchema;
12
+ export declare var GeoJsonOverlay: StaticSimpleSchema;
13
+ export declare var PositionListString: StaticSimpleSchema;
14
+ export declare var PositionString: StaticSimpleSchema;
15
+ export declare var SensitiveFloat: StaticSimpleSchema;
16
+ export declare var SensitiveInteger: StaticSimpleSchema;
17
+ export declare var SensitiveString: StaticSimpleSchema;
18
+ export declare var AccessDeniedException: StaticErrorSchema;
19
+ export declare var GetGlyphsRequest: StaticStructureSchema;
20
+ export declare var GetGlyphsResponse: StaticStructureSchema;
21
+ export declare var GetSpritesRequest: StaticStructureSchema;
22
+ export declare var GetSpritesResponse: StaticStructureSchema;
23
+ export declare var GetStaticMapRequest: StaticStructureSchema;
24
+ export declare var GetStaticMapResponse: StaticStructureSchema;
25
+ export declare var GetStyleDescriptorRequest: StaticStructureSchema;
26
+ export declare var GetStyleDescriptorResponse: StaticStructureSchema;
27
+ export declare var GetTileRequest: StaticStructureSchema;
28
+ export declare var GetTileResponse: StaticStructureSchema;
29
+ export declare var InternalServerException: StaticErrorSchema;
30
+ export declare var ResourceNotFoundException: StaticErrorSchema;
31
+ export declare var ThrottlingException: StaticErrorSchema;
32
+ export declare var ValidationException: StaticErrorSchema;
33
+ export declare var ValidationExceptionField: StaticStructureSchema;
34
+ export declare var GeoMapsServiceException: StaticErrorSchema;
35
+ export declare var TileAdditionalFeatureList: number;
36
+ export declare var TravelModeList: number;
37
+ export declare var ValidationExceptionFieldList: StaticListSchema;
38
+ export declare var GetGlyphs: StaticOperationSchema;
39
+ export declare var GetSprites: StaticOperationSchema;
40
+ export declare var GetStaticMap: StaticOperationSchema;
41
+ export declare var GetStyleDescriptor: StaticOperationSchema;
42
+ export declare var GetTile: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-geo-maps",
3
3
  "description": "AWS SDK for JavaScript Geo Maps Client for Node.js, Browser and React Native",
4
- "version": "3.928.0",
4
+ "version": "3.929.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-geo-maps",
@@ -21,7 +21,7 @@
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
23
  "@aws-sdk/core": "3.928.0",
24
- "@aws-sdk/credential-provider-node": "3.928.0",
24
+ "@aws-sdk/credential-provider-node": "3.929.0",
25
25
  "@aws-sdk/middleware-host-header": "3.922.0",
26
26
  "@aws-sdk/middleware-logger": "3.922.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.922.0",
@@ -1,339 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { requestBuilder as rb } from "@smithy/core";
3
- import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
4
- import { GeoMapsServiceException as __BaseException } from "../models/GeoMapsServiceException";
5
- import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
6
- export const se_GetGlyphsCommand = async (input, context) => {
7
- const b = rb(input, context);
8
- const headers = {};
9
- b.bp("/glyphs/{FontStack}/{FontUnicodeRange}");
10
- b.p("FontStack", () => input.FontStack, "{FontStack}", false);
11
- b.p("FontUnicodeRange", () => input.FontUnicodeRange, "{FontUnicodeRange}", false);
12
- let body;
13
- b.m("GET").h(headers).b(body);
14
- return b.build();
15
- };
16
- export const se_GetSpritesCommand = async (input, context) => {
17
- const b = rb(input, context);
18
- const headers = {};
19
- b.bp("/styles/{Style}/{ColorScheme}/{Variant}/sprites/{FileName}");
20
- b.p("FileName", () => input.FileName, "{FileName}", false);
21
- b.p("Style", () => input.Style, "{Style}", false);
22
- b.p("ColorScheme", () => input.ColorScheme, "{ColorScheme}", false);
23
- b.p("Variant", () => input.Variant, "{Variant}", false);
24
- let body;
25
- b.m("GET").h(headers).b(body);
26
- return b.build();
27
- };
28
- export const se_GetStaticMapCommand = async (input, context) => {
29
- const b = rb(input, context);
30
- const headers = {};
31
- b.bp("/static/{FileName}");
32
- b.p("FileName", () => input.FileName, "{FileName}", false);
33
- const query = map({
34
- [_bb]: [, input[_BB]],
35
- [_bp]: [, input[_BP]],
36
- [_c]: [, input[_C]],
37
- [_cs]: [, input[_CS]],
38
- [_co]: [, input[_CO]],
39
- [_cl]: [() => input.CropLabels !== void 0, () => input[_CL].toString()],
40
- [_go]: [, input[_GJO]],
41
- [_h]: [__expectNonNull(input.Height, `Height`) != null, () => input[_H].toString()],
42
- [_k]: [, input[_K]],
43
- [_ls]: [, input[_LS]],
44
- [_l]: [, input[_L]],
45
- [_p]: [() => input.Padding !== void 0, () => input[_P].toString()],
46
- [_pv]: [, input[_PV]],
47
- [_po]: [, input[_POI]],
48
- [_r]: [() => input.Radius !== void 0, () => input[_R].toString()],
49
- [_su]: [, input[_SBU]],
50
- [_s]: [, input[_S]],
51
- [_w]: [__expectNonNull(input.Width, `Width`) != null, () => input[_W].toString()],
52
- [_z]: [() => input.Zoom !== void 0, () => (input[_Z] % 1 == 0 ? input[_Z] + ".0" : input[_Z].toString())],
53
- });
54
- let body;
55
- b.m("GET").h(headers).q(query).b(body);
56
- return b.build();
57
- };
58
- export const se_GetStyleDescriptorCommand = async (input, context) => {
59
- const b = rb(input, context);
60
- const headers = {};
61
- b.bp("/styles/{Style}/descriptor");
62
- b.p("Style", () => input.Style, "{Style}", false);
63
- const query = map({
64
- [_cs]: [, input[_CS]],
65
- [_pv]: [, input[_PV]],
66
- [_t]: [, input[_T]],
67
- [_cd]: [, input[_CD]],
68
- [_tr]: [, input[_Tr]],
69
- [_tm]: [() => input.TravelModes !== void 0, () => input[_TM] || []],
70
- [_k]: [, input[_K]],
71
- });
72
- let body;
73
- b.m("GET").h(headers).q(query).b(body);
74
- return b.build();
75
- };
76
- export const se_GetTileCommand = async (input, context) => {
77
- const b = rb(input, context);
78
- const headers = {};
79
- b.bp("/tiles/{Tileset}/{Z}/{X}/{Y}");
80
- b.p("Tileset", () => input.Tileset, "{Tileset}", false);
81
- b.p("Z", () => input.Z, "{Z}", false);
82
- b.p("X", () => input.X, "{X}", false);
83
- b.p("Y", () => input.Y, "{Y}", false);
84
- const query = map({
85
- [_af]: [() => input.AdditionalFeatures !== void 0, () => input[_AF] || []],
86
- [_k]: [, input[_K]],
87
- });
88
- let body;
89
- b.m("GET").h(headers).q(query).b(body);
90
- return b.build();
91
- };
92
- export const de_GetGlyphsCommand = async (output, context) => {
93
- if (output.statusCode !== 200 && output.statusCode >= 300) {
94
- return de_CommandError(output, context);
95
- }
96
- const contents = map({
97
- $metadata: deserializeMetadata(output),
98
- [_CT]: [, output.headers[_ct]],
99
- [_CC]: [, output.headers[_cc]],
100
- [_ET]: [, output.headers[_e]],
101
- });
102
- const data = await collectBody(output.body, context);
103
- contents.Blob = data;
104
- return contents;
105
- };
106
- export const de_GetSpritesCommand = async (output, context) => {
107
- if (output.statusCode !== 200 && output.statusCode >= 300) {
108
- return de_CommandError(output, context);
109
- }
110
- const contents = map({
111
- $metadata: deserializeMetadata(output),
112
- [_CT]: [, output.headers[_ct]],
113
- [_CC]: [, output.headers[_cc]],
114
- [_ET]: [, output.headers[_e]],
115
- });
116
- const data = await collectBody(output.body, context);
117
- contents.Blob = data;
118
- return contents;
119
- };
120
- export const de_GetStaticMapCommand = async (output, context) => {
121
- if (output.statusCode !== 200 && output.statusCode >= 300) {
122
- return de_CommandError(output, context);
123
- }
124
- const contents = map({
125
- $metadata: deserializeMetadata(output),
126
- [_CT]: [, output.headers[_ct]],
127
- [_CC]: [, output.headers[_cc]],
128
- [_ET]: [, output.headers[_e]],
129
- [_PB]: [, output.headers[_xagpb]],
130
- });
131
- const data = await collectBody(output.body, context);
132
- contents.Blob = data;
133
- return contents;
134
- };
135
- export const de_GetStyleDescriptorCommand = async (output, context) => {
136
- if (output.statusCode !== 200 && output.statusCode >= 300) {
137
- return de_CommandError(output, context);
138
- }
139
- const contents = map({
140
- $metadata: deserializeMetadata(output),
141
- [_CT]: [, output.headers[_ct]],
142
- [_CC]: [, output.headers[_cc]],
143
- [_ET]: [, output.headers[_e]],
144
- });
145
- const data = await collectBody(output.body, context);
146
- contents.Blob = data;
147
- return contents;
148
- };
149
- export const de_GetTileCommand = async (output, context) => {
150
- if (output.statusCode !== 200 && output.statusCode >= 300) {
151
- return de_CommandError(output, context);
152
- }
153
- const contents = map({
154
- $metadata: deserializeMetadata(output),
155
- [_CT]: [, output.headers[_ct]],
156
- [_CC]: [, output.headers[_cc]],
157
- [_ET]: [, output.headers[_e]],
158
- [_PB]: [, output.headers[_xagpb]],
159
- });
160
- const data = await collectBody(output.body, context);
161
- contents.Blob = data;
162
- return contents;
163
- };
164
- const de_CommandError = async (output, context) => {
165
- const parsedOutput = {
166
- ...output,
167
- body: await parseErrorBody(output.body, context),
168
- };
169
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
170
- switch (errorCode) {
171
- case "AccessDeniedException":
172
- case "com.amazonaws.geomaps#AccessDeniedException":
173
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
174
- case "InternalServerException":
175
- case "com.amazonaws.geomaps#InternalServerException":
176
- throw await de_InternalServerExceptionRes(parsedOutput, context);
177
- case "ThrottlingException":
178
- case "com.amazonaws.geomaps#ThrottlingException":
179
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
180
- case "ValidationException":
181
- case "com.amazonaws.geomaps#ValidationException":
182
- throw await de_ValidationExceptionRes(parsedOutput, context);
183
- case "ResourceNotFoundException":
184
- case "com.amazonaws.geomaps#ResourceNotFoundException":
185
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
186
- default:
187
- const parsedBody = parsedOutput.body;
188
- return throwDefaultError({
189
- output,
190
- parsedBody,
191
- errorCode,
192
- });
193
- }
194
- };
195
- const throwDefaultError = withBaseException(__BaseException);
196
- const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
197
- const contents = map({});
198
- const data = parsedOutput.body;
199
- const doc = take(data, {
200
- Message: [, __expectString, `message`],
201
- });
202
- Object.assign(contents, doc);
203
- const exception = new AccessDeniedException({
204
- $metadata: deserializeMetadata(parsedOutput),
205
- ...contents,
206
- });
207
- return __decorateServiceException(exception, parsedOutput.body);
208
- };
209
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
210
- const contents = map({});
211
- const data = parsedOutput.body;
212
- const doc = take(data, {
213
- Message: [, __expectString, `message`],
214
- });
215
- Object.assign(contents, doc);
216
- const exception = new InternalServerException({
217
- $metadata: deserializeMetadata(parsedOutput),
218
- ...contents,
219
- });
220
- return __decorateServiceException(exception, parsedOutput.body);
221
- };
222
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
223
- const contents = map({});
224
- const data = parsedOutput.body;
225
- const doc = take(data, {
226
- Message: [, __expectString, `message`],
227
- });
228
- Object.assign(contents, doc);
229
- const exception = new ResourceNotFoundException({
230
- $metadata: deserializeMetadata(parsedOutput),
231
- ...contents,
232
- });
233
- return __decorateServiceException(exception, parsedOutput.body);
234
- };
235
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
236
- const contents = map({});
237
- const data = parsedOutput.body;
238
- const doc = take(data, {
239
- Message: [, __expectString, `message`],
240
- });
241
- Object.assign(contents, doc);
242
- const exception = new ThrottlingException({
243
- $metadata: deserializeMetadata(parsedOutput),
244
- ...contents,
245
- });
246
- return __decorateServiceException(exception, parsedOutput.body);
247
- };
248
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
249
- const contents = map({});
250
- const data = parsedOutput.body;
251
- const doc = take(data, {
252
- FieldList: [, (_) => de_ValidationExceptionFieldList(_, context), `fieldList`],
253
- Message: [, __expectString, `message`],
254
- Reason: [, __expectString, `reason`],
255
- });
256
- Object.assign(contents, doc);
257
- const exception = new ValidationException({
258
- $metadata: deserializeMetadata(parsedOutput),
259
- ...contents,
260
- });
261
- return __decorateServiceException(exception, parsedOutput.body);
262
- };
263
- const de_ValidationExceptionField = (output, context) => {
264
- return take(output, {
265
- Message: [, __expectString, `message`],
266
- Name: [, __expectString, `name`],
267
- });
268
- };
269
- const de_ValidationExceptionFieldList = (output, context) => {
270
- const retVal = (output || [])
271
- .filter((e) => e != null)
272
- .map((entry) => {
273
- return de_ValidationExceptionField(entry, context);
274
- });
275
- return retVal;
276
- };
277
- const deserializeMetadata = (output) => ({
278
- httpStatusCode: output.statusCode,
279
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
280
- extendedRequestId: output.headers["x-amz-id-2"],
281
- cfId: output.headers["x-amz-cf-id"],
282
- });
283
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
284
- const _AF = "AdditionalFeatures";
285
- const _BB = "BoundingBox";
286
- const _BP = "BoundedPositions";
287
- const _C = "Center";
288
- const _CC = "CacheControl";
289
- const _CD = "ContourDensity";
290
- const _CL = "CropLabels";
291
- const _CO = "CompactOverlay";
292
- const _CS = "ColorScheme";
293
- const _CT = "ContentType";
294
- const _ET = "ETag";
295
- const _GJO = "GeoJsonOverlay";
296
- const _H = "Height";
297
- const _K = "Key";
298
- const _L = "Language";
299
- const _LS = "LabelSize";
300
- const _P = "Padding";
301
- const _PB = "PricingBucket";
302
- const _POI = "PointsOfInterests";
303
- const _PV = "PoliticalView";
304
- const _R = "Radius";
305
- const _S = "Style";
306
- const _SBU = "ScaleBarUnit";
307
- const _T = "Terrain";
308
- const _TM = "TravelModes";
309
- const _Tr = "Traffic";
310
- const _W = "Width";
311
- const _Z = "Zoom";
312
- const _af = "additional-features";
313
- const _bb = "bounding-box";
314
- const _bp = "bounded-positions";
315
- const _c = "center";
316
- const _cc = "cache-control";
317
- const _cd = "contour-density";
318
- const _cl = "crop-labels";
319
- const _co = "compact-overlay";
320
- const _cs = "color-scheme";
321
- const _ct = "content-type";
322
- const _e = "etag";
323
- const _go = "geojson-overlay";
324
- const _h = "height";
325
- const _k = "key";
326
- const _l = "lang";
327
- const _ls = "label-size";
328
- const _p = "padding";
329
- const _po = "pois";
330
- const _pv = "political-view";
331
- const _r = "radius";
332
- const _s = "style";
333
- const _su = "scale-unit";
334
- const _t = "terrain";
335
- const _tm = "travel-modes";
336
- const _tr = "traffic";
337
- const _w = "width";
338
- const _xagpb = "x-amz-geo-pricing-bucket";
339
- const _z = "zoom";
@@ -1,47 +0,0 @@
1
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
- import { SerdeContext as __SerdeContext } from "@smithy/types";
3
- import { GetGlyphsCommandInput, GetGlyphsCommandOutput } from "../commands/GetGlyphsCommand";
4
- import { GetSpritesCommandInput, GetSpritesCommandOutput } from "../commands/GetSpritesCommand";
5
- import { GetStaticMapCommandInput, GetStaticMapCommandOutput } from "../commands/GetStaticMapCommand";
6
- import { GetStyleDescriptorCommandInput, GetStyleDescriptorCommandOutput } from "../commands/GetStyleDescriptorCommand";
7
- import { GetTileCommandInput, GetTileCommandOutput } from "../commands/GetTileCommand";
8
- /**
9
- * serializeAws_restJson1GetGlyphsCommand
10
- */
11
- export declare const se_GetGlyphsCommand: (input: GetGlyphsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
12
- /**
13
- * serializeAws_restJson1GetSpritesCommand
14
- */
15
- export declare const se_GetSpritesCommand: (input: GetSpritesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
16
- /**
17
- * serializeAws_restJson1GetStaticMapCommand
18
- */
19
- export declare const se_GetStaticMapCommand: (input: GetStaticMapCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
- /**
21
- * serializeAws_restJson1GetStyleDescriptorCommand
22
- */
23
- export declare const se_GetStyleDescriptorCommand: (input: GetStyleDescriptorCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
24
- /**
25
- * serializeAws_restJson1GetTileCommand
26
- */
27
- export declare const se_GetTileCommand: (input: GetTileCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
28
- /**
29
- * deserializeAws_restJson1GetGlyphsCommand
30
- */
31
- export declare const de_GetGlyphsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetGlyphsCommandOutput>;
32
- /**
33
- * deserializeAws_restJson1GetSpritesCommand
34
- */
35
- export declare const de_GetSpritesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetSpritesCommandOutput>;
36
- /**
37
- * deserializeAws_restJson1GetStaticMapCommand
38
- */
39
- export declare const de_GetStaticMapCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetStaticMapCommandOutput>;
40
- /**
41
- * deserializeAws_restJson1GetStyleDescriptorCommand
42
- */
43
- export declare const de_GetStyleDescriptorCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetStyleDescriptorCommandOutput>;
44
- /**
45
- * deserializeAws_restJson1GetTileCommand
46
- */
47
- export declare const de_GetTileCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetTileCommandOutput>;