@aws-sdk/client-location 3.28.0 → 3.32.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 +32 -0
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +131 -93
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +317 -205
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +154 -95
|
@@ -2055,7 +2055,7 @@ const deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = async (o
|
|
|
2055
2055
|
$metadata: deserializeMetadata(output),
|
|
2056
2056
|
Errors: undefined,
|
|
2057
2057
|
};
|
|
2058
|
-
const data = await parseBody(output.body, context);
|
|
2058
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2059
2059
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
2060
2060
|
contents.Errors = deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList(data.Errors, context);
|
|
2061
2061
|
}
|
|
@@ -2135,7 +2135,7 @@ const deserializeAws_restJson1BatchDeleteGeofenceCommand = async (output, contex
|
|
|
2135
2135
|
$metadata: deserializeMetadata(output),
|
|
2136
2136
|
Errors: undefined,
|
|
2137
2137
|
};
|
|
2138
|
-
const data = await parseBody(output.body, context);
|
|
2138
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2139
2139
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
2140
2140
|
contents.Errors = deserializeAws_restJson1BatchDeleteGeofenceErrorList(data.Errors, context);
|
|
2141
2141
|
}
|
|
@@ -2215,7 +2215,7 @@ const deserializeAws_restJson1BatchEvaluateGeofencesCommand = async (output, con
|
|
|
2215
2215
|
$metadata: deserializeMetadata(output),
|
|
2216
2216
|
Errors: undefined,
|
|
2217
2217
|
};
|
|
2218
|
-
const data = await parseBody(output.body, context);
|
|
2218
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2219
2219
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
2220
2220
|
contents.Errors = deserializeAws_restJson1BatchEvaluateGeofencesErrorList(data.Errors, context);
|
|
2221
2221
|
}
|
|
@@ -2296,7 +2296,7 @@ const deserializeAws_restJson1BatchGetDevicePositionCommand = async (output, con
|
|
|
2296
2296
|
DevicePositions: undefined,
|
|
2297
2297
|
Errors: undefined,
|
|
2298
2298
|
};
|
|
2299
|
-
const data = await parseBody(output.body, context);
|
|
2299
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2300
2300
|
if (data.DevicePositions !== undefined && data.DevicePositions !== null) {
|
|
2301
2301
|
contents.DevicePositions = deserializeAws_restJson1DevicePositionList(data.DevicePositions, context);
|
|
2302
2302
|
}
|
|
@@ -2380,7 +2380,7 @@ const deserializeAws_restJson1BatchPutGeofenceCommand = async (output, context)
|
|
|
2380
2380
|
Errors: undefined,
|
|
2381
2381
|
Successes: undefined,
|
|
2382
2382
|
};
|
|
2383
|
-
const data = await parseBody(output.body, context);
|
|
2383
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2384
2384
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
2385
2385
|
contents.Errors = deserializeAws_restJson1BatchPutGeofenceErrorList(data.Errors, context);
|
|
2386
2386
|
}
|
|
@@ -2463,7 +2463,7 @@ const deserializeAws_restJson1BatchUpdateDevicePositionCommand = async (output,
|
|
|
2463
2463
|
$metadata: deserializeMetadata(output),
|
|
2464
2464
|
Errors: undefined,
|
|
2465
2465
|
};
|
|
2466
|
-
const data = await parseBody(output.body, context);
|
|
2466
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2467
2467
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
2468
2468
|
contents.Errors = deserializeAws_restJson1BatchUpdateDevicePositionErrorList(data.Errors, context);
|
|
2469
2469
|
}
|
|
@@ -2544,7 +2544,7 @@ const deserializeAws_restJson1CalculateRouteCommand = async (output, context) =>
|
|
|
2544
2544
|
Legs: undefined,
|
|
2545
2545
|
Summary: undefined,
|
|
2546
2546
|
};
|
|
2547
|
-
const data = await parseBody(output.body, context);
|
|
2547
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2548
2548
|
if (data.Legs !== undefined && data.Legs !== null) {
|
|
2549
2549
|
contents.Legs = deserializeAws_restJson1LegList(data.Legs, context);
|
|
2550
2550
|
}
|
|
@@ -2629,7 +2629,7 @@ const deserializeAws_restJson1CreateGeofenceCollectionCommand = async (output, c
|
|
|
2629
2629
|
CollectionName: undefined,
|
|
2630
2630
|
CreateTime: undefined,
|
|
2631
2631
|
};
|
|
2632
|
-
const data = await parseBody(output.body, context);
|
|
2632
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2633
2633
|
if (data.CollectionArn !== undefined && data.CollectionArn !== null) {
|
|
2634
2634
|
contents.CollectionArn = smithy_client_1.expectString(data.CollectionArn);
|
|
2635
2635
|
}
|
|
@@ -2637,7 +2637,7 @@ const deserializeAws_restJson1CreateGeofenceCollectionCommand = async (output, c
|
|
|
2637
2637
|
contents.CollectionName = smithy_client_1.expectString(data.CollectionName);
|
|
2638
2638
|
}
|
|
2639
2639
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
2640
|
-
contents.CreateTime =
|
|
2640
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
2641
2641
|
}
|
|
2642
2642
|
return Promise.resolve(contents);
|
|
2643
2643
|
};
|
|
@@ -2717,9 +2717,9 @@ const deserializeAws_restJson1CreateMapCommand = async (output, context) => {
|
|
|
2717
2717
|
MapArn: undefined,
|
|
2718
2718
|
MapName: undefined,
|
|
2719
2719
|
};
|
|
2720
|
-
const data = await parseBody(output.body, context);
|
|
2720
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2721
2721
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
2722
|
-
contents.CreateTime =
|
|
2722
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
2723
2723
|
}
|
|
2724
2724
|
if (data.MapArn !== undefined && data.MapArn !== null) {
|
|
2725
2725
|
contents.MapArn = smithy_client_1.expectString(data.MapArn);
|
|
@@ -2805,9 +2805,9 @@ const deserializeAws_restJson1CreatePlaceIndexCommand = async (output, context)
|
|
|
2805
2805
|
IndexArn: undefined,
|
|
2806
2806
|
IndexName: undefined,
|
|
2807
2807
|
};
|
|
2808
|
-
const data = await parseBody(output.body, context);
|
|
2808
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2809
2809
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
2810
|
-
contents.CreateTime =
|
|
2810
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
2811
2811
|
}
|
|
2812
2812
|
if (data.IndexArn !== undefined && data.IndexArn !== null) {
|
|
2813
2813
|
contents.IndexArn = smithy_client_1.expectString(data.IndexArn);
|
|
@@ -2893,7 +2893,7 @@ const deserializeAws_restJson1CreateRouteCalculatorCommand = async (output, cont
|
|
|
2893
2893
|
CalculatorName: undefined,
|
|
2894
2894
|
CreateTime: undefined,
|
|
2895
2895
|
};
|
|
2896
|
-
const data = await parseBody(output.body, context);
|
|
2896
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2897
2897
|
if (data.CalculatorArn !== undefined && data.CalculatorArn !== null) {
|
|
2898
2898
|
contents.CalculatorArn = smithy_client_1.expectString(data.CalculatorArn);
|
|
2899
2899
|
}
|
|
@@ -2901,7 +2901,7 @@ const deserializeAws_restJson1CreateRouteCalculatorCommand = async (output, cont
|
|
|
2901
2901
|
contents.CalculatorName = smithy_client_1.expectString(data.CalculatorName);
|
|
2902
2902
|
}
|
|
2903
2903
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
2904
|
-
contents.CreateTime =
|
|
2904
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
2905
2905
|
}
|
|
2906
2906
|
return Promise.resolve(contents);
|
|
2907
2907
|
};
|
|
@@ -2981,9 +2981,9 @@ const deserializeAws_restJson1CreateTrackerCommand = async (output, context) =>
|
|
|
2981
2981
|
TrackerArn: undefined,
|
|
2982
2982
|
TrackerName: undefined,
|
|
2983
2983
|
};
|
|
2984
|
-
const data = await parseBody(output.body, context);
|
|
2984
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2985
2985
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
2986
|
-
contents.CreateTime =
|
|
2986
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
2987
2987
|
}
|
|
2988
2988
|
if (data.TrackerArn !== undefined && data.TrackerArn !== null) {
|
|
2989
2989
|
contents.TrackerArn = smithy_client_1.expectString(data.TrackerArn);
|
|
@@ -3455,7 +3455,7 @@ const deserializeAws_restJson1DescribeGeofenceCollectionCommand = async (output,
|
|
|
3455
3455
|
Tags: undefined,
|
|
3456
3456
|
UpdateTime: undefined,
|
|
3457
3457
|
};
|
|
3458
|
-
const data = await parseBody(output.body, context);
|
|
3458
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3459
3459
|
if (data.CollectionArn !== undefined && data.CollectionArn !== null) {
|
|
3460
3460
|
contents.CollectionArn = smithy_client_1.expectString(data.CollectionArn);
|
|
3461
3461
|
}
|
|
@@ -3463,7 +3463,7 @@ const deserializeAws_restJson1DescribeGeofenceCollectionCommand = async (output,
|
|
|
3463
3463
|
contents.CollectionName = smithy_client_1.expectString(data.CollectionName);
|
|
3464
3464
|
}
|
|
3465
3465
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
3466
|
-
contents.CreateTime =
|
|
3466
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
3467
3467
|
}
|
|
3468
3468
|
if (data.Description !== undefined && data.Description !== null) {
|
|
3469
3469
|
contents.Description = smithy_client_1.expectString(data.Description);
|
|
@@ -3481,7 +3481,7 @@ const deserializeAws_restJson1DescribeGeofenceCollectionCommand = async (output,
|
|
|
3481
3481
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
3482
3482
|
}
|
|
3483
3483
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
3484
|
-
contents.UpdateTime =
|
|
3484
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
3485
3485
|
}
|
|
3486
3486
|
return Promise.resolve(contents);
|
|
3487
3487
|
};
|
|
@@ -3567,12 +3567,12 @@ const deserializeAws_restJson1DescribeMapCommand = async (output, context) => {
|
|
|
3567
3567
|
Tags: undefined,
|
|
3568
3568
|
UpdateTime: undefined,
|
|
3569
3569
|
};
|
|
3570
|
-
const data = await parseBody(output.body, context);
|
|
3570
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3571
3571
|
if (data.Configuration !== undefined && data.Configuration !== null) {
|
|
3572
3572
|
contents.Configuration = deserializeAws_restJson1MapConfiguration(data.Configuration, context);
|
|
3573
3573
|
}
|
|
3574
3574
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
3575
|
-
contents.CreateTime =
|
|
3575
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
3576
3576
|
}
|
|
3577
3577
|
if (data.DataSource !== undefined && data.DataSource !== null) {
|
|
3578
3578
|
contents.DataSource = smithy_client_1.expectString(data.DataSource);
|
|
@@ -3593,7 +3593,7 @@ const deserializeAws_restJson1DescribeMapCommand = async (output, context) => {
|
|
|
3593
3593
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
3594
3594
|
}
|
|
3595
3595
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
3596
|
-
contents.UpdateTime =
|
|
3596
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
3597
3597
|
}
|
|
3598
3598
|
return Promise.resolve(contents);
|
|
3599
3599
|
};
|
|
@@ -3679,9 +3679,9 @@ const deserializeAws_restJson1DescribePlaceIndexCommand = async (output, context
|
|
|
3679
3679
|
Tags: undefined,
|
|
3680
3680
|
UpdateTime: undefined,
|
|
3681
3681
|
};
|
|
3682
|
-
const data = await parseBody(output.body, context);
|
|
3682
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3683
3683
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
3684
|
-
contents.CreateTime =
|
|
3684
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
3685
3685
|
}
|
|
3686
3686
|
if (data.DataSource !== undefined && data.DataSource !== null) {
|
|
3687
3687
|
contents.DataSource = smithy_client_1.expectString(data.DataSource);
|
|
@@ -3705,7 +3705,7 @@ const deserializeAws_restJson1DescribePlaceIndexCommand = async (output, context
|
|
|
3705
3705
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
3706
3706
|
}
|
|
3707
3707
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
3708
|
-
contents.UpdateTime =
|
|
3708
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
3709
3709
|
}
|
|
3710
3710
|
return Promise.resolve(contents);
|
|
3711
3711
|
};
|
|
@@ -3790,7 +3790,7 @@ const deserializeAws_restJson1DescribeRouteCalculatorCommand = async (output, co
|
|
|
3790
3790
|
Tags: undefined,
|
|
3791
3791
|
UpdateTime: undefined,
|
|
3792
3792
|
};
|
|
3793
|
-
const data = await parseBody(output.body, context);
|
|
3793
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3794
3794
|
if (data.CalculatorArn !== undefined && data.CalculatorArn !== null) {
|
|
3795
3795
|
contents.CalculatorArn = smithy_client_1.expectString(data.CalculatorArn);
|
|
3796
3796
|
}
|
|
@@ -3798,7 +3798,7 @@ const deserializeAws_restJson1DescribeRouteCalculatorCommand = async (output, co
|
|
|
3798
3798
|
contents.CalculatorName = smithy_client_1.expectString(data.CalculatorName);
|
|
3799
3799
|
}
|
|
3800
3800
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
3801
|
-
contents.CreateTime =
|
|
3801
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
3802
3802
|
}
|
|
3803
3803
|
if (data.DataSource !== undefined && data.DataSource !== null) {
|
|
3804
3804
|
contents.DataSource = smithy_client_1.expectString(data.DataSource);
|
|
@@ -3813,7 +3813,7 @@ const deserializeAws_restJson1DescribeRouteCalculatorCommand = async (output, co
|
|
|
3813
3813
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
3814
3814
|
}
|
|
3815
3815
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
3816
|
-
contents.UpdateTime =
|
|
3816
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
3817
3817
|
}
|
|
3818
3818
|
return Promise.resolve(contents);
|
|
3819
3819
|
};
|
|
@@ -3899,9 +3899,9 @@ const deserializeAws_restJson1DescribeTrackerCommand = async (output, context) =
|
|
|
3899
3899
|
TrackerName: undefined,
|
|
3900
3900
|
UpdateTime: undefined,
|
|
3901
3901
|
};
|
|
3902
|
-
const data = await parseBody(output.body, context);
|
|
3902
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3903
3903
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
3904
|
-
contents.CreateTime =
|
|
3904
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
3905
3905
|
}
|
|
3906
3906
|
if (data.Description !== undefined && data.Description !== null) {
|
|
3907
3907
|
contents.Description = smithy_client_1.expectString(data.Description);
|
|
@@ -3925,7 +3925,7 @@ const deserializeAws_restJson1DescribeTrackerCommand = async (output, context) =
|
|
|
3925
3925
|
contents.TrackerName = smithy_client_1.expectString(data.TrackerName);
|
|
3926
3926
|
}
|
|
3927
3927
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
3928
|
-
contents.UpdateTime =
|
|
3928
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
3929
3929
|
}
|
|
3930
3930
|
return Promise.resolve(contents);
|
|
3931
3931
|
};
|
|
@@ -4082,7 +4082,7 @@ const deserializeAws_restJson1GetDevicePositionCommand = async (output, context)
|
|
|
4082
4082
|
ReceivedTime: undefined,
|
|
4083
4083
|
SampleTime: undefined,
|
|
4084
4084
|
};
|
|
4085
|
-
const data = await parseBody(output.body, context);
|
|
4085
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4086
4086
|
if (data.DeviceId !== undefined && data.DeviceId !== null) {
|
|
4087
4087
|
contents.DeviceId = smithy_client_1.expectString(data.DeviceId);
|
|
4088
4088
|
}
|
|
@@ -4090,10 +4090,10 @@ const deserializeAws_restJson1GetDevicePositionCommand = async (output, context)
|
|
|
4090
4090
|
contents.Position = deserializeAws_restJson1Position(data.Position, context);
|
|
4091
4091
|
}
|
|
4092
4092
|
if (data.ReceivedTime !== undefined && data.ReceivedTime !== null) {
|
|
4093
|
-
contents.ReceivedTime =
|
|
4093
|
+
contents.ReceivedTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.ReceivedTime));
|
|
4094
4094
|
}
|
|
4095
4095
|
if (data.SampleTime !== undefined && data.SampleTime !== null) {
|
|
4096
|
-
contents.SampleTime =
|
|
4096
|
+
contents.SampleTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.SampleTime));
|
|
4097
4097
|
}
|
|
4098
4098
|
return Promise.resolve(contents);
|
|
4099
4099
|
};
|
|
@@ -4172,7 +4172,7 @@ const deserializeAws_restJson1GetDevicePositionHistoryCommand = async (output, c
|
|
|
4172
4172
|
DevicePositions: undefined,
|
|
4173
4173
|
NextToken: undefined,
|
|
4174
4174
|
};
|
|
4175
|
-
const data = await parseBody(output.body, context);
|
|
4175
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4176
4176
|
if (data.DevicePositions !== undefined && data.DevicePositions !== null) {
|
|
4177
4177
|
contents.DevicePositions = deserializeAws_restJson1DevicePositionList(data.DevicePositions, context);
|
|
4178
4178
|
}
|
|
@@ -4259,9 +4259,9 @@ const deserializeAws_restJson1GetGeofenceCommand = async (output, context) => {
|
|
|
4259
4259
|
Status: undefined,
|
|
4260
4260
|
UpdateTime: undefined,
|
|
4261
4261
|
};
|
|
4262
|
-
const data = await parseBody(output.body, context);
|
|
4262
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4263
4263
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
4264
|
-
contents.CreateTime =
|
|
4264
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
4265
4265
|
}
|
|
4266
4266
|
if (data.GeofenceId !== undefined && data.GeofenceId !== null) {
|
|
4267
4267
|
contents.GeofenceId = smithy_client_1.expectString(data.GeofenceId);
|
|
@@ -4273,7 +4273,7 @@ const deserializeAws_restJson1GetGeofenceCommand = async (output, context) => {
|
|
|
4273
4273
|
contents.Status = smithy_client_1.expectString(data.Status);
|
|
4274
4274
|
}
|
|
4275
4275
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
4276
|
-
contents.UpdateTime =
|
|
4276
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
4277
4277
|
}
|
|
4278
4278
|
return Promise.resolve(contents);
|
|
4279
4279
|
};
|
|
@@ -4680,7 +4680,7 @@ const deserializeAws_restJson1ListDevicePositionsCommand = async (output, contex
|
|
|
4680
4680
|
Entries: undefined,
|
|
4681
4681
|
NextToken: undefined,
|
|
4682
4682
|
};
|
|
4683
|
-
const data = await parseBody(output.body, context);
|
|
4683
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4684
4684
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
4685
4685
|
contents.Entries = deserializeAws_restJson1ListDevicePositionsResponseEntryList(data.Entries, context);
|
|
4686
4686
|
}
|
|
@@ -4756,7 +4756,7 @@ const deserializeAws_restJson1ListGeofenceCollectionsCommand = async (output, co
|
|
|
4756
4756
|
Entries: undefined,
|
|
4757
4757
|
NextToken: undefined,
|
|
4758
4758
|
};
|
|
4759
|
-
const data = await parseBody(output.body, context);
|
|
4759
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4760
4760
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
4761
4761
|
contents.Entries = deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList(data.Entries, context);
|
|
4762
4762
|
}
|
|
@@ -4832,7 +4832,7 @@ const deserializeAws_restJson1ListGeofencesCommand = async (output, context) =>
|
|
|
4832
4832
|
Entries: undefined,
|
|
4833
4833
|
NextToken: undefined,
|
|
4834
4834
|
};
|
|
4835
|
-
const data = await parseBody(output.body, context);
|
|
4835
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4836
4836
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
4837
4837
|
contents.Entries = deserializeAws_restJson1ListGeofenceResponseEntryList(data.Entries, context);
|
|
4838
4838
|
}
|
|
@@ -4916,7 +4916,7 @@ const deserializeAws_restJson1ListMapsCommand = async (output, context) => {
|
|
|
4916
4916
|
Entries: undefined,
|
|
4917
4917
|
NextToken: undefined,
|
|
4918
4918
|
};
|
|
4919
|
-
const data = await parseBody(output.body, context);
|
|
4919
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4920
4920
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
4921
4921
|
contents.Entries = deserializeAws_restJson1ListMapsResponseEntryList(data.Entries, context);
|
|
4922
4922
|
}
|
|
@@ -4992,7 +4992,7 @@ const deserializeAws_restJson1ListPlaceIndexesCommand = async (output, context)
|
|
|
4992
4992
|
Entries: undefined,
|
|
4993
4993
|
NextToken: undefined,
|
|
4994
4994
|
};
|
|
4995
|
-
const data = await parseBody(output.body, context);
|
|
4995
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4996
4996
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
4997
4997
|
contents.Entries = deserializeAws_restJson1ListPlaceIndexesResponseEntryList(data.Entries, context);
|
|
4998
4998
|
}
|
|
@@ -5068,7 +5068,7 @@ const deserializeAws_restJson1ListRouteCalculatorsCommand = async (output, conte
|
|
|
5068
5068
|
Entries: undefined,
|
|
5069
5069
|
NextToken: undefined,
|
|
5070
5070
|
};
|
|
5071
|
-
const data = await parseBody(output.body, context);
|
|
5071
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5072
5072
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
5073
5073
|
contents.Entries = deserializeAws_restJson1ListRouteCalculatorsResponseEntryList(data.Entries, context);
|
|
5074
5074
|
}
|
|
@@ -5143,7 +5143,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
5143
5143
|
$metadata: deserializeMetadata(output),
|
|
5144
5144
|
Tags: undefined,
|
|
5145
5145
|
};
|
|
5146
|
-
const data = await parseBody(output.body, context);
|
|
5146
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5147
5147
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
5148
5148
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
5149
5149
|
}
|
|
@@ -5224,7 +5224,7 @@ const deserializeAws_restJson1ListTrackerConsumersCommand = async (output, conte
|
|
|
5224
5224
|
ConsumerArns: undefined,
|
|
5225
5225
|
NextToken: undefined,
|
|
5226
5226
|
};
|
|
5227
|
-
const data = await parseBody(output.body, context);
|
|
5227
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5228
5228
|
if (data.ConsumerArns !== undefined && data.ConsumerArns !== null) {
|
|
5229
5229
|
contents.ConsumerArns = deserializeAws_restJson1ArnList(data.ConsumerArns, context);
|
|
5230
5230
|
}
|
|
@@ -5308,7 +5308,7 @@ const deserializeAws_restJson1ListTrackersCommand = async (output, context) => {
|
|
|
5308
5308
|
Entries: undefined,
|
|
5309
5309
|
NextToken: undefined,
|
|
5310
5310
|
};
|
|
5311
|
-
const data = await parseBody(output.body, context);
|
|
5311
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5312
5312
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
5313
5313
|
contents.Entries = deserializeAws_restJson1ListTrackersResponseEntryList(data.Entries, context);
|
|
5314
5314
|
}
|
|
@@ -5385,15 +5385,15 @@ const deserializeAws_restJson1PutGeofenceCommand = async (output, context) => {
|
|
|
5385
5385
|
GeofenceId: undefined,
|
|
5386
5386
|
UpdateTime: undefined,
|
|
5387
5387
|
};
|
|
5388
|
-
const data = await parseBody(output.body, context);
|
|
5388
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5389
5389
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
5390
|
-
contents.CreateTime =
|
|
5390
|
+
contents.CreateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.CreateTime));
|
|
5391
5391
|
}
|
|
5392
5392
|
if (data.GeofenceId !== undefined && data.GeofenceId !== null) {
|
|
5393
5393
|
contents.GeofenceId = smithy_client_1.expectString(data.GeofenceId);
|
|
5394
5394
|
}
|
|
5395
5395
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
5396
|
-
contents.UpdateTime =
|
|
5396
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
5397
5397
|
}
|
|
5398
5398
|
return Promise.resolve(contents);
|
|
5399
5399
|
};
|
|
@@ -5480,7 +5480,7 @@ const deserializeAws_restJson1SearchPlaceIndexForPositionCommand = async (output
|
|
|
5480
5480
|
Results: undefined,
|
|
5481
5481
|
Summary: undefined,
|
|
5482
5482
|
};
|
|
5483
|
-
const data = await parseBody(output.body, context);
|
|
5483
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5484
5484
|
if (data.Results !== undefined && data.Results !== null) {
|
|
5485
5485
|
contents.Results = deserializeAws_restJson1SearchForPositionResultList(data.Results, context);
|
|
5486
5486
|
}
|
|
@@ -5564,7 +5564,7 @@ const deserializeAws_restJson1SearchPlaceIndexForTextCommand = async (output, co
|
|
|
5564
5564
|
Results: undefined,
|
|
5565
5565
|
Summary: undefined,
|
|
5566
5566
|
};
|
|
5567
|
-
const data = await parseBody(output.body, context);
|
|
5567
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5568
5568
|
if (data.Results !== undefined && data.Results !== null) {
|
|
5569
5569
|
contents.Results = deserializeAws_restJson1SearchForTextResultList(data.Results, context);
|
|
5570
5570
|
}
|
|
@@ -5801,7 +5801,7 @@ const deserializeAws_restJson1UpdateGeofenceCollectionCommand = async (output, c
|
|
|
5801
5801
|
CollectionName: undefined,
|
|
5802
5802
|
UpdateTime: undefined,
|
|
5803
5803
|
};
|
|
5804
|
-
const data = await parseBody(output.body, context);
|
|
5804
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5805
5805
|
if (data.CollectionArn !== undefined && data.CollectionArn !== null) {
|
|
5806
5806
|
contents.CollectionArn = smithy_client_1.expectString(data.CollectionArn);
|
|
5807
5807
|
}
|
|
@@ -5809,7 +5809,7 @@ const deserializeAws_restJson1UpdateGeofenceCollectionCommand = async (output, c
|
|
|
5809
5809
|
contents.CollectionName = smithy_client_1.expectString(data.CollectionName);
|
|
5810
5810
|
}
|
|
5811
5811
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
5812
|
-
contents.UpdateTime =
|
|
5812
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
5813
5813
|
}
|
|
5814
5814
|
return Promise.resolve(contents);
|
|
5815
5815
|
};
|
|
@@ -5889,7 +5889,7 @@ const deserializeAws_restJson1UpdateMapCommand = async (output, context) => {
|
|
|
5889
5889
|
MapName: undefined,
|
|
5890
5890
|
UpdateTime: undefined,
|
|
5891
5891
|
};
|
|
5892
|
-
const data = await parseBody(output.body, context);
|
|
5892
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5893
5893
|
if (data.MapArn !== undefined && data.MapArn !== null) {
|
|
5894
5894
|
contents.MapArn = smithy_client_1.expectString(data.MapArn);
|
|
5895
5895
|
}
|
|
@@ -5897,7 +5897,7 @@ const deserializeAws_restJson1UpdateMapCommand = async (output, context) => {
|
|
|
5897
5897
|
contents.MapName = smithy_client_1.expectString(data.MapName);
|
|
5898
5898
|
}
|
|
5899
5899
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
5900
|
-
contents.UpdateTime =
|
|
5900
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
5901
5901
|
}
|
|
5902
5902
|
return Promise.resolve(contents);
|
|
5903
5903
|
};
|
|
@@ -5977,7 +5977,7 @@ const deserializeAws_restJson1UpdatePlaceIndexCommand = async (output, context)
|
|
|
5977
5977
|
IndexName: undefined,
|
|
5978
5978
|
UpdateTime: undefined,
|
|
5979
5979
|
};
|
|
5980
|
-
const data = await parseBody(output.body, context);
|
|
5980
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
5981
5981
|
if (data.IndexArn !== undefined && data.IndexArn !== null) {
|
|
5982
5982
|
contents.IndexArn = smithy_client_1.expectString(data.IndexArn);
|
|
5983
5983
|
}
|
|
@@ -5985,7 +5985,7 @@ const deserializeAws_restJson1UpdatePlaceIndexCommand = async (output, context)
|
|
|
5985
5985
|
contents.IndexName = smithy_client_1.expectString(data.IndexName);
|
|
5986
5986
|
}
|
|
5987
5987
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
5988
|
-
contents.UpdateTime =
|
|
5988
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
5989
5989
|
}
|
|
5990
5990
|
return Promise.resolve(contents);
|
|
5991
5991
|
};
|
|
@@ -6065,7 +6065,7 @@ const deserializeAws_restJson1UpdateRouteCalculatorCommand = async (output, cont
|
|
|
6065
6065
|
CalculatorName: undefined,
|
|
6066
6066
|
UpdateTime: undefined,
|
|
6067
6067
|
};
|
|
6068
|
-
const data = await parseBody(output.body, context);
|
|
6068
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6069
6069
|
if (data.CalculatorArn !== undefined && data.CalculatorArn !== null) {
|
|
6070
6070
|
contents.CalculatorArn = smithy_client_1.expectString(data.CalculatorArn);
|
|
6071
6071
|
}
|
|
@@ -6073,7 +6073,7 @@ const deserializeAws_restJson1UpdateRouteCalculatorCommand = async (output, cont
|
|
|
6073
6073
|
contents.CalculatorName = smithy_client_1.expectString(data.CalculatorName);
|
|
6074
6074
|
}
|
|
6075
6075
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
6076
|
-
contents.UpdateTime =
|
|
6076
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
6077
6077
|
}
|
|
6078
6078
|
return Promise.resolve(contents);
|
|
6079
6079
|
};
|
|
@@ -6153,7 +6153,7 @@ const deserializeAws_restJson1UpdateTrackerCommand = async (output, context) =>
|
|
|
6153
6153
|
TrackerName: undefined,
|
|
6154
6154
|
UpdateTime: undefined,
|
|
6155
6155
|
};
|
|
6156
|
-
const data = await parseBody(output.body, context);
|
|
6156
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
6157
6157
|
if (data.TrackerArn !== undefined && data.TrackerArn !== null) {
|
|
6158
6158
|
contents.TrackerArn = smithy_client_1.expectString(data.TrackerArn);
|
|
6159
6159
|
}
|
|
@@ -6161,7 +6161,7 @@ const deserializeAws_restJson1UpdateTrackerCommand = async (output, context) =>
|
|
|
6161
6161
|
contents.TrackerName = smithy_client_1.expectString(data.TrackerName);
|
|
6162
6162
|
}
|
|
6163
6163
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
6164
|
-
contents.UpdateTime =
|
|
6164
|
+
contents.UpdateTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.UpdateTime));
|
|
6165
6165
|
}
|
|
6166
6166
|
return Promise.resolve(contents);
|
|
6167
6167
|
};
|
|
@@ -6557,7 +6557,9 @@ const deserializeAws_restJson1BatchEvaluateGeofencesError = (output, context) =>
|
|
|
6557
6557
|
Error: output.Error !== undefined && output.Error !== null
|
|
6558
6558
|
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
6559
6559
|
: undefined,
|
|
6560
|
-
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
6560
|
+
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
6561
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SampleTime))
|
|
6562
|
+
: undefined,
|
|
6561
6563
|
};
|
|
6562
6564
|
};
|
|
6563
6565
|
const deserializeAws_restJson1BatchEvaluateGeofencesErrorList = (output, context) => {
|
|
@@ -6614,9 +6616,13 @@ const deserializeAws_restJson1BatchPutGeofenceErrorList = (output, context) => {
|
|
|
6614
6616
|
};
|
|
6615
6617
|
const deserializeAws_restJson1BatchPutGeofenceSuccess = (output, context) => {
|
|
6616
6618
|
return {
|
|
6617
|
-
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6619
|
+
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6620
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
|
|
6621
|
+
: undefined,
|
|
6618
6622
|
GeofenceId: smithy_client_1.expectString(output.GeofenceId),
|
|
6619
|
-
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6623
|
+
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6624
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
|
|
6625
|
+
: undefined,
|
|
6620
6626
|
};
|
|
6621
6627
|
};
|
|
6622
6628
|
const deserializeAws_restJson1BatchPutGeofenceSuccessList = (output, context) => {
|
|
@@ -6635,7 +6641,9 @@ const deserializeAws_restJson1BatchUpdateDevicePositionError = (output, context)
|
|
|
6635
6641
|
Error: output.Error !== undefined && output.Error !== null
|
|
6636
6642
|
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
6637
6643
|
: undefined,
|
|
6638
|
-
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
6644
|
+
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
6645
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SampleTime))
|
|
6646
|
+
: undefined,
|
|
6639
6647
|
};
|
|
6640
6648
|
};
|
|
6641
6649
|
const deserializeAws_restJson1BatchUpdateDevicePositionErrorList = (output, context) => {
|
|
@@ -6655,15 +6663,15 @@ const deserializeAws_restJson1BoundingBox = (output, context) => {
|
|
|
6655
6663
|
if (entry === null) {
|
|
6656
6664
|
return null;
|
|
6657
6665
|
}
|
|
6658
|
-
return smithy_client_1.
|
|
6666
|
+
return smithy_client_1.limitedParseDouble(entry);
|
|
6659
6667
|
});
|
|
6660
6668
|
};
|
|
6661
6669
|
const deserializeAws_restJson1CalculateRouteSummary = (output, context) => {
|
|
6662
6670
|
return {
|
|
6663
6671
|
DataSource: smithy_client_1.expectString(output.DataSource),
|
|
6664
|
-
Distance: smithy_client_1.
|
|
6672
|
+
Distance: smithy_client_1.limitedParseDouble(output.Distance),
|
|
6665
6673
|
DistanceUnit: smithy_client_1.expectString(output.DistanceUnit),
|
|
6666
|
-
DurationSeconds: smithy_client_1.
|
|
6674
|
+
DurationSeconds: smithy_client_1.limitedParseDouble(output.DurationSeconds),
|
|
6667
6675
|
RouteBBox: output.RouteBBox !== undefined && output.RouteBBox !== null
|
|
6668
6676
|
? deserializeAws_restJson1BoundingBox(output.RouteBBox, context)
|
|
6669
6677
|
: undefined,
|
|
@@ -6690,8 +6698,12 @@ const deserializeAws_restJson1DevicePosition = (output, context) => {
|
|
|
6690
6698
|
Position: output.Position !== undefined && output.Position !== null
|
|
6691
6699
|
? deserializeAws_restJson1Position(output.Position, context)
|
|
6692
6700
|
: undefined,
|
|
6693
|
-
ReceivedTime: output.ReceivedTime !== undefined && output.ReceivedTime !== null
|
|
6694
|
-
|
|
6701
|
+
ReceivedTime: output.ReceivedTime !== undefined && output.ReceivedTime !== null
|
|
6702
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.ReceivedTime))
|
|
6703
|
+
: undefined,
|
|
6704
|
+
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
6705
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SampleTime))
|
|
6706
|
+
: undefined,
|
|
6695
6707
|
};
|
|
6696
6708
|
};
|
|
6697
6709
|
const deserializeAws_restJson1DevicePositionList = (output, context) => {
|
|
@@ -6713,8 +6725,8 @@ const deserializeAws_restJson1GeofenceGeometry = (output, context) => {
|
|
|
6713
6725
|
};
|
|
6714
6726
|
const deserializeAws_restJson1Leg = (output, context) => {
|
|
6715
6727
|
return {
|
|
6716
|
-
Distance: smithy_client_1.
|
|
6717
|
-
DurationSeconds: smithy_client_1.
|
|
6728
|
+
Distance: smithy_client_1.limitedParseDouble(output.Distance),
|
|
6729
|
+
DurationSeconds: smithy_client_1.limitedParseDouble(output.DurationSeconds),
|
|
6718
6730
|
EndPosition: output.EndPosition !== undefined && output.EndPosition !== null
|
|
6719
6731
|
? deserializeAws_restJson1Position(output.EndPosition, context)
|
|
6720
6732
|
: undefined,
|
|
@@ -6782,7 +6794,9 @@ const deserializeAws_restJson1ListDevicePositionsResponseEntry = (output, contex
|
|
|
6782
6794
|
Position: output.Position !== undefined && output.Position !== null
|
|
6783
6795
|
? deserializeAws_restJson1Position(output.Position, context)
|
|
6784
6796
|
: undefined,
|
|
6785
|
-
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
6797
|
+
SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
|
|
6798
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.SampleTime))
|
|
6799
|
+
: undefined,
|
|
6786
6800
|
};
|
|
6787
6801
|
};
|
|
6788
6802
|
const deserializeAws_restJson1ListDevicePositionsResponseEntryList = (output, context) => {
|
|
@@ -6798,11 +6812,15 @@ const deserializeAws_restJson1ListDevicePositionsResponseEntryList = (output, co
|
|
|
6798
6812
|
const deserializeAws_restJson1ListGeofenceCollectionsResponseEntry = (output, context) => {
|
|
6799
6813
|
return {
|
|
6800
6814
|
CollectionName: smithy_client_1.expectString(output.CollectionName),
|
|
6801
|
-
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6815
|
+
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6816
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
|
|
6817
|
+
: undefined,
|
|
6802
6818
|
Description: smithy_client_1.expectString(output.Description),
|
|
6803
6819
|
PricingPlan: smithy_client_1.expectString(output.PricingPlan),
|
|
6804
6820
|
PricingPlanDataSource: smithy_client_1.expectString(output.PricingPlanDataSource),
|
|
6805
|
-
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6821
|
+
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6822
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
|
|
6823
|
+
: undefined,
|
|
6806
6824
|
};
|
|
6807
6825
|
};
|
|
6808
6826
|
const deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = (output, context) => {
|
|
@@ -6817,13 +6835,17 @@ const deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = (output
|
|
|
6817
6835
|
};
|
|
6818
6836
|
const deserializeAws_restJson1ListGeofenceResponseEntry = (output, context) => {
|
|
6819
6837
|
return {
|
|
6820
|
-
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6838
|
+
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6839
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
|
|
6840
|
+
: undefined,
|
|
6821
6841
|
GeofenceId: smithy_client_1.expectString(output.GeofenceId),
|
|
6822
6842
|
Geometry: output.Geometry !== undefined && output.Geometry !== null
|
|
6823
6843
|
? deserializeAws_restJson1GeofenceGeometry(output.Geometry, context)
|
|
6824
6844
|
: undefined,
|
|
6825
6845
|
Status: smithy_client_1.expectString(output.Status),
|
|
6826
|
-
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6846
|
+
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6847
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
|
|
6848
|
+
: undefined,
|
|
6827
6849
|
};
|
|
6828
6850
|
};
|
|
6829
6851
|
const deserializeAws_restJson1ListGeofenceResponseEntryList = (output, context) => {
|
|
@@ -6838,12 +6860,16 @@ const deserializeAws_restJson1ListGeofenceResponseEntryList = (output, context)
|
|
|
6838
6860
|
};
|
|
6839
6861
|
const deserializeAws_restJson1ListMapsResponseEntry = (output, context) => {
|
|
6840
6862
|
return {
|
|
6841
|
-
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6863
|
+
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6864
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
|
|
6865
|
+
: undefined,
|
|
6842
6866
|
DataSource: smithy_client_1.expectString(output.DataSource),
|
|
6843
6867
|
Description: smithy_client_1.expectString(output.Description),
|
|
6844
6868
|
MapName: smithy_client_1.expectString(output.MapName),
|
|
6845
6869
|
PricingPlan: smithy_client_1.expectString(output.PricingPlan),
|
|
6846
|
-
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6870
|
+
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6871
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
|
|
6872
|
+
: undefined,
|
|
6847
6873
|
};
|
|
6848
6874
|
};
|
|
6849
6875
|
const deserializeAws_restJson1ListMapsResponseEntryList = (output, context) => {
|
|
@@ -6858,12 +6884,16 @@ const deserializeAws_restJson1ListMapsResponseEntryList = (output, context) => {
|
|
|
6858
6884
|
};
|
|
6859
6885
|
const deserializeAws_restJson1ListPlaceIndexesResponseEntry = (output, context) => {
|
|
6860
6886
|
return {
|
|
6861
|
-
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6887
|
+
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6888
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
|
|
6889
|
+
: undefined,
|
|
6862
6890
|
DataSource: smithy_client_1.expectString(output.DataSource),
|
|
6863
6891
|
Description: smithy_client_1.expectString(output.Description),
|
|
6864
6892
|
IndexName: smithy_client_1.expectString(output.IndexName),
|
|
6865
6893
|
PricingPlan: smithy_client_1.expectString(output.PricingPlan),
|
|
6866
|
-
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6894
|
+
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6895
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
|
|
6896
|
+
: undefined,
|
|
6867
6897
|
};
|
|
6868
6898
|
};
|
|
6869
6899
|
const deserializeAws_restJson1ListPlaceIndexesResponseEntryList = (output, context) => {
|
|
@@ -6879,11 +6909,15 @@ const deserializeAws_restJson1ListPlaceIndexesResponseEntryList = (output, conte
|
|
|
6879
6909
|
const deserializeAws_restJson1ListRouteCalculatorsResponseEntry = (output, context) => {
|
|
6880
6910
|
return {
|
|
6881
6911
|
CalculatorName: smithy_client_1.expectString(output.CalculatorName),
|
|
6882
|
-
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6912
|
+
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6913
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
|
|
6914
|
+
: undefined,
|
|
6883
6915
|
DataSource: smithy_client_1.expectString(output.DataSource),
|
|
6884
6916
|
Description: smithy_client_1.expectString(output.Description),
|
|
6885
6917
|
PricingPlan: smithy_client_1.expectString(output.PricingPlan),
|
|
6886
|
-
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6918
|
+
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6919
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
|
|
6920
|
+
: undefined,
|
|
6887
6921
|
};
|
|
6888
6922
|
};
|
|
6889
6923
|
const deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = (output, context) => {
|
|
@@ -6898,12 +6932,16 @@ const deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = (output, c
|
|
|
6898
6932
|
};
|
|
6899
6933
|
const deserializeAws_restJson1ListTrackersResponseEntry = (output, context) => {
|
|
6900
6934
|
return {
|
|
6901
|
-
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6935
|
+
CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
|
|
6936
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.CreateTime))
|
|
6937
|
+
: undefined,
|
|
6902
6938
|
Description: smithy_client_1.expectString(output.Description),
|
|
6903
6939
|
PricingPlan: smithy_client_1.expectString(output.PricingPlan),
|
|
6904
6940
|
PricingPlanDataSource: smithy_client_1.expectString(output.PricingPlanDataSource),
|
|
6905
6941
|
TrackerName: smithy_client_1.expectString(output.TrackerName),
|
|
6906
|
-
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6942
|
+
UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
6943
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.UpdateTime))
|
|
6944
|
+
: undefined,
|
|
6907
6945
|
};
|
|
6908
6946
|
};
|
|
6909
6947
|
const deserializeAws_restJson1ListTrackersResponseEntryList = (output, context) => {
|
|
@@ -6951,7 +6989,7 @@ const deserializeAws_restJson1Position = (output, context) => {
|
|
|
6951
6989
|
if (entry === null) {
|
|
6952
6990
|
return null;
|
|
6953
6991
|
}
|
|
6954
|
-
return smithy_client_1.
|
|
6992
|
+
return smithy_client_1.limitedParseDouble(entry);
|
|
6955
6993
|
});
|
|
6956
6994
|
};
|
|
6957
6995
|
const deserializeAws_restJson1SearchForPositionResult = (output, context) => {
|
|
@@ -6991,7 +7029,7 @@ const deserializeAws_restJson1SearchForTextResultList = (output, context) => {
|
|
|
6991
7029
|
const deserializeAws_restJson1SearchPlaceIndexForPositionSummary = (output, context) => {
|
|
6992
7030
|
return {
|
|
6993
7031
|
DataSource: smithy_client_1.expectString(output.DataSource),
|
|
6994
|
-
MaxResults: smithy_client_1.
|
|
7032
|
+
MaxResults: smithy_client_1.expectInt32(output.MaxResults),
|
|
6995
7033
|
Position: output.Position !== undefined && output.Position !== null
|
|
6996
7034
|
? deserializeAws_restJson1Position(output.Position, context)
|
|
6997
7035
|
: undefined,
|
|
@@ -7009,7 +7047,7 @@ const deserializeAws_restJson1SearchPlaceIndexForTextSummary = (output, context)
|
|
|
7009
7047
|
FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
|
|
7010
7048
|
? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
|
|
7011
7049
|
: undefined,
|
|
7012
|
-
MaxResults: smithy_client_1.
|
|
7050
|
+
MaxResults: smithy_client_1.expectInt32(output.MaxResults),
|
|
7013
7051
|
ResultBBox: output.ResultBBox !== undefined && output.ResultBBox !== null
|
|
7014
7052
|
? deserializeAws_restJson1BoundingBox(output.ResultBBox, context)
|
|
7015
7053
|
: undefined,
|
|
@@ -7018,12 +7056,12 @@ const deserializeAws_restJson1SearchPlaceIndexForTextSummary = (output, context)
|
|
|
7018
7056
|
};
|
|
7019
7057
|
const deserializeAws_restJson1Step = (output, context) => {
|
|
7020
7058
|
return {
|
|
7021
|
-
Distance: smithy_client_1.
|
|
7022
|
-
DurationSeconds: smithy_client_1.
|
|
7059
|
+
Distance: smithy_client_1.limitedParseDouble(output.Distance),
|
|
7060
|
+
DurationSeconds: smithy_client_1.limitedParseDouble(output.DurationSeconds),
|
|
7023
7061
|
EndPosition: output.EndPosition !== undefined && output.EndPosition !== null
|
|
7024
7062
|
? deserializeAws_restJson1Position(output.EndPosition, context)
|
|
7025
7063
|
: undefined,
|
|
7026
|
-
GeometryOffset: smithy_client_1.
|
|
7064
|
+
GeometryOffset: smithy_client_1.expectInt32(output.GeometryOffset),
|
|
7027
7065
|
StartPosition: output.StartPosition !== undefined && output.StartPosition !== null
|
|
7028
7066
|
? deserializeAws_restJson1Position(output.StartPosition, context)
|
|
7029
7067
|
: undefined,
|