@aws-sdk/client-location 3.121.0 → 3.127.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/CHANGELOG.md +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +183 -333
- package/dist-es/protocols/Aws_restJson1.js +112 -262
- package/package.json +26 -26
|
@@ -26,7 +26,7 @@ const serializeAws_restJson1AssociateTrackerConsumerCommand = async (input, cont
|
|
|
26
26
|
}
|
|
27
27
|
let body;
|
|
28
28
|
body = JSON.stringify({
|
|
29
|
-
...(input.ConsumerArn
|
|
29
|
+
...(input.ConsumerArn != null && { ConsumerArn: input.ConsumerArn }),
|
|
30
30
|
});
|
|
31
31
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
32
32
|
if (context.disableHostPrefix !== true) {
|
|
@@ -65,8 +65,7 @@ const serializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = async (inp
|
|
|
65
65
|
}
|
|
66
66
|
let body;
|
|
67
67
|
body = JSON.stringify({
|
|
68
|
-
...(input.DeviceIds
|
|
69
|
-
input.DeviceIds !== null && { DeviceIds: serializeAws_restJson1DeviceIdsList(input.DeviceIds, context) }),
|
|
68
|
+
...(input.DeviceIds != null && { DeviceIds: serializeAws_restJson1DeviceIdsList(input.DeviceIds, context) }),
|
|
70
69
|
});
|
|
71
70
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
72
71
|
if (context.disableHostPrefix !== true) {
|
|
@@ -105,8 +104,7 @@ const serializeAws_restJson1BatchDeleteGeofenceCommand = async (input, context)
|
|
|
105
104
|
}
|
|
106
105
|
let body;
|
|
107
106
|
body = JSON.stringify({
|
|
108
|
-
...(input.GeofenceIds
|
|
109
|
-
input.GeofenceIds !== null && { GeofenceIds: serializeAws_restJson1IdList(input.GeofenceIds, context) }),
|
|
107
|
+
...(input.GeofenceIds != null && { GeofenceIds: serializeAws_restJson1IdList(input.GeofenceIds, context) }),
|
|
110
108
|
});
|
|
111
109
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
112
110
|
if (context.disableHostPrefix !== true) {
|
|
@@ -145,8 +143,7 @@ const serializeAws_restJson1BatchEvaluateGeofencesCommand = async (input, contex
|
|
|
145
143
|
}
|
|
146
144
|
let body;
|
|
147
145
|
body = JSON.stringify({
|
|
148
|
-
...(input.DevicePositionUpdates
|
|
149
|
-
input.DevicePositionUpdates !== null && {
|
|
146
|
+
...(input.DevicePositionUpdates != null && {
|
|
150
147
|
DevicePositionUpdates: serializeAws_restJson1DevicePositionUpdateList(input.DevicePositionUpdates, context),
|
|
151
148
|
}),
|
|
152
149
|
});
|
|
@@ -187,8 +184,7 @@ const serializeAws_restJson1BatchGetDevicePositionCommand = async (input, contex
|
|
|
187
184
|
}
|
|
188
185
|
let body;
|
|
189
186
|
body = JSON.stringify({
|
|
190
|
-
...(input.DeviceIds
|
|
191
|
-
input.DeviceIds !== null && { DeviceIds: serializeAws_restJson1IdList(input.DeviceIds, context) }),
|
|
187
|
+
...(input.DeviceIds != null && { DeviceIds: serializeAws_restJson1IdList(input.DeviceIds, context) }),
|
|
192
188
|
});
|
|
193
189
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
194
190
|
if (context.disableHostPrefix !== true) {
|
|
@@ -227,8 +223,7 @@ const serializeAws_restJson1BatchPutGeofenceCommand = async (input, context) =>
|
|
|
227
223
|
}
|
|
228
224
|
let body;
|
|
229
225
|
body = JSON.stringify({
|
|
230
|
-
...(input.Entries
|
|
231
|
-
input.Entries !== null && {
|
|
226
|
+
...(input.Entries != null && {
|
|
232
227
|
Entries: serializeAws_restJson1BatchPutGeofenceRequestEntryList(input.Entries, context),
|
|
233
228
|
}),
|
|
234
229
|
});
|
|
@@ -269,8 +264,7 @@ const serializeAws_restJson1BatchUpdateDevicePositionCommand = async (input, con
|
|
|
269
264
|
}
|
|
270
265
|
let body;
|
|
271
266
|
body = JSON.stringify({
|
|
272
|
-
...(input.Updates
|
|
273
|
-
input.Updates !== null && { Updates: serializeAws_restJson1DevicePositionUpdateList(input.Updates, context) }),
|
|
267
|
+
...(input.Updates != null && { Updates: serializeAws_restJson1DevicePositionUpdateList(input.Updates, context) }),
|
|
274
268
|
});
|
|
275
269
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
276
270
|
if (context.disableHostPrefix !== true) {
|
|
@@ -309,31 +303,24 @@ const serializeAws_restJson1CalculateRouteCommand = async (input, context) => {
|
|
|
309
303
|
}
|
|
310
304
|
let body;
|
|
311
305
|
body = JSON.stringify({
|
|
312
|
-
...(input.CarModeOptions
|
|
313
|
-
input.CarModeOptions !== null && {
|
|
306
|
+
...(input.CarModeOptions != null && {
|
|
314
307
|
CarModeOptions: serializeAws_restJson1CalculateRouteCarModeOptions(input.CarModeOptions, context),
|
|
315
308
|
}),
|
|
316
|
-
...(input.DepartNow
|
|
317
|
-
...(input.DeparturePosition
|
|
318
|
-
input.DeparturePosition !== null && {
|
|
309
|
+
...(input.DepartNow != null && { DepartNow: input.DepartNow }),
|
|
310
|
+
...(input.DeparturePosition != null && {
|
|
319
311
|
DeparturePosition: serializeAws_restJson1Position(input.DeparturePosition, context),
|
|
320
312
|
}),
|
|
321
|
-
...(input.DepartureTime
|
|
322
|
-
|
|
323
|
-
...(input.DestinationPosition !== undefined &&
|
|
324
|
-
input.DestinationPosition !== null && {
|
|
313
|
+
...(input.DepartureTime != null && { DepartureTime: input.DepartureTime.toISOString().split(".")[0] + "Z" }),
|
|
314
|
+
...(input.DestinationPosition != null && {
|
|
325
315
|
DestinationPosition: serializeAws_restJson1Position(input.DestinationPosition, context),
|
|
326
316
|
}),
|
|
327
|
-
...(input.DistanceUnit
|
|
328
|
-
...(input.IncludeLegGeometry
|
|
329
|
-
|
|
330
|
-
...(input.
|
|
331
|
-
...(input.TruckModeOptions !== undefined &&
|
|
332
|
-
input.TruckModeOptions !== null && {
|
|
317
|
+
...(input.DistanceUnit != null && { DistanceUnit: input.DistanceUnit }),
|
|
318
|
+
...(input.IncludeLegGeometry != null && { IncludeLegGeometry: input.IncludeLegGeometry }),
|
|
319
|
+
...(input.TravelMode != null && { TravelMode: input.TravelMode }),
|
|
320
|
+
...(input.TruckModeOptions != null && {
|
|
333
321
|
TruckModeOptions: serializeAws_restJson1CalculateRouteTruckModeOptions(input.TruckModeOptions, context),
|
|
334
322
|
}),
|
|
335
|
-
...(input.WaypointPositions
|
|
336
|
-
input.WaypointPositions !== null && {
|
|
323
|
+
...(input.WaypointPositions != null && {
|
|
337
324
|
WaypointPositions: serializeAws_restJson1WaypointPositionList(input.WaypointPositions, context),
|
|
338
325
|
}),
|
|
339
326
|
});
|
|
@@ -374,25 +361,20 @@ const serializeAws_restJson1CalculateRouteMatrixCommand = async (input, context)
|
|
|
374
361
|
}
|
|
375
362
|
let body;
|
|
376
363
|
body = JSON.stringify({
|
|
377
|
-
...(input.CarModeOptions
|
|
378
|
-
input.CarModeOptions !== null && {
|
|
364
|
+
...(input.CarModeOptions != null && {
|
|
379
365
|
CarModeOptions: serializeAws_restJson1CalculateRouteCarModeOptions(input.CarModeOptions, context),
|
|
380
366
|
}),
|
|
381
|
-
...(input.DepartNow
|
|
382
|
-
...(input.DeparturePositions
|
|
383
|
-
input.DeparturePositions !== null && {
|
|
367
|
+
...(input.DepartNow != null && { DepartNow: input.DepartNow }),
|
|
368
|
+
...(input.DeparturePositions != null && {
|
|
384
369
|
DeparturePositions: serializeAws_restJson1PositionList(input.DeparturePositions, context),
|
|
385
370
|
}),
|
|
386
|
-
...(input.DepartureTime
|
|
387
|
-
|
|
388
|
-
...(input.DestinationPositions !== undefined &&
|
|
389
|
-
input.DestinationPositions !== null && {
|
|
371
|
+
...(input.DepartureTime != null && { DepartureTime: input.DepartureTime.toISOString().split(".")[0] + "Z" }),
|
|
372
|
+
...(input.DestinationPositions != null && {
|
|
390
373
|
DestinationPositions: serializeAws_restJson1PositionList(input.DestinationPositions, context),
|
|
391
374
|
}),
|
|
392
|
-
...(input.DistanceUnit
|
|
393
|
-
...(input.TravelMode
|
|
394
|
-
...(input.TruckModeOptions
|
|
395
|
-
input.TruckModeOptions !== null && {
|
|
375
|
+
...(input.DistanceUnit != null && { DistanceUnit: input.DistanceUnit }),
|
|
376
|
+
...(input.TravelMode != null && { TravelMode: input.TravelMode }),
|
|
377
|
+
...(input.TruckModeOptions != null && {
|
|
396
378
|
TruckModeOptions: serializeAws_restJson1CalculateRouteTruckModeOptions(input.TruckModeOptions, context),
|
|
397
379
|
}),
|
|
398
380
|
});
|
|
@@ -422,14 +404,12 @@ const serializeAws_restJson1CreateGeofenceCollectionCommand = async (input, cont
|
|
|
422
404
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/geofencing/v0/collections";
|
|
423
405
|
let body;
|
|
424
406
|
body = JSON.stringify({
|
|
425
|
-
...(input.CollectionName
|
|
426
|
-
|
|
427
|
-
...(input.
|
|
428
|
-
...(input.
|
|
429
|
-
...(input.
|
|
430
|
-
...(input.
|
|
431
|
-
input.PricingPlanDataSource !== null && { PricingPlanDataSource: input.PricingPlanDataSource }),
|
|
432
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
407
|
+
...(input.CollectionName != null && { CollectionName: input.CollectionName }),
|
|
408
|
+
...(input.Description != null && { Description: input.Description }),
|
|
409
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
410
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
411
|
+
...(input.PricingPlanDataSource != null && { PricingPlanDataSource: input.PricingPlanDataSource }),
|
|
412
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
433
413
|
});
|
|
434
414
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
435
415
|
if (context.disableHostPrefix !== true) {
|
|
@@ -457,14 +437,13 @@ const serializeAws_restJson1CreateMapCommand = async (input, context) => {
|
|
|
457
437
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/maps";
|
|
458
438
|
let body;
|
|
459
439
|
body = JSON.stringify({
|
|
460
|
-
...(input.Configuration
|
|
461
|
-
input.Configuration !== null && {
|
|
440
|
+
...(input.Configuration != null && {
|
|
462
441
|
Configuration: serializeAws_restJson1MapConfiguration(input.Configuration, context),
|
|
463
442
|
}),
|
|
464
|
-
...(input.Description
|
|
465
|
-
...(input.MapName
|
|
466
|
-
...(input.PricingPlan
|
|
467
|
-
...(input.Tags
|
|
443
|
+
...(input.Description != null && { Description: input.Description }),
|
|
444
|
+
...(input.MapName != null && { MapName: input.MapName }),
|
|
445
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
446
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
468
447
|
});
|
|
469
448
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
470
449
|
if (context.disableHostPrefix !== true) {
|
|
@@ -492,15 +471,14 @@ const serializeAws_restJson1CreatePlaceIndexCommand = async (input, context) =>
|
|
|
492
471
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/indexes";
|
|
493
472
|
let body;
|
|
494
473
|
body = JSON.stringify({
|
|
495
|
-
...(input.DataSource
|
|
496
|
-
...(input.DataSourceConfiguration
|
|
497
|
-
input.DataSourceConfiguration !== null && {
|
|
474
|
+
...(input.DataSource != null && { DataSource: input.DataSource }),
|
|
475
|
+
...(input.DataSourceConfiguration != null && {
|
|
498
476
|
DataSourceConfiguration: serializeAws_restJson1DataSourceConfiguration(input.DataSourceConfiguration, context),
|
|
499
477
|
}),
|
|
500
|
-
...(input.Description
|
|
501
|
-
...(input.IndexName
|
|
502
|
-
...(input.PricingPlan
|
|
503
|
-
...(input.Tags
|
|
478
|
+
...(input.Description != null && { Description: input.Description }),
|
|
479
|
+
...(input.IndexName != null && { IndexName: input.IndexName }),
|
|
480
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
481
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
504
482
|
});
|
|
505
483
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
506
484
|
if (context.disableHostPrefix !== true) {
|
|
@@ -528,12 +506,11 @@ const serializeAws_restJson1CreateRouteCalculatorCommand = async (input, context
|
|
|
528
506
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/calculators";
|
|
529
507
|
let body;
|
|
530
508
|
body = JSON.stringify({
|
|
531
|
-
...(input.CalculatorName
|
|
532
|
-
|
|
533
|
-
...(input.
|
|
534
|
-
...(input.
|
|
535
|
-
...(input.
|
|
536
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
509
|
+
...(input.CalculatorName != null && { CalculatorName: input.CalculatorName }),
|
|
510
|
+
...(input.DataSource != null && { DataSource: input.DataSource }),
|
|
511
|
+
...(input.Description != null && { Description: input.Description }),
|
|
512
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
513
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
537
514
|
});
|
|
538
515
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
539
516
|
if (context.disableHostPrefix !== true) {
|
|
@@ -561,15 +538,13 @@ const serializeAws_restJson1CreateTrackerCommand = async (input, context) => {
|
|
|
561
538
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/trackers";
|
|
562
539
|
let body;
|
|
563
540
|
body = JSON.stringify({
|
|
564
|
-
...(input.Description
|
|
565
|
-
...(input.KmsKeyId
|
|
566
|
-
...(input.PositionFiltering
|
|
567
|
-
|
|
568
|
-
...(input.
|
|
569
|
-
...(input.
|
|
570
|
-
|
|
571
|
-
...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
572
|
-
...(input.TrackerName !== undefined && input.TrackerName !== null && { TrackerName: input.TrackerName }),
|
|
541
|
+
...(input.Description != null && { Description: input.Description }),
|
|
542
|
+
...(input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId }),
|
|
543
|
+
...(input.PositionFiltering != null && { PositionFiltering: input.PositionFiltering }),
|
|
544
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
545
|
+
...(input.PricingPlanDataSource != null && { PricingPlanDataSource: input.PricingPlanDataSource }),
|
|
546
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
547
|
+
...(input.TrackerName != null && { TrackerName: input.TrackerName }),
|
|
573
548
|
});
|
|
574
549
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
575
550
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1038,14 +1013,12 @@ const serializeAws_restJson1GetDevicePositionHistoryCommand = async (input, cont
|
|
|
1038
1013
|
}
|
|
1039
1014
|
let body;
|
|
1040
1015
|
body = JSON.stringify({
|
|
1041
|
-
...(input.EndTimeExclusive
|
|
1042
|
-
input.EndTimeExclusive !== null && {
|
|
1016
|
+
...(input.EndTimeExclusive != null && {
|
|
1043
1017
|
EndTimeExclusive: input.EndTimeExclusive.toISOString().split(".")[0] + "Z",
|
|
1044
1018
|
}),
|
|
1045
|
-
...(input.MaxResults
|
|
1046
|
-
...(input.NextToken
|
|
1047
|
-
...(input.StartTimeInclusive
|
|
1048
|
-
input.StartTimeInclusive !== null && {
|
|
1019
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1020
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1021
|
+
...(input.StartTimeInclusive != null && {
|
|
1049
1022
|
StartTimeInclusive: input.StartTimeInclusive.toISOString().split(".")[0] + "Z",
|
|
1050
1023
|
}),
|
|
1051
1024
|
});
|
|
@@ -1324,8 +1297,8 @@ const serializeAws_restJson1ListDevicePositionsCommand = async (input, context)
|
|
|
1324
1297
|
}
|
|
1325
1298
|
let body;
|
|
1326
1299
|
body = JSON.stringify({
|
|
1327
|
-
...(input.MaxResults
|
|
1328
|
-
...(input.NextToken
|
|
1300
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1301
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1329
1302
|
});
|
|
1330
1303
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1331
1304
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1353,8 +1326,8 @@ const serializeAws_restJson1ListGeofenceCollectionsCommand = async (input, conte
|
|
|
1353
1326
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/geofencing/v0/list-collections";
|
|
1354
1327
|
let body;
|
|
1355
1328
|
body = JSON.stringify({
|
|
1356
|
-
...(input.MaxResults
|
|
1357
|
-
...(input.NextToken
|
|
1329
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1330
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1358
1331
|
});
|
|
1359
1332
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1360
1333
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1393,8 +1366,8 @@ const serializeAws_restJson1ListGeofencesCommand = async (input, context) => {
|
|
|
1393
1366
|
}
|
|
1394
1367
|
let body;
|
|
1395
1368
|
body = JSON.stringify({
|
|
1396
|
-
...(input.MaxResults
|
|
1397
|
-
...(input.NextToken
|
|
1369
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1370
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1398
1371
|
});
|
|
1399
1372
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1400
1373
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1422,8 +1395,8 @@ const serializeAws_restJson1ListMapsCommand = async (input, context) => {
|
|
|
1422
1395
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/maps/v0/list-maps";
|
|
1423
1396
|
let body;
|
|
1424
1397
|
body = JSON.stringify({
|
|
1425
|
-
...(input.MaxResults
|
|
1426
|
-
...(input.NextToken
|
|
1398
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1399
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1427
1400
|
});
|
|
1428
1401
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1429
1402
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1451,8 +1424,8 @@ const serializeAws_restJson1ListPlaceIndexesCommand = async (input, context) =>
|
|
|
1451
1424
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/places/v0/list-indexes";
|
|
1452
1425
|
let body;
|
|
1453
1426
|
body = JSON.stringify({
|
|
1454
|
-
...(input.MaxResults
|
|
1455
|
-
...(input.NextToken
|
|
1427
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1428
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1456
1429
|
});
|
|
1457
1430
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1458
1431
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1480,8 +1453,8 @@ const serializeAws_restJson1ListRouteCalculatorsCommand = async (input, context)
|
|
|
1480
1453
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/routes/v0/list-calculators";
|
|
1481
1454
|
let body;
|
|
1482
1455
|
body = JSON.stringify({
|
|
1483
|
-
...(input.MaxResults
|
|
1484
|
-
...(input.NextToken
|
|
1456
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1457
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1485
1458
|
});
|
|
1486
1459
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1487
1460
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1553,8 +1526,8 @@ const serializeAws_restJson1ListTrackerConsumersCommand = async (input, context)
|
|
|
1553
1526
|
}
|
|
1554
1527
|
let body;
|
|
1555
1528
|
body = JSON.stringify({
|
|
1556
|
-
...(input.MaxResults
|
|
1557
|
-
...(input.NextToken
|
|
1529
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1530
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1558
1531
|
});
|
|
1559
1532
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1560
1533
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1582,8 +1555,8 @@ const serializeAws_restJson1ListTrackersCommand = async (input, context) => {
|
|
|
1582
1555
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tracking/v0/list-trackers";
|
|
1583
1556
|
let body;
|
|
1584
1557
|
body = JSON.stringify({
|
|
1585
|
-
...(input.MaxResults
|
|
1586
|
-
...(input.NextToken
|
|
1558
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1559
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1587
1560
|
});
|
|
1588
1561
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1589
1562
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1632,8 +1605,7 @@ const serializeAws_restJson1PutGeofenceCommand = async (input, context) => {
|
|
|
1632
1605
|
}
|
|
1633
1606
|
let body;
|
|
1634
1607
|
body = JSON.stringify({
|
|
1635
|
-
...(input.Geometry
|
|
1636
|
-
input.Geometry !== null && { Geometry: serializeAws_restJson1GeofenceGeometry(input.Geometry, context) }),
|
|
1608
|
+
...(input.Geometry != null && { Geometry: serializeAws_restJson1GeofenceGeometry(input.Geometry, context) }),
|
|
1637
1609
|
});
|
|
1638
1610
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1639
1611
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1672,10 +1644,9 @@ const serializeAws_restJson1SearchPlaceIndexForPositionCommand = async (input, c
|
|
|
1672
1644
|
}
|
|
1673
1645
|
let body;
|
|
1674
1646
|
body = JSON.stringify({
|
|
1675
|
-
...(input.Language
|
|
1676
|
-
...(input.MaxResults
|
|
1677
|
-
...(input.Position
|
|
1678
|
-
input.Position !== null && { Position: serializeAws_restJson1Position(input.Position, context) }),
|
|
1647
|
+
...(input.Language != null && { Language: input.Language }),
|
|
1648
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1649
|
+
...(input.Position != null && { Position: serializeAws_restJson1Position(input.Position, context) }),
|
|
1679
1650
|
});
|
|
1680
1651
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1681
1652
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1714,17 +1685,14 @@ const serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = async (input
|
|
|
1714
1685
|
}
|
|
1715
1686
|
let body;
|
|
1716
1687
|
body = JSON.stringify({
|
|
1717
|
-
...(input.BiasPosition
|
|
1718
|
-
|
|
1719
|
-
...(input.
|
|
1720
|
-
input.FilterBBox !== null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) }),
|
|
1721
|
-
...(input.FilterCountries !== undefined &&
|
|
1722
|
-
input.FilterCountries !== null && {
|
|
1688
|
+
...(input.BiasPosition != null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) }),
|
|
1689
|
+
...(input.FilterBBox != null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) }),
|
|
1690
|
+
...(input.FilterCountries != null && {
|
|
1723
1691
|
FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
|
|
1724
1692
|
}),
|
|
1725
|
-
...(input.Language
|
|
1726
|
-
...(input.MaxResults
|
|
1727
|
-
...(input.Text
|
|
1693
|
+
...(input.Language != null && { Language: input.Language }),
|
|
1694
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1695
|
+
...(input.Text != null && { Text: input.Text }),
|
|
1728
1696
|
});
|
|
1729
1697
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1730
1698
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1763,17 +1731,14 @@ const serializeAws_restJson1SearchPlaceIndexForTextCommand = async (input, conte
|
|
|
1763
1731
|
}
|
|
1764
1732
|
let body;
|
|
1765
1733
|
body = JSON.stringify({
|
|
1766
|
-
...(input.BiasPosition
|
|
1767
|
-
|
|
1768
|
-
...(input.
|
|
1769
|
-
input.FilterBBox !== null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) }),
|
|
1770
|
-
...(input.FilterCountries !== undefined &&
|
|
1771
|
-
input.FilterCountries !== null && {
|
|
1734
|
+
...(input.BiasPosition != null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) }),
|
|
1735
|
+
...(input.FilterBBox != null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) }),
|
|
1736
|
+
...(input.FilterCountries != null && {
|
|
1772
1737
|
FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
|
|
1773
1738
|
}),
|
|
1774
|
-
...(input.Language
|
|
1775
|
-
...(input.MaxResults
|
|
1776
|
-
...(input.Text
|
|
1739
|
+
...(input.Language != null && { Language: input.Language }),
|
|
1740
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1741
|
+
...(input.Text != null && { Text: input.Text }),
|
|
1777
1742
|
});
|
|
1778
1743
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1779
1744
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1811,7 +1776,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1811
1776
|
}
|
|
1812
1777
|
let body;
|
|
1813
1778
|
body = JSON.stringify({
|
|
1814
|
-
...(input.Tags
|
|
1779
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
1815
1780
|
});
|
|
1816
1781
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1817
1782
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1887,10 +1852,9 @@ const serializeAws_restJson1UpdateGeofenceCollectionCommand = async (input, cont
|
|
|
1887
1852
|
}
|
|
1888
1853
|
let body;
|
|
1889
1854
|
body = JSON.stringify({
|
|
1890
|
-
...(input.Description
|
|
1891
|
-
...(input.PricingPlan
|
|
1892
|
-
...(input.PricingPlanDataSource
|
|
1893
|
-
input.PricingPlanDataSource !== null && { PricingPlanDataSource: input.PricingPlanDataSource }),
|
|
1855
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1856
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
1857
|
+
...(input.PricingPlanDataSource != null && { PricingPlanDataSource: input.PricingPlanDataSource }),
|
|
1894
1858
|
});
|
|
1895
1859
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1896
1860
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1928,8 +1892,8 @@ const serializeAws_restJson1UpdateMapCommand = async (input, context) => {
|
|
|
1928
1892
|
}
|
|
1929
1893
|
let body;
|
|
1930
1894
|
body = JSON.stringify({
|
|
1931
|
-
...(input.Description
|
|
1932
|
-
...(input.PricingPlan
|
|
1895
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1896
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
1933
1897
|
});
|
|
1934
1898
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1935
1899
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1967,12 +1931,11 @@ const serializeAws_restJson1UpdatePlaceIndexCommand = async (input, context) =>
|
|
|
1967
1931
|
}
|
|
1968
1932
|
let body;
|
|
1969
1933
|
body = JSON.stringify({
|
|
1970
|
-
...(input.DataSourceConfiguration
|
|
1971
|
-
input.DataSourceConfiguration !== null && {
|
|
1934
|
+
...(input.DataSourceConfiguration != null && {
|
|
1972
1935
|
DataSourceConfiguration: serializeAws_restJson1DataSourceConfiguration(input.DataSourceConfiguration, context),
|
|
1973
1936
|
}),
|
|
1974
|
-
...(input.Description
|
|
1975
|
-
...(input.PricingPlan
|
|
1937
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1938
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
1976
1939
|
});
|
|
1977
1940
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1978
1941
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2010,8 +1973,8 @@ const serializeAws_restJson1UpdateRouteCalculatorCommand = async (input, context
|
|
|
2010
1973
|
}
|
|
2011
1974
|
let body;
|
|
2012
1975
|
body = JSON.stringify({
|
|
2013
|
-
...(input.Description
|
|
2014
|
-
...(input.PricingPlan
|
|
1976
|
+
...(input.Description != null && { Description: input.Description }),
|
|
1977
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
2015
1978
|
});
|
|
2016
1979
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2017
1980
|
if (context.disableHostPrefix !== true) {
|
|
@@ -2049,12 +2012,10 @@ const serializeAws_restJson1UpdateTrackerCommand = async (input, context) => {
|
|
|
2049
2012
|
}
|
|
2050
2013
|
let body;
|
|
2051
2014
|
body = JSON.stringify({
|
|
2052
|
-
...(input.Description
|
|
2053
|
-
...(input.PositionFiltering
|
|
2054
|
-
|
|
2055
|
-
...(input.
|
|
2056
|
-
...(input.PricingPlanDataSource !== undefined &&
|
|
2057
|
-
input.PricingPlanDataSource !== null && { PricingPlanDataSource: input.PricingPlanDataSource }),
|
|
2015
|
+
...(input.Description != null && { Description: input.Description }),
|
|
2016
|
+
...(input.PositionFiltering != null && { PositionFiltering: input.PositionFiltering }),
|
|
2017
|
+
...(input.PricingPlan != null && { PricingPlan: input.PricingPlan }),
|
|
2018
|
+
...(input.PricingPlanDataSource != null && { PricingPlanDataSource: input.PricingPlanDataSource }),
|
|
2058
2019
|
});
|
|
2059
2020
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2060
2021
|
if (context.disableHostPrefix !== true) {
|
|
@@ -5085,9 +5046,8 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
5085
5046
|
};
|
|
5086
5047
|
const serializeAws_restJson1BatchPutGeofenceRequestEntry = (input, context) => {
|
|
5087
5048
|
return {
|
|
5088
|
-
...(input.GeofenceId
|
|
5089
|
-
...(input.Geometry
|
|
5090
|
-
input.Geometry !== null && { Geometry: serializeAws_restJson1GeofenceGeometry(input.Geometry, context) }),
|
|
5049
|
+
...(input.GeofenceId != null && { GeofenceId: input.GeofenceId }),
|
|
5050
|
+
...(input.Geometry != null && { Geometry: serializeAws_restJson1GeofenceGeometry(input.Geometry, context) }),
|
|
5091
5051
|
};
|
|
5092
5052
|
};
|
|
5093
5053
|
const serializeAws_restJson1BatchPutGeofenceRequestEntryList = (input, context) => {
|
|
@@ -5112,18 +5072,16 @@ const serializeAws_restJson1BoundingBox = (input, context) => {
|
|
|
5112
5072
|
};
|
|
5113
5073
|
const serializeAws_restJson1CalculateRouteCarModeOptions = (input, context) => {
|
|
5114
5074
|
return {
|
|
5115
|
-
...(input.AvoidFerries
|
|
5116
|
-
...(input.AvoidTolls
|
|
5075
|
+
...(input.AvoidFerries != null && { AvoidFerries: input.AvoidFerries }),
|
|
5076
|
+
...(input.AvoidTolls != null && { AvoidTolls: input.AvoidTolls }),
|
|
5117
5077
|
};
|
|
5118
5078
|
};
|
|
5119
5079
|
const serializeAws_restJson1CalculateRouteTruckModeOptions = (input, context) => {
|
|
5120
5080
|
return {
|
|
5121
|
-
...(input.AvoidFerries
|
|
5122
|
-
...(input.AvoidTolls
|
|
5123
|
-
...(input.Dimensions
|
|
5124
|
-
|
|
5125
|
-
...(input.Weight !== undefined &&
|
|
5126
|
-
input.Weight !== null && { Weight: serializeAws_restJson1TruckWeight(input.Weight, context) }),
|
|
5081
|
+
...(input.AvoidFerries != null && { AvoidFerries: input.AvoidFerries }),
|
|
5082
|
+
...(input.AvoidTolls != null && { AvoidTolls: input.AvoidTolls }),
|
|
5083
|
+
...(input.Dimensions != null && { Dimensions: serializeAws_restJson1TruckDimensions(input.Dimensions, context) }),
|
|
5084
|
+
...(input.Weight != null && { Weight: serializeAws_restJson1TruckWeight(input.Weight, context) }),
|
|
5127
5085
|
};
|
|
5128
5086
|
};
|
|
5129
5087
|
const serializeAws_restJson1CountryCodeList = (input, context) => {
|
|
@@ -5138,7 +5096,7 @@ const serializeAws_restJson1CountryCodeList = (input, context) => {
|
|
|
5138
5096
|
};
|
|
5139
5097
|
const serializeAws_restJson1DataSourceConfiguration = (input, context) => {
|
|
5140
5098
|
return {
|
|
5141
|
-
...(input.IntendedUse
|
|
5099
|
+
...(input.IntendedUse != null && { IntendedUse: input.IntendedUse }),
|
|
5142
5100
|
};
|
|
5143
5101
|
};
|
|
5144
5102
|
const serializeAws_restJson1DeviceIdsList = (input, context) => {
|
|
@@ -5153,17 +5111,13 @@ const serializeAws_restJson1DeviceIdsList = (input, context) => {
|
|
|
5153
5111
|
};
|
|
5154
5112
|
const serializeAws_restJson1DevicePositionUpdate = (input, context) => {
|
|
5155
5113
|
return {
|
|
5156
|
-
...(input.Accuracy
|
|
5157
|
-
|
|
5158
|
-
...(input.
|
|
5159
|
-
...(input.
|
|
5160
|
-
input.Position !== null && { Position: serializeAws_restJson1Position(input.Position, context) }),
|
|
5161
|
-
...(input.PositionProperties !== undefined &&
|
|
5162
|
-
input.PositionProperties !== null && {
|
|
5114
|
+
...(input.Accuracy != null && { Accuracy: serializeAws_restJson1PositionalAccuracy(input.Accuracy, context) }),
|
|
5115
|
+
...(input.DeviceId != null && { DeviceId: input.DeviceId }),
|
|
5116
|
+
...(input.Position != null && { Position: serializeAws_restJson1Position(input.Position, context) }),
|
|
5117
|
+
...(input.PositionProperties != null && {
|
|
5163
5118
|
PositionProperties: serializeAws_restJson1PropertyMap(input.PositionProperties, context),
|
|
5164
5119
|
}),
|
|
5165
|
-
...(input.SampleTime
|
|
5166
|
-
input.SampleTime !== null && { SampleTime: input.SampleTime.toISOString().split(".")[0] + "Z" }),
|
|
5120
|
+
...(input.SampleTime != null && { SampleTime: input.SampleTime.toISOString().split(".")[0] + "Z" }),
|
|
5167
5121
|
};
|
|
5168
5122
|
};
|
|
5169
5123
|
const serializeAws_restJson1DevicePositionUpdateList = (input, context) => {
|
|
@@ -5178,8 +5132,7 @@ const serializeAws_restJson1DevicePositionUpdateList = (input, context) => {
|
|
|
5178
5132
|
};
|
|
5179
5133
|
const serializeAws_restJson1GeofenceGeometry = (input, context) => {
|
|
5180
5134
|
return {
|
|
5181
|
-
...(input.Polygon
|
|
5182
|
-
input.Polygon !== null && { Polygon: serializeAws_restJson1LinearRings(input.Polygon, context) }),
|
|
5135
|
+
...(input.Polygon != null && { Polygon: serializeAws_restJson1LinearRings(input.Polygon, context) }),
|
|
5183
5136
|
};
|
|
5184
5137
|
};
|
|
5185
5138
|
const serializeAws_restJson1IdList = (input, context) => {
|
|
@@ -5214,7 +5167,7 @@ const serializeAws_restJson1LinearRings = (input, context) => {
|
|
|
5214
5167
|
};
|
|
5215
5168
|
const serializeAws_restJson1MapConfiguration = (input, context) => {
|
|
5216
5169
|
return {
|
|
5217
|
-
...(input.Style
|
|
5170
|
+
...(input.Style != null && { Style: input.Style }),
|
|
5218
5171
|
};
|
|
5219
5172
|
};
|
|
5220
5173
|
const serializeAws_restJson1Position = (input, context) => {
|
|
@@ -5229,8 +5182,7 @@ const serializeAws_restJson1Position = (input, context) => {
|
|
|
5229
5182
|
};
|
|
5230
5183
|
const serializeAws_restJson1PositionalAccuracy = (input, context) => {
|
|
5231
5184
|
return {
|
|
5232
|
-
...(input.Horizontal
|
|
5233
|
-
input.Horizontal !== null && { Horizontal: (0, smithy_client_1.serializeFloat)(input.Horizontal) }),
|
|
5185
|
+
...(input.Horizontal != null && { Horizontal: (0, smithy_client_1.serializeFloat)(input.Horizontal) }),
|
|
5234
5186
|
};
|
|
5235
5187
|
};
|
|
5236
5188
|
const serializeAws_restJson1PositionList = (input, context) => {
|
|
@@ -5267,16 +5219,16 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
5267
5219
|
};
|
|
5268
5220
|
const serializeAws_restJson1TruckDimensions = (input, context) => {
|
|
5269
5221
|
return {
|
|
5270
|
-
...(input.Height
|
|
5271
|
-
...(input.Length
|
|
5272
|
-
...(input.Unit
|
|
5273
|
-
...(input.Width
|
|
5222
|
+
...(input.Height != null && { Height: (0, smithy_client_1.serializeFloat)(input.Height) }),
|
|
5223
|
+
...(input.Length != null && { Length: (0, smithy_client_1.serializeFloat)(input.Length) }),
|
|
5224
|
+
...(input.Unit != null && { Unit: input.Unit }),
|
|
5225
|
+
...(input.Width != null && { Width: (0, smithy_client_1.serializeFloat)(input.Width) }),
|
|
5274
5226
|
};
|
|
5275
5227
|
};
|
|
5276
5228
|
const serializeAws_restJson1TruckWeight = (input, context) => {
|
|
5277
5229
|
return {
|
|
5278
|
-
...(input.Total
|
|
5279
|
-
...(input.Unit
|
|
5230
|
+
...(input.Total != null && { Total: (0, smithy_client_1.serializeFloat)(input.Total) }),
|
|
5231
|
+
...(input.Unit != null && { Unit: input.Unit }),
|
|
5280
5232
|
};
|
|
5281
5233
|
};
|
|
5282
5234
|
const serializeAws_restJson1WaypointPositionList = (input, context) => {
|
|
@@ -5303,9 +5255,7 @@ const deserializeAws_restJson1ArnList = (output, context) => {
|
|
|
5303
5255
|
const deserializeAws_restJson1BatchDeleteDevicePositionHistoryError = (output, context) => {
|
|
5304
5256
|
return {
|
|
5305
5257
|
DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
|
|
5306
|
-
Error: output.Error
|
|
5307
|
-
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
5308
|
-
: undefined,
|
|
5258
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
5309
5259
|
};
|
|
5310
5260
|
};
|
|
5311
5261
|
const deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList = (output, context) => {
|
|
@@ -5321,9 +5271,7 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList = (outpu
|
|
|
5321
5271
|
};
|
|
5322
5272
|
const deserializeAws_restJson1BatchDeleteGeofenceError = (output, context) => {
|
|
5323
5273
|
return {
|
|
5324
|
-
Error: output.Error
|
|
5325
|
-
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
5326
|
-
: undefined,
|
|
5274
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
5327
5275
|
GeofenceId: (0, smithy_client_1.expectString)(output.GeofenceId),
|
|
5328
5276
|
};
|
|
5329
5277
|
};
|
|
@@ -5341,12 +5289,8 @@ const deserializeAws_restJson1BatchDeleteGeofenceErrorList = (output, context) =
|
|
|
5341
5289
|
const deserializeAws_restJson1BatchEvaluateGeofencesError = (output, context) => {
|
|
5342
5290
|
return {
|
|
5343
5291
|
DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
|
|
5344
|
-
Error: output.Error
|
|
5345
|
-
|
|
5346
|
-
: undefined,
|
|
5347
|
-
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
5348
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime))
|
|
5349
|
-
: undefined,
|
|
5292
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
5293
|
+
SampleTime: output.SampleTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime)) : undefined,
|
|
5350
5294
|
};
|
|
5351
5295
|
};
|
|
5352
5296
|
const deserializeAws_restJson1BatchEvaluateGeofencesErrorList = (output, context) => {
|
|
@@ -5363,9 +5307,7 @@ const deserializeAws_restJson1BatchEvaluateGeofencesErrorList = (output, context
|
|
|
5363
5307
|
const deserializeAws_restJson1BatchGetDevicePositionError = (output, context) => {
|
|
5364
5308
|
return {
|
|
5365
5309
|
DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
|
|
5366
|
-
Error: output.Error
|
|
5367
|
-
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
5368
|
-
: undefined,
|
|
5310
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
5369
5311
|
};
|
|
5370
5312
|
};
|
|
5371
5313
|
const deserializeAws_restJson1BatchGetDevicePositionErrorList = (output, context) => {
|
|
@@ -5387,9 +5329,7 @@ const deserializeAws_restJson1BatchItemError = (output, context) => {
|
|
|
5387
5329
|
};
|
|
5388
5330
|
const deserializeAws_restJson1BatchPutGeofenceError = (output, context) => {
|
|
5389
5331
|
return {
|
|
5390
|
-
Error: output.Error
|
|
5391
|
-
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
5392
|
-
: undefined,
|
|
5332
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
5393
5333
|
GeofenceId: (0, smithy_client_1.expectString)(output.GeofenceId),
|
|
5394
5334
|
};
|
|
5395
5335
|
};
|
|
@@ -5406,13 +5346,9 @@ const deserializeAws_restJson1BatchPutGeofenceErrorList = (output, context) => {
|
|
|
5406
5346
|
};
|
|
5407
5347
|
const deserializeAws_restJson1BatchPutGeofenceSuccess = (output, context) => {
|
|
5408
5348
|
return {
|
|
5409
|
-
CreateTime: output.CreateTime
|
|
5410
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
|
|
5411
|
-
: undefined,
|
|
5349
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime)) : undefined,
|
|
5412
5350
|
GeofenceId: (0, smithy_client_1.expectString)(output.GeofenceId),
|
|
5413
|
-
UpdateTime: output.UpdateTime
|
|
5414
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
|
|
5415
|
-
: undefined,
|
|
5351
|
+
UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime)) : undefined,
|
|
5416
5352
|
};
|
|
5417
5353
|
};
|
|
5418
5354
|
const deserializeAws_restJson1BatchPutGeofenceSuccessList = (output, context) => {
|
|
@@ -5429,12 +5365,8 @@ const deserializeAws_restJson1BatchPutGeofenceSuccessList = (output, context) =>
|
|
|
5429
5365
|
const deserializeAws_restJson1BatchUpdateDevicePositionError = (output, context) => {
|
|
5430
5366
|
return {
|
|
5431
5367
|
DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
|
|
5432
|
-
Error: output.Error
|
|
5433
|
-
|
|
5434
|
-
: undefined,
|
|
5435
|
-
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
5436
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime))
|
|
5437
|
-
: undefined,
|
|
5368
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
5369
|
+
SampleTime: output.SampleTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime)) : undefined,
|
|
5438
5370
|
};
|
|
5439
5371
|
};
|
|
5440
5372
|
const deserializeAws_restJson1BatchUpdateDevicePositionErrorList = (output, context) => {
|
|
@@ -5473,9 +5405,7 @@ const deserializeAws_restJson1CalculateRouteSummary = (output, context) => {
|
|
|
5473
5405
|
Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
|
|
5474
5406
|
DistanceUnit: (0, smithy_client_1.expectString)(output.DistanceUnit),
|
|
5475
5407
|
DurationSeconds: (0, smithy_client_1.limitedParseDouble)(output.DurationSeconds),
|
|
5476
|
-
RouteBBox: output.RouteBBox
|
|
5477
|
-
? deserializeAws_restJson1BoundingBox(output.RouteBBox, context)
|
|
5478
|
-
: undefined,
|
|
5408
|
+
RouteBBox: output.RouteBBox != null ? deserializeAws_restJson1BoundingBox(output.RouteBBox, context) : undefined,
|
|
5479
5409
|
};
|
|
5480
5410
|
};
|
|
5481
5411
|
const deserializeAws_restJson1CountryCodeList = (output, context) => {
|
|
@@ -5496,22 +5426,14 @@ const deserializeAws_restJson1DataSourceConfiguration = (output, context) => {
|
|
|
5496
5426
|
};
|
|
5497
5427
|
const deserializeAws_restJson1DevicePosition = (output, context) => {
|
|
5498
5428
|
return {
|
|
5499
|
-
Accuracy: output.Accuracy
|
|
5500
|
-
? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context)
|
|
5501
|
-
: undefined,
|
|
5429
|
+
Accuracy: output.Accuracy != null ? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context) : undefined,
|
|
5502
5430
|
DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
|
|
5503
|
-
Position: output.Position
|
|
5504
|
-
|
|
5505
|
-
: undefined,
|
|
5506
|
-
PositionProperties: output.PositionProperties !== undefined && output.PositionProperties !== null
|
|
5431
|
+
Position: output.Position != null ? deserializeAws_restJson1Position(output.Position, context) : undefined,
|
|
5432
|
+
PositionProperties: output.PositionProperties != null
|
|
5507
5433
|
? deserializeAws_restJson1PropertyMap(output.PositionProperties, context)
|
|
5508
5434
|
: undefined,
|
|
5509
|
-
ReceivedTime: output.ReceivedTime
|
|
5510
|
-
|
|
5511
|
-
: undefined,
|
|
5512
|
-
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
5513
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime))
|
|
5514
|
-
: undefined,
|
|
5435
|
+
ReceivedTime: output.ReceivedTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.ReceivedTime)) : undefined,
|
|
5436
|
+
SampleTime: output.SampleTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime)) : undefined,
|
|
5515
5437
|
};
|
|
5516
5438
|
};
|
|
5517
5439
|
const deserializeAws_restJson1DevicePositionList = (output, context) => {
|
|
@@ -5527,34 +5449,22 @@ const deserializeAws_restJson1DevicePositionList = (output, context) => {
|
|
|
5527
5449
|
};
|
|
5528
5450
|
const deserializeAws_restJson1GeofenceGeometry = (output, context) => {
|
|
5529
5451
|
return {
|
|
5530
|
-
Polygon: output.Polygon
|
|
5531
|
-
? deserializeAws_restJson1LinearRings(output.Polygon, context)
|
|
5532
|
-
: undefined,
|
|
5452
|
+
Polygon: output.Polygon != null ? deserializeAws_restJson1LinearRings(output.Polygon, context) : undefined,
|
|
5533
5453
|
};
|
|
5534
5454
|
};
|
|
5535
5455
|
const deserializeAws_restJson1Leg = (output, context) => {
|
|
5536
5456
|
return {
|
|
5537
5457
|
Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
|
|
5538
5458
|
DurationSeconds: (0, smithy_client_1.limitedParseDouble)(output.DurationSeconds),
|
|
5539
|
-
EndPosition: output.EndPosition
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
? deserializeAws_restJson1LegGeometry(output.Geometry, context)
|
|
5544
|
-
: undefined,
|
|
5545
|
-
StartPosition: output.StartPosition !== undefined && output.StartPosition !== null
|
|
5546
|
-
? deserializeAws_restJson1Position(output.StartPosition, context)
|
|
5547
|
-
: undefined,
|
|
5548
|
-
Steps: output.Steps !== undefined && output.Steps !== null
|
|
5549
|
-
? deserializeAws_restJson1StepList(output.Steps, context)
|
|
5550
|
-
: undefined,
|
|
5459
|
+
EndPosition: output.EndPosition != null ? deserializeAws_restJson1Position(output.EndPosition, context) : undefined,
|
|
5460
|
+
Geometry: output.Geometry != null ? deserializeAws_restJson1LegGeometry(output.Geometry, context) : undefined,
|
|
5461
|
+
StartPosition: output.StartPosition != null ? deserializeAws_restJson1Position(output.StartPosition, context) : undefined,
|
|
5462
|
+
Steps: output.Steps != null ? deserializeAws_restJson1StepList(output.Steps, context) : undefined,
|
|
5551
5463
|
};
|
|
5552
5464
|
};
|
|
5553
5465
|
const deserializeAws_restJson1LegGeometry = (output, context) => {
|
|
5554
5466
|
return {
|
|
5555
|
-
LineString: output.LineString
|
|
5556
|
-
? deserializeAws_restJson1LineString(output.LineString, context)
|
|
5557
|
-
: undefined,
|
|
5467
|
+
LineString: output.LineString != null ? deserializeAws_restJson1LineString(output.LineString, context) : undefined,
|
|
5558
5468
|
};
|
|
5559
5469
|
};
|
|
5560
5470
|
const deserializeAws_restJson1LegList = (output, context) => {
|
|
@@ -5603,19 +5513,13 @@ const deserializeAws_restJson1LineString = (output, context) => {
|
|
|
5603
5513
|
};
|
|
5604
5514
|
const deserializeAws_restJson1ListDevicePositionsResponseEntry = (output, context) => {
|
|
5605
5515
|
return {
|
|
5606
|
-
Accuracy: output.Accuracy
|
|
5607
|
-
? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context)
|
|
5608
|
-
: undefined,
|
|
5516
|
+
Accuracy: output.Accuracy != null ? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context) : undefined,
|
|
5609
5517
|
DeviceId: (0, smithy_client_1.expectString)(output.DeviceId),
|
|
5610
|
-
Position: output.Position
|
|
5611
|
-
|
|
5612
|
-
: undefined,
|
|
5613
|
-
PositionProperties: output.PositionProperties !== undefined && output.PositionProperties !== null
|
|
5518
|
+
Position: output.Position != null ? deserializeAws_restJson1Position(output.Position, context) : undefined,
|
|
5519
|
+
PositionProperties: output.PositionProperties != null
|
|
5614
5520
|
? deserializeAws_restJson1PropertyMap(output.PositionProperties, context)
|
|
5615
5521
|
: undefined,
|
|
5616
|
-
SampleTime: output.SampleTime
|
|
5617
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime))
|
|
5618
|
-
: undefined,
|
|
5522
|
+
SampleTime: output.SampleTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.SampleTime)) : undefined,
|
|
5619
5523
|
};
|
|
5620
5524
|
};
|
|
5621
5525
|
const deserializeAws_restJson1ListDevicePositionsResponseEntryList = (output, context) => {
|
|
@@ -5632,15 +5536,11 @@ const deserializeAws_restJson1ListDevicePositionsResponseEntryList = (output, co
|
|
|
5632
5536
|
const deserializeAws_restJson1ListGeofenceCollectionsResponseEntry = (output, context) => {
|
|
5633
5537
|
return {
|
|
5634
5538
|
CollectionName: (0, smithy_client_1.expectString)(output.CollectionName),
|
|
5635
|
-
CreateTime: output.CreateTime
|
|
5636
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
|
|
5637
|
-
: undefined,
|
|
5539
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime)) : undefined,
|
|
5638
5540
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5639
5541
|
PricingPlan: (0, smithy_client_1.expectString)(output.PricingPlan),
|
|
5640
5542
|
PricingPlanDataSource: (0, smithy_client_1.expectString)(output.PricingPlanDataSource),
|
|
5641
|
-
UpdateTime: output.UpdateTime
|
|
5642
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
|
|
5643
|
-
: undefined,
|
|
5543
|
+
UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime)) : undefined,
|
|
5644
5544
|
};
|
|
5645
5545
|
};
|
|
5646
5546
|
const deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = (output, context) => {
|
|
@@ -5656,17 +5556,11 @@ const deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = (output
|
|
|
5656
5556
|
};
|
|
5657
5557
|
const deserializeAws_restJson1ListGeofenceResponseEntry = (output, context) => {
|
|
5658
5558
|
return {
|
|
5659
|
-
CreateTime: output.CreateTime
|
|
5660
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
|
|
5661
|
-
: undefined,
|
|
5559
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime)) : undefined,
|
|
5662
5560
|
GeofenceId: (0, smithy_client_1.expectString)(output.GeofenceId),
|
|
5663
|
-
Geometry: output.Geometry
|
|
5664
|
-
? deserializeAws_restJson1GeofenceGeometry(output.Geometry, context)
|
|
5665
|
-
: undefined,
|
|
5561
|
+
Geometry: output.Geometry != null ? deserializeAws_restJson1GeofenceGeometry(output.Geometry, context) : undefined,
|
|
5666
5562
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
5667
|
-
UpdateTime: output.UpdateTime
|
|
5668
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
|
|
5669
|
-
: undefined,
|
|
5563
|
+
UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime)) : undefined,
|
|
5670
5564
|
};
|
|
5671
5565
|
};
|
|
5672
5566
|
const deserializeAws_restJson1ListGeofenceResponseEntryList = (output, context) => {
|
|
@@ -5682,16 +5576,12 @@ const deserializeAws_restJson1ListGeofenceResponseEntryList = (output, context)
|
|
|
5682
5576
|
};
|
|
5683
5577
|
const deserializeAws_restJson1ListMapsResponseEntry = (output, context) => {
|
|
5684
5578
|
return {
|
|
5685
|
-
CreateTime: output.CreateTime
|
|
5686
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
|
|
5687
|
-
: undefined,
|
|
5579
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime)) : undefined,
|
|
5688
5580
|
DataSource: (0, smithy_client_1.expectString)(output.DataSource),
|
|
5689
5581
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5690
5582
|
MapName: (0, smithy_client_1.expectString)(output.MapName),
|
|
5691
5583
|
PricingPlan: (0, smithy_client_1.expectString)(output.PricingPlan),
|
|
5692
|
-
UpdateTime: output.UpdateTime
|
|
5693
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
|
|
5694
|
-
: undefined,
|
|
5584
|
+
UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime)) : undefined,
|
|
5695
5585
|
};
|
|
5696
5586
|
};
|
|
5697
5587
|
const deserializeAws_restJson1ListMapsResponseEntryList = (output, context) => {
|
|
@@ -5707,16 +5597,12 @@ const deserializeAws_restJson1ListMapsResponseEntryList = (output, context) => {
|
|
|
5707
5597
|
};
|
|
5708
5598
|
const deserializeAws_restJson1ListPlaceIndexesResponseEntry = (output, context) => {
|
|
5709
5599
|
return {
|
|
5710
|
-
CreateTime: output.CreateTime
|
|
5711
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
|
|
5712
|
-
: undefined,
|
|
5600
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime)) : undefined,
|
|
5713
5601
|
DataSource: (0, smithy_client_1.expectString)(output.DataSource),
|
|
5714
5602
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5715
5603
|
IndexName: (0, smithy_client_1.expectString)(output.IndexName),
|
|
5716
5604
|
PricingPlan: (0, smithy_client_1.expectString)(output.PricingPlan),
|
|
5717
|
-
UpdateTime: output.UpdateTime
|
|
5718
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
|
|
5719
|
-
: undefined,
|
|
5605
|
+
UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime)) : undefined,
|
|
5720
5606
|
};
|
|
5721
5607
|
};
|
|
5722
5608
|
const deserializeAws_restJson1ListPlaceIndexesResponseEntryList = (output, context) => {
|
|
@@ -5733,15 +5619,11 @@ const deserializeAws_restJson1ListPlaceIndexesResponseEntryList = (output, conte
|
|
|
5733
5619
|
const deserializeAws_restJson1ListRouteCalculatorsResponseEntry = (output, context) => {
|
|
5734
5620
|
return {
|
|
5735
5621
|
CalculatorName: (0, smithy_client_1.expectString)(output.CalculatorName),
|
|
5736
|
-
CreateTime: output.CreateTime
|
|
5737
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
|
|
5738
|
-
: undefined,
|
|
5622
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime)) : undefined,
|
|
5739
5623
|
DataSource: (0, smithy_client_1.expectString)(output.DataSource),
|
|
5740
5624
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5741
5625
|
PricingPlan: (0, smithy_client_1.expectString)(output.PricingPlan),
|
|
5742
|
-
UpdateTime: output.UpdateTime
|
|
5743
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
|
|
5744
|
-
: undefined,
|
|
5626
|
+
UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime)) : undefined,
|
|
5745
5627
|
};
|
|
5746
5628
|
};
|
|
5747
5629
|
const deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = (output, context) => {
|
|
@@ -5757,16 +5639,12 @@ const deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = (output, c
|
|
|
5757
5639
|
};
|
|
5758
5640
|
const deserializeAws_restJson1ListTrackersResponseEntry = (output, context) => {
|
|
5759
5641
|
return {
|
|
5760
|
-
CreateTime: output.CreateTime
|
|
5761
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime))
|
|
5762
|
-
: undefined,
|
|
5642
|
+
CreateTime: output.CreateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.CreateTime)) : undefined,
|
|
5763
5643
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
5764
5644
|
PricingPlan: (0, smithy_client_1.expectString)(output.PricingPlan),
|
|
5765
5645
|
PricingPlanDataSource: (0, smithy_client_1.expectString)(output.PricingPlanDataSource),
|
|
5766
5646
|
TrackerName: (0, smithy_client_1.expectString)(output.TrackerName),
|
|
5767
|
-
UpdateTime: output.UpdateTime
|
|
5768
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime))
|
|
5769
|
-
: undefined,
|
|
5647
|
+
UpdateTime: output.UpdateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.UpdateTime)) : undefined,
|
|
5770
5648
|
};
|
|
5771
5649
|
};
|
|
5772
5650
|
const deserializeAws_restJson1ListTrackersResponseEntryList = (output, context) => {
|
|
@@ -5789,9 +5667,7 @@ const deserializeAws_restJson1Place = (output, context) => {
|
|
|
5789
5667
|
return {
|
|
5790
5668
|
AddressNumber: (0, smithy_client_1.expectString)(output.AddressNumber),
|
|
5791
5669
|
Country: (0, smithy_client_1.expectString)(output.Country),
|
|
5792
|
-
Geometry: output.Geometry
|
|
5793
|
-
? deserializeAws_restJson1PlaceGeometry(output.Geometry, context)
|
|
5794
|
-
: undefined,
|
|
5670
|
+
Geometry: output.Geometry != null ? deserializeAws_restJson1PlaceGeometry(output.Geometry, context) : undefined,
|
|
5795
5671
|
Interpolated: (0, smithy_client_1.expectBoolean)(output.Interpolated),
|
|
5796
5672
|
Label: (0, smithy_client_1.expectString)(output.Label),
|
|
5797
5673
|
Municipality: (0, smithy_client_1.expectString)(output.Municipality),
|
|
@@ -5800,16 +5676,12 @@ const deserializeAws_restJson1Place = (output, context) => {
|
|
|
5800
5676
|
Region: (0, smithy_client_1.expectString)(output.Region),
|
|
5801
5677
|
Street: (0, smithy_client_1.expectString)(output.Street),
|
|
5802
5678
|
SubRegion: (0, smithy_client_1.expectString)(output.SubRegion),
|
|
5803
|
-
TimeZone: output.TimeZone
|
|
5804
|
-
? deserializeAws_restJson1TimeZone(output.TimeZone, context)
|
|
5805
|
-
: undefined,
|
|
5679
|
+
TimeZone: output.TimeZone != null ? deserializeAws_restJson1TimeZone(output.TimeZone, context) : undefined,
|
|
5806
5680
|
};
|
|
5807
5681
|
};
|
|
5808
5682
|
const deserializeAws_restJson1PlaceGeometry = (output, context) => {
|
|
5809
5683
|
return {
|
|
5810
|
-
Point: output.Point
|
|
5811
|
-
? deserializeAws_restJson1Position(output.Point, context)
|
|
5812
|
-
: undefined,
|
|
5684
|
+
Point: output.Point != null ? deserializeAws_restJson1Position(output.Point, context) : undefined,
|
|
5813
5685
|
};
|
|
5814
5686
|
};
|
|
5815
5687
|
const deserializeAws_restJson1Position = (output, context) => {
|
|
@@ -5865,9 +5737,7 @@ const deserializeAws_restJson1RouteMatrixEntry = (output, context) => {
|
|
|
5865
5737
|
return {
|
|
5866
5738
|
Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
|
|
5867
5739
|
DurationSeconds: (0, smithy_client_1.limitedParseDouble)(output.DurationSeconds),
|
|
5868
|
-
Error: output.Error
|
|
5869
|
-
? deserializeAws_restJson1RouteMatrixEntryError(output.Error, context)
|
|
5870
|
-
: undefined,
|
|
5740
|
+
Error: output.Error != null ? deserializeAws_restJson1RouteMatrixEntryError(output.Error, context) : undefined,
|
|
5871
5741
|
};
|
|
5872
5742
|
};
|
|
5873
5743
|
const deserializeAws_restJson1RouteMatrixEntryError = (output, context) => {
|
|
@@ -5890,9 +5760,7 @@ const deserializeAws_restJson1RouteMatrixRow = (output, context) => {
|
|
|
5890
5760
|
const deserializeAws_restJson1SearchForPositionResult = (output, context) => {
|
|
5891
5761
|
return {
|
|
5892
5762
|
Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
|
|
5893
|
-
Place: output.Place
|
|
5894
|
-
? deserializeAws_restJson1Place(output.Place, context)
|
|
5895
|
-
: undefined,
|
|
5763
|
+
Place: output.Place != null ? deserializeAws_restJson1Place(output.Place, context) : undefined,
|
|
5896
5764
|
};
|
|
5897
5765
|
};
|
|
5898
5766
|
const deserializeAws_restJson1SearchForPositionResultList = (output, context) => {
|
|
@@ -5925,9 +5793,7 @@ const deserializeAws_restJson1SearchForSuggestionsResultList = (output, context)
|
|
|
5925
5793
|
const deserializeAws_restJson1SearchForTextResult = (output, context) => {
|
|
5926
5794
|
return {
|
|
5927
5795
|
Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
|
|
5928
|
-
Place: output.Place
|
|
5929
|
-
? deserializeAws_restJson1Place(output.Place, context)
|
|
5930
|
-
: undefined,
|
|
5796
|
+
Place: output.Place != null ? deserializeAws_restJson1Place(output.Place, context) : undefined,
|
|
5931
5797
|
Relevance: (0, smithy_client_1.limitedParseDouble)(output.Relevance),
|
|
5932
5798
|
};
|
|
5933
5799
|
};
|
|
@@ -5947,21 +5813,15 @@ const deserializeAws_restJson1SearchPlaceIndexForPositionSummary = (output, cont
|
|
|
5947
5813
|
DataSource: (0, smithy_client_1.expectString)(output.DataSource),
|
|
5948
5814
|
Language: (0, smithy_client_1.expectString)(output.Language),
|
|
5949
5815
|
MaxResults: (0, smithy_client_1.expectInt32)(output.MaxResults),
|
|
5950
|
-
Position: output.Position
|
|
5951
|
-
? deserializeAws_restJson1Position(output.Position, context)
|
|
5952
|
-
: undefined,
|
|
5816
|
+
Position: output.Position != null ? deserializeAws_restJson1Position(output.Position, context) : undefined,
|
|
5953
5817
|
};
|
|
5954
5818
|
};
|
|
5955
5819
|
const deserializeAws_restJson1SearchPlaceIndexForSuggestionsSummary = (output, context) => {
|
|
5956
5820
|
return {
|
|
5957
|
-
BiasPosition: output.BiasPosition
|
|
5958
|
-
? deserializeAws_restJson1Position(output.BiasPosition, context)
|
|
5959
|
-
: undefined,
|
|
5821
|
+
BiasPosition: output.BiasPosition != null ? deserializeAws_restJson1Position(output.BiasPosition, context) : undefined,
|
|
5960
5822
|
DataSource: (0, smithy_client_1.expectString)(output.DataSource),
|
|
5961
|
-
FilterBBox: output.FilterBBox
|
|
5962
|
-
|
|
5963
|
-
: undefined,
|
|
5964
|
-
FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
|
|
5823
|
+
FilterBBox: output.FilterBBox != null ? deserializeAws_restJson1BoundingBox(output.FilterBBox, context) : undefined,
|
|
5824
|
+
FilterCountries: output.FilterCountries != null
|
|
5965
5825
|
? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
|
|
5966
5826
|
: undefined,
|
|
5967
5827
|
Language: (0, smithy_client_1.expectString)(output.Language),
|
|
@@ -5971,21 +5831,15 @@ const deserializeAws_restJson1SearchPlaceIndexForSuggestionsSummary = (output, c
|
|
|
5971
5831
|
};
|
|
5972
5832
|
const deserializeAws_restJson1SearchPlaceIndexForTextSummary = (output, context) => {
|
|
5973
5833
|
return {
|
|
5974
|
-
BiasPosition: output.BiasPosition
|
|
5975
|
-
? deserializeAws_restJson1Position(output.BiasPosition, context)
|
|
5976
|
-
: undefined,
|
|
5834
|
+
BiasPosition: output.BiasPosition != null ? deserializeAws_restJson1Position(output.BiasPosition, context) : undefined,
|
|
5977
5835
|
DataSource: (0, smithy_client_1.expectString)(output.DataSource),
|
|
5978
|
-
FilterBBox: output.FilterBBox
|
|
5979
|
-
|
|
5980
|
-
: undefined,
|
|
5981
|
-
FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
|
|
5836
|
+
FilterBBox: output.FilterBBox != null ? deserializeAws_restJson1BoundingBox(output.FilterBBox, context) : undefined,
|
|
5837
|
+
FilterCountries: output.FilterCountries != null
|
|
5982
5838
|
? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
|
|
5983
5839
|
: undefined,
|
|
5984
5840
|
Language: (0, smithy_client_1.expectString)(output.Language),
|
|
5985
5841
|
MaxResults: (0, smithy_client_1.expectInt32)(output.MaxResults),
|
|
5986
|
-
ResultBBox: output.ResultBBox
|
|
5987
|
-
? deserializeAws_restJson1BoundingBox(output.ResultBBox, context)
|
|
5988
|
-
: undefined,
|
|
5842
|
+
ResultBBox: output.ResultBBox != null ? deserializeAws_restJson1BoundingBox(output.ResultBBox, context) : undefined,
|
|
5989
5843
|
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
5990
5844
|
};
|
|
5991
5845
|
};
|
|
@@ -5993,13 +5847,9 @@ const deserializeAws_restJson1Step = (output, context) => {
|
|
|
5993
5847
|
return {
|
|
5994
5848
|
Distance: (0, smithy_client_1.limitedParseDouble)(output.Distance),
|
|
5995
5849
|
DurationSeconds: (0, smithy_client_1.limitedParseDouble)(output.DurationSeconds),
|
|
5996
|
-
EndPosition: output.EndPosition
|
|
5997
|
-
? deserializeAws_restJson1Position(output.EndPosition, context)
|
|
5998
|
-
: undefined,
|
|
5850
|
+
EndPosition: output.EndPosition != null ? deserializeAws_restJson1Position(output.EndPosition, context) : undefined,
|
|
5999
5851
|
GeometryOffset: (0, smithy_client_1.expectInt32)(output.GeometryOffset),
|
|
6000
|
-
StartPosition: output.StartPosition
|
|
6001
|
-
? deserializeAws_restJson1Position(output.StartPosition, context)
|
|
6002
|
-
: undefined,
|
|
5852
|
+
StartPosition: output.StartPosition != null ? deserializeAws_restJson1Position(output.StartPosition, context) : undefined,
|
|
6003
5853
|
};
|
|
6004
5854
|
};
|
|
6005
5855
|
const deserializeAws_restJson1StepList = (output, context) => {
|