@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.
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
3
- import { expectInt as __expectInt, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseFloat as __limitedParseFloat, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
3
+ import { expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseDouble as __limitedParseDouble, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, } from "@aws-sdk/smithy-client";
4
4
  export var serializeAws_restJson1AssociateTrackerConsumerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
5
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
6
6
  return __generator(this, function (_c) {
@@ -2289,9 +2289,9 @@ var deserializeAws_restJson1AssociateTrackerConsumerCommandError = function (out
2289
2289
  });
2290
2290
  }); };
2291
2291
  export var deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2292
- var contents, data;
2293
- return __generator(this, function (_a) {
2294
- switch (_a.label) {
2292
+ var contents, data, _a, _b;
2293
+ return __generator(this, function (_c) {
2294
+ switch (_c.label) {
2295
2295
  case 0:
2296
2296
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2297
2297
  return [2 /*return*/, deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommandError(output, context)];
@@ -2300,9 +2300,11 @@ export var deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = fun
2300
2300
  $metadata: deserializeMetadata(output),
2301
2301
  Errors: undefined,
2302
2302
  };
2303
+ _a = __expectNonNull;
2304
+ _b = __expectObject;
2303
2305
  return [4 /*yield*/, parseBody(output.body, context)];
2304
2306
  case 1:
2305
- data = _a.sent();
2307
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2306
2308
  if (data.Errors !== undefined && data.Errors !== null) {
2307
2309
  contents.Errors = deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList(data.Errors, context);
2308
2310
  }
@@ -2381,9 +2383,9 @@ var deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommandError = funct
2381
2383
  });
2382
2384
  }); };
2383
2385
  export var deserializeAws_restJson1BatchDeleteGeofenceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2384
