@aws-sdk/client-geo-maps 3.1074.0 → 3.1076.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/dist-cjs/index.js +540 -15
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -57
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/GeoMapsServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -77
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -258
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
exports.__Client = Client;
|
|
7
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
|
|
17
|
+
const defaultGeoMapsHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
|
+
return {
|
|
19
|
+
operation: getSmithyContext(context).operation,
|
|
20
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
21
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
22
|
+
})(),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
26
|
+
return {
|
|
27
|
+
schemeId: "aws.auth#sigv4",
|
|
28
|
+
signingProperties: {
|
|
29
|
+
name: "geo-maps",
|
|
30
|
+
region: authParameters.region,
|
|
31
|
+
},
|
|
32
|
+
propertiesExtractor: (config, context) => ({
|
|
33
|
+
signingProperties: {
|
|
34
|
+
config,
|
|
35
|
+
context,
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const defaultGeoMapsHttpAuthSchemeProvider = (authParameters) => {
|
|
41
|
+
const options = [];
|
|
42
|
+
switch (authParameters.operation) {
|
|
43
|
+
default: {
|
|
44
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return options;
|
|
48
|
+
};
|
|
49
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
50
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
51
|
+
return Object.assign(config_0, {
|
|
52
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
53
|
+
});
|
|
54
|
+
};
|
|
19
55
|
|
|
20
56
|
const resolveClientEndpointParameters = (options) => {
|
|
21
57
|
return Object.assign(options, {
|
|
@@ -31,6 +67,466 @@ const commonParams = {
|
|
|
31
67
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
68
|
};
|
|
33
69
|
|
|
70
|
+
var version = "3.1075.0";
|
|
71
|
+
var packageInfo = {
|
|
72
|
+
version: version};
|
|
73
|
+
|
|
74
|
+
const m = "ref";
|
|
75
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "stringEquals", f = "booleanEquals", g = "getAttr", h = { [m]: "Endpoint" }, i = { "fn": g, "argv": [{ [m]: d }, "name"] }, j = { [m]: d }, k = {}, l = [{ [m]: "Region" }];
|
|
76
|
+
const _data = {
|
|
77
|
+
conditions: [
|
|
78
|
+
[c, [h]],
|
|
79
|
+
[c, l],
|
|
80
|
+
["aws.partition", l, d],
|
|
81
|
+
[e, [i, "aws-us-gov"]],
|
|
82
|
+
[e, [i, "aws"]],
|
|
83
|
+
[f, [{ [m]: "UseFIPS" }, b]],
|
|
84
|
+
[f, [{ fn: g, argv: [j, "supportsFIPS"] }, b]],
|
|
85
|
+
[f, [{ [m]: "UseDualStack" }, b]],
|
|
86
|
+
[f, [{ fn: g, argv: [j, "supportsDualStack"] }, b]]
|
|
87
|
+
],
|
|
88
|
+
results: [
|
|
89
|
+
[a],
|
|
90
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
91
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
92
|
+
[h, k],
|
|
93
|
+
["https://maps.geo.{Region}.{PartitionResult#dnsSuffix}/v2", k],
|
|
94
|
+
["https://maps.geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}/v2", k],
|
|
95
|
+
["https://maps.geo-fips.{Region}.{PartitionResult#dnsSuffix}/v2", k],
|
|
96
|
+
["https://maps.geo.{Region}.{PartitionResult#dualStackDnsSuffix}/v2", k],
|
|
97
|
+
["https://geo-maps-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
98
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
99
|
+
["https://geo-maps-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
100
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
101
|
+
["https://geo-maps.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
102
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
103
|
+
["https://geo-maps.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
104
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
105
|
+
]
|
|
106
|
+
};
|
|
107
|
+
const root = 2;
|
|
108
|
+
const r = 100_000_000;
|
|
109
|
+
const nodes = new Int32Array([
|
|
110
|
+
-1, 1, -1,
|
|
111
|
+
0, 17, 3,
|
|
112
|
+
1, 4, r + 15,
|
|
113
|
+
2, 5, r + 15,
|
|
114
|
+
3, 14, 6,
|
|
115
|
+
4, 14, 7,
|
|
116
|
+
5, 10, 8,
|
|
117
|
+
7, 9, r + 14,
|
|
118
|
+
8, r + 12, r + 13,
|
|
119
|
+
6, 12, 11,
|
|
120
|
+
7, r + 9, r + 11,
|
|
121
|
+
7, 13, r + 10,
|
|
122
|
+
8, r + 8, r + 9,
|
|
123
|
+
5, 16, 15,
|
|
124
|
+
7, r + 7, r + 4,
|
|
125
|
+
7, r + 5, r + 6,
|
|
126
|
+
5, r + 1, 18,
|
|
127
|
+
7, r + 2, r + 3,
|
|
128
|
+
]);
|
|
129
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
130
|
+
|
|
131
|
+
const cache = new EndpointCache({
|
|
132
|
+
size: 50,
|
|
133
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
134
|
+
});
|
|
135
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
136
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
137
|
+
endpointParams: endpointParams,
|
|
138
|
+
logger: context.logger,
|
|
139
|
+
}));
|
|
140
|
+
};
|
|
141
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
142
|
+
|
|
143
|
+
class GeoMapsServiceException extends ServiceException {
|
|
144
|
+
constructor(options) {
|
|
145
|
+
super(options);
|
|
146
|
+
Object.setPrototypeOf(this, GeoMapsServiceException.prototype);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
class AccessDeniedException extends GeoMapsServiceException {
|
|
151
|
+
name = "AccessDeniedException";
|
|
152
|
+
$fault = "client";
|
|
153
|
+
Message;
|
|
154
|
+
constructor(opts) {
|
|
155
|
+
super({
|
|
156
|
+
name: "AccessDeniedException",
|
|
157
|
+
$fault: "client",
|
|
158
|
+
...opts,
|
|
159
|
+
});
|
|
160
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
161
|
+
this.Message = opts.Message;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
class InternalServerException extends GeoMapsServiceException {
|
|
165
|
+
name = "InternalServerException";
|
|
166
|
+
$fault = "server";
|
|
167
|
+
$retryable = {};
|
|
168
|
+
Message;
|
|
169
|
+
constructor(opts) {
|
|
170
|
+
super({
|
|
171
|
+
name: "InternalServerException",
|
|
172
|
+
$fault: "server",
|
|
173
|
+
...opts,
|
|
174
|
+
});
|
|
175
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
176
|
+
this.Message = opts.Message;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
class ThrottlingException extends GeoMapsServiceException {
|
|
180
|
+
name = "ThrottlingException";
|
|
181
|
+
$fault = "client";
|
|
182
|
+
$retryable = {};
|
|
183
|
+
Message;
|
|
184
|
+
constructor(opts) {
|
|
185
|
+
super({
|
|
186
|
+
name: "ThrottlingException",
|
|
187
|
+
$fault: "client",
|
|
188
|
+
...opts,
|
|
189
|
+
});
|
|
190
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
191
|
+
this.Message = opts.Message;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
class ValidationException extends GeoMapsServiceException {
|
|
195
|
+
name = "ValidationException";
|
|
196
|
+
$fault = "client";
|
|
197
|
+
Message;
|
|
198
|
+
Reason;
|
|
199
|
+
FieldList;
|
|
200
|
+
constructor(opts) {
|
|
201
|
+
super({
|
|
202
|
+
name: "ValidationException",
|
|
203
|
+
$fault: "client",
|
|
204
|
+
...opts,
|
|
205
|
+
});
|
|
206
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
207
|
+
this.Message = opts.Message;
|
|
208
|
+
this.Reason = opts.Reason;
|
|
209
|
+
this.FieldList = opts.FieldList;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
class ResourceNotFoundException extends GeoMapsServiceException {
|
|
213
|
+
name = "ResourceNotFoundException";
|
|
214
|
+
$fault = "client";
|
|
215
|
+
Message;
|
|
216
|
+
constructor(opts) {
|
|
217
|
+
super({
|
|
218
|
+
name: "ResourceNotFoundException",
|
|
219
|
+
$fault: "client",
|
|
220
|
+
...opts,
|
|
221
|
+
});
|
|
222
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
223
|
+
this.Message = opts.Message;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
const _ADE = "AccessDeniedException";
|
|
228
|
+
const _AF = "AdditionalFeatures";
|
|
229
|
+
const _AK = "ApiKey";
|
|
230
|
+
const _B = "Blob";
|
|
231
|
+
const _BB = "BoundingBox";
|
|
232
|
+
const _BP = "BoundedPositions";
|
|
233
|
+
const _Bu = "Buildings";
|
|
234
|
+
const _C = "Center";
|
|
235
|
+
const _CC = "CountryCode";
|
|
236
|
+
const _CC_ = "Cache-Control";
|
|
237
|
+
const _CCa = "CacheControl";
|
|
238
|
+
const _CD = "ContourDensity";
|
|
239
|
+
const _CL = "CropLabels";
|
|
240
|
+
const _CO = "CompactOverlay";
|
|
241
|
+
const _CS = "ColorScheme";
|
|
242
|
+
const _CT = "ContentType";
|
|
243
|
+
const _CT_ = "Content-Type";
|
|
244
|
+
const _DM = "DistanceMeters";
|
|
245
|
+
const _ET = "ETag";
|
|
246
|
+
const _FL = "FieldList";
|
|
247
|
+
const _FN = "FileName";
|
|
248
|
+
const _FS = "FontStack";
|
|
249
|
+
const _FUR = "FontUnicodeRange";
|
|
250
|
+
const _GG = "GetGlyphs";
|
|
251
|
+
const _GGR = "GetGlyphsRequest";
|
|
252
|
+
const _GGRe = "GetGlyphsResponse";
|
|
253
|
+
const _GJO = "GeoJsonOverlay";
|
|
254
|
+
const _GS = "GetSprites";
|
|
255
|
+
const _GSD = "GetStyleDescriptor";
|
|
256
|
+
const _GSDR = "GetStyleDescriptorRequest";
|
|
257
|
+
const _GSDRe = "GetStyleDescriptorResponse";
|
|
258
|
+
const _GSM = "GetStaticMap";
|
|
259
|
+
const _GSMR = "GetStaticMapRequest";
|
|
260
|
+
const _GSMRe = "GetStaticMapResponse";
|
|
261
|
+
const _GSR = "GetSpritesRequest";
|
|
262
|
+
const _GSRe = "GetSpritesResponse";
|
|
263
|
+
const _GT = "GetTile";
|
|
264
|
+
const _GTR = "GetTileRequest";
|
|
265
|
+
const _GTRe = "GetTileResponse";
|
|
266
|
+
const _H = "Height";
|
|
267
|
+
const _ISE = "InternalServerException";
|
|
268
|
+
const _K = "Key";
|
|
269
|
+
const _L = "Language";
|
|
270
|
+
const _LS = "LabelSize";
|
|
271
|
+
const _M = "Message";
|
|
272
|
+
const _N = "Name";
|
|
273
|
+
const _P = "Padding";
|
|
274
|
+
const _PB = "PricingBucket";
|
|
275
|
+
const _PLS = "PositionListString";
|
|
276
|
+
const _POI = "PointsOfInterests";
|
|
277
|
+
const _PS = "PositionString";
|
|
278
|
+
const _PV = "PoliticalView";
|
|
279
|
+
const _R = "Reason";
|
|
280
|
+
const _RNFE = "ResourceNotFoundException";
|
|
281
|
+
const _Ra = "Radius";
|
|
282
|
+
const _S = "Style";
|
|
283
|
+
const _SBU = "ScaleBarUnit";
|
|
284
|
+
const _SF = "SensitiveFloat";
|
|
285
|
+
const _SI = "SensitiveInteger";
|
|
286
|
+
const _SS = "SensitiveString";
|
|
287
|
+
const _T = "Terrain";
|
|
288
|
+
const _TE = "ThrottlingException";
|
|
289
|
+
const _TM = "TravelModes";
|
|
290
|
+
const _Ti = "Tileset";
|
|
291
|
+
const _Tr = "Traffic";
|
|
292
|
+
const _V = "Variant";
|
|
293
|
+
const _VE = "ValidationException";
|
|
294
|
+
const _VEF = "ValidationExceptionField";
|
|
295
|
+
const _VEFL = "ValidationExceptionFieldList";
|
|
296
|
+
const _W = "Width";
|
|
297
|
+
const _X = "X";
|
|
298
|
+
const _Y = "Y";
|
|
299
|
+
const _Z = "Zoom";
|
|
300
|
+
const _Z_ = "Z";
|
|
301
|
+
const _af = "additional-features";
|
|
302
|
+
const _b = "buildings";
|
|
303
|
+
const _bb = "bounding-box";
|
|
304
|
+
const _bp = "bounded-positions";
|
|
305
|
+
const _c = "client";
|
|
306
|
+
const _cd = "contour-density";
|
|
307
|
+
const _ce = "center";
|
|
308
|
+
const _cl = "crop-labels";
|
|
309
|
+
const _co = "compact-overlay";
|
|
310
|
+
const _cs = "color-scheme";
|
|
311
|
+
const _e = "error";
|
|
312
|
+
const _fL = "fieldList";
|
|
313
|
+
const _go = "geojson-overlay";
|
|
314
|
+
const _h = "height";
|
|
315
|
+
const _hE = "httpError";
|
|
316
|
+
const _hH = "httpHeader";
|
|
317
|
+
const _hQ = "httpQuery";
|
|
318
|
+
const _ht = "http";
|
|
319
|
+
const _jN = "jsonName";
|
|
320
|
+
const _k = "key";
|
|
321
|
+
const _l = "lang";
|
|
322
|
+
const _ls = "label-size";
|
|
323
|
+
const _m = "message";
|
|
324
|
+
const _n = "name";
|
|
325
|
+
const _p = "padding";
|
|
326
|
+
const _po = "pois";
|
|
327
|
+
const _pv = "political-view";
|
|
328
|
+
const _r = "reason";
|
|
329
|
+
const _ra = "radius";
|
|
330
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.geomaps";
|
|
331
|
+
const _se = "server";
|
|
332
|
+
const _st = "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";
|
|
340
|
+
const n0 = "com.amazonaws.geomaps";
|
|
341
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
342
|
+
var GeoMapsServiceException$ = [-3, _s, "GeoMapsServiceException", 0, [], []];
|
|
343
|
+
_s_registry.registerError(GeoMapsServiceException$, GeoMapsServiceException);
|
|
344
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
345
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
346
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
347
|
+
[_M],
|
|
348
|
+
[[0, { [_jN]: _m }]], 1
|
|
349
|
+
];
|
|
350
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
351
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
352
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
353
|
+
[_M],
|
|
354
|
+
[[0, { [_jN]: _m }]], 1
|
|
355
|
+
];
|
|
356
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
357
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
358
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
359
|
+
[_M],
|
|
360
|
+
[[0, { [_jN]: _m }]], 1
|
|
361
|
+
];
|
|
362
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
363
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
364
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
365
|
+
[_M],
|
|
366
|
+
[[0, { [_jN]: _m }]], 1
|
|
367
|
+
];
|
|
368
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
369
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
370
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
371
|
+
[_M, _R, _FL],
|
|
372
|
+
[[0, { [_jN]: _m }], [0, { [_jN]: _r }], [() => ValidationExceptionFieldList, { [_jN]: _fL }]], 3
|
|
373
|
+
];
|
|
374
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
375
|
+
const errorTypeRegistries = [
|
|
376
|
+
_s_registry,
|
|
377
|
+
n0_registry,
|
|
378
|
+
];
|
|
379
|
+
var ApiKey = [0, n0, _AK, 8, 0];
|
|
380
|
+
var CompactOverlay = [0, n0, _CO, 8, 0];
|
|
381
|
+
var CountryCode = [0, n0, _CC, 8, 0];
|
|
382
|
+
var DistanceMeters = [0, n0, _DM, 8, 1];
|
|
383
|
+
var GeoJsonOverlay = [0, n0, _GJO, 8, 0];
|
|
384
|
+
var PositionListString = [0, n0, _PLS, 8, 0];
|
|
385
|
+
var PositionString = [0, n0, _PS, 8, 0];
|
|
386
|
+
var SensitiveFloat = [0, n0, _SF, 8, 1];
|
|
387
|
+
var SensitiveInteger = [0, n0, _SI, 8, 1];
|
|
388
|
+
var SensitiveString = [0, n0, _SS, 8, 0];
|
|
389
|
+
var GetGlyphsRequest$ = [3, n0, _GGR,
|
|
390
|
+
0,
|
|
391
|
+
[_FS, _FUR],
|
|
392
|
+
[[0, 1], [0, 1]], 2
|
|
393
|
+
];
|
|
394
|
+
var GetGlyphsResponse$ = [3, n0, _GGRe,
|
|
395
|
+
0,
|
|
396
|
+
[_B, _CT, _CCa, _ET],
|
|
397
|
+
[[21, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _ET }]]
|
|
398
|
+
];
|
|
399
|
+
var GetSpritesRequest$ = [3, n0, _GSR,
|
|
400
|
+
0,
|
|
401
|
+
[_FN, _S, _CS, _V],
|
|
402
|
+
[[0, 1], [0, 1], [0, 1], [0, 1]], 4
|
|
403
|
+
];
|
|
404
|
+
var GetSpritesResponse$ = [3, n0, _GSRe,
|
|
405
|
+
0,
|
|
406
|
+
[_B, _CT, _CCa, _ET],
|
|
407
|
+
[[21, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _ET }]]
|
|
408
|
+
];
|
|
409
|
+
var GetStaticMapRequest$ = [3, n0, _GSMR,
|
|
410
|
+
0,
|
|
411
|
+
[_H, _FN, _W, _BB, _BP, _C, _CS, _CO, _CL, _GJO, _K, _LS, _L, _P, _PV, _POI, _Ra, _SBU, _S, _Z],
|
|
412
|
+
[[() => SensitiveInteger, { [_hQ]: _h }], [0, 1], [() => SensitiveInteger, { [_hQ]: _w }], [() => PositionListString, { [_hQ]: _bb }], [() => PositionListString, { [_hQ]: _bp }], [() => PositionString, { [_hQ]: _ce }], [0, { [_hQ]: _cs }], [() => CompactOverlay, { [_hQ]: _co }], [2, { [_hQ]: _cl }], [() => GeoJsonOverlay, { [_hQ]: _go }], [() => ApiKey, { [_hQ]: _k }], [0, { [_hQ]: _ls }], [0, { [_hQ]: _l }], [() => SensitiveInteger, { [_hQ]: _p }], [() => CountryCode, { [_hQ]: _pv }], [0, { [_hQ]: _po }], [() => DistanceMeters, { [_hQ]: _ra }], [0, { [_hQ]: _su }], [0, { [_hQ]: _st }], [() => SensitiveFloat, { [_hQ]: _z }]], 3
|
|
413
|
+
];
|
|
414
|
+
var GetStaticMapResponse$ = [3, n0, _GSMRe,
|
|
415
|
+
0,
|
|
416
|
+
[_PB, _B, _CT, _CCa, _ET],
|
|
417
|
+
[[0, { [_hH]: _xagpb }], [21, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _ET }]], 1
|
|
418
|
+
];
|
|
419
|
+
var GetStyleDescriptorRequest$ = [3, n0, _GSDR,
|
|
420
|
+
0,
|
|
421
|
+
[_S, _CS, _PV, _T, _CD, _Tr, _TM, _Bu, _K],
|
|
422
|
+
[[0, 1], [0, { [_hQ]: _cs }], [() => CountryCode, { [_hQ]: _pv }], [0, { [_hQ]: _t }], [0, { [_hQ]: _cd }], [0, { [_hQ]: _tr }], [64 | 0, { [_hQ]: _tm }], [0, { [_hQ]: _b }], [() => ApiKey, { [_hQ]: _k }]], 1
|
|
423
|
+
];
|
|
424
|
+
var GetStyleDescriptorResponse$ = [3, n0, _GSDRe,
|
|
425
|
+
0,
|
|
426
|
+
[_B, _CT, _CCa, _ET],
|
|
427
|
+
[[21, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _ET }]]
|
|
428
|
+
];
|
|
429
|
+
var GetTileRequest$ = [3, n0, _GTR,
|
|
430
|
+
0,
|
|
431
|
+
[_Ti, _Z_, _X, _Y, _AF, _K],
|
|
432
|
+
[[0, 1], [() => SensitiveString, 1], [() => SensitiveString, 1], [() => SensitiveString, 1], [64 | 0, { [_hQ]: _af }], [() => ApiKey, { [_hQ]: _k }]], 4
|
|
433
|
+
];
|
|
434
|
+
var GetTileResponse$ = [3, n0, _GTRe,
|
|
435
|
+
0,
|
|
436
|
+
[_PB, _B, _CT, _CCa, _ET],
|
|
437
|
+
[[0, { [_hH]: _xagpb }], [21, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _ET }]], 1
|
|
438
|
+
];
|
|
439
|
+
var ValidationExceptionField$ = [3, n0, _VEF,
|
|
440
|
+
0,
|
|
441
|
+
[_N, _M],
|
|
442
|
+
[[0, { [_jN]: _n }], [0, { [_jN]: _m }]], 2
|
|
443
|
+
];
|
|
444
|
+
var ValidationExceptionFieldList = [1, n0, _VEFL,
|
|
445
|
+
0, [() => ValidationExceptionField$,
|
|
446
|
+
0]
|
|
447
|
+
];
|
|
448
|
+
var GetGlyphs$ = [9, n0, _GG,
|
|
449
|
+
{ [_ht]: ["GET", "/glyphs/{FontStack}/{FontUnicodeRange}", 200] }, () => GetGlyphsRequest$, () => GetGlyphsResponse$
|
|
450
|
+
];
|
|
451
|
+
var GetSprites$ = [9, n0, _GS,
|
|
452
|
+
{ [_ht]: ["GET", "/styles/{Style}/{ColorScheme}/{Variant}/sprites/{FileName}", 200] }, () => GetSpritesRequest$, () => GetSpritesResponse$
|
|
453
|
+
];
|
|
454
|
+
var GetStaticMap$ = [9, n0, _GSM,
|
|
455
|
+
{ [_ht]: ["GET", "/static/{FileName}", 200] }, () => GetStaticMapRequest$, () => GetStaticMapResponse$
|
|
456
|
+
];
|
|
457
|
+
var GetStyleDescriptor$ = [9, n0, _GSD,
|
|
458
|
+
{ [_ht]: ["GET", "/styles/{Style}/descriptor", 200] }, () => GetStyleDescriptorRequest$, () => GetStyleDescriptorResponse$
|
|
459
|
+
];
|
|
460
|
+
var GetTile$ = [9, n0, _GT,
|
|
461
|
+
{ [_ht]: ["GET", "/tiles/{Tileset}/{Z}/{X}/{Y}", 200] }, () => GetTileRequest$, () => GetTileResponse$
|
|
462
|
+
];
|
|
463
|
+
|
|
464
|
+
const getRuntimeConfig$1 = (config) => {
|
|
465
|
+
return {
|
|
466
|
+
apiVersion: "2020-11-19",
|
|
467
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
468
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
469
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
470
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
471
|
+
extensions: config?.extensions ?? [],
|
|
472
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultGeoMapsHttpAuthSchemeProvider,
|
|
473
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
474
|
+
{
|
|
475
|
+
schemeId: "aws.auth#sigv4",
|
|
476
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
477
|
+
signer: new AwsSdkSigV4Signer(),
|
|
478
|
+
},
|
|
479
|
+
],
|
|
480
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
481
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
482
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
483
|
+
defaultNamespace: "com.amazonaws.geomaps",
|
|
484
|
+
errorTypeRegistries,
|
|
485
|
+
version: "2020-11-19",
|
|
486
|
+
serviceTarget: "MapsService",
|
|
487
|
+
},
|
|
488
|
+
serviceId: config?.serviceId ?? "Geo Maps",
|
|
489
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
490
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
491
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
492
|
+
};
|
|
493
|
+
};
|
|
494
|
+
|
|
495
|
+
const getRuntimeConfig = (config) => {
|
|
496
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
497
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
498
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
499
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
500
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
501
|
+
const loaderConfig = {
|
|
502
|
+
profile: config?.profile,
|
|
503
|
+
logger: clientSharedValues.logger,
|
|
504
|
+
};
|
|
505
|
+
return {
|
|
506
|
+
...clientSharedValues,
|
|
507
|
+
...config,
|
|
508
|
+
runtime: "node",
|
|
509
|
+
defaultsMode,
|
|
510
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
511
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
512
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
513
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
514
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
515
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
516
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
517
|
+
retryMode: config?.retryMode ??
|
|
518
|
+
loadConfig({
|
|
519
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
520
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
521
|
+
}, config),
|
|
522
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
523
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
524
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
525
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
526
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
|
|
34
530
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
531
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
532
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -248,24 +744,53 @@ const TileAdditionalFeature = {
|
|
|
248
744
|
TRANSIT: "Transit",
|
|
249
745
|
};
|
|
250
746
|
|
|
747
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
748
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
251
749
|
exports.Buildings = Buildings;
|
|
252
750
|
exports.ColorScheme = ColorScheme;
|
|
253
751
|
exports.ContourDensity = ContourDensity;
|
|
254
752
|
exports.GeoMaps = GeoMaps;
|
|
255
753
|
exports.GeoMapsClient = GeoMapsClient;
|
|
754
|
+
exports.GeoMapsServiceException = GeoMapsServiceException;
|
|
755
|
+
exports.GeoMapsServiceException$ = GeoMapsServiceException$;
|
|
756
|
+
exports.GetGlyphs$ = GetGlyphs$;
|
|
256
757
|
exports.GetGlyphsCommand = GetGlyphsCommand;
|
|
758
|
+
exports.GetGlyphsRequest$ = GetGlyphsRequest$;
|
|
759
|
+
exports.GetGlyphsResponse$ = GetGlyphsResponse$;
|
|
760
|
+
exports.GetSprites$ = GetSprites$;
|
|
257
761
|
exports.GetSpritesCommand = GetSpritesCommand;
|
|
762
|
+
exports.GetSpritesRequest$ = GetSpritesRequest$;
|
|
763
|
+
exports.GetSpritesResponse$ = GetSpritesResponse$;
|
|
764
|
+
exports.GetStaticMap$ = GetStaticMap$;
|
|
258
765
|
exports.GetStaticMapCommand = GetStaticMapCommand;
|
|
766
|
+
exports.GetStaticMapRequest$ = GetStaticMapRequest$;
|
|
767
|
+
exports.GetStaticMapResponse$ = GetStaticMapResponse$;
|
|
768
|
+
exports.GetStyleDescriptor$ = GetStyleDescriptor$;
|
|
259
769
|
exports.GetStyleDescriptorCommand = GetStyleDescriptorCommand;
|
|
770
|
+
exports.GetStyleDescriptorRequest$ = GetStyleDescriptorRequest$;
|
|
771
|
+
exports.GetStyleDescriptorResponse$ = GetStyleDescriptorResponse$;
|
|
772
|
+
exports.GetTile$ = GetTile$;
|
|
260
773
|
exports.GetTileCommand = GetTileCommand;
|
|
774
|
+
exports.GetTileRequest$ = GetTileRequest$;
|
|
775
|
+
exports.GetTileResponse$ = GetTileResponse$;
|
|
776
|
+
exports.InternalServerException = InternalServerException;
|
|
777
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
261
778
|
exports.LabelSize = LabelSize;
|
|
262
779
|
exports.MapFeatureMode = MapFeatureMode;
|
|
263
780
|
exports.MapStyle = MapStyle;
|
|
781
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
782
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
264
783
|
exports.ScaleBarUnit = ScaleBarUnit;
|
|
265
784
|
exports.StaticMapStyle = StaticMapStyle;
|
|
266
785
|
exports.Terrain = Terrain;
|
|
786
|
+
exports.ThrottlingException = ThrottlingException;
|
|
787
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
267
788
|
exports.TileAdditionalFeature = TileAdditionalFeature;
|
|
268
789
|
exports.Traffic = Traffic;
|
|
269
790
|
exports.TravelMode = TravelMode;
|
|
791
|
+
exports.ValidationException = ValidationException;
|
|
792
|
+
exports.ValidationException$ = ValidationException$;
|
|
793
|
+
exports.ValidationExceptionField$ = ValidationExceptionField$;
|
|
270
794
|
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
271
795
|
exports.Variant = Variant;
|
|
796
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
@@ -14,7 +14,7 @@ export declare const getRuntimeConfig: (config: GeoMapsClientConfig) => {
|
|
|
14
14
|
requestHandler: import("@smithy/core/protocols").HttpHandler<any> | RequestHandler;
|
|
15
15
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
16
|
sha256: import("@smithy/types").HashConstructor;
|
|
17
|
-
streamCollector: import("
|
|
17
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
18
18
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
19
19
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
20
20
|
cacheMiddleware?: boolean | undefined;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: GeoMapsClientConfig) => {
|
|
|
15
15
|
requestHandler: RequestHandler | import("@smithy/core/protocols").HttpHandler<any>;
|
|
16
16
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
17
17
|
sha256: import("@smithy/types").HashConstructor;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
21
21
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -15,7 +15,7 @@ export declare const getRuntimeConfig: (config: GeoMapsClientConfig) => {
|
|
|
15
15
|
apiVersion: string;
|
|
16
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
17
17
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
18
|
-
streamCollector: import("
|
|
18
|
+
streamCollector: (stream: import("stream").Readable | import("stream/web").ReadableStream | ReadableStream | Blob) => Promise<Uint8Array>;
|
|
19
19
|
base64Decoder: import("@smithy/types").Decoder;
|
|
20
20
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
21
21
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -21,7 +21,13 @@ export declare const getRuntimeConfig: (config: GeoMapsClientConfig) => {
|
|
|
21
21
|
| RequestHandler;
|
|
22
22
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
23
23
|
sha256: import("@smithy/types").HashConstructor;
|
|
24
|
-
streamCollector:
|
|
24
|
+
streamCollector: (
|
|
25
|
+
stream:
|
|
26
|
+
| import("stream").Readable
|
|
27
|
+
| import("stream/web").ReadableStream
|
|
28
|
+
| ReadableStream
|
|
29
|
+
| Blob
|
|
30
|
+
) => Promise<Uint8Array>;
|
|
25
31
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
26
32
|
(boolean | import("@smithy/types").Provider<boolean | undefined>);
|
|
27
33
|
useFipsEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
@@ -22,7 +22,13 @@ export declare const getRuntimeConfig: (config: GeoMapsClientConfig) => {
|
|
|
22
22
|
| import("@smithy/core/protocols").HttpHandler<any>;
|
|
23
23
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
24
24
|
sha256: import("@smithy/types").HashConstructor;
|
|
25
|
-
streamCollector:
|
|
25
|
+
streamCollector: (
|
|
26
|
+
stream:
|
|
27
|
+
| import("stream").Readable
|
|
28
|
+
| import("stream/web").ReadableStream
|
|
29
|
+
| ReadableStream
|
|
30
|
+
| Blob
|
|
31
|
+
) => Promise<Uint8Array>;
|
|
26
32
|
useDualstackEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
27
33
|
useFipsEndpoint: boolean | import("@smithy/types").Provider<boolean>;
|
|
28
34
|
userAgentAppId: string | import("@smithy/types").Provider<string | undefined>;
|
|
@@ -20,7 +20,13 @@ export declare const getRuntimeConfig: (config: GeoMapsClientConfig) => {
|
|
|
20
20
|
apiVersion: string;
|
|
21
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
22
22
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
23
|
-
streamCollector:
|
|
23
|
+
streamCollector: (
|
|
24
|
+
stream:
|
|
25
|
+
| import("stream").Readable
|
|
26
|
+
| import("stream/web").ReadableStream
|
|
27
|
+
| ReadableStream
|
|
28
|
+
| Blob
|
|
29
|
+
) => Promise<Uint8Array>;
|
|
24
30
|
base64Decoder: import("@smithy/types").Decoder;
|
|
25
31
|
base64Encoder: (_input: Uint8Array | string) => string;
|
|
26
32
|
utf8Decoder: import("@smithy/types").Decoder;
|
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.
|
|
4
|
+
"version": "3.1076.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",
|
|
@@ -21,13 +21,13 @@
|
|
|
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.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/types": "^3.973.
|
|
27
|
-
"@smithy/core": "^3.
|
|
28
|
-
"@smithy/fetch-http-handler": "^5.
|
|
29
|
-
"@smithy/node-http-handler": "^4.
|
|
30
|
-
"@smithy/types": "^4.
|
|
24
|
+
"@aws-sdk/core": "^3.974.24",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.59",
|
|
26
|
+
"@aws-sdk/types": "^3.973.14",
|
|
27
|
+
"@smithy/core": "^3.27.0",
|
|
28
|
+
"@smithy/fetch-http-handler": "^5.6.0",
|
|
29
|
+
"@smithy/node-http-handler": "^4.9.0",
|
|
30
|
+
"@smithy/types": "^4.15.0",
|
|
31
31
|
"tslib": "^2.6.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
-
exports.defaultGeoMapsHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
4
|
-
return {
|
|
5
|
-
operation: getSmithyContext(context).operation,
|
|
6
|
-
region: await normalizeProvider(config.region)() || (() => {
|
|
7
|
-
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
8
|
-
})(),
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
12
|
-
return {
|
|
13
|
-
schemeId: "aws.auth#sigv4",
|
|
14
|
-
signingProperties: {
|
|
15
|
-
name: "geo-maps",
|
|
16
|
-
region: authParameters.region,
|
|
17
|
-
},
|
|
18
|
-
propertiesExtractor: (config, context) => ({
|
|
19
|
-
signingProperties: {
|
|
20
|
-
config,
|
|
21
|
-
context,
|
|
22
|
-
},
|
|
23
|
-
}),
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
exports.defaultGeoMapsHttpAuthSchemeProvider = (authParameters) => {
|
|
27
|
-
const options = [];
|
|
28
|
-
switch (authParameters.operation) {
|
|
29
|
-
default: {
|
|
30
|
-
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return options;
|
|
34
|
-
};
|
|
35
|
-
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
-
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
37
|
-
return Object.assign(config_0, {
|
|
38
|
-
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
39
|
-
});
|
|
40
|
-
};
|
package/dist-cjs/endpoint/bdd.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
2
|
-
const m = "ref";
|
|
3
|
-
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "stringEquals", f = "booleanEquals", g = "getAttr", h = { [m]: "Endpoint" }, i = { "fn": g, "argv": [{ [m]: d }, "name"] }, j = { [m]: d }, k = {}, l = [{ [m]: "Region" }];
|
|
4
|
-
const _data = {
|
|
5
|
-
conditions: [
|
|
6
|
-
[c, [h]],
|
|
7
|
-
[c, l],
|
|
8
|
-
["aws.partition", l, d],
|
|
9
|
-
[e, [i, "aws-us-gov"]],
|
|
10
|
-
[e, [i, "aws"]],
|
|
11
|
-
[f, [{ [m]: "UseFIPS" }, b]],
|
|
12
|
-
[f, [{ fn: g, argv: [j, "supportsFIPS"] }, b]],
|
|
13
|
-
[f, [{ [m]: "UseDualStack" }, b]],
|
|
14
|
-
[f, [{ fn: g, argv: [j, "supportsDualStack"] }, b]]
|
|
15
|
-
],
|
|
16
|
-
results: [
|
|
17
|
-
[a],
|
|
18
|
-
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
19
|
-
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
20
|
-
[h, k],
|
|
21
|
-
["https://maps.geo.{Region}.{PartitionResult#dnsSuffix}/v2", k],
|
|
22
|
-
["https://maps.geo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}/v2", k],
|
|
23
|
-
["https://maps.geo-fips.{Region}.{PartitionResult#dnsSuffix}/v2", k],
|
|
24
|
-
["https://maps.geo.{Region}.{PartitionResult#dualStackDnsSuffix}/v2", k],
|
|
25
|
-
["https://geo-maps-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
26
|
-
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
27
|
-
["https://geo-maps-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
28
|
-
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
29
|
-
["https://geo-maps.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
30
|
-
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
31
|
-
["https://geo-maps.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
32
|
-
[a, "Invalid Configuration: Missing Region"]
|
|
33
|
-
]
|
|
34
|
-
};
|
|
35
|
-
const root = 2;
|
|
36
|
-
const r = 100_000_000;
|
|
37
|
-
const nodes = new Int32Array([
|
|
38
|
-
-1, 1, -1,
|
|
39
|
-
0, 17, 3,
|
|
40
|
-
1, 4, r + 15,
|
|
41
|
-
2, 5, r + 15,
|
|
42
|
-
3, 14, 6,
|
|
43
|
-
4, 14, 7,
|
|
44
|
-
5, 10, 8,
|
|
45
|
-
7, 9, r + 14,
|
|
46
|
-
8, r + 12, r + 13,
|
|
47
|
-
6, 12, 11,
|
|
48
|
-
7, r + 9, r + 11,
|
|
49
|
-
7, 13, r + 10,
|
|
50
|
-
8, r + 8, r + 9,
|
|
51
|
-
5, 16, 15,
|
|
52
|
-
7, r + 7, r + 4,
|
|
53
|
-
7, r + 5, r + 6,
|
|
54
|
-
5, r + 1, 18,
|
|
55
|
-
7, r + 2, r + 3,
|
|
56
|
-
]);
|
|
57
|
-
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
-
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
-
const { bdd } = require("./bdd");
|
|
4
|
-
const cache = new EndpointCache({
|
|
5
|
-
size: 50,
|
|
6
|
-
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
7
|
-
});
|
|
8
|
-
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
-
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
10
|
-
endpointParams: endpointParams,
|
|
11
|
-
logger: context.logger,
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
-
exports.__ServiceException = __ServiceException;
|
|
3
|
-
exports.GeoMapsServiceException = class GeoMapsServiceException extends __ServiceException {
|
|
4
|
-
constructor(options) {
|
|
5
|
-
super(options);
|
|
6
|
-
Object.setPrototypeOf(this, GeoMapsServiceException.prototype);
|
|
7
|
-
}
|
|
8
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
const { GeoMapsServiceException: __BaseException } = require("./GeoMapsServiceException");
|
|
2
|
-
exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
|
|
3
|
-
name = "AccessDeniedException";
|
|
4
|
-
$fault = "client";
|
|
5
|
-
Message;
|
|
6
|
-
constructor(opts) {
|
|
7
|
-
super({
|
|
8
|
-
name: "AccessDeniedException",
|
|
9
|
-
$fault: "client",
|
|
10
|
-
...opts,
|
|
11
|
-
});
|
|
12
|
-
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
|
-
this.Message = opts.Message;
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
exports.InternalServerException = class InternalServerException extends __BaseException {
|
|
17
|
-
name = "InternalServerException";
|
|
18
|
-
$fault = "server";
|
|
19
|
-
$retryable = {};
|
|
20
|
-
Message;
|
|
21
|
-
constructor(opts) {
|
|
22
|
-
super({
|
|
23
|
-
name: "InternalServerException",
|
|
24
|
-
$fault: "server",
|
|
25
|
-
...opts,
|
|
26
|
-
});
|
|
27
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
28
|
-
this.Message = opts.Message;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
exports.ThrottlingException = class ThrottlingException extends __BaseException {
|
|
32
|
-
name = "ThrottlingException";
|
|
33
|
-
$fault = "client";
|
|
34
|
-
$retryable = {};
|
|
35
|
-
Message;
|
|
36
|
-
constructor(opts) {
|
|
37
|
-
super({
|
|
38
|
-
name: "ThrottlingException",
|
|
39
|
-
$fault: "client",
|
|
40
|
-
...opts,
|
|
41
|
-
});
|
|
42
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
43
|
-
this.Message = opts.Message;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
exports.ValidationException = class ValidationException extends __BaseException {
|
|
47
|
-
name = "ValidationException";
|
|
48
|
-
$fault = "client";
|
|
49
|
-
Message;
|
|
50
|
-
Reason;
|
|
51
|
-
FieldList;
|
|
52
|
-
constructor(opts) {
|
|
53
|
-
super({
|
|
54
|
-
name: "ValidationException",
|
|
55
|
-
$fault: "client",
|
|
56
|
-
...opts,
|
|
57
|
-
});
|
|
58
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
59
|
-
this.Message = opts.Message;
|
|
60
|
-
this.Reason = opts.Reason;
|
|
61
|
-
this.FieldList = opts.FieldList;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
65
|
-
name = "ResourceNotFoundException";
|
|
66
|
-
$fault = "client";
|
|
67
|
-
Message;
|
|
68
|
-
constructor(opts) {
|
|
69
|
-
super({
|
|
70
|
-
name: "ResourceNotFoundException",
|
|
71
|
-
$fault: "client",
|
|
72
|
-
...opts,
|
|
73
|
-
});
|
|
74
|
-
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
75
|
-
this.Message = opts.Message;
|
|
76
|
-
}
|
|
77
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
-
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
-
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
-
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
-
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
-
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
-
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
10
|
-
const getRuntimeConfig = (config) => {
|
|
11
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
14
|
-
return {
|
|
15
|
-
...clientSharedValues,
|
|
16
|
-
...config,
|
|
17
|
-
runtime: "browser",
|
|
18
|
-
defaultsMode,
|
|
19
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
21
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
-
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
-
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
-
sha256: config?.sha256 ?? Sha256,
|
|
27
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const packageInfo = require("../package.json");
|
|
2
|
-
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
-
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
-
const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
5
|
-
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
6
|
-
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
7
|
-
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
8
|
-
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
9
|
-
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
10
|
-
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
11
|
-
const getRuntimeConfig = (config) => {
|
|
12
|
-
emitWarningIfUnsupportedVersion(process.version);
|
|
13
|
-
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
-
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
-
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
awsCheckVersion(process.version);
|
|
17
|
-
const loaderConfig = {
|
|
18
|
-
profile: config?.profile,
|
|
19
|
-
logger: clientSharedValues.logger,
|
|
20
|
-
};
|
|
21
|
-
return {
|
|
22
|
-
...clientSharedValues,
|
|
23
|
-
...config,
|
|
24
|
-
runtime: "node",
|
|
25
|
-
defaultsMode,
|
|
26
|
-
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
|
-
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
|
-
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
|
-
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
32
|
-
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
33
|
-
retryMode: config?.retryMode ??
|
|
34
|
-
loadNodeConfig({
|
|
35
|
-
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
-
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
|
-
}, config),
|
|
38
|
-
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
|
-
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
42
|
-
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
-
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
3
|
-
const getRuntimeConfig = (config) => {
|
|
4
|
-
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
-
return {
|
|
6
|
-
...browserDefaults,
|
|
7
|
-
...config,
|
|
8
|
-
runtime: "react-native",
|
|
9
|
-
sha256: config?.sha256 ?? Sha256,
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
-
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
3
|
-
const { NoOpLogger } = require("@smithy/core/client");
|
|
4
|
-
const { parseUrl } = require("@smithy/core/protocols");
|
|
5
|
-
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
6
|
-
const { defaultGeoMapsHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
-
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
-
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
-
exports.getRuntimeConfig = (config) => {
|
|
10
|
-
return {
|
|
11
|
-
apiVersion: "2020-11-19",
|
|
12
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
14
|
-
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
-
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
16
|
-
extensions: config?.extensions ?? [],
|
|
17
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultGeoMapsHttpAuthSchemeProvider,
|
|
18
|
-
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
19
|
-
{
|
|
20
|
-
schemeId: "aws.auth#sigv4",
|
|
21
|
-
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
22
|
-
signer: new AwsSdkSigV4Signer(),
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
-
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
27
|
-
protocolSettings: config?.protocolSettings ?? {
|
|
28
|
-
defaultNamespace: "com.amazonaws.geomaps",
|
|
29
|
-
errorTypeRegistries,
|
|
30
|
-
version: "2020-11-19",
|
|
31
|
-
serviceTarget: "MapsService",
|
|
32
|
-
},
|
|
33
|
-
serviceId: config?.serviceId ?? "Geo Maps",
|
|
34
|
-
urlParser: config?.urlParser ?? parseUrl,
|
|
35
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
37
|
-
};
|
|
38
|
-
};
|
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
const _ADE = "AccessDeniedException";
|
|
2
|
-
const _AF = "AdditionalFeatures";
|
|
3
|
-
const _AK = "ApiKey";
|
|
4
|
-
const _B = "Blob";
|
|
5
|
-
const _BB = "BoundingBox";
|
|
6
|
-
const _BP = "BoundedPositions";
|
|
7
|
-
const _Bu = "Buildings";
|
|
8
|
-
const _C = "Center";
|
|
9
|
-
const _CC = "CountryCode";
|
|
10
|
-
const _CC_ = "Cache-Control";
|
|
11
|
-
const _CCa = "CacheControl";
|
|
12
|
-
const _CD = "ContourDensity";
|
|
13
|
-
const _CL = "CropLabels";
|
|
14
|
-
const _CO = "CompactOverlay";
|
|
15
|
-
const _CS = "ColorScheme";
|
|
16
|
-
const _CT = "ContentType";
|
|
17
|
-
const _CT_ = "Content-Type";
|
|
18
|
-
const _DM = "DistanceMeters";
|
|
19
|
-
const _ET = "ETag";
|
|
20
|
-
const _FL = "FieldList";
|
|
21
|
-
const _FN = "FileName";
|
|
22
|
-
const _FS = "FontStack";
|
|
23
|
-
const _FUR = "FontUnicodeRange";
|
|
24
|
-
const _GG = "GetGlyphs";
|
|
25
|
-
const _GGR = "GetGlyphsRequest";
|
|
26
|
-
const _GGRe = "GetGlyphsResponse";
|
|
27
|
-
const _GJO = "GeoJsonOverlay";
|
|
28
|
-
const _GS = "GetSprites";
|
|
29
|
-
const _GSD = "GetStyleDescriptor";
|
|
30
|
-
const _GSDR = "GetStyleDescriptorRequest";
|
|
31
|
-
const _GSDRe = "GetStyleDescriptorResponse";
|
|
32
|
-
const _GSM = "GetStaticMap";
|
|
33
|
-
const _GSMR = "GetStaticMapRequest";
|
|
34
|
-
const _GSMRe = "GetStaticMapResponse";
|
|
35
|
-
const _GSR = "GetSpritesRequest";
|
|
36
|
-
const _GSRe = "GetSpritesResponse";
|
|
37
|
-
const _GT = "GetTile";
|
|
38
|
-
const _GTR = "GetTileRequest";
|
|
39
|
-
const _GTRe = "GetTileResponse";
|
|
40
|
-
const _H = "Height";
|
|
41
|
-
const _ISE = "InternalServerException";
|
|
42
|
-
const _K = "Key";
|
|
43
|
-
const _L = "Language";
|
|
44
|
-
const _LS = "LabelSize";
|
|
45
|
-
const _M = "Message";
|
|
46
|
-
const _N = "Name";
|
|
47
|
-
const _P = "Padding";
|
|
48
|
-
const _PB = "PricingBucket";
|
|
49
|
-
const _PLS = "PositionListString";
|
|
50
|
-
const _POI = "PointsOfInterests";
|
|
51
|
-
const _PS = "PositionString";
|
|
52
|
-
const _PV = "PoliticalView";
|
|
53
|
-
const _R = "Reason";
|
|
54
|
-
const _RNFE = "ResourceNotFoundException";
|
|
55
|
-
const _Ra = "Radius";
|
|
56
|
-
const _S = "Style";
|
|
57
|
-
const _SBU = "ScaleBarUnit";
|
|
58
|
-
const _SF = "SensitiveFloat";
|
|
59
|
-
const _SI = "SensitiveInteger";
|
|
60
|
-
const _SS = "SensitiveString";
|
|
61
|
-
const _T = "Terrain";
|
|
62
|
-
const _TE = "ThrottlingException";
|
|
63
|
-
const _TM = "TravelModes";
|
|
64
|
-
const _Ti = "Tileset";
|
|
65
|
-
const _Tr = "Traffic";
|
|
66
|
-
const _V = "Variant";
|
|
67
|
-
const _VE = "ValidationException";
|
|
68
|
-
const _VEF = "ValidationExceptionField";
|
|
69
|
-
const _VEFL = "ValidationExceptionFieldList";
|
|
70
|
-
const _W = "Width";
|
|
71
|
-
const _X = "X";
|
|
72
|
-
const _Y = "Y";
|
|
73
|
-
const _Z = "Zoom";
|
|
74
|
-
const _Z_ = "Z";
|
|
75
|
-
const _af = "additional-features";
|
|
76
|
-
const _b = "buildings";
|
|
77
|
-
const _bb = "bounding-box";
|
|
78
|
-
const _bp = "bounded-positions";
|
|
79
|
-
const _c = "client";
|
|
80
|
-
const _cd = "contour-density";
|
|
81
|
-
const _ce = "center";
|
|
82
|
-
const _cl = "crop-labels";
|
|
83
|
-
const _co = "compact-overlay";
|
|
84
|
-
const _cs = "color-scheme";
|
|
85
|
-
const _e = "error";
|
|
86
|
-
const _fL = "fieldList";
|
|
87
|
-
const _go = "geojson-overlay";
|
|
88
|
-
const _h = "height";
|
|
89
|
-
const _hE = "httpError";
|
|
90
|
-
const _hH = "httpHeader";
|
|
91
|
-
const _hQ = "httpQuery";
|
|
92
|
-
const _ht = "http";
|
|
93
|
-
const _jN = "jsonName";
|
|
94
|
-
const _k = "key";
|
|
95
|
-
const _l = "lang";
|
|
96
|
-
const _ls = "label-size";
|
|
97
|
-
const _m = "message";
|
|
98
|
-
const _n = "name";
|
|
99
|
-
const _p = "padding";
|
|
100
|
-
const _po = "pois";
|
|
101
|
-
const _pv = "political-view";
|
|
102
|
-
const _r = "reason";
|
|
103
|
-
const _ra = "radius";
|
|
104
|
-
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.geomaps";
|
|
105
|
-
const _se = "server";
|
|
106
|
-
const _st = "style";
|
|
107
|
-
const _su = "scale-unit";
|
|
108
|
-
const _t = "terrain";
|
|
109
|
-
const _tm = "travel-modes";
|
|
110
|
-
const _tr = "traffic";
|
|
111
|
-
const _w = "width";
|
|
112
|
-
const _xagpb = "x-amz-geo-pricing-bucket";
|
|
113
|
-
const _z = "zoom";
|
|
114
|
-
const n0 = "com.amazonaws.geomaps";
|
|
115
|
-
const { TypeRegistry } = require("@smithy/core/schema");
|
|
116
|
-
const { AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException } = require("../models/errors");
|
|
117
|
-
const { GeoMapsServiceException } = require("../models/GeoMapsServiceException");
|
|
118
|
-
const _s_registry = TypeRegistry.for(_s);
|
|
119
|
-
const GeoMapsServiceException$ = [-3, _s, "GeoMapsServiceException", 0, [], []];
|
|
120
|
-
exports.GeoMapsServiceException$ = GeoMapsServiceException$;
|
|
121
|
-
_s_registry.registerError(GeoMapsServiceException$, GeoMapsServiceException);
|
|
122
|
-
const n0_registry = TypeRegistry.for(n0);
|
|
123
|
-
const AccessDeniedException$ = [-3, n0, _ADE,
|
|
124
|
-
{ [_e]: _c, [_hE]: 403 },
|
|
125
|
-
[_M],
|
|
126
|
-
[[0, { [_jN]: _m }]], 1
|
|
127
|
-
];
|
|
128
|
-
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
129
|
-
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
130
|
-
const InternalServerException$ = [-3, n0, _ISE,
|
|
131
|
-
{ [_e]: _se, [_hE]: 500 },
|
|
132
|
-
[_M],
|
|
133
|
-
[[0, { [_jN]: _m }]], 1
|
|
134
|
-
];
|
|
135
|
-
exports.InternalServerException$ = InternalServerException$;
|
|
136
|
-
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
137
|
-
const ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
138
|
-
{ [_e]: _c, [_hE]: 404 },
|
|
139
|
-
[_M],
|
|
140
|
-
[[0, { [_jN]: _m }]], 1
|
|
141
|
-
];
|
|
142
|
-
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
143
|
-
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
144
|
-
const ThrottlingException$ = [-3, n0, _TE,
|
|
145
|
-
{ [_e]: _c, [_hE]: 429 },
|
|
146
|
-
[_M],
|
|
147
|
-
[[0, { [_jN]: _m }]], 1
|
|
148
|
-
];
|
|
149
|
-
exports.ThrottlingException$ = ThrottlingException$;
|
|
150
|
-
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
151
|
-
const ValidationException$ = [-3, n0, _VE,
|
|
152
|
-
{ [_e]: _c, [_hE]: 400 },
|
|
153
|
-
[_M, _R, _FL],
|
|
154
|
-
[[0, { [_jN]: _m }], [0, { [_jN]: _r }], [() => ValidationExceptionFieldList, { [_jN]: _fL }]], 3
|
|
155
|
-
];
|
|
156
|
-
exports.ValidationException$ = ValidationException$;
|
|
157
|
-
n0_registry.registerError(ValidationException$, ValidationException);
|
|
158
|
-
exports.errorTypeRegistries = [
|
|
159
|
-
_s_registry,
|
|
160
|
-
n0_registry,
|
|
161
|
-
];
|
|
162
|
-
var ApiKey = [0, n0, _AK, 8, 0];
|
|
163
|
-
var CompactOverlay = [0, n0, _CO, 8, 0];
|
|
164
|
-
var CountryCode = [0, n0, _CC, 8, 0];
|
|
165
|
-
var DistanceMeters = [0, n0, _DM, 8, 1];
|
|
166
|
-
var GeoJsonOverlay = [0, n0, _GJO, 8, 0];
|
|
167
|
-
var PositionListString = [0, n0, _PLS, 8, 0];
|
|
168
|
-
var PositionString = [0, n0, _PS, 8, 0];
|
|
169
|
-
var SensitiveFloat = [0, n0, _SF, 8, 1];
|
|
170
|
-
var SensitiveInteger = [0, n0, _SI, 8, 1];
|
|
171
|
-
var SensitiveString = [0, n0, _SS, 8, 0];
|
|
172
|
-
const GetGlyphsRequest$ = [3, n0, _GGR,
|
|
173
|
-
0,
|
|
174
|
-
[_FS, _FUR],
|
|
175
|
-
[[0, 1], [0, 1]], 2
|
|
176
|
-
];
|
|
177
|
-
exports.GetGlyphsRequest$ = GetGlyphsRequest$;
|
|
178
|
-
const GetGlyphsResponse$ = [3, n0, _GGRe,
|
|
179
|
-
0,
|
|
180
|
-
[_B, _CT, _CCa, _ET],
|
|
181
|
-
[[21, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _ET }]]
|
|
182
|
-
];
|
|
183
|
-
exports.GetGlyphsResponse$ = GetGlyphsResponse$;
|
|
184
|
-
const GetSpritesRequest$ = [3, n0, _GSR,
|
|
185
|
-
0,
|
|
186
|
-
[_FN, _S, _CS, _V],
|
|
187
|
-
[[0, 1], [0, 1], [0, 1], [0, 1]], 4
|
|
188
|
-
];
|
|
189
|
-
exports.GetSpritesRequest$ = GetSpritesRequest$;
|
|
190
|
-
const GetSpritesResponse$ = [3, n0, _GSRe,
|
|
191
|
-
0,
|
|
192
|
-
[_B, _CT, _CCa, _ET],
|
|
193
|
-
[[21, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _ET }]]
|
|
194
|
-
];
|
|
195
|
-
exports.GetSpritesResponse$ = GetSpritesResponse$;
|
|
196
|
-
const GetStaticMapRequest$ = [3, n0, _GSMR,
|
|
197
|
-
0,
|
|
198
|
-
[_H, _FN, _W, _BB, _BP, _C, _CS, _CO, _CL, _GJO, _K, _LS, _L, _P, _PV, _POI, _Ra, _SBU, _S, _Z],
|
|
199
|
-
[[() => SensitiveInteger, { [_hQ]: _h }], [0, 1], [() => SensitiveInteger, { [_hQ]: _w }], [() => PositionListString, { [_hQ]: _bb }], [() => PositionListString, { [_hQ]: _bp }], [() => PositionString, { [_hQ]: _ce }], [0, { [_hQ]: _cs }], [() => CompactOverlay, { [_hQ]: _co }], [2, { [_hQ]: _cl }], [() => GeoJsonOverlay, { [_hQ]: _go }], [() => ApiKey, { [_hQ]: _k }], [0, { [_hQ]: _ls }], [0, { [_hQ]: _l }], [() => SensitiveInteger, { [_hQ]: _p }], [() => CountryCode, { [_hQ]: _pv }], [0, { [_hQ]: _po }], [() => DistanceMeters, { [_hQ]: _ra }], [0, { [_hQ]: _su }], [0, { [_hQ]: _st }], [() => SensitiveFloat, { [_hQ]: _z }]], 3
|
|
200
|
-
];
|
|
201
|
-
exports.GetStaticMapRequest$ = GetStaticMapRequest$;
|
|
202
|
-
const GetStaticMapResponse$ = [3, n0, _GSMRe,
|
|
203
|
-
0,
|
|
204
|
-
[_PB, _B, _CT, _CCa, _ET],
|
|
205
|
-
[[0, { [_hH]: _xagpb }], [21, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _ET }]], 1
|
|
206
|
-
];
|
|
207
|
-
exports.GetStaticMapResponse$ = GetStaticMapResponse$;
|
|
208
|
-
const GetStyleDescriptorRequest$ = [3, n0, _GSDR,
|
|
209
|
-
0,
|
|
210
|
-
[_S, _CS, _PV, _T, _CD, _Tr, _TM, _Bu, _K],
|
|
211
|
-
[[0, 1], [0, { [_hQ]: _cs }], [() => CountryCode, { [_hQ]: _pv }], [0, { [_hQ]: _t }], [0, { [_hQ]: _cd }], [0, { [_hQ]: _tr }], [64 | 0, { [_hQ]: _tm }], [0, { [_hQ]: _b }], [() => ApiKey, { [_hQ]: _k }]], 1
|
|
212
|
-
];
|
|
213
|
-
exports.GetStyleDescriptorRequest$ = GetStyleDescriptorRequest$;
|
|
214
|
-
const GetStyleDescriptorResponse$ = [3, n0, _GSDRe,
|
|
215
|
-
0,
|
|
216
|
-
[_B, _CT, _CCa, _ET],
|
|
217
|
-
[[21, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _ET }]]
|
|
218
|
-
];
|
|
219
|
-
exports.GetStyleDescriptorResponse$ = GetStyleDescriptorResponse$;
|
|
220
|
-
const GetTileRequest$ = [3, n0, _GTR,
|
|
221
|
-
0,
|
|
222
|
-
[_Ti, _Z_, _X, _Y, _AF, _K],
|
|
223
|
-
[[0, 1], [() => SensitiveString, 1], [() => SensitiveString, 1], [() => SensitiveString, 1], [64 | 0, { [_hQ]: _af }], [() => ApiKey, { [_hQ]: _k }]], 4
|
|
224
|
-
];
|
|
225
|
-
exports.GetTileRequest$ = GetTileRequest$;
|
|
226
|
-
const GetTileResponse$ = [3, n0, _GTRe,
|
|
227
|
-
0,
|
|
228
|
-
[_PB, _B, _CT, _CCa, _ET],
|
|
229
|
-
[[0, { [_hH]: _xagpb }], [21, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _CC_ }], [0, { [_hH]: _ET }]], 1
|
|
230
|
-
];
|
|
231
|
-
exports.GetTileResponse$ = GetTileResponse$;
|
|
232
|
-
const ValidationExceptionField$ = [3, n0, _VEF,
|
|
233
|
-
0,
|
|
234
|
-
[_N, _M],
|
|
235
|
-
[[0, { [_jN]: _n }], [0, { [_jN]: _m }]], 2
|
|
236
|
-
];
|
|
237
|
-
exports.ValidationExceptionField$ = ValidationExceptionField$;
|
|
238
|
-
var TileAdditionalFeatureList = 64 | 0;
|
|
239
|
-
var TravelModeList = 64 | 0;
|
|
240
|
-
var ValidationExceptionFieldList = [1, n0, _VEFL,
|
|
241
|
-
0, [() => ValidationExceptionField$,
|
|
242
|
-
0]
|
|
243
|
-
];
|
|
244
|
-
exports.GetGlyphs$ = [9, n0, _GG,
|
|
245
|
-
{ [_ht]: ["GET", "/glyphs/{FontStack}/{FontUnicodeRange}", 200] }, () => GetGlyphsRequest$, () => GetGlyphsResponse$
|
|
246
|
-
];
|
|
247
|
-
exports.GetSprites$ = [9, n0, _GS,
|
|
248
|
-
{ [_ht]: ["GET", "/styles/{Style}/{ColorScheme}/{Variant}/sprites/{FileName}", 200] }, () => GetSpritesRequest$, () => GetSpritesResponse$
|
|
249
|
-
];
|
|
250
|
-
exports.GetStaticMap$ = [9, n0, _GSM,
|
|
251
|
-
{ [_ht]: ["GET", "/static/{FileName}", 200] }, () => GetStaticMapRequest$, () => GetStaticMapResponse$
|
|
252
|
-
];
|
|
253
|
-
exports.GetStyleDescriptor$ = [9, n0, _GSD,
|
|
254
|
-
{ [_ht]: ["GET", "/styles/{Style}/descriptor", 200] }, () => GetStyleDescriptorRequest$, () => GetStyleDescriptorResponse$
|
|
255
|
-
];
|
|
256
|
-
exports.GetTile$ = [9, n0, _GT,
|
|
257
|
-
{ [_ht]: ["GET", "/tiles/{Tileset}/{Z}/{X}/{Y}", 200] }, () => GetTileRequest$, () => GetTileResponse$
|
|
258
|
-
];
|