@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
|
@@ -171,10 +171,13 @@ import {
|
|
|
171
171
|
isValidHostname as __isValidHostname,
|
|
172
172
|
} from "@aws-sdk/protocol-http";
|
|
173
173
|
import {
|
|
174
|
-
|
|
174
|
+
expectInt32 as __expectInt32,
|
|
175
|
+
expectNonNull as __expectNonNull,
|
|
176
|
+
expectObject as __expectObject,
|
|
175
177
|
expectString as __expectString,
|
|
176
178
|
extendedEncodeURIComponent as __extendedEncodeURIComponent,
|
|
177
|
-
|
|
179
|
+
limitedParseDouble as __limitedParseDouble,
|
|
180
|
+
parseRfc3339DateTime as __parseRfc3339DateTime,
|
|
178
181
|
serializeFloat as __serializeFloat,
|
|
179
182
|
} from "@aws-sdk/smithy-client";
|
|
180
183
|
import {
|
|
@@ -2383,7 +2386,7 @@ export const deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = a
|
|
|
2383
2386
|
$metadata: deserializeMetadata(output),
|
|
2384
2387
|
Errors: undefined,
|
|
2385
2388
|
};
|
|
2386
|
-
const data: any = await parseBody(output.body, context);
|
|
2389
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2387
2390
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
2388
2391
|
contents.Errors = deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList(data.Errors, context);
|
|
2389
2392
|
}
|
|
@@ -2470,7 +2473,7 @@ export const deserializeAws_restJson1BatchDeleteGeofenceCommand = async (
|
|
|
2470
2473
|
$metadata: deserializeMetadata(output),
|
|
2471
2474
|
Errors: undefined,
|
|
2472
2475
|
};
|
|
2473
|
-
const data: any = await parseBody(output.body, context);
|
|
2476
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2474
2477
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
2475
2478
|
contents.Errors = deserializeAws_restJson1BatchDeleteGeofenceErrorList(data.Errors, context);
|
|
2476
2479
|
}
|
|
@@ -2557,7 +2560,7 @@ export const deserializeAws_restJson1BatchEvaluateGeofencesCommand = async (
|
|
|
2557
2560
|
$metadata: deserializeMetadata(output),
|
|
2558
2561
|
Errors: undefined,
|
|
2559
2562
|
};
|
|
2560
|
-
const data: any = await parseBody(output.body, context);
|
|
2563
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2561
2564
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
2562
2565
|
contents.Errors = deserializeAws_restJson1BatchEvaluateGeofencesErrorList(data.Errors, context);
|
|
2563
2566
|
}
|
|
@@ -2645,7 +2648,7 @@ export const deserializeAws_restJson1BatchGetDevicePositionCommand = async (
|
|
|
2645
2648
|
DevicePositions: undefined,
|
|
2646
2649
|
Errors: undefined,
|
|
2647
2650
|
};
|
|
2648
|
-
const data: any = await parseBody(output.body, context);
|
|
2651
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2649
2652
|
if (data.DevicePositions !== undefined && data.DevicePositions !== null) {
|
|
2650
2653
|
contents.DevicePositions = deserializeAws_restJson1DevicePositionList(data.DevicePositions, context);
|
|
2651
2654
|
}
|
|
@@ -2736,7 +2739,7 @@ export const deserializeAws_restJson1BatchPutGeofenceCommand = async (
|
|
|
2736
2739
|
Errors: undefined,
|
|
2737
2740
|
Successes: undefined,
|
|
2738
2741
|
};
|
|
2739
|
-
const data: any = await parseBody(output.body, context);
|
|
2742
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2740
2743
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
2741
2744
|
contents.Errors = deserializeAws_restJson1BatchPutGeofenceErrorList(data.Errors, context);
|
|
2742
2745
|
}
|
|
@@ -2826,7 +2829,7 @@ export const deserializeAws_restJson1BatchUpdateDevicePositionCommand = async (
|
|
|
2826
2829
|
$metadata: deserializeMetadata(output),
|
|
2827
2830
|
Errors: undefined,
|
|
2828
2831
|
};
|
|
2829
|
-
const data: any = await parseBody(output.body, context);
|
|
2832
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2830
2833
|
if (data.Errors !== undefined && data.Errors !== null) {
|
|
2831
2834
|
contents.Errors = deserializeAws_restJson1BatchUpdateDevicePositionErrorList(data.Errors, context);
|
|
2832
2835
|
}
|
|
@@ -2914,7 +2917,7 @@ export const deserializeAws_restJson1CalculateRouteCommand = async (
|
|
|
2914
2917
|
Legs: undefined,
|
|
2915
2918
|
Summary: undefined,
|
|
2916
2919
|
};
|
|
2917
|
-
const data: any = await parseBody(output.body, context);
|
|
2920
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2918
2921
|
if (data.Legs !== undefined && data.Legs !== null) {
|
|
2919
2922
|
contents.Legs = deserializeAws_restJson1LegList(data.Legs, context);
|
|
2920
2923
|
}
|
|
@@ -3006,7 +3009,7 @@ export const deserializeAws_restJson1CreateGeofenceCollectionCommand = async (
|
|
|
3006
3009
|
CollectionName: undefined,
|
|
3007
3010
|
CreateTime: undefined,
|
|
3008
3011
|
};
|
|
3009
|
-
const data: any = await parseBody(output.body, context);
|
|
3012
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3010
3013
|
if (data.CollectionArn !== undefined && data.CollectionArn !== null) {
|
|
3011
3014
|
contents.CollectionArn = __expectString(data.CollectionArn);
|
|
3012
3015
|
}
|
|
@@ -3014,7 +3017,7 @@ export const deserializeAws_restJson1CreateGeofenceCollectionCommand = async (
|
|
|
3014
3017
|
contents.CollectionName = __expectString(data.CollectionName);
|
|
3015
3018
|
}
|
|
3016
3019
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
3017
|
-
contents.CreateTime =
|
|
3020
|
+
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
3018
3021
|
}
|
|
3019
3022
|
return Promise.resolve(contents);
|
|
3020
3023
|
};
|
|
@@ -3101,9 +3104,9 @@ export const deserializeAws_restJson1CreateMapCommand = async (
|
|
|
3101
3104
|
MapArn: undefined,
|
|
3102
3105
|
MapName: undefined,
|
|
3103
3106
|
};
|
|
3104
|
-
const data: any = await parseBody(output.body, context);
|
|
3107
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3105
3108
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
3106
|
-
contents.CreateTime =
|
|
3109
|
+
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
3107
3110
|
}
|
|
3108
3111
|
if (data.MapArn !== undefined && data.MapArn !== null) {
|
|
3109
3112
|
contents.MapArn = __expectString(data.MapArn);
|
|
@@ -3196,9 +3199,9 @@ export const deserializeAws_restJson1CreatePlaceIndexCommand = async (
|
|
|
3196
3199
|
IndexArn: undefined,
|
|
3197
3200
|
IndexName: undefined,
|
|
3198
3201
|
};
|
|
3199
|
-
const data: any = await parseBody(output.body, context);
|
|
3202
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3200
3203
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
3201
|
-
contents.CreateTime =
|
|
3204
|
+
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
3202
3205
|
}
|
|
3203
3206
|
if (data.IndexArn !== undefined && data.IndexArn !== null) {
|
|
3204
3207
|
contents.IndexArn = __expectString(data.IndexArn);
|
|
@@ -3291,7 +3294,7 @@ export const deserializeAws_restJson1CreateRouteCalculatorCommand = async (
|
|
|
3291
3294
|
CalculatorName: undefined,
|
|
3292
3295
|
CreateTime: undefined,
|
|
3293
3296
|
};
|
|
3294
|
-
const data: any = await parseBody(output.body, context);
|
|
3297
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3295
3298
|
if (data.CalculatorArn !== undefined && data.CalculatorArn !== null) {
|
|
3296
3299
|
contents.CalculatorArn = __expectString(data.CalculatorArn);
|
|
3297
3300
|
}
|
|
@@ -3299,7 +3302,7 @@ export const deserializeAws_restJson1CreateRouteCalculatorCommand = async (
|
|
|
3299
3302
|
contents.CalculatorName = __expectString(data.CalculatorName);
|
|
3300
3303
|
}
|
|
3301
3304
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
3302
|
-
contents.CreateTime =
|
|
3305
|
+
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
3303
3306
|
}
|
|
3304
3307
|
return Promise.resolve(contents);
|
|
3305
3308
|
};
|
|
@@ -3386,9 +3389,9 @@ export const deserializeAws_restJson1CreateTrackerCommand = async (
|
|
|
3386
3389
|
TrackerArn: undefined,
|
|
3387
3390
|
TrackerName: undefined,
|
|
3388
3391
|
};
|
|
3389
|
-
const data: any = await parseBody(output.body, context);
|
|
3392
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3390
3393
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
3391
|
-
contents.CreateTime =
|
|
3394
|
+
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
3392
3395
|
}
|
|
3393
3396
|
if (data.TrackerArn !== undefined && data.TrackerArn !== null) {
|
|
3394
3397
|
contents.TrackerArn = __expectString(data.TrackerArn);
|
|
@@ -3902,7 +3905,7 @@ export const deserializeAws_restJson1DescribeGeofenceCollectionCommand = async (
|
|
|
3902
3905
|
Tags: undefined,
|
|
3903
3906
|
UpdateTime: undefined,
|
|
3904
3907
|
};
|
|
3905
|
-
const data: any = await parseBody(output.body, context);
|
|
3908
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3906
3909
|
if (data.CollectionArn !== undefined && data.CollectionArn !== null) {
|
|
3907
3910
|
contents.CollectionArn = __expectString(data.CollectionArn);
|
|
3908
3911
|
}
|
|
@@ -3910,7 +3913,7 @@ export const deserializeAws_restJson1DescribeGeofenceCollectionCommand = async (
|
|
|
3910
3913
|
contents.CollectionName = __expectString(data.CollectionName);
|
|
3911
3914
|
}
|
|
3912
3915
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
3913
|
-
contents.CreateTime =
|
|
3916
|
+
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
3914
3917
|
}
|
|
3915
3918
|
if (data.Description !== undefined && data.Description !== null) {
|
|
3916
3919
|
contents.Description = __expectString(data.Description);
|
|
@@ -3928,7 +3931,7 @@ export const deserializeAws_restJson1DescribeGeofenceCollectionCommand = async (
|
|
|
3928
3931
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
3929
3932
|
}
|
|
3930
3933
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
3931
|
-
contents.UpdateTime =
|
|
3934
|
+
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
3932
3935
|
}
|
|
3933
3936
|
return Promise.resolve(contents);
|
|
3934
3937
|
};
|
|
@@ -4021,12 +4024,12 @@ export const deserializeAws_restJson1DescribeMapCommand = async (
|
|
|
4021
4024
|
Tags: undefined,
|
|
4022
4025
|
UpdateTime: undefined,
|
|
4023
4026
|
};
|
|
4024
|
-
const data: any = await parseBody(output.body, context);
|
|
4027
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4025
4028
|
if (data.Configuration !== undefined && data.Configuration !== null) {
|
|
4026
4029
|
contents.Configuration = deserializeAws_restJson1MapConfiguration(data.Configuration, context);
|
|
4027
4030
|
}
|
|
4028
4031
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
4029
|
-
contents.CreateTime =
|
|
4032
|
+
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
4030
4033
|
}
|
|
4031
4034
|
if (data.DataSource !== undefined && data.DataSource !== null) {
|
|
4032
4035
|
contents.DataSource = __expectString(data.DataSource);
|
|
@@ -4047,7 +4050,7 @@ export const deserializeAws_restJson1DescribeMapCommand = async (
|
|
|
4047
4050
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
4048
4051
|
}
|
|
4049
4052
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
4050
|
-
contents.UpdateTime =
|
|
4053
|
+
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
4051
4054
|
}
|
|
4052
4055
|
return Promise.resolve(contents);
|
|
4053
4056
|
};
|
|
@@ -4140,9 +4143,9 @@ export const deserializeAws_restJson1DescribePlaceIndexCommand = async (
|
|
|
4140
4143
|
Tags: undefined,
|
|
4141
4144
|
UpdateTime: undefined,
|
|
4142
4145
|
};
|
|
4143
|
-
const data: any = await parseBody(output.body, context);
|
|
4146
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4144
4147
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
4145
|
-
contents.CreateTime =
|
|
4148
|
+
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
4146
4149
|
}
|
|
4147
4150
|
if (data.DataSource !== undefined && data.DataSource !== null) {
|
|
4148
4151
|
contents.DataSource = __expectString(data.DataSource);
|
|
@@ -4169,7 +4172,7 @@ export const deserializeAws_restJson1DescribePlaceIndexCommand = async (
|
|
|
4169
4172
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
4170
4173
|
}
|
|
4171
4174
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
4172
|
-
contents.UpdateTime =
|
|
4175
|
+
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
4173
4176
|
}
|
|
4174
4177
|
return Promise.resolve(contents);
|
|
4175
4178
|
};
|
|
@@ -4261,7 +4264,7 @@ export const deserializeAws_restJson1DescribeRouteCalculatorCommand = async (
|
|
|
4261
4264
|
Tags: undefined,
|
|
4262
4265
|
UpdateTime: undefined,
|
|
4263
4266
|
};
|
|
4264
|
-
const data: any = await parseBody(output.body, context);
|
|
4267
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4265
4268
|
if (data.CalculatorArn !== undefined && data.CalculatorArn !== null) {
|
|
4266
4269
|
contents.CalculatorArn = __expectString(data.CalculatorArn);
|
|
4267
4270
|
}
|
|
@@ -4269,7 +4272,7 @@ export const deserializeAws_restJson1DescribeRouteCalculatorCommand = async (
|
|
|
4269
4272
|
contents.CalculatorName = __expectString(data.CalculatorName);
|
|
4270
4273
|
}
|
|
4271
4274
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
4272
|
-
contents.CreateTime =
|
|
4275
|
+
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
4273
4276
|
}
|
|
4274
4277
|
if (data.DataSource !== undefined && data.DataSource !== null) {
|
|
4275
4278
|
contents.DataSource = __expectString(data.DataSource);
|
|
@@ -4284,7 +4287,7 @@ export const deserializeAws_restJson1DescribeRouteCalculatorCommand = async (
|
|
|
4284
4287
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
4285
4288
|
}
|
|
4286
4289
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
4287
|
-
contents.UpdateTime =
|
|
4290
|
+
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
4288
4291
|
}
|
|
4289
4292
|
return Promise.resolve(contents);
|
|
4290
4293
|
};
|
|
@@ -4377,9 +4380,9 @@ export const deserializeAws_restJson1DescribeTrackerCommand = async (
|
|
|
4377
4380
|
TrackerName: undefined,
|
|
4378
4381
|
UpdateTime: undefined,
|
|
4379
4382
|
};
|
|
4380
|
-
const data: any = await parseBody(output.body, context);
|
|
4383
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4381
4384
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
4382
|
-
contents.CreateTime =
|
|
4385
|
+
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
4383
4386
|
}
|
|
4384
4387
|
if (data.Description !== undefined && data.Description !== null) {
|
|
4385
4388
|
contents.Description = __expectString(data.Description);
|
|
@@ -4403,7 +4406,7 @@ export const deserializeAws_restJson1DescribeTrackerCommand = async (
|
|
|
4403
4406
|
contents.TrackerName = __expectString(data.TrackerName);
|
|
4404
4407
|
}
|
|
4405
4408
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
4406
|
-
contents.UpdateTime =
|
|
4409
|
+
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
4407
4410
|
}
|
|
4408
4411
|
return Promise.resolve(contents);
|
|
4409
4412
|
};
|
|
@@ -4574,7 +4577,7 @@ export const deserializeAws_restJson1GetDevicePositionCommand = async (
|
|
|
4574
4577
|
ReceivedTime: undefined,
|
|
4575
4578
|
SampleTime: undefined,
|
|
4576
4579
|
};
|
|
4577
|
-
const data: any = await parseBody(output.body, context);
|
|
4580
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4578
4581
|
if (data.DeviceId !== undefined && data.DeviceId !== null) {
|
|
4579
4582
|
contents.DeviceId = __expectString(data.DeviceId);
|
|
4580
4583
|
}
|
|
@@ -4582,10 +4585,10 @@ export const deserializeAws_restJson1GetDevicePositionCommand = async (
|
|
|
4582
4585
|
contents.Position = deserializeAws_restJson1Position(data.Position, context);
|
|
4583
4586
|
}
|
|
4584
4587
|
if (data.ReceivedTime !== undefined && data.ReceivedTime !== null) {
|
|
4585
|
-
contents.ReceivedTime =
|
|
4588
|
+
contents.ReceivedTime = __expectNonNull(__parseRfc3339DateTime(data.ReceivedTime));
|
|
4586
4589
|
}
|
|
4587
4590
|
if (data.SampleTime !== undefined && data.SampleTime !== null) {
|
|
4588
|
-
contents.SampleTime =
|
|
4591
|
+
contents.SampleTime = __expectNonNull(__parseRfc3339DateTime(data.SampleTime));
|
|
4589
4592
|
}
|
|
4590
4593
|
return Promise.resolve(contents);
|
|
4591
4594
|
};
|
|
@@ -4671,7 +4674,7 @@ export const deserializeAws_restJson1GetDevicePositionHistoryCommand = async (
|
|
|
4671
4674
|
DevicePositions: undefined,
|
|
4672
4675
|
NextToken: undefined,
|
|
4673
4676
|
};
|
|
4674
|
-
const data: any = await parseBody(output.body, context);
|
|
4677
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4675
4678
|
if (data.DevicePositions !== undefined && data.DevicePositions !== null) {
|
|
4676
4679
|
contents.DevicePositions = deserializeAws_restJson1DevicePositionList(data.DevicePositions, context);
|
|
4677
4680
|
}
|
|
@@ -4765,9 +4768,9 @@ export const deserializeAws_restJson1GetGeofenceCommand = async (
|
|
|
4765
4768
|
Status: undefined,
|
|
4766
4769
|
UpdateTime: undefined,
|
|
4767
4770
|
};
|
|
4768
|
-
const data: any = await parseBody(output.body, context);
|
|
4771
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
4769
4772
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
4770
|
-
contents.CreateTime =
|
|
4773
|
+
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
4771
4774
|
}
|
|
4772
4775
|
if (data.GeofenceId !== undefined && data.GeofenceId !== null) {
|
|
4773
4776
|
contents.GeofenceId = __expectString(data.GeofenceId);
|
|
@@ -4779,7 +4782,7 @@ export const deserializeAws_restJson1GetGeofenceCommand = async (
|
|
|
4779
4782
|
contents.Status = __expectString(data.Status);
|
|
4780
4783
|
}
|
|
4781
4784
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
4782
|
-
contents.UpdateTime =
|
|
4785
|
+
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
4783
4786
|
}
|
|
4784
4787
|
return Promise.resolve(contents);
|
|
4785
4788
|
};
|
|
@@ -5221,7 +5224,7 @@ export const deserializeAws_restJson1ListDevicePositionsCommand = async (
|
|
|
5221
5224
|
Entries: undefined,
|
|
5222
5225
|
NextToken: undefined,
|
|
5223
5226
|
};
|
|
5224
|
-
const data: any = await parseBody(output.body, context);
|
|
5227
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5225
5228
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
5226
5229
|
contents.Entries = deserializeAws_restJson1ListDevicePositionsResponseEntryList(data.Entries, context);
|
|
5227
5230
|
}
|
|
@@ -5304,7 +5307,7 @@ export const deserializeAws_restJson1ListGeofenceCollectionsCommand = async (
|
|
|
5304
5307
|
Entries: undefined,
|
|
5305
5308
|
NextToken: undefined,
|
|
5306
5309
|
};
|
|
5307
|
-
const data: any = await parseBody(output.body, context);
|
|
5310
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5308
5311
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
5309
5312
|
contents.Entries = deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList(data.Entries, context);
|
|
5310
5313
|
}
|
|
@@ -5387,7 +5390,7 @@ export const deserializeAws_restJson1ListGeofencesCommand = async (
|
|
|
5387
5390
|
Entries: undefined,
|
|
5388
5391
|
NextToken: undefined,
|
|
5389
5392
|
};
|
|
5390
|
-
const data: any = await parseBody(output.body, context);
|
|
5393
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5391
5394
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
5392
5395
|
contents.Entries = deserializeAws_restJson1ListGeofenceResponseEntryList(data.Entries, context);
|
|
5393
5396
|
}
|
|
@@ -5478,7 +5481,7 @@ export const deserializeAws_restJson1ListMapsCommand = async (
|
|
|
5478
5481
|
Entries: undefined,
|
|
5479
5482
|
NextToken: undefined,
|
|
5480
5483
|
};
|
|
5481
|
-
const data: any = await parseBody(output.body, context);
|
|
5484
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5482
5485
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
5483
5486
|
contents.Entries = deserializeAws_restJson1ListMapsResponseEntryList(data.Entries, context);
|
|
5484
5487
|
}
|
|
@@ -5561,7 +5564,7 @@ export const deserializeAws_restJson1ListPlaceIndexesCommand = async (
|
|
|
5561
5564
|
Entries: undefined,
|
|
5562
5565
|
NextToken: undefined,
|
|
5563
5566
|
};
|
|
5564
|
-
const data: any = await parseBody(output.body, context);
|
|
5567
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5565
5568
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
5566
5569
|
contents.Entries = deserializeAws_restJson1ListPlaceIndexesResponseEntryList(data.Entries, context);
|
|
5567
5570
|
}
|
|
@@ -5644,7 +5647,7 @@ export const deserializeAws_restJson1ListRouteCalculatorsCommand = async (
|
|
|
5644
5647
|
Entries: undefined,
|
|
5645
5648
|
NextToken: undefined,
|
|
5646
5649
|
};
|
|
5647
|
-
const data: any = await parseBody(output.body, context);
|
|
5650
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5648
5651
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
5649
5652
|
contents.Entries = deserializeAws_restJson1ListRouteCalculatorsResponseEntryList(data.Entries, context);
|
|
5650
5653
|
}
|
|
@@ -5726,7 +5729,7 @@ export const deserializeAws_restJson1ListTagsForResourceCommand = async (
|
|
|
5726
5729
|
$metadata: deserializeMetadata(output),
|
|
5727
5730
|
Tags: undefined,
|
|
5728
5731
|
};
|
|
5729
|
-
const data: any = await parseBody(output.body, context);
|
|
5732
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5730
5733
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
5731
5734
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
5732
5735
|
}
|
|
@@ -5814,7 +5817,7 @@ export const deserializeAws_restJson1ListTrackerConsumersCommand = async (
|
|
|
5814
5817
|
ConsumerArns: undefined,
|
|
5815
5818
|
NextToken: undefined,
|
|
5816
5819
|
};
|
|
5817
|
-
const data: any = await parseBody(output.body, context);
|
|
5820
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5818
5821
|
if (data.ConsumerArns !== undefined && data.ConsumerArns !== null) {
|
|
5819
5822
|
contents.ConsumerArns = deserializeAws_restJson1ArnList(data.ConsumerArns, context);
|
|
5820
5823
|
}
|
|
@@ -5905,7 +5908,7 @@ export const deserializeAws_restJson1ListTrackersCommand = async (
|
|
|
5905
5908
|
Entries: undefined,
|
|
5906
5909
|
NextToken: undefined,
|
|
5907
5910
|
};
|
|
5908
|
-
const data: any = await parseBody(output.body, context);
|
|
5911
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5909
5912
|
if (data.Entries !== undefined && data.Entries !== null) {
|
|
5910
5913
|
contents.Entries = deserializeAws_restJson1ListTrackersResponseEntryList(data.Entries, context);
|
|
5911
5914
|
}
|
|
@@ -5989,15 +5992,15 @@ export const deserializeAws_restJson1PutGeofenceCommand = async (
|
|
|
5989
5992
|
GeofenceId: undefined,
|
|
5990
5993
|
UpdateTime: undefined,
|
|
5991
5994
|
};
|
|
5992
|
-
const data: any = await parseBody(output.body, context);
|
|
5995
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
5993
5996
|
if (data.CreateTime !== undefined && data.CreateTime !== null) {
|
|
5994
|
-
contents.CreateTime =
|
|
5997
|
+
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
5995
5998
|
}
|
|
5996
5999
|
if (data.GeofenceId !== undefined && data.GeofenceId !== null) {
|
|
5997
6000
|
contents.GeofenceId = __expectString(data.GeofenceId);
|
|
5998
6001
|
}
|
|
5999
6002
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
6000
|
-
contents.UpdateTime =
|
|
6003
|
+
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
6001
6004
|
}
|
|
6002
6005
|
return Promise.resolve(contents);
|
|
6003
6006
|
};
|
|
@@ -6091,7 +6094,7 @@ export const deserializeAws_restJson1SearchPlaceIndexForPositionCommand = async
|
|
|
6091
6094
|
Results: undefined,
|
|
6092
6095
|
Summary: undefined,
|
|
6093
6096
|
};
|
|
6094
|
-
const data: any = await parseBody(output.body, context);
|
|
6097
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6095
6098
|
if (data.Results !== undefined && data.Results !== null) {
|
|
6096
6099
|
contents.Results = deserializeAws_restJson1SearchForPositionResultList(data.Results, context);
|
|
6097
6100
|
}
|
|
@@ -6182,7 +6185,7 @@ export const deserializeAws_restJson1SearchPlaceIndexForTextCommand = async (
|
|
|
6182
6185
|
Results: undefined,
|
|
6183
6186
|
Summary: undefined,
|
|
6184
6187
|
};
|
|
6185
|
-
const data: any = await parseBody(output.body, context);
|
|
6188
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6186
6189
|
if (data.Results !== undefined && data.Results !== null) {
|
|
6187
6190
|
contents.Results = deserializeAws_restJson1SearchForTextResultList(data.Results, context);
|
|
6188
6191
|
}
|
|
@@ -6440,7 +6443,7 @@ export const deserializeAws_restJson1UpdateGeofenceCollectionCommand = async (
|
|
|
6440
6443
|
CollectionName: undefined,
|
|
6441
6444
|
UpdateTime: undefined,
|
|
6442
6445
|
};
|
|
6443
|
-
const data: any = await parseBody(output.body, context);
|
|
6446
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6444
6447
|
if (data.CollectionArn !== undefined && data.CollectionArn !== null) {
|
|
6445
6448
|
contents.CollectionArn = __expectString(data.CollectionArn);
|
|
6446
6449
|
}
|
|
@@ -6448,7 +6451,7 @@ export const deserializeAws_restJson1UpdateGeofenceCollectionCommand = async (
|
|
|
6448
6451
|
contents.CollectionName = __expectString(data.CollectionName);
|
|
6449
6452
|
}
|
|
6450
6453
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
6451
|
-
contents.UpdateTime =
|
|
6454
|
+
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
6452
6455
|
}
|
|
6453
6456
|
return Promise.resolve(contents);
|
|
6454
6457
|
};
|
|
@@ -6535,7 +6538,7 @@ export const deserializeAws_restJson1UpdateMapCommand = async (
|
|
|
6535
6538
|
MapName: undefined,
|
|
6536
6539
|
UpdateTime: undefined,
|
|
6537
6540
|
};
|
|
6538
|
-
const data: any = await parseBody(output.body, context);
|
|
6541
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6539
6542
|
if (data.MapArn !== undefined && data.MapArn !== null) {
|
|
6540
6543
|
contents.MapArn = __expectString(data.MapArn);
|
|
6541
6544
|
}
|
|
@@ -6543,7 +6546,7 @@ export const deserializeAws_restJson1UpdateMapCommand = async (
|
|
|
6543
6546
|
contents.MapName = __expectString(data.MapName);
|
|
6544
6547
|
}
|
|
6545
6548
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
6546
|
-
contents.UpdateTime =
|
|
6549
|
+
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
6547
6550
|
}
|
|
6548
6551
|
return Promise.resolve(contents);
|
|
6549
6552
|
};
|
|
@@ -6630,7 +6633,7 @@ export const deserializeAws_restJson1UpdatePlaceIndexCommand = async (
|
|
|
6630
6633
|
IndexName: undefined,
|
|
6631
6634
|
UpdateTime: undefined,
|
|
6632
6635
|
};
|
|
6633
|
-
const data: any = await parseBody(output.body, context);
|
|
6636
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6634
6637
|
if (data.IndexArn !== undefined && data.IndexArn !== null) {
|
|
6635
6638
|
contents.IndexArn = __expectString(data.IndexArn);
|
|
6636
6639
|
}
|
|
@@ -6638,7 +6641,7 @@ export const deserializeAws_restJson1UpdatePlaceIndexCommand = async (
|
|
|
6638
6641
|
contents.IndexName = __expectString(data.IndexName);
|
|
6639
6642
|
}
|
|
6640
6643
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
6641
|
-
contents.UpdateTime =
|
|
6644
|
+
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
6642
6645
|
}
|
|
6643
6646
|
return Promise.resolve(contents);
|
|
6644
6647
|
};
|
|
@@ -6725,7 +6728,7 @@ export const deserializeAws_restJson1UpdateRouteCalculatorCommand = async (
|
|
|
6725
6728
|
CalculatorName: undefined,
|
|
6726
6729
|
UpdateTime: undefined,
|
|
6727
6730
|
};
|
|
6728
|
-
const data: any = await parseBody(output.body, context);
|
|
6731
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6729
6732
|
if (data.CalculatorArn !== undefined && data.CalculatorArn !== null) {
|
|
6730
6733
|
contents.CalculatorArn = __expectString(data.CalculatorArn);
|
|
6731
6734
|
}
|
|
@@ -6733,7 +6736,7 @@ export const deserializeAws_restJson1UpdateRouteCalculatorCommand = async (
|
|
|
6733
6736
|
contents.CalculatorName = __expectString(data.CalculatorName);
|
|
6734
6737
|
}
|
|
6735
6738
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
6736
|
-
contents.UpdateTime =
|
|
6739
|
+
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
6737
6740
|
}
|
|
6738
6741
|
return Promise.resolve(contents);
|
|
6739
6742
|
};
|
|
@@ -6820,7 +6823,7 @@ export const deserializeAws_restJson1UpdateTrackerCommand = async (
|
|
|
6820
6823
|
TrackerName: undefined,
|
|
6821
6824
|
UpdateTime: undefined,
|
|
6822
6825
|
};
|
|
6823
|
-
const data: any = await parseBody(output.body, context);
|
|
6826
|
+
const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6824
6827
|
if (data.TrackerArn !== undefined && data.TrackerArn !== null) {
|
|
6825
6828
|
contents.TrackerArn = __expectString(data.TrackerArn);
|
|
6826
6829
|
}
|
|
@@ -6828,7 +6831,7 @@ export const deserializeAws_restJson1UpdateTrackerCommand = async (
|
|
|
6828
6831
|
contents.TrackerName = __expectString(data.TrackerName);
|
|
6829
6832
|
}
|
|
6830
6833
|
if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
|
|
6831
|
-
contents.UpdateTime =
|
|
6834
|
+
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
6832
6835
|
}
|
|
6833
6836
|
return Promise.resolve(contents);
|
|
6834
6837
|
};
|
|
@@ -7317,7 +7320,10 @@ const deserializeAws_restJson1BatchEvaluateGeofencesError = (
|
|
|
7317
7320
|
output.Error !== undefined && output.Error !== null
|
|
7318
7321
|
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
7319
7322
|
: undefined,
|
|
7320
|
-
SampleTime:
|
|
7323
|
+
SampleTime:
|
|
7324
|
+
output.SampleTime !== undefined && output.SampleTime !== null
|
|
7325
|
+
? __expectNonNull(__parseRfc3339DateTime(output.SampleTime))
|
|
7326
|
+
: undefined,
|
|
7321
7327
|
} as any;
|
|
7322
7328
|
};
|
|
7323
7329
|
|
|
@@ -7398,9 +7404,15 @@ const deserializeAws_restJson1BatchPutGeofenceSuccess = (
|
|
|
7398
7404
|
context: __SerdeContext
|
|
7399
7405
|
): BatchPutGeofenceSuccess => {
|
|
7400
7406
|
return {
|
|
7401
|
-
CreateTime:
|
|
7407
|
+
CreateTime:
|
|
7408
|
+
output.CreateTime !== undefined && output.CreateTime !== null
|
|
7409
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
|
|
7410
|
+
: undefined,
|
|
7402
7411
|
GeofenceId: __expectString(output.GeofenceId),
|
|
7403
|
-
UpdateTime:
|
|
7412
|
+
UpdateTime:
|
|
7413
|
+
output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
7414
|
+
? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
|
|
7415
|
+
: undefined,
|
|
7404
7416
|
} as any;
|
|
7405
7417
|
};
|
|
7406
7418
|
|
|
@@ -7428,7 +7440,10 @@ const deserializeAws_restJson1BatchUpdateDevicePositionError = (
|
|
|
7428
7440
|
output.Error !== undefined && output.Error !== null
|
|
7429
7441
|
? deserializeAws_restJson1BatchItemError(output.Error, context)
|
|
7430
7442
|
: undefined,
|
|
7431
|
-
SampleTime:
|
|
7443
|
+
SampleTime:
|
|
7444
|
+
output.SampleTime !== undefined && output.SampleTime !== null
|
|
7445
|
+
? __expectNonNull(__parseRfc3339DateTime(output.SampleTime))
|
|
7446
|
+
: undefined,
|
|
7432
7447
|
} as any;
|
|
7433
7448
|
};
|
|
7434
7449
|
|
|
@@ -7453,16 +7468,16 @@ const deserializeAws_restJson1BoundingBox = (output: any, context: __SerdeContex
|
|
|
7453
7468
|
if (entry === null) {
|
|
7454
7469
|
return null as any;
|
|
7455
7470
|
}
|
|
7456
|
-
return
|
|
7471
|
+
return __limitedParseDouble(entry) as any;
|
|
7457
7472
|
});
|
|
7458
7473
|
};
|
|
7459
7474
|
|
|
7460
7475
|
const deserializeAws_restJson1CalculateRouteSummary = (output: any, context: __SerdeContext): CalculateRouteSummary => {
|
|
7461
7476
|
return {
|
|
7462
7477
|
DataSource: __expectString(output.DataSource),
|
|
7463
|
-
Distance:
|
|
7478
|
+
Distance: __limitedParseDouble(output.Distance),
|
|
7464
7479
|
DistanceUnit: __expectString(output.DistanceUnit),
|
|
7465
|
-
DurationSeconds:
|
|
7480
|
+
DurationSeconds: __limitedParseDouble(output.DurationSeconds),
|
|
7466
7481
|
RouteBBox:
|
|
7467
7482
|
output.RouteBBox !== undefined && output.RouteBBox !== null
|
|
7468
7483
|
? deserializeAws_restJson1BoundingBox(output.RouteBBox, context)
|
|
@@ -7498,8 +7513,13 @@ const deserializeAws_restJson1DevicePosition = (output: any, context: __SerdeCon
|
|
|
7498
7513
|
? deserializeAws_restJson1Position(output.Position, context)
|
|
7499
7514
|
: undefined,
|
|
7500
7515
|
ReceivedTime:
|
|
7501
|
-
output.ReceivedTime !== undefined && output.ReceivedTime !== null
|
|
7502
|
-
|
|
7516
|
+
output.ReceivedTime !== undefined && output.ReceivedTime !== null
|
|
7517
|
+
? __expectNonNull(__parseRfc3339DateTime(output.ReceivedTime))
|
|
7518
|
+
: undefined,
|
|
7519
|
+
SampleTime:
|
|
7520
|
+
output.SampleTime !== undefined && output.SampleTime !== null
|
|
7521
|
+
? __expectNonNull(__parseRfc3339DateTime(output.SampleTime))
|
|
7522
|
+
: undefined,
|
|
7503
7523
|
} as any;
|
|
7504
7524
|
};
|
|
7505
7525
|
|
|
@@ -7525,8 +7545,8 @@ const deserializeAws_restJson1GeofenceGeometry = (output: any, context: __SerdeC
|
|
|
7525
7545
|
|
|
7526
7546
|
const deserializeAws_restJson1Leg = (output: any, context: __SerdeContext): Leg => {
|
|
7527
7547
|
return {
|
|
7528
|
-
Distance:
|
|
7529
|
-
DurationSeconds:
|
|
7548
|
+
Distance: __limitedParseDouble(output.Distance),
|
|
7549
|
+
DurationSeconds: __limitedParseDouble(output.DurationSeconds),
|
|
7530
7550
|
EndPosition:
|
|
7531
7551
|
output.EndPosition !== undefined && output.EndPosition !== null
|
|
7532
7552
|
? deserializeAws_restJson1Position(output.EndPosition, context)
|
|
@@ -7609,7 +7629,10 @@ const deserializeAws_restJson1ListDevicePositionsResponseEntry = (
|
|
|
7609
7629
|
output.Position !== undefined && output.Position !== null
|
|
7610
7630
|
? deserializeAws_restJson1Position(output.Position, context)
|
|
7611
7631
|
: undefined,
|
|
7612
|
-
SampleTime:
|
|
7632
|
+
SampleTime:
|
|
7633
|
+
output.SampleTime !== undefined && output.SampleTime !== null
|
|
7634
|
+
? __expectNonNull(__parseRfc3339DateTime(output.SampleTime))
|
|
7635
|
+
: undefined,
|
|
7613
7636
|
} as any;
|
|
7614
7637
|
};
|
|
7615
7638
|
|
|
@@ -7633,11 +7656,17 @@ const deserializeAws_restJson1ListGeofenceCollectionsResponseEntry = (
|
|
|
7633
7656
|
): ListGeofenceCollectionsResponseEntry => {
|
|
7634
7657
|
return {
|
|
7635
7658
|
CollectionName: __expectString(output.CollectionName),
|
|
7636
|
-
CreateTime:
|
|
7659
|
+
CreateTime:
|
|
7660
|
+
output.CreateTime !== undefined && output.CreateTime !== null
|
|
7661
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
|
|
7662
|
+
: undefined,
|
|
7637
7663
|
Description: __expectString(output.Description),
|
|
7638
7664
|
PricingPlan: __expectString(output.PricingPlan),
|
|
7639
7665
|
PricingPlanDataSource: __expectString(output.PricingPlanDataSource),
|
|
7640
|
-
UpdateTime:
|
|
7666
|
+
UpdateTime:
|
|
7667
|
+
output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
7668
|
+
? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
|
|
7669
|
+
: undefined,
|
|
7641
7670
|
} as any;
|
|
7642
7671
|
};
|
|
7643
7672
|
|
|
@@ -7660,14 +7689,20 @@ const deserializeAws_restJson1ListGeofenceResponseEntry = (
|
|
|
7660
7689
|
context: __SerdeContext
|
|
7661
7690
|
): ListGeofenceResponseEntry => {
|
|
7662
7691
|
return {
|
|
7663
|
-
CreateTime:
|
|
7692
|
+
CreateTime:
|
|
7693
|
+
output.CreateTime !== undefined && output.CreateTime !== null
|
|
7694
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
|
|
7695
|
+
: undefined,
|
|
7664
7696
|
GeofenceId: __expectString(output.GeofenceId),
|
|
7665
7697
|
Geometry:
|
|
7666
7698
|
output.Geometry !== undefined && output.Geometry !== null
|
|
7667
7699
|
? deserializeAws_restJson1GeofenceGeometry(output.Geometry, context)
|
|
7668
7700
|
: undefined,
|
|
7669
7701
|
Status: __expectString(output.Status),
|
|
7670
|
-
UpdateTime:
|
|
7702
|
+
UpdateTime:
|
|
7703
|
+
output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
7704
|
+
? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
|
|
7705
|
+
: undefined,
|
|
7671
7706
|
} as any;
|
|
7672
7707
|
};
|
|
7673
7708
|
|
|
@@ -7687,12 +7722,18 @@ const deserializeAws_restJson1ListGeofenceResponseEntryList = (
|
|
|
7687
7722
|
|
|
7688
7723
|
const deserializeAws_restJson1ListMapsResponseEntry = (output: any, context: __SerdeContext): ListMapsResponseEntry => {
|
|
7689
7724
|
return {
|
|
7690
|
-
CreateTime:
|
|
7725
|
+
CreateTime:
|
|
7726
|
+
output.CreateTime !== undefined && output.CreateTime !== null
|
|
7727
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
|
|
7728
|
+
: undefined,
|
|
7691
7729
|
DataSource: __expectString(output.DataSource),
|
|
7692
7730
|
Description: __expectString(output.Description),
|
|
7693
7731
|
MapName: __expectString(output.MapName),
|
|
7694
7732
|
PricingPlan: __expectString(output.PricingPlan),
|
|
7695
|
-
UpdateTime:
|
|
7733
|
+
UpdateTime:
|
|
7734
|
+
output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
7735
|
+
? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
|
|
7736
|
+
: undefined,
|
|
7696
7737
|
} as any;
|
|
7697
7738
|
};
|
|
7698
7739
|
|
|
@@ -7715,12 +7756,18 @@ const deserializeAws_restJson1ListPlaceIndexesResponseEntry = (
|
|
|
7715
7756
|
context: __SerdeContext
|
|
7716
7757
|
): ListPlaceIndexesResponseEntry => {
|
|
7717
7758
|
return {
|
|
7718
|
-
CreateTime:
|
|
7759
|
+
CreateTime:
|
|
7760
|
+
output.CreateTime !== undefined && output.CreateTime !== null
|
|
7761
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
|
|
7762
|
+
: undefined,
|
|
7719
7763
|
DataSource: __expectString(output.DataSource),
|
|
7720
7764
|
Description: __expectString(output.Description),
|
|
7721
7765
|
IndexName: __expectString(output.IndexName),
|
|
7722
7766
|
PricingPlan: __expectString(output.PricingPlan),
|
|
7723
|
-
UpdateTime:
|
|
7767
|
+
UpdateTime:
|
|
7768
|
+
output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
7769
|
+
? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
|
|
7770
|
+
: undefined,
|
|
7724
7771
|
} as any;
|
|
7725
7772
|
};
|
|
7726
7773
|
|
|
@@ -7744,11 +7791,17 @@ const deserializeAws_restJson1ListRouteCalculatorsResponseEntry = (
|
|
|
7744
7791
|
): ListRouteCalculatorsResponseEntry => {
|
|
7745
7792
|
return {
|
|
7746
7793
|
CalculatorName: __expectString(output.CalculatorName),
|
|
7747
|
-
CreateTime:
|
|
7794
|
+
CreateTime:
|
|
7795
|
+
output.CreateTime !== undefined && output.CreateTime !== null
|
|
7796
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
|
|
7797
|
+
: undefined,
|
|
7748
7798
|
DataSource: __expectString(output.DataSource),
|
|
7749
7799
|
Description: __expectString(output.Description),
|
|
7750
7800
|
PricingPlan: __expectString(output.PricingPlan),
|
|
7751
|
-
UpdateTime:
|
|
7801
|
+
UpdateTime:
|
|
7802
|
+
output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
7803
|
+
? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
|
|
7804
|
+
: undefined,
|
|
7752
7805
|
} as any;
|
|
7753
7806
|
};
|
|
7754
7807
|
|
|
@@ -7771,12 +7824,18 @@ const deserializeAws_restJson1ListTrackersResponseEntry = (
|
|
|
7771
7824
|
context: __SerdeContext
|
|
7772
7825
|
): ListTrackersResponseEntry => {
|
|
7773
7826
|
return {
|
|
7774
|
-
CreateTime:
|
|
7827
|
+
CreateTime:
|
|
7828
|
+
output.CreateTime !== undefined && output.CreateTime !== null
|
|
7829
|
+
? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
|
|
7830
|
+
: undefined,
|
|
7775
7831
|
Description: __expectString(output.Description),
|
|
7776
7832
|
PricingPlan: __expectString(output.PricingPlan),
|
|
7777
7833
|
PricingPlanDataSource: __expectString(output.PricingPlanDataSource),
|
|
7778
7834
|
TrackerName: __expectString(output.TrackerName),
|
|
7779
|
-
UpdateTime:
|
|
7835
|
+
UpdateTime:
|
|
7836
|
+
output.UpdateTime !== undefined && output.UpdateTime !== null
|
|
7837
|
+
? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
|
|
7838
|
+
: undefined,
|
|
7780
7839
|
} as any;
|
|
7781
7840
|
};
|
|
7782
7841
|
|
|
@@ -7834,7 +7893,7 @@ const deserializeAws_restJson1Position = (output: any, context: __SerdeContext):
|
|
|
7834
7893
|
if (entry === null) {
|
|
7835
7894
|
return null as any;
|
|
7836
7895
|
}
|
|
7837
|
-
return
|
|
7896
|
+
return __limitedParseDouble(entry) as any;
|
|
7838
7897
|
});
|
|
7839
7898
|
};
|
|
7840
7899
|
|
|
@@ -7893,7 +7952,7 @@ const deserializeAws_restJson1SearchPlaceIndexForPositionSummary = (
|
|
|
7893
7952
|
): SearchPlaceIndexForPositionSummary => {
|
|
7894
7953
|
return {
|
|
7895
7954
|
DataSource: __expectString(output.DataSource),
|
|
7896
|
-
MaxResults:
|
|
7955
|
+
MaxResults: __expectInt32(output.MaxResults),
|
|
7897
7956
|
Position:
|
|
7898
7957
|
output.Position !== undefined && output.Position !== null
|
|
7899
7958
|
? deserializeAws_restJson1Position(output.Position, context)
|
|
@@ -7919,7 +7978,7 @@ const deserializeAws_restJson1SearchPlaceIndexForTextSummary = (
|
|
|
7919
7978
|
output.FilterCountries !== undefined && output.FilterCountries !== null
|
|
7920
7979
|
? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
|
|
7921
7980
|
: undefined,
|
|
7922
|
-
MaxResults:
|
|
7981
|
+
MaxResults: __expectInt32(output.MaxResults),
|
|
7923
7982
|
ResultBBox:
|
|
7924
7983
|
output.ResultBBox !== undefined && output.ResultBBox !== null
|
|
7925
7984
|
? deserializeAws_restJson1BoundingBox(output.ResultBBox, context)
|
|
@@ -7930,13 +7989,13 @@ const deserializeAws_restJson1SearchPlaceIndexForTextSummary = (
|
|
|
7930
7989
|
|
|
7931
7990
|
const deserializeAws_restJson1Step = (output: any, context: __SerdeContext): Step => {
|
|
7932
7991
|
return {
|
|
7933
|
-
Distance:
|
|
7934
|
-
DurationSeconds:
|
|
7992
|
+
Distance: __limitedParseDouble(output.Distance),
|
|
7993
|
+
DurationSeconds: __limitedParseDouble(output.DurationSeconds),
|
|
7935
7994
|
EndPosition:
|
|
7936
7995
|
output.EndPosition !== undefined && output.EndPosition !== null
|
|
7937
7996
|
? deserializeAws_restJson1Position(output.EndPosition, context)
|
|
7938
7997
|
: undefined,
|
|
7939
|
-
GeometryOffset:
|
|
7998
|
+
GeometryOffset: __expectInt32(output.GeometryOffset),
|
|
7940
7999
|
StartPosition:
|
|
7941
8000
|
output.StartPosition !== undefined && output.StartPosition !== null
|
|
7942
8001
|
? deserializeAws_restJson1Position(output.StartPosition, context)
|