@aws-sdk/client-location 3.312.0 → 3.315.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/protocols/Aws_restJson1.js +850 -1453
- package/dist-es/protocols/Aws_restJson1.js +780 -1383
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { LocationServiceException as __BaseException } from "../models/LocationServiceException";
|
|
4
4
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_AssociateTrackerConsumerCommand = async (input, context) => {
|
|
@@ -11,9 +11,9 @@ export const se_AssociateTrackerConsumerCommand = async (input, context) => {
|
|
|
11
11
|
"/tracking/v0/trackers/{TrackerName}/consumers";
|
|
12
12
|
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify({
|
|
15
|
-
|
|
16
|
-
});
|
|
14
|
+
body = JSON.stringify(take(input, {
|
|
15
|
+
ConsumerArn: [],
|
|
16
|
+
}));
|
|
17
17
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
18
18
|
if (context.disableHostPrefix !== true) {
|
|
19
19
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
@@ -40,9 +40,9 @@ export const se_BatchDeleteDevicePositionHistoryCommand = async (input, context)
|
|
|
40
40
|
"/tracking/v0/trackers/{TrackerName}/delete-positions";
|
|
41
41
|
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
42
42
|
let body;
|
|
43
|
-
body = JSON.stringify({
|
|
44
|
-
|
|
45
|
-
});
|
|
43
|
+
body = JSON.stringify(take(input, {
|
|
44
|
+
DeviceIds: (_) => _json(_),
|
|
45
|
+
}));
|
|
46
46
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
47
47
|
if (context.disableHostPrefix !== true) {
|
|
48
48
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
@@ -69,9 +69,9 @@ export const se_BatchDeleteGeofenceCommand = async (input, context) => {
|
|
|
69
69
|
"/geofencing/v0/collections/{CollectionName}/delete-geofences";
|
|
70
70
|
resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
71
71
|
let body;
|
|
72
|
-
body = JSON.stringify({
|
|
73
|
-
|
|
74
|
-
});
|
|
72
|
+
body = JSON.stringify(take(input, {
|
|
73
|
+
GeofenceIds: (_) => _json(_),
|
|
74
|
+
}));
|
|
75
75
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
76
76
|
if (context.disableHostPrefix !== true) {
|
|
77
77
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
@@ -98,11 +98,9 @@ export const se_BatchEvaluateGeofencesCommand = async (input, context) => {
|
|
|
98
98
|
"/geofencing/v0/collections/{CollectionName}/positions";
|
|
99
99
|
resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
100
100
|
let body;
|
|
101
|
-
body = JSON.stringify({
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}),
|
|
105
|
-
});
|
|
101
|
+
body = JSON.stringify(take(input, {
|
|
102
|
+
DevicePositionUpdates: (_) => se_DevicePositionUpdateList(_, context),
|
|
103
|
+
}));
|
|
106
104
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
107
105
|
if (context.disableHostPrefix !== true) {
|
|
108
106
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
@@ -129,9 +127,9 @@ export const se_BatchGetDevicePositionCommand = async (input, context) => {
|
|
|
129
127
|
"/tracking/v0/trackers/{TrackerName}/get-positions";
|
|
130
128
|
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
131
129
|
let body;
|
|
132
|
-
body = JSON.stringify({
|
|
133
|
-
|
|
134
|
-
});
|
|
130
|
+
body = JSON.stringify(take(input, {
|
|
131
|
+
DeviceIds: (_) => _json(_),
|
|
132
|
+
}));
|
|
135
133
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
136
134
|
if (context.disableHostPrefix !== true) {
|
|
137
135
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
@@ -158,9 +156,9 @@ export const se_BatchPutGeofenceCommand = async (input, context) => {
|
|
|
158
156
|
"/geofencing/v0/collections/{CollectionName}/put-geofences";
|
|
159
157
|
resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
160
158
|
let body;
|
|
161
|
-
body = JSON.stringify({
|
|
162
|
-
|
|
163
|
-
});
|
|
159
|
+
body = JSON.stringify(take(input, {
|
|
160
|
+
Entries: (_) => se_BatchPutGeofenceRequestEntryList(_, context),
|
|
161
|
+
}));
|
|
164
162
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
165
163
|
if (context.disableHostPrefix !== true) {
|
|
166
164
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
@@ -187,9 +185,9 @@ export const se_BatchUpdateDevicePositionCommand = async (input, context) => {
|
|
|
187
185
|
"/tracking/v0/trackers/{TrackerName}/positions";
|
|
188
186
|
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
189
187
|
let body;
|
|
190
|
-
body = JSON.stringify({
|
|
191
|
-
|
|
192
|
-
});
|
|
188
|
+
body = JSON.stringify(take(input, {
|
|
189
|
+
Updates: (_) => se_DevicePositionUpdateList(_, context),
|
|
190
|
+
}));
|
|
193
191
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
194
192
|
if (context.disableHostPrefix !== true) {
|
|
195
193
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
@@ -216,24 +214,18 @@ export const se_CalculateRouteCommand = async (input, context) => {
|
|
|
216
214
|
"/routes/v0/calculators/{CalculatorName}/calculate/route";
|
|
217
215
|
resolvedPath = __resolvedPath(resolvedPath, input, "CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
218
216
|
let body;
|
|
219
|
-
body = JSON.stringify({
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
TruckModeOptions: se_CalculateRouteTruckModeOptions(input.TruckModeOptions, context),
|
|
232
|
-
}),
|
|
233
|
-
...(input.WaypointPositions != null && {
|
|
234
|
-
WaypointPositions: se_WaypointPositionList(input.WaypointPositions, context),
|
|
235
|
-
}),
|
|
236
|
-
});
|
|
217
|
+
body = JSON.stringify(take(input, {
|
|
218
|
+
CarModeOptions: (_) => _json(_),
|
|
219
|
+
DepartNow: [],
|
|
220
|
+
DeparturePosition: (_) => se_Position(_, context),
|
|
221
|
+
DepartureTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
222
|
+
DestinationPosition: (_) => se_Position(_, context),
|
|
223
|
+
DistanceUnit: [],
|
|
224
|
+
IncludeLegGeometry: [],
|
|
225
|
+
TravelMode: [],
|
|
226
|
+
TruckModeOptions: (_) => se_CalculateRouteTruckModeOptions(_, context),
|
|
227
|
+
WaypointPositions: (_) => se_WaypointPositionList(_, context),
|
|
228
|
+
}));
|
|
237
229
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
238
230
|
if (context.disableHostPrefix !== true) {
|
|
239
231
|
resolvedHostname = "routes." + resolvedHostname;
|
|
@@ -260,22 +252,16 @@ export const se_CalculateRouteMatrixCommand = async (input, context) => {
|
|
|
260
252
|
"/routes/v0/calculators/{CalculatorName}/calculate/route-matrix";
|
|
261
253
|
resolvedPath = __resolvedPath(resolvedPath, input, "CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
262
254
|
let body;
|
|
263
|
-
body = JSON.stringify({
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
...(input.DistanceUnit != null && { DistanceUnit: input.DistanceUnit }),
|
|
274
|
-
...(input.TravelMode != null && { TravelMode: input.TravelMode }),
|
|
275
|
-
...(input.TruckModeOptions != null && {
|
|
276
|
-
TruckModeOptions: se_CalculateRouteTruckModeOptions(input.TruckModeOptions, context),
|
|
277
|
-
}),
|
|
278
|
-
});
|
|
255
|
+
body = JSON.stringify(take(input, {
|
|
256
|
+
CarModeOptions: (_) => _json(_),
|
|
257
|
+
DepartNow: [],
|
|
258
|
+
DeparturePositions: (_) => se_PositionList(_, context),
|
|
259
|
+
DepartureTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
260
|
+
DestinationPositions: (_) => se_PositionList(_, context),
|
|
261
|
+
DistanceUnit: [],
|
|
262
|
+
TravelMode: [],
|
|
263
|
+
TruckModeOptions: (_) => se_CalculateRouteTruckModeOptions(_, context),
|
|
264
|
+
}));
|
|
279
265
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
280
266
|
if (context.disableHostPrefix !== true) {
|
|
281
267
|
resolvedHostname = "routes." + resolvedHostname;
|
|
@@ -300,14 +286,14 @@ export const se_CreateGeofenceCollectionCommand = async (input, context) => {
|
|
|
300
286
|
};
|
|
301
287
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/geofencing/v0/collections";
|
|
302
288
|
let body;
|
|
303
|
-
body = JSON.stringify({
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
});
|
|
289
|
+
body = JSON.stringify(take(input, {
|
|
290
|
+
CollectionName: [],
|
|
291
|
+
Description: [],
|
|
292
|
+
KmsKeyId: [],
|
|
293
|
+
PricingPlan: [],
|
|
294
|
+
PricingPlanDataSource: [],
|
|
295
|
+
Tags: (_) => _json(_),
|
|
296
|
+
}));
|
|
311
297
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
312
298
|
if (context.disableHostPrefix !== true) {
|
|
313
299
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
@@ -332,14 +318,14 @@ export const se_CreateKeyCommand = async (input, context) => {
|
|
|
332
318
|
};
|
|
333
319
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata/v0/keys";
|
|
334
320
|
let body;
|
|
335
|
-
body = JSON.stringify({
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
});
|
|
321
|
+
body = JSON.stringify(take(input, {
|
|
322
|
+
Description: [],
|
|
323
|
+
ExpireTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
324
|
+
KeyName: [],
|
|
325
|
+
NoExpiry: [],
|
|
326
|
+
Restrictions: (_) => _json(_),
|
|
327
|
+
Tags: (_) => _json(_),
|
|
328
|
+
}));
|
|
343
329
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
344
330
|
if (context.disableHostPrefix !== true) {
|
|
345
331
|
resolvedHostname = "metadata." + resolvedHostname;
|
|
@@ -364,13 +350,13 @@ export const se_CreateMapCommand = async (input, context) => {
|
|
|
364
350
|
};
|
|
365
351
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps";
|
|
366
352
|
let body;
|
|
367
|
-
body = JSON.stringify({
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
});
|
|
353
|
+
body = JSON.stringify(take(input, {
|
|
354
|
+
Configuration: (_) => _json(_),
|
|
355
|
+
Description: [],
|
|
356
|
+
MapName: [],
|
|
357
|
+
PricingPlan: [],
|
|
358
|
+
Tags: (_) => _json(_),
|
|
359
|
+
}));
|
|
374
360
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
375
361
|
if (context.disableHostPrefix !== true) {
|
|
376
362
|
resolvedHostname = "maps." + resolvedHostname;
|
|
@@ -395,16 +381,14 @@ export const se_CreatePlaceIndexCommand = async (input, context) => {
|
|
|
395
381
|
};
|
|
396
382
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/indexes";
|
|
397
383
|
let body;
|
|
398
|
-
body = JSON.stringify({
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
407
|
-
});
|
|
384
|
+
body = JSON.stringify(take(input, {
|
|
385
|
+
DataSource: [],
|
|
386
|
+
DataSourceConfiguration: (_) => _json(_),
|
|
387
|
+
Description: [],
|
|
388
|
+
IndexName: [],
|
|
389
|
+
PricingPlan: [],
|
|
390
|
+
Tags: (_) => _json(_),
|
|
391
|
+
}));
|
|
408
392
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
409
393
|
if (context.disableHostPrefix !== true) {
|
|
410
394
|
resolvedHostname = "places." + resolvedHostname;
|
|
@@ -429,13 +413,13 @@ export const se_CreateRouteCalculatorCommand = async (input, context) => {
|
|
|
429
413
|
};
|
|
430
414
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/calculators";
|
|
431
415
|
let body;
|
|
432
|
-
body = JSON.stringify({
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
});
|
|
416
|
+
body = JSON.stringify(take(input, {
|
|
417
|
+
CalculatorName: [],
|
|
418
|
+
DataSource: [],
|
|
419
|
+
Description: [],
|
|
420
|
+
PricingPlan: [],
|
|
421
|
+
Tags: (_) => _json(_),
|
|
422
|
+
}));
|
|
439
423
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
440
424
|
if (context.disableHostPrefix !== true) {
|
|
441
425
|
resolvedHostname = "routes." + resolvedHostname;
|
|
@@ -460,15 +444,15 @@ export const se_CreateTrackerCommand = async (input, context) => {
|
|
|
460
444
|
};
|
|
461
445
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/trackers";
|
|
462
446
|
let body;
|
|
463
|
-
body = JSON.stringify({
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
});
|
|
447
|
+
body = JSON.stringify(take(input, {
|
|
448
|
+
Description: [],
|
|
449
|
+
KmsKeyId: [],
|
|
450
|
+
PositionFiltering: [],
|
|
451
|
+
PricingPlan: [],
|
|
452
|
+
PricingPlanDataSource: [],
|
|
453
|
+
Tags: (_) => _json(_),
|
|
454
|
+
TrackerName: [],
|
|
455
|
+
}));
|
|
472
456
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
473
457
|
if (context.disableHostPrefix !== true) {
|
|
474
458
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
@@ -824,16 +808,12 @@ export const se_GetDevicePositionHistoryCommand = async (input, context) => {
|
|
|
824
808
|
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
825
809
|
resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", () => input.DeviceId, "{DeviceId}", false);
|
|
826
810
|
let body;
|
|
827
|
-
body = JSON.stringify({
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
...(input.StartTimeInclusive != null && {
|
|
834
|
-
StartTimeInclusive: input.StartTimeInclusive.toISOString().split(".")[0] + "Z",
|
|
835
|
-
}),
|
|
836
|
-
});
|
|
811
|
+
body = JSON.stringify(take(input, {
|
|
812
|
+
EndTimeExclusive: (_) => _.toISOString().split(".")[0] + "Z",
|
|
813
|
+
MaxResults: [],
|
|
814
|
+
NextToken: [],
|
|
815
|
+
StartTimeInclusive: (_) => _.toISOString().split(".")[0] + "Z",
|
|
816
|
+
}));
|
|
837
817
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
838
818
|
if (context.disableHostPrefix !== true) {
|
|
839
819
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
@@ -1030,10 +1010,10 @@ export const se_ListDevicePositionsCommand = async (input, context) => {
|
|
|
1030
1010
|
"/tracking/v0/trackers/{TrackerName}/list-positions";
|
|
1031
1011
|
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
1032
1012
|
let body;
|
|
1033
|
-
body = JSON.stringify({
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
});
|
|
1013
|
+
body = JSON.stringify(take(input, {
|
|
1014
|
+
MaxResults: [],
|
|
1015
|
+
NextToken: [],
|
|
1016
|
+
}));
|
|
1037
1017
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1038
1018
|
if (context.disableHostPrefix !== true) {
|
|
1039
1019
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
@@ -1058,10 +1038,10 @@ export const se_ListGeofenceCollectionsCommand = async (input, context) => {
|
|
|
1058
1038
|
};
|
|
1059
1039
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/geofencing/v0/list-collections";
|
|
1060
1040
|
let body;
|
|
1061
|
-
body = JSON.stringify({
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
});
|
|
1041
|
+
body = JSON.stringify(take(input, {
|
|
1042
|
+
MaxResults: [],
|
|
1043
|
+
NextToken: [],
|
|
1044
|
+
}));
|
|
1065
1045
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1066
1046
|
if (context.disableHostPrefix !== true) {
|
|
1067
1047
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
@@ -1088,10 +1068,10 @@ export const se_ListGeofencesCommand = async (input, context) => {
|
|
|
1088
1068
|
"/geofencing/v0/collections/{CollectionName}/list-geofences";
|
|
1089
1069
|
resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
1090
1070
|
let body;
|
|
1091
|
-
body = JSON.stringify({
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
});
|
|
1071
|
+
body = JSON.stringify(take(input, {
|
|
1072
|
+
MaxResults: [],
|
|
1073
|
+
NextToken: [],
|
|
1074
|
+
}));
|
|
1095
1075
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1096
1076
|
if (context.disableHostPrefix !== true) {
|
|
1097
1077
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
@@ -1116,11 +1096,11 @@ export const se_ListKeysCommand = async (input, context) => {
|
|
|
1116
1096
|
};
|
|
1117
1097
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata/v0/list-keys";
|
|
1118
1098
|
let body;
|
|
1119
|
-
body = JSON.stringify({
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
});
|
|
1099
|
+
body = JSON.stringify(take(input, {
|
|
1100
|
+
Filter: (_) => _json(_),
|
|
1101
|
+
MaxResults: [],
|
|
1102
|
+
NextToken: [],
|
|
1103
|
+
}));
|
|
1124
1104
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1125
1105
|
if (context.disableHostPrefix !== true) {
|
|
1126
1106
|
resolvedHostname = "metadata." + resolvedHostname;
|
|
@@ -1145,10 +1125,10 @@ export const se_ListMapsCommand = async (input, context) => {
|
|
|
1145
1125
|
};
|
|
1146
1126
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/list-maps";
|
|
1147
1127
|
let body;
|
|
1148
|
-
body = JSON.stringify({
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
});
|
|
1128
|
+
body = JSON.stringify(take(input, {
|
|
1129
|
+
MaxResults: [],
|
|
1130
|
+
NextToken: [],
|
|
1131
|
+
}));
|
|
1152
1132
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1153
1133
|
if (context.disableHostPrefix !== true) {
|
|
1154
1134
|
resolvedHostname = "maps." + resolvedHostname;
|
|
@@ -1173,10 +1153,10 @@ export const se_ListPlaceIndexesCommand = async (input, context) => {
|
|
|
1173
1153
|
};
|
|
1174
1154
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/list-indexes";
|
|
1175
1155
|
let body;
|
|
1176
|
-
body = JSON.stringify({
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
});
|
|
1156
|
+
body = JSON.stringify(take(input, {
|
|
1157
|
+
MaxResults: [],
|
|
1158
|
+
NextToken: [],
|
|
1159
|
+
}));
|
|
1180
1160
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1181
1161
|
if (context.disableHostPrefix !== true) {
|
|
1182
1162
|
resolvedHostname = "places." + resolvedHostname;
|
|
@@ -1201,10 +1181,10 @@ export const se_ListRouteCalculatorsCommand = async (input, context) => {
|
|
|
1201
1181
|
};
|
|
1202
1182
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/list-calculators";
|
|
1203
1183
|
let body;
|
|
1204
|
-
body = JSON.stringify({
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
});
|
|
1184
|
+
body = JSON.stringify(take(input, {
|
|
1185
|
+
MaxResults: [],
|
|
1186
|
+
NextToken: [],
|
|
1187
|
+
}));
|
|
1208
1188
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1209
1189
|
if (context.disableHostPrefix !== true) {
|
|
1210
1190
|
resolvedHostname = "routes." + resolvedHostname;
|
|
@@ -1254,10 +1234,10 @@ export const se_ListTrackerConsumersCommand = async (input, context) => {
|
|
|
1254
1234
|
"/tracking/v0/trackers/{TrackerName}/list-consumers";
|
|
1255
1235
|
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
1256
1236
|
let body;
|
|
1257
|
-
body = JSON.stringify({
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
});
|
|
1237
|
+
body = JSON.stringify(take(input, {
|
|
1238
|
+
MaxResults: [],
|
|
1239
|
+
NextToken: [],
|
|
1240
|
+
}));
|
|
1261
1241
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1262
1242
|
if (context.disableHostPrefix !== true) {
|
|
1263
1243
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
@@ -1282,10 +1262,10 @@ export const se_ListTrackersCommand = async (input, context) => {
|
|
|
1282
1262
|
};
|
|
1283
1263
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/list-trackers";
|
|
1284
1264
|
let body;
|
|
1285
|
-
body = JSON.stringify({
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
});
|
|
1265
|
+
body = JSON.stringify(take(input, {
|
|
1266
|
+
MaxResults: [],
|
|
1267
|
+
NextToken: [],
|
|
1268
|
+
}));
|
|
1289
1269
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1290
1270
|
if (context.disableHostPrefix !== true) {
|
|
1291
1271
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
@@ -1313,9 +1293,9 @@ export const se_PutGeofenceCommand = async (input, context) => {
|
|
|
1313
1293
|
resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
1314
1294
|
resolvedPath = __resolvedPath(resolvedPath, input, "GeofenceId", () => input.GeofenceId, "{GeofenceId}", false);
|
|
1315
1295
|
let body;
|
|
1316
|
-
body = JSON.stringify({
|
|
1317
|
-
|
|
1318
|
-
});
|
|
1296
|
+
body = JSON.stringify(take(input, {
|
|
1297
|
+
Geometry: (_) => se_GeofenceGeometry(_, context),
|
|
1298
|
+
}));
|
|
1319
1299
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1320
1300
|
if (context.disableHostPrefix !== true) {
|
|
1321
1301
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
@@ -1342,11 +1322,11 @@ export const se_SearchPlaceIndexForPositionCommand = async (input, context) => {
|
|
|
1342
1322
|
"/places/v0/indexes/{IndexName}/search/position";
|
|
1343
1323
|
resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1344
1324
|
let body;
|
|
1345
|
-
body = JSON.stringify({
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
});
|
|
1325
|
+
body = JSON.stringify(take(input, {
|
|
1326
|
+
Language: [],
|
|
1327
|
+
MaxResults: [],
|
|
1328
|
+
Position: (_) => se_Position(_, context),
|
|
1329
|
+
}));
|
|
1350
1330
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1351
1331
|
if (context.disableHostPrefix !== true) {
|
|
1352
1332
|
resolvedHostname = "places." + resolvedHostname;
|
|
@@ -1373,14 +1353,14 @@ export const se_SearchPlaceIndexForSuggestionsCommand = async (input, context) =
|
|
|
1373
1353
|
"/places/v0/indexes/{IndexName}/search/suggestions";
|
|
1374
1354
|
resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1375
1355
|
let body;
|
|
1376
|
-
body = JSON.stringify({
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
});
|
|
1356
|
+
body = JSON.stringify(take(input, {
|
|
1357
|
+
BiasPosition: (_) => se_Position(_, context),
|
|
1358
|
+
FilterBBox: (_) => se_BoundingBox(_, context),
|
|
1359
|
+
FilterCountries: (_) => _json(_),
|
|
1360
|
+
Language: [],
|
|
1361
|
+
MaxResults: [],
|
|
1362
|
+
Text: [],
|
|
1363
|
+
}));
|
|
1384
1364
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1385
1365
|
if (context.disableHostPrefix !== true) {
|
|
1386
1366
|
resolvedHostname = "places." + resolvedHostname;
|
|
@@ -1407,14 +1387,14 @@ export const se_SearchPlaceIndexForTextCommand = async (input, context) => {
|
|
|
1407
1387
|
"/places/v0/indexes/{IndexName}/search/text";
|
|
1408
1388
|
resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1409
1389
|
let body;
|
|
1410
|
-
body = JSON.stringify({
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
});
|
|
1390
|
+
body = JSON.stringify(take(input, {
|
|
1391
|
+
BiasPosition: (_) => se_Position(_, context),
|
|
1392
|
+
FilterBBox: (_) => se_BoundingBox(_, context),
|
|
1393
|
+
FilterCountries: (_) => _json(_),
|
|
1394
|
+
Language: [],
|
|
1395
|
+
MaxResults: [],
|
|
1396
|
+
Text: [],
|
|
1397
|
+
}));
|
|
1418
1398
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1419
1399
|
if (context.disableHostPrefix !== true) {
|
|
1420
1400
|
resolvedHostname = "places." + resolvedHostname;
|
|
@@ -1440,9 +1420,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
1440
1420
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
1441
1421
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
1442
1422
|
let body;
|
|
1443
|
-
body = JSON.stringify({
|
|
1444
|
-
|
|
1445
|
-
});
|
|
1423
|
+
body = JSON.stringify(take(input, {
|
|
1424
|
+
Tags: (_) => _json(_),
|
|
1425
|
+
}));
|
|
1446
1426
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1447
1427
|
if (context.disableHostPrefix !== true) {
|
|
1448
1428
|
resolvedHostname = "metadata." + resolvedHostname;
|
|
@@ -1499,11 +1479,11 @@ export const se_UpdateGeofenceCollectionCommand = async (input, context) => {
|
|
|
1499
1479
|
"/geofencing/v0/collections/{CollectionName}";
|
|
1500
1480
|
resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", () => input.CollectionName, "{CollectionName}", false);
|
|
1501
1481
|
let body;
|
|
1502
|
-
body = JSON.stringify({
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
});
|
|
1482
|
+
body = JSON.stringify(take(input, {
|
|
1483
|
+
Description: [],
|
|
1484
|
+
PricingPlan: [],
|
|
1485
|
+
PricingPlanDataSource: [],
|
|
1486
|
+
}));
|
|
1507
1487
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1508
1488
|
if (context.disableHostPrefix !== true) {
|
|
1509
1489
|
resolvedHostname = "geofencing." + resolvedHostname;
|
|
@@ -1529,13 +1509,13 @@ export const se_UpdateKeyCommand = async (input, context) => {
|
|
|
1529
1509
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/metadata/v0/keys/{KeyName}";
|
|
1530
1510
|
resolvedPath = __resolvedPath(resolvedPath, input, "KeyName", () => input.KeyName, "{KeyName}", false);
|
|
1531
1511
|
let body;
|
|
1532
|
-
body = JSON.stringify({
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
});
|
|
1512
|
+
body = JSON.stringify(take(input, {
|
|
1513
|
+
Description: [],
|
|
1514
|
+
ExpireTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
1515
|
+
ForceUpdate: [],
|
|
1516
|
+
NoExpiry: [],
|
|
1517
|
+
Restrictions: (_) => _json(_),
|
|
1518
|
+
}));
|
|
1539
1519
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1540
1520
|
if (context.disableHostPrefix !== true) {
|
|
1541
1521
|
resolvedHostname = "metadata." + resolvedHostname;
|
|
@@ -1561,10 +1541,10 @@ export const se_UpdateMapCommand = async (input, context) => {
|
|
|
1561
1541
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps/{MapName}";
|
|
1562
1542
|
resolvedPath = __resolvedPath(resolvedPath, input, "MapName", () => input.MapName, "{MapName}", false);
|
|
1563
1543
|
let body;
|
|
1564
|
-
body = JSON.stringify({
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
});
|
|
1544
|
+
body = JSON.stringify(take(input, {
|
|
1545
|
+
Description: [],
|
|
1546
|
+
PricingPlan: [],
|
|
1547
|
+
}));
|
|
1568
1548
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1569
1549
|
if (context.disableHostPrefix !== true) {
|
|
1570
1550
|
resolvedHostname = "maps." + resolvedHostname;
|
|
@@ -1590,13 +1570,11 @@ export const se_UpdatePlaceIndexCommand = async (input, context) => {
|
|
|
1590
1570
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/indexes/{IndexName}";
|
|
1591
1571
|
resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", () => input.IndexName, "{IndexName}", false);
|
|
1592
1572
|
let body;
|
|
1593
|
-
body = JSON.stringify({
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
1599
|
-
});
|
|
1573
|
+
body = JSON.stringify(take(input, {
|
|
1574
|
+
DataSourceConfiguration: (_) => _json(_),
|
|
1575
|
+
Description: [],
|
|
1576
|
+
PricingPlan: [],
|
|
1577
|
+
}));
|
|
1600
1578
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1601
1579
|
if (context.disableHostPrefix !== true) {
|
|
1602
1580
|
resolvedHostname = "places." + resolvedHostname;
|
|
@@ -1622,10 +1600,10 @@ export const se_UpdateRouteCalculatorCommand = async (input, context) => {
|
|
|
1622
1600
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/calculators/{CalculatorName}";
|
|
1623
1601
|
resolvedPath = __resolvedPath(resolvedPath, input, "CalculatorName", () => input.CalculatorName, "{CalculatorName}", false);
|
|
1624
1602
|
let body;
|
|
1625
|
-
body = JSON.stringify({
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
});
|
|
1603
|
+
body = JSON.stringify(take(input, {
|
|
1604
|
+
Description: [],
|
|
1605
|
+
PricingPlan: [],
|
|
1606
|
+
}));
|
|
1629
1607
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1630
1608
|
if (context.disableHostPrefix !== true) {
|
|
1631
1609
|
resolvedHostname = "routes." + resolvedHostname;
|
|
@@ -1651,12 +1629,12 @@ export const se_UpdateTrackerCommand = async (input, context) => {
|
|
|
1651
1629
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/trackers/{TrackerName}";
|
|
1652
1630
|
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", () => input.TrackerName, "{TrackerName}", false);
|
|
1653
1631
|
let body;
|
|
1654
|
-
body = JSON.stringify({
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
});
|
|
1632
|
+
body = JSON.stringify(take(input, {
|
|
1633
|
+
Description: [],
|
|
1634
|
+
PositionFiltering: [],
|
|
1635
|
+
PricingPlan: [],
|
|
1636
|
+
PricingPlanDataSource: [],
|
|
1637
|
+
}));
|
|
1660
1638
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1661
1639
|
if (context.disableHostPrefix !== true) {
|
|
1662
1640
|
resolvedHostname = "tracking." + resolvedHostname;
|
|
@@ -1714,10 +1692,9 @@ const de_AssociateTrackerConsumerCommandError = async (output, context) => {
|
|
|
1714
1692
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1715
1693
|
default:
|
|
1716
1694
|
const parsedBody = parsedOutput.body;
|
|
1717
|
-
throwDefaultError({
|
|
1695
|
+
return throwDefaultError({
|
|
1718
1696
|
output,
|
|
1719
1697
|
parsedBody,
|
|
1720
|
-
exceptionCtor: __BaseException,
|
|
1721
1698
|
errorCode,
|
|
1722
1699
|
});
|
|
1723
1700
|
}
|
|
@@ -1730,9 +1707,10 @@ export const de_BatchDeleteDevicePositionHistoryCommand = async (output, context
|
|
|
1730
1707
|
$metadata: deserializeMetadata(output),
|
|
1731
1708
|
});
|
|
1732
1709
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
}
|
|
1710
|
+
const doc = take(data, {
|
|
1711
|
+
Errors: _json,
|
|
1712
|
+
});
|
|
1713
|
+
Object.assign(contents, doc);
|
|
1736
1714
|
return contents;
|
|
1737
1715
|
};
|
|
1738
1716
|
const de_BatchDeleteDevicePositionHistoryCommandError = async (output, context) => {
|
|
@@ -1759,10 +1737,9 @@ const de_BatchDeleteDevicePositionHistoryCommandError = async (output, context)
|
|
|
1759
1737
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1760
1738
|
default:
|
|
1761
1739
|
const parsedBody = parsedOutput.body;
|
|
1762
|
-
throwDefaultError({
|
|
1740
|
+
return throwDefaultError({
|
|
1763
1741
|
output,
|
|
1764
1742
|
parsedBody,
|
|
1765
|
-
exceptionCtor: __BaseException,
|
|
1766
1743
|
errorCode,
|
|
1767
1744
|
});
|
|
1768
1745
|
}
|
|
@@ -1775,9 +1752,10 @@ export const de_BatchDeleteGeofenceCommand = async (output, context) => {
|
|
|
1775
1752
|
$metadata: deserializeMetadata(output),
|
|
1776
1753
|
});
|
|
1777
1754
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
}
|
|
1755
|
+
const doc = take(data, {
|
|
1756
|
+
Errors: _json,
|
|
1757
|
+
});
|
|
1758
|
+
Object.assign(contents, doc);
|
|
1781
1759
|
return contents;
|
|
1782
1760
|
};
|
|
1783
1761
|
const de_BatchDeleteGeofenceCommandError = async (output, context) => {
|
|
@@ -1804,10 +1782,9 @@ const de_BatchDeleteGeofenceCommandError = async (output, context) => {
|
|
|
1804
1782
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1805
1783
|
default:
|
|
1806
1784
|
const parsedBody = parsedOutput.body;
|
|
1807
|
-
throwDefaultError({
|
|
1785
|
+
return throwDefaultError({
|
|
1808
1786
|
output,
|
|
1809
1787
|
parsedBody,
|
|
1810
|
-
exceptionCtor: __BaseException,
|
|
1811
1788
|
errorCode,
|
|
1812
1789
|
});
|
|
1813
1790
|
}
|
|
@@ -1820,9 +1797,10 @@ export const de_BatchEvaluateGeofencesCommand = async (output, context) => {
|
|
|
1820
1797
|
$metadata: deserializeMetadata(output),
|
|
1821
1798
|
});
|
|
1822
1799
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
}
|
|
1800
|
+
const doc = take(data, {
|
|
1801
|
+
Errors: (_) => de_BatchEvaluateGeofencesErrorList(_, context),
|
|
1802
|
+
});
|
|
1803
|
+
Object.assign(contents, doc);
|
|
1826
1804
|
return contents;
|
|
1827
1805
|
};
|
|
1828
1806
|
const de_BatchEvaluateGeofencesCommandError = async (output, context) => {
|
|
@@ -1849,10 +1827,9 @@ const de_BatchEvaluateGeofencesCommandError = async (output, context) => {
|
|
|
1849
1827
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1850
1828
|
default:
|
|
1851
1829
|
const parsedBody = parsedOutput.body;
|
|
1852
|
-
throwDefaultError({
|
|
1830
|
+
return throwDefaultError({
|
|
1853
1831
|
output,
|
|
1854
1832
|
parsedBody,
|
|
1855
|
-
exceptionCtor: __BaseException,
|
|
1856
1833
|
errorCode,
|
|
1857
1834
|
});
|
|
1858
1835
|
}
|
|
@@ -1865,12 +1842,11 @@ export const de_BatchGetDevicePositionCommand = async (output, context) => {
|
|
|
1865
1842
|
$metadata: deserializeMetadata(output),
|
|
1866
1843
|
});
|
|
1867
1844
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
}
|
|
1845
|
+
const doc = take(data, {
|
|
1846
|
+
DevicePositions: (_) => de_DevicePositionList(_, context),
|
|
1847
|
+
Errors: _json,
|
|
1848
|
+
});
|
|
1849
|
+
Object.assign(contents, doc);
|
|
1874
1850
|
return contents;
|
|
1875
1851
|
};
|
|
1876
1852
|
const de_BatchGetDevicePositionCommandError = async (output, context) => {
|
|
@@ -1897,10 +1873,9 @@ const de_BatchGetDevicePositionCommandError = async (output, context) => {
|
|
|
1897
1873
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1898
1874
|
default:
|
|
1899
1875
|
const parsedBody = parsedOutput.body;
|
|
1900
|
-
throwDefaultError({
|
|
1876
|
+
return throwDefaultError({
|
|
1901
1877
|
output,
|
|
1902
1878
|
parsedBody,
|
|
1903
|
-
exceptionCtor: __BaseException,
|
|
1904
1879
|
errorCode,
|
|
1905
1880
|
});
|
|
1906
1881
|
}
|
|
@@ -1913,12 +1888,11 @@ export const de_BatchPutGeofenceCommand = async (output, context) => {
|
|
|
1913
1888
|
$metadata: deserializeMetadata(output),
|
|
1914
1889
|
});
|
|
1915
1890
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
}
|
|
1891
|
+
const doc = take(data, {
|
|
1892
|
+
Errors: _json,
|
|
1893
|
+
Successes: (_) => de_BatchPutGeofenceSuccessList(_, context),
|
|
1894
|
+
});
|
|
1895
|
+
Object.assign(contents, doc);
|
|
1922
1896
|
return contents;
|
|
1923
1897
|
};
|
|
1924
1898
|
const de_BatchPutGeofenceCommandError = async (output, context) => {
|
|
@@ -1945,10 +1919,9 @@ const de_BatchPutGeofenceCommandError = async (output, context) => {
|
|
|
1945
1919
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1946
1920
|
default:
|
|
1947
1921
|
const parsedBody = parsedOutput.body;
|
|
1948
|
-
throwDefaultError({
|
|
1922
|
+
return throwDefaultError({
|
|
1949
1923
|
output,
|
|
1950
1924
|
parsedBody,
|
|
1951
|
-
exceptionCtor: __BaseException,
|
|
1952
1925
|
errorCode,
|
|
1953
1926
|
});
|
|
1954
1927
|
}
|
|
@@ -1961,9 +1934,10 @@ export const de_BatchUpdateDevicePositionCommand = async (output, context) => {
|
|
|
1961
1934
|
$metadata: deserializeMetadata(output),
|
|
1962
1935
|
});
|
|
1963
1936
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
}
|
|
1937
|
+
const doc = take(data, {
|
|
1938
|
+
Errors: (_) => de_BatchUpdateDevicePositionErrorList(_, context),
|
|
1939
|
+
});
|
|
1940
|
+
Object.assign(contents, doc);
|
|
1967
1941
|
return contents;
|
|
1968
1942
|
};
|
|
1969
1943
|
const de_BatchUpdateDevicePositionCommandError = async (output, context) => {
|
|
@@ -1990,10 +1964,9 @@ const de_BatchUpdateDevicePositionCommandError = async (output, context) => {
|
|
|
1990
1964
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1991
1965
|
default:
|
|
1992
1966
|
const parsedBody = parsedOutput.body;
|
|
1993
|
-
throwDefaultError({
|
|
1967
|
+
return throwDefaultError({
|
|
1994
1968
|
output,
|
|
1995
1969
|
parsedBody,
|
|
1996
|
-
exceptionCtor: __BaseException,
|
|
1997
1970
|
errorCode,
|
|
1998
1971
|
});
|
|
1999
1972
|
}
|
|
@@ -2006,12 +1979,11 @@ export const de_CalculateRouteCommand = async (output, context) => {
|
|
|
2006
1979
|
$metadata: deserializeMetadata(output),
|
|
2007
1980
|
});
|
|
2008
1981
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
}
|
|
1982
|
+
const doc = take(data, {
|
|
1983
|
+
Legs: (_) => de_LegList(_, context),
|
|
1984
|
+
Summary: (_) => de_CalculateRouteSummary(_, context),
|
|
1985
|
+
});
|
|
1986
|
+
Object.assign(contents, doc);
|
|
2015
1987
|
return contents;
|
|
2016
1988
|
};
|
|
2017
1989
|
const de_CalculateRouteCommandError = async (output, context) => {
|
|
@@ -2038,10 +2010,9 @@ const de_CalculateRouteCommandError = async (output, context) => {
|
|
|
2038
2010
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2039
2011
|
default:
|
|
2040
2012
|
const parsedBody = parsedOutput.body;
|
|
2041
|
-
throwDefaultError({
|
|
2013
|
+
return throwDefaultError({
|
|
2042
2014
|
output,
|
|
2043
2015
|
parsedBody,
|
|
2044
|
-
exceptionCtor: __BaseException,
|
|
2045
2016
|
errorCode,
|
|
2046
2017
|
});
|
|
2047
2018
|
}
|
|
@@ -2054,18 +2025,13 @@ export const de_CalculateRouteMatrixCommand = async (output, context) => {
|
|
|
2054
2025
|
$metadata: deserializeMetadata(output),
|
|
2055
2026
|
});
|
|
2056
2027
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
}
|
|
2063
|
-
|
|
2064
|
-
contents.SnappedDestinationPositions = de_PositionList(data.SnappedDestinationPositions, context);
|
|
2065
|
-
}
|
|
2066
|
-
if (data.Summary != null) {
|
|
2067
|
-
contents.Summary = de_CalculateRouteMatrixSummary(data.Summary, context);
|
|
2068
|
-
}
|
|
2028
|
+
const doc = take(data, {
|
|
2029
|
+
RouteMatrix: (_) => de_RouteMatrix(_, context),
|
|
2030
|
+
SnappedDeparturePositions: (_) => de_PositionList(_, context),
|
|
2031
|
+
SnappedDestinationPositions: (_) => de_PositionList(_, context),
|
|
2032
|
+
Summary: _json,
|
|
2033
|
+
});
|
|
2034
|
+
Object.assign(contents, doc);
|
|
2069
2035
|
return contents;
|
|
2070
2036
|
};
|
|
2071
2037
|
const de_CalculateRouteMatrixCommandError = async (output, context) => {
|
|
@@ -2092,10 +2058,9 @@ const de_CalculateRouteMatrixCommandError = async (output, context) => {
|
|
|
2092
2058
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2093
2059
|
default:
|
|
2094
2060
|
const parsedBody = parsedOutput.body;
|
|
2095
|
-
throwDefaultError({
|
|
2061
|
+
return throwDefaultError({
|
|
2096
2062
|
output,
|
|
2097
2063
|
parsedBody,
|
|
2098
|
-
exceptionCtor: __BaseException,
|
|
2099
2064
|
errorCode,
|
|
2100
2065
|
});
|
|
2101
2066
|
}
|
|
@@ -2108,15 +2073,12 @@ export const de_CreateGeofenceCollectionCommand = async (output, context) => {
|
|
|
2108
2073
|
$metadata: deserializeMetadata(output),
|
|
2109
2074
|
});
|
|
2110
2075
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
if (data.CreateTime != null) {
|
|
2118
|
-
contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.CreateTime));
|
|
2119
|
-
}
|
|
2076
|
+
const doc = take(data, {
|
|
2077
|
+
CollectionArn: __expectString,
|
|
2078
|
+
CollectionName: __expectString,
|
|
2079
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2080
|
+
});
|
|
2081
|
+
Object.assign(contents, doc);
|
|
2120
2082
|
return contents;
|
|
2121
2083
|
};
|
|
2122
2084
|
const de_CreateGeofenceCollectionCommandError = async (output, context) => {
|
|
@@ -2146,10 +2108,9 @@ const de_CreateGeofenceCollectionCommandError = async (output, context) => {
|
|
|
2146
2108
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2147
2109
|
default:
|
|
2148
2110
|
const parsedBody = parsedOutput.body;
|
|
2149
|
-
throwDefaultError({
|
|
2111
|
+
return throwDefaultError({
|
|
2150
2112
|
output,
|
|
2151
2113
|
parsedBody,
|
|
2152
|
-
exceptionCtor: __BaseException,
|
|
2153
2114
|
errorCode,
|
|
2154
2115
|
});
|
|
2155
2116
|
}
|
|
@@ -2162,18 +2123,13 @@ export const de_CreateKeyCommand = async (output, context) => {
|
|
|
2162
2123
|
$metadata: deserializeMetadata(output),
|
|
2163
2124
|
});
|
|
2164
2125
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
}
|
|
2171
|
-
|
|
2172
|
-
contents.KeyArn = __expectString(data.KeyArn);
|
|
2173
|
-
}
|
|
2174
|
-
if (data.KeyName != null) {
|
|
2175
|
-
contents.KeyName = __expectString(data.KeyName);
|
|
2176
|
-
}
|
|
2126
|
+
const doc = take(data, {
|
|
2127
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2128
|
+
Key: __expectString,
|
|
2129
|
+
KeyArn: __expectString,
|
|
2130
|
+
KeyName: __expectString,
|
|
2131
|
+
});
|
|
2132
|
+
Object.assign(contents, doc);
|
|
2177
2133
|
return contents;
|
|
2178
2134
|
};
|
|
2179
2135
|
const de_CreateKeyCommandError = async (output, context) => {
|
|
@@ -2203,10 +2159,9 @@ const de_CreateKeyCommandError = async (output, context) => {
|
|
|
2203
2159
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2204
2160
|
default:
|
|
2205
2161
|
const parsedBody = parsedOutput.body;
|
|
2206
|
-
throwDefaultError({
|
|
2162
|
+
return throwDefaultError({
|
|
2207
2163
|
output,
|
|
2208
2164
|
parsedBody,
|
|
2209
|
-
exceptionCtor: __BaseException,
|
|
2210
2165
|
errorCode,
|
|
2211
2166
|
});
|
|
2212
2167
|
}
|
|
@@ -2219,15 +2174,12 @@ export const de_CreateMapCommand = async (output, context) => {
|
|
|
2219
2174
|
$metadata: deserializeMetadata(output),
|
|
2220
2175
|
});
|
|
2221
2176
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
if (data.MapName != null) {
|
|
2229
|
-
contents.MapName = __expectString(data.MapName);
|
|
2230
|
-
}
|
|
2177
|
+
const doc = take(data, {
|
|
2178
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2179
|
+
MapArn: __expectString,
|
|
2180
|
+
MapName: __expectString,
|
|
2181
|
+
});
|
|
2182
|
+
Object.assign(contents, doc);
|
|
2231
2183
|
return contents;
|
|
2232
2184
|
};
|
|
2233
2185
|
const de_CreateMapCommandError = async (output, context) => {
|
|
@@ -2257,10 +2209,9 @@ const de_CreateMapCommandError = async (output, context) => {
|
|
|
2257
2209
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2258
2210
|
default:
|
|
2259
2211
|
const parsedBody = parsedOutput.body;
|
|
2260
|
-
throwDefaultError({
|
|
2212
|
+
return throwDefaultError({
|
|
2261
2213
|
output,
|
|
2262
2214
|
parsedBody,
|
|
2263
|
-
exceptionCtor: __BaseException,
|
|
2264
2215
|
errorCode,
|
|
2265
2216
|
});
|
|
2266
2217
|
}
|
|
@@ -2273,15 +2224,12 @@ export const de_CreatePlaceIndexCommand = async (output, context) => {
|
|
|
2273
2224
|
$metadata: deserializeMetadata(output),
|
|
2274
2225
|
});
|
|
2275
2226
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
if (data.IndexName != null) {
|
|
2283
|
-
contents.IndexName = __expectString(data.IndexName);
|
|
2284
|
-
}
|
|
2227
|
+
const doc = take(data, {
|
|
2228
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2229
|
+
IndexArn: __expectString,
|
|
2230
|
+
IndexName: __expectString,
|
|
2231
|
+
});
|
|
2232
|
+
Object.assign(contents, doc);
|
|
2285
2233
|
return contents;
|
|
2286
2234
|
};
|
|
2287
2235
|
const de_CreatePlaceIndexCommandError = async (output, context) => {
|
|
@@ -2311,10 +2259,9 @@ const de_CreatePlaceIndexCommandError = async (output, context) => {
|
|
|
2311
2259
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2312
2260
|
default:
|
|
2313
2261
|
const parsedBody = parsedOutput.body;
|
|
2314
|
-
throwDefaultError({
|
|
2262
|
+
return throwDefaultError({
|
|
2315
2263
|
output,
|
|
2316
2264
|
parsedBody,
|
|
2317
|
-
exceptionCtor: __BaseException,
|
|
2318
2265
|
errorCode,
|
|
2319
2266
|
});
|
|
2320
2267
|
}
|
|
@@ -2327,15 +2274,12 @@ export const de_CreateRouteCalculatorCommand = async (output, context) => {
|
|
|
2327
2274
|
$metadata: deserializeMetadata(output),
|
|
2328
2275
|
});
|
|
2329
2276
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
if (data.CreateTime != null) {
|
|
2337
|
-
contents.CreateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.CreateTime));
|
|
2338
|
-
}
|
|
2277
|
+
const doc = take(data, {
|
|
2278
|
+
CalculatorArn: __expectString,
|
|
2279
|
+
CalculatorName: __expectString,
|
|
2280
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2281
|
+
});
|
|
2282
|
+
Object.assign(contents, doc);
|
|
2339
2283
|
return contents;
|
|
2340
2284
|
};
|
|
2341
2285
|
const de_CreateRouteCalculatorCommandError = async (output, context) => {
|
|
@@ -2365,10 +2309,9 @@ const de_CreateRouteCalculatorCommandError = async (output, context) => {
|
|
|
2365
2309
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2366
2310
|
default:
|
|
2367
2311
|
const parsedBody = parsedOutput.body;
|
|
2368
|
-
throwDefaultError({
|
|
2312
|
+
return throwDefaultError({
|
|
2369
2313
|
output,
|
|
2370
2314
|
parsedBody,
|
|
2371
|
-
exceptionCtor: __BaseException,
|
|
2372
2315
|
errorCode,
|
|
2373
2316
|
});
|
|
2374
2317
|
}
|
|
@@ -2381,15 +2324,12 @@ export const de_CreateTrackerCommand = async (output, context) => {
|
|
|
2381
2324
|
$metadata: deserializeMetadata(output),
|
|
2382
2325
|
});
|
|
2383
2326
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
if (data.TrackerName != null) {
|
|
2391
|
-
contents.TrackerName = __expectString(data.TrackerName);
|
|
2392
|
-
}
|
|
2327
|
+
const doc = take(data, {
|
|
2328
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2329
|
+
TrackerArn: __expectString,
|
|
2330
|
+
TrackerName: __expectString,
|
|
2331
|
+
});
|
|
2332
|
+
Object.assign(contents, doc);
|
|
2393
2333
|
return contents;
|
|
2394
2334
|
};
|
|
2395
2335
|
const de_CreateTrackerCommandError = async (output, context) => {
|
|
@@ -2416,10 +2356,9 @@ const de_CreateTrackerCommandError = async (output, context) => {
|
|
|
2416
2356
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2417
2357
|
default:
|
|
2418
2358
|
const parsedBody = parsedOutput.body;
|
|
2419
|
-
throwDefaultError({
|
|
2359
|
+
return throwDefaultError({
|
|
2420
2360
|
output,
|
|
2421
2361
|
parsedBody,
|
|
2422
|
-
exceptionCtor: __BaseException,
|
|
2423
2362
|
errorCode,
|
|
2424
2363
|
});
|
|
2425
2364
|
}
|
|
@@ -2458,10 +2397,9 @@ const de_DeleteGeofenceCollectionCommandError = async (output, context) => {
|
|
|
2458
2397
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2459
2398
|
default:
|
|
2460
2399
|
const parsedBody = parsedOutput.body;
|
|
2461
|
-
throwDefaultError({
|
|
2400
|
+
return throwDefaultError({
|
|
2462
2401
|
output,
|
|
2463
2402
|
parsedBody,
|
|
2464
|
-
exceptionCtor: __BaseException,
|
|
2465
2403
|
errorCode,
|
|
2466
2404
|
});
|
|
2467
2405
|
}
|
|
@@ -2500,10 +2438,9 @@ const de_DeleteKeyCommandError = async (output, context) => {
|
|
|
2500
2438
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2501
2439
|
default:
|
|
2502
2440
|
const parsedBody = parsedOutput.body;
|
|
2503
|
-
throwDefaultError({
|
|
2441
|
+
return throwDefaultError({
|
|
2504
2442
|
output,
|
|
2505
2443
|
parsedBody,
|
|
2506
|
-
exceptionCtor: __BaseException,
|
|
2507
2444
|
errorCode,
|
|
2508
2445
|
});
|
|
2509
2446
|
}
|
|
@@ -2542,10 +2479,9 @@ const de_DeleteMapCommandError = async (output, context) => {
|
|
|
2542
2479
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2543
2480
|
default:
|
|
2544
2481
|
const parsedBody = parsedOutput.body;
|
|
2545
|
-
throwDefaultError({
|
|
2482
|
+
return throwDefaultError({
|
|
2546
2483
|
output,
|
|
2547
2484
|
parsedBody,
|
|
2548
|
-
exceptionCtor: __BaseException,
|
|
2549
2485
|
errorCode,
|
|
2550
2486
|
});
|
|
2551
2487
|
}
|
|
@@ -2584,10 +2520,9 @@ const de_DeletePlaceIndexCommandError = async (output, context) => {
|
|
|
2584
2520
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2585
2521
|
default:
|
|
2586
2522
|
const parsedBody = parsedOutput.body;
|
|
2587
|
-
throwDefaultError({
|
|
2523
|
+
return throwDefaultError({
|
|
2588
2524
|
output,
|
|
2589
2525
|
parsedBody,
|
|
2590
|
-
exceptionCtor: __BaseException,
|
|
2591
2526
|
errorCode,
|
|
2592
2527
|
});
|
|
2593
2528
|
}
|
|
@@ -2626,10 +2561,9 @@ const de_DeleteRouteCalculatorCommandError = async (output, context) => {
|
|
|
2626
2561
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2627
2562
|
default:
|
|
2628
2563
|
const parsedBody = parsedOutput.body;
|
|
2629
|
-
throwDefaultError({
|
|
2564
|
+
return throwDefaultError({
|
|
2630
2565
|
output,
|
|
2631
2566
|
parsedBody,
|
|
2632
|
-
exceptionCtor: __BaseException,
|
|
2633
2567
|
errorCode,
|
|
2634
2568
|
});
|
|
2635
2569
|
}
|
|
@@ -2668,10 +2602,9 @@ const de_DeleteTrackerCommandError = async (output, context) => {
|
|
|
2668
2602
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2669
2603
|
default:
|
|
2670
2604
|
const parsedBody = parsedOutput.body;
|
|
2671
|
-
throwDefaultError({
|
|
2605
|
+
return throwDefaultError({
|
|
2672
2606
|
output,
|
|
2673
2607
|
parsedBody,
|
|
2674
|
-
exceptionCtor: __BaseException,
|
|
2675
2608
|
errorCode,
|
|
2676
2609
|
});
|
|
2677
2610
|
}
|
|
@@ -2684,33 +2617,18 @@ export const de_DescribeGeofenceCollectionCommand = async (output, context) => {
|
|
|
2684
2617
|
$metadata: deserializeMetadata(output),
|
|
2685
2618
|
});
|
|
2686
2619
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
if (data.KmsKeyId != null) {
|
|
2700
|
-
contents.KmsKeyId = __expectString(data.KmsKeyId);
|
|
2701
|
-
}
|
|
2702
|
-
if (data.PricingPlan != null) {
|
|
2703
|
-
contents.PricingPlan = __expectString(data.PricingPlan);
|
|
2704
|
-
}
|
|
2705
|
-
if (data.PricingPlanDataSource != null) {
|
|
2706
|
-
contents.PricingPlanDataSource = __expectString(data.PricingPlanDataSource);
|
|
2707
|
-
}
|
|
2708
|
-
if (data.Tags != null) {
|
|
2709
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
2710
|
-
}
|
|
2711
|
-
if (data.UpdateTime != null) {
|
|
2712
|
-
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
|
|
2713
|
-
}
|
|
2620
|
+
const doc = take(data, {
|
|
2621
|
+
CollectionArn: __expectString,
|
|
2622
|
+
CollectionName: __expectString,
|
|
2623
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2624
|
+
Description: __expectString,
|
|
2625
|
+
KmsKeyId: __expectString,
|
|
2626
|
+
PricingPlan: __expectString,
|
|
2627
|
+
PricingPlanDataSource: __expectString,
|
|
2628
|
+
Tags: _json,
|
|
2629
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2630
|
+
});
|
|
2631
|
+
Object.assign(contents, doc);
|
|
2714
2632
|
return contents;
|
|
2715
2633
|
};
|
|
2716
2634
|
const de_DescribeGeofenceCollectionCommandError = async (output, context) => {
|
|
@@ -2737,10 +2655,9 @@ const de_DescribeGeofenceCollectionCommandError = async (output, context) => {
|
|
|
2737
2655
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2738
2656
|
default:
|
|
2739
2657
|
const parsedBody = parsedOutput.body;
|
|
2740
|
-
throwDefaultError({
|
|
2658
|
+
return throwDefaultError({
|
|
2741
2659
|
output,
|
|
2742
2660
|
parsedBody,
|
|
2743
|
-
exceptionCtor: __BaseException,
|
|
2744
2661
|
errorCode,
|
|
2745
2662
|
});
|
|
2746
2663
|
}
|
|
@@ -2753,33 +2670,18 @@ export const de_DescribeKeyCommand = async (output, context) => {
|
|
|
2753
2670
|
$metadata: deserializeMetadata(output),
|
|
2754
2671
|
});
|
|
2755
2672
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
if (data.KeyArn != null) {
|
|
2769
|
-
contents.KeyArn = __expectString(data.KeyArn);
|
|
2770
|
-
}
|
|
2771
|
-
if (data.KeyName != null) {
|
|
2772
|
-
contents.KeyName = __expectString(data.KeyName);
|
|
2773
|
-
}
|
|
2774
|
-
if (data.Restrictions != null) {
|
|
2775
|
-
contents.Restrictions = de_ApiKeyRestrictions(data.Restrictions, context);
|
|
2776
|
-
}
|
|
2777
|
-
if (data.Tags != null) {
|
|
2778
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
2779
|
-
}
|
|
2780
|
-
if (data.UpdateTime != null) {
|
|
2781
|
-
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
|
|
2782
|
-
}
|
|
2673
|
+
const doc = take(data, {
|
|
2674
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2675
|
+
Description: __expectString,
|
|
2676
|
+
ExpireTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2677
|
+
Key: __expectString,
|
|
2678
|
+
KeyArn: __expectString,
|
|
2679
|
+
KeyName: __expectString,
|
|
2680
|
+
Restrictions: _json,
|
|
2681
|
+
Tags: _json,
|
|
2682
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2683
|
+
});
|
|
2684
|
+
Object.assign(contents, doc);
|
|
2783
2685
|
return contents;
|
|
2784
2686
|
};
|
|
2785
2687
|
const de_DescribeKeyCommandError = async (output, context) => {
|
|
@@ -2806,10 +2708,9 @@ const de_DescribeKeyCommandError = async (output, context) => {
|
|
|
2806
2708
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2807
2709
|
default:
|
|
2808
2710
|
const parsedBody = parsedOutput.body;
|
|
2809
|
-
throwDefaultError({
|
|
2711
|
+
return throwDefaultError({
|
|
2810
2712
|
output,
|
|
2811
2713
|
parsedBody,
|
|
2812
|
-
exceptionCtor: __BaseException,
|
|
2813
2714
|
errorCode,
|
|
2814
2715
|
});
|
|
2815
2716
|
}
|
|
@@ -2822,33 +2723,18 @@ export const de_DescribeMapCommand = async (output, context) => {
|
|
|
2822
2723
|
$metadata: deserializeMetadata(output),
|
|
2823
2724
|
});
|
|
2824
2725
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
if (data.MapArn != null) {
|
|
2838
|
-
contents.MapArn = __expectString(data.MapArn);
|
|
2839
|
-
}
|
|
2840
|
-
if (data.MapName != null) {
|
|
2841
|
-
contents.MapName = __expectString(data.MapName);
|
|
2842
|
-
}
|
|
2843
|
-
if (data.PricingPlan != null) {
|
|
2844
|
-
contents.PricingPlan = __expectString(data.PricingPlan);
|
|
2845
|
-
}
|
|
2846
|
-
if (data.Tags != null) {
|
|
2847
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
2848
|
-
}
|
|
2849
|
-
if (data.UpdateTime != null) {
|
|
2850
|
-
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
|
|
2851
|
-
}
|
|
2726
|
+
const doc = take(data, {
|
|
2727
|
+
Configuration: _json,
|
|
2728
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2729
|
+
DataSource: __expectString,
|
|
2730
|
+
Description: __expectString,
|
|
2731
|
+
MapArn: __expectString,
|
|
2732
|
+
MapName: __expectString,
|
|
2733
|
+
PricingPlan: __expectString,
|
|
2734
|
+
Tags: _json,
|
|
2735
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2736
|
+
});
|
|
2737
|
+
Object.assign(contents, doc);
|
|
2852
2738
|
return contents;
|
|
2853
2739
|
};
|
|
2854
2740
|
const de_DescribeMapCommandError = async (output, context) => {
|
|
@@ -2875,10 +2761,9 @@ const de_DescribeMapCommandError = async (output, context) => {
|
|
|
2875
2761
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2876
2762
|
default:
|
|
2877
2763
|
const parsedBody = parsedOutput.body;
|
|
2878
|
-
throwDefaultError({
|
|
2764
|
+
return throwDefaultError({
|
|
2879
2765
|
output,
|
|
2880
2766
|
parsedBody,
|
|
2881
|
-
exceptionCtor: __BaseException,
|
|
2882
2767
|
errorCode,
|
|
2883
2768
|
});
|
|
2884
2769
|
}
|
|
@@ -2891,33 +2776,18 @@ export const de_DescribePlaceIndexCommand = async (output, context) => {
|
|
|
2891
2776
|
$metadata: deserializeMetadata(output),
|
|
2892
2777
|
});
|
|
2893
2778
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
if (data.IndexArn != null) {
|
|
2907
|
-
contents.IndexArn = __expectString(data.IndexArn);
|
|
2908
|
-
}
|
|
2909
|
-
if (data.IndexName != null) {
|
|
2910
|
-
contents.IndexName = __expectString(data.IndexName);
|
|
2911
|
-
}
|
|
2912
|
-
if (data.PricingPlan != null) {
|
|
2913
|
-
contents.PricingPlan = __expectString(data.PricingPlan);
|
|
2914
|
-
}
|
|
2915
|
-
if (data.Tags != null) {
|
|
2916
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
2917
|
-
}
|
|
2918
|
-
if (data.UpdateTime != null) {
|
|
2919
|
-
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
|
|
2920
|
-
}
|
|
2779
|
+
const doc = take(data, {
|
|
2780
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2781
|
+
DataSource: __expectString,
|
|
2782
|
+
DataSourceConfiguration: _json,
|
|
2783
|
+
Description: __expectString,
|
|
2784
|
+
IndexArn: __expectString,
|
|
2785
|
+
IndexName: __expectString,
|
|
2786
|
+
PricingPlan: __expectString,
|
|
2787
|
+
Tags: _json,
|
|
2788
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2789
|
+
});
|
|
2790
|
+
Object.assign(contents, doc);
|
|
2921
2791
|
return contents;
|
|
2922
2792
|
};
|
|
2923
2793
|
const de_DescribePlaceIndexCommandError = async (output, context) => {
|
|
@@ -2944,10 +2814,9 @@ const de_DescribePlaceIndexCommandError = async (output, context) => {
|
|
|
2944
2814
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2945
2815
|
default:
|
|
2946
2816
|
const parsedBody = parsedOutput.body;
|
|
2947
|
-
throwDefaultError({
|
|
2817
|
+
return throwDefaultError({
|
|
2948
2818
|
output,
|
|
2949
2819
|
parsedBody,
|
|
2950
|
-
exceptionCtor: __BaseException,
|
|
2951
2820
|
errorCode,
|
|
2952
2821
|
});
|
|
2953
2822
|
}
|
|
@@ -2960,30 +2829,17 @@ export const de_DescribeRouteCalculatorCommand = async (output, context) => {
|
|
|
2960
2829
|
$metadata: deserializeMetadata(output),
|
|
2961
2830
|
});
|
|
2962
2831
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
}
|
|
2975
|
-
if (data.Description != null) {
|
|
2976
|
-
contents.Description = __expectString(data.Description);
|
|
2977
|
-
}
|
|
2978
|
-
if (data.PricingPlan != null) {
|
|
2979
|
-
contents.PricingPlan = __expectString(data.PricingPlan);
|
|
2980
|
-
}
|
|
2981
|
-
if (data.Tags != null) {
|
|
2982
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
2983
|
-
}
|
|
2984
|
-
if (data.UpdateTime != null) {
|
|
2985
|
-
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
|
|
2986
|
-
}
|
|
2832
|
+
const doc = take(data, {
|
|
2833
|
+
CalculatorArn: __expectString,
|
|
2834
|
+
CalculatorName: __expectString,
|
|
2835
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2836
|
+
DataSource: __expectString,
|
|
2837
|
+
Description: __expectString,
|
|
2838
|
+
PricingPlan: __expectString,
|
|
2839
|
+
Tags: _json,
|
|
2840
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2841
|
+
});
|
|
2842
|
+
Object.assign(contents, doc);
|
|
2987
2843
|
return contents;
|
|
2988
2844
|
};
|
|
2989
2845
|
const de_DescribeRouteCalculatorCommandError = async (output, context) => {
|
|
@@ -3010,10 +2866,9 @@ const de_DescribeRouteCalculatorCommandError = async (output, context) => {
|
|
|
3010
2866
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3011
2867
|
default:
|
|
3012
2868
|
const parsedBody = parsedOutput.body;
|
|
3013
|
-
throwDefaultError({
|
|
2869
|
+
return throwDefaultError({
|
|
3014
2870
|
output,
|
|
3015
2871
|
parsedBody,
|
|
3016
|
-
exceptionCtor: __BaseException,
|
|
3017
2872
|
errorCode,
|
|
3018
2873
|
});
|
|
3019
2874
|
}
|
|
@@ -3026,36 +2881,19 @@ export const de_DescribeTrackerCommand = async (output, context) => {
|
|
|
3026
2881
|
$metadata: deserializeMetadata(output),
|
|
3027
2882
|
});
|
|
3028
2883
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
}
|
|
3041
|
-
|
|
3042
|
-
contents.PricingPlan = __expectString(data.PricingPlan);
|
|
3043
|
-
}
|
|
3044
|
-
if (data.PricingPlanDataSource != null) {
|
|
3045
|
-
contents.PricingPlanDataSource = __expectString(data.PricingPlanDataSource);
|
|
3046
|
-
}
|
|
3047
|
-
if (data.Tags != null) {
|
|
3048
|
-
contents.Tags = de_TagMap(data.Tags, context);
|
|
3049
|
-
}
|
|
3050
|
-
if (data.TrackerArn != null) {
|
|
3051
|
-
contents.TrackerArn = __expectString(data.TrackerArn);
|
|
3052
|
-
}
|
|
3053
|
-
if (data.TrackerName != null) {
|
|
3054
|
-
contents.TrackerName = __expectString(data.TrackerName);
|
|
3055
|
-
}
|
|
3056
|
-
if (data.UpdateTime != null) {
|
|
3057
|
-
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
|
|
3058
|
-
}
|
|
2884
|
+
const doc = take(data, {
|
|
2885
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2886
|
+
Description: __expectString,
|
|
2887
|
+
KmsKeyId: __expectString,
|
|
2888
|
+
PositionFiltering: __expectString,
|
|
2889
|
+
PricingPlan: __expectString,
|
|
2890
|
+
PricingPlanDataSource: __expectString,
|
|
2891
|
+
Tags: _json,
|
|
2892
|
+
TrackerArn: __expectString,
|
|
2893
|
+
TrackerName: __expectString,
|
|
2894
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2895
|
+
});
|
|
2896
|
+
Object.assign(contents, doc);
|
|
3059
2897
|
return contents;
|
|
3060
2898
|
};
|
|
3061
2899
|
const de_DescribeTrackerCommandError = async (output, context) => {
|
|
@@ -3082,10 +2920,9 @@ const de_DescribeTrackerCommandError = async (output, context) => {
|
|
|
3082
2920
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3083
2921
|
default:
|
|
3084
2922
|
const parsedBody = parsedOutput.body;
|
|
3085
|
-
throwDefaultError({
|
|
2923
|
+
return throwDefaultError({
|
|
3086
2924
|
output,
|
|
3087
2925
|
parsedBody,
|
|
3088
|
-
exceptionCtor: __BaseException,
|
|
3089
2926
|
errorCode,
|
|
3090
2927
|
});
|
|
3091
2928
|
}
|
|
@@ -3124,10 +2961,9 @@ const de_DisassociateTrackerConsumerCommandError = async (output, context) => {
|
|
|
3124
2961
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3125
2962
|
default:
|
|
3126
2963
|
const parsedBody = parsedOutput.body;
|
|
3127
|
-
throwDefaultError({
|
|
2964
|
+
return throwDefaultError({
|
|
3128
2965
|
output,
|
|
3129
2966
|
parsedBody,
|
|
3130
|
-
exceptionCtor: __BaseException,
|
|
3131
2967
|
errorCode,
|
|
3132
2968
|
});
|
|
3133
2969
|
}
|
|
@@ -3140,24 +2976,15 @@ export const de_GetDevicePositionCommand = async (output, context) => {
|
|
|
3140
2976
|
$metadata: deserializeMetadata(output),
|
|
3141
2977
|
});
|
|
3142
2978
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
if (data.PositionProperties != null) {
|
|
3153
|
-
contents.PositionProperties = de_PropertyMap(data.PositionProperties, context);
|
|
3154
|
-
}
|
|
3155
|
-
if (data.ReceivedTime != null) {
|
|
3156
|
-
contents.ReceivedTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.ReceivedTime));
|
|
3157
|
-
}
|
|
3158
|
-
if (data.SampleTime != null) {
|
|
3159
|
-
contents.SampleTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.SampleTime));
|
|
3160
|
-
}
|
|
2979
|
+
const doc = take(data, {
|
|
2980
|
+
Accuracy: (_) => de_PositionalAccuracy(_, context),
|
|
2981
|
+
DeviceId: __expectString,
|
|
2982
|
+
Position: (_) => de_Position(_, context),
|
|
2983
|
+
PositionProperties: _json,
|
|
2984
|
+
ReceivedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2985
|
+
SampleTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2986
|
+
});
|
|
2987
|
+
Object.assign(contents, doc);
|
|
3161
2988
|
return contents;
|
|
3162
2989
|
};
|
|
3163
2990
|
const de_GetDevicePositionCommandError = async (output, context) => {
|
|
@@ -3184,10 +3011,9 @@ const de_GetDevicePositionCommandError = async (output, context) => {
|
|
|
3184
3011
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3185
3012
|
default:
|
|
3186
3013
|
const parsedBody = parsedOutput.body;
|
|
3187
|
-
throwDefaultError({
|
|
3014
|
+
return throwDefaultError({
|
|
3188
3015
|
output,
|
|
3189
3016
|
parsedBody,
|
|
3190
|
-
exceptionCtor: __BaseException,
|
|
3191
3017
|
errorCode,
|
|
3192
3018
|
});
|
|
3193
3019
|
}
|
|
@@ -3200,12 +3026,11 @@ export const de_GetDevicePositionHistoryCommand = async (output, context) => {
|
|
|
3200
3026
|
$metadata: deserializeMetadata(output),
|
|
3201
3027
|
});
|
|
3202
3028
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
}
|
|
3029
|
+
const doc = take(data, {
|
|
3030
|
+
DevicePositions: (_) => de_DevicePositionList(_, context),
|
|
3031
|
+
NextToken: __expectString,
|
|
3032
|
+
});
|
|
3033
|
+
Object.assign(contents, doc);
|
|
3209
3034
|
return contents;
|
|
3210
3035
|
};
|
|
3211
3036
|
const de_GetDevicePositionHistoryCommandError = async (output, context) => {
|
|
@@ -3232,10 +3057,9 @@ const de_GetDevicePositionHistoryCommandError = async (output, context) => {
|
|
|
3232
3057
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3233
3058
|
default:
|
|
3234
3059
|
const parsedBody = parsedOutput.body;
|
|
3235
|
-
throwDefaultError({
|
|
3060
|
+
return throwDefaultError({
|
|
3236
3061
|
output,
|
|
3237
3062
|
parsedBody,
|
|
3238
|
-
exceptionCtor: __BaseException,
|
|
3239
3063
|
errorCode,
|
|
3240
3064
|
});
|
|
3241
3065
|
}
|
|
@@ -3248,21 +3072,14 @@ export const de_GetGeofenceCommand = async (output, context) => {
|
|
|
3248
3072
|
$metadata: deserializeMetadata(output),
|
|
3249
3073
|
});
|
|
3250
3074
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
}
|
|
3260
|
-
if (data.Status != null) {
|
|
3261
|
-
contents.Status = __expectString(data.Status);
|
|
3262
|
-
}
|
|
3263
|
-
if (data.UpdateTime != null) {
|
|
3264
|
-
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
|
|
3265
|
-
}
|
|
3075
|
+
const doc = take(data, {
|
|
3076
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
3077
|
+
GeofenceId: __expectString,
|
|
3078
|
+
Geometry: (_) => de_GeofenceGeometry(_, context),
|
|
3079
|
+
Status: __expectString,
|
|
3080
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
3081
|
+
});
|
|
3082
|
+
Object.assign(contents, doc);
|
|
3266
3083
|
return contents;
|
|
3267
3084
|
};
|
|
3268
3085
|
const de_GetGeofenceCommandError = async (output, context) => {
|
|
@@ -3289,10 +3106,9 @@ const de_GetGeofenceCommandError = async (output, context) => {
|
|
|
3289
3106
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3290
3107
|
default:
|
|
3291
3108
|
const parsedBody = parsedOutput.body;
|
|
3292
|
-
throwDefaultError({
|
|
3109
|
+
return throwDefaultError({
|
|
3293
3110
|
output,
|
|
3294
3111
|
parsedBody,
|
|
3295
|
-
exceptionCtor: __BaseException,
|
|
3296
3112
|
errorCode,
|
|
3297
3113
|
});
|
|
3298
3114
|
}
|
|
@@ -3334,10 +3150,9 @@ const de_GetMapGlyphsCommandError = async (output, context) => {
|
|
|
3334
3150
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3335
3151
|
default:
|
|
3336
3152
|
const parsedBody = parsedOutput.body;
|
|
3337
|
-
throwDefaultError({
|
|
3153
|
+
return throwDefaultError({
|
|
3338
3154
|
output,
|
|
3339
3155
|
parsedBody,
|
|
3340
|
-
exceptionCtor: __BaseException,
|
|
3341
3156
|
errorCode,
|
|
3342
3157
|
});
|
|
3343
3158
|
}
|
|
@@ -3379,10 +3194,9 @@ const de_GetMapSpritesCommandError = async (output, context) => {
|
|
|
3379
3194
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3380
3195
|
default:
|
|
3381
3196
|
const parsedBody = parsedOutput.body;
|
|
3382
|
-
throwDefaultError({
|
|
3197
|
+
return throwDefaultError({
|
|
3383
3198
|
output,
|
|
3384
3199
|
parsedBody,
|
|
3385
|
-
exceptionCtor: __BaseException,
|
|
3386
3200
|
errorCode,
|
|
3387
3201
|
});
|
|
3388
3202
|
}
|
|
@@ -3424,10 +3238,9 @@ const de_GetMapStyleDescriptorCommandError = async (output, context) => {
|
|
|
3424
3238
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3425
3239
|
default:
|
|
3426
3240
|
const parsedBody = parsedOutput.body;
|
|
3427
|
-
throwDefaultError({
|
|
3241
|
+
return throwDefaultError({
|
|
3428
3242
|
output,
|
|
3429
3243
|
parsedBody,
|
|
3430
|
-
exceptionCtor: __BaseException,
|
|
3431
3244
|
errorCode,
|
|
3432
3245
|
});
|
|
3433
3246
|
}
|
|
@@ -3469,10 +3282,9 @@ const de_GetMapTileCommandError = async (output, context) => {
|
|
|
3469
3282
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3470
3283
|
default:
|
|
3471
3284
|
const parsedBody = parsedOutput.body;
|
|
3472
|
-
throwDefaultError({
|
|
3285
|
+
return throwDefaultError({
|
|
3473
3286
|
output,
|
|
3474
3287
|
parsedBody,
|
|
3475
|
-
exceptionCtor: __BaseException,
|
|
3476
3288
|
errorCode,
|
|
3477
3289
|
});
|
|
3478
3290
|
}
|
|
@@ -3485,9 +3297,10 @@ export const de_GetPlaceCommand = async (output, context) => {
|
|
|
3485
3297
|
$metadata: deserializeMetadata(output),
|
|
3486
3298
|
});
|
|
3487
3299
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
}
|
|
3300
|
+
const doc = take(data, {
|
|
3301
|
+
Place: (_) => de_Place(_, context),
|
|
3302
|
+
});
|
|
3303
|
+
Object.assign(contents, doc);
|
|
3491
3304
|
return contents;
|
|
3492
3305
|
};
|
|
3493
3306
|
const de_GetPlaceCommandError = async (output, context) => {
|
|
@@ -3514,10 +3327,9 @@ const de_GetPlaceCommandError = async (output, context) => {
|
|
|
3514
3327
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3515
3328
|
default:
|
|
3516
3329
|
const parsedBody = parsedOutput.body;
|
|
3517
|
-
throwDefaultError({
|
|
3330
|
+
return throwDefaultError({
|
|
3518
3331
|
output,
|
|
3519
3332
|
parsedBody,
|
|
3520
|
-
exceptionCtor: __BaseException,
|
|
3521
3333
|
errorCode,
|
|
3522
3334
|
});
|
|
3523
3335
|
}
|
|
@@ -3530,12 +3342,11 @@ export const de_ListDevicePositionsCommand = async (output, context) => {
|
|
|
3530
3342
|
$metadata: deserializeMetadata(output),
|
|
3531
3343
|
});
|
|
3532
3344
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
}
|
|
3345
|
+
const doc = take(data, {
|
|
3346
|
+
Entries: (_) => de_ListDevicePositionsResponseEntryList(_, context),
|
|
3347
|
+
NextToken: __expectString,
|
|
3348
|
+
});
|
|
3349
|
+
Object.assign(contents, doc);
|
|
3539
3350
|
return contents;
|
|
3540
3351
|
};
|
|
3541
3352
|
const de_ListDevicePositionsCommandError = async (output, context) => {
|
|
@@ -3559,10 +3370,9 @@ const de_ListDevicePositionsCommandError = async (output, context) => {
|
|
|
3559
3370
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3560
3371
|
default:
|
|
3561
3372
|
const parsedBody = parsedOutput.body;
|
|
3562
|
-
throwDefaultError({
|
|
3373
|
+
return throwDefaultError({
|
|
3563
3374
|
output,
|
|
3564
3375
|
parsedBody,
|
|
3565
|
-
exceptionCtor: __BaseException,
|
|
3566
3376
|
errorCode,
|
|
3567
3377
|
});
|
|
3568
3378
|
}
|
|
@@ -3575,12 +3385,11 @@ export const de_ListGeofenceCollectionsCommand = async (output, context) => {
|
|
|
3575
3385
|
$metadata: deserializeMetadata(output),
|
|
3576
3386
|
});
|
|
3577
3387
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
}
|
|
3388
|
+
const doc = take(data, {
|
|
3389
|
+
Entries: (_) => de_ListGeofenceCollectionsResponseEntryList(_, context),
|
|
3390
|
+
NextToken: __expectString,
|
|
3391
|
+
});
|
|
3392
|
+
Object.assign(contents, doc);
|
|
3584
3393
|
return contents;
|
|
3585
3394
|
};
|
|
3586
3395
|
const de_ListGeofenceCollectionsCommandError = async (output, context) => {
|
|
@@ -3604,10 +3413,9 @@ const de_ListGeofenceCollectionsCommandError = async (output, context) => {
|
|
|
3604
3413
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3605
3414
|
default:
|
|
3606
3415
|
const parsedBody = parsedOutput.body;
|
|
3607
|
-
throwDefaultError({
|
|
3416
|
+
return throwDefaultError({
|
|
3608
3417
|
output,
|
|
3609
3418
|
parsedBody,
|
|
3610
|
-
exceptionCtor: __BaseException,
|
|
3611
3419
|
errorCode,
|
|
3612
3420
|
});
|
|
3613
3421
|
}
|
|
@@ -3620,12 +3428,11 @@ export const de_ListGeofencesCommand = async (output, context) => {
|
|
|
3620
3428
|
$metadata: deserializeMetadata(output),
|
|
3621
3429
|
});
|
|
3622
3430
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
}
|
|
3431
|
+
const doc = take(data, {
|
|
3432
|
+
Entries: (_) => de_ListGeofenceResponseEntryList(_, context),
|
|
3433
|
+
NextToken: __expectString,
|
|
3434
|
+
});
|
|
3435
|
+
Object.assign(contents, doc);
|
|
3629
3436
|
return contents;
|
|
3630
3437
|
};
|
|
3631
3438
|
const de_ListGeofencesCommandError = async (output, context) => {
|
|
@@ -3652,10 +3459,9 @@ const de_ListGeofencesCommandError = async (output, context) => {
|
|
|
3652
3459
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3653
3460
|
default:
|
|
3654
3461
|
const parsedBody = parsedOutput.body;
|
|
3655
|
-
throwDefaultError({
|
|
3462
|
+
return throwDefaultError({
|
|
3656
3463
|
output,
|
|
3657
3464
|
parsedBody,
|
|
3658
|
-
exceptionCtor: __BaseException,
|
|
3659
3465
|
errorCode,
|
|
3660
3466
|
});
|
|
3661
3467
|
}
|
|
@@ -3668,12 +3474,11 @@ export const de_ListKeysCommand = async (output, context) => {
|
|
|
3668
3474
|
$metadata: deserializeMetadata(output),
|
|
3669
3475
|
});
|
|
3670
3476
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
}
|
|
3477
|
+
const doc = take(data, {
|
|
3478
|
+
Entries: (_) => de_ListKeysResponseEntryList(_, context),
|
|
3479
|
+
NextToken: __expectString,
|
|
3480
|
+
});
|
|
3481
|
+
Object.assign(contents, doc);
|
|
3677
3482
|
return contents;
|
|
3678
3483
|
};
|
|
3679
3484
|
const de_ListKeysCommandError = async (output, context) => {
|
|
@@ -3697,10 +3502,9 @@ const de_ListKeysCommandError = async (output, context) => {
|
|
|
3697
3502
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3698
3503
|
default:
|
|
3699
3504
|
const parsedBody = parsedOutput.body;
|
|
3700
|
-
throwDefaultError({
|
|
3505
|
+
return throwDefaultError({
|
|
3701
3506
|
output,
|
|
3702
3507
|
parsedBody,
|
|
3703
|
-
exceptionCtor: __BaseException,
|
|
3704
3508
|
errorCode,
|
|
3705
3509
|
});
|
|
3706
3510
|
}
|
|
@@ -3713,12 +3517,11 @@ export const de_ListMapsCommand = async (output, context) => {
|
|
|
3713
3517
|
$metadata: deserializeMetadata(output),
|
|
3714
3518
|
});
|
|
3715
3519
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
}
|
|
3520
|
+
const doc = take(data, {
|
|
3521
|
+
Entries: (_) => de_ListMapsResponseEntryList(_, context),
|
|
3522
|
+
NextToken: __expectString,
|
|
3523
|
+
});
|
|
3524
|
+
Object.assign(contents, doc);
|
|
3722
3525
|
return contents;
|
|
3723
3526
|
};
|
|
3724
3527
|
const de_ListMapsCommandError = async (output, context) => {
|
|
@@ -3742,10 +3545,9 @@ const de_ListMapsCommandError = async (output, context) => {
|
|
|
3742
3545
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3743
3546
|
default:
|
|
3744
3547
|
const parsedBody = parsedOutput.body;
|
|
3745
|
-
throwDefaultError({
|
|
3548
|
+
return throwDefaultError({
|
|
3746
3549
|
output,
|
|
3747
3550
|
parsedBody,
|
|
3748
|
-
exceptionCtor: __BaseException,
|
|
3749
3551
|
errorCode,
|
|
3750
3552
|
});
|
|
3751
3553
|
}
|
|
@@ -3758,12 +3560,11 @@ export const de_ListPlaceIndexesCommand = async (output, context) => {
|
|
|
3758
3560
|
$metadata: deserializeMetadata(output),
|
|
3759
3561
|
});
|
|
3760
3562
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
}
|
|
3563
|
+
const doc = take(data, {
|
|
3564
|
+
Entries: (_) => de_ListPlaceIndexesResponseEntryList(_, context),
|
|
3565
|
+
NextToken: __expectString,
|
|
3566
|
+
});
|
|
3567
|
+
Object.assign(contents, doc);
|
|
3767
3568
|
return contents;
|
|
3768
3569
|
};
|
|
3769
3570
|
const de_ListPlaceIndexesCommandError = async (output, context) => {
|
|
@@ -3787,10 +3588,9 @@ const de_ListPlaceIndexesCommandError = async (output, context) => {
|
|
|
3787
3588
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3788
3589
|
default:
|
|
3789
3590
|
const parsedBody = parsedOutput.body;
|
|
3790
|
-
throwDefaultError({
|
|
3591
|
+
return throwDefaultError({
|
|
3791
3592
|
output,
|
|
3792
3593
|
parsedBody,
|
|
3793
|
-
exceptionCtor: __BaseException,
|
|
3794
3594
|
errorCode,
|
|
3795
3595
|
});
|
|
3796
3596
|
}
|
|
@@ -3803,12 +3603,11 @@ export const de_ListRouteCalculatorsCommand = async (output, context) => {
|
|
|
3803
3603
|
$metadata: deserializeMetadata(output),
|
|
3804
3604
|
});
|
|
3805
3605
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
}
|
|
3606
|
+
const doc = take(data, {
|
|
3607
|
+
Entries: (_) => de_ListRouteCalculatorsResponseEntryList(_, context),
|
|
3608
|
+
NextToken: __expectString,
|
|
3609
|
+
});
|
|
3610
|
+
Object.assign(contents, doc);
|
|
3812
3611
|
return contents;
|
|
3813
3612
|
};
|
|
3814
3613
|
const de_ListRouteCalculatorsCommandError = async (output, context) => {
|
|
@@ -3832,10 +3631,9 @@ const de_ListRouteCalculatorsCommandError = async (output, context) => {
|
|
|
3832
3631
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3833
3632
|
default:
|
|
3834
3633
|
const parsedBody = parsedOutput.body;
|
|
3835
|
-
throwDefaultError({
|
|
3634
|
+
return throwDefaultError({
|
|
3836
3635
|
output,
|
|
3837
3636
|
parsedBody,
|
|
3838
|
-
exceptionCtor: __BaseException,
|
|
3839
3637
|
errorCode,
|
|
3840
3638
|
});
|
|
3841
3639
|
}
|
|
@@ -3848,9 +3646,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
3848
3646
|
$metadata: deserializeMetadata(output),
|
|
3849
3647
|
});
|
|
3850
3648
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
}
|
|
3649
|
+
const doc = take(data, {
|
|
3650
|
+
Tags: _json,
|
|
3651
|
+
});
|
|
3652
|
+
Object.assign(contents, doc);
|
|
3854
3653
|
return contents;
|
|
3855
3654
|
};
|
|
3856
3655
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -3877,10 +3676,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
3877
3676
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3878
3677
|
default:
|
|
3879
3678
|
const parsedBody = parsedOutput.body;
|
|
3880
|
-
throwDefaultError({
|
|
3679
|
+
return throwDefaultError({
|
|
3881
3680
|
output,
|
|
3882
3681
|
parsedBody,
|
|
3883
|
-
exceptionCtor: __BaseException,
|
|
3884
3682
|
errorCode,
|
|
3885
3683
|
});
|
|
3886
3684
|
}
|
|
@@ -3893,12 +3691,11 @@ export const de_ListTrackerConsumersCommand = async (output, context) => {
|
|
|
3893
3691
|
$metadata: deserializeMetadata(output),
|
|
3894
3692
|
});
|
|
3895
3693
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
}
|
|
3694
|
+
const doc = take(data, {
|
|
3695
|
+
ConsumerArns: _json,
|
|
3696
|
+
NextToken: __expectString,
|
|
3697
|
+
});
|
|
3698
|
+
Object.assign(contents, doc);
|
|
3902
3699
|
return contents;
|
|
3903
3700
|
};
|
|
3904
3701
|
const de_ListTrackerConsumersCommandError = async (output, context) => {
|
|
@@ -3925,10 +3722,9 @@ const de_ListTrackerConsumersCommandError = async (output, context) => {
|
|
|
3925
3722
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3926
3723
|
default:
|
|
3927
3724
|
const parsedBody = parsedOutput.body;
|
|
3928
|
-
throwDefaultError({
|
|
3725
|
+
return throwDefaultError({
|
|
3929
3726
|
output,
|
|
3930
3727
|
parsedBody,
|
|
3931
|
-
exceptionCtor: __BaseException,
|
|
3932
3728
|
errorCode,
|
|
3933
3729
|
});
|
|
3934
3730
|
}
|
|
@@ -3941,12 +3737,11 @@ export const de_ListTrackersCommand = async (output, context) => {
|
|
|
3941
3737
|
$metadata: deserializeMetadata(output),
|
|
3942
3738
|
});
|
|
3943
3739
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
}
|
|
3740
|
+
const doc = take(data, {
|
|
3741
|
+
Entries: (_) => de_ListTrackersResponseEntryList(_, context),
|
|
3742
|
+
NextToken: __expectString,
|
|
3743
|
+
});
|
|
3744
|
+
Object.assign(contents, doc);
|
|
3950
3745
|
return contents;
|
|
3951
3746
|
};
|
|
3952
3747
|
const de_ListTrackersCommandError = async (output, context) => {
|
|
@@ -3970,10 +3765,9 @@ const de_ListTrackersCommandError = async (output, context) => {
|
|
|
3970
3765
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3971
3766
|
default:
|
|
3972
3767
|
const parsedBody = parsedOutput.body;
|
|
3973
|
-
throwDefaultError({
|
|
3768
|
+
return throwDefaultError({
|
|
3974
3769
|
output,
|
|
3975
3770
|
parsedBody,
|
|
3976
|
-
exceptionCtor: __BaseException,
|
|
3977
3771
|
errorCode,
|
|
3978
3772
|
});
|
|
3979
3773
|
}
|
|
@@ -3986,15 +3780,12 @@ export const de_PutGeofenceCommand = async (output, context) => {
|
|
|
3986
3780
|
$metadata: deserializeMetadata(output),
|
|
3987
3781
|
});
|
|
3988
3782
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
if (data.UpdateTime != null) {
|
|
3996
|
-
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
|
|
3997
|
-
}
|
|
3783
|
+
const doc = take(data, {
|
|
3784
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
3785
|
+
GeofenceId: __expectString,
|
|
3786
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
3787
|
+
});
|
|
3788
|
+
Object.assign(contents, doc);
|
|
3998
3789
|
return contents;
|
|
3999
3790
|
};
|
|
4000
3791
|
const de_PutGeofenceCommandError = async (output, context) => {
|
|
@@ -4024,10 +3815,9 @@ const de_PutGeofenceCommandError = async (output, context) => {
|
|
|
4024
3815
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4025
3816
|
default:
|
|
4026
3817
|
const parsedBody = parsedOutput.body;
|
|
4027
|
-
throwDefaultError({
|
|
3818
|
+
return throwDefaultError({
|
|
4028
3819
|
output,
|
|
4029
3820
|
parsedBody,
|
|
4030
|
-
exceptionCtor: __BaseException,
|
|
4031
3821
|
errorCode,
|
|
4032
3822
|
});
|
|
4033
3823
|
}
|
|
@@ -4040,12 +3830,11 @@ export const de_SearchPlaceIndexForPositionCommand = async (output, context) =>
|
|
|
4040
3830
|
$metadata: deserializeMetadata(output),
|
|
4041
3831
|
});
|
|
4042
3832
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
}
|
|
3833
|
+
const doc = take(data, {
|
|
3834
|
+
Results: (_) => de_SearchForPositionResultList(_, context),
|
|
3835
|
+
Summary: (_) => de_SearchPlaceIndexForPositionSummary(_, context),
|
|
3836
|
+
});
|
|
3837
|
+
Object.assign(contents, doc);
|
|
4049
3838
|
return contents;
|
|
4050
3839
|
};
|
|
4051
3840
|
const de_SearchPlaceIndexForPositionCommandError = async (output, context) => {
|
|
@@ -4072,10 +3861,9 @@ const de_SearchPlaceIndexForPositionCommandError = async (output, context) => {
|
|
|
4072
3861
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4073
3862
|
default:
|
|
4074
3863
|
const parsedBody = parsedOutput.body;
|
|
4075
|
-
throwDefaultError({
|
|
3864
|
+
return throwDefaultError({
|
|
4076
3865
|
output,
|
|
4077
3866
|
parsedBody,
|
|
4078
|
-
exceptionCtor: __BaseException,
|
|
4079
3867
|
errorCode,
|
|
4080
3868
|
});
|
|
4081
3869
|
}
|
|
@@ -4088,12 +3876,11 @@ export const de_SearchPlaceIndexForSuggestionsCommand = async (output, context)
|
|
|
4088
3876
|
$metadata: deserializeMetadata(output),
|
|
4089
3877
|
});
|
|
4090
3878
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
}
|
|
3879
|
+
const doc = take(data, {
|
|
3880
|
+
Results: _json,
|
|
3881
|
+
Summary: (_) => de_SearchPlaceIndexForSuggestionsSummary(_, context),
|
|
3882
|
+
});
|
|
3883
|
+
Object.assign(contents, doc);
|
|
4097
3884
|
return contents;
|
|
4098
3885
|
};
|
|
4099
3886
|
const de_SearchPlaceIndexForSuggestionsCommandError = async (output, context) => {
|
|
@@ -4120,10 +3907,9 @@ const de_SearchPlaceIndexForSuggestionsCommandError = async (output, context) =>
|
|
|
4120
3907
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4121
3908
|
default:
|
|
4122
3909
|
const parsedBody = parsedOutput.body;
|
|
4123
|
-
throwDefaultError({
|
|
3910
|
+
return throwDefaultError({
|
|
4124
3911
|
output,
|
|
4125
3912
|
parsedBody,
|
|
4126
|
-
exceptionCtor: __BaseException,
|
|
4127
3913
|
errorCode,
|
|
4128
3914
|
});
|
|
4129
3915
|
}
|
|
@@ -4136,12 +3922,11 @@ export const de_SearchPlaceIndexForTextCommand = async (output, context) => {
|
|
|
4136
3922
|
$metadata: deserializeMetadata(output),
|
|
4137
3923
|
});
|
|
4138
3924
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
}
|
|
3925
|
+
const doc = take(data, {
|
|
3926
|
+
Results: (_) => de_SearchForTextResultList(_, context),
|
|
3927
|
+
Summary: (_) => de_SearchPlaceIndexForTextSummary(_, context),
|
|
3928
|
+
});
|
|
3929
|
+
Object.assign(contents, doc);
|
|
4145
3930
|
return contents;
|
|
4146
3931
|
};
|
|
4147
3932
|
const de_SearchPlaceIndexForTextCommandError = async (output, context) => {
|
|
@@ -4168,10 +3953,9 @@ const de_SearchPlaceIndexForTextCommandError = async (output, context) => {
|
|
|
4168
3953
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4169
3954
|
default:
|
|
4170
3955
|
const parsedBody = parsedOutput.body;
|
|
4171
|
-
throwDefaultError({
|
|
3956
|
+
return throwDefaultError({
|
|
4172
3957
|
output,
|
|
4173
3958
|
parsedBody,
|
|
4174
|
-
exceptionCtor: __BaseException,
|
|
4175
3959
|
errorCode,
|
|
4176
3960
|
});
|
|
4177
3961
|
}
|
|
@@ -4210,10 +3994,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
4210
3994
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4211
3995
|
default:
|
|
4212
3996
|
const parsedBody = parsedOutput.body;
|
|
4213
|
-
throwDefaultError({
|
|
3997
|
+
return throwDefaultError({
|
|
4214
3998
|
output,
|
|
4215
3999
|
parsedBody,
|
|
4216
|
-
exceptionCtor: __BaseException,
|
|
4217
4000
|
errorCode,
|
|
4218
4001
|
});
|
|
4219
4002
|
}
|
|
@@ -4252,10 +4035,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
4252
4035
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4253
4036
|
default:
|
|
4254
4037
|
const parsedBody = parsedOutput.body;
|
|
4255
|
-
throwDefaultError({
|
|
4038
|
+
return throwDefaultError({
|
|
4256
4039
|
output,
|
|
4257
4040
|
parsedBody,
|
|
4258
|
-
exceptionCtor: __BaseException,
|
|
4259
4041
|
errorCode,
|
|
4260
4042
|
});
|
|
4261
4043
|
}
|
|
@@ -4268,15 +4050,12 @@ export const de_UpdateGeofenceCollectionCommand = async (output, context) => {
|
|
|
4268
4050
|
$metadata: deserializeMetadata(output),
|
|
4269
4051
|
});
|
|
4270
4052
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
if (data.UpdateTime != null) {
|
|
4278
|
-
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
|
|
4279
|
-
}
|
|
4053
|
+
const doc = take(data, {
|
|
4054
|
+
CollectionArn: __expectString,
|
|
4055
|
+
CollectionName: __expectString,
|
|
4056
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4057
|
+
});
|
|
4058
|
+
Object.assign(contents, doc);
|
|
4280
4059
|
return contents;
|
|
4281
4060
|
};
|
|
4282
4061
|
const de_UpdateGeofenceCollectionCommandError = async (output, context) => {
|
|
@@ -4303,10 +4082,9 @@ const de_UpdateGeofenceCollectionCommandError = async (output, context) => {
|
|
|
4303
4082
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4304
4083
|
default:
|
|
4305
4084
|
const parsedBody = parsedOutput.body;
|
|
4306
|
-
throwDefaultError({
|
|
4085
|
+
return throwDefaultError({
|
|
4307
4086
|
output,
|
|
4308
4087
|
parsedBody,
|
|
4309
|
-
exceptionCtor: __BaseException,
|
|
4310
4088
|
errorCode,
|
|
4311
4089
|
});
|
|
4312
4090
|
}
|
|
@@ -4319,15 +4097,12 @@ export const de_UpdateKeyCommand = async (output, context) => {
|
|
|
4319
4097
|
$metadata: deserializeMetadata(output),
|
|
4320
4098
|
});
|
|
4321
4099
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
if (data.UpdateTime != null) {
|
|
4329
|
-
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
|
|
4330
|
-
}
|
|
4100
|
+
const doc = take(data, {
|
|
4101
|
+
KeyArn: __expectString,
|
|
4102
|
+
KeyName: __expectString,
|
|
4103
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4104
|
+
});
|
|
4105
|
+
Object.assign(contents, doc);
|
|
4331
4106
|
return contents;
|
|
4332
4107
|
};
|
|
4333
4108
|
const de_UpdateKeyCommandError = async (output, context) => {
|
|
@@ -4354,10 +4129,9 @@ const de_UpdateKeyCommandError = async (output, context) => {
|
|
|
4354
4129
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4355
4130
|
default:
|
|
4356
4131
|
const parsedBody = parsedOutput.body;
|
|
4357
|
-
throwDefaultError({
|
|
4132
|
+
return throwDefaultError({
|
|
4358
4133
|
output,
|
|
4359
4134
|
parsedBody,
|
|
4360
|
-
exceptionCtor: __BaseException,
|
|
4361
4135
|
errorCode,
|
|
4362
4136
|
});
|
|
4363
4137
|
}
|
|
@@ -4370,15 +4144,12 @@ export const de_UpdateMapCommand = async (output, context) => {
|
|
|
4370
4144
|
$metadata: deserializeMetadata(output),
|
|
4371
4145
|
});
|
|
4372
4146
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
if (data.UpdateTime != null) {
|
|
4380
|
-
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
|
|
4381
|
-
}
|
|
4147
|
+
const doc = take(data, {
|
|
4148
|
+
MapArn: __expectString,
|
|
4149
|
+
MapName: __expectString,
|
|
4150
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4151
|
+
});
|
|
4152
|
+
Object.assign(contents, doc);
|
|
4382
4153
|
return contents;
|
|
4383
4154
|
};
|
|
4384
4155
|
const de_UpdateMapCommandError = async (output, context) => {
|
|
@@ -4405,10 +4176,9 @@ const de_UpdateMapCommandError = async (output, context) => {
|
|
|
4405
4176
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4406
4177
|
default:
|
|
4407
4178
|
const parsedBody = parsedOutput.body;
|
|
4408
|
-
throwDefaultError({
|
|
4179
|
+
return throwDefaultError({
|
|
4409
4180
|
output,
|
|
4410
4181
|
parsedBody,
|
|
4411
|
-
exceptionCtor: __BaseException,
|
|
4412
4182
|
errorCode,
|
|
4413
4183
|
});
|
|
4414
4184
|
}
|
|
@@ -4421,15 +4191,12 @@ export const de_UpdatePlaceIndexCommand = async (output, context) => {
|
|
|
4421
4191
|
$metadata: deserializeMetadata(output),
|
|
4422
4192
|
});
|
|
4423
4193
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
if (data.UpdateTime != null) {
|
|
4431
|
-
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
|
|
4432
|
-
}
|
|
4194
|
+
const doc = take(data, {
|
|
4195
|
+
IndexArn: __expectString,
|
|
4196
|
+
IndexName: __expectString,
|
|
4197
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4198
|
+
});
|
|
4199
|
+
Object.assign(contents, doc);
|
|
4433
4200
|
return contents;
|
|
4434
4201
|
};
|
|
4435
4202
|
const de_UpdatePlaceIndexCommandError = async (output, context) => {
|
|
@@ -4456,10 +4223,9 @@ const de_UpdatePlaceIndexCommandError = async (output, context) => {
|
|
|
4456
4223
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4457
4224
|
default:
|
|
4458
4225
|
const parsedBody = parsedOutput.body;
|
|
4459
|
-
throwDefaultError({
|
|
4226
|
+
return throwDefaultError({
|
|
4460
4227
|
output,
|
|
4461
4228
|
parsedBody,
|
|
4462
|
-
exceptionCtor: __BaseException,
|
|
4463
4229
|
errorCode,
|
|
4464
4230
|
});
|
|
4465
4231
|
}
|
|
@@ -4472,15 +4238,12 @@ export const de_UpdateRouteCalculatorCommand = async (output, context) => {
|
|
|
4472
4238
|
$metadata: deserializeMetadata(output),
|
|
4473
4239
|
});
|
|
4474
4240
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
if (data.UpdateTime != null) {
|
|
4482
|
-
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
|
|
4483
|
-
}
|
|
4241
|
+
const doc = take(data, {
|
|
4242
|
+
CalculatorArn: __expectString,
|
|
4243
|
+
CalculatorName: __expectString,
|
|
4244
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4245
|
+
});
|
|
4246
|
+
Object.assign(contents, doc);
|
|
4484
4247
|
return contents;
|
|
4485
4248
|
};
|
|
4486
4249
|
const de_UpdateRouteCalculatorCommandError = async (output, context) => {
|
|
@@ -4507,10 +4270,9 @@ const de_UpdateRouteCalculatorCommandError = async (output, context) => {
|
|
|
4507
4270
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4508
4271
|
default:
|
|
4509
4272
|
const parsedBody = parsedOutput.body;
|
|
4510
|
-
throwDefaultError({
|
|
4273
|
+
return throwDefaultError({
|
|
4511
4274
|
output,
|
|
4512
4275
|
parsedBody,
|
|
4513
|
-
exceptionCtor: __BaseException,
|
|
4514
4276
|
errorCode,
|
|
4515
4277
|
});
|
|
4516
4278
|
}
|
|
@@ -4523,15 +4285,12 @@ export const de_UpdateTrackerCommand = async (output, context) => {
|
|
|
4523
4285
|
$metadata: deserializeMetadata(output),
|
|
4524
4286
|
});
|
|
4525
4287
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
if (data.UpdateTime != null) {
|
|
4533
|
-
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.UpdateTime));
|
|
4534
|
-
}
|
|
4288
|
+
const doc = take(data, {
|
|
4289
|
+
TrackerArn: __expectString,
|
|
4290
|
+
TrackerName: __expectString,
|
|
4291
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4292
|
+
});
|
|
4293
|
+
Object.assign(contents, doc);
|
|
4535
4294
|
return contents;
|
|
4536
4295
|
};
|
|
4537
4296
|
const de_UpdateTrackerCommandError = async (output, context) => {
|
|
@@ -4558,21 +4317,21 @@ const de_UpdateTrackerCommandError = async (output, context) => {
|
|
|
4558
4317
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4559
4318
|
default:
|
|
4560
4319
|
const parsedBody = parsedOutput.body;
|
|
4561
|
-
throwDefaultError({
|
|
4320
|
+
return throwDefaultError({
|
|
4562
4321
|
output,
|
|
4563
4322
|
parsedBody,
|
|
4564
|
-
exceptionCtor: __BaseException,
|
|
4565
4323
|
errorCode,
|
|
4566
4324
|
});
|
|
4567
4325
|
}
|
|
4568
4326
|
};
|
|
4569
|
-
const
|
|
4327
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
4570
4328
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
4571
4329
|
const contents = map({});
|
|
4572
4330
|
const data = parsedOutput.body;
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
}
|
|
4331
|
+
const doc = take(data, {
|
|
4332
|
+
Message: [, __expectString, `message`],
|
|
4333
|
+
});
|
|
4334
|
+
Object.assign(contents, doc);
|
|
4576
4335
|
const exception = new AccessDeniedException({
|
|
4577
4336
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4578
4337
|
...contents,
|
|
@@ -4582,9 +4341,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
4582
4341
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
4583
4342
|
const contents = map({});
|
|
4584
4343
|
const data = parsedOutput.body;
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
}
|
|
4344
|
+
const doc = take(data, {
|
|
4345
|
+
Message: [, __expectString, `message`],
|
|
4346
|
+
});
|
|
4347
|
+
Object.assign(contents, doc);
|
|
4588
4348
|
const exception = new ConflictException({
|
|
4589
4349
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4590
4350
|
...contents,
|
|
@@ -4594,9 +4354,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
4594
4354
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
4595
4355
|
const contents = map({});
|
|
4596
4356
|
const data = parsedOutput.body;
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
}
|
|
4357
|
+
const doc = take(data, {
|
|
4358
|
+
Message: [, __expectString, `message`],
|
|
4359
|
+
});
|
|
4360
|
+
Object.assign(contents, doc);
|
|
4600
4361
|
const exception = new InternalServerException({
|
|
4601
4362
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4602
4363
|
...contents,
|
|
@@ -4606,9 +4367,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
4606
4367
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
4607
4368
|
const contents = map({});
|
|
4608
4369
|
const data = parsedOutput.body;
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
}
|
|
4370
|
+
const doc = take(data, {
|
|
4371
|
+
Message: [, __expectString, `message`],
|
|
4372
|
+
});
|
|
4373
|
+
Object.assign(contents, doc);
|
|
4612
4374
|
const exception = new ResourceNotFoundException({
|
|
4613
4375
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4614
4376
|
...contents,
|
|
@@ -4618,9 +4380,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
4618
4380
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
4619
4381
|
const contents = map({});
|
|
4620
4382
|
const data = parsedOutput.body;
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
}
|
|
4383
|
+
const doc = take(data, {
|
|
4384
|
+
Message: [, __expectString, `message`],
|
|
4385
|
+
});
|
|
4386
|
+
Object.assign(contents, doc);
|
|
4624
4387
|
const exception = new ServiceQuotaExceededException({
|
|
4625
4388
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4626
4389
|
...contents,
|
|
@@ -4630,9 +4393,10 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
4630
4393
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
4631
4394
|
const contents = map({});
|
|
4632
4395
|
const data = parsedOutput.body;
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
}
|
|
4396
|
+
const doc = take(data, {
|
|
4397
|
+
Message: [, __expectString, `message`],
|
|
4398
|
+
});
|
|
4399
|
+
Object.assign(contents, doc);
|
|
4636
4400
|
const exception = new ThrottlingException({
|
|
4637
4401
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4638
4402
|
...contents,
|
|
@@ -4642,45 +4406,23 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
4642
4406
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
4643
4407
|
const contents = map({});
|
|
4644
4408
|
const data = parsedOutput.body;
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
if (data.reason != null) {
|
|
4652
|
-
contents.Reason = __expectString(data.reason);
|
|
4653
|
-
}
|
|
4409
|
+
const doc = take(data, {
|
|
4410
|
+
FieldList: [, (_) => de_ValidationExceptionFieldList(_, context), `fieldList`],
|
|
4411
|
+
Message: [, __expectString, `message`],
|
|
4412
|
+
Reason: [, __expectString, `reason`],
|
|
4413
|
+
});
|
|
4414
|
+
Object.assign(contents, doc);
|
|
4654
4415
|
const exception = new ValidationException({
|
|
4655
4416
|
$metadata: deserializeMetadata(parsedOutput),
|
|
4656
4417
|
...contents,
|
|
4657
4418
|
});
|
|
4658
4419
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
4659
4420
|
};
|
|
4660
|
-
const se_ApiKeyActionList = (input, context) => {
|
|
4661
|
-
return input
|
|
4662
|
-
.filter((e) => e != null)
|
|
4663
|
-
.map((entry) => {
|
|
4664
|
-
return entry;
|
|
4665
|
-
});
|
|
4666
|
-
};
|
|
4667
|
-
const se_ApiKeyFilter = (input, context) => {
|
|
4668
|
-
return {
|
|
4669
|
-
...(input.KeyStatus != null && { KeyStatus: input.KeyStatus }),
|
|
4670
|
-
};
|
|
4671
|
-
};
|
|
4672
|
-
const se_ApiKeyRestrictions = (input, context) => {
|
|
4673
|
-
return {
|
|
4674
|
-
...(input.AllowActions != null && { AllowActions: se_ApiKeyActionList(input.AllowActions, context) }),
|
|
4675
|
-
...(input.AllowReferers != null && { AllowReferers: se_RefererPatternList(input.AllowReferers, context) }),
|
|
4676
|
-
...(input.AllowResources != null && { AllowResources: se_GeoArnList(input.AllowResources, context) }),
|
|
4677
|
-
};
|
|
4678
|
-
};
|
|
4679
4421
|
const se_BatchPutGeofenceRequestEntry = (input, context) => {
|
|
4680
|
-
return {
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
};
|
|
4422
|
+
return take(input, {
|
|
4423
|
+
GeofenceId: [],
|
|
4424
|
+
Geometry: (_) => se_GeofenceGeometry(_, context),
|
|
4425
|
+
});
|
|
4684
4426
|
};
|
|
4685
4427
|
const se_BatchPutGeofenceRequestEntryList = (input, context) => {
|
|
4686
4428
|
return input
|
|
@@ -4696,53 +4438,28 @@ const se_BoundingBox = (input, context) => {
|
|
|
4696
4438
|
return __serializeFloat(entry);
|
|
4697
4439
|
});
|
|
4698
4440
|
};
|
|
4699
|
-
const se_CalculateRouteCarModeOptions = (input, context) => {
|
|
4700
|
-
return {
|
|
4701
|
-
...(input.AvoidFerries != null && { AvoidFerries: input.AvoidFerries }),
|
|
4702
|
-
...(input.AvoidTolls != null && { AvoidTolls: input.AvoidTolls }),
|
|
4703
|
-
};
|
|
4704
|
-
};
|
|
4705
4441
|
const se_CalculateRouteTruckModeOptions = (input, context) => {
|
|
4706
|
-
return {
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
};
|
|
4712
|
-
};
|
|
4713
|
-
const se_Circle = (input, context) => {
|
|
4714
|
-
return {
|
|
4715
|
-
...(input.Center != null && { Center: se_Position(input.Center, context) }),
|
|
4716
|
-
...(input.Radius != null && { Radius: __serializeFloat(input.Radius) }),
|
|
4717
|
-
};
|
|
4718
|
-
};
|
|
4719
|
-
const se_CountryCodeList = (input, context) => {
|
|
4720
|
-
return input
|
|
4721
|
-
.filter((e) => e != null)
|
|
4722
|
-
.map((entry) => {
|
|
4723
|
-
return entry;
|
|
4442
|
+
return take(input, {
|
|
4443
|
+
AvoidFerries: [],
|
|
4444
|
+
AvoidTolls: [],
|
|
4445
|
+
Dimensions: (_) => se_TruckDimensions(_, context),
|
|
4446
|
+
Weight: (_) => se_TruckWeight(_, context),
|
|
4724
4447
|
});
|
|
4725
4448
|
};
|
|
4726
|
-
const
|
|
4727
|
-
return {
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
};
|
|
4731
|
-
const se_DeviceIdsList = (input, context) => {
|
|
4732
|
-
return input
|
|
4733
|
-
.filter((e) => e != null)
|
|
4734
|
-
.map((entry) => {
|
|
4735
|
-
return entry;
|
|
4449
|
+
const se_Circle = (input, context) => {
|
|
4450
|
+
return take(input, {
|
|
4451
|
+
Center: (_) => se_Position(_, context),
|
|
4452
|
+
Radius: __serializeFloat,
|
|
4736
4453
|
});
|
|
4737
4454
|
};
|
|
4738
4455
|
const se_DevicePositionUpdate = (input, context) => {
|
|
4739
|
-
return {
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
};
|
|
4456
|
+
return take(input, {
|
|
4457
|
+
Accuracy: (_) => se_PositionalAccuracy(_, context),
|
|
4458
|
+
DeviceId: [],
|
|
4459
|
+
Position: (_) => se_Position(_, context),
|
|
4460
|
+
PositionProperties: _json,
|
|
4461
|
+
SampleTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
4462
|
+
});
|
|
4746
4463
|
};
|
|
4747
4464
|
const se_DevicePositionUpdateList = (input, context) => {
|
|
4748
4465
|
return input
|
|
@@ -4751,24 +4468,10 @@ const se_DevicePositionUpdateList = (input, context) => {
|
|
|
4751
4468
|
return se_DevicePositionUpdate(entry, context);
|
|
4752
4469
|
});
|
|
4753
4470
|
};
|
|
4754
|
-
const se_GeoArnList = (input, context) => {
|
|
4755
|
-
return input
|
|
4756
|
-
.filter((e) => e != null)
|
|
4757
|
-
.map((entry) => {
|
|
4758
|
-
return entry;
|
|
4759
|
-
});
|
|
4760
|
-
};
|
|
4761
4471
|
const se_GeofenceGeometry = (input, context) => {
|
|
4762
|
-
return {
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
};
|
|
4766
|
-
};
|
|
4767
|
-
const se_IdList = (input, context) => {
|
|
4768
|
-
return input
|
|
4769
|
-
.filter((e) => e != null)
|
|
4770
|
-
.map((entry) => {
|
|
4771
|
-
return entry;
|
|
4472
|
+
return take(input, {
|
|
4473
|
+
Circle: (_) => se_Circle(_, context),
|
|
4474
|
+
Polygon: (_) => se_LinearRings(_, context),
|
|
4772
4475
|
});
|
|
4773
4476
|
};
|
|
4774
4477
|
const se_LinearRing = (input, context) => {
|
|
@@ -4785,11 +4488,6 @@ const se_LinearRings = (input, context) => {
|
|
|
4785
4488
|
return se_LinearRing(entry, context);
|
|
4786
4489
|
});
|
|
4787
4490
|
};
|
|
4788
|
-
const se_MapConfiguration = (input, context) => {
|
|
4789
|
-
return {
|
|
4790
|
-
...(input.Style != null && { Style: input.Style }),
|
|
4791
|
-
};
|
|
4792
|
-
};
|
|
4793
4491
|
const se_Position = (input, context) => {
|
|
4794
4492
|
return input
|
|
4795
4493
|
.filter((e) => e != null)
|
|
@@ -4798,9 +4496,9 @@ const se_Position = (input, context) => {
|
|
|
4798
4496
|
});
|
|
4799
4497
|
};
|
|
4800
4498
|
const se_PositionalAccuracy = (input, context) => {
|
|
4801
|
-
return {
|
|
4802
|
-
|
|
4803
|
-
};
|
|
4499
|
+
return take(input, {
|
|
4500
|
+
Horizontal: __serializeFloat,
|
|
4501
|
+
});
|
|
4804
4502
|
};
|
|
4805
4503
|
const se_PositionList = (input, context) => {
|
|
4806
4504
|
return input
|
|
@@ -4809,44 +4507,19 @@ const se_PositionList = (input, context) => {
|
|
|
4809
4507
|
return se_Position(entry, context);
|
|
4810
4508
|
});
|
|
4811
4509
|
};
|
|
4812
|
-
const se_PropertyMap = (input, context) => {
|
|
4813
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4814
|
-
if (value === null) {
|
|
4815
|
-
return acc;
|
|
4816
|
-
}
|
|
4817
|
-
acc[key] = value;
|
|
4818
|
-
return acc;
|
|
4819
|
-
}, {});
|
|
4820
|
-
};
|
|
4821
|
-
const se_RefererPatternList = (input, context) => {
|
|
4822
|
-
return input
|
|
4823
|
-
.filter((e) => e != null)
|
|
4824
|
-
.map((entry) => {
|
|
4825
|
-
return entry;
|
|
4826
|
-
});
|
|
4827
|
-
};
|
|
4828
|
-
const se_TagMap = (input, context) => {
|
|
4829
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4830
|
-
if (value === null) {
|
|
4831
|
-
return acc;
|
|
4832
|
-
}
|
|
4833
|
-
acc[key] = value;
|
|
4834
|
-
return acc;
|
|
4835
|
-
}, {});
|
|
4836
|
-
};
|
|
4837
4510
|
const se_TruckDimensions = (input, context) => {
|
|
4838
|
-
return {
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
};
|
|
4511
|
+
return take(input, {
|
|
4512
|
+
Height: __serializeFloat,
|
|
4513
|
+
Length: __serializeFloat,
|
|
4514
|
+
Unit: [],
|
|
4515
|
+
Width: __serializeFloat,
|
|
4516
|
+
});
|
|
4844
4517
|
};
|
|
4845
4518
|
const se_TruckWeight = (input, context) => {
|
|
4846
|
-
return {
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
};
|
|
4519
|
+
return take(input, {
|
|
4520
|
+
Total: __serializeFloat,
|
|
4521
|
+
Unit: [],
|
|
4522
|
+
});
|
|
4850
4523
|
};
|
|
4851
4524
|
const se_WaypointPositionList = (input, context) => {
|
|
4852
4525
|
return input
|
|
@@ -4855,159 +4528,47 @@ const se_WaypointPositionList = (input, context) => {
|
|
|
4855
4528
|
return se_Position(entry, context);
|
|
4856
4529
|
});
|
|
4857
4530
|
};
|
|
4858
|
-
const de_ApiKeyActionList = (output, context) => {
|
|
4859
|
-
const retVal = (output || [])
|
|
4860
|
-
.filter((e) => e != null)
|
|
4861
|
-
.map((entry) => {
|
|
4862
|
-
if (entry === null) {
|
|
4863
|
-
return null;
|
|
4864
|
-
}
|
|
4865
|
-
return __expectString(entry);
|
|
4866
|
-
});
|
|
4867
|
-
return retVal;
|
|
4868
|
-
};
|
|
4869
|
-
const de_ApiKeyRestrictions = (output, context) => {
|
|
4870
|
-
return {
|
|
4871
|
-
AllowActions: output.AllowActions != null ? de_ApiKeyActionList(output.AllowActions, context) : undefined,
|
|
4872
|
-
AllowReferers: output.AllowReferers != null ? de_RefererPatternList(output.AllowReferers, context) : undefined,
|
|
4873
|
-
AllowResources: output.AllowResources != null ? de_GeoArnList(output.AllowResources, context) : undefined,
|
|
4874
|
-
};
|
|
4875
|
-
};
|
|
4876
|
-
const de_ArnList = (output, context) => {
|
|
4877
|
-
const retVal = (output || [])
|
|
4878
|
-
.filter((e) => e != null)
|
|
4879
|
-
.map((entry) => {
|
|
4880
|
-
if (entry === null) {
|
|
4881
|
-
return null;
|
|
4882
|
-
}
|
|
4883
|
-
return __expectString(entry);
|
|
4884
|
-
});
|
|
4885
|
-
return retVal;
|
|
4886
|
-
};
|
|
4887
|
-
const de_BatchDeleteDevicePositionHistoryError = (output, context) => {
|
|
4888
|
-
return {
|
|
4889
|
-
DeviceId: __expectString(output.DeviceId),
|
|
4890
|
-
Error: output.Error != null ? de_BatchItemError(output.Error, context) : undefined,
|
|
4891
|
-
};
|
|
4892
|
-
};
|
|
4893
|
-
const de_BatchDeleteDevicePositionHistoryErrorList = (output, context) => {
|
|
4894
|
-
const retVal = (output || [])
|
|
4895
|
-
.filter((e) => e != null)
|
|
4896
|
-
.map((entry) => {
|
|
4897
|
-
if (entry === null) {
|
|
4898
|
-
return null;
|
|
4899
|
-
}
|
|
4900
|
-
return de_BatchDeleteDevicePositionHistoryError(entry, context);
|
|
4901
|
-
});
|
|
4902
|
-
return retVal;
|
|
4903
|
-
};
|
|
4904
|
-
const de_BatchDeleteGeofenceError = (output, context) => {
|
|
4905
|
-
return {
|
|
4906
|
-
Error: output.Error != null ? de_BatchItemError(output.Error, context) : undefined,
|
|
4907
|
-
GeofenceId: __expectString(output.GeofenceId),
|
|
4908
|
-
};
|
|
4909
|
-
};
|
|
4910
|
-
const de_BatchDeleteGeofenceErrorList = (output, context) => {
|
|
4911
|
-
const retVal = (output || [])
|
|
4912
|
-
.filter((e) => e != null)
|
|
4913
|
-
.map((entry) => {
|
|
4914
|
-
if (entry === null) {
|
|
4915
|
-
return null;
|
|
4916
|
-
}
|
|
4917
|
-
return de_BatchDeleteGeofenceError(entry, context);
|
|
4918
|
-
});
|
|
4919
|
-
return retVal;
|
|
4920
|
-
};
|
|
4921
4531
|
const de_BatchEvaluateGeofencesError = (output, context) => {
|
|
4922
|
-
return {
|
|
4923
|
-
DeviceId: __expectString
|
|
4924
|
-
Error:
|
|
4925
|
-
SampleTime:
|
|
4926
|
-
};
|
|
4532
|
+
return take(output, {
|
|
4533
|
+
DeviceId: __expectString,
|
|
4534
|
+
Error: _json,
|
|
4535
|
+
SampleTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4536
|
+
});
|
|
4927
4537
|
};
|
|
4928
4538
|
const de_BatchEvaluateGeofencesErrorList = (output, context) => {
|
|
4929
4539
|
const retVal = (output || [])
|
|
4930
4540
|
.filter((e) => e != null)
|
|
4931
4541
|
.map((entry) => {
|
|
4932
|
-
if (entry === null) {
|
|
4933
|
-
return null;
|
|
4934
|
-
}
|
|
4935
4542
|
return de_BatchEvaluateGeofencesError(entry, context);
|
|
4936
4543
|
});
|
|
4937
4544
|
return retVal;
|
|
4938
4545
|
};
|
|
4939
|
-
const de_BatchGetDevicePositionError = (output, context) => {
|
|
4940
|
-
return {
|
|
4941
|
-
DeviceId: __expectString(output.DeviceId),
|
|
4942
|
-
Error: output.Error != null ? de_BatchItemError(output.Error, context) : undefined,
|
|
4943
|
-
};
|
|
4944
|
-
};
|
|
4945
|
-
const de_BatchGetDevicePositionErrorList = (output, context) => {
|
|
4946
|
-
const retVal = (output || [])
|
|
4947
|
-
.filter((e) => e != null)
|
|
4948
|
-
.map((entry) => {
|
|
4949
|
-
if (entry === null) {
|
|
4950
|
-
return null;
|
|
4951
|
-
}
|
|
4952
|
-
return de_BatchGetDevicePositionError(entry, context);
|
|
4953
|
-
});
|
|
4954
|
-
return retVal;
|
|
4955
|
-
};
|
|
4956
|
-
const de_BatchItemError = (output, context) => {
|
|
4957
|
-
return {
|
|
4958
|
-
Code: __expectString(output.Code),
|
|
4959
|
-
Message: __expectString(output.Message),
|
|
4960
|
-
};
|
|
4961
|
-
};
|
|
4962
|
-
const de_BatchPutGeofenceError = (output, context) => {
|
|
4963
|
-
return {
|
|
4964
|
-
Error: output.Error != null ? de_BatchItemError(output.Error, context) : undefined,
|
|
4965
|
-
GeofenceId: __expectString(output.GeofenceId),
|
|
4966
|
-
};
|
|
4967
|
-
};
|
|
4968
|
-
const de_BatchPutGeofenceErrorList = (output, context) => {
|
|
4969
|
-
const retVal = (output || [])
|
|
4970
|
-
.filter((e) => e != null)
|
|
4971
|
-
.map((entry) => {
|
|
4972
|
-
if (entry === null) {
|
|
4973
|
-
return null;
|
|
4974
|
-
}
|
|
4975
|
-
return de_BatchPutGeofenceError(entry, context);
|
|
4976
|
-
});
|
|
4977
|
-
return retVal;
|
|
4978
|
-
};
|
|
4979
4546
|
const de_BatchPutGeofenceSuccess = (output, context) => {
|
|
4980
|
-
return {
|
|
4981
|
-
CreateTime:
|
|
4982
|
-
GeofenceId: __expectString
|
|
4983
|
-
UpdateTime:
|
|
4984
|
-
};
|
|
4547
|
+
return take(output, {
|
|
4548
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4549
|
+
GeofenceId: __expectString,
|
|
4550
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4551
|
+
});
|
|
4985
4552
|
};
|
|
4986
4553
|
const de_BatchPutGeofenceSuccessList = (output, context) => {
|
|
4987
4554
|
const retVal = (output || [])
|
|
4988
4555
|
.filter((e) => e != null)
|
|
4989
4556
|
.map((entry) => {
|
|
4990
|
-
if (entry === null) {
|
|
4991
|
-
return null;
|
|
4992
|
-
}
|
|
4993
4557
|
return de_BatchPutGeofenceSuccess(entry, context);
|
|
4994
4558
|
});
|
|
4995
4559
|
return retVal;
|
|
4996
4560
|
};
|
|
4997
4561
|
const de_BatchUpdateDevicePositionError = (output, context) => {
|
|
4998
|
-
return {
|
|
4999
|
-
DeviceId: __expectString
|
|
5000
|
-
Error:
|
|
5001
|
-
SampleTime:
|
|
5002
|
-
};
|
|
4562
|
+
return take(output, {
|
|
4563
|
+
DeviceId: __expectString,
|
|
4564
|
+
Error: _json,
|
|
4565
|
+
SampleTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4566
|
+
});
|
|
5003
4567
|
};
|
|
5004
4568
|
const de_BatchUpdateDevicePositionErrorList = (output, context) => {
|
|
5005
4569
|
const retVal = (output || [])
|
|
5006
4570
|
.filter((e) => e != null)
|
|
5007
4571
|
.map((entry) => {
|
|
5008
|
-
if (entry === null) {
|
|
5009
|
-
return null;
|
|
5010
|
-
}
|
|
5011
4572
|
return de_BatchUpdateDevicePositionError(entry, context);
|
|
5012
4573
|
});
|
|
5013
4574
|
return retVal;
|
|
@@ -5016,112 +4577,68 @@ const de_BoundingBox = (output, context) => {
|
|
|
5016
4577
|
const retVal = (output || [])
|
|
5017
4578
|
.filter((e) => e != null)
|
|
5018
4579
|
.map((entry) => {
|
|
5019
|
-
if (entry === null) {
|
|
5020
|
-
return null;
|
|
5021
|
-
}
|
|
5022
4580
|
return __limitedParseDouble(entry);
|
|
5023
4581
|
});
|
|
5024
4582
|
return retVal;
|
|
5025
4583
|
};
|
|
5026
|
-
const de_CalculateRouteMatrixSummary = (output, context) => {
|
|
5027
|
-
return {
|
|
5028
|
-
DataSource: __expectString(output.DataSource),
|
|
5029
|
-
DistanceUnit: __expectString(output.DistanceUnit),
|
|
5030
|
-
ErrorCount: __expectInt32(output.ErrorCount),
|
|
5031
|
-
RouteCount: __expectInt32(output.RouteCount),
|
|
5032
|
-
};
|
|
5033
|
-
};
|
|
5034
4584
|
const de_CalculateRouteSummary = (output, context) => {
|
|
5035
|
-
return {
|
|
5036
|
-
DataSource: __expectString
|
|
5037
|
-
Distance: __limitedParseDouble
|
|
5038
|
-
DistanceUnit: __expectString
|
|
5039
|
-
DurationSeconds: __limitedParseDouble
|
|
5040
|
-
RouteBBox:
|
|
5041
|
-
};
|
|
4585
|
+
return take(output, {
|
|
4586
|
+
DataSource: __expectString,
|
|
4587
|
+
Distance: __limitedParseDouble,
|
|
4588
|
+
DistanceUnit: __expectString,
|
|
4589
|
+
DurationSeconds: __limitedParseDouble,
|
|
4590
|
+
RouteBBox: (_) => de_BoundingBox(_, context),
|
|
4591
|
+
});
|
|
5042
4592
|
};
|
|
5043
4593
|
const de_Circle = (output, context) => {
|
|
5044
|
-
return {
|
|
5045
|
-
Center:
|
|
5046
|
-
Radius: __limitedParseDouble
|
|
5047
|
-
};
|
|
5048
|
-
};
|
|
5049
|
-
const de_CountryCodeList = (output, context) => {
|
|
5050
|
-
const retVal = (output || [])
|
|
5051
|
-
.filter((e) => e != null)
|
|
5052
|
-
.map((entry) => {
|
|
5053
|
-
if (entry === null) {
|
|
5054
|
-
return null;
|
|
5055
|
-
}
|
|
5056
|
-
return __expectString(entry);
|
|
4594
|
+
return take(output, {
|
|
4595
|
+
Center: (_) => de_Position(_, context),
|
|
4596
|
+
Radius: __limitedParseDouble,
|
|
5057
4597
|
});
|
|
5058
|
-
return retVal;
|
|
5059
|
-
};
|
|
5060
|
-
const de_DataSourceConfiguration = (output, context) => {
|
|
5061
|
-
return {
|
|
5062
|
-
IntendedUse: __expectString(output.IntendedUse),
|
|
5063
|
-
};
|
|
5064
4598
|
};
|
|
5065
4599
|
const de_DevicePosition = (output, context) => {
|
|
5066
|
-
return {
|
|
5067
|
-
Accuracy:
|
|
5068
|
-
DeviceId: __expectString
|
|
5069
|
-
Position:
|
|
5070
|
-
PositionProperties:
|
|
5071
|
-
ReceivedTime:
|
|
5072
|
-
SampleTime:
|
|
5073
|
-
};
|
|
4600
|
+
return take(output, {
|
|
4601
|
+
Accuracy: (_) => de_PositionalAccuracy(_, context),
|
|
4602
|
+
DeviceId: __expectString,
|
|
4603
|
+
Position: (_) => de_Position(_, context),
|
|
4604
|
+
PositionProperties: _json,
|
|
4605
|
+
ReceivedTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4606
|
+
SampleTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4607
|
+
});
|
|
5074
4608
|
};
|
|
5075
4609
|
const de_DevicePositionList = (output, context) => {
|
|
5076
4610
|
const retVal = (output || [])
|
|
5077
4611
|
.filter((e) => e != null)
|
|
5078
4612
|
.map((entry) => {
|
|
5079
|
-
if (entry === null) {
|
|
5080
|
-
return null;
|
|
5081
|
-
}
|
|
5082
4613
|
return de_DevicePosition(entry, context);
|
|
5083
4614
|
});
|
|
5084
4615
|
return retVal;
|
|
5085
4616
|
};
|
|
5086
|
-
const de_GeoArnList = (output, context) => {
|
|
5087
|
-
const retVal = (output || [])
|
|
5088
|
-
.filter((e) => e != null)
|
|
5089
|
-
.map((entry) => {
|
|
5090
|
-
if (entry === null) {
|
|
5091
|
-
return null;
|
|
5092
|
-
}
|
|
5093
|
-
return __expectString(entry);
|
|
5094
|
-
});
|
|
5095
|
-
return retVal;
|
|
5096
|
-
};
|
|
5097
4617
|
const de_GeofenceGeometry = (output, context) => {
|
|
5098
|
-
return {
|
|
5099
|
-
Circle:
|
|
5100
|
-
Polygon:
|
|
5101
|
-
};
|
|
4618
|
+
return take(output, {
|
|
4619
|
+
Circle: (_) => de_Circle(_, context),
|
|
4620
|
+
Polygon: (_) => de_LinearRings(_, context),
|
|
4621
|
+
});
|
|
5102
4622
|
};
|
|
5103
4623
|
const de_Leg = (output, context) => {
|
|
5104
|
-
return {
|
|
5105
|
-
Distance: __limitedParseDouble
|
|
5106
|
-
DurationSeconds: __limitedParseDouble
|
|
5107
|
-
EndPosition:
|
|
5108
|
-
Geometry:
|
|
5109
|
-
StartPosition:
|
|
5110
|
-
Steps:
|
|
5111
|
-
};
|
|
4624
|
+
return take(output, {
|
|
4625
|
+
Distance: __limitedParseDouble,
|
|
4626
|
+
DurationSeconds: __limitedParseDouble,
|
|
4627
|
+
EndPosition: (_) => de_Position(_, context),
|
|
4628
|
+
Geometry: (_) => de_LegGeometry(_, context),
|
|
4629
|
+
StartPosition: (_) => de_Position(_, context),
|
|
4630
|
+
Steps: (_) => de_StepList(_, context),
|
|
4631
|
+
});
|
|
5112
4632
|
};
|
|
5113
4633
|
const de_LegGeometry = (output, context) => {
|
|
5114
|
-
return {
|
|
5115
|
-
LineString:
|
|
5116
|
-
};
|
|
4634
|
+
return take(output, {
|
|
4635
|
+
LineString: (_) => de_LineString(_, context),
|
|
4636
|
+
});
|
|
5117
4637
|
};
|
|
5118
4638
|
const de_LegList = (output, context) => {
|
|
5119
4639
|
const retVal = (output || [])
|
|
5120
4640
|
.filter((e) => e != null)
|
|
5121
4641
|
.map((entry) => {
|
|
5122
|
-
if (entry === null) {
|
|
5123
|
-
return null;
|
|
5124
|
-
}
|
|
5125
4642
|
return de_Leg(entry, context);
|
|
5126
4643
|
});
|
|
5127
4644
|
return retVal;
|
|
@@ -5130,9 +4647,6 @@ const de_LinearRing = (output, context) => {
|
|
|
5130
4647
|
const retVal = (output || [])
|
|
5131
4648
|
.filter((e) => e != null)
|
|
5132
4649
|
.map((entry) => {
|
|
5133
|
-
if (entry === null) {
|
|
5134
|
-
return null;
|
|
5135
|
-
}
|
|
5136
4650
|
return de_Position(entry, context);
|
|
5137
4651
|
});
|
|
5138
4652
|
return retVal;
|
|
@@ -5141,9 +4655,6 @@ const de_LinearRings = (output, context) => {
|
|
|
5141
4655
|
const retVal = (output || [])
|
|
5142
4656
|
.filter((e) => e != null)
|
|
5143
4657
|
.map((entry) => {
|
|
5144
|
-
if (entry === null) {
|
|
5145
|
-
return null;
|
|
5146
|
-
}
|
|
5147
4658
|
return de_LinearRing(entry, context);
|
|
5148
4659
|
});
|
|
5149
4660
|
return retVal;
|
|
@@ -5152,422 +4663,308 @@ const de_LineString = (output, context) => {
|
|
|
5152
4663
|
const retVal = (output || [])
|
|
5153
4664
|
.filter((e) => e != null)
|
|
5154
4665
|
.map((entry) => {
|
|
5155
|
-
if (entry === null) {
|
|
5156
|
-
return null;
|
|
5157
|
-
}
|
|
5158
4666
|
return de_Position(entry, context);
|
|
5159
4667
|
});
|
|
5160
4668
|
return retVal;
|
|
5161
4669
|
};
|
|
5162
4670
|
const de_ListDevicePositionsResponseEntry = (output, context) => {
|
|
5163
|
-
return {
|
|
5164
|
-
Accuracy:
|
|
5165
|
-
DeviceId: __expectString
|
|
5166
|
-
Position:
|
|
5167
|
-
PositionProperties:
|
|
5168
|
-
SampleTime:
|
|
5169
|
-
};
|
|
4671
|
+
return take(output, {
|
|
4672
|
+
Accuracy: (_) => de_PositionalAccuracy(_, context),
|
|
4673
|
+
DeviceId: __expectString,
|
|
4674
|
+
Position: (_) => de_Position(_, context),
|
|
4675
|
+
PositionProperties: _json,
|
|
4676
|
+
SampleTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4677
|
+
});
|
|
5170
4678
|
};
|
|
5171
4679
|
const de_ListDevicePositionsResponseEntryList = (output, context) => {
|
|
5172
4680
|
const retVal = (output || [])
|
|
5173
4681
|
.filter((e) => e != null)
|
|
5174
4682
|
.map((entry) => {
|
|
5175
|
-
if (entry === null) {
|
|
5176
|
-
return null;
|
|
5177
|
-
}
|
|
5178
4683
|
return de_ListDevicePositionsResponseEntry(entry, context);
|
|
5179
4684
|
});
|
|
5180
4685
|
return retVal;
|
|
5181
4686
|
};
|
|
5182
4687
|
const de_ListGeofenceCollectionsResponseEntry = (output, context) => {
|
|
5183
|
-
return {
|
|
5184
|
-
CollectionName: __expectString
|
|
5185
|
-
CreateTime:
|
|
5186
|
-
Description: __expectString
|
|
5187
|
-
PricingPlan: __expectString
|
|
5188
|
-
PricingPlanDataSource: __expectString
|
|
5189
|
-
UpdateTime:
|
|
5190
|
-
};
|
|
4688
|
+
return take(output, {
|
|
4689
|
+
CollectionName: __expectString,
|
|
4690
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4691
|
+
Description: __expectString,
|
|
4692
|
+
PricingPlan: __expectString,
|
|
4693
|
+
PricingPlanDataSource: __expectString,
|
|
4694
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4695
|
+
});
|
|
5191
4696
|
};
|
|
5192
4697
|
const de_ListGeofenceCollectionsResponseEntryList = (output, context) => {
|
|
5193
4698
|
const retVal = (output || [])
|
|
5194
4699
|
.filter((e) => e != null)
|
|
5195
4700
|
.map((entry) => {
|
|
5196
|
-
if (entry === null) {
|
|
5197
|
-
return null;
|
|
5198
|
-
}
|
|
5199
4701
|
return de_ListGeofenceCollectionsResponseEntry(entry, context);
|
|
5200
4702
|
});
|
|
5201
4703
|
return retVal;
|
|
5202
4704
|
};
|
|
5203
4705
|
const de_ListGeofenceResponseEntry = (output, context) => {
|
|
5204
|
-
return {
|
|
5205
|
-
CreateTime:
|
|
5206
|
-
GeofenceId: __expectString
|
|
5207
|
-
Geometry:
|
|
5208
|
-
Status: __expectString
|
|
5209
|
-
UpdateTime:
|
|
5210
|
-
};
|
|
4706
|
+
return take(output, {
|
|
4707
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4708
|
+
GeofenceId: __expectString,
|
|
4709
|
+
Geometry: (_) => de_GeofenceGeometry(_, context),
|
|
4710
|
+
Status: __expectString,
|
|
4711
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4712
|
+
});
|
|
5211
4713
|
};
|
|
5212
4714
|
const de_ListGeofenceResponseEntryList = (output, context) => {
|
|
5213
4715
|
const retVal = (output || [])
|
|
5214
4716
|
.filter((e) => e != null)
|
|
5215
4717
|
.map((entry) => {
|
|
5216
|
-
if (entry === null) {
|
|
5217
|
-
return null;
|
|
5218
|
-
}
|
|
5219
4718
|
return de_ListGeofenceResponseEntry(entry, context);
|
|
5220
4719
|
});
|
|
5221
4720
|
return retVal;
|
|
5222
4721
|
};
|
|
5223
4722
|
const de_ListKeysResponseEntry = (output, context) => {
|
|
5224
|
-
return {
|
|
5225
|
-
CreateTime:
|
|
5226
|
-
Description: __expectString
|
|
5227
|
-
ExpireTime:
|
|
5228
|
-
KeyName: __expectString
|
|
5229
|
-
Restrictions:
|
|
5230
|
-
UpdateTime:
|
|
5231
|
-
};
|
|
4723
|
+
return take(output, {
|
|
4724
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4725
|
+
Description: __expectString,
|
|
4726
|
+
ExpireTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4727
|
+
KeyName: __expectString,
|
|
4728
|
+
Restrictions: _json,
|
|
4729
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4730
|
+
});
|
|
5232
4731
|
};
|
|
5233
4732
|
const de_ListKeysResponseEntryList = (output, context) => {
|
|
5234
4733
|
const retVal = (output || [])
|
|
5235
4734
|
.filter((e) => e != null)
|
|
5236
4735
|
.map((entry) => {
|
|
5237
|
-
if (entry === null) {
|
|
5238
|
-
return null;
|
|
5239
|
-
}
|
|
5240
4736
|
return de_ListKeysResponseEntry(entry, context);
|
|
5241
4737
|
});
|
|
5242
4738
|
return retVal;
|
|
5243
4739
|
};
|
|
5244
4740
|
const de_ListMapsResponseEntry = (output, context) => {
|
|
5245
|
-
return {
|
|
5246
|
-
CreateTime:
|
|
5247
|
-
DataSource: __expectString
|
|
5248
|
-
Description: __expectString
|
|
5249
|
-
MapName: __expectString
|
|
5250
|
-
PricingPlan: __expectString
|
|
5251
|
-
UpdateTime:
|
|
5252
|
-
};
|
|
4741
|
+
return take(output, {
|
|
4742
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4743
|
+
DataSource: __expectString,
|
|
4744
|
+
Description: __expectString,
|
|
4745
|
+
MapName: __expectString,
|
|
4746
|
+
PricingPlan: __expectString,
|
|
4747
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4748
|
+
});
|
|
5253
4749
|
};
|
|
5254
4750
|
const de_ListMapsResponseEntryList = (output, context) => {
|
|
5255
4751
|
const retVal = (output || [])
|
|
5256
4752
|
.filter((e) => e != null)
|
|
5257
4753
|
.map((entry) => {
|
|
5258
|
-
if (entry === null) {
|
|
5259
|
-
return null;
|
|
5260
|
-
}
|
|
5261
4754
|
return de_ListMapsResponseEntry(entry, context);
|
|
5262
4755
|
});
|
|
5263
4756
|
return retVal;
|
|
5264
4757
|
};
|
|
5265
4758
|
const de_ListPlaceIndexesResponseEntry = (output, context) => {
|
|
5266
|
-
return {
|
|
5267
|
-
CreateTime:
|
|
5268
|
-
DataSource: __expectString
|
|
5269
|
-
Description: __expectString
|
|
5270
|
-
IndexName: __expectString
|
|
5271
|
-
PricingPlan: __expectString
|
|
5272
|
-
UpdateTime:
|
|
5273
|
-
};
|
|
4759
|
+
return take(output, {
|
|
4760
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4761
|
+
DataSource: __expectString,
|
|
4762
|
+
Description: __expectString,
|
|
4763
|
+
IndexName: __expectString,
|
|
4764
|
+
PricingPlan: __expectString,
|
|
4765
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4766
|
+
});
|
|
5274
4767
|
};
|
|
5275
4768
|
const de_ListPlaceIndexesResponseEntryList = (output, context) => {
|
|
5276
4769
|
const retVal = (output || [])
|
|
5277
4770
|
.filter((e) => e != null)
|
|
5278
4771
|
.map((entry) => {
|
|
5279
|
-
if (entry === null) {
|
|
5280
|
-
return null;
|
|
5281
|
-
}
|
|
5282
4772
|
return de_ListPlaceIndexesResponseEntry(entry, context);
|
|
5283
4773
|
});
|
|
5284
4774
|
return retVal;
|
|
5285
4775
|
};
|
|
5286
4776
|
const de_ListRouteCalculatorsResponseEntry = (output, context) => {
|
|
5287
|
-
return {
|
|
5288
|
-
CalculatorName: __expectString
|
|
5289
|
-
CreateTime:
|
|
5290
|
-
DataSource: __expectString
|
|
5291
|
-
Description: __expectString
|
|
5292
|
-
PricingPlan: __expectString
|
|
5293
|
-
UpdateTime:
|
|
5294
|
-
};
|
|
4777
|
+
return take(output, {
|
|
4778
|
+
CalculatorName: __expectString,
|
|
4779
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4780
|
+
DataSource: __expectString,
|
|
4781
|
+
Description: __expectString,
|
|
4782
|
+
PricingPlan: __expectString,
|
|
4783
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4784
|
+
});
|
|
5295
4785
|
};
|
|
5296
4786
|
const de_ListRouteCalculatorsResponseEntryList = (output, context) => {
|
|
5297
4787
|
const retVal = (output || [])
|
|
5298
4788
|
.filter((e) => e != null)
|
|
5299
4789
|
.map((entry) => {
|
|
5300
|
-
if (entry === null) {
|
|
5301
|
-
return null;
|
|
5302
|
-
}
|
|
5303
4790
|
return de_ListRouteCalculatorsResponseEntry(entry, context);
|
|
5304
4791
|
});
|
|
5305
4792
|
return retVal;
|
|
5306
4793
|
};
|
|
5307
4794
|
const de_ListTrackersResponseEntry = (output, context) => {
|
|
5308
|
-
return {
|
|
5309
|
-
CreateTime:
|
|
5310
|
-
Description: __expectString
|
|
5311
|
-
PricingPlan: __expectString
|
|
5312
|
-
PricingPlanDataSource: __expectString
|
|
5313
|
-
TrackerName: __expectString
|
|
5314
|
-
UpdateTime:
|
|
5315
|
-
};
|
|
4795
|
+
return take(output, {
|
|
4796
|
+
CreateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4797
|
+
Description: __expectString,
|
|
4798
|
+
PricingPlan: __expectString,
|
|
4799
|
+
PricingPlanDataSource: __expectString,
|
|
4800
|
+
TrackerName: __expectString,
|
|
4801
|
+
UpdateTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
4802
|
+
});
|
|
5316
4803
|
};
|
|
5317
4804
|
const de_ListTrackersResponseEntryList = (output, context) => {
|
|
5318
4805
|
const retVal = (output || [])
|
|
5319
4806
|
.filter((e) => e != null)
|
|
5320
4807
|
.map((entry) => {
|
|
5321
|
-
if (entry === null) {
|
|
5322
|
-
return null;
|
|
5323
|
-
}
|
|
5324
4808
|
return de_ListTrackersResponseEntry(entry, context);
|
|
5325
4809
|
});
|
|
5326
4810
|
return retVal;
|
|
5327
4811
|
};
|
|
5328
|
-
const de_MapConfiguration = (output, context) => {
|
|
5329
|
-
return {
|
|
5330
|
-
Style: __expectString(output.Style),
|
|
5331
|
-
};
|
|
5332
|
-
};
|
|
5333
4812
|
const de_Place = (output, context) => {
|
|
5334
|
-
return {
|
|
5335
|
-
AddressNumber: __expectString
|
|
5336
|
-
Country: __expectString
|
|
5337
|
-
Geometry:
|
|
5338
|
-
Interpolated: __expectBoolean
|
|
5339
|
-
Label: __expectString
|
|
5340
|
-
Municipality: __expectString
|
|
5341
|
-
Neighborhood: __expectString
|
|
5342
|
-
PostalCode: __expectString
|
|
5343
|
-
Region: __expectString
|
|
5344
|
-
Street: __expectString
|
|
5345
|
-
SubRegion: __expectString
|
|
5346
|
-
TimeZone:
|
|
5347
|
-
UnitNumber: __expectString
|
|
5348
|
-
UnitType: __expectString
|
|
5349
|
-
};
|
|
4813
|
+
return take(output, {
|
|
4814
|
+
AddressNumber: __expectString,
|
|
4815
|
+
Country: __expectString,
|
|
4816
|
+
Geometry: (_) => de_PlaceGeometry(_, context),
|
|
4817
|
+
Interpolated: __expectBoolean,
|
|
4818
|
+
Label: __expectString,
|
|
4819
|
+
Municipality: __expectString,
|
|
4820
|
+
Neighborhood: __expectString,
|
|
4821
|
+
PostalCode: __expectString,
|
|
4822
|
+
Region: __expectString,
|
|
4823
|
+
Street: __expectString,
|
|
4824
|
+
SubRegion: __expectString,
|
|
4825
|
+
TimeZone: _json,
|
|
4826
|
+
UnitNumber: __expectString,
|
|
4827
|
+
UnitType: __expectString,
|
|
4828
|
+
});
|
|
5350
4829
|
};
|
|
5351
4830
|
const de_PlaceGeometry = (output, context) => {
|
|
5352
|
-
return {
|
|
5353
|
-
Point:
|
|
5354
|
-
};
|
|
4831
|
+
return take(output, {
|
|
4832
|
+
Point: (_) => de_Position(_, context),
|
|
4833
|
+
});
|
|
5355
4834
|
};
|
|
5356
4835
|
const de_Position = (output, context) => {
|
|
5357
4836
|
const retVal = (output || [])
|
|
5358
4837
|
.filter((e) => e != null)
|
|
5359
4838
|
.map((entry) => {
|
|
5360
|
-
if (entry === null) {
|
|
5361
|
-
return null;
|
|
5362
|
-
}
|
|
5363
4839
|
return __limitedParseDouble(entry);
|
|
5364
4840
|
});
|
|
5365
4841
|
return retVal;
|
|
5366
4842
|
};
|
|
5367
4843
|
const de_PositionalAccuracy = (output, context) => {
|
|
5368
|
-
return {
|
|
5369
|
-
Horizontal: __limitedParseDouble
|
|
5370
|
-
};
|
|
4844
|
+
return take(output, {
|
|
4845
|
+
Horizontal: __limitedParseDouble,
|
|
4846
|
+
});
|
|
5371
4847
|
};
|
|
5372
4848
|
const de_PositionList = (output, context) => {
|
|
5373
4849
|
const retVal = (output || [])
|
|
5374
4850
|
.filter((e) => e != null)
|
|
5375
4851
|
.map((entry) => {
|
|
5376
|
-
if (entry === null) {
|
|
5377
|
-
return null;
|
|
5378
|
-
}
|
|
5379
4852
|
return de_Position(entry, context);
|
|
5380
4853
|
});
|
|
5381
4854
|
return retVal;
|
|
5382
4855
|
};
|
|
5383
|
-
const de_PropertyMap = (output, context) => {
|
|
5384
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
5385
|
-
if (value === null) {
|
|
5386
|
-
return acc;
|
|
5387
|
-
}
|
|
5388
|
-
acc[key] = __expectString(value);
|
|
5389
|
-
return acc;
|
|
5390
|
-
}, {});
|
|
5391
|
-
};
|
|
5392
|
-
const de_RefererPatternList = (output, context) => {
|
|
5393
|
-
const retVal = (output || [])
|
|
5394
|
-
.filter((e) => e != null)
|
|
5395
|
-
.map((entry) => {
|
|
5396
|
-
if (entry === null) {
|
|
5397
|
-
return null;
|
|
5398
|
-
}
|
|
5399
|
-
return __expectString(entry);
|
|
5400
|
-
});
|
|
5401
|
-
return retVal;
|
|
5402
|
-
};
|
|
5403
4856
|
const de_RouteMatrix = (output, context) => {
|
|
5404
4857
|
const retVal = (output || [])
|
|
5405
4858
|
.filter((e) => e != null)
|
|
5406
4859
|
.map((entry) => {
|
|
5407
|
-
if (entry === null) {
|
|
5408
|
-
return null;
|
|
5409
|
-
}
|
|
5410
4860
|
return de_RouteMatrixRow(entry, context);
|
|
5411
4861
|
});
|
|
5412
4862
|
return retVal;
|
|
5413
4863
|
};
|
|
5414
4864
|
const de_RouteMatrixEntry = (output, context) => {
|
|
5415
|
-
return {
|
|
5416
|
-
Distance: __limitedParseDouble
|
|
5417
|
-
DurationSeconds: __limitedParseDouble
|
|
5418
|
-
Error:
|
|
5419
|
-
};
|
|
5420
|
-
};
|
|
5421
|
-
const de_RouteMatrixEntryError = (output, context) => {
|
|
5422
|
-
return {
|
|
5423
|
-
Code: __expectString(output.Code),
|
|
5424
|
-
Message: __expectString(output.Message),
|
|
5425
|
-
};
|
|
4865
|
+
return take(output, {
|
|
4866
|
+
Distance: __limitedParseDouble,
|
|
4867
|
+
DurationSeconds: __limitedParseDouble,
|
|
4868
|
+
Error: _json,
|
|
4869
|
+
});
|
|
5426
4870
|
};
|
|
5427
4871
|
const de_RouteMatrixRow = (output, context) => {
|
|
5428
4872
|
const retVal = (output || [])
|
|
5429
4873
|
.filter((e) => e != null)
|
|
5430
4874
|
.map((entry) => {
|
|
5431
|
-
if (entry === null) {
|
|
5432
|
-
return null;
|
|
5433
|
-
}
|
|
5434
4875
|
return de_RouteMatrixEntry(entry, context);
|
|
5435
4876
|
});
|
|
5436
4877
|
return retVal;
|
|
5437
4878
|
};
|
|
5438
4879
|
const de_SearchForPositionResult = (output, context) => {
|
|
5439
|
-
return {
|
|
5440
|
-
Distance: __limitedParseDouble
|
|
5441
|
-
Place:
|
|
5442
|
-
PlaceId: __expectString
|
|
5443
|
-
};
|
|
4880
|
+
return take(output, {
|
|
4881
|
+
Distance: __limitedParseDouble,
|
|
4882
|
+
Place: (_) => de_Place(_, context),
|
|
4883
|
+
PlaceId: __expectString,
|
|
4884
|
+
});
|
|
5444
4885
|
};
|
|
5445
4886
|
const de_SearchForPositionResultList = (output, context) => {
|
|
5446
4887
|
const retVal = (output || [])
|
|
5447
4888
|
.filter((e) => e != null)
|
|
5448
4889
|
.map((entry) => {
|
|
5449
|
-
if (entry === null) {
|
|
5450
|
-
return null;
|
|
5451
|
-
}
|
|
5452
4890
|
return de_SearchForPositionResult(entry, context);
|
|
5453
4891
|
});
|
|
5454
4892
|
return retVal;
|
|
5455
4893
|
};
|
|
5456
|
-
const de_SearchForSuggestionsResult = (output, context) => {
|
|
5457
|
-
return {
|
|
5458
|
-
PlaceId: __expectString(output.PlaceId),
|
|
5459
|
-
Text: __expectString(output.Text),
|
|
5460
|
-
};
|
|
5461
|
-
};
|
|
5462
|
-
const de_SearchForSuggestionsResultList = (output, context) => {
|
|
5463
|
-
const retVal = (output || [])
|
|
5464
|
-
.filter((e) => e != null)
|
|
5465
|
-
.map((entry) => {
|
|
5466
|
-
if (entry === null) {
|
|
5467
|
-
return null;
|
|
5468
|
-
}
|
|
5469
|
-
return de_SearchForSuggestionsResult(entry, context);
|
|
5470
|
-
});
|
|
5471
|
-
return retVal;
|
|
5472
|
-
};
|
|
5473
4894
|
const de_SearchForTextResult = (output, context) => {
|
|
5474
|
-
return {
|
|
5475
|
-
Distance: __limitedParseDouble
|
|
5476
|
-
Place:
|
|
5477
|
-
PlaceId: __expectString
|
|
5478
|
-
Relevance: __limitedParseDouble
|
|
5479
|
-
};
|
|
4895
|
+
return take(output, {
|
|
4896
|
+
Distance: __limitedParseDouble,
|
|
4897
|
+
Place: (_) => de_Place(_, context),
|
|
4898
|
+
PlaceId: __expectString,
|
|
4899
|
+
Relevance: __limitedParseDouble,
|
|
4900
|
+
});
|
|
5480
4901
|
};
|
|
5481
4902
|
const de_SearchForTextResultList = (output, context) => {
|
|
5482
4903
|
const retVal = (output || [])
|
|
5483
4904
|
.filter((e) => e != null)
|
|
5484
4905
|
.map((entry) => {
|
|
5485
|
-
if (entry === null) {
|
|
5486
|
-
return null;
|
|
5487
|
-
}
|
|
5488
4906
|
return de_SearchForTextResult(entry, context);
|
|
5489
4907
|
});
|
|
5490
4908
|
return retVal;
|
|
5491
4909
|
};
|
|
5492
4910
|
const de_SearchPlaceIndexForPositionSummary = (output, context) => {
|
|
5493
|
-
return {
|
|
5494
|
-
DataSource: __expectString
|
|
5495
|
-
Language: __expectString
|
|
5496
|
-
MaxResults: __expectInt32
|
|
5497
|
-
Position:
|
|
5498
|
-
};
|
|
4911
|
+
return take(output, {
|
|
4912
|
+
DataSource: __expectString,
|
|
4913
|
+
Language: __expectString,
|
|
4914
|
+
MaxResults: __expectInt32,
|
|
4915
|
+
Position: (_) => de_Position(_, context),
|
|
4916
|
+
});
|
|
5499
4917
|
};
|
|
5500
4918
|
const de_SearchPlaceIndexForSuggestionsSummary = (output, context) => {
|
|
5501
|
-
return {
|
|
5502
|
-
BiasPosition:
|
|
5503
|
-
DataSource: __expectString
|
|
5504
|
-
FilterBBox:
|
|
5505
|
-
FilterCountries:
|
|
5506
|
-
Language: __expectString
|
|
5507
|
-
MaxResults: __expectInt32
|
|
5508
|
-
Text: __expectString
|
|
5509
|
-
};
|
|
4919
|
+
return take(output, {
|
|
4920
|
+
BiasPosition: (_) => de_Position(_, context),
|
|
4921
|
+
DataSource: __expectString,
|
|
4922
|
+
FilterBBox: (_) => de_BoundingBox(_, context),
|
|
4923
|
+
FilterCountries: _json,
|
|
4924
|
+
Language: __expectString,
|
|
4925
|
+
MaxResults: __expectInt32,
|
|
4926
|
+
Text: __expectString,
|
|
4927
|
+
});
|
|
5510
4928
|
};
|
|
5511
4929
|
const de_SearchPlaceIndexForTextSummary = (output, context) => {
|
|
5512
|
-
return {
|
|
5513
|
-
BiasPosition:
|
|
5514
|
-
DataSource: __expectString
|
|
5515
|
-
FilterBBox:
|
|
5516
|
-
FilterCountries:
|
|
5517
|
-
Language: __expectString
|
|
5518
|
-
MaxResults: __expectInt32
|
|
5519
|
-
ResultBBox:
|
|
5520
|
-
Text: __expectString
|
|
5521
|
-
};
|
|
4930
|
+
return take(output, {
|
|
4931
|
+
BiasPosition: (_) => de_Position(_, context),
|
|
4932
|
+
DataSource: __expectString,
|
|
4933
|
+
FilterBBox: (_) => de_BoundingBox(_, context),
|
|
4934
|
+
FilterCountries: _json,
|
|
4935
|
+
Language: __expectString,
|
|
4936
|
+
MaxResults: __expectInt32,
|
|
4937
|
+
ResultBBox: (_) => de_BoundingBox(_, context),
|
|
4938
|
+
Text: __expectString,
|
|
4939
|
+
});
|
|
5522
4940
|
};
|
|
5523
4941
|
const de_Step = (output, context) => {
|
|
5524
|
-
return {
|
|
5525
|
-
Distance: __limitedParseDouble
|
|
5526
|
-
DurationSeconds: __limitedParseDouble
|
|
5527
|
-
EndPosition:
|
|
5528
|
-
GeometryOffset: __expectInt32
|
|
5529
|
-
StartPosition:
|
|
5530
|
-
};
|
|
4942
|
+
return take(output, {
|
|
4943
|
+
Distance: __limitedParseDouble,
|
|
4944
|
+
DurationSeconds: __limitedParseDouble,
|
|
4945
|
+
EndPosition: (_) => de_Position(_, context),
|
|
4946
|
+
GeometryOffset: __expectInt32,
|
|
4947
|
+
StartPosition: (_) => de_Position(_, context),
|
|
4948
|
+
});
|
|
5531
4949
|
};
|
|
5532
4950
|
const de_StepList = (output, context) => {
|
|
5533
4951
|
const retVal = (output || [])
|
|
5534
4952
|
.filter((e) => e != null)
|
|
5535
4953
|
.map((entry) => {
|
|
5536
|
-
if (entry === null) {
|
|
5537
|
-
return null;
|
|
5538
|
-
}
|
|
5539
4954
|
return de_Step(entry, context);
|
|
5540
4955
|
});
|
|
5541
4956
|
return retVal;
|
|
5542
4957
|
};
|
|
5543
|
-
const de_TagMap = (output, context) => {
|
|
5544
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
5545
|
-
if (value === null) {
|
|
5546
|
-
return acc;
|
|
5547
|
-
}
|
|
5548
|
-
acc[key] = __expectString(value);
|
|
5549
|
-
return acc;
|
|
5550
|
-
}, {});
|
|
5551
|
-
};
|
|
5552
|
-
const de_TimeZone = (output, context) => {
|
|
5553
|
-
return {
|
|
5554
|
-
Name: __expectString(output.Name),
|
|
5555
|
-
Offset: __expectInt32(output.Offset),
|
|
5556
|
-
};
|
|
5557
|
-
};
|
|
5558
4958
|
const de_ValidationExceptionField = (output, context) => {
|
|
5559
|
-
return {
|
|
5560
|
-
Message: __expectString
|
|
5561
|
-
Name: __expectString
|
|
5562
|
-
};
|
|
4959
|
+
return take(output, {
|
|
4960
|
+
Message: [, __expectString, `message`],
|
|
4961
|
+
Name: [, __expectString, `name`],
|
|
4962
|
+
});
|
|
5563
4963
|
};
|
|
5564
4964
|
const de_ValidationExceptionFieldList = (output, context) => {
|
|
5565
4965
|
const retVal = (output || [])
|
|
5566
4966
|
.filter((e) => e != null)
|
|
5567
4967
|
.map((entry) => {
|
|
5568
|
-
if (entry === null) {
|
|
5569
|
-
return null;
|
|
5570
|
-
}
|
|
5571
4968
|
return de_ValidationExceptionField(entry, context);
|
|
5572
4969
|
});
|
|
5573
4970
|
return retVal;
|