- var contents, data;
2385
- return __generator(this, function (_a) {
2386
- switch (_a.label) {
2386
+ var contents, data, _a, _b;
2387
+ return __generator(this, function (_c) {
2388
+ switch (_c.label) {
2387
2389
  case 0:
2388
2390
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2389
2391
  return [2 /*return*/, deserializeAws_restJson1BatchDeleteGeofenceCommandError(output, context)];
@@ -2392,9 +2394,11 @@ export var deserializeAws_restJson1BatchDeleteGeofenceCommand = function (output
2392
2394
  $metadata: deserializeMetadata(output),
2393
2395
  Errors: undefined,
2394
2396
  };
2397
+ _a = __expectNonNull;
2398
+ _b = __expectObject;
2395
2399
  return [4 /*yield*/, parseBody(output.body, context)];
2396
2400
  case 1:
2397
- data = _a.sent();
2401
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2398
2402
  if (data.Errors !== undefined && data.Errors !== null) {
2399
2403
  contents.Errors = deserializeAws_restJson1BatchDeleteGeofenceErrorList(data.Errors, context);
2400
2404
  }
@@ -2473,9 +2477,9 @@ var deserializeAws_restJson1BatchDeleteGeofenceCommandError = function (output,
2473
2477
  });
2474
2478
  }); };
2475
2479
  export var deserializeAws_restJson1BatchEvaluateGeofencesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2476
- var contents, data;
2477
- return __generator(this, function (_a) {
2478
- switch (_a.label) {
2480
+ var contents, data, _a, _b;
2481
+ return __generator(this, function (_c) {
2482
+ switch (_c.label) {
2479
2483
  case 0:
2480
2484
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2481
2485
  return [2 /*return*/, deserializeAws_restJson1BatchEvaluateGeofencesCommandError(output, context)];
@@ -2484,9 +2488,11 @@ export var deserializeAws_restJson1BatchEvaluateGeofencesCommand = function (out
2484
2488
  $metadata: deserializeMetadata(output),
2485
2489
  Errors: undefined,
2486
2490
  };
2491
+ _a = __expectNonNull;
2492
+ _b = __expectObject;
2487
2493
  return [4 /*yield*/, parseBody(output.body, context)];
2488
2494
  case 1:
2489
- data = _a.sent();
2495
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2490
2496
  if (data.Errors !== undefined && data.Errors !== null) {
2491
2497
  contents.Errors = deserializeAws_restJson1BatchEvaluateGeofencesErrorList(data.Errors, context);
2492
2498
  }
@@ -2565,9 +2571,9 @@ var deserializeAws_restJson1BatchEvaluateGeofencesCommandError = function (outpu
2565
2571
  });
2566
2572
  }); };
2567
2573
  export var deserializeAws_restJson1BatchGetDevicePositionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2568
- var contents, data;
2569
- return __generator(this, function (_a) {
2570
- switch (_a.label) {
2574
+ var contents, data, _a, _b;
2575
+ return __generator(this, function (_c) {
2576
+ switch (_c.label) {
2571
2577
  case 0:
2572
2578
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2573
2579
  return [2 /*return*/, deserializeAws_restJson1BatchGetDevicePositionCommandError(output, context)];
@@ -2577,9 +2583,11 @@ export var deserializeAws_restJson1BatchGetDevicePositionCommand = function (out
2577
2583
  DevicePositions: undefined,
2578
2584
  Errors: undefined,
2579
2585
  };
2586
+ _a = __expectNonNull;
2587
+ _b = __expectObject;
2580
2588
  return [4 /*yield*/, parseBody(output.body, context)];
2581
2589
  case 1:
2582
- data = _a.sent();
2590
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2583
2591
  if (data.DevicePositions !== undefined && data.DevicePositions !== null) {
2584
2592
  contents.DevicePositions = deserializeAws_restJson1DevicePositionList(data.DevicePositions, context);
2585
2593
  }
@@ -2661,9 +2669,9 @@ var deserializeAws_restJson1BatchGetDevicePositionCommandError = function (outpu
2661
2669
  });
2662
2670
  }); };
2663
2671
  export var deserializeAws_restJson1BatchPutGeofenceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2664
- var contents, data;
2665
- return __generator(this, function (_a) {
2666
- switch (_a.label) {
2672
+ var contents, data, _a, _b;
2673
+ return __generator(this, function (_c) {
2674
+ switch (_c.label) {
2667
2675
  case 0:
2668
2676
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2669
2677
  return [2 /*return*/, deserializeAws_restJson1BatchPutGeofenceCommandError(output, context)];
@@ -2673,9 +2681,11 @@ export var deserializeAws_restJson1BatchPutGeofenceCommand = function (output, c
2673
2681
  Errors: undefined,
2674
2682
  Successes: undefined,
2675
2683
  };
2684
+ _a = __expectNonNull;
2685
+ _b = __expectObject;
2676
2686
  return [4 /*yield*/, parseBody(output.body, context)];
2677
2687
  case 1:
2678
- data = _a.sent();
2688
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2679
2689
  if (data.Errors !== undefined && data.Errors !== null) {
2680
2690
  contents.Errors = deserializeAws_restJson1BatchPutGeofenceErrorList(data.Errors, context);
2681
2691
  }
@@ -2757,9 +2767,9 @@ var deserializeAws_restJson1BatchPutGeofenceCommandError = function (output, con
2757
2767
  });
2758
2768
  }); };
2759
2769
  export var deserializeAws_restJson1BatchUpdateDevicePositionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2760
- var contents, data;
2761
- return __generator(this, function (_a) {
2762
- switch (_a.label) {
2770
+ var contents, data, _a, _b;
2771
+ return __generator(this, function (_c) {
2772
+ switch (_c.label) {
2763
2773
  case 0:
2764
2774
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2765
2775
  return [2 /*return*/, deserializeAws_restJson1BatchUpdateDevicePositionCommandError(output, context)];
@@ -2768,9 +2778,11 @@ export var deserializeAws_restJson1BatchUpdateDevicePositionCommand = function (
2768
2778
  $metadata: deserializeMetadata(output),
2769
2779
  Errors: undefined,
2770
2780
  };
2781
+ _a = __expectNonNull;
2782
+ _b = __expectObject;
2771
2783
  return [4 /*yield*/, parseBody(output.body, context)];
2772
2784
  case 1:
2773
- data = _a.sent();
2785
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2774
2786
  if (data.Errors !== undefined && data.Errors !== null) {
2775
2787
  contents.Errors = deserializeAws_restJson1BatchUpdateDevicePositionErrorList(data.Errors, context);
2776
2788
  }
@@ -2849,9 +2861,9 @@ var deserializeAws_restJson1BatchUpdateDevicePositionCommandError = function (ou
2849
2861
  });
2850
2862
  }); };
2851
2863
  export var deserializeAws_restJson1CalculateRouteCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2852
- var contents, data;
2853
- return __generator(this, function (_a) {
2854
- switch (_a.label) {
2864
+ var contents, data, _a, _b;
2865
+ return __generator(this, function (_c) {
2866
+ switch (_c.label) {
2855
2867
  case 0:
2856
2868
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2857
2869
  return [2 /*return*/, deserializeAws_restJson1CalculateRouteCommandError(output, context)];
@@ -2861,9 +2873,11 @@ export var deserializeAws_restJson1CalculateRouteCommand = function (output, con
2861
2873
  Legs: undefined,
2862
2874
  Summary: undefined,
2863
2875
  };
2876
+ _a = __expectNonNull;
2877
+ _b = __expectObject;
2864
2878
  return [4 /*yield*/, parseBody(output.body, context)];
2865
2879
  case 1:
2866
- data = _a.sent();
2880
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2867
2881
  if (data.Legs !== undefined && data.Legs !== null) {
2868
2882
  contents.Legs = deserializeAws_restJson1LegList(data.Legs, context);
2869
2883
  }
@@ -2945,9 +2959,9 @@ var deserializeAws_restJson1CalculateRouteCommandError = function (output, conte
2945
2959
  });
2946
2960
  }); };
2947
2961
  export var deserializeAws_restJson1CreateGeofenceCollectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
2948
- var contents, data;
2949
- return __generator(this, function (_a) {
2950
- switch (_a.label) {
2962
+ var contents, data, _a, _b;
2963
+ return __generator(this, function (_c) {
2964
+ switch (_c.label) {
2951
2965
  case 0:
2952
2966
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2953
2967
  return [2 /*return*/, deserializeAws_restJson1CreateGeofenceCollectionCommandError(output, context)];
@@ -2958,9 +2972,11 @@ export var deserializeAws_restJson1CreateGeofenceCollectionCommand = function (o
2958
2972
  CollectionName: undefined,
2959
2973
  CreateTime: undefined,
2960
2974
  };
2975
+ _a = __expectNonNull;
2976
+ _b = __expectObject;
2961
2977
  return [4 /*yield*/, parseBody(output.body, context)];
2962
2978
  case 1:
2963
- data = _a.sent();
2979
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
2964
2980
  if (data.CollectionArn !== undefined && data.CollectionArn !== null) {
2965
2981
  contents.CollectionArn = __expectString(data.CollectionArn);
2966
2982
  }
@@ -2968,7 +2984,7 @@ export var deserializeAws_restJson1CreateGeofenceCollectionCommand = function (o
2968
2984
  contents.CollectionName = __expectString(data.CollectionName);
2969
2985
  }
2970
2986
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
2971
- contents.CreateTime = new Date(data.CreateTime);
2987
+ contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
2972
2988
  }
2973
2989
  return [2 /*return*/, Promise.resolve(contents)];
2974
2990
  }
@@ -3045,9 +3061,9 @@ var deserializeAws_restJson1CreateGeofenceCollectionCommandError = function (out
3045
3061
  });
3046
3062
  }); };
3047
3063
  export var deserializeAws_restJson1CreateMapCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3048
- var contents, data;
3049
- return __generator(this, function (_a) {
3050
- switch (_a.label) {
3064
+ var contents, data, _a, _b;
3065
+ return __generator(this, function (_c) {
3066
+ switch (_c.label) {
3051
3067
  case 0:
3052
3068
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3053
3069
  return [2 /*return*/, deserializeAws_restJson1CreateMapCommandError(output, context)];
@@ -3058,11 +3074,13 @@ export var deserializeAws_restJson1CreateMapCommand = function (output, context)
3058
3074
  MapArn: undefined,
3059
3075
  MapName: undefined,
3060
3076
  };
3077
+ _a = __expectNonNull;
3078
+ _b = __expectObject;
3061
3079
  return [4 /*yield*/, parseBody(output.body, context)];
3062
3080
  case 1:
3063
- data = _a.sent();
3081
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3064
3082
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
3065
- contents.CreateTime = new Date(data.CreateTime);
3083
+ contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
3066
3084
  }
3067
3085
  if (data.MapArn !== undefined && data.MapArn !== null) {
3068
3086
  contents.MapArn = __expectString(data.MapArn);
@@ -3145,9 +3163,9 @@ var deserializeAws_restJson1CreateMapCommandError = function (output, context) {
3145
3163
  });
3146
3164
  }); };
3147
3165
  export var deserializeAws_restJson1CreatePlaceIndexCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3148
- var contents, data;
3149
- return __generator(this, function (_a) {
3150
- switch (_a.label) {
3166
+ var contents, data, _a, _b;
3167
+ return __generator(this, function (_c) {
3168
+ switch (_c.label) {
3151
3169
  case 0:
3152
3170
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3153
3171
  return [2 /*return*/, deserializeAws_restJson1CreatePlaceIndexCommandError(output, context)];
@@ -3158,11 +3176,13 @@ export var deserializeAws_restJson1CreatePlaceIndexCommand = function (output, c
3158
3176
  IndexArn: undefined,
3159
3177
  IndexName: undefined,
3160
3178
  };
3179
+ _a = __expectNonNull;
3180
+ _b = __expectObject;
3161
3181
  return [4 /*yield*/, parseBody(output.body, context)];
3162
3182
  case 1:
3163
- data = _a.sent();
3183
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3164
3184
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
3165
- contents.CreateTime = new Date(data.CreateTime);
3185
+ contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
3166
3186
  }
3167
3187
  if (data.IndexArn !== undefined && data.IndexArn !== null) {
3168
3188
  contents.IndexArn = __expectString(data.IndexArn);
@@ -3245,9 +3265,9 @@ var deserializeAws_restJson1CreatePlaceIndexCommandError = function (output, con
3245
3265
  });
3246
3266
  }); };
3247
3267
  export var deserializeAws_restJson1CreateRouteCalculatorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3248
- var contents, data;
3249
- return __generator(this, function (_a) {
3250
- switch (_a.label) {
3268
+ var contents, data, _a, _b;
3269
+ return __generator(this, function (_c) {
3270
+ switch (_c.label) {
3251
3271
  case 0:
3252
3272
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3253
3273
  return [2 /*return*/, deserializeAws_restJson1CreateRouteCalculatorCommandError(output, context)];
@@ -3258,9 +3278,11 @@ export var deserializeAws_restJson1CreateRouteCalculatorCommand = function (outp
3258
3278
  CalculatorName: undefined,
3259
3279
  CreateTime: undefined,
3260
3280
  };
3281
+ _a = __expectNonNull;
3282
+ _b = __expectObject;
3261
3283
  return [4 /*yield*/, parseBody(output.body, context)];
3262
3284
  case 1:
3263
- data = _a.sent();
3285
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3264
3286
  if (data.CalculatorArn !== undefined && data.CalculatorArn !== null) {
3265
3287
  contents.CalculatorArn = __expectString(data.CalculatorArn);
3266
3288
  }
@@ -3268,7 +3290,7 @@ export var deserializeAws_restJson1CreateRouteCalculatorCommand = function (outp
3268
3290
  contents.CalculatorName = __expectString(data.CalculatorName);
3269
3291
  }
3270
3292
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
3271
- contents.CreateTime = new Date(data.CreateTime);
3293
+ contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
3272
3294
  }
3273
3295
  return [2 /*return*/, Promise.resolve(contents)];
3274
3296
  }
@@ -3345,9 +3367,9 @@ var deserializeAws_restJson1CreateRouteCalculatorCommandError = function (output
3345
3367
  });
3346
3368
  }); };
3347
3369
  export var deserializeAws_restJson1CreateTrackerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3348
- var contents, data;
3349
- return __generator(this, function (_a) {
3350
- switch (_a.label) {
3370
+ var contents, data, _a, _b;
3371
+ return __generator(this, function (_c) {
3372
+ switch (_c.label) {
3351
3373
  case 0:
3352
3374
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3353
3375
  return [2 /*return*/, deserializeAws_restJson1CreateTrackerCommandError(output, context)];
@@ -3358,11 +3380,13 @@ export var deserializeAws_restJson1CreateTrackerCommand = function (output, cont
3358
3380
  TrackerArn: undefined,
3359
3381
  TrackerName: undefined,
3360
3382
  };
3383
+ _a = __expectNonNull;
3384
+ _b = __expectObject;
3361
3385
  return [4 /*yield*/, parseBody(output.body, context)];
3362
3386
  case 1:
3363
- data = _a.sent();
3387
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3364
3388
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
3365
- contents.CreateTime = new Date(data.CreateTime);
3389
+ contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
3366
3390
  }
3367
3391
  if (data.TrackerArn !== undefined && data.TrackerArn !== null) {
3368
3392
  contents.TrackerArn = __expectString(data.TrackerArn);
@@ -3885,9 +3909,9 @@ var deserializeAws_restJson1DeleteTrackerCommandError = function (output, contex
3885
3909
  });
3886
3910
  }); };
3887
3911
  export var deserializeAws_restJson1DescribeGeofenceCollectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3888
- var contents, data;
3889
- return __generator(this, function (_a) {
3890
- switch (_a.label) {
3912
+ var contents, data, _a, _b;
3913
+ return __generator(this, function (_c) {
3914
+ switch (_c.label) {
3891
3915
  case 0:
3892
3916
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3893
3917
  return [2 /*return*/, deserializeAws_restJson1DescribeGeofenceCollectionCommandError(output, context)];
@@ -3904,9 +3928,11 @@ export var deserializeAws_restJson1DescribeGeofenceCollectionCommand = function
3904
3928
  Tags: undefined,
3905
3929
  UpdateTime: undefined,
3906
3930
  };
3931
+ _a = __expectNonNull;
3932
+ _b = __expectObject;
3907
3933
  return [4 /*yield*/, parseBody(output.body, context)];
3908
3934
  case 1:
3909
- data = _a.sent();
3935
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
3910
3936
  if (data.CollectionArn !== undefined && data.CollectionArn !== null) {
3911
3937
  contents.CollectionArn = __expectString(data.CollectionArn);
3912
3938
  }
@@ -3914,7 +3940,7 @@ export var deserializeAws_restJson1DescribeGeofenceCollectionCommand = function
3914
3940
  contents.CollectionName = __expectString(data.CollectionName);
3915
3941
  }
3916
3942
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
3917
- contents.CreateTime = new Date(data.CreateTime);
3943
+ contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
3918
3944
  }
3919
3945
  if (data.Description !== undefined && data.Description !== null) {
3920
3946
  contents.Description = __expectString(data.Description);
@@ -3932,7 +3958,7 @@ export var deserializeAws_restJson1DescribeGeofenceCollectionCommand = function
3932
3958
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
3933
3959
  }
3934
3960
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
3935
- contents.UpdateTime = new Date(data.UpdateTime);
3961
+ contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
3936
3962
  }
3937
3963
  return [2 /*return*/, Promise.resolve(contents)];
3938
3964
  }
@@ -4009,9 +4035,9 @@ var deserializeAws_restJson1DescribeGeofenceCollectionCommandError = function (o
4009
4035
  });
4010
4036
  }); };
4011
4037
  export var deserializeAws_restJson1DescribeMapCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4012
- var contents, data;
4013
- return __generator(this, function (_a) {
4014
- switch (_a.label) {
4038
+ var contents, data, _a, _b;
4039
+ return __generator(this, function (_c) {
4040
+ switch (_c.label) {
4015
4041
  case 0:
4016
4042
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4017
4043
  return [2 /*return*/, deserializeAws_restJson1DescribeMapCommandError(output, context)];
@@ -4028,14 +4054,16 @@ export var deserializeAws_restJson1DescribeMapCommand = function (output, contex
4028
4054
  Tags: undefined,
4029
4055
  UpdateTime: undefined,
4030
4056
  };
4057
+ _a = __expectNonNull;
4058
+ _b = __expectObject;
4031
4059
  return [4 /*yield*/, parseBody(output.body, context)];
4032
4060
  case 1:
4033
- data = _a.sent();
4061
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4034
4062
  if (data.Configuration !== undefined && data.Configuration !== null) {
4035
4063
  contents.Configuration = deserializeAws_restJson1MapConfiguration(data.Configuration, context);
4036
4064
  }
4037
4065
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
4038
- contents.CreateTime = new Date(data.CreateTime);
4066
+ contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
4039
4067
  }
4040
4068
  if (data.DataSource !== undefined && data.DataSource !== null) {
4041
4069
  contents.DataSource = __expectString(data.DataSource);
@@ -4056,7 +4084,7 @@ export var deserializeAws_restJson1DescribeMapCommand = function (output, contex
4056
4084
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
4057
4085
  }
4058
4086
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
4059
- contents.UpdateTime = new Date(data.UpdateTime);
4087
+ contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
4060
4088
  }
4061
4089
  return [2 /*return*/, Promise.resolve(contents)];
4062
4090
  }
@@ -4133,9 +4161,9 @@ var deserializeAws_restJson1DescribeMapCommandError = function (output, context)
4133
4161
  });
4134
4162
  }); };
4135
4163
  export var deserializeAws_restJson1DescribePlaceIndexCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4136
- var contents, data;
4137
- return __generator(this, function (_a) {
4138
- switch (_a.label) {
4164
+ var contents, data, _a, _b;
4165
+ return __generator(this, function (_c) {
4166
+ switch (_c.label) {
4139
4167
  case 0:
4140
4168
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4141
4169
  return [2 /*return*/, deserializeAws_restJson1DescribePlaceIndexCommandError(output, context)];
@@ -4152,11 +4180,13 @@ export var deserializeAws_restJson1DescribePlaceIndexCommand = function (output,
4152
4180
  Tags: undefined,
4153
4181
  UpdateTime: undefined,
4154
4182
  };
4183
+ _a = __expectNonNull;
4184
+ _b = __expectObject;
4155
4185
  return [4 /*yield*/, parseBody(output.body, context)];
4156
4186
  case 1:
4157
- data = _a.sent();
4187
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4158
4188
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
4159
- contents.CreateTime = new Date(data.CreateTime);
4189
+ contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
4160
4190
  }
4161
4191
  if (data.DataSource !== undefined && data.DataSource !== null) {
4162
4192
  contents.DataSource = __expectString(data.DataSource);
@@ -4180,7 +4210,7 @@ export var deserializeAws_restJson1DescribePlaceIndexCommand = function (output,
4180
4210
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
4181
4211
  }
4182
4212
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
4183
- contents.UpdateTime = new Date(data.UpdateTime);
4213
+ contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
4184
4214
  }
4185
4215
  return [2 /*return*/, Promise.resolve(contents)];
4186
4216
  }
@@ -4257,9 +4287,9 @@ var deserializeAws_restJson1DescribePlaceIndexCommandError = function (output, c
4257
4287
  });
4258
4288
  }); };
4259
4289
  export var deserializeAws_restJson1DescribeRouteCalculatorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4260
- var contents, data;
4261
- return __generator(this, function (_a) {
4262
- switch (_a.label) {
4290
+ var contents, data, _a, _b;
4291
+ return __generator(this, function (_c) {
4292
+ switch (_c.label) {
4263
4293
  case 0:
4264
4294
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4265
4295
  return [2 /*return*/, deserializeAws_restJson1DescribeRouteCalculatorCommandError(output, context)];
@@ -4275,9 +4305,11 @@ export var deserializeAws_restJson1DescribeRouteCalculatorCommand = function (ou
4275
4305
  Tags: undefined,
4276
4306
  UpdateTime: undefined,
4277
4307
  };
4308
+ _a = __expectNonNull;
4309
+ _b = __expectObject;
4278
4310
  return [4 /*yield*/, parseBody(output.body, context)];
4279
4311
  case 1:
4280
- data = _a.sent();
4312
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4281
4313
  if (data.CalculatorArn !== undefined && data.CalculatorArn !== null) {
4282
4314
  contents.CalculatorArn = __expectString(data.CalculatorArn);
4283
4315
  }
@@ -4285,7 +4317,7 @@ export var deserializeAws_restJson1DescribeRouteCalculatorCommand = function (ou
4285
4317
  contents.CalculatorName = __expectString(data.CalculatorName);
4286
4318
  }
4287
4319
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
4288
- contents.CreateTime = new Date(data.CreateTime);
4320
+ contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
4289
4321
  }
4290
4322
  if (data.DataSource !== undefined && data.DataSource !== null) {
4291
4323
  contents.DataSource = __expectString(data.DataSource);
@@ -4300,7 +4332,7 @@ export var deserializeAws_restJson1DescribeRouteCalculatorCommand = function (ou
4300
4332
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
4301
4333
  }
4302
4334
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
4303
- contents.UpdateTime = new Date(data.UpdateTime);
4335
+ contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
4304
4336
  }
4305
4337
  return [2 /*return*/, Promise.resolve(contents)];
4306
4338
  }
@@ -4377,9 +4409,9 @@ var deserializeAws_restJson1DescribeRouteCalculatorCommandError = function (outp
4377
4409
  });
4378
4410
  }); };
4379
4411
  export var deserializeAws_restJson1DescribeTrackerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4380
- var contents, data;
4381
- return __generator(this, function (_a) {
4382
- switch (_a.label) {
4412
+ var contents, data, _a, _b;
4413
+ return __generator(this, function (_c) {
4414
+ switch (_c.label) {
4383
4415
  case 0:
4384
4416
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4385
4417
  return [2 /*return*/, deserializeAws_restJson1DescribeTrackerCommandError(output, context)];
@@ -4396,11 +4428,13 @@ export var deserializeAws_restJson1DescribeTrackerCommand = function (output, co
4396
4428
  TrackerName: undefined,
4397
4429
  UpdateTime: undefined,
4398
4430
  };
4431
+ _a = __expectNonNull;
4432
+ _b = __expectObject;
4399
4433
  return [4 /*yield*/, parseBody(output.body, context)];
4400
4434
  case 1:
4401
- data = _a.sent();
4435
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4402
4436
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
4403
- contents.CreateTime = new Date(data.CreateTime);
4437
+ contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
4404
4438
  }
4405
4439
  if (data.Description !== undefined && data.Description !== null) {
4406
4440
  contents.Description = __expectString(data.Description);
@@ -4424,7 +4458,7 @@ export var deserializeAws_restJson1DescribeTrackerCommand = function (output, co
4424
4458
  contents.TrackerName = __expectString(data.TrackerName);
4425
4459
  }
4426
4460
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
4427
- contents.UpdateTime = new Date(data.UpdateTime);
4461
+ contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
4428
4462
  }
4429
4463
  return [2 /*return*/, Promise.resolve(contents)];
4430
4464
  }
@@ -4589,9 +4623,9 @@ var deserializeAws_restJson1DisassociateTrackerConsumerCommandError = function (
4589
4623
  });
4590
4624
  }); };
4591
4625
  export var deserializeAws_restJson1GetDevicePositionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4592
- var contents, data;
4593
- return __generator(this, function (_a) {
4594
- switch (_a.label) {
4626
+ var contents, data, _a, _b;
4627
+ return __generator(this, function (_c) {
4628
+ switch (_c.label) {
4595
4629
  case 0:
4596
4630
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4597
4631
  return [2 /*return*/, deserializeAws_restJson1GetDevicePositionCommandError(output, context)];
@@ -4603,9 +4637,11 @@ export var deserializeAws_restJson1GetDevicePositionCommand = function (output,
4603
4637
  ReceivedTime: undefined,
4604
4638
  SampleTime: undefined,
4605
4639
  };
4640
+ _a = __expectNonNull;
4641
+ _b = __expectObject;
4606
4642
  return [4 /*yield*/, parseBody(output.body, context)];
4607
4643
  case 1:
4608
- data = _a.sent();
4644
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4609
4645
  if (data.DeviceId !== undefined && data.DeviceId !== null) {
4610
4646
  contents.DeviceId = __expectString(data.DeviceId);
4611
4647
  }
@@ -4613,10 +4649,10 @@ export var deserializeAws_restJson1GetDevicePositionCommand = function (output,
4613
4649
  contents.Position = deserializeAws_restJson1Position(data.Position, context);
4614
4650
  }
4615
4651
  if (data.ReceivedTime !== undefined && data.ReceivedTime !== null) {
4616
- contents.ReceivedTime = new Date(data.ReceivedTime);
4652
+ contents.ReceivedTime = __expectNonNull(__parseRfc3339DateTime(data.ReceivedTime));
4617
4653
  }
4618
4654
  if (data.SampleTime !== undefined && data.SampleTime !== null) {
4619
- contents.SampleTime = new Date(data.SampleTime);
4655
+ contents.SampleTime = __expectNonNull(__parseRfc3339DateTime(data.SampleTime));
4620
4656
  }
4621
4657
  return [2 /*return*/, Promise.resolve(contents)];
4622
4658
  }
@@ -4693,9 +4729,9 @@ var deserializeAws_restJson1GetDevicePositionCommandError = function (output, co
4693
4729
  });
4694
4730
  }); };
4695
4731
  export var deserializeAws_restJson1GetDevicePositionHistoryCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4696
- var contents, data;
4697
- return __generator(this, function (_a) {
4698
- switch (_a.label) {
4732
+ var contents, data, _a, _b;
4733
+ return __generator(this, function (_c) {
4734
+ switch (_c.label) {
4699
4735
  case 0:
4700
4736
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4701
4737
  return [2 /*return*/, deserializeAws_restJson1GetDevicePositionHistoryCommandError(output, context)];
@@ -4705,9 +4741,11 @@ export var deserializeAws_restJson1GetDevicePositionHistoryCommand = function (o
4705
4741
  DevicePositions: undefined,
4706
4742
  NextToken: undefined,
4707
4743
  };
4744
+ _a = __expectNonNull;
4745
+ _b = __expectObject;
4708
4746
  return [4 /*yield*/, parseBody(output.body, context)];
4709
4747
  case 1:
4710
- data = _a.sent();
4748
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4711
4749
  if (data.DevicePositions !== undefined && data.DevicePositions !== null) {
4712
4750
  contents.DevicePositions = deserializeAws_restJson1DevicePositionList(data.DevicePositions, context);
4713
4751
  }
@@ -4789,9 +4827,9 @@ var deserializeAws_restJson1GetDevicePositionHistoryCommandError = function (out
4789
4827
  });
4790
4828
  }); };
4791
4829
  export var deserializeAws_restJson1GetGeofenceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
4792
- var contents, data;
4793
- return __generator(this, function (_a) {
4794
- switch (_a.label) {
4830
+ var contents, data, _a, _b;
4831
+ return __generator(this, function (_c) {
4832
+ switch (_c.label) {
4795
4833
  case 0:
4796
4834
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4797
4835
  return [2 /*return*/, deserializeAws_restJson1GetGeofenceCommandError(output, context)];
@@ -4804,11 +4842,13 @@ export var deserializeAws_restJson1GetGeofenceCommand = function (output, contex
4804
4842
  Status: undefined,
4805
4843
  UpdateTime: undefined,
4806
4844
  };
4845
+ _a = __expectNonNull;
4846
+ _b = __expectObject;
4807
4847
  return [4 /*yield*/, parseBody(output.body, context)];
4808
4848
  case 1:
4809
- data = _a.sent();
4849
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
4810
4850
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
4811
- contents.CreateTime = new Date(data.CreateTime);
4851
+ contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
4812
4852
  }
4813
4853
  if (data.GeofenceId !== undefined && data.GeofenceId !== null) {
4814
4854
  contents.GeofenceId = __expectString(data.GeofenceId);
@@ -4820,7 +4860,7 @@ export var deserializeAws_restJson1GetGeofenceCommand = function (output, contex
4820
4860
  contents.Status = __expectString(data.Status);
4821
4861
  }
4822
4862
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
4823
- contents.UpdateTime = new Date(data.UpdateTime);
4863
+ contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
4824
4864
  }
4825
4865
  return [2 /*return*/, Promise.resolve(contents)];
4826
4866
  }
@@ -5273,9 +5313,9 @@ var deserializeAws_restJson1GetMapTileCommandError = function (output, context)
5273
5313
  });
5274
5314
  }); };
5275
5315
  export var deserializeAws_restJson1ListDevicePositionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5276
- var contents, data;
5277
- return __generator(this, function (_a) {
5278
- switch (_a.label) {
5316
+ var contents, data, _a, _b;
5317
+ return __generator(this, function (_c) {
5318
+ switch (_c.label) {
5279
5319
  case 0:
5280
5320
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5281
5321
  return [2 /*return*/, deserializeAws_restJson1ListDevicePositionsCommandError(output, context)];
@@ -5285,9 +5325,11 @@ export var deserializeAws_restJson1ListDevicePositionsCommand = function (output
5285
5325
  Entries: undefined,
5286
5326
  NextToken: undefined,
5287
5327
  };
5328
+ _a = __expectNonNull;
5329
+ _b = __expectObject;
5288
5330
  return [4 /*yield*/, parseBody(output.body, context)];
5289
5331
  case 1:
5290
- data = _a.sent();
5332
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5291
5333
  if (data.Entries !== undefined && data.Entries !== null) {
5292
5334
  contents.Entries = deserializeAws_restJson1ListDevicePositionsResponseEntryList(data.Entries, context);
5293
5335
  }
@@ -5361,9 +5403,9 @@ var deserializeAws_restJson1ListDevicePositionsCommandError = function (output,
5361
5403
  });
5362
5404
  }); };
5363
5405
  export var deserializeAws_restJson1ListGeofenceCollectionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5364
- var contents, data;
5365
- return __generator(this, function (_a) {
5366
- switch (_a.label) {
5406
+ var contents, data, _a, _b;
5407
+ return __generator(this, function (_c) {
5408
+ switch (_c.label) {
5367
5409
  case 0:
5368
5410
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5369
5411
  return [2 /*return*/, deserializeAws_restJson1ListGeofenceCollectionsCommandError(output, context)];
@@ -5373,9 +5415,11 @@ export var deserializeAws_restJson1ListGeofenceCollectionsCommand = function (ou
5373
5415
  Entries: undefined,
5374
5416
  NextToken: undefined,
5375
5417
  };
5418
+ _a = __expectNonNull;
5419
+ _b = __expectObject;
5376
5420
  return [4 /*yield*/, parseBody(output.body, context)];
5377
5421
  case 1:
5378
- data = _a.sent();
5422
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5379
5423
  if (data.Entries !== undefined && data.Entries !== null) {
5380
5424
  contents.Entries = deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList(data.Entries, context);
5381
5425
  }
@@ -5449,9 +5493,9 @@ var deserializeAws_restJson1ListGeofenceCollectionsCommandError = function (outp
5449
5493
  });
5450
5494
  }); };
5451
5495
  export var deserializeAws_restJson1ListGeofencesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5452
- var contents, data;
5453
- return __generator(this, function (_a) {
5454
- switch (_a.label) {
5496
+ var contents, data, _a, _b;
5497
+ return __generator(this, function (_c) {
5498
+ switch (_c.label) {
5455
5499
  case 0:
5456
5500
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5457
5501
  return [2 /*return*/, deserializeAws_restJson1ListGeofencesCommandError(output, context)];
@@ -5461,9 +5505,11 @@ export var deserializeAws_restJson1ListGeofencesCommand = function (output, cont
5461
5505
  Entries: undefined,
5462
5506
  NextToken: undefined,
5463
5507
  };
5508
+ _a = __expectNonNull;
5509
+ _b = __expectObject;
5464
5510
  return [4 /*yield*/, parseBody(output.body, context)];
5465
5511
  case 1:
5466
- data = _a.sent();
5512
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5467
5513
  if (data.Entries !== undefined && data.Entries !== null) {
5468
5514
  contents.Entries = deserializeAws_restJson1ListGeofenceResponseEntryList(data.Entries, context);
5469
5515
  }
@@ -5545,9 +5591,9 @@ var deserializeAws_restJson1ListGeofencesCommandError = function (output, contex
5545
5591
  });
5546
5592
  }); };
5547
5593
  export var deserializeAws_restJson1ListMapsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5548
- var contents, data;
5549
- return __generator(this, function (_a) {
5550
- switch (_a.label) {
5594
+ var contents, data, _a, _b;
5595
+ return __generator(this, function (_c) {
5596
+ switch (_c.label) {
5551
5597
  case 0:
5552
5598
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5553
5599
  return [2 /*return*/, deserializeAws_restJson1ListMapsCommandError(output, context)];
@@ -5557,9 +5603,11 @@ export var deserializeAws_restJson1ListMapsCommand = function (output, context)
5557
5603
  Entries: undefined,
5558
5604
  NextToken: undefined,
5559
5605
  };
5606
+ _a = __expectNonNull;
5607
+ _b = __expectObject;
5560
5608
  return [4 /*yield*/, parseBody(output.body, context)];
5561
5609
  case 1:
5562
- data = _a.sent();
5610
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5563
5611
  if (data.Entries !== undefined && data.Entries !== null) {
5564
5612
  contents.Entries = deserializeAws_restJson1ListMapsResponseEntryList(data.Entries, context);
5565
5613
  }
@@ -5633,9 +5681,9 @@ var deserializeAws_restJson1ListMapsCommandError = function (output, context) {
5633
5681
  });
5634
5682
  }); };
5635
5683
  export var deserializeAws_restJson1ListPlaceIndexesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5636
- var contents, data;
5637
- return __generator(this, function (_a) {
5638
- switch (_a.label) {
5684
+ var contents, data, _a, _b;
5685
+ return __generator(this, function (_c) {
5686
+ switch (_c.label) {
5639
5687
  case 0:
5640
5688
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5641
5689
  return [2 /*return*/, deserializeAws_restJson1ListPlaceIndexesCommandError(output, context)];
@@ -5645,9 +5693,11 @@ export var deserializeAws_restJson1ListPlaceIndexesCommand = function (output, c
5645
5693
  Entries: undefined,
5646
5694
  NextToken: undefined,
5647
5695
  };
5696
+ _a = __expectNonNull;
5697
+ _b = __expectObject;
5648
5698
  return [4 /*yield*/, parseBody(output.body, context)];
5649
5699
  case 1:
5650
- data = _a.sent();
5700
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5651
5701
  if (data.Entries !== undefined && data.Entries !== null) {
5652
5702
  contents.Entries = deserializeAws_restJson1ListPlaceIndexesResponseEntryList(data.Entries, context);
5653
5703
  }
@@ -5721,9 +5771,9 @@ var deserializeAws_restJson1ListPlaceIndexesCommandError = function (output, con
5721
5771
  });
5722
5772
  }); };
5723
5773
  export var deserializeAws_restJson1ListRouteCalculatorsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5724
- var contents, data;
5725
- return __generator(this, function (_a) {
5726
- switch (_a.label) {
5774
+ var contents, data, _a, _b;
5775
+ return __generator(this, function (_c) {
5776
+ switch (_c.label) {
5727
5777
  case 0:
5728
5778
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5729
5779
  return [2 /*return*/, deserializeAws_restJson1ListRouteCalculatorsCommandError(output, context)];
@@ -5733,9 +5783,11 @@ export var deserializeAws_restJson1ListRouteCalculatorsCommand = function (outpu
5733
5783
  Entries: undefined,
5734
5784
  NextToken: undefined,
5735
5785
  };
5786
+ _a = __expectNonNull;
5787
+ _b = __expectObject;
5736
5788
  return [4 /*yield*/, parseBody(output.body, context)];
5737
5789
  case 1:
5738
- data = _a.sent();
5790
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5739
5791
  if (data.Entries !== undefined && data.Entries !== null) {
5740
5792
  contents.Entries = deserializeAws_restJson1ListRouteCalculatorsResponseEntryList(data.Entries, context);
5741
5793
  }
@@ -5809,9 +5861,9 @@ var deserializeAws_restJson1ListRouteCalculatorsCommandError = function (output,
5809
5861
  });
5810
5862
  }); };
5811
5863
  export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5812
- var contents, data;
5813
- return __generator(this, function (_a) {
5814
- switch (_a.label) {
5864
+ var contents, data, _a, _b;
5865
+ return __generator(this, function (_c) {
5866
+ switch (_c.label) {
5815
5867
  case 0:
5816
5868
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5817
5869
  return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
@@ -5820,9 +5872,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
5820
5872
  $metadata: deserializeMetadata(output),
5821
5873
  Tags: undefined,
5822
5874
  };
5875
+ _a = __expectNonNull;
5876
+ _b = __expectObject;
5823
5877
  return [4 /*yield*/, parseBody(output.body, context)];
5824
5878
  case 1:
5825
- data = _a.sent();
5879
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5826
5880
  if (data.Tags !== undefined && data.Tags !== null) {
5827
5881
  contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
5828
5882
  }
@@ -5901,9 +5955,9 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
5901
5955
  });
5902
5956
  }); };
5903
5957
  export var deserializeAws_restJson1ListTrackerConsumersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
5904
- var contents, data;
5905
- return __generator(this, function (_a) {
5906
- switch (_a.label) {
5958
+ var contents, data, _a, _b;
5959
+ return __generator(this, function (_c) {
5960
+ switch (_c.label) {
5907
5961
  case 0:
5908
5962
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5909
5963
  return [2 /*return*/, deserializeAws_restJson1ListTrackerConsumersCommandError(output, context)];
@@ -5913,9 +5967,11 @@ export var deserializeAws_restJson1ListTrackerConsumersCommand = function (outpu
5913
5967
  ConsumerArns: undefined,
5914
5968
  NextToken: undefined,
5915
5969
  };
5970
+ _a = __expectNonNull;
5971
+ _b = __expectObject;
5916
5972
  return [4 /*yield*/, parseBody(output.body, context)];
5917
5973
  case 1:
5918
- data = _a.sent();
5974
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
5919
5975
  if (data.ConsumerArns !== undefined && data.ConsumerArns !== null) {
5920
5976
  contents.ConsumerArns = deserializeAws_restJson1ArnList(data.ConsumerArns, context);
5921
5977
  }
@@ -5997,9 +6053,9 @@ var deserializeAws_restJson1ListTrackerConsumersCommandError = function (output,
5997
6053
  });
5998
6054
  }); };
5999
6055
  export var deserializeAws_restJson1ListTrackersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6000
- var contents, data;
6001
- return __generator(this, function (_a) {
6002
- switch (_a.label) {
6056
+ var contents, data, _a, _b;
6057
+ return __generator(this, function (_c) {
6058
+ switch (_c.label) {
6003
6059
  case 0:
6004
6060
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6005
6061
  return [2 /*return*/, deserializeAws_restJson1ListTrackersCommandError(output, context)];
@@ -6009,9 +6065,11 @@ export var deserializeAws_restJson1ListTrackersCommand = function (output, conte
6009
6065
  Entries: undefined,
6010
6066
  NextToken: undefined,
6011
6067
  };
6068
+ _a = __expectNonNull;
6069
+ _b = __expectObject;
6012
6070
  return [4 /*yield*/, parseBody(output.body, context)];
6013
6071
  case 1:
6014
- data = _a.sent();
6072
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6015
6073
  if (data.Entries !== undefined && data.Entries !== null) {
6016
6074
  contents.Entries = deserializeAws_restJson1ListTrackersResponseEntryList(data.Entries, context);
6017
6075
  }
@@ -6085,9 +6143,9 @@ var deserializeAws_restJson1ListTrackersCommandError = function (output, context
6085
6143
  });
6086
6144
  }); };
6087
6145
  export var deserializeAws_restJson1PutGeofenceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6088
- var contents, data;
6089
- return __generator(this, function (_a) {
6090
- switch (_a.label) {
6146
+ var contents, data, _a, _b;
6147
+ return __generator(this, function (_c) {
6148
+ switch (_c.label) {
6091
6149
  case 0:
6092
6150
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6093
6151
  return [2 /*return*/, deserializeAws_restJson1PutGeofenceCommandError(output, context)];
@@ -6098,17 +6156,19 @@ export var deserializeAws_restJson1PutGeofenceCommand = function (output, contex
6098
6156
  GeofenceId: undefined,
6099
6157
  UpdateTime: undefined,
6100
6158
  };
6159
+ _a = __expectNonNull;
6160
+ _b = __expectObject;
6101
6161
  return [4 /*yield*/, parseBody(output.body, context)];
6102
6162
  case 1:
6103
- data = _a.sent();
6163
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6104
6164
  if (data.CreateTime !== undefined && data.CreateTime !== null) {
6105
- contents.CreateTime = new Date(data.CreateTime);
6165
+ contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
6106
6166
  }
6107
6167
  if (data.GeofenceId !== undefined && data.GeofenceId !== null) {
6108
6168
  contents.GeofenceId = __expectString(data.GeofenceId);
6109
6169
  }
6110
6170
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
6111
- contents.UpdateTime = new Date(data.UpdateTime);
6171
+ contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
6112
6172
  }
6113
6173
  return [2 /*return*/, Promise.resolve(contents)];
6114
6174
  }
@@ -6193,9 +6253,9 @@ var deserializeAws_restJson1PutGeofenceCommandError = function (output, context)
6193
6253
  });
6194
6254
  }); };
6195
6255
  export var deserializeAws_restJson1SearchPlaceIndexForPositionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6196
- var contents, data;
6197
- return __generator(this, function (_a) {
6198
- switch (_a.label) {
6256
+ var contents, data, _a, _b;
6257
+ return __generator(this, function (_c) {
6258
+ switch (_c.label) {
6199
6259
  case 0:
6200
6260
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6201
6261
  return [2 /*return*/, deserializeAws_restJson1SearchPlaceIndexForPositionCommandError(output, context)];
@@ -6205,9 +6265,11 @@ export var deserializeAws_restJson1SearchPlaceIndexForPositionCommand = function
6205
6265
  Results: undefined,
6206
6266
  Summary: undefined,
6207
6267
  };
6268
+ _a = __expectNonNull;
6269
+ _b = __expectObject;
6208
6270
  return [4 /*yield*/, parseBody(output.body, context)];
6209
6271
  case 1:
6210
- data = _a.sent();
6272
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6211
6273
  if (data.Results !== undefined && data.Results !== null) {
6212
6274
  contents.Results = deserializeAws_restJson1SearchForPositionResultList(data.Results, context);
6213
6275
  }
@@ -6289,9 +6351,9 @@ var deserializeAws_restJson1SearchPlaceIndexForPositionCommandError = function (
6289
6351
  });
6290
6352
  }); };
6291
6353
  export var deserializeAws_restJson1SearchPlaceIndexForTextCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6292
- var contents, data;
6293
- return __generator(this, function (_a) {
6294
- switch (_a.label) {
6354
+ var contents, data, _a, _b;
6355
+ return __generator(this, function (_c) {
6356
+ switch (_c.label) {
6295
6357
  case 0:
6296
6358
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6297
6359
  return [2 /*return*/, deserializeAws_restJson1SearchPlaceIndexForTextCommandError(output, context)];
@@ -6301,9 +6363,11 @@ export var deserializeAws_restJson1SearchPlaceIndexForTextCommand = function (ou
6301
6363
  Results: undefined,
6302
6364
  Summary: undefined,
6303
6365
  };
6366
+ _a = __expectNonNull;
6367
+ _b = __expectObject;
6304
6368
  return [4 /*yield*/, parseBody(output.body, context)];
6305
6369
  case 1:
6306
- data = _a.sent();
6370
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6307
6371
  if (data.Results !== undefined && data.Results !== null) {
6308
6372
  contents.Results = deserializeAws_restJson1SearchForTextResultList(data.Results, context);
6309
6373
  }
@@ -6561,9 +6625,9 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
6561
6625
  });
6562
6626
  }); };
6563
6627
  export var deserializeAws_restJson1UpdateGeofenceCollectionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6564
- var contents, data;
6565
- return __generator(this, function (_a) {
6566
- switch (_a.label) {
6628
+ var contents, data, _a, _b;
6629
+ return __generator(this, function (_c) {
6630
+ switch (_c.label) {
6567
6631
  case 0:
6568
6632
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6569
6633
  return [2 /*return*/, deserializeAws_restJson1UpdateGeofenceCollectionCommandError(output, context)];
@@ -6574,9 +6638,11 @@ export var deserializeAws_restJson1UpdateGeofenceCollectionCommand = function (o
6574
6638
  CollectionName: undefined,
6575
6639
  UpdateTime: undefined,
6576
6640
  };
6641
+ _a = __expectNonNull;
6642
+ _b = __expectObject;
6577
6643
  return [4 /*yield*/, parseBody(output.body, context)];
6578
6644
  case 1:
6579
- data = _a.sent();
6645
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6580
6646
  if (data.CollectionArn !== undefined && data.CollectionArn !== null) {
6581
6647
  contents.CollectionArn = __expectString(data.CollectionArn);
6582
6648
  }
@@ -6584,7 +6650,7 @@ export var deserializeAws_restJson1UpdateGeofenceCollectionCommand = function (o
6584
6650
  contents.CollectionName = __expectString(data.CollectionName);
6585
6651
  }
6586
6652
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
6587
- contents.UpdateTime = new Date(data.UpdateTime);
6653
+ contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
6588
6654
  }
6589
6655
  return [2 /*return*/, Promise.resolve(contents)];
6590
6656
  }
@@ -6661,9 +6727,9 @@ var deserializeAws_restJson1UpdateGeofenceCollectionCommandError = function (out
6661
6727
  });
6662
6728
  }); };
6663
6729
  export var deserializeAws_restJson1UpdateMapCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6664
- var contents, data;
6665
- return __generator(this, function (_a) {
6666
- switch (_a.label) {
6730
+ var contents, data, _a, _b;
6731
+ return __generator(this, function (_c) {
6732
+ switch (_c.label) {
6667
6733
  case 0:
6668
6734
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6669
6735
  return [2 /*return*/, deserializeAws_restJson1UpdateMapCommandError(output, context)];
@@ -6674,9 +6740,11 @@ export var deserializeAws_restJson1UpdateMapCommand = function (output, context)
6674
6740
  MapName: undefined,
6675
6741
  UpdateTime: undefined,
6676
6742
  };
6743
+ _a = __expectNonNull;
6744
+ _b = __expectObject;
6677
6745
  return [4 /*yield*/, parseBody(output.body, context)];
6678
6746
  case 1:
6679
- data = _a.sent();
6747
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6680
6748
  if (data.MapArn !== undefined && data.MapArn !== null) {
6681
6749
  contents.MapArn = __expectString(data.MapArn);
6682
6750
  }
@@ -6684,7 +6752,7 @@ export var deserializeAws_restJson1UpdateMapCommand = function (output, context)
6684
6752
  contents.MapName = __expectString(data.MapName);
6685
6753
  }
6686
6754
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
6687
- contents.UpdateTime = new Date(data.UpdateTime);
6755
+ contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
6688
6756
  }
6689
6757
  return [2 /*return*/, Promise.resolve(contents)];
6690
6758
  }
@@ -6761,9 +6829,9 @@ var deserializeAws_restJson1UpdateMapCommandError = function (output, context) {
6761
6829
  });
6762
6830
  }); };
6763
6831
  export var deserializeAws_restJson1UpdatePlaceIndexCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6764
- var contents, data;
6765
- return __generator(this, function (_a) {
6766
- switch (_a.label) {
6832
+ var contents, data, _a, _b;
6833
+ return __generator(this, function (_c) {
6834
+ switch (_c.label) {
6767
6835
  case 0:
6768
6836
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6769
6837
  return [2 /*return*/, deserializeAws_restJson1UpdatePlaceIndexCommandError(output, context)];
@@ -6774,9 +6842,11 @@ export var deserializeAws_restJson1UpdatePlaceIndexCommand = function (output, c
6774
6842
  IndexName: undefined,
6775
6843
  UpdateTime: undefined,
6776
6844
  };
6845
+ _a = __expectNonNull;
6846
+ _b = __expectObject;
6777
6847
  return [4 /*yield*/, parseBody(output.body, context)];
6778
6848
  case 1:
6779
- data = _a.sent();
6849
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6780
6850
  if (data.IndexArn !== undefined && data.IndexArn !== null) {
6781
6851
  contents.IndexArn = __expectString(data.IndexArn);
6782
6852
  }
@@ -6784,7 +6854,7 @@ export var deserializeAws_restJson1UpdatePlaceIndexCommand = function (output, c
6784
6854
  contents.IndexName = __expectString(data.IndexName);
6785
6855
  }
6786
6856
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
6787
- contents.UpdateTime = new Date(data.UpdateTime);
6857
+ contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
6788
6858
  }
6789
6859
  return [2 /*return*/, Promise.resolve(contents)];
6790
6860
  }
@@ -6861,9 +6931,9 @@ var deserializeAws_restJson1UpdatePlaceIndexCommandError = function (output, con
6861
6931
  });
6862
6932
  }); };
6863
6933
  export var deserializeAws_restJson1UpdateRouteCalculatorCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6864
- var contents, data;
6865
- return __generator(this, function (_a) {
6866
- switch (_a.label) {
6934
+ var contents, data, _a, _b;
6935
+ return __generator(this, function (_c) {
6936
+ switch (_c.label) {
6867
6937
  case 0:
6868
6938
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6869
6939
  return [2 /*return*/, deserializeAws_restJson1UpdateRouteCalculatorCommandError(output, context)];
@@ -6874,9 +6944,11 @@ export var deserializeAws_restJson1UpdateRouteCalculatorCommand = function (outp
6874
6944
  CalculatorName: undefined,
6875
6945
  UpdateTime: undefined,
6876
6946
  };
6947
+ _a = __expectNonNull;
6948
+ _b = __expectObject;
6877
6949
  return [4 /*yield*/, parseBody(output.body, context)];
6878
6950
  case 1:
6879
- data = _a.sent();
6951
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6880
6952
  if (data.CalculatorArn !== undefined && data.CalculatorArn !== null) {
6881
6953
  contents.CalculatorArn = __expectString(data.CalculatorArn);
6882
6954
  }
@@ -6884,7 +6956,7 @@ export var deserializeAws_restJson1UpdateRouteCalculatorCommand = function (outp
6884
6956
  contents.CalculatorName = __expectString(data.CalculatorName);
6885
6957
  }
6886
6958
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
6887
- contents.UpdateTime = new Date(data.UpdateTime);
6959
+ contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
6888
6960
  }
6889
6961
  return [2 /*return*/, Promise.resolve(contents)];
6890
6962
  }
@@ -6961,9 +7033,9 @@ var deserializeAws_restJson1UpdateRouteCalculatorCommandError = function (output
6961
7033
  });
6962
7034
  }); };
6963
7035
  export var deserializeAws_restJson1UpdateTrackerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
6964
- var contents, data;
6965
- return __generator(this, function (_a) {
6966
- switch (_a.label) {
7036
+ var contents, data, _a, _b;
7037
+ return __generator(this, function (_c) {
7038
+ switch (_c.label) {
6967
7039
  case 0:
6968
7040
  if (output.statusCode !== 200 && output.statusCode >= 300) {
6969
7041
  return [2 /*return*/, deserializeAws_restJson1UpdateTrackerCommandError(output, context)];
@@ -6974,9 +7046,11 @@ export var deserializeAws_restJson1UpdateTrackerCommand = function (output, cont
6974
7046
  TrackerName: undefined,
6975
7047
  UpdateTime: undefined,
6976
7048
  };
7049
+ _a = __expectNonNull;
7050
+ _b = __expectObject;
6977
7051
  return [4 /*yield*/, parseBody(output.body, context)];
6978
7052
  case 1:
6979
- data = _a.sent();
7053
+ data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
6980
7054
  if (data.TrackerArn !== undefined && data.TrackerArn !== null) {
6981
7055
  contents.TrackerArn = __expectString(data.TrackerArn);
6982
7056
  }
@@ -6984,7 +7058,7 @@ export var deserializeAws_restJson1UpdateTrackerCommand = function (output, cont
6984
7058
  contents.TrackerName = __expectString(data.TrackerName);
6985
7059
  }
6986
7060
  if (data.UpdateTime !== undefined && data.UpdateTime !== null) {
6987
- contents.UpdateTime = new Date(data.UpdateTime);
7061
+ contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
6988
7062
  }
6989
7063
  return [2 /*return*/, Promise.resolve(contents)];
6990
7064
  }
@@ -7377,7 +7451,9 @@ var deserializeAws_restJson1BatchEvaluateGeofencesError = function (output, cont
7377
7451
  Error: output.Error !== undefined && output.Error !== null
7378
7452
  ? deserializeAws_restJson1BatchItemError(output.Error, context)
7379
7453
  : undefined,
7380
- SampleTime: output.SampleTime !== undefined && output.SampleTime !== null ? new Date(output.SampleTime) : undefined,
7454
+ SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
7455
+ ? __expectNonNull(__parseRfc3339DateTime(output.SampleTime))
7456
+ : undefined,
7381
7457
  };
7382
7458
  };
7383
7459
  var deserializeAws_restJson1BatchEvaluateGeofencesErrorList = function (output, context) {
@@ -7434,9 +7510,13 @@ var deserializeAws_restJson1BatchPutGeofenceErrorList = function (output, contex
7434
7510
  };
7435
7511
  var deserializeAws_restJson1BatchPutGeofenceSuccess = function (output, context) {
7436
7512
  return {
7437
- CreateTime: output.CreateTime !== undefined && output.CreateTime !== null ? new Date(output.CreateTime) : undefined,
7513
+ CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
7514
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
7515
+ : undefined,
7438
7516
  GeofenceId: __expectString(output.GeofenceId),
7439
- UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null ? new Date(output.UpdateTime) : undefined,
7517
+ UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
7518
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
7519
+ : undefined,
7440
7520
  };
7441
7521
  };
7442
7522
  var deserializeAws_restJson1BatchPutGeofenceSuccessList = function (output, context) {
@@ -7455,7 +7535,9 @@ var deserializeAws_restJson1BatchUpdateDevicePositionError = function (output, c
7455
7535
  Error: output.Error !== undefined && output.Error !== null
7456
7536
  ? deserializeAws_restJson1BatchItemError(output.Error, context)
7457
7537
  : undefined,
7458
- SampleTime: output.SampleTime !== undefined && output.SampleTime !== null ? new Date(output.SampleTime) : undefined,
7538
+ SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
7539
+ ? __expectNonNull(__parseRfc3339DateTime(output.SampleTime))
7540
+ : undefined,
7459
7541
  };
7460
7542
  };
7461
7543
  var deserializeAws_restJson1BatchUpdateDevicePositionErrorList = function (output, context) {
@@ -7475,15 +7557,15 @@ var deserializeAws_restJson1BoundingBox = function (output, context) {
7475
7557
  if (entry === null) {
7476
7558
  return null;
7477
7559
  }
7478
- return __limitedParseFloat(entry);
7560
+ return __limitedParseDouble(entry);
7479
7561
  });
7480
7562
  };
7481
7563
  var deserializeAws_restJson1CalculateRouteSummary = function (output, context) {
7482
7564
  return {
7483
7565
  DataSource: __expectString(output.DataSource),
7484
- Distance: __limitedParseFloat(output.Distance),
7566
+ Distance: __limitedParseDouble(output.Distance),
7485
7567
  DistanceUnit: __expectString(output.DistanceUnit),
7486
- DurationSeconds: __limitedParseFloat(output.DurationSeconds),
7568
+ DurationSeconds: __limitedParseDouble(output.DurationSeconds),
7487
7569
  RouteBBox: output.RouteBBox !== undefined && output.RouteBBox !== null
7488
7570
  ? deserializeAws_restJson1BoundingBox(output.RouteBBox, context)
7489
7571
  : undefined,
@@ -7510,8 +7592,12 @@ var deserializeAws_restJson1DevicePosition = function (output, context) {
7510
7592
  Position: output.Position !== undefined && output.Position !== null
7511
7593
  ? deserializeAws_restJson1Position(output.Position, context)
7512
7594
  : undefined,
7513
- ReceivedTime: output.ReceivedTime !== undefined && output.ReceivedTime !== null ? new Date(output.ReceivedTime) : undefined,
7514
- SampleTime: output.SampleTime !== undefined && output.SampleTime !== null ? new Date(output.SampleTime) : undefined,
7595
+ ReceivedTime: output.ReceivedTime !== undefined && output.ReceivedTime !== null
7596
+ ? __expectNonNull(__parseRfc3339DateTime(output.ReceivedTime))
7597
+ : undefined,
7598
+ SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
7599
+ ? __expectNonNull(__parseRfc3339DateTime(output.SampleTime))
7600
+ : undefined,
7515
7601
  };
7516
7602
  };
7517
7603
  var deserializeAws_restJson1DevicePositionList = function (output, context) {
@@ -7533,8 +7619,8 @@ var deserializeAws_restJson1GeofenceGeometry = function (output, context) {
7533
7619
  };
7534
7620
  var deserializeAws_restJson1Leg = function (output, context) {
7535
7621
  return {
7536
- Distance: __limitedParseFloat(output.Distance),
7537
- DurationSeconds: __limitedParseFloat(output.DurationSeconds),
7622
+ Distance: __limitedParseDouble(output.Distance),
7623
+ DurationSeconds: __limitedParseDouble(output.DurationSeconds),
7538
7624
  EndPosition: output.EndPosition !== undefined && output.EndPosition !== null
7539
7625
  ? deserializeAws_restJson1Position(output.EndPosition, context)
7540
7626
  : undefined,
@@ -7602,7 +7688,9 @@ var deserializeAws_restJson1ListDevicePositionsResponseEntry = function (output,
7602
7688
  Position: output.Position !== undefined && output.Position !== null
7603
7689
  ? deserializeAws_restJson1Position(output.Position, context)
7604
7690
  : undefined,
7605
- SampleTime: output.SampleTime !== undefined && output.SampleTime !== null ? new Date(output.SampleTime) : undefined,
7691
+ SampleTime: output.SampleTime !== undefined && output.SampleTime !== null
7692
+ ? __expectNonNull(__parseRfc3339DateTime(output.SampleTime))
7693
+ : undefined,
7606
7694
  };
7607
7695
  };
7608
7696
  var deserializeAws_restJson1ListDevicePositionsResponseEntryList = function (output, context) {
@@ -7618,11 +7706,15 @@ var deserializeAws_restJson1ListDevicePositionsResponseEntryList = function (out
7618
7706
  var deserializeAws_restJson1ListGeofenceCollectionsResponseEntry = function (output, context) {
7619
7707
  return {
7620
7708
  CollectionName: __expectString(output.CollectionName),
7621
- CreateTime: output.CreateTime !== undefined && output.CreateTime !== null ? new Date(output.CreateTime) : undefined,
7709
+ CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
7710
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
7711
+ : undefined,
7622
7712
  Description: __expectString(output.Description),
7623
7713
  PricingPlan: __expectString(output.PricingPlan),
7624
7714
  PricingPlanDataSource: __expectString(output.PricingPlanDataSource),
7625
- UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null ? new Date(output.UpdateTime) : undefined,
7715
+ UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
7716
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
7717
+ : undefined,
7626
7718
  };
7627
7719
  };
7628
7720
  var deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = function (output, context) {
@@ -7637,13 +7729,17 @@ var deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList = function
7637
7729
  };
7638
7730
  var deserializeAws_restJson1ListGeofenceResponseEntry = function (output, context) {
7639
7731
  return {
7640
- CreateTime: output.CreateTime !== undefined && output.CreateTime !== null ? new Date(output.CreateTime) : undefined,
7732
+ CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
7733
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
7734
+ : undefined,
7641
7735
  GeofenceId: __expectString(output.GeofenceId),
7642
7736
  Geometry: output.Geometry !== undefined && output.Geometry !== null
7643
7737
  ? deserializeAws_restJson1GeofenceGeometry(output.Geometry, context)
7644
7738
  : undefined,
7645
7739
  Status: __expectString(output.Status),
7646
- UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null ? new Date(output.UpdateTime) : undefined,
7740
+ UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
7741
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
7742
+ : undefined,
7647
7743
  };
7648
7744
  };
7649
7745
  var deserializeAws_restJson1ListGeofenceResponseEntryList = function (output, context) {
@@ -7658,12 +7754,16 @@ var deserializeAws_restJson1ListGeofenceResponseEntryList = function (output, co
7658
7754
  };
7659
7755
  var deserializeAws_restJson1ListMapsResponseEntry = function (output, context) {
7660
7756
  return {
7661
- CreateTime: output.CreateTime !== undefined && output.CreateTime !== null ? new Date(output.CreateTime) : undefined,
7757
+ CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
7758
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
7759
+ : undefined,
7662
7760
  DataSource: __expectString(output.DataSource),
7663
7761
  Description: __expectString(output.Description),
7664
7762
  MapName: __expectString(output.MapName),
7665
7763
  PricingPlan: __expectString(output.PricingPlan),
7666
- UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null ? new Date(output.UpdateTime) : undefined,
7764
+ UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
7765
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
7766
+ : undefined,
7667
7767
  };
7668
7768
  };
7669
7769
  var deserializeAws_restJson1ListMapsResponseEntryList = function (output, context) {
@@ -7678,12 +7778,16 @@ var deserializeAws_restJson1ListMapsResponseEntryList = function (output, contex
7678
7778
  };
7679
7779
  var deserializeAws_restJson1ListPlaceIndexesResponseEntry = function (output, context) {
7680
7780
  return {
7681
- CreateTime: output.CreateTime !== undefined && output.CreateTime !== null ? new Date(output.CreateTime) : undefined,
7781
+ CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
7782
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
7783
+ : undefined,
7682
7784
  DataSource: __expectString(output.DataSource),
7683
7785
  Description: __expectString(output.Description),
7684
7786
  IndexName: __expectString(output.IndexName),
7685
7787
  PricingPlan: __expectString(output.PricingPlan),
7686
- UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null ? new Date(output.UpdateTime) : undefined,
7788
+ UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
7789
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
7790
+ : undefined,
7687
7791
  };
7688
7792
  };
7689
7793
  var deserializeAws_restJson1ListPlaceIndexesResponseEntryList = function (output, context) {
@@ -7699,11 +7803,15 @@ var deserializeAws_restJson1ListPlaceIndexesResponseEntryList = function (output
7699
7803
  var deserializeAws_restJson1ListRouteCalculatorsResponseEntry = function (output, context) {
7700
7804
  return {
7701
7805
  CalculatorName: __expectString(output.CalculatorName),
7702
- CreateTime: output.CreateTime !== undefined && output.CreateTime !== null ? new Date(output.CreateTime) : undefined,
7806
+ CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
7807
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
7808
+ : undefined,
7703
7809
  DataSource: __expectString(output.DataSource),
7704
7810
  Description: __expectString(output.Description),
7705
7811
  PricingPlan: __expectString(output.PricingPlan),
7706
- UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null ? new Date(output.UpdateTime) : undefined,
7812
+ UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
7813
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
7814
+ : undefined,
7707
7815
  };
7708
7816
  };
7709
7817
  var deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = function (output, context) {
@@ -7718,12 +7826,16 @@ var deserializeAws_restJson1ListRouteCalculatorsResponseEntryList = function (ou
7718
7826
  };
7719
7827
  var deserializeAws_restJson1ListTrackersResponseEntry = function (output, context) {
7720
7828
  return {
7721
- CreateTime: output.CreateTime !== undefined && output.CreateTime !== null ? new Date(output.CreateTime) : undefined,
7829
+ CreateTime: output.CreateTime !== undefined && output.CreateTime !== null
7830
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreateTime))
7831
+ : undefined,
7722
7832
  Description: __expectString(output.Description),
7723
7833
  PricingPlan: __expectString(output.PricingPlan),
7724
7834
  PricingPlanDataSource: __expectString(output.PricingPlanDataSource),
7725
7835
  TrackerName: __expectString(output.TrackerName),
7726
- UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null ? new Date(output.UpdateTime) : undefined,
7836
+ UpdateTime: output.UpdateTime !== undefined && output.UpdateTime !== null
7837
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdateTime))
7838
+ : undefined,
7727
7839
  };
7728
7840
  };
7729
7841
  var deserializeAws_restJson1ListTrackersResponseEntryList = function (output, context) {
@@ -7771,7 +7883,7 @@ var deserializeAws_restJson1Position = function (output, context) {
7771
7883
  if (entry === null) {
7772
7884
  return null;
7773
7885
  }
7774
- return __limitedParseFloat(entry);
7886
+ return __limitedParseDouble(entry);
7775
7887
  });
7776
7888
  };
7777
7889
  var deserializeAws_restJson1SearchForPositionResult = function (output, context) {
@@ -7811,7 +7923,7 @@ var deserializeAws_restJson1SearchForTextResultList = function (output, context)
7811
7923
  var deserializeAws_restJson1SearchPlaceIndexForPositionSummary = function (output, context) {
7812
7924
  return {
7813
7925
  DataSource: __expectString(output.DataSource),
7814
- MaxResults: __expectInt(output.MaxResults),
7926
+ MaxResults: __expectInt32(output.MaxResults),
7815
7927
  Position: output.Position !== undefined && output.Position !== null
7816
7928
  ? deserializeAws_restJson1Position(output.Position, context)
7817
7929
  : undefined,
@@ -7829,7 +7941,7 @@ var deserializeAws_restJson1SearchPlaceIndexForTextSummary = function (output, c
7829
7941
  FilterCountries: output.FilterCountries !== undefined && output.FilterCountries !== null
7830
7942
  ? deserializeAws_restJson1CountryCodeList(output.FilterCountries, context)
7831
7943
  : undefined,
7832
- MaxResults: __expectInt(output.MaxResults),
7944
+ MaxResults: __expectInt32(output.MaxResults),
7833
7945
  ResultBBox: output.ResultBBox !== undefined && output.ResultBBox !== null
7834
7946
  ? deserializeAws_restJson1BoundingBox(output.ResultBBox, context)
7835
7947
  : undefined,
@@ -7838,12 +7950,12 @@ var deserializeAws_restJson1SearchPlaceIndexForTextSummary = function (output, c
7838
7950
  };
7839
7951
  var deserializeAws_restJson1Step = function (output, context) {
7840
7952
  return {
7841
- Distance: __limitedParseFloat(output.Distance),
7842
- DurationSeconds: __limitedParseFloat(output.DurationSeconds),
7953
+ Distance: __limitedParseDouble(output.Distance),
7954
+ DurationSeconds: __limitedParseDouble(output.DurationSeconds),
7843
7955
  EndPosition: output.EndPosition !== undefined && output.EndPosition !== null
7844
7956
  ? deserializeAws_restJson1Position(output.EndPosition, context)
7845
7957
  : undefined,
7846
- GeometryOffset: __expectInt(output.GeometryOffset),
7958
+ GeometryOffset: __expectInt32(output.GeometryOffset),
7847
7959
  StartPosition: output.StartPosition !== undefined && output.StartPosition !== null
7848
7960
  ? deserializeAws_restJson1Position(output.StartPosition, context)
7849
7961
  : undefined,