@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
|
@@ -25,7 +25,7 @@ export var serializeAws_restJson1AssociateTrackerConsumerCommand = function (inp
|
|
|
25
25
|
else {
|
|
26
26
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
27
27
|
}
|
|
28
|
-
body = JSON.stringify(__assign({}, (input.ConsumerArn
|
|
28
|
+
body = JSON.stringify(__assign({}, (input.ConsumerArn != null && { ConsumerArn: input.ConsumerArn })));
|
|
29
29
|
return [4, context.endpoint()];
|
|
30
30
|
case 2:
|
|
31
31
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -69,8 +69,7 @@ export var serializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = funct
|
|
|
69
69
|
else {
|
|
70
70
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
71
71
|
}
|
|
72
|
-
body = JSON.stringify(__assign({}, (input.DeviceIds
|
|
73
|
-
input.DeviceIds !== null && { DeviceIds: serializeAws_restJson1DeviceIdsList(input.DeviceIds, context) })));
|
|
72
|
+
body = JSON.stringify(__assign({}, (input.DeviceIds != null && { DeviceIds: serializeAws_restJson1DeviceIdsList(input.DeviceIds, context) })));
|
|
74
73
|
return [4, context.endpoint()];
|
|
75
74
|
case 2:
|
|
76
75
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -114,8 +113,7 @@ export var serializeAws_restJson1BatchDeleteGeofenceCommand = function (input, c
|
|
|
114
113
|
else {
|
|
115
114
|
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
116
115
|
}
|
|
117
|
-
body = JSON.stringify(__assign({}, (input.GeofenceIds
|
|
118
|
-
input.GeofenceIds !== null && { GeofenceIds: serializeAws_restJson1IdList(input.GeofenceIds, context) })));
|
|
116
|
+
body = JSON.stringify(__assign({}, (input.GeofenceIds != null && { GeofenceIds: serializeAws_restJson1IdList(input.GeofenceIds, context) })));
|
|
119
117
|
return [4, context.endpoint()];
|
|
120
118
|
case 2:
|
|
121
119
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -159,8 +157,7 @@ export var serializeAws_restJson1BatchEvaluateGeofencesCommand = function (input
|
|
|
159
157
|
else {
|
|
160
158
|
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
161
159
|
}
|
|
162
|
-
body = JSON.stringify(__assign({}, (input.DevicePositionUpdates
|
|
163
|
-
input.DevicePositionUpdates !== null && {
|
|
160
|
+
body = JSON.stringify(__assign({}, (input.DevicePositionUpdates != null && {
|
|
164
161
|
DevicePositionUpdates: serializeAws_restJson1DevicePositionUpdateList(input.DevicePositionUpdates, context),
|
|
165
162
|
})));
|
|
166
163
|
return [4, context.endpoint()];
|
|
@@ -206,8 +203,7 @@ export var serializeAws_restJson1BatchGetDevicePositionCommand = function (input
|
|
|
206
203
|
else {
|
|
207
204
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
208
205
|
}
|
|
209
|
-
body = JSON.stringify(__assign({}, (input.DeviceIds
|
|
210
|
-
input.DeviceIds !== null && { DeviceIds: serializeAws_restJson1IdList(input.DeviceIds, context) })));
|
|
206
|
+
body = JSON.stringify(__assign({}, (input.DeviceIds != null && { DeviceIds: serializeAws_restJson1IdList(input.DeviceIds, context) })));
|
|
211
207
|
return [4, context.endpoint()];
|
|
212
208
|
case 2:
|
|
213
209
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -251,8 +247,7 @@ export var serializeAws_restJson1BatchPutGeofenceCommand = function (input, cont
|
|
|
251
247
|
else {
|
|
252
248
|
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
253
249
|
}
|
|
254
|
-
body = JSON.stringify(__assign({}, (input.Entries
|
|
255
|
-
input.Entries !== null && {
|
|
250
|
+
body = JSON.stringify(__assign({}, (input.Entries != null && {
|
|
256
251
|
Entries: serializeAws_restJson1BatchPutGeofenceRequestEntryList(input.Entries, context),
|
|
257
252
|
})));
|
|
258
253
|
return [4, context.endpoint()];
|
|
@@ -298,8 +293,7 @@ export var serializeAws_restJson1BatchUpdateDevicePositionCommand = function (in
|
|
|
298
293
|
else {
|
|
299
294
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
300
295
|
}
|
|
301
|
-
body = JSON.stringify(__assign({}, (input.Updates
|
|
302
|
-
input.Updates !== null && { Updates: serializeAws_restJson1DevicePositionUpdateList(input.Updates, context) })));
|
|
296
|
+
body = JSON.stringify(__assign({}, (input.Updates != null && { Updates: serializeAws_restJson1DevicePositionUpdateList(input.Updates, context) })));
|
|
303
297
|
return [4, context.endpoint()];
|
|
304
298
|
case 2:
|
|
305
299
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -343,22 +337,15 @@ export var serializeAws_restJson1CalculateRouteCommand = function (input, contex
|
|
|
343
337
|
else {
|
|
344
338
|
throw new Error("No value provided for input HTTP label: CalculatorName.");
|
|
345
339
|
}
|
|
346
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CarModeOptions
|
|
347
|
-
input.CarModeOptions !== null && {
|
|
340
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CarModeOptions != null && {
|
|
348
341
|
CarModeOptions: serializeAws_restJson1CalculateRouteCarModeOptions(input.CarModeOptions, context),
|
|
349
|
-
})), (input.DepartNow
|
|
350
|
-
input.DeparturePosition !== null && {
|
|
342
|
+
})), (input.DepartNow != null && { DepartNow: input.DepartNow })), (input.DeparturePosition != null && {
|
|
351
343
|
DeparturePosition: serializeAws_restJson1Position(input.DeparturePosition, context),
|
|
352
|
-
})), (input.DepartureTime
|
|
353
|
-
input.DepartureTime !== null && { DepartureTime: input.DepartureTime.toISOString().split(".")[0] + "Z" })), (input.DestinationPosition !== undefined &&
|
|
354
|
-
input.DestinationPosition !== null && {
|
|
344
|
+
})), (input.DepartureTime != null && { DepartureTime: input.DepartureTime.toISOString().split(".")[0] + "Z" })), (input.DestinationPosition != null && {
|
|
355
345
|
DestinationPosition: serializeAws_restJson1Position(input.DestinationPosition, context),
|
|
356
|
-
})), (input.DistanceUnit
|
|
357
|
-
input.IncludeLegGeometry !== null && { IncludeLegGeometry: input.IncludeLegGeometry })), (input.TravelMode !== undefined && input.TravelMode !== null && { TravelMode: input.TravelMode })), (input.TruckModeOptions !== undefined &&
|
|
358
|
-
input.TruckModeOptions !== null && {
|
|
346
|
+
})), (input.DistanceUnit != null && { DistanceUnit: input.DistanceUnit })), (input.IncludeLegGeometry != null && { IncludeLegGeometry: input.IncludeLegGeometry })), (input.TravelMode != null && { TravelMode: input.TravelMode })), (input.TruckModeOptions != null && {
|
|
359
347
|
TruckModeOptions: serializeAws_restJson1CalculateRouteTruckModeOptions(input.TruckModeOptions, context),
|
|
360
|
-
})), (input.WaypointPositions
|
|
361
|
-
input.WaypointPositions !== null && {
|
|
348
|
+
})), (input.WaypointPositions != null && {
|
|
362
349
|
WaypointPositions: serializeAws_restJson1WaypointPositionList(input.WaypointPositions, context),
|
|
363
350
|
})));
|
|
364
351
|
return [4, context.endpoint()];
|
|
@@ -404,18 +391,13 @@ export var serializeAws_restJson1CalculateRouteMatrixCommand = function (input,
|
|
|
404
391
|
else {
|
|
405
392
|
throw new Error("No value provided for input HTTP label: CalculatorName.");
|
|
406
393
|
}
|
|
407
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CarModeOptions
|
|
408
|
-
input.CarModeOptions !== null && {
|
|
394
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CarModeOptions != null && {
|
|
409
395
|
CarModeOptions: serializeAws_restJson1CalculateRouteCarModeOptions(input.CarModeOptions, context),
|
|
410
|
-
})), (input.DepartNow
|
|
411
|
-
input.DeparturePositions !== null && {
|
|
396
|
+
})), (input.DepartNow != null && { DepartNow: input.DepartNow })), (input.DeparturePositions != null && {
|
|
412
397
|
DeparturePositions: serializeAws_restJson1PositionList(input.DeparturePositions, context),
|
|
413
|
-
})), (input.DepartureTime
|
|
414
|
-
input.DepartureTime !== null && { DepartureTime: input.DepartureTime.toISOString().split(".")[0] + "Z" })), (input.DestinationPositions !== undefined &&
|
|
415
|
-
input.DestinationPositions !== null && {
|
|
398
|
+
})), (input.DepartureTime != null && { DepartureTime: input.DepartureTime.toISOString().split(".")[0] + "Z" })), (input.DestinationPositions != null && {
|
|
416
399
|
DestinationPositions: serializeAws_restJson1PositionList(input.DestinationPositions, context),
|
|
417
|
-
})), (input.DistanceUnit
|
|
418
|
-
input.TruckModeOptions !== null && {
|
|
400
|
+
})), (input.DistanceUnit != null && { DistanceUnit: input.DistanceUnit })), (input.TravelMode != null && { TravelMode: input.TravelMode })), (input.TruckModeOptions != null && {
|
|
419
401
|
TruckModeOptions: serializeAws_restJson1CalculateRouteTruckModeOptions(input.TruckModeOptions, context),
|
|
420
402
|
})));
|
|
421
403
|
return [4, context.endpoint()];
|
|
@@ -450,9 +432,7 @@ export var serializeAws_restJson1CreateGeofenceCollectionCommand = function (inp
|
|
|
450
432
|
"content-type": "application/json",
|
|
451
433
|
};
|
|
452
434
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/geofencing/v0/collections";
|
|
453
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CollectionName
|
|
454
|
-
input.CollectionName !== null && { CollectionName: input.CollectionName })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.KmsKeyId !== undefined && input.KmsKeyId !== null && { KmsKeyId: input.KmsKeyId })), (input.PricingPlan !== undefined && input.PricingPlan !== null && { PricingPlan: input.PricingPlan })), (input.PricingPlanDataSource !== undefined &&
|
|
455
|
-
input.PricingPlanDataSource !== null && { PricingPlanDataSource: input.PricingPlanDataSource })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
435
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CollectionName != null && { CollectionName: input.CollectionName })), (input.Description != null && { Description: input.Description })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.PricingPlan != null && { PricingPlan: input.PricingPlan })), (input.PricingPlanDataSource != null && { PricingPlanDataSource: input.PricingPlanDataSource })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
456
436
|
return [4, context.endpoint()];
|
|
457
437
|
case 2:
|
|
458
438
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -485,10 +465,9 @@ export var serializeAws_restJson1CreateMapCommand = function (input, context) {
|
|
|
485
465
|
"content-type": "application/json",
|
|
486
466
|
};
|
|
487
467
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/maps/v0/maps";
|
|
488
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Configuration
|
|
489
|
-
input.Configuration !== null && {
|
|
468
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Configuration != null && {
|
|
490
469
|
Configuration: serializeAws_restJson1MapConfiguration(input.Configuration, context),
|
|
491
|
-
})), (input.Description
|
|
470
|
+
})), (input.Description != null && { Description: input.Description })), (input.MapName != null && { MapName: input.MapName })), (input.PricingPlan != null && { PricingPlan: input.PricingPlan })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
492
471
|
return [4, context.endpoint()];
|
|
493
472
|
case 2:
|
|
494
473
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -521,10 +500,9 @@ export var serializeAws_restJson1CreatePlaceIndexCommand = function (input, cont
|
|
|
521
500
|
"content-type": "application/json",
|
|
522
501
|
};
|
|
523
502
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/places/v0/indexes";
|
|
524
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataSource
|
|
525
|
-
input.DataSourceConfiguration !== null && {
|
|
503
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DataSource != null && { DataSource: input.DataSource })), (input.DataSourceConfiguration != null && {
|
|
526
504
|
DataSourceConfiguration: serializeAws_restJson1DataSourceConfiguration(input.DataSourceConfiguration, context),
|
|
527
|
-
})), (input.Description
|
|
505
|
+
})), (input.Description != null && { Description: input.Description })), (input.IndexName != null && { IndexName: input.IndexName })), (input.PricingPlan != null && { PricingPlan: input.PricingPlan })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
528
506
|
return [4, context.endpoint()];
|
|
529
507
|
case 2:
|
|
530
508
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -557,8 +535,7 @@ export var serializeAws_restJson1CreateRouteCalculatorCommand = function (input,
|
|
|
557
535
|
"content-type": "application/json",
|
|
558
536
|
};
|
|
559
537
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/routes/v0/calculators";
|
|
560
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.CalculatorName
|
|
561
|
-
input.CalculatorName !== null && { CalculatorName: input.CalculatorName })), (input.DataSource !== undefined && input.DataSource !== null && { DataSource: input.DataSource })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.PricingPlan !== undefined && input.PricingPlan !== null && { PricingPlan: input.PricingPlan })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
538
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.CalculatorName != null && { CalculatorName: input.CalculatorName })), (input.DataSource != null && { DataSource: input.DataSource })), (input.Description != null && { Description: input.Description })), (input.PricingPlan != null && { PricingPlan: input.PricingPlan })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
562
539
|
return [4, context.endpoint()];
|
|
563
540
|
case 2:
|
|
564
541
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -591,9 +568,7 @@ export var serializeAws_restJson1CreateTrackerCommand = function (input, context
|
|
|
591
568
|
"content-type": "application/json",
|
|
592
569
|
};
|
|
593
570
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tracking/v0/trackers";
|
|
594
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
595
|
-
input.PositionFiltering !== null && { PositionFiltering: input.PositionFiltering })), (input.PricingPlan !== undefined && input.PricingPlan !== null && { PricingPlan: input.PricingPlan })), (input.PricingPlanDataSource !== undefined &&
|
|
596
|
-
input.PricingPlanDataSource !== null && { PricingPlanDataSource: input.PricingPlanDataSource })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.TrackerName !== undefined && input.TrackerName !== null && { TrackerName: input.TrackerName })));
|
|
571
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.KmsKeyId != null && { KmsKeyId: input.KmsKeyId })), (input.PositionFiltering != null && { PositionFiltering: input.PositionFiltering })), (input.PricingPlan != null && { PricingPlan: input.PricingPlan })), (input.PricingPlanDataSource != null && { PricingPlanDataSource: input.PricingPlanDataSource })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.TrackerName != null && { TrackerName: input.TrackerName })));
|
|
597
572
|
return [4, context.endpoint()];
|
|
598
573
|
case 2:
|
|
599
574
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1151,11 +1126,9 @@ export var serializeAws_restJson1GetDevicePositionHistoryCommand = function (inp
|
|
|
1151
1126
|
else {
|
|
1152
1127
|
throw new Error("No value provided for input HTTP label: DeviceId.");
|
|
1153
1128
|
}
|
|
1154
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.EndTimeExclusive
|
|
1155
|
-
input.EndTimeExclusive !== null && {
|
|
1129
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.EndTimeExclusive != null && {
|
|
1156
1130
|
EndTimeExclusive: input.EndTimeExclusive.toISOString().split(".")[0] + "Z",
|
|
1157
|
-
})), (input.MaxResults
|
|
1158
|
-
input.StartTimeInclusive !== null && {
|
|
1131
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StartTimeInclusive != null && {
|
|
1159
1132
|
StartTimeInclusive: input.StartTimeInclusive.toISOString().split(".")[0] + "Z",
|
|
1160
1133
|
})));
|
|
1161
1134
|
return [4, context.endpoint()];
|
|
@@ -1474,7 +1447,7 @@ export var serializeAws_restJson1ListDevicePositionsCommand = function (input, c
|
|
|
1474
1447
|
else {
|
|
1475
1448
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
1476
1449
|
}
|
|
1477
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
1450
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
1478
1451
|
return [4, context.endpoint()];
|
|
1479
1452
|
case 2:
|
|
1480
1453
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1507,7 +1480,7 @@ export var serializeAws_restJson1ListGeofenceCollectionsCommand = function (inpu
|
|
|
1507
1480
|
"content-type": "application/json",
|
|
1508
1481
|
};
|
|
1509
1482
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/geofencing/v0/list-collections";
|
|
1510
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
1483
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
1511
1484
|
return [4, context.endpoint()];
|
|
1512
1485
|
case 2:
|
|
1513
1486
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1551,7 +1524,7 @@ export var serializeAws_restJson1ListGeofencesCommand = function (input, context
|
|
|
1551
1524
|
else {
|
|
1552
1525
|
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
1553
1526
|
}
|
|
1554
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
1527
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
1555
1528
|
return [4, context.endpoint()];
|
|
1556
1529
|
case 2:
|
|
1557
1530
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1584,7 +1557,7 @@ export var serializeAws_restJson1ListMapsCommand = function (input, context) { r
|
|
|
1584
1557
|
"content-type": "application/json",
|
|
1585
1558
|
};
|
|
1586
1559
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/maps/v0/list-maps";
|
|
1587
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
1560
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
1588
1561
|
return [4, context.endpoint()];
|
|
1589
1562
|
case 2:
|
|
1590
1563
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1617,7 +1590,7 @@ export var serializeAws_restJson1ListPlaceIndexesCommand = function (input, cont
|
|
|
1617
1590
|
"content-type": "application/json",
|
|
1618
1591
|
};
|
|
1619
1592
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/places/v0/list-indexes";
|
|
1620
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
1593
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
1621
1594
|
return [4, context.endpoint()];
|
|
1622
1595
|
case 2:
|
|
1623
1596
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1650,7 +1623,7 @@ export var serializeAws_restJson1ListRouteCalculatorsCommand = function (input,
|
|
|
1650
1623
|
"content-type": "application/json",
|
|
1651
1624
|
};
|
|
1652
1625
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/routes/v0/list-calculators";
|
|
1653
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
1626
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
1654
1627
|
return [4, context.endpoint()];
|
|
1655
1628
|
case 2:
|
|
1656
1629
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1734,7 +1707,7 @@ export var serializeAws_restJson1ListTrackerConsumersCommand = function (input,
|
|
|
1734
1707
|
else {
|
|
1735
1708
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
1736
1709
|
}
|
|
1737
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
1710
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
1738
1711
|
return [4, context.endpoint()];
|
|
1739
1712
|
case 2:
|
|
1740
1713
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1767,7 +1740,7 @@ export var serializeAws_restJson1ListTrackersCommand = function (input, context)
|
|
|
1767
1740
|
"content-type": "application/json",
|
|
1768
1741
|
};
|
|
1769
1742
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tracking/v0/list-trackers";
|
|
1770
|
-
body = JSON.stringify(__assign(__assign({}, (input.MaxResults
|
|
1743
|
+
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
1771
1744
|
return [4, context.endpoint()];
|
|
1772
1745
|
case 2:
|
|
1773
1746
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1821,8 +1794,7 @@ export var serializeAws_restJson1PutGeofenceCommand = function (input, context)
|
|
|
1821
1794
|
else {
|
|
1822
1795
|
throw new Error("No value provided for input HTTP label: GeofenceId.");
|
|
1823
1796
|
}
|
|
1824
|
-
body = JSON.stringify(__assign({}, (input.Geometry
|
|
1825
|
-
input.Geometry !== null && { Geometry: serializeAws_restJson1GeofenceGeometry(input.Geometry, context) })));
|
|
1797
|
+
body = JSON.stringify(__assign({}, (input.Geometry != null && { Geometry: serializeAws_restJson1GeofenceGeometry(input.Geometry, context) })));
|
|
1826
1798
|
return [4, context.endpoint()];
|
|
1827
1799
|
case 2:
|
|
1828
1800
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1866,8 +1838,7 @@ export var serializeAws_restJson1SearchPlaceIndexForPositionCommand = function (
|
|
|
1866
1838
|
else {
|
|
1867
1839
|
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
1868
1840
|
}
|
|
1869
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Language
|
|
1870
|
-
input.Position !== null && { Position: serializeAws_restJson1Position(input.Position, context) })));
|
|
1841
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Language != null && { Language: input.Language })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.Position != null && { Position: serializeAws_restJson1Position(input.Position, context) })));
|
|
1871
1842
|
return [4, context.endpoint()];
|
|
1872
1843
|
case 2:
|
|
1873
1844
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1911,12 +1882,9 @@ export var serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = functio
|
|
|
1911
1882
|
else {
|
|
1912
1883
|
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
1913
1884
|
}
|
|
1914
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BiasPosition
|
|
1915
|
-
input.BiasPosition !== null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) })), (input.FilterBBox !== undefined &&
|
|
1916
|
-
input.FilterBBox !== null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) })), (input.FilterCountries !== undefined &&
|
|
1917
|
-
input.FilterCountries !== null && {
|
|
1885
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BiasPosition != null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) })), (input.FilterBBox != null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) })), (input.FilterCountries != null && {
|
|
1918
1886
|
FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
|
|
1919
|
-
})), (input.Language
|
|
1887
|
+
})), (input.Language != null && { Language: input.Language })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.Text != null && { Text: input.Text })));
|
|
1920
1888
|
return [4, context.endpoint()];
|
|
1921
1889
|
case 2:
|
|
1922
1890
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1960,12 +1928,9 @@ export var serializeAws_restJson1SearchPlaceIndexForTextCommand = function (inpu
|
|
|
1960
1928
|
else {
|
|
1961
1929
|
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
1962
1930
|
}
|
|
1963
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BiasPosition
|
|
1964
|
-
input.BiasPosition !== null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) })), (input.FilterBBox !== undefined &&
|
|
1965
|
-
input.FilterBBox !== null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) })), (input.FilterCountries !== undefined &&
|
|
1966
|
-
input.FilterCountries !== null && {
|
|
1931
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BiasPosition != null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) })), (input.FilterBBox != null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) })), (input.FilterCountries != null && {
|
|
1967
1932
|
FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
|
|
1968
|
-
})), (input.Language
|
|
1933
|
+
})), (input.Language != null && { Language: input.Language })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.Text != null && { Text: input.Text })));
|
|
1969
1934
|
return [4, context.endpoint()];
|
|
1970
1935
|
case 2:
|
|
1971
1936
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -2008,7 +1973,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
2008
1973
|
else {
|
|
2009
1974
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
2010
1975
|
}
|
|
2011
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
1976
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
2012
1977
|
return [4, context.endpoint()];
|
|
2013
1978
|
case 2:
|
|
2014
1979
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -2094,8 +2059,7 @@ export var serializeAws_restJson1UpdateGeofenceCollectionCommand = function (inp
|
|
|
2094
2059
|
else {
|
|
2095
2060
|
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
2096
2061
|
}
|
|
2097
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description
|
|
2098
|
-
input.PricingPlanDataSource !== null && { PricingPlanDataSource: input.PricingPlanDataSource })));
|
|
2062
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.PricingPlan != null && { PricingPlan: input.PricingPlan })), (input.PricingPlanDataSource != null && { PricingPlanDataSource: input.PricingPlanDataSource })));
|
|
2099
2063
|
return [4, context.endpoint()];
|
|
2100
2064
|
case 2:
|
|
2101
2065
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -2138,7 +2102,7 @@ export var serializeAws_restJson1UpdateMapCommand = function (input, context) {
|
|
|
2138
2102
|
else {
|
|
2139
2103
|
throw new Error("No value provided for input HTTP label: MapName.");
|
|
2140
2104
|
}
|
|
2141
|
-
body = JSON.stringify(__assign(__assign({}, (input.Description
|
|
2105
|
+
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.PricingPlan != null && { PricingPlan: input.PricingPlan })));
|
|
2142
2106
|
return [4, context.endpoint()];
|
|
2143
2107
|
case 2:
|
|
2144
2108
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -2181,10 +2145,9 @@ export var serializeAws_restJson1UpdatePlaceIndexCommand = function (input, cont
|
|
|
2181
2145
|
else {
|
|
2182
2146
|
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
2183
2147
|
}
|
|
2184
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.DataSourceConfiguration
|
|
2185
|
-
input.DataSourceConfiguration !== null && {
|
|
2148
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.DataSourceConfiguration != null && {
|
|
2186
2149
|
DataSourceConfiguration: serializeAws_restJson1DataSourceConfiguration(input.DataSourceConfiguration, context),
|
|
2187
|
-
})), (input.Description
|
|
2150
|
+
})), (input.Description != null && { Description: input.Description })), (input.PricingPlan != null && { PricingPlan: input.PricingPlan })));
|
|
2188
2151
|
return [4, context.endpoint()];
|
|
2189
2152
|
case 2:
|
|
2190
2153
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -2227,7 +2190,7 @@ export var serializeAws_restJson1UpdateRouteCalculatorCommand = function (input,
|
|
|
2227
2190
|
else {
|
|
2228
2191
|
throw new Error("No value provided for input HTTP label: CalculatorName.");
|
|
2229
2192
|
}
|
|
2230
|
-
body = JSON.stringify(__assign(__assign({}, (input.Description
|
|
2193
|
+
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.PricingPlan != null && { PricingPlan: input.PricingPlan })));
|
|
2231
2194
|
return [4, context.endpoint()];
|
|
2232
2195
|
case 2:
|
|
2233
2196
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -2270,9 +2233,7 @@ export var serializeAws_restJson1UpdateTrackerCommand = function (input, context
|
|
|
2270
2233
|
else {
|
|
2271
2234
|
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
2272
2235
|
}
|
|
2273
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
2274
|
-
input.PositionFiltering !== null && { PositionFiltering: input.PositionFiltering })), (input.PricingPlan !== undefined && input.PricingPlan !== null && { PricingPlan: input.PricingPlan })), (input.PricingPlanDataSource !== undefined &&
|
|
2275
|
-
input.PricingPlanDataSource !== null && { PricingPlanDataSource: input.PricingPlanDataSource })));
|
|
2236
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.PositionFiltering != null && { PositionFiltering: input.PositionFiltering })), (input.PricingPlan != null && { PricingPlan: input.PricingPlan })), (input.PricingPlanDataSource != null && { PricingPlanDataSource: input.PricingPlanDataSource })));
|
|
2276
2237
|
return [4, context.endpoint()];
|
|
2277
2238
|
case 2:
|
|
2278
2239
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -6471,8 +6432,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
6471
6432
|
});
|
|
6472
6433
|
}); };
|
|
6473
6434
|
var serializeAws_restJson1BatchPutGeofenceRequestEntry = function (input, context) {
|
|
6474
|
-
return __assign(__assign({}, (input.GeofenceId
|
|
6475
|
-
input.Geometry !== null && { Geometry: serializeAws_restJson1GeofenceGeometry(input.Geometry, context) }));
|
|
6435
|
+
return __assign(__assign({}, (input.GeofenceId != null && { GeofenceId: input.GeofenceId })), (input.Geometry != null && { Geometry: serializeAws_restJson1GeofenceGeometry(input.Geometry, context) }));
|
|
6476
6436
|
};
|
|
6477
6437
|
var serializeAws_restJson1BatchPutGeofenceRequestEntryList = function (input, context) {
|
|
6478
6438
|
return input
|
|
@@ -6495,12 +6455,10 @@ var serializeAws_restJson1BoundingBox = function (input, context) {
|
|
|
6495
6455
|
});
|
|
6496
6456
|
};
|
|
6497
6457
|
var serializeAws_restJson1CalculateRouteCarModeOptions = function (input, context) {
|
|
6498
|
-
return __assign(__assign({}, (input.AvoidFerries
|
|
6458
|
+
return __assign(__assign({}, (input.AvoidFerries != null && { AvoidFerries: input.AvoidFerries })), (input.AvoidTolls != null && { AvoidTolls: input.AvoidTolls }));
|
|
6499
6459
|
};
|
|
6500
6460
|
var serializeAws_restJson1CalculateRouteTruckModeOptions = function (input, context) {
|
|
6501
|
-
return __assign(__assign(__assign(__assign({}, (input.AvoidFerries
|
|
6502
|
-
input.Dimensions !== null && { Dimensions: serializeAws_restJson1TruckDimensions(input.Dimensions, context) })), (input.Weight !== undefined &&
|
|
6503
|
-
input.Weight !== null && { Weight: serializeAws_restJson1TruckWeight(input.Weight, context) }));
|
|
6461
|
+
return __assign(__assign(__assign(__assign({}, (input.AvoidFerries != null && { AvoidFerries: input.AvoidFerries })), (input.AvoidTolls != null && { AvoidTolls: input.AvoidTolls })), (input.Dimensions != null && { Dimensions: serializeAws_restJson1TruckDimensions(input.Dimensions, context) })), (input.Weight != null && { Weight: serializeAws_restJson1TruckWeight(input.Weight, context) }));
|
|
6504
6462
|
};
|
|
6505
6463
|
var serializeAws_restJson1CountryCodeList = function (input, context) {
|
|
6506
6464
|
return input
|
|
@@ -6513,7 +6471,7 @@ var serializeAws_restJson1CountryCodeList = function (input, context) {
|
|
|
6513
6471
|
});
|
|
6514
6472
|
};
|
|
6515
6473
|
var serializeAws_restJson1DataSourceConfiguration = function (input, context) {
|
|
6516
|
-
return __assign({}, (input.IntendedUse
|
|
6474
|
+
return __assign({}, (input.IntendedUse != null && { IntendedUse: input.IntendedUse }));
|
|
6517
6475
|
};
|
|
6518
6476
|
var serializeAws_restJson1DeviceIdsList = function (input, context) {
|
|
6519
6477
|
return input
|
|
@@ -6526,13 +6484,9 @@ var serializeAws_restJson1DeviceIdsList = function (input, context) {
|
|
|
6526
6484
|
});
|
|
6527
6485
|
};
|
|
6528
6486
|
var serializeAws_restJson1DevicePositionUpdate = function (input, context) {
|
|
6529
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Accuracy
|
|
6530
|
-
input.Accuracy !== null && { Accuracy: serializeAws_restJson1PositionalAccuracy(input.Accuracy, context) })), (input.DeviceId !== undefined && input.DeviceId !== null && { DeviceId: input.DeviceId })), (input.Position !== undefined &&
|
|
6531
|
-
input.Position !== null && { Position: serializeAws_restJson1Position(input.Position, context) })), (input.PositionProperties !== undefined &&
|
|
6532
|
-
input.PositionProperties !== null && {
|
|
6487
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Accuracy != null && { Accuracy: serializeAws_restJson1PositionalAccuracy(input.Accuracy, context) })), (input.DeviceId != null && { DeviceId: input.DeviceId })), (input.Position != null && { Position: serializeAws_restJson1Position(input.Position, context) })), (input.PositionProperties != null && {
|
|
6533
6488
|
PositionProperties: serializeAws_restJson1PropertyMap(input.PositionProperties, context),
|
|
6534
|
-
})), (input.SampleTime
|
|
6535
|
-
input.SampleTime !== null && { SampleTime: input.SampleTime.toISOString().split(".")[0] + "Z" }));
|
|
6489
|
+
})), (input.SampleTime != null && { SampleTime: input.SampleTime.toISOString().split(".")[0] + "Z" }));
|
|
6536
6490
|
};
|
|
6537
6491
|
var serializeAws_restJson1DevicePositionUpdateList = function (input, context) {
|
|
6538
6492
|
return input
|
|
@@ -6545,8 +6499,7 @@ var serializeAws_restJson1DevicePositionUpdateList = function (input, context) {
|
|
|
6545
6499
|
});
|
|
6546
6500
|
};
|
|
6547
6501
|
var serializeAws_restJson1GeofenceGeometry = function (input, context) {
|
|
6548
|
-
return __assign({}, (input.Polygon
|
|
6549
|
-
input.Polygon !== null && { Polygon: serializeAws_restJson1LinearRings(input.Polygon, context) }));
|
|
6502
|
+
return __assign({}, (input.Polygon != null && { Polygon: serializeAws_restJson1LinearRings(input.Polygon, context) }));
|
|
6550
6503
|
};
|
|
6551
6504
|
var serializeAws_restJson1IdList = function (input, context) {
|
|
6552
6505
|
return input
|
|
@@ -6579,7 +6532,7 @@ var serializeAws_restJson1LinearRings = function (input, context) {
|
|
|
6579
6532
|
});
|
|
6580
6533
|
};
|
|
6581
6534
|
var serializeAws_restJson1MapConfiguration = function (input, context) {
|
|
6582
|
-
return __assign({}, (input.Style
|
|
6535
|
+
return __assign({}, (input.Style != null && { Style: input.Style }));
|
|
6583
6536
|
};
|
|
6584
6537
|
var serializeAws_restJson1Position = function (input, context) {
|
|
6585
6538
|
return input
|
|
@@ -6592,8 +6545,7 @@ var serializeAws_restJson1Position = function (input, context) {
|
|
|
6592
6545
|
});
|
|
6593
6546
|
};
|
|
6594
6547
|
var serializeAws_restJson1PositionalAccuracy = function (input, context) {
|
|
6595
|
-
return __assign({}, (input.Horizontal
|
|
6596
|
-
input.Horizontal !== null && { Horizontal: __serializeFloat(input.Horizontal) }));
|
|
6548
|
+
return __assign({}, (input.Horizontal != null && { Horizontal: __serializeFloat(input.Horizontal) }));
|
|
6597
6549
|
};
|
|
6598
6550
|
var serializeAws_restJson1PositionList = function (input, context) {
|
|
6599
6551
|
return input
|
|
@@ -6626,10 +6578,10 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
6626
6578
|
}, {});
|
|
6627
6579
|
};
|
|
6628
6580
|
var serializeAws_restJson1TruckDimensions = function (input, context) {
|
|
6629
|
-
return __assign(__assign(__assign(__assign({}, (input.Height
|
|
6581
|
+
return __assign(__assign(__assign(__assign({}, (input.Height != null && { Height: __serializeFloat(input.Height) })), (input.Length != null && { Length: __serializeFloat(input.Length) })), (input.Unit != null && { Unit: input.Unit })), (input.Width != null && { Width: __serializeFloat(input.Width) }));
|
|
6630
6582
|
};
|
|
6631
6583
|
var serializeAws_restJson1TruckWeight = function (input, context) {
|
|
6632
|
-
return __assign(__assign({}, (input.Total
|
|
6584
|
+
return __assign(__assign({}, (input.Total != null && { Total: __serializeFloat(input.Total) })), (input.Unit != null && { Unit: input.Unit }));
|
|
6633
6585
|
};
|
|
6634
6586
|
var serializeAws_restJson1WaypointPositionList = function (input, context) {
|
|
6635
6587
|
return input
|
|
@@ -6655,9 +6607,7 @@ var deserializeAws_restJson1ArnList = function (output, context) {
|
|
|
6655
6607
|
var deserializeAws_restJson1BatchDeleteDevicePositionHistoryError = function (output, context) {
|
|
6656
6608
|
return {
|
|
6657
6609
|
DeviceId: __expectString(output.DeviceId),
|
|
6658
|
-
Error: output.Error
|
|
6659
|
-
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
6660
|
-
: undefined,
|
|
6610
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
6661
6611
|
};
|
|
6662
6612
|
};
|
|
6663
6613
|
var deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList = function (output, context) {
|
|
@@ -6673,9 +6623,7 @@ var deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList = function
|
|
|
6673
6623
|
};
|
|
6674
6624
|
var deserializeAws_restJson1BatchDeleteGeofenceError = function (output, context) {
|
|
6675
6625
|
return {
|
|
6676
|
-
Error: output.Error
|
|
6677
|
-
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
6678
|
-
: undefined,
|
|
6626
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
6679
6627
|
GeofenceId: __expectString(output.GeofenceId),
|
|
6680
6628
|
};
|
|
6681
6629
|
};
|
|
@@ -6693,12 +6641,8 @@ var deserializeAws_restJson1BatchDeleteGeofenceErrorList = function (output, con
|
|
|
6693
6641
|
var deserializeAws_restJson1BatchEvaluateGeofencesError = function (output, context) {
|
|
6694
6642
|
return {
|
|
6695
6643
|
DeviceId: __expectString(output.DeviceId),
|
|
6696
|
-
Error: output.Error
|
|
6697
|
-
|
|
6698
|
-
: undefined,
|
|
6699
|
-
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
6700
|
-
? __expectNonNull(__parseRfc3339DateTime(output.SampleTime))
|
|
6701
|
-
: undefined,
|
|
6644
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
6645
|
+
SampleTime: output.SampleTime != null ? __expectNonNull(__parseRfc3339DateTime(output.SampleTime)) : undefined,
|
|
6702
6646
|
};
|
|
6703
6647
|
};
|
|
6704
6648
|
var deserializeAws_restJson1BatchEvaluateGeofencesErrorList = function (output, context) {
|
|
@@ -6715,9 +6659,7 @@ var deserializeAws_restJson1BatchEvaluateGeofencesErrorList = function (output,
|
|
|
6715
6659
|
var deserializeAws_restJson1BatchGetDevicePositionError = function (output, context) {
|
|
6716
6660
|
return {
|
|
6717
6661
|
DeviceId: __expectString(output.DeviceId),
|
|
6718
|
-
Error: output.Error
|
|
6719
|
-
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
6720
|
-
: undefined,
|
|
6662
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
6721
6663
|
};
|
|
6722
6664
|
};
|
|
6723
6665
|
var deserializeAws_restJson1BatchGetDevicePositionErrorList = function (output, context) {
|
|
@@ -6739,9 +6681,7 @@ var deserializeAws_restJson1BatchItemError = function (output, context) {
|
|
|
6739
6681
|
};
|
|
6740
6682
|
var deserializeAws_restJson1BatchPutGeofenceError = function (output, context) {
|
|
6741
6683
|
return {
|
|
6742
|
-
Error: output.Error
|
|
6743
|
-
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
6744
|
-
: undefined,
|
|
6684
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
6745
6685
|
GeofenceId: __expectString(output.GeofenceId),
|
|
6746
6686
|
};
|
|
6747
6687
|
};
|
|
@@ -6758,13 +6698,9 @@ var deserializeAws_restJson1BatchPutGeofenceErrorList = function (output, contex
|
|
|
6758
6698
|
};
|
|
6759
6699
|
var deserializeAws_restJson1BatchPutGeofenceSuccess = function (output, context) {
|
|
6760
6700
|
return {
|
|
6761
|
-
CreateTime: output.CreateTime
|
|
6762
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
|
|
6763
|
-
: undefined,
|
|
6701
|
+
CreateTime: output.CreateTime != null ? __expectNonNull(__parseRfc3339DateTime(output.CreateTime)) : undefined,
|
|
6764
6702
|
GeofenceId: __expectString(output.GeofenceId),
|
|
6765
|
-
UpdateTime: output.UpdateTime
|
|
6766
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
|
|
6767
|
-
: undefined,
|
|
6703
|
+
UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime)) : undefined,
|
|
6768
6704
|
};
|
|
6769
6705
|
};
|
|
6770
6706
|
var deserializeAws_restJson1BatchPutGeofenceSuccessList = function (output, context) {
|
|
@@ -6781,12 +6717,8 @@ var deserializeAws_restJson1BatchPutGeofenceSuccessList = function (output, cont
|
|
|
6781
6717
|
var deserializeAws_restJson1BatchUpdateDevicePositionError = function (output, context) {
|
|
6782
6718
|
return {
|
|
6783
6719
|
DeviceId: __expectString(output.DeviceId),
|
|
6784
|
-
Error: output.Error
|
|
6785
|
-
|
|
6786
|
-
: undefined,
|
|
6787
|
-
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
6788
|
-
? __expectNonNull(__parseRfc3339DateTime(output.SampleTime))
|
|
6789
|
-
: undefined,
|
|
6720
|
+
Error: output.Error != null ? deserializeAws_restJson1BatchItemError(output.Error, context) : undefined,
|
|
6721
|
+
SampleTime: output.SampleTime != null ? __expectNonNull(__parseRfc3339DateTime(output.SampleTime)) : undefined,
|
|
6790
6722
|
};
|
|
6791
6723
|
};
|
|
6792
6724
|
var deserializeAws_restJson1BatchUpdateDevicePositionErrorList = function (output, context) {
|
|
@@ -6825,9 +6757,7 @@ var deserializeAws_restJson1CalculateRouteSummary = function (output, context) {
|
|
|
6825
6757
|
Distance: __limitedParseDouble(output.Distance),
|
|
6826
6758
|
DistanceUnit: __expectString(output.DistanceUnit),
|
|
6827
6759
|
DurationSeconds: __limitedParseDouble(output.DurationSeconds),
|
|
6828
|
-
RouteBBox: output.RouteBBox
|
|
6829
|
-
? deserializeAws_restJson1BoundingBox(output.RouteBBox, context)
|
|
6830
|
-
: undefined,
|
|
6760
|
+
RouteBBox: output.RouteBBox != null ? deserializeAws_restJson1BoundingBox(output.RouteBBox, context) : undefined,
|
|
6831
6761
|
};
|
|
6832
6762
|
};
|
|
6833
6763
|
var deserializeAws_restJson1CountryCodeList = function (output, context) {
|
|
@@ -6848,22 +6778,14 @@ var deserializeAws_restJson1DataSourceConfiguration = function (output, context)
|
|
|
6848
6778
|
};
|
|
6849
6779
|
var deserializeAws_restJson1DevicePosition = function (output, context) {
|
|
6850
6780
|
return {
|
|
6851
|
-
Accuracy: output.Accuracy
|
|
6852
|
-
? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context)
|
|
6853
|
-
: undefined,
|
|
6781
|
+
Accuracy: output.Accuracy != null ? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context) : undefined,
|
|
6854
6782
|
DeviceId: __expectString(output.DeviceId),
|
|
6855
|
-
Position: output.Position
|
|
6856
|
-
|
|
6857
|
-
: undefined,
|
|
6858
|
-
PositionProperties: output.PositionProperties !== undefined && output.PositionProperties !== null
|
|
6783
|
+
Position: output.Position != null ? deserializeAws_restJson1Position(output.Position, context) : undefined,
|
|
6784
|
+
PositionProperties: output.PositionProperties != null
|
|
6859
6785
|
? deserializeAws_restJson1PropertyMap(output.PositionProperties, context)
|
|
6860
6786
|
: undefined,
|
|
6861
|
-
ReceivedTime: output.ReceivedTime
|
|
6862
|
-
|
|
6863
|
-
: undefined,
|
|
6864
|
-
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
6865
|
-
? __expectNonNull(__parseRfc3339DateTime(output.SampleTime))
|
|
6866
|
-
: undefined,
|
|
6787
|
+
ReceivedTime: output.ReceivedTime != null ? __expectNonNull(__parseRfc3339DateTime(output.ReceivedTime)) : undefined,
|
|
6788
|
+
SampleTime: output.SampleTime != null ? __expectNonNull(__parseRfc3339DateTime(output.SampleTime)) : undefined,
|
|
6867
6789
|
};
|
|
6868
6790
|
};
|
|
6869
6791
|
var deserializeAws_restJson1DevicePositionList = function (output, context) {
|
|
@@ -6879,34 +6801,22 @@ var deserializeAws_restJson1DevicePositionList = function (output, context) {
|
|
|
6879
6801
|
};
|
|
6880
6802
|
var deserializeAws_restJson1GeofenceGeometry = function (output, context) {
|
|
6881
6803
|
return {
|
|
6882
|
-
Polygon: output.Polygon
|
|
6883
|
-
? deserializeAws_restJson1LinearRings(output.Polygon, context)
|
|
6884
|
-
: undefined,
|
|
6804
|
+
Polygon: output.Polygon != null ? deserializeAws_restJson1LinearRings(output.Polygon, context) : undefined,
|
|
6885
6805
|
};
|
|
6886
6806
|
};
|
|
6887
6807
|
var deserializeAws_restJson1Leg = function (output, context) {
|
|
6888
6808
|
return {
|
|
6889
6809
|
Distance: __limitedParseDouble(output.Distance),
|
|
6890
6810
|
DurationSeconds: __limitedParseDouble(output.DurationSeconds),
|
|
6891
|
-
EndPosition: output.EndPosition
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
? deserializeAws_restJson1LegGeometry(output.Geometry, context)
|
|
6896
|
-
: undefined,
|
|
6897
|
-
StartPosition: output.StartPosition !== undefined && output.StartPosition !== null
|
|
6898
|
-
? deserializeAws_restJson1Position(output.StartPosition, context)
|
|
6899
|
-
: undefined,
|
|
6900
|
-
Steps: output.Steps !== undefined && output.Steps !== null
|
|
6901
|
-
? deserializeAws_restJson1StepList(output.Steps, context)
|
|
6902
|
-
: undefined,
|
|
6811
|
+
EndPosition: output.EndPosition != null ? deserializeAws_restJson1Position(output.EndPosition, context) : undefined,
|
|
6812
|
+
Geometry: output.Geometry != null ? deserializeAws_restJson1LegGeometry(output.Geometry, context) : undefined,
|
|
6813
|
+
StartPosition: output.StartPosition != null ? deserializeAws_restJson1Position(output.StartPosition, context) : undefined,
|
|
6814
|
+
Steps: output.Steps != null ? deserializeAws_restJson1StepList(output.Steps, context) : undefined,
|
|
6903
6815
|
};
|
|
6904
6816
|
};
|
|
6905
6817
|
var deserializeAws_restJson1LegGeometry = function (output, context) {
|
|
6906
6818
|
return {
|
|
6907
|
-
LineString: output.LineString
|
|
6908
|
-
? deserializeAws_restJson1LineString(output.LineString, context)
|
|
6909
|
-
: undefined,
|
|
6819
|
+
LineString: output.LineString != null ? deserializeAws_restJson1LineString(output.LineString, context) : undefined,
|
|
6910
6820
|
};
|
|
6911
6821
|
};
|
|
6912
6822
|
var deserializeAws_restJson1LegList = function (output, context) {
|
|
@@ -6955,19 +6865,13 @@ var deserializeAws_restJson1LineString = function (output, context) {
|
|
|
6955
6865
|
};
|
|
6956
6866
|
var deserializeAws_restJson1ListDevicePositionsResponseEntry = function (output, context) {
|
|
6957
6867
|
return {
|
|
6958
|
-
Accuracy: output.Accuracy
|
|
6959
|
-
? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context)
|
|
6960
|
-
: undefined,
|
|
6868
|
+
Accuracy: output.Accuracy != null ? deserializeAws_restJson1PositionalAccuracy(output.Accuracy, context) : undefined,
|
|
6961
6869
|
DeviceId: __expectString(output.DeviceId),
|
|
6962
|
-
Position: output.Position
|
|
6963
|
-
|
|
6964
|
-
: undefined,
|
|
6965
|
-
PositionProperties: output.PositionProperties !== undefined && output.PositionProperties !== null
|
|
6870
|
+
Position: output.Position != null ? deserializeAws_restJson1Position(output.Position, context) : undefined,
|
|
6871
|
+
PositionProperties: output.PositionProperties != null
|
|
6966
6872
|
? deserializeAws_restJson1PropertyMap(output.PositionProperties, context)
|
|
6967
6873
|
: undefined,
|
|
6968
|
-
SampleTime: output.SampleTime
|
|
6969
|
-
? __expectNonNull(__parseRfc3339DateTime(output.SampleTime))
|
|
6970
|
-
: undefined,
|
|
6874
|
+
SampleTime: output.SampleTime != null ? __expectNonNull(__parseRfc3339DateTime(output.SampleTime)) : undefined,
|
|
6971
6875
|
};
|
|
6972
6876
|
};
|
|
6973
6877
|
var deserializeAws_restJson1ListDevicePositionsResponseEntryList = function (output, context) {
|
|
@@ -6984,15 +6888,11 @@ var deserializeAws_restJson1ListDevicePositionsResponseEntryList = function (out
|
|
|
6984
6888
|
var deserializeAws_restJson1ListGeofenceCollectionsResponseEntry = function (output, context) {
|
|
6985
6889
|
return {
|
|
6986
6890
|
CollectionName: __expectString(output.CollectionName),
|
|
6987
|
-
CreateTime: output.CreateTime
|
|
6988
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
|
|
6989
|
-
: undefined,
|
|
6891
|
+
CreateTime: output.CreateTime != null ? __expectNonNull(__parseRfc3339DateTime(output.CreateTime)) : undefined,
|
|
6990
6892
|
Description: __expectString(output.Description),
|
|
6991
6893
|
PricingPlan: __expectString(output.PricingPlan),
|
|
6992
6894
|
PricingPlanDataSource: __expectString(output.PricingPlanDataSource),
|
|
6993
|
-
UpdateTime: output.UpdateTime
|
|
6994
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
|
|
6995
|
-
: undefined,
|
|
6895
|
+
UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime)) : undefined,
|
|
6996
6896
|
};
|
|
6997
6897
|
};
|
|
6998
6898
|
var deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = function (output, context) {
|
|
@@ -7008,17 +6908,11 @@ var deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = function
|
|
|
7008
6908
|
};
|
|
7009
6909
|
var deserializeAws_restJson1ListGeofenceResponseEntry = function (output, context) {
|
|
7010
6910
|
return {
|
|
7011
|
-
CreateTime: output.CreateTime
|
|
7012
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
|
|
7013
|
-
: undefined,
|
|
6911
|
+
CreateTime: output.CreateTime != null ? __expectNonNull(__parseRfc3339DateTime(output.CreateTime)) : undefined,
|
|
7014
6912
|
GeofenceId: __expectString(output.GeofenceId),
|
|
7015
|
-
Geometry: output.Geometry
|
|
7016
|
-
? deserializeAws_restJson1GeofenceGeometry(output.Geometry, context)
|
|
7017
|
-
: undefined,
|
|
6913
|
+
Geometry: output.Geometry != null ? deserializeAws_restJson1GeofenceGeometry(output.Geometry, context) : undefined,
|
|
7018
6914
|
Status: __expectString(output.Status),
|
|
7019
|
-
UpdateTime: output.UpdateTime
|
|
7020
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
|
|
7021
|
-
: undefined,
|
|
6915
|
+
UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime)) : undefined,
|
|
7022
6916
|
};
|
|
7023
6917
|
};
|
|
7024
6918
|
var deserializeAws_restJson1ListGeofenceResponseEntryList = function (output, context) {
|
|
@@ -7034,16 +6928,12 @@ var deserializeAws_restJson1ListGeofenceResponseEntryList = function (output, co
|
|
|
7034
6928
|
};
|
|
7035
6929
|
var deserializeAws_restJson1ListMapsResponseEntry = function (output, context) {
|
|
7036
6930
|
return {
|
|
7037
|
-
CreateTime: output.CreateTime
|
|
7038
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
|
|
7039
|
-
: undefined,
|
|
6931
|
+
CreateTime: output.CreateTime != null ? __expectNonNull(__parseRfc3339DateTime(output.CreateTime)) : undefined,
|
|
7040
6932
|
DataSource: __expectString(output.DataSource),
|
|
7041
6933
|
Description: __expectString(output.Description),
|
|
7042
6934
|
MapName: __expectString(output.MapName),
|
|
7043
6935
|
PricingPlan: __expectString(output.PricingPlan),
|
|
7044
|
-
UpdateTime: output.UpdateTime
|
|
7045
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
|
|
7046
|
-
: undefined,
|
|
6936
|
+
UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime)) : undefined,
|
|
7047
6937
|
};
|
|
7048
6938
|
};
|
|
7049
6939
|
var deserializeAws_restJson1ListMapsResponseEntryList = function (output, context) {
|
|
@@ -7059,16 +6949,12 @@ var deserializeAws_restJson1ListMapsResponseEntryList = function (output, contex
|
|
|
7059
6949
|
};
|
|
7060
6950
|
var deserializeAws_restJson1ListPlaceIndexesResponseEntry = function (output, context) {
|
|
7061
6951
|
return {
|
|
7062
|
-
CreateTime: output.CreateTime
|
|
7063
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
|
|
7064
|
-
: undefined,
|
|
6952
|
+
CreateTime: output.CreateTime != null ? __expectNonNull(__parseRfc3339DateTime(output.CreateTime)) : undefined,
|
|
7065
6953
|
DataSource: __expectString(output.DataSource),
|
|
7066
6954
|
Description: __expectString(output.Description),
|
|
7067
6955
|
IndexName: __expectString(output.IndexName),
|
|
7068
6956
|
PricingPlan: __expectString(output.PricingPlan),
|
|
7069
|
-
UpdateTime: output.UpdateTime
|
|
7070
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
|
|
7071
|
-
: undefined,
|
|
6957
|
+
UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime)) : undefined,
|
|
7072
6958
|
};
|
|
7073
6959
|
};
|
|
7074
6960
|
var deserializeAws_restJson1ListPlaceIndexesResponseEntryList = function (output, context) {
|
|
@@ -7085,15 +6971,11 @@ var deserializeAws_restJson1ListPlaceIndexesResponseEntryList = function (output
|
|
|
7085
6971
|
var deserializeAws_restJson1ListRouteCalculatorsResponseEntry = function (output, context) {
|
|
7086
6972
|
return {
|
|
7087
6973
|
CalculatorName: __expectString(output.CalculatorName),
|
|
7088
|
-
CreateTime: output.CreateTime
|
|
7089
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
|
|
7090
|
-
: undefined,
|
|
6974
|
+
CreateTime: output.CreateTime != null ? __expectNonNull(__parseRfc3339DateTime(output.CreateTime)) : undefined,
|
|
7091
6975
|
DataSource: __expectString(output.DataSource),
|
|
7092
6976
|
Description: __expectString(output.Description),
|
|
7093
6977
|
PricingPlan: __expectString(output.PricingPlan),
|
|
7094
|
-
UpdateTime: output.UpdateTime
|
|
7095
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
|
|
7096
|
-
: undefined,
|
|
6978
|
+
UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime)) : undefined,
|
|
7097
6979
|
};
|
|
7098
6980
|
};
|
|
7099
6981
|
var deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = function (output, context) {
|
|
@@ -7109,16 +6991,12 @@ var deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = function (ou
|
|
|
7109
6991
|
};
|
|
7110
6992
|
var deserializeAws_restJson1ListTrackersResponseEntry = function (output, context) {
|
|
7111
6993
|
return {
|
|
7112
|
-
CreateTime: output.CreateTime
|
|
7113
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
|
|
7114
|
-
: undefined,
|
|
6994
|
+
CreateTime: output.CreateTime != null ? __expectNonNull(__parseRfc3339DateTime(output.CreateTime)) : undefined,
|
|
7115
6995
|
Description: __expectString(output.Description),
|
|
7116
6996
|
PricingPlan: __expectString(output.PricingPlan),
|
|
7117
6997
|
PricingPlanDataSource: __expectString(output.PricingPlanDataSource),
|
|
7118
6998
|
TrackerName: __expectString(output.TrackerName),
|
|
7119
|
-
UpdateTime: output.UpdateTime
|
|
7120
|
-
? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
|
|
7121
|
-
: undefined,
|
|
6999
|
+
UpdateTime: output.UpdateTime != null ? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime)) : undefined,
|
|
7122
7000
|
};
|
|
7123
7001
|
};
|
|
7124
7002
|
var deserializeAws_restJson1ListTrackersResponseEntryList = function (output, context) {
|
|
@@ -7141,9 +7019,7 @@ var deserializeAws_restJson1Place = function (output, context) {
|
|
|
7141
7019
|
return {
|
|
7142
7020
|
AddressNumber: __expectString(output.AddressNumber),
|
|
7143
7021
|
Country: __expectString(output.Country),
|
|
7144
|
-
Geometry: output.Geometry
|
|
7145
|
-
? deserializeAws_restJson1PlaceGeometry(output.Geometry, context)
|
|
7146
|
-
: undefined,
|
|
7022
|
+
Geometry: output.Geometry != null ? deserializeAws_restJson1PlaceGeometry(output.Geometry, context) : undefined,
|
|
7147
7023
|
Interpolated: __expectBoolean(output.Interpolated),
|
|
7148
7024
|
Label: __expectString(output.Label),
|
|
7149
7025
|
Municipality: __expectString(output.Municipality),
|
|
@@ -7152,16 +7028,12 @@ var deserializeAws_restJson1Place = function (output, context) {
|
|
|
7152
7028
|
Region: __expectString(output.Region),
|
|
7153
7029
|
Street: __expectString(output.Street),
|
|
7154
7030
|
SubRegion: __expectString(output.SubRegion),
|
|
7155
|
-
TimeZone: output.TimeZone
|
|
7156
|
-
? deserializeAws_restJson1TimeZone(output.TimeZone, context)
|
|
7157
|
-
: undefined,
|
|
7031
|
+
TimeZone: output.TimeZone != null ? deserializeAws_restJson1TimeZone(output.TimeZone, context) : undefined,
|
|
7158
7032
|
};
|
|
7159
7033
|
};
|
|
7160
7034
|
var deserializeAws_restJson1PlaceGeometry = function (output, context) {
|
|
7161
7035
|
return {
|
|
7162
|
-
Point: output.Point
|
|
7163
|
-
? deserializeAws_restJson1Position(output.Point, context)
|
|
7164
|
-
: undefined,
|
|
7036
|
+
Point: output.Point != null ? deserializeAws_restJson1Position(output.Point, context) : undefined,
|
|
7165
7037
|
};
|
|
7166
7038
|
};
|
|
7167
7039
|
var deserializeAws_restJson1Position = function (output, context) {
|
|
@@ -7216,9 +7088,7 @@ var deserializeAws_restJson1RouteMatrixEntry = function (output, context) {
|
|
|
7216
7088
|
return {
|
|
7217
7089
|
Distance: __limitedParseDouble(output.Distance),
|
|
7218
7090
|
DurationSeconds: __limitedParseDouble(output.DurationSeconds),
|
|
7219
|
-
Error: output.Error
|
|
7220
|
-
? deserializeAws_restJson1RouteMatrixEntryError(output.Error, context)
|
|
7221
|
-
: undefined,
|
|
7091
|
+
Error: output.Error != null ? deserializeAws_restJson1RouteMatrixEntryError(output.Error, context) : undefined,
|
|
7222
7092
|
};
|
|
7223
7093
|
};
|
|
7224
7094
|
var deserializeAws_restJson1RouteMatrixEntryError = function (output, context) {
|
|
@@ -7241,9 +7111,7 @@ var deserializeAws_restJson1RouteMatrixRow = function (output, context) {
|
|
|
7241
7111
|
var deserializeAws_restJson1SearchForPositionResult = function (output, context) {
|
|
7242
7112
|
return {
|
|
7243
7113
|
Distance: __limitedParseDouble(output.Distance),
|
|
7244
|
-
Place: output.Place
|
|
7245
|
-
? deserializeAws_restJson1Place(output.Place, context)
|
|
7246
|
-
: undefined,
|
|
7114
|
+
Place: output.Place != null ? deserializeAws_restJson1Place(output.Place, context) : undefined,
|
|
7247
7115
|
};
|
|
7248
7116
|
};
|
|
7249
7117
|
var deserializeAws_restJson1SearchForPositionResultList = function (output, context) {
|
|
@@ -7276,9 +7144,7 @@ var deserializeAws_restJson1SearchForSuggestionsResultList = function (output, c
|
|
|
7276
7144
|
var deserializeAws_restJson1SearchForTextResult = function (output, context) {
|
|
7277
7145
|
return {
|
|
7278
7146
|
Distance: __limitedParseDouble(output.Distance),
|
|
7279
|
-
Place: output.Place
|
|
7280
|
-
? deserializeAws_restJson1Place(output.Place, context)
|
|
7281
|
-
: undefined,
|
|
7147
|
+
Place: output.Place != null ? deserializeAws_restJson1Place(output.Place, context) : undefined,
|
|
7282
7148
|
Relevance: __limitedParseDouble(output.Relevance),
|
|
7283
7149
|
};
|
|
7284
7150
|
};
|
|
@@ -7298,21 +7164,15 @@ var deserializeAws_restJson1SearchPlaceIndexForPositionSummary = function (outpu
|
|
|
7298
7164
|
DataSource: __expectString(output.DataSource),
|
|
7299
7165
|
Language: __expectString(output.Language),
|
|
7300
7166
|
MaxResults: __expectInt32(output.MaxResults),
|
|
7301
|
-
Position: output.Position
|
|
7302
|
-
? deserializeAws_restJson1Position(output.Position, context)
|
|
7303
|
-
: undefined,
|
|
7167
|
+
Position: output.Position != null ? deserializeAws_restJson1Position(output.Position, context) : undefined,
|
|
7304
7168
|
};
|
|
7305
7169
|
};
|
|
7306
7170
|
var deserializeAws_restJson1SearchPlaceIndexForSuggestionsSummary = function (output, context) {
|
|
7307
7171
|
return {
|
|
7308
|
-
BiasPosition: output.BiasPosition
|
|
7309
|
-
? deserializeAws_restJson1Position(output.BiasPosition, context)
|
|
7310
|
-
: undefined,
|
|
7172
|
+
BiasPosition: output.BiasPosition != null ? deserializeAws_restJson1Position(output.BiasPosition, context) : undefined,
|
|
7311
7173
|
DataSource: __expectString(output.DataSource),
|
|
7312
|
-
FilterBBox: output.FilterBBox
|
|
7313
|
-
|
|
7314
|
-
: undefined,
|
|
7315
|
-
FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
|
|
7174
|
+
FilterBBox: output.FilterBBox != null ? deserializeAws_restJson1BoundingBox(output.FilterBBox, context) : undefined,
|
|
7175
|
+
FilterCountries: output.FilterCountries != null
|
|
7316
7176
|
? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
|
|
7317
7177
|
: undefined,
|
|
7318
7178
|
Language: __expectString(output.Language),
|
|
@@ -7322,21 +7182,15 @@ var deserializeAws_restJson1SearchPlaceIndexForSuggestionsSummary = function (ou
|
|
|
7322
7182
|
};
|
|
7323
7183
|
var deserializeAws_restJson1SearchPlaceIndexForTextSummary = function (output, context) {
|
|
7324
7184
|
return {
|
|
7325
|
-
BiasPosition: output.BiasPosition
|
|
7326
|
-
? deserializeAws_restJson1Position(output.BiasPosition, context)
|
|
7327
|
-
: undefined,
|
|
7185
|
+
BiasPosition: output.BiasPosition != null ? deserializeAws_restJson1Position(output.BiasPosition, context) : undefined,
|
|
7328
7186
|
DataSource: __expectString(output.DataSource),
|
|
7329
|
-
FilterBBox: output.FilterBBox
|
|
7330
|
-
|
|
7331
|
-
: undefined,
|
|
7332
|
-
FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
|
|
7187
|
+
FilterBBox: output.FilterBBox != null ? deserializeAws_restJson1BoundingBox(output.FilterBBox, context) : undefined,
|
|
7188
|
+
FilterCountries: output.FilterCountries != null
|
|
7333
7189
|
? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
|
|
7334
7190
|
: undefined,
|
|
7335
7191
|
Language: __expectString(output.Language),
|
|
7336
7192
|
MaxResults: __expectInt32(output.MaxResults),
|
|
7337
|
-
ResultBBox: output.ResultBBox
|
|
7338
|
-
? deserializeAws_restJson1BoundingBox(output.ResultBBox, context)
|
|
7339
|
-
: undefined,
|
|
7193
|
+
ResultBBox: output.ResultBBox != null ? deserializeAws_restJson1BoundingBox(output.ResultBBox, context) : undefined,
|
|
7340
7194
|
Text: __expectString(output.Text),
|
|
7341
7195
|
};
|
|
7342
7196
|
};
|
|
@@ -7344,13 +7198,9 @@ var deserializeAws_restJson1Step = function (output, context) {
|
|
|
7344
7198
|
return {
|
|
7345
7199
|
Distance: __limitedParseDouble(output.Distance),
|
|
7346
7200
|
DurationSeconds: __limitedParseDouble(output.DurationSeconds),
|
|
7347
|
-
EndPosition: output.EndPosition
|
|
7348
|
-
? deserializeAws_restJson1Position(output.EndPosition, context)
|
|
7349
|
-
: undefined,
|
|
7201
|
+
EndPosition: output.EndPosition != null ? deserializeAws_restJson1Position(output.EndPosition, context) : undefined,
|
|
7350
7202
|
GeometryOffset: __expectInt32(output.GeometryOffset),
|
|
7351
|
-
StartPosition: output.StartPosition
|
|
7352
|
-
? deserializeAws_restJson1Position(output.StartPosition, context)
|
|
7353
|
-
: undefined,
|
|
7203
|
+
StartPosition: output.StartPosition != null ? deserializeAws_restJson1Position(output.StartPosition, context) : undefined,
|
|
7354
7204
|
};
|
|
7355
7205
|
};
|
|
7356
7206
|
var deserializeAws_restJson1StepList = function (output, context) {
|