@aws-sdk/client-location 3.137.0 → 3.145.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 +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +621 -1430
- package/dist-es/protocols/Aws_restJson1.js +820 -1471
- package/package.json +11 -6
|
@@ -1,10 +1,10 @@
|
|
|
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 { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString,
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { LocationServiceException as __BaseException } from "../models/LocationServiceException";
|
|
5
5
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1AssociateTrackerConsumerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
7
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
8
8
|
return __generator(this, function (_c) {
|
|
9
9
|
switch (_c.label) {
|
|
10
10
|
case 0: return [4, context.endpoint()];
|
|
@@ -15,16 +15,7 @@ export var serializeAws_restJson1AssociateTrackerConsumerCommand = function (inp
|
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
17
17
|
"/tracking/v0/trackers/{TrackerName}/consumers";
|
|
18
|
-
|
|
19
|
-
labelValue = input.TrackerName;
|
|
20
|
-
if (labelValue.length <= 0) {
|
|
21
|
-
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
22
|
-
}
|
|
23
|
-
resolvedPath = resolvedPath.replace("{TrackerName}", __extendedEncodeURIComponent(labelValue));
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
27
|
-
}
|
|
18
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", function () { return input.TrackerName; }, "{TrackerName}", false);
|
|
28
19
|
body = JSON.stringify(__assign({}, (input.ConsumerArn != null && { ConsumerArn: input.ConsumerArn })));
|
|
29
20
|
return [4, context.endpoint()];
|
|
30
21
|
case 2:
|
|
@@ -48,7 +39,7 @@ export var serializeAws_restJson1AssociateTrackerConsumerCommand = function (inp
|
|
|
48
39
|
});
|
|
49
40
|
}); };
|
|
50
41
|
export var serializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
51
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
42
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
52
43
|
return __generator(this, function (_c) {
|
|
53
44
|
switch (_c.label) {
|
|
54
45
|
case 0: return [4, context.endpoint()];
|
|
@@ -59,16 +50,7 @@ export var serializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = funct
|
|
|
59
50
|
};
|
|
60
51
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
61
52
|
"/tracking/v0/trackers/{TrackerName}/delete-positions";
|
|
62
|
-
|
|
63
|
-
labelValue = input.TrackerName;
|
|
64
|
-
if (labelValue.length <= 0) {
|
|
65
|
-
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
66
|
-
}
|
|
67
|
-
resolvedPath = resolvedPath.replace("{TrackerName}", __extendedEncodeURIComponent(labelValue));
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
71
|
-
}
|
|
53
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", function () { return input.TrackerName; }, "{TrackerName}", false);
|
|
72
54
|
body = JSON.stringify(__assign({}, (input.DeviceIds != null && { DeviceIds: serializeAws_restJson1DeviceIdsList(input.DeviceIds, context) })));
|
|
73
55
|
return [4, context.endpoint()];
|
|
74
56
|
case 2:
|
|
@@ -92,7 +74,7 @@ export var serializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = funct
|
|
|
92
74
|
});
|
|
93
75
|
}); };
|
|
94
76
|
export var serializeAws_restJson1BatchDeleteGeofenceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
77
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
96
78
|
return __generator(this, function (_c) {
|
|
97
79
|
switch (_c.label) {
|
|
98
80
|
case 0: return [4, context.endpoint()];
|
|
@@ -103,16 +85,7 @@ export var serializeAws_restJson1BatchDeleteGeofenceCommand = function (input, c
|
|
|
103
85
|
};
|
|
104
86
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
105
87
|
"/geofencing/v0/collections/{CollectionName}/delete-geofences";
|
|
106
|
-
|
|
107
|
-
labelValue = input.CollectionName;
|
|
108
|
-
if (labelValue.length <= 0) {
|
|
109
|
-
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
110
|
-
}
|
|
111
|
-
resolvedPath = resolvedPath.replace("{CollectionName}", __extendedEncodeURIComponent(labelValue));
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
115
|
-
}
|
|
88
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", function () { return input.CollectionName; }, "{CollectionName}", false);
|
|
116
89
|
body = JSON.stringify(__assign({}, (input.GeofenceIds != null && { GeofenceIds: serializeAws_restJson1IdList(input.GeofenceIds, context) })));
|
|
117
90
|
return [4, context.endpoint()];
|
|
118
91
|
case 2:
|
|
@@ -136,7 +109,7 @@ export var serializeAws_restJson1BatchDeleteGeofenceCommand = function (input, c
|
|
|
136
109
|
});
|
|
137
110
|
}); };
|
|
138
111
|
export var serializeAws_restJson1BatchEvaluateGeofencesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
139
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
112
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
140
113
|
return __generator(this, function (_c) {
|
|
141
114
|
switch (_c.label) {
|
|
142
115
|
case 0: return [4, context.endpoint()];
|
|
@@ -147,16 +120,7 @@ export var serializeAws_restJson1BatchEvaluateGeofencesCommand = function (input
|
|
|
147
120
|
};
|
|
148
121
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
149
122
|
"/geofencing/v0/collections/{CollectionName}/positions";
|
|
150
|
-
|
|
151
|
-
labelValue = input.CollectionName;
|
|
152
|
-
if (labelValue.length <= 0) {
|
|
153
|
-
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
154
|
-
}
|
|
155
|
-
resolvedPath = resolvedPath.replace("{CollectionName}", __extendedEncodeURIComponent(labelValue));
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
159
|
-
}
|
|
123
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", function () { return input.CollectionName; }, "{CollectionName}", false);
|
|
160
124
|
body = JSON.stringify(__assign({}, (input.DevicePositionUpdates != null && {
|
|
161
125
|
DevicePositionUpdates: serializeAws_restJson1DevicePositionUpdateList(input.DevicePositionUpdates, context),
|
|
162
126
|
})));
|
|
@@ -182,7 +146,7 @@ export var serializeAws_restJson1BatchEvaluateGeofencesCommand = function (input
|
|
|
182
146
|
});
|
|
183
147
|
}); };
|
|
184
148
|
export var serializeAws_restJson1BatchGetDevicePositionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
185
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
149
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
186
150
|
return __generator(this, function (_c) {
|
|
187
151
|
switch (_c.label) {
|
|
188
152
|
case 0: return [4, context.endpoint()];
|
|
@@ -193,16 +157,7 @@ export var serializeAws_restJson1BatchGetDevicePositionCommand = function (input
|
|
|
193
157
|
};
|
|
194
158
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
195
159
|
"/tracking/v0/trackers/{TrackerName}/get-positions";
|
|
196
|
-
|
|
197
|
-
labelValue = input.TrackerName;
|
|
198
|
-
if (labelValue.length <= 0) {
|
|
199
|
-
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
200
|
-
}
|
|
201
|
-
resolvedPath = resolvedPath.replace("{TrackerName}", __extendedEncodeURIComponent(labelValue));
|
|
202
|
-
}
|
|
203
|
-
else {
|
|
204
|
-
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
205
|
-
}
|
|
160
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", function () { return input.TrackerName; }, "{TrackerName}", false);
|
|
206
161
|
body = JSON.stringify(__assign({}, (input.DeviceIds != null && { DeviceIds: serializeAws_restJson1IdList(input.DeviceIds, context) })));
|
|
207
162
|
return [4, context.endpoint()];
|
|
208
163
|
case 2:
|
|
@@ -226,7 +181,7 @@ export var serializeAws_restJson1BatchGetDevicePositionCommand = function (input
|
|
|
226
181
|
});
|
|
227
182
|
}); };
|
|
228
183
|
export var serializeAws_restJson1BatchPutGeofenceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
229
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
184
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
230
185
|
return __generator(this, function (_c) {
|
|
231
186
|
switch (_c.label) {
|
|
232
187
|
case 0: return [4, context.endpoint()];
|
|
@@ -237,16 +192,7 @@ export var serializeAws_restJson1BatchPutGeofenceCommand = function (input, cont
|
|
|
237
192
|
};
|
|
238
193
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
239
194
|
"/geofencing/v0/collections/{CollectionName}/put-geofences";
|
|
240
|
-
|
|
241
|
-
labelValue = input.CollectionName;
|
|
242
|
-
if (labelValue.length <= 0) {
|
|
243
|
-
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
244
|
-
}
|
|
245
|
-
resolvedPath = resolvedPath.replace("{CollectionName}", __extendedEncodeURIComponent(labelValue));
|
|
246
|
-
}
|
|
247
|
-
else {
|
|
248
|
-
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
249
|
-
}
|
|
195
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", function () { return input.CollectionName; }, "{CollectionName}", false);
|
|
250
196
|
body = JSON.stringify(__assign({}, (input.Entries != null && {
|
|
251
197
|
Entries: serializeAws_restJson1BatchPutGeofenceRequestEntryList(input.Entries, context),
|
|
252
198
|
})));
|
|
@@ -272,7 +218,7 @@ export var serializeAws_restJson1BatchPutGeofenceCommand = function (input, cont
|
|
|
272
218
|
});
|
|
273
219
|
}); };
|
|
274
220
|
export var serializeAws_restJson1BatchUpdateDevicePositionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
275
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
221
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
276
222
|
return __generator(this, function (_c) {
|
|
277
223
|
switch (_c.label) {
|
|
278
224
|
case 0: return [4, context.endpoint()];
|
|
@@ -283,16 +229,7 @@ export var serializeAws_restJson1BatchUpdateDevicePositionCommand = function (in
|
|
|
283
229
|
};
|
|
284
230
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
285
231
|
"/tracking/v0/trackers/{TrackerName}/positions";
|
|
286
|
-
|
|
287
|
-
labelValue = input.TrackerName;
|
|
288
|
-
if (labelValue.length <= 0) {
|
|
289
|
-
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
290
|
-
}
|
|
291
|
-
resolvedPath = resolvedPath.replace("{TrackerName}", __extendedEncodeURIComponent(labelValue));
|
|
292
|
-
}
|
|
293
|
-
else {
|
|
294
|
-
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
295
|
-
}
|
|
232
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", function () { return input.TrackerName; }, "{TrackerName}", false);
|
|
296
233
|
body = JSON.stringify(__assign({}, (input.Updates != null && { Updates: serializeAws_restJson1DevicePositionUpdateList(input.Updates, context) })));
|
|
297
234
|
return [4, context.endpoint()];
|
|
298
235
|
case 2:
|
|
@@ -316,7 +253,7 @@ export var serializeAws_restJson1BatchUpdateDevicePositionCommand = function (in
|
|
|
316
253
|
});
|
|
317
254
|
}); };
|
|
318
255
|
export var serializeAws_restJson1CalculateRouteCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
319
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
256
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
320
257
|
return __generator(this, function (_c) {
|
|
321
258
|
switch (_c.label) {
|
|
322
259
|
case 0: return [4, context.endpoint()];
|
|
@@ -327,16 +264,7 @@ export var serializeAws_restJson1CalculateRouteCommand = function (input, contex
|
|
|
327
264
|
};
|
|
328
265
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
329
266
|
"/routes/v0/calculators/{CalculatorName}/calculate/route";
|
|
330
|
-
|
|
331
|
-
labelValue = input.CalculatorName;
|
|
332
|
-
if (labelValue.length <= 0) {
|
|
333
|
-
throw new Error("Empty value provided for input HTTP label: CalculatorName.");
|
|
334
|
-
}
|
|
335
|
-
resolvedPath = resolvedPath.replace("{CalculatorName}", __extendedEncodeURIComponent(labelValue));
|
|
336
|
-
}
|
|
337
|
-
else {
|
|
338
|
-
throw new Error("No value provided for input HTTP label: CalculatorName.");
|
|
339
|
-
}
|
|
267
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CalculatorName", function () { return input.CalculatorName; }, "{CalculatorName}", false);
|
|
340
268
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CarModeOptions != null && {
|
|
341
269
|
CarModeOptions: serializeAws_restJson1CalculateRouteCarModeOptions(input.CarModeOptions, context),
|
|
342
270
|
})), (input.DepartNow != null && { DepartNow: input.DepartNow })), (input.DeparturePosition != null && {
|
|
@@ -370,7 +298,7 @@ export var serializeAws_restJson1CalculateRouteCommand = function (input, contex
|
|
|
370
298
|
});
|
|
371
299
|
}); };
|
|
372
300
|
export var serializeAws_restJson1CalculateRouteMatrixCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
373
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
301
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
374
302
|
return __generator(this, function (_c) {
|
|
375
303
|
switch (_c.label) {
|
|
376
304
|
case 0: return [4, context.endpoint()];
|
|
@@ -381,16 +309,7 @@ export var serializeAws_restJson1CalculateRouteMatrixCommand = function (input,
|
|
|
381
309
|
};
|
|
382
310
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
383
311
|
"/routes/v0/calculators/{CalculatorName}/calculate/route-matrix";
|
|
384
|
-
|
|
385
|
-
labelValue = input.CalculatorName;
|
|
386
|
-
if (labelValue.length <= 0) {
|
|
387
|
-
throw new Error("Empty value provided for input HTTP label: CalculatorName.");
|
|
388
|
-
}
|
|
389
|
-
resolvedPath = resolvedPath.replace("{CalculatorName}", __extendedEncodeURIComponent(labelValue));
|
|
390
|
-
}
|
|
391
|
-
else {
|
|
392
|
-
throw new Error("No value provided for input HTTP label: CalculatorName.");
|
|
393
|
-
}
|
|
312
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CalculatorName", function () { return input.CalculatorName; }, "{CalculatorName}", false);
|
|
394
313
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CarModeOptions != null && {
|
|
395
314
|
CarModeOptions: serializeAws_restJson1CalculateRouteCarModeOptions(input.CarModeOptions, context),
|
|
396
315
|
})), (input.DepartNow != null && { DepartNow: input.DepartNow })), (input.DeparturePositions != null && {
|
|
@@ -591,7 +510,7 @@ export var serializeAws_restJson1CreateTrackerCommand = function (input, context
|
|
|
591
510
|
});
|
|
592
511
|
}); };
|
|
593
512
|
export var serializeAws_restJson1DeleteGeofenceCollectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
594
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
513
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
595
514
|
return __generator(this, function (_c) {
|
|
596
515
|
switch (_c.label) {
|
|
597
516
|
case 0: return [4, context.endpoint()];
|
|
@@ -600,16 +519,7 @@ export var serializeAws_restJson1DeleteGeofenceCollectionCommand = function (inp
|
|
|
600
519
|
headers = {};
|
|
601
520
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
602
521
|
"/geofencing/v0/collections/{CollectionName}";
|
|
603
|
-
|
|
604
|
-
labelValue = input.CollectionName;
|
|
605
|
-
if (labelValue.length <= 0) {
|
|
606
|
-
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
607
|
-
}
|
|
608
|
-
resolvedPath = resolvedPath.replace("{CollectionName}", __extendedEncodeURIComponent(labelValue));
|
|
609
|
-
}
|
|
610
|
-
else {
|
|
611
|
-
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
612
|
-
}
|
|
522
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", function () { return input.CollectionName; }, "{CollectionName}", false);
|
|
613
523
|
return [4, context.endpoint()];
|
|
614
524
|
case 2:
|
|
615
525
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -632,7 +542,7 @@ export var serializeAws_restJson1DeleteGeofenceCollectionCommand = function (inp
|
|
|
632
542
|
});
|
|
633
543
|
}); };
|
|
634
544
|
export var serializeAws_restJson1DeleteMapCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
635
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
545
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
636
546
|
return __generator(this, function (_c) {
|
|
637
547
|
switch (_c.label) {
|
|
638
548
|
case 0: return [4, context.endpoint()];
|
|
@@ -640,16 +550,7 @@ export var serializeAws_restJson1DeleteMapCommand = function (input, context) {
|
|
|
640
550
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
641
551
|
headers = {};
|
|
642
552
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/maps/v0/maps/{MapName}";
|
|
643
|
-
|
|
644
|
-
labelValue = input.MapName;
|
|
645
|
-
if (labelValue.length <= 0) {
|
|
646
|
-
throw new Error("Empty value provided for input HTTP label: MapName.");
|
|
647
|
-
}
|
|
648
|
-
resolvedPath = resolvedPath.replace("{MapName}", __extendedEncodeURIComponent(labelValue));
|
|
649
|
-
}
|
|
650
|
-
else {
|
|
651
|
-
throw new Error("No value provided for input HTTP label: MapName.");
|
|
652
|
-
}
|
|
553
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MapName", function () { return input.MapName; }, "{MapName}", false);
|
|
653
554
|
return [4, context.endpoint()];
|
|
654
555
|
case 2:
|
|
655
556
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -672,7 +573,7 @@ export var serializeAws_restJson1DeleteMapCommand = function (input, context) {
|
|
|
672
573
|
});
|
|
673
574
|
}); };
|
|
674
575
|
export var serializeAws_restJson1DeletePlaceIndexCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
675
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
576
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
676
577
|
return __generator(this, function (_c) {
|
|
677
578
|
switch (_c.label) {
|
|
678
579
|
case 0: return [4, context.endpoint()];
|
|
@@ -680,16 +581,7 @@ export var serializeAws_restJson1DeletePlaceIndexCommand = function (input, cont
|
|
|
680
581
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
681
582
|
headers = {};
|
|
682
583
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/places/v0/indexes/{IndexName}";
|
|
683
|
-
|
|
684
|
-
labelValue = input.IndexName;
|
|
685
|
-
if (labelValue.length <= 0) {
|
|
686
|
-
throw new Error("Empty value provided for input HTTP label: IndexName.");
|
|
687
|
-
}
|
|
688
|
-
resolvedPath = resolvedPath.replace("{IndexName}", __extendedEncodeURIComponent(labelValue));
|
|
689
|
-
}
|
|
690
|
-
else {
|
|
691
|
-
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
692
|
-
}
|
|
584
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", function () { return input.IndexName; }, "{IndexName}", false);
|
|
693
585
|
return [4, context.endpoint()];
|
|
694
586
|
case 2:
|
|
695
587
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -712,7 +604,7 @@ export var serializeAws_restJson1DeletePlaceIndexCommand = function (input, cont
|
|
|
712
604
|
});
|
|
713
605
|
}); };
|
|
714
606
|
export var serializeAws_restJson1DeleteRouteCalculatorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
715
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
607
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
716
608
|
return __generator(this, function (_c) {
|
|
717
609
|
switch (_c.label) {
|
|
718
610
|
case 0: return [4, context.endpoint()];
|
|
@@ -720,16 +612,7 @@ export var serializeAws_restJson1DeleteRouteCalculatorCommand = function (input,
|
|
|
720
612
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
721
613
|
headers = {};
|
|
722
614
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/routes/v0/calculators/{CalculatorName}";
|
|
723
|
-
|
|
724
|
-
labelValue = input.CalculatorName;
|
|
725
|
-
if (labelValue.length <= 0) {
|
|
726
|
-
throw new Error("Empty value provided for input HTTP label: CalculatorName.");
|
|
727
|
-
}
|
|
728
|
-
resolvedPath = resolvedPath.replace("{CalculatorName}", __extendedEncodeURIComponent(labelValue));
|
|
729
|
-
}
|
|
730
|
-
else {
|
|
731
|
-
throw new Error("No value provided for input HTTP label: CalculatorName.");
|
|
732
|
-
}
|
|
615
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CalculatorName", function () { return input.CalculatorName; }, "{CalculatorName}", false);
|
|
733
616
|
return [4, context.endpoint()];
|
|
734
617
|
case 2:
|
|
735
618
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -752,7 +635,7 @@ export var serializeAws_restJson1DeleteRouteCalculatorCommand = function (input,
|
|
|
752
635
|
});
|
|
753
636
|
}); };
|
|
754
637
|
export var serializeAws_restJson1DeleteTrackerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
755
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
638
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
756
639
|
return __generator(this, function (_c) {
|
|
757
640
|
switch (_c.label) {
|
|
758
641
|
case 0: return [4, context.endpoint()];
|
|
@@ -760,16 +643,7 @@ export var serializeAws_restJson1DeleteTrackerCommand = function (input, context
|
|
|
760
643
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
761
644
|
headers = {};
|
|
762
645
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tracking/v0/trackers/{TrackerName}";
|
|
763
|
-
|
|
764
|
-
labelValue = input.TrackerName;
|
|
765
|
-
if (labelValue.length <= 0) {
|
|
766
|
-
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
767
|
-
}
|
|
768
|
-
resolvedPath = resolvedPath.replace("{TrackerName}", __extendedEncodeURIComponent(labelValue));
|
|
769
|
-
}
|
|
770
|
-
else {
|
|
771
|
-
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
772
|
-
}
|
|
646
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", function () { return input.TrackerName; }, "{TrackerName}", false);
|
|
773
647
|
return [4, context.endpoint()];
|
|
774
648
|
case 2:
|
|
775
649
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -792,7 +666,7 @@ export var serializeAws_restJson1DeleteTrackerCommand = function (input, context
|
|
|
792
666
|
});
|
|
793
667
|
}); };
|
|
794
668
|
export var serializeAws_restJson1DescribeGeofenceCollectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
795
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
669
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
796
670
|
return __generator(this, function (_c) {
|
|
797
671
|
switch (_c.label) {
|
|
798
672
|
case 0: return [4, context.endpoint()];
|
|
@@ -801,16 +675,7 @@ export var serializeAws_restJson1DescribeGeofenceCollectionCommand = function (i
|
|
|
801
675
|
headers = {};
|
|
802
676
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
803
677
|
"/geofencing/v0/collections/{CollectionName}";
|
|
804
|
-
|
|
805
|
-
labelValue = input.CollectionName;
|
|
806
|
-
if (labelValue.length <= 0) {
|
|
807
|
-
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
808
|
-
}
|
|
809
|
-
resolvedPath = resolvedPath.replace("{CollectionName}", __extendedEncodeURIComponent(labelValue));
|
|
810
|
-
}
|
|
811
|
-
else {
|
|
812
|
-
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
813
|
-
}
|
|
678
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", function () { return input.CollectionName; }, "{CollectionName}", false);
|
|
814
679
|
return [4, context.endpoint()];
|
|
815
680
|
case 2:
|
|
816
681
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -833,7 +698,7 @@ export var serializeAws_restJson1DescribeGeofenceCollectionCommand = function (i
|
|
|
833
698
|
});
|
|
834
699
|
}); };
|
|
835
700
|
export var serializeAws_restJson1DescribeMapCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
836
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
701
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
837
702
|
return __generator(this, function (_c) {
|
|
838
703
|
switch (_c.label) {
|
|
839
704
|
case 0: return [4, context.endpoint()];
|
|
@@ -841,16 +706,7 @@ export var serializeAws_restJson1DescribeMapCommand = function (input, context)
|
|
|
841
706
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
842
707
|
headers = {};
|
|
843
708
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/maps/v0/maps/{MapName}";
|
|
844
|
-
|
|
845
|
-
labelValue = input.MapName;
|
|
846
|
-
if (labelValue.length <= 0) {
|
|
847
|
-
throw new Error("Empty value provided for input HTTP label: MapName.");
|
|
848
|
-
}
|
|
849
|
-
resolvedPath = resolvedPath.replace("{MapName}", __extendedEncodeURIComponent(labelValue));
|
|
850
|
-
}
|
|
851
|
-
else {
|
|
852
|
-
throw new Error("No value provided for input HTTP label: MapName.");
|
|
853
|
-
}
|
|
709
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MapName", function () { return input.MapName; }, "{MapName}", false);
|
|
854
710
|
return [4, context.endpoint()];
|
|
855
711
|
case 2:
|
|
856
712
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -873,7 +729,7 @@ export var serializeAws_restJson1DescribeMapCommand = function (input, context)
|
|
|
873
729
|
});
|
|
874
730
|
}); };
|
|
875
731
|
export var serializeAws_restJson1DescribePlaceIndexCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
876
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
732
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
877
733
|
return __generator(this, function (_c) {
|
|
878
734
|
switch (_c.label) {
|
|
879
735
|
case 0: return [4, context.endpoint()];
|
|
@@ -881,16 +737,7 @@ export var serializeAws_restJson1DescribePlaceIndexCommand = function (input, co
|
|
|
881
737
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
882
738
|
headers = {};
|
|
883
739
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/places/v0/indexes/{IndexName}";
|
|
884
|
-
|
|
885
|
-
labelValue = input.IndexName;
|
|
886
|
-
if (labelValue.length <= 0) {
|
|
887
|
-
throw new Error("Empty value provided for input HTTP label: IndexName.");
|
|
888
|
-
}
|
|
889
|
-
resolvedPath = resolvedPath.replace("{IndexName}", __extendedEncodeURIComponent(labelValue));
|
|
890
|
-
}
|
|
891
|
-
else {
|
|
892
|
-
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
893
|
-
}
|
|
740
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", function () { return input.IndexName; }, "{IndexName}", false);
|
|
894
741
|
return [4, context.endpoint()];
|
|
895
742
|
case 2:
|
|
896
743
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -913,7 +760,7 @@ export var serializeAws_restJson1DescribePlaceIndexCommand = function (input, co
|
|
|
913
760
|
});
|
|
914
761
|
}); };
|
|
915
762
|
export var serializeAws_restJson1DescribeRouteCalculatorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
916
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
763
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
917
764
|
return __generator(this, function (_c) {
|
|
918
765
|
switch (_c.label) {
|
|
919
766
|
case 0: return [4, context.endpoint()];
|
|
@@ -921,16 +768,7 @@ export var serializeAws_restJson1DescribeRouteCalculatorCommand = function (inpu
|
|
|
921
768
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
922
769
|
headers = {};
|
|
923
770
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/routes/v0/calculators/{CalculatorName}";
|
|
924
|
-
|
|
925
|
-
labelValue = input.CalculatorName;
|
|
926
|
-
if (labelValue.length <= 0) {
|
|
927
|
-
throw new Error("Empty value provided for input HTTP label: CalculatorName.");
|
|
928
|
-
}
|
|
929
|
-
resolvedPath = resolvedPath.replace("{CalculatorName}", __extendedEncodeURIComponent(labelValue));
|
|
930
|
-
}
|
|
931
|
-
else {
|
|
932
|
-
throw new Error("No value provided for input HTTP label: CalculatorName.");
|
|
933
|
-
}
|
|
771
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CalculatorName", function () { return input.CalculatorName; }, "{CalculatorName}", false);
|
|
934
772
|
return [4, context.endpoint()];
|
|
935
773
|
case 2:
|
|
936
774
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -953,7 +791,7 @@ export var serializeAws_restJson1DescribeRouteCalculatorCommand = function (inpu
|
|
|
953
791
|
});
|
|
954
792
|
}); };
|
|
955
793
|
export var serializeAws_restJson1DescribeTrackerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
956
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
794
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
957
795
|
return __generator(this, function (_c) {
|
|
958
796
|
switch (_c.label) {
|
|
959
797
|
case 0: return [4, context.endpoint()];
|
|
@@ -961,16 +799,7 @@ export var serializeAws_restJson1DescribeTrackerCommand = function (input, conte
|
|
|
961
799
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
962
800
|
headers = {};
|
|
963
801
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tracking/v0/trackers/{TrackerName}";
|
|
964
|
-
|
|
965
|
-
labelValue = input.TrackerName;
|
|
966
|
-
if (labelValue.length <= 0) {
|
|
967
|
-
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
968
|
-
}
|
|
969
|
-
resolvedPath = resolvedPath.replace("{TrackerName}", __extendedEncodeURIComponent(labelValue));
|
|
970
|
-
}
|
|
971
|
-
else {
|
|
972
|
-
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
973
|
-
}
|
|
802
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", function () { return input.TrackerName; }, "{TrackerName}", false);
|
|
974
803
|
return [4, context.endpoint()];
|
|
975
804
|
case 2:
|
|
976
805
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -993,7 +822,7 @@ export var serializeAws_restJson1DescribeTrackerCommand = function (input, conte
|
|
|
993
822
|
});
|
|
994
823
|
}); };
|
|
995
824
|
export var serializeAws_restJson1DisassociateTrackerConsumerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
996
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
825
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
997
826
|
return __generator(this, function (_c) {
|
|
998
827
|
switch (_c.label) {
|
|
999
828
|
case 0: return [4, context.endpoint()];
|
|
@@ -1002,26 +831,8 @@ export var serializeAws_restJson1DisassociateTrackerConsumerCommand = function (
|
|
|
1002
831
|
headers = {};
|
|
1003
832
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1004
833
|
"/tracking/v0/trackers/{TrackerName}/consumers/{ConsumerArn}";
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
if (labelValue.length <= 0) {
|
|
1008
|
-
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
1009
|
-
}
|
|
1010
|
-
resolvedPath = resolvedPath.replace("{TrackerName}", __extendedEncodeURIComponent(labelValue));
|
|
1011
|
-
}
|
|
1012
|
-
else {
|
|
1013
|
-
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
1014
|
-
}
|
|
1015
|
-
if (input.ConsumerArn !== undefined) {
|
|
1016
|
-
labelValue = input.ConsumerArn;
|
|
1017
|
-
if (labelValue.length <= 0) {
|
|
1018
|
-
throw new Error("Empty value provided for input HTTP label: ConsumerArn.");
|
|
1019
|
-
}
|
|
1020
|
-
resolvedPath = resolvedPath.replace("{ConsumerArn}", __extendedEncodeURIComponent(labelValue));
|
|
1021
|
-
}
|
|
1022
|
-
else {
|
|
1023
|
-
throw new Error("No value provided for input HTTP label: ConsumerArn.");
|
|
1024
|
-
}
|
|
834
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", function () { return input.TrackerName; }, "{TrackerName}", false);
|
|
835
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ConsumerArn", function () { return input.ConsumerArn; }, "{ConsumerArn}", false);
|
|
1025
836
|
return [4, context.endpoint()];
|
|
1026
837
|
case 2:
|
|
1027
838
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1044,7 +855,7 @@ export var serializeAws_restJson1DisassociateTrackerConsumerCommand = function (
|
|
|
1044
855
|
});
|
|
1045
856
|
}); };
|
|
1046
857
|
export var serializeAws_restJson1GetDevicePositionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1047
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
858
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1048
859
|
return __generator(this, function (_c) {
|
|
1049
860
|
switch (_c.label) {
|
|
1050
861
|
case 0: return [4, context.endpoint()];
|
|
@@ -1053,26 +864,8 @@ export var serializeAws_restJson1GetDevicePositionCommand = function (input, con
|
|
|
1053
864
|
headers = {};
|
|
1054
865
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1055
866
|
"/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/positions/latest";
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
if (labelValue.length <= 0) {
|
|
1059
|
-
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
1060
|
-
}
|
|
1061
|
-
resolvedPath = resolvedPath.replace("{TrackerName}", __extendedEncodeURIComponent(labelValue));
|
|
1062
|
-
}
|
|
1063
|
-
else {
|
|
1064
|
-
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
1065
|
-
}
|
|
1066
|
-
if (input.DeviceId !== undefined) {
|
|
1067
|
-
labelValue = input.DeviceId;
|
|
1068
|
-
if (labelValue.length <= 0) {
|
|
1069
|
-
throw new Error("Empty value provided for input HTTP label: DeviceId.");
|
|
1070
|
-
}
|
|
1071
|
-
resolvedPath = resolvedPath.replace("{DeviceId}", __extendedEncodeURIComponent(labelValue));
|
|
1072
|
-
}
|
|
1073
|
-
else {
|
|
1074
|
-
throw new Error("No value provided for input HTTP label: DeviceId.");
|
|
1075
|
-
}
|
|
867
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", function () { return input.TrackerName; }, "{TrackerName}", false);
|
|
868
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", function () { return input.DeviceId; }, "{DeviceId}", false);
|
|
1076
869
|
return [4, context.endpoint()];
|
|
1077
870
|
case 2:
|
|
1078
871
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1095,7 +888,7 @@ export var serializeAws_restJson1GetDevicePositionCommand = function (input, con
|
|
|
1095
888
|
});
|
|
1096
889
|
}); };
|
|
1097
890
|
export var serializeAws_restJson1GetDevicePositionHistoryCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1098
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
891
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1099
892
|
return __generator(this, function (_c) {
|
|
1100
893
|
switch (_c.label) {
|
|
1101
894
|
case 0: return [4, context.endpoint()];
|
|
@@ -1106,26 +899,8 @@ export var serializeAws_restJson1GetDevicePositionHistoryCommand = function (inp
|
|
|
1106
899
|
};
|
|
1107
900
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1108
901
|
"/tracking/v0/trackers/{TrackerName}/devices/{DeviceId}/list-positions";
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
if (labelValue.length <= 0) {
|
|
1112
|
-
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
1113
|
-
}
|
|
1114
|
-
resolvedPath = resolvedPath.replace("{TrackerName}", __extendedEncodeURIComponent(labelValue));
|
|
1115
|
-
}
|
|
1116
|
-
else {
|
|
1117
|
-
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
1118
|
-
}
|
|
1119
|
-
if (input.DeviceId !== undefined) {
|
|
1120
|
-
labelValue = input.DeviceId;
|
|
1121
|
-
if (labelValue.length <= 0) {
|
|
1122
|
-
throw new Error("Empty value provided for input HTTP label: DeviceId.");
|
|
1123
|
-
}
|
|
1124
|
-
resolvedPath = resolvedPath.replace("{DeviceId}", __extendedEncodeURIComponent(labelValue));
|
|
1125
|
-
}
|
|
1126
|
-
else {
|
|
1127
|
-
throw new Error("No value provided for input HTTP label: DeviceId.");
|
|
1128
|
-
}
|
|
902
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", function () { return input.TrackerName; }, "{TrackerName}", false);
|
|
903
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DeviceId", function () { return input.DeviceId; }, "{DeviceId}", false);
|
|
1129
904
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.EndTimeExclusive != null && {
|
|
1130
905
|
EndTimeExclusive: input.EndTimeExclusive.toISOString().split(".")[0] + "Z",
|
|
1131
906
|
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.StartTimeInclusive != null && {
|
|
@@ -1153,7 +928,7 @@ export var serializeAws_restJson1GetDevicePositionHistoryCommand = function (inp
|
|
|
1153
928
|
});
|
|
1154
929
|
}); };
|
|
1155
930
|
export var serializeAws_restJson1GetGeofenceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1156
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
931
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1157
932
|
return __generator(this, function (_c) {
|
|
1158
933
|
switch (_c.label) {
|
|
1159
934
|
case 0: return [4, context.endpoint()];
|
|
@@ -1162,26 +937,8 @@ export var serializeAws_restJson1GetGeofenceCommand = function (input, context)
|
|
|
1162
937
|
headers = {};
|
|
1163
938
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1164
939
|
"/geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}";
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
if (labelValue.length <= 0) {
|
|
1168
|
-
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
1169
|
-
}
|
|
1170
|
-
resolvedPath = resolvedPath.replace("{CollectionName}", __extendedEncodeURIComponent(labelValue));
|
|
1171
|
-
}
|
|
1172
|
-
else {
|
|
1173
|
-
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
1174
|
-
}
|
|
1175
|
-
if (input.GeofenceId !== undefined) {
|
|
1176
|
-
labelValue = input.GeofenceId;
|
|
1177
|
-
if (labelValue.length <= 0) {
|
|
1178
|
-
throw new Error("Empty value provided for input HTTP label: GeofenceId.");
|
|
1179
|
-
}
|
|
1180
|
-
resolvedPath = resolvedPath.replace("{GeofenceId}", __extendedEncodeURIComponent(labelValue));
|
|
1181
|
-
}
|
|
1182
|
-
else {
|
|
1183
|
-
throw new Error("No value provided for input HTTP label: GeofenceId.");
|
|
1184
|
-
}
|
|
940
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", function () { return input.CollectionName; }, "{CollectionName}", false);
|
|
941
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GeofenceId", function () { return input.GeofenceId; }, "{GeofenceId}", false);
|
|
1185
942
|
return [4, context.endpoint()];
|
|
1186
943
|
case 2:
|
|
1187
944
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1204,7 +961,7 @@ export var serializeAws_restJson1GetGeofenceCommand = function (input, context)
|
|
|
1204
961
|
});
|
|
1205
962
|
}); };
|
|
1206
963
|
export var serializeAws_restJson1GetMapGlyphsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1207
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
964
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1208
965
|
return __generator(this, function (_c) {
|
|
1209
966
|
switch (_c.label) {
|
|
1210
967
|
case 0: return [4, context.endpoint()];
|
|
@@ -1213,36 +970,9 @@ export var serializeAws_restJson1GetMapGlyphsCommand = function (input, context)
|
|
|
1213
970
|
headers = {};
|
|
1214
971
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1215
972
|
"/maps/v0/maps/{MapName}/glyphs/{FontStack}/{FontUnicodeRange}";
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
throw new Error("Empty value provided for input HTTP label: MapName.");
|
|
1220
|
-
}
|
|
1221
|
-
resolvedPath = resolvedPath.replace("{MapName}", __extendedEncodeURIComponent(labelValue));
|
|
1222
|
-
}
|
|
1223
|
-
else {
|
|
1224
|
-
throw new Error("No value provided for input HTTP label: MapName.");
|
|
1225
|
-
}
|
|
1226
|
-
if (input.FontStack !== undefined) {
|
|
1227
|
-
labelValue = input.FontStack;
|
|
1228
|
-
if (labelValue.length <= 0) {
|
|
1229
|
-
throw new Error("Empty value provided for input HTTP label: FontStack.");
|
|
1230
|
-
}
|
|
1231
|
-
resolvedPath = resolvedPath.replace("{FontStack}", __extendedEncodeURIComponent(labelValue));
|
|
1232
|
-
}
|
|
1233
|
-
else {
|
|
1234
|
-
throw new Error("No value provided for input HTTP label: FontStack.");
|
|
1235
|
-
}
|
|
1236
|
-
if (input.FontUnicodeRange !== undefined) {
|
|
1237
|
-
labelValue = input.FontUnicodeRange;
|
|
1238
|
-
if (labelValue.length <= 0) {
|
|
1239
|
-
throw new Error("Empty value provided for input HTTP label: FontUnicodeRange.");
|
|
1240
|
-
}
|
|
1241
|
-
resolvedPath = resolvedPath.replace("{FontUnicodeRange}", __extendedEncodeURIComponent(labelValue));
|
|
1242
|
-
}
|
|
1243
|
-
else {
|
|
1244
|
-
throw new Error("No value provided for input HTTP label: FontUnicodeRange.");
|
|
1245
|
-
}
|
|
973
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MapName", function () { return input.MapName; }, "{MapName}", false);
|
|
974
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FontStack", function () { return input.FontStack; }, "{FontStack}", false);
|
|
975
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FontUnicodeRange", function () { return input.FontUnicodeRange; }, "{FontUnicodeRange}", false);
|
|
1246
976
|
return [4, context.endpoint()];
|
|
1247
977
|
case 2:
|
|
1248
978
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1265,7 +995,7 @@ export var serializeAws_restJson1GetMapGlyphsCommand = function (input, context)
|
|
|
1265
995
|
});
|
|
1266
996
|
}); };
|
|
1267
997
|
export var serializeAws_restJson1GetMapSpritesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1268
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
998
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1269
999
|
return __generator(this, function (_c) {
|
|
1270
1000
|
switch (_c.label) {
|
|
1271
1001
|
case 0: return [4, context.endpoint()];
|
|
@@ -1274,26 +1004,8 @@ export var serializeAws_restJson1GetMapSpritesCommand = function (input, context
|
|
|
1274
1004
|
headers = {};
|
|
1275
1005
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1276
1006
|
"/maps/v0/maps/{MapName}/sprites/{FileName}";
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
if (labelValue.length <= 0) {
|
|
1280
|
-
throw new Error("Empty value provided for input HTTP label: MapName.");
|
|
1281
|
-
}
|
|
1282
|
-
resolvedPath = resolvedPath.replace("{MapName}", __extendedEncodeURIComponent(labelValue));
|
|
1283
|
-
}
|
|
1284
|
-
else {
|
|
1285
|
-
throw new Error("No value provided for input HTTP label: MapName.");
|
|
1286
|
-
}
|
|
1287
|
-
if (input.FileName !== undefined) {
|
|
1288
|
-
labelValue = input.FileName;
|
|
1289
|
-
if (labelValue.length <= 0) {
|
|
1290
|
-
throw new Error("Empty value provided for input HTTP label: FileName.");
|
|
1291
|
-
}
|
|
1292
|
-
resolvedPath = resolvedPath.replace("{FileName}", __extendedEncodeURIComponent(labelValue));
|
|
1293
|
-
}
|
|
1294
|
-
else {
|
|
1295
|
-
throw new Error("No value provided for input HTTP label: FileName.");
|
|
1296
|
-
}
|
|
1007
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MapName", function () { return input.MapName; }, "{MapName}", false);
|
|
1008
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "FileName", function () { return input.FileName; }, "{FileName}", false);
|
|
1297
1009
|
return [4, context.endpoint()];
|
|
1298
1010
|
case 2:
|
|
1299
1011
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1316,7 +1028,7 @@ export var serializeAws_restJson1GetMapSpritesCommand = function (input, context
|
|
|
1316
1028
|
});
|
|
1317
1029
|
}); };
|
|
1318
1030
|
export var serializeAws_restJson1GetMapStyleDescriptorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1319
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1031
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1320
1032
|
return __generator(this, function (_c) {
|
|
1321
1033
|
switch (_c.label) {
|
|
1322
1034
|
case 0: return [4, context.endpoint()];
|
|
@@ -1324,16 +1036,7 @@ export var serializeAws_restJson1GetMapStyleDescriptorCommand = function (input,
|
|
|
1324
1036
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1325
1037
|
headers = {};
|
|
1326
1038
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/maps/v0/maps/{MapName}/style-descriptor";
|
|
1327
|
-
|
|
1328
|
-
labelValue = input.MapName;
|
|
1329
|
-
if (labelValue.length <= 0) {
|
|
1330
|
-
throw new Error("Empty value provided for input HTTP label: MapName.");
|
|
1331
|
-
}
|
|
1332
|
-
resolvedPath = resolvedPath.replace("{MapName}", __extendedEncodeURIComponent(labelValue));
|
|
1333
|
-
}
|
|
1334
|
-
else {
|
|
1335
|
-
throw new Error("No value provided for input HTTP label: MapName.");
|
|
1336
|
-
}
|
|
1039
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MapName", function () { return input.MapName; }, "{MapName}", false);
|
|
1337
1040
|
return [4, context.endpoint()];
|
|
1338
1041
|
case 2:
|
|
1339
1042
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1356,7 +1059,7 @@ export var serializeAws_restJson1GetMapStyleDescriptorCommand = function (input,
|
|
|
1356
1059
|
});
|
|
1357
1060
|
}); };
|
|
1358
1061
|
export var serializeAws_restJson1GetMapTileCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1359
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1062
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1360
1063
|
return __generator(this, function (_c) {
|
|
1361
1064
|
switch (_c.label) {
|
|
1362
1065
|
case 0: return [4, context.endpoint()];
|
|
@@ -1364,46 +1067,10 @@ export var serializeAws_restJson1GetMapTileCommand = function (input, context) {
|
|
|
1364
1067
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1365
1068
|
headers = {};
|
|
1366
1069
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/maps/v0/maps/{MapName}/tiles/{Z}/{X}/{Y}";
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
}
|
|
1372
|
-
resolvedPath = resolvedPath.replace("{MapName}", __extendedEncodeURIComponent(labelValue));
|
|
1373
|
-
}
|
|
1374
|
-
else {
|
|
1375
|
-
throw new Error("No value provided for input HTTP label: MapName.");
|
|
1376
|
-
}
|
|
1377
|
-
if (input.Z !== undefined) {
|
|
1378
|
-
labelValue = input.Z;
|
|
1379
|
-
if (labelValue.length <= 0) {
|
|
1380
|
-
throw new Error("Empty value provided for input HTTP label: Z.");
|
|
1381
|
-
}
|
|
1382
|
-
resolvedPath = resolvedPath.replace("{Z}", __extendedEncodeURIComponent(labelValue));
|
|
1383
|
-
}
|
|
1384
|
-
else {
|
|
1385
|
-
throw new Error("No value provided for input HTTP label: Z.");
|
|
1386
|
-
}
|
|
1387
|
-
if (input.X !== undefined) {
|
|
1388
|
-
labelValue = input.X;
|
|
1389
|
-
if (labelValue.length <= 0) {
|
|
1390
|
-
throw new Error("Empty value provided for input HTTP label: X.");
|
|
1391
|
-
}
|
|
1392
|
-
resolvedPath = resolvedPath.replace("{X}", __extendedEncodeURIComponent(labelValue));
|
|
1393
|
-
}
|
|
1394
|
-
else {
|
|
1395
|
-
throw new Error("No value provided for input HTTP label: X.");
|
|
1396
|
-
}
|
|
1397
|
-
if (input.Y !== undefined) {
|
|
1398
|
-
labelValue = input.Y;
|
|
1399
|
-
if (labelValue.length <= 0) {
|
|
1400
|
-
throw new Error("Empty value provided for input HTTP label: Y.");
|
|
1401
|
-
}
|
|
1402
|
-
resolvedPath = resolvedPath.replace("{Y}", __extendedEncodeURIComponent(labelValue));
|
|
1403
|
-
}
|
|
1404
|
-
else {
|
|
1405
|
-
throw new Error("No value provided for input HTTP label: Y.");
|
|
1406
|
-
}
|
|
1070
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MapName", function () { return input.MapName; }, "{MapName}", false);
|
|
1071
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Z", function () { return input.Z; }, "{Z}", false);
|
|
1072
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "X", function () { return input.X; }, "{X}", false);
|
|
1073
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "Y", function () { return input.Y; }, "{Y}", false);
|
|
1407
1074
|
return [4, context.endpoint()];
|
|
1408
1075
|
case 2:
|
|
1409
1076
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1426,7 +1093,7 @@ export var serializeAws_restJson1GetMapTileCommand = function (input, context) {
|
|
|
1426
1093
|
});
|
|
1427
1094
|
}); };
|
|
1428
1095
|
export var serializeAws_restJson1ListDevicePositionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1429
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1096
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1430
1097
|
return __generator(this, function (_c) {
|
|
1431
1098
|
switch (_c.label) {
|
|
1432
1099
|
case 0: return [4, context.endpoint()];
|
|
@@ -1437,16 +1104,7 @@ export var serializeAws_restJson1ListDevicePositionsCommand = function (input, c
|
|
|
1437
1104
|
};
|
|
1438
1105
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1439
1106
|
"/tracking/v0/trackers/{TrackerName}/list-positions";
|
|
1440
|
-
|
|
1441
|
-
labelValue = input.TrackerName;
|
|
1442
|
-
if (labelValue.length <= 0) {
|
|
1443
|
-
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
1444
|
-
}
|
|
1445
|
-
resolvedPath = resolvedPath.replace("{TrackerName}", __extendedEncodeURIComponent(labelValue));
|
|
1446
|
-
}
|
|
1447
|
-
else {
|
|
1448
|
-
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
1449
|
-
}
|
|
1107
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", function () { return input.TrackerName; }, "{TrackerName}", false);
|
|
1450
1108
|
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
1451
1109
|
return [4, context.endpoint()];
|
|
1452
1110
|
case 2:
|
|
@@ -1503,7 +1161,7 @@ export var serializeAws_restJson1ListGeofenceCollectionsCommand = function (inpu
|
|
|
1503
1161
|
});
|
|
1504
1162
|
}); };
|
|
1505
1163
|
export var serializeAws_restJson1ListGeofencesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1506
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1164
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1507
1165
|
return __generator(this, function (_c) {
|
|
1508
1166
|
switch (_c.label) {
|
|
1509
1167
|
case 0: return [4, context.endpoint()];
|
|
@@ -1514,16 +1172,7 @@ export var serializeAws_restJson1ListGeofencesCommand = function (input, context
|
|
|
1514
1172
|
};
|
|
1515
1173
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1516
1174
|
"/geofencing/v0/collections/{CollectionName}/list-geofences";
|
|
1517
|
-
|
|
1518
|
-
labelValue = input.CollectionName;
|
|
1519
|
-
if (labelValue.length <= 0) {
|
|
1520
|
-
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
1521
|
-
}
|
|
1522
|
-
resolvedPath = resolvedPath.replace("{CollectionName}", __extendedEncodeURIComponent(labelValue));
|
|
1523
|
-
}
|
|
1524
|
-
else {
|
|
1525
|
-
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
1526
|
-
}
|
|
1175
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", function () { return input.CollectionName; }, "{CollectionName}", false);
|
|
1527
1176
|
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
1528
1177
|
return [4, context.endpoint()];
|
|
1529
1178
|
case 2:
|
|
@@ -1646,7 +1295,7 @@ export var serializeAws_restJson1ListRouteCalculatorsCommand = function (input,
|
|
|
1646
1295
|
});
|
|
1647
1296
|
}); };
|
|
1648
1297
|
export var serializeAws_restJson1ListTagsForResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1649
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1298
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1650
1299
|
return __generator(this, function (_c) {
|
|
1651
1300
|
switch (_c.label) {
|
|
1652
1301
|
case 0: return [4, context.endpoint()];
|
|
@@ -1654,16 +1303,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
1654
1303
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1655
1304
|
headers = {};
|
|
1656
1305
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
1657
|
-
|
|
1658
|
-
labelValue = input.ResourceArn;
|
|
1659
|
-
if (labelValue.length <= 0) {
|
|
1660
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
1661
|
-
}
|
|
1662
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1663
|
-
}
|
|
1664
|
-
else {
|
|
1665
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
1666
|
-
}
|
|
1306
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
1667
1307
|
return [4, context.endpoint()];
|
|
1668
1308
|
case 2:
|
|
1669
1309
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -1686,7 +1326,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
1686
1326
|
});
|
|
1687
1327
|
}); };
|
|
1688
1328
|
export var serializeAws_restJson1ListTrackerConsumersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1689
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1329
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1690
1330
|
return __generator(this, function (_c) {
|
|
1691
1331
|
switch (_c.label) {
|
|
1692
1332
|
case 0: return [4, context.endpoint()];
|
|
@@ -1697,16 +1337,7 @@ export var serializeAws_restJson1ListTrackerConsumersCommand = function (input,
|
|
|
1697
1337
|
};
|
|
1698
1338
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1699
1339
|
"/tracking/v0/trackers/{TrackerName}/list-consumers";
|
|
1700
|
-
|
|
1701
|
-
labelValue = input.TrackerName;
|
|
1702
|
-
if (labelValue.length <= 0) {
|
|
1703
|
-
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
1704
|
-
}
|
|
1705
|
-
resolvedPath = resolvedPath.replace("{TrackerName}", __extendedEncodeURIComponent(labelValue));
|
|
1706
|
-
}
|
|
1707
|
-
else {
|
|
1708
|
-
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
1709
|
-
}
|
|
1340
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", function () { return input.TrackerName; }, "{TrackerName}", false);
|
|
1710
1341
|
body = JSON.stringify(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
1711
1342
|
return [4, context.endpoint()];
|
|
1712
1343
|
case 2:
|
|
@@ -1763,7 +1394,7 @@ export var serializeAws_restJson1ListTrackersCommand = function (input, context)
|
|
|
1763
1394
|
});
|
|
1764
1395
|
}); };
|
|
1765
1396
|
export var serializeAws_restJson1PutGeofenceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1766
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1397
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1767
1398
|
return __generator(this, function (_c) {
|
|
1768
1399
|
switch (_c.label) {
|
|
1769
1400
|
case 0: return [4, context.endpoint()];
|
|
@@ -1774,26 +1405,8 @@ export var serializeAws_restJson1PutGeofenceCommand = function (input, context)
|
|
|
1774
1405
|
};
|
|
1775
1406
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1776
1407
|
"/geofencing/v0/collections/{CollectionName}/geofences/{GeofenceId}";
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
if (labelValue.length <= 0) {
|
|
1780
|
-
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
1781
|
-
}
|
|
1782
|
-
resolvedPath = resolvedPath.replace("{CollectionName}", __extendedEncodeURIComponent(labelValue));
|
|
1783
|
-
}
|
|
1784
|
-
else {
|
|
1785
|
-
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
1786
|
-
}
|
|
1787
|
-
if (input.GeofenceId !== undefined) {
|
|
1788
|
-
labelValue = input.GeofenceId;
|
|
1789
|
-
if (labelValue.length <= 0) {
|
|
1790
|
-
throw new Error("Empty value provided for input HTTP label: GeofenceId.");
|
|
1791
|
-
}
|
|
1792
|
-
resolvedPath = resolvedPath.replace("{GeofenceId}", __extendedEncodeURIComponent(labelValue));
|
|
1793
|
-
}
|
|
1794
|
-
else {
|
|
1795
|
-
throw new Error("No value provided for input HTTP label: GeofenceId.");
|
|
1796
|
-
}
|
|
1408
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", function () { return input.CollectionName; }, "{CollectionName}", false);
|
|
1409
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "GeofenceId", function () { return input.GeofenceId; }, "{GeofenceId}", false);
|
|
1797
1410
|
body = JSON.stringify(__assign({}, (input.Geometry != null && { Geometry: serializeAws_restJson1GeofenceGeometry(input.Geometry, context) })));
|
|
1798
1411
|
return [4, context.endpoint()];
|
|
1799
1412
|
case 2:
|
|
@@ -1817,7 +1430,7 @@ export var serializeAws_restJson1PutGeofenceCommand = function (input, context)
|
|
|
1817
1430
|
});
|
|
1818
1431
|
}); };
|
|
1819
1432
|
export var serializeAws_restJson1SearchPlaceIndexForPositionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1820
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1433
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1821
1434
|
return __generator(this, function (_c) {
|
|
1822
1435
|
switch (_c.label) {
|
|
1823
1436
|
case 0: return [4, context.endpoint()];
|
|
@@ -1828,16 +1441,7 @@ export var serializeAws_restJson1SearchPlaceIndexForPositionCommand = function (
|
|
|
1828
1441
|
};
|
|
1829
1442
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1830
1443
|
"/places/v0/indexes/{IndexName}/search/position";
|
|
1831
|
-
|
|
1832
|
-
labelValue = input.IndexName;
|
|
1833
|
-
if (labelValue.length <= 0) {
|
|
1834
|
-
throw new Error("Empty value provided for input HTTP label: IndexName.");
|
|
1835
|
-
}
|
|
1836
|
-
resolvedPath = resolvedPath.replace("{IndexName}", __extendedEncodeURIComponent(labelValue));
|
|
1837
|
-
}
|
|
1838
|
-
else {
|
|
1839
|
-
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
1840
|
-
}
|
|
1444
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", function () { return input.IndexName; }, "{IndexName}", false);
|
|
1841
1445
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.Language != null && { Language: input.Language })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.Position != null && { Position: serializeAws_restJson1Position(input.Position, context) })));
|
|
1842
1446
|
return [4, context.endpoint()];
|
|
1843
1447
|
case 2:
|
|
@@ -1861,7 +1465,7 @@ export var serializeAws_restJson1SearchPlaceIndexForPositionCommand = function (
|
|
|
1861
1465
|
});
|
|
1862
1466
|
}); };
|
|
1863
1467
|
export var serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1864
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1468
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1865
1469
|
return __generator(this, function (_c) {
|
|
1866
1470
|
switch (_c.label) {
|
|
1867
1471
|
case 0: return [4, context.endpoint()];
|
|
@@ -1872,16 +1476,7 @@ export var serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = functio
|
|
|
1872
1476
|
};
|
|
1873
1477
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1874
1478
|
"/places/v0/indexes/{IndexName}/search/suggestions";
|
|
1875
|
-
|
|
1876
|
-
labelValue = input.IndexName;
|
|
1877
|
-
if (labelValue.length <= 0) {
|
|
1878
|
-
throw new Error("Empty value provided for input HTTP label: IndexName.");
|
|
1879
|
-
}
|
|
1880
|
-
resolvedPath = resolvedPath.replace("{IndexName}", __extendedEncodeURIComponent(labelValue));
|
|
1881
|
-
}
|
|
1882
|
-
else {
|
|
1883
|
-
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
1884
|
-
}
|
|
1479
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", function () { return input.IndexName; }, "{IndexName}", false);
|
|
1885
1480
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BiasPosition != null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) })), (input.FilterBBox != null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) })), (input.FilterCountries != null && {
|
|
1886
1481
|
FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
|
|
1887
1482
|
})), (input.Language != null && { Language: input.Language })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.Text != null && { Text: input.Text })));
|
|
@@ -1907,7 +1502,7 @@ export var serializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = functio
|
|
|
1907
1502
|
});
|
|
1908
1503
|
}); };
|
|
1909
1504
|
export var serializeAws_restJson1SearchPlaceIndexForTextCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1910
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1505
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1911
1506
|
return __generator(this, function (_c) {
|
|
1912
1507
|
switch (_c.label) {
|
|
1913
1508
|
case 0: return [4, context.endpoint()];
|
|
@@ -1918,16 +1513,7 @@ export var serializeAws_restJson1SearchPlaceIndexForTextCommand = function (inpu
|
|
|
1918
1513
|
};
|
|
1919
1514
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1920
1515
|
"/places/v0/indexes/{IndexName}/search/text";
|
|
1921
|
-
|
|
1922
|
-
labelValue = input.IndexName;
|
|
1923
|
-
if (labelValue.length <= 0) {
|
|
1924
|
-
throw new Error("Empty value provided for input HTTP label: IndexName.");
|
|
1925
|
-
}
|
|
1926
|
-
resolvedPath = resolvedPath.replace("{IndexName}", __extendedEncodeURIComponent(labelValue));
|
|
1927
|
-
}
|
|
1928
|
-
else {
|
|
1929
|
-
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
1930
|
-
}
|
|
1516
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", function () { return input.IndexName; }, "{IndexName}", false);
|
|
1931
1517
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BiasPosition != null && { BiasPosition: serializeAws_restJson1Position(input.BiasPosition, context) })), (input.FilterBBox != null && { FilterBBox: serializeAws_restJson1BoundingBox(input.FilterBBox, context) })), (input.FilterCountries != null && {
|
|
1932
1518
|
FilterCountries: serializeAws_restJson1CountryCodeList(input.FilterCountries, context),
|
|
1933
1519
|
})), (input.Language != null && { Language: input.Language })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.Text != null && { Text: input.Text })));
|
|
@@ -1953,7 +1539,7 @@ export var serializeAws_restJson1SearchPlaceIndexForTextCommand = function (inpu
|
|
|
1953
1539
|
});
|
|
1954
1540
|
}); };
|
|
1955
1541
|
export var serializeAws_restJson1TagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1956
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1542
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
1957
1543
|
return __generator(this, function (_c) {
|
|
1958
1544
|
switch (_c.label) {
|
|
1959
1545
|
case 0: return [4, context.endpoint()];
|
|
@@ -1963,16 +1549,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1963
1549
|
"content-type": "application/json",
|
|
1964
1550
|
};
|
|
1965
1551
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
1966
|
-
|
|
1967
|
-
labelValue = input.ResourceArn;
|
|
1968
|
-
if (labelValue.length <= 0) {
|
|
1969
|
-
throw new Error("Empty value provided for input HTTP label: ResourceArn.");
|
|
1970
|
-
}
|
|
1971
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
1972
|
-
}
|
|
1973
|
-
else {
|
|
1974
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
1975
|
-
}
|
|
1552
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
1976
1553
|
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
1977
1554
|
return [4, context.endpoint()];
|
|
1978
1555
|
case 2:
|
|
@@ -1996,7 +1573,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1996
1573
|
});
|
|
1997
1574
|
}); };
|
|
1998
1575
|
export var serializeAws_restJson1UntagResourceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1999
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1576
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body, resolvedHostname;
|
|
2000
1577
|
return __generator(this, function (_c) {
|
|
2001
1578
|
switch (_c.label) {
|
|
2002
1579
|
case 0: return [4, context.endpoint()];
|
|
@@ -2004,17 +1581,10 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
2004
1581
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
2005
1582
|
headers = {};
|
|
2006
1583
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{ResourceArn}";
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
}
|
|
2012
|
-
resolvedPath = resolvedPath.replace("{ResourceArn}", __extendedEncodeURIComponent(labelValue));
|
|
2013
|
-
}
|
|
2014
|
-
else {
|
|
2015
|
-
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
2016
|
-
}
|
|
2017
|
-
query = __assign({}, (input.TagKeys !== undefined && { tagKeys: (input.TagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
1584
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", function () { return input.ResourceArn; }, "{ResourceArn}", false);
|
|
1585
|
+
query = map({
|
|
1586
|
+
tagKeys: [function () { return input.TagKeys !== void 0; }, function () { return (input.TagKeys || []).map(function (_entry) { return _entry; }); }],
|
|
1587
|
+
});
|
|
2018
1588
|
return [4, context.endpoint()];
|
|
2019
1589
|
case 2:
|
|
2020
1590
|
resolvedHostname = (_c.sent()).hostname;
|
|
@@ -2038,7 +1608,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
2038
1608
|
});
|
|
2039
1609
|
}); };
|
|
2040
1610
|
export var serializeAws_restJson1UpdateGeofenceCollectionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2041
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1611
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
2042
1612
|
return __generator(this, function (_c) {
|
|
2043
1613
|
switch (_c.label) {
|
|
2044
1614
|
case 0: return [4, context.endpoint()];
|
|
@@ -2049,16 +1619,7 @@ export var serializeAws_restJson1UpdateGeofenceCollectionCommand = function (inp
|
|
|
2049
1619
|
};
|
|
2050
1620
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
2051
1621
|
"/geofencing/v0/collections/{CollectionName}";
|
|
2052
|
-
|
|
2053
|
-
labelValue = input.CollectionName;
|
|
2054
|
-
if (labelValue.length <= 0) {
|
|
2055
|
-
throw new Error("Empty value provided for input HTTP label: CollectionName.");
|
|
2056
|
-
}
|
|
2057
|
-
resolvedPath = resolvedPath.replace("{CollectionName}", __extendedEncodeURIComponent(labelValue));
|
|
2058
|
-
}
|
|
2059
|
-
else {
|
|
2060
|
-
throw new Error("No value provided for input HTTP label: CollectionName.");
|
|
2061
|
-
}
|
|
1622
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CollectionName", function () { return input.CollectionName; }, "{CollectionName}", false);
|
|
2062
1623
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.PricingPlan != null && { PricingPlan: input.PricingPlan })), (input.PricingPlanDataSource != null && { PricingPlanDataSource: input.PricingPlanDataSource })));
|
|
2063
1624
|
return [4, context.endpoint()];
|
|
2064
1625
|
case 2:
|
|
@@ -2082,7 +1643,7 @@ export var serializeAws_restJson1UpdateGeofenceCollectionCommand = function (inp
|
|
|
2082
1643
|
});
|
|
2083
1644
|
}); };
|
|
2084
1645
|
export var serializeAws_restJson1UpdateMapCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2085
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1646
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
2086
1647
|
return __generator(this, function (_c) {
|
|
2087
1648
|
switch (_c.label) {
|
|
2088
1649
|
case 0: return [4, context.endpoint()];
|
|
@@ -2092,16 +1653,7 @@ export var serializeAws_restJson1UpdateMapCommand = function (input, context) {
|
|
|
2092
1653
|
"content-type": "application/json",
|
|
2093
1654
|
};
|
|
2094
1655
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/maps/v0/maps/{MapName}";
|
|
2095
|
-
|
|
2096
|
-
labelValue = input.MapName;
|
|
2097
|
-
if (labelValue.length <= 0) {
|
|
2098
|
-
throw new Error("Empty value provided for input HTTP label: MapName.");
|
|
2099
|
-
}
|
|
2100
|
-
resolvedPath = resolvedPath.replace("{MapName}", __extendedEncodeURIComponent(labelValue));
|
|
2101
|
-
}
|
|
2102
|
-
else {
|
|
2103
|
-
throw new Error("No value provided for input HTTP label: MapName.");
|
|
2104
|
-
}
|
|
1656
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "MapName", function () { return input.MapName; }, "{MapName}", false);
|
|
2105
1657
|
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.PricingPlan != null && { PricingPlan: input.PricingPlan })));
|
|
2106
1658
|
return [4, context.endpoint()];
|
|
2107
1659
|
case 2:
|
|
@@ -2125,7 +1677,7 @@ export var serializeAws_restJson1UpdateMapCommand = function (input, context) {
|
|
|
2125
1677
|
});
|
|
2126
1678
|
}); };
|
|
2127
1679
|
export var serializeAws_restJson1UpdatePlaceIndexCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2128
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1680
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
2129
1681
|
return __generator(this, function (_c) {
|
|
2130
1682
|
switch (_c.label) {
|
|
2131
1683
|
case 0: return [4, context.endpoint()];
|
|
@@ -2135,16 +1687,7 @@ export var serializeAws_restJson1UpdatePlaceIndexCommand = function (input, cont
|
|
|
2135
1687
|
"content-type": "application/json",
|
|
2136
1688
|
};
|
|
2137
1689
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/places/v0/indexes/{IndexName}";
|
|
2138
|
-
|
|
2139
|
-
labelValue = input.IndexName;
|
|
2140
|
-
if (labelValue.length <= 0) {
|
|
2141
|
-
throw new Error("Empty value provided for input HTTP label: IndexName.");
|
|
2142
|
-
}
|
|
2143
|
-
resolvedPath = resolvedPath.replace("{IndexName}", __extendedEncodeURIComponent(labelValue));
|
|
2144
|
-
}
|
|
2145
|
-
else {
|
|
2146
|
-
throw new Error("No value provided for input HTTP label: IndexName.");
|
|
2147
|
-
}
|
|
1690
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "IndexName", function () { return input.IndexName; }, "{IndexName}", false);
|
|
2148
1691
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.DataSourceConfiguration != null && {
|
|
2149
1692
|
DataSourceConfiguration: serializeAws_restJson1DataSourceConfiguration(input.DataSourceConfiguration, context),
|
|
2150
1693
|
})), (input.Description != null && { Description: input.Description })), (input.PricingPlan != null && { PricingPlan: input.PricingPlan })));
|
|
@@ -2170,7 +1713,7 @@ export var serializeAws_restJson1UpdatePlaceIndexCommand = function (input, cont
|
|
|
2170
1713
|
});
|
|
2171
1714
|
}); };
|
|
2172
1715
|
export var serializeAws_restJson1UpdateRouteCalculatorCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2173
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1716
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
2174
1717
|
return __generator(this, function (_c) {
|
|
2175
1718
|
switch (_c.label) {
|
|
2176
1719
|
case 0: return [4, context.endpoint()];
|
|
@@ -2180,16 +1723,7 @@ export var serializeAws_restJson1UpdateRouteCalculatorCommand = function (input,
|
|
|
2180
1723
|
"content-type": "application/json",
|
|
2181
1724
|
};
|
|
2182
1725
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/routes/v0/calculators/{CalculatorName}";
|
|
2183
|
-
|
|
2184
|
-
labelValue = input.CalculatorName;
|
|
2185
|
-
if (labelValue.length <= 0) {
|
|
2186
|
-
throw new Error("Empty value provided for input HTTP label: CalculatorName.");
|
|
2187
|
-
}
|
|
2188
|
-
resolvedPath = resolvedPath.replace("{CalculatorName}", __extendedEncodeURIComponent(labelValue));
|
|
2189
|
-
}
|
|
2190
|
-
else {
|
|
2191
|
-
throw new Error("No value provided for input HTTP label: CalculatorName.");
|
|
2192
|
-
}
|
|
1726
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "CalculatorName", function () { return input.CalculatorName; }, "{CalculatorName}", false);
|
|
2193
1727
|
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.PricingPlan != null && { PricingPlan: input.PricingPlan })));
|
|
2194
1728
|
return [4, context.endpoint()];
|
|
2195
1729
|
case 2:
|
|
@@ -2213,7 +1747,7 @@ export var serializeAws_restJson1UpdateRouteCalculatorCommand = function (input,
|
|
|
2213
1747
|
});
|
|
2214
1748
|
}); };
|
|
2215
1749
|
export var serializeAws_restJson1UpdateTrackerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2216
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath,
|
|
1750
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
2217
1751
|
return __generator(this, function (_c) {
|
|
2218
1752
|
switch (_c.label) {
|
|
2219
1753
|
case 0: return [4, context.endpoint()];
|
|
@@ -2223,16 +1757,7 @@ export var serializeAws_restJson1UpdateTrackerCommand = function (input, context
|
|
|
2223
1757
|
"content-type": "application/json",
|
|
2224
1758
|
};
|
|
2225
1759
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tracking/v0/trackers/{TrackerName}";
|
|
2226
|
-
|
|
2227
|
-
labelValue = input.TrackerName;
|
|
2228
|
-
if (labelValue.length <= 0) {
|
|
2229
|
-
throw new Error("Empty value provided for input HTTP label: TrackerName.");
|
|
2230
|
-
}
|
|
2231
|
-
resolvedPath = resolvedPath.replace("{TrackerName}", __extendedEncodeURIComponent(labelValue));
|
|
2232
|
-
}
|
|
2233
|
-
else {
|
|
2234
|
-
throw new Error("No value provided for input HTTP label: TrackerName.");
|
|
2235
|
-
}
|
|
1760
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "TrackerName", function () { return input.TrackerName; }, "{TrackerName}", false);
|
|
2236
1761
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.PositionFiltering != null && { PositionFiltering: input.PositionFiltering })), (input.PricingPlan != null && { PricingPlan: input.PricingPlan })), (input.PricingPlanDataSource != null && { PricingPlanDataSource: input.PricingPlanDataSource })));
|
|
2237
1762
|
return [4, context.endpoint()];
|
|
2238
1763
|
case 2:
|
|
@@ -2263,18 +1788,18 @@ export var deserializeAws_restJson1AssociateTrackerConsumerCommand = function (o
|
|
|
2263
1788
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2264
1789
|
return [2, deserializeAws_restJson1AssociateTrackerConsumerCommandError(output, context)];
|
|
2265
1790
|
}
|
|
2266
|
-
contents = {
|
|
1791
|
+
contents = map({
|
|
2267
1792
|
$metadata: deserializeMetadata(output),
|
|
2268
|
-
};
|
|
1793
|
+
});
|
|
2269
1794
|
return [4, collectBody(output.body, context)];
|
|
2270
1795
|
case 1:
|
|
2271
1796
|
_a.sent();
|
|
2272
|
-
return [2,
|
|
1797
|
+
return [2, contents];
|
|
2273
1798
|
}
|
|
2274
1799
|
});
|
|
2275
1800
|
}); };
|
|
2276
1801
|
var deserializeAws_restJson1AssociateTrackerConsumerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2277
|
-
var parsedOutput, _a,
|
|
1802
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2278
1803
|
var _c;
|
|
2279
1804
|
return __generator(this, function (_d) {
|
|
2280
1805
|
switch (_d.label) {
|
|
@@ -2319,14 +1844,14 @@ var deserializeAws_restJson1AssociateTrackerConsumerCommandError = function (out
|
|
|
2319
1844
|
case 15: throw _d.sent();
|
|
2320
1845
|
case 16:
|
|
2321
1846
|
parsedBody = parsedOutput.body;
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
$metadata: $metadata,
|
|
1847
|
+
throwDefaultError({
|
|
1848
|
+
output: output,
|
|
1849
|
+
parsedBody: parsedBody,
|
|
1850
|
+
exceptionCtor: __BaseException,
|
|
1851
|
+
errorCode: errorCode,
|
|
2328
1852
|
});
|
|
2329
|
-
|
|
1853
|
+
_d.label = 17;
|
|
1854
|
+
case 17: return [2];
|
|
2330
1855
|
}
|
|
2331
1856
|
});
|
|
2332
1857
|
}); };
|
|
@@ -2338,24 +1863,23 @@ export var deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommand = fun
|
|
|
2338
1863
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2339
1864
|
return [2, deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommandError(output, context)];
|
|
2340
1865
|
}
|
|
2341
|
-
contents = {
|
|
1866
|
+
contents = map({
|
|
2342
1867
|
$metadata: deserializeMetadata(output),
|
|
2343
|
-
|
|
2344
|
-
};
|
|
1868
|
+
});
|
|
2345
1869
|
_a = __expectNonNull;
|
|
2346
1870
|
_b = __expectObject;
|
|
2347
1871
|
return [4, parseBody(output.body, context)];
|
|
2348
1872
|
case 1:
|
|
2349
1873
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2350
|
-
if (data.Errors
|
|
1874
|
+
if (data.Errors != null) {
|
|
2351
1875
|
contents.Errors = deserializeAws_restJson1BatchDeleteDevicePositionHistoryErrorList(data.Errors, context);
|
|
2352
1876
|
}
|
|
2353
|
-
return [2,
|
|
1877
|
+
return [2, contents];
|
|
2354
1878
|
}
|
|
2355
1879
|
});
|
|
2356
1880
|
}); };
|
|
2357
1881
|
var deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2358
|
-
var parsedOutput, _a,
|
|
1882
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2359
1883
|
var _c;
|
|
2360
1884
|
return __generator(this, function (_d) {
|
|
2361
1885
|
switch (_d.label) {
|
|
@@ -2392,14 +1916,14 @@ var deserializeAws_restJson1BatchDeleteDevicePositionHistoryCommandError = funct
|
|
|
2392
1916
|
case 11: throw _d.sent();
|
|
2393
1917
|
case 12:
|
|
2394
1918
|
parsedBody = parsedOutput.body;
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
$metadata: $metadata,
|
|
1919
|
+
throwDefaultError({
|
|
1920
|
+
output: output,
|
|
1921
|
+
parsedBody: parsedBody,
|
|
1922
|
+
exceptionCtor: __BaseException,
|
|
1923
|
+
errorCode: errorCode,
|
|
2401
1924
|
});
|
|
2402
|
-
|
|
1925
|
+
_d.label = 13;
|
|
1926
|
+
case 13: return [2];
|
|
2403
1927
|
}
|
|
2404
1928
|
});
|
|
2405
1929
|
}); };
|
|
@@ -2411,24 +1935,23 @@ export var deserializeAws_restJson1BatchDeleteGeofenceCommand = function (output
|
|
|
2411
1935
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2412
1936
|
return [2, deserializeAws_restJson1BatchDeleteGeofenceCommandError(output, context)];
|
|
2413
1937
|
}
|
|
2414
|
-
contents = {
|
|
1938
|
+
contents = map({
|
|
2415
1939
|
$metadata: deserializeMetadata(output),
|
|
2416
|
-
|
|
2417
|
-
};
|
|
1940
|
+
});
|
|
2418
1941
|
_a = __expectNonNull;
|
|
2419
1942
|
_b = __expectObject;
|
|
2420
1943
|
return [4, parseBody(output.body, context)];
|
|
2421
1944
|
case 1:
|
|
2422
1945
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2423
|
-
if (data.Errors
|
|
1946
|
+
if (data.Errors != null) {
|
|
2424
1947
|
contents.Errors = deserializeAws_restJson1BatchDeleteGeofenceErrorList(data.Errors, context);
|
|
2425
1948
|
}
|
|
2426
|
-
return [2,
|
|
1949
|
+
return [2, contents];
|
|
2427
1950
|
}
|
|
2428
1951
|
});
|
|
2429
1952
|
}); };
|
|
2430
1953
|
var deserializeAws_restJson1BatchDeleteGeofenceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2431
|
-
var parsedOutput, _a,
|
|
1954
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2432
1955
|
var _c;
|
|
2433
1956
|
return __generator(this, function (_d) {
|
|
2434
1957
|
switch (_d.label) {
|
|
@@ -2465,14 +1988,14 @@ var deserializeAws_restJson1BatchDeleteGeofenceCommandError = function (output,
|
|
|
2465
1988
|
case 11: throw _d.sent();
|
|
2466
1989
|
case 12:
|
|
2467
1990
|
parsedBody = parsedOutput.body;
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
$metadata: $metadata,
|
|
1991
|
+
throwDefaultError({
|
|
1992
|
+
output: output,
|
|
1993
|
+
parsedBody: parsedBody,
|
|
1994
|
+
exceptionCtor: __BaseException,
|
|
1995
|
+
errorCode: errorCode,
|
|
2474
1996
|
});
|
|
2475
|
-
|
|
1997
|
+
_d.label = 13;
|
|
1998
|
+
case 13: return [2];
|
|
2476
1999
|
}
|
|
2477
2000
|
});
|
|
2478
2001
|
}); };
|
|
@@ -2484,24 +2007,23 @@ export var deserializeAws_restJson1BatchEvaluateGeofencesCommand = function (out
|
|
|
2484
2007
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2485
2008
|
return [2, deserializeAws_restJson1BatchEvaluateGeofencesCommandError(output, context)];
|
|
2486
2009
|
}
|
|
2487
|
-
contents = {
|
|
2010
|
+
contents = map({
|
|
2488
2011
|
$metadata: deserializeMetadata(output),
|
|
2489
|
-
|
|
2490
|
-
};
|
|
2012
|
+
});
|
|
2491
2013
|
_a = __expectNonNull;
|
|
2492
2014
|
_b = __expectObject;
|
|
2493
2015
|
return [4, parseBody(output.body, context)];
|
|
2494
2016
|
case 1:
|
|
2495
2017
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2496
|
-
if (data.Errors
|
|
2018
|
+
if (data.Errors != null) {
|
|
2497
2019
|
contents.Errors = deserializeAws_restJson1BatchEvaluateGeofencesErrorList(data.Errors, context);
|
|
2498
2020
|
}
|
|
2499
|
-
return [2,
|
|
2021
|
+
return [2, contents];
|
|
2500
2022
|
}
|
|
2501
2023
|
});
|
|
2502
2024
|
}); };
|
|
2503
2025
|
var deserializeAws_restJson1BatchEvaluateGeofencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2504
|
-
var parsedOutput, _a,
|
|
2026
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2505
2027
|
var _c;
|
|
2506
2028
|
return __generator(this, function (_d) {
|
|
2507
2029
|
switch (_d.label) {
|
|
@@ -2538,14 +2060,14 @@ var deserializeAws_restJson1BatchEvaluateGeofencesCommandError = function (outpu
|
|
|
2538
2060
|
case 11: throw _d.sent();
|
|
2539
2061
|
case 12:
|
|
2540
2062
|
parsedBody = parsedOutput.body;
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
$metadata: $metadata,
|
|
2063
|
+
throwDefaultError({
|
|
2064
|
+
output: output,
|
|
2065
|
+
parsedBody: parsedBody,
|
|
2066
|
+
exceptionCtor: __BaseException,
|
|
2067
|
+
errorCode: errorCode,
|
|
2547
2068
|
});
|
|
2548
|
-
|
|
2069
|
+
_d.label = 13;
|
|
2070
|
+
case 13: return [2];
|
|
2549
2071
|
}
|
|
2550
2072
|
});
|
|
2551
2073
|
}); };
|
|
@@ -2557,28 +2079,26 @@ export var deserializeAws_restJson1BatchGetDevicePositionCommand = function (out
|
|
|
2557
2079
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2558
2080
|
return [2, deserializeAws_restJson1BatchGetDevicePositionCommandError(output, context)];
|
|
2559
2081
|
}
|
|
2560
|
-
contents = {
|
|
2082
|
+
contents = map({
|
|
2561
2083
|
$metadata: deserializeMetadata(output),
|
|
2562
|
-
|
|
2563
|
-
Errors: undefined,
|
|
2564
|
-
};
|
|
2084
|
+
});
|
|
2565
2085
|
_a = __expectNonNull;
|
|
2566
2086
|
_b = __expectObject;
|
|
2567
2087
|
return [4, parseBody(output.body, context)];
|
|
2568
2088
|
case 1:
|
|
2569
2089
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2570
|
-
if (data.DevicePositions
|
|
2090
|
+
if (data.DevicePositions != null) {
|
|
2571
2091
|
contents.DevicePositions = deserializeAws_restJson1DevicePositionList(data.DevicePositions, context);
|
|
2572
2092
|
}
|
|
2573
|
-
if (data.Errors
|
|
2093
|
+
if (data.Errors != null) {
|
|
2574
2094
|
contents.Errors = deserializeAws_restJson1BatchGetDevicePositionErrorList(data.Errors, context);
|
|
2575
2095
|
}
|
|
2576
|
-
return [2,
|
|
2096
|
+
return [2, contents];
|
|
2577
2097
|
}
|
|
2578
2098
|
});
|
|
2579
2099
|
}); };
|
|
2580
2100
|
var deserializeAws_restJson1BatchGetDevicePositionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2581
|
-
var parsedOutput, _a,
|
|
2101
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2582
2102
|
var _c;
|
|
2583
2103
|
return __generator(this, function (_d) {
|
|
2584
2104
|
switch (_d.label) {
|
|
@@ -2615,14 +2135,14 @@ var deserializeAws_restJson1BatchGetDevicePositionCommandError = function (outpu
|
|
|
2615
2135
|
case 11: throw _d.sent();
|
|
2616
2136
|
case 12:
|
|
2617
2137
|
parsedBody = parsedOutput.body;
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
$metadata: $metadata,
|
|
2138
|
+
throwDefaultError({
|
|
2139
|
+
output: output,
|
|
2140
|
+
parsedBody: parsedBody,
|
|
2141
|
+
exceptionCtor: __BaseException,
|
|
2142
|
+
errorCode: errorCode,
|
|
2624
2143
|
});
|
|
2625
|
-
|
|
2144
|
+
_d.label = 13;
|
|
2145
|
+
case 13: return [2];
|
|
2626
2146
|
}
|
|
2627
2147
|
});
|
|
2628
2148
|
}); };
|
|
@@ -2634,28 +2154,26 @@ export var deserializeAws_restJson1BatchPutGeofenceCommand = function (output, c
|
|
|
2634
2154
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2635
2155
|
return [2, deserializeAws_restJson1BatchPutGeofenceCommandError(output, context)];
|
|
2636
2156
|
}
|
|
2637
|
-
contents = {
|
|
2157
|
+
contents = map({
|
|
2638
2158
|
$metadata: deserializeMetadata(output),
|
|
2639
|
-
|
|
2640
|
-
Successes: undefined,
|
|
2641
|
-
};
|
|
2159
|
+
});
|
|
2642
2160
|
_a = __expectNonNull;
|
|
2643
2161
|
_b = __expectObject;
|
|
2644
2162
|
return [4, parseBody(output.body, context)];
|
|
2645
2163
|
case 1:
|
|
2646
2164
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2647
|
-
if (data.Errors
|
|
2165
|
+
if (data.Errors != null) {
|
|
2648
2166
|
contents.Errors = deserializeAws_restJson1BatchPutGeofenceErrorList(data.Errors, context);
|
|
2649
2167
|
}
|
|
2650
|
-
if (data.Successes
|
|
2168
|
+
if (data.Successes != null) {
|
|
2651
2169
|
contents.Successes = deserializeAws_restJson1BatchPutGeofenceSuccessList(data.Successes, context);
|
|
2652
2170
|
}
|
|
2653
|
-
return [2,
|
|
2171
|
+
return [2, contents];
|
|
2654
2172
|
}
|
|
2655
2173
|
});
|
|
2656
2174
|
}); };
|
|
2657
2175
|
var deserializeAws_restJson1BatchPutGeofenceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2658
|
-
var parsedOutput, _a,
|
|
2176
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2659
2177
|
var _c;
|
|
2660
2178
|
return __generator(this, function (_d) {
|
|
2661
2179
|
switch (_d.label) {
|
|
@@ -2692,14 +2210,14 @@ var deserializeAws_restJson1BatchPutGeofenceCommandError = function (output, con
|
|
|
2692
2210
|
case 11: throw _d.sent();
|
|
2693
2211
|
case 12:
|
|
2694
2212
|
parsedBody = parsedOutput.body;
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
$metadata: $metadata,
|
|
2213
|
+
throwDefaultError({
|
|
2214
|
+
output: output,
|
|
2215
|
+
parsedBody: parsedBody,
|
|
2216
|
+
exceptionCtor: __BaseException,
|
|
2217
|
+
errorCode: errorCode,
|
|
2701
2218
|
});
|
|
2702
|
-
|
|
2219
|
+
_d.label = 13;
|
|
2220
|
+
case 13: return [2];
|
|
2703
2221
|
}
|
|
2704
2222
|
});
|
|
2705
2223
|
}); };
|
|
@@ -2711,24 +2229,23 @@ export var deserializeAws_restJson1BatchUpdateDevicePositionCommand = function (
|
|
|
2711
2229
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2712
2230
|
return [2, deserializeAws_restJson1BatchUpdateDevicePositionCommandError(output, context)];
|
|
2713
2231
|
}
|
|
2714
|
-
contents = {
|
|
2232
|
+
contents = map({
|
|
2715
2233
|
$metadata: deserializeMetadata(output),
|
|
2716
|
-
|
|
2717
|
-
};
|
|
2234
|
+
});
|
|
2718
2235
|
_a = __expectNonNull;
|
|
2719
2236
|
_b = __expectObject;
|
|
2720
2237
|
return [4, parseBody(output.body, context)];
|
|
2721
2238
|
case 1:
|
|
2722
2239
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2723
|
-
if (data.Errors
|
|
2240
|
+
if (data.Errors != null) {
|
|
2724
2241
|
contents.Errors = deserializeAws_restJson1BatchUpdateDevicePositionErrorList(data.Errors, context);
|
|
2725
2242
|
}
|
|
2726
|
-
return [2,
|
|
2243
|
+
return [2, contents];
|
|
2727
2244
|
}
|
|
2728
2245
|
});
|
|
2729
2246
|
}); };
|
|
2730
2247
|
var deserializeAws_restJson1BatchUpdateDevicePositionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2731
|
-
var parsedOutput, _a,
|
|
2248
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2732
2249
|
var _c;
|
|
2733
2250
|
return __generator(this, function (_d) {
|
|
2734
2251
|
switch (_d.label) {
|
|
@@ -2765,14 +2282,14 @@ var deserializeAws_restJson1BatchUpdateDevicePositionCommandError = function (ou
|
|
|
2765
2282
|
case 11: throw _d.sent();
|
|
2766
2283
|
case 12:
|
|
2767
2284
|
parsedBody = parsedOutput.body;
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
$metadata: $metadata,
|
|
2285
|
+
throwDefaultError({
|
|
2286
|
+
output: output,
|
|
2287
|
+
parsedBody: parsedBody,
|
|
2288
|
+
exceptionCtor: __BaseException,
|
|
2289
|
+
errorCode: errorCode,
|
|
2774
2290
|
});
|
|
2775
|
-
|
|
2291
|
+
_d.label = 13;
|
|
2292
|
+
case 13: return [2];
|
|
2776
2293
|
}
|
|
2777
2294
|
});
|
|
2778
2295
|
}); };
|
|
@@ -2784,28 +2301,26 @@ export var deserializeAws_restJson1CalculateRouteCommand = function (output, con
|
|
|
2784
2301
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2785
2302
|
return [2, deserializeAws_restJson1CalculateRouteCommandError(output, context)];
|
|
2786
2303
|
}
|
|
2787
|
-
contents = {
|
|
2304
|
+
contents = map({
|
|
2788
2305
|
$metadata: deserializeMetadata(output),
|
|
2789
|
-
|
|
2790
|
-
Summary: undefined,
|
|
2791
|
-
};
|
|
2306
|
+
});
|
|
2792
2307
|
_a = __expectNonNull;
|
|
2793
2308
|
_b = __expectObject;
|
|
2794
2309
|
return [4, parseBody(output.body, context)];
|
|
2795
2310
|
case 1:
|
|
2796
2311
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2797
|
-
if (data.Legs
|
|
2312
|
+
if (data.Legs != null) {
|
|
2798
2313
|
contents.Legs = deserializeAws_restJson1LegList(data.Legs, context);
|
|
2799
2314
|
}
|
|
2800
|
-
if (data.Summary
|
|
2315
|
+
if (data.Summary != null) {
|
|
2801
2316
|
contents.Summary = deserializeAws_restJson1CalculateRouteSummary(data.Summary, context);
|
|
2802
2317
|
}
|
|
2803
|
-
return [2,
|
|
2318
|
+
return [2, contents];
|
|
2804
2319
|
}
|
|
2805
2320
|
});
|
|
2806
2321
|
}); };
|
|
2807
2322
|
var deserializeAws_restJson1CalculateRouteCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2808
|
-
var parsedOutput, _a,
|
|
2323
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2809
2324
|
var _c;
|
|
2810
2325
|
return __generator(this, function (_d) {
|
|
2811
2326
|
switch (_d.label) {
|
|
@@ -2842,14 +2357,14 @@ var deserializeAws_restJson1CalculateRouteCommandError = function (output, conte
|
|
|
2842
2357
|
case 11: throw _d.sent();
|
|
2843
2358
|
case 12:
|
|
2844
2359
|
parsedBody = parsedOutput.body;
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
$metadata: $metadata,
|
|
2360
|
+
throwDefaultError({
|
|
2361
|
+
output: output,
|
|
2362
|
+
parsedBody: parsedBody,
|
|
2363
|
+
exceptionCtor: __BaseException,
|
|
2364
|
+
errorCode: errorCode,
|
|
2851
2365
|
});
|
|
2852
|
-
|
|
2366
|
+
_d.label = 13;
|
|
2367
|
+
case 13: return [2];
|
|
2853
2368
|
}
|
|
2854
2369
|
});
|
|
2855
2370
|
}); };
|
|
@@ -2861,36 +2376,32 @@ export var deserializeAws_restJson1CalculateRouteMatrixCommand = function (outpu
|
|
|
2861
2376
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2862
2377
|
return [2, deserializeAws_restJson1CalculateRouteMatrixCommandError(output, context)];
|
|
2863
2378
|
}
|
|
2864
|
-
contents = {
|
|
2379
|
+
contents = map({
|
|
2865
2380
|
$metadata: deserializeMetadata(output),
|
|
2866
|
-
|
|
2867
|
-
SnappedDeparturePositions: undefined,
|
|
2868
|
-
SnappedDestinationPositions: undefined,
|
|
2869
|
-
Summary: undefined,
|
|
2870
|
-
};
|
|
2381
|
+
});
|
|
2871
2382
|
_a = __expectNonNull;
|
|
2872
2383
|
_b = __expectObject;
|
|
2873
2384
|
return [4, parseBody(output.body, context)];
|
|
2874
2385
|
case 1:
|
|
2875
2386
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2876
|
-
if (data.RouteMatrix
|
|
2387
|
+
if (data.RouteMatrix != null) {
|
|
2877
2388
|
contents.RouteMatrix = deserializeAws_restJson1RouteMatrix(data.RouteMatrix, context);
|
|
2878
2389
|
}
|
|
2879
|
-
if (data.SnappedDeparturePositions
|
|
2390
|
+
if (data.SnappedDeparturePositions != null) {
|
|
2880
2391
|
contents.SnappedDeparturePositions = deserializeAws_restJson1PositionList(data.SnappedDeparturePositions, context);
|
|
2881
2392
|
}
|
|
2882
|
-
if (data.SnappedDestinationPositions
|
|
2393
|
+
if (data.SnappedDestinationPositions != null) {
|
|
2883
2394
|
contents.SnappedDestinationPositions = deserializeAws_restJson1PositionList(data.SnappedDestinationPositions, context);
|
|
2884
2395
|
}
|
|
2885
|
-
if (data.Summary
|
|
2396
|
+
if (data.Summary != null) {
|
|
2886
2397
|
contents.Summary = deserializeAws_restJson1CalculateRouteMatrixSummary(data.Summary, context);
|
|
2887
2398
|
}
|
|
2888
|
-
return [2,
|
|
2399
|
+
return [2, contents];
|
|
2889
2400
|
}
|
|
2890
2401
|
});
|
|
2891
2402
|
}); };
|
|
2892
2403
|
var deserializeAws_restJson1CalculateRouteMatrixCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2893
|
-
var parsedOutput, _a,
|
|
2404
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2894
2405
|
var _c;
|
|
2895
2406
|
return __generator(this, function (_d) {
|
|
2896
2407
|
switch (_d.label) {
|
|
@@ -2927,14 +2438,14 @@ var deserializeAws_restJson1CalculateRouteMatrixCommandError = function (output,
|
|
|
2927
2438
|
case 11: throw _d.sent();
|
|
2928
2439
|
case 12:
|
|
2929
2440
|
parsedBody = parsedOutput.body;
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
$metadata: $metadata,
|
|
2441
|
+
throwDefaultError({
|
|
2442
|
+
output: output,
|
|
2443
|
+
parsedBody: parsedBody,
|
|
2444
|
+
exceptionCtor: __BaseException,
|
|
2445
|
+
errorCode: errorCode,
|
|
2936
2446
|
});
|
|
2937
|
-
|
|
2447
|
+
_d.label = 13;
|
|
2448
|
+
case 13: return [2];
|
|
2938
2449
|
}
|
|
2939
2450
|
});
|
|
2940
2451
|
}); };
|
|
@@ -2946,32 +2457,29 @@ export var deserializeAws_restJson1CreateGeofenceCollectionCommand = function (o
|
|
|
2946
2457
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2947
2458
|
return [2, deserializeAws_restJson1CreateGeofenceCollectionCommandError(output, context)];
|
|
2948
2459
|
}
|
|
2949
|
-
contents = {
|
|
2460
|
+
contents = map({
|
|
2950
2461
|
$metadata: deserializeMetadata(output),
|
|
2951
|
-
|
|
2952
|
-
CollectionName: undefined,
|
|
2953
|
-
CreateTime: undefined,
|
|
2954
|
-
};
|
|
2462
|
+
});
|
|
2955
2463
|
_a = __expectNonNull;
|
|
2956
2464
|
_b = __expectObject;
|
|
2957
2465
|
return [4, parseBody(output.body, context)];
|
|
2958
2466
|
case 1:
|
|
2959
2467
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2960
|
-
if (data.CollectionArn
|
|
2468
|
+
if (data.CollectionArn != null) {
|
|
2961
2469
|
contents.CollectionArn = __expectString(data.CollectionArn);
|
|
2962
2470
|
}
|
|
2963
|
-
if (data.CollectionName
|
|
2471
|
+
if (data.CollectionName != null) {
|
|
2964
2472
|
contents.CollectionName = __expectString(data.CollectionName);
|
|
2965
2473
|
}
|
|
2966
|
-
if (data.CreateTime
|
|
2474
|
+
if (data.CreateTime != null) {
|
|
2967
2475
|
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
2968
2476
|
}
|
|
2969
|
-
return [2,
|
|
2477
|
+
return [2, contents];
|
|
2970
2478
|
}
|
|
2971
2479
|
});
|
|
2972
2480
|
}); };
|
|
2973
2481
|
var deserializeAws_restJson1CreateGeofenceCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2974
|
-
var parsedOutput, _a,
|
|
2482
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2975
2483
|
var _c;
|
|
2976
2484
|
return __generator(this, function (_d) {
|
|
2977
2485
|
switch (_d.label) {
|
|
@@ -3008,14 +2516,14 @@ var deserializeAws_restJson1CreateGeofenceCollectionCommandError = function (out
|
|
|
3008
2516
|
case 11: throw _d.sent();
|
|
3009
2517
|
case 12:
|
|
3010
2518
|
parsedBody = parsedOutput.body;
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
$metadata: $metadata,
|
|
2519
|
+
throwDefaultError({
|
|
2520
|
+
output: output,
|
|
2521
|
+
parsedBody: parsedBody,
|
|
2522
|
+
exceptionCtor: __BaseException,
|
|
2523
|
+
errorCode: errorCode,
|
|
3017
2524
|
});
|
|
3018
|
-
|
|
2525
|
+
_d.label = 13;
|
|
2526
|
+
case 13: return [2];
|
|
3019
2527
|
}
|
|
3020
2528
|
});
|
|
3021
2529
|
}); };
|
|
@@ -3027,32 +2535,29 @@ export var deserializeAws_restJson1CreateMapCommand = function (output, context)
|
|
|
3027
2535
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3028
2536
|
return [2, deserializeAws_restJson1CreateMapCommandError(output, context)];
|
|
3029
2537
|
}
|
|
3030
|
-
contents = {
|
|
2538
|
+
contents = map({
|
|
3031
2539
|
$metadata: deserializeMetadata(output),
|
|
3032
|
-
|
|
3033
|
-
MapArn: undefined,
|
|
3034
|
-
MapName: undefined,
|
|
3035
|
-
};
|
|
2540
|
+
});
|
|
3036
2541
|
_a = __expectNonNull;
|
|
3037
2542
|
_b = __expectObject;
|
|
3038
2543
|
return [4, parseBody(output.body, context)];
|
|
3039
2544
|
case 1:
|
|
3040
2545
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3041
|
-
if (data.CreateTime
|
|
2546
|
+
if (data.CreateTime != null) {
|
|
3042
2547
|
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
3043
2548
|
}
|
|
3044
|
-
if (data.MapArn
|
|
2549
|
+
if (data.MapArn != null) {
|
|
3045
2550
|
contents.MapArn = __expectString(data.MapArn);
|
|
3046
2551
|
}
|
|
3047
|
-
if (data.MapName
|
|
2552
|
+
if (data.MapName != null) {
|
|
3048
2553
|
contents.MapName = __expectString(data.MapName);
|
|
3049
2554
|
}
|
|
3050
|
-
return [2,
|
|
2555
|
+
return [2, contents];
|
|
3051
2556
|
}
|
|
3052
2557
|
});
|
|
3053
2558
|
}); };
|
|
3054
2559
|
var deserializeAws_restJson1CreateMapCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3055
|
-
var parsedOutput, _a,
|
|
2560
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3056
2561
|
var _c;
|
|
3057
2562
|
return __generator(this, function (_d) {
|
|
3058
2563
|
switch (_d.label) {
|
|
@@ -3089,14 +2594,14 @@ var deserializeAws_restJson1CreateMapCommandError = function (output, context) {
|
|
|
3089
2594
|
case 11: throw _d.sent();
|
|
3090
2595
|
case 12:
|
|
3091
2596
|
parsedBody = parsedOutput.body;
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
$metadata: $metadata,
|
|
2597
|
+
throwDefaultError({
|
|
2598
|
+
output: output,
|
|
2599
|
+
parsedBody: parsedBody,
|
|
2600
|
+
exceptionCtor: __BaseException,
|
|
2601
|
+
errorCode: errorCode,
|
|
3098
2602
|
});
|
|
3099
|
-
|
|
2603
|
+
_d.label = 13;
|
|
2604
|
+
case 13: return [2];
|
|
3100
2605
|
}
|
|
3101
2606
|
});
|
|
3102
2607
|
}); };
|
|
@@ -3108,32 +2613,29 @@ export var deserializeAws_restJson1CreatePlaceIndexCommand = function (output, c
|
|
|
3108
2613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3109
2614
|
return [2, deserializeAws_restJson1CreatePlaceIndexCommandError(output, context)];
|
|
3110
2615
|
}
|
|
3111
|
-
contents = {
|
|
2616
|
+
contents = map({
|
|
3112
2617
|
$metadata: deserializeMetadata(output),
|
|
3113
|
-
|
|
3114
|
-
IndexArn: undefined,
|
|
3115
|
-
IndexName: undefined,
|
|
3116
|
-
};
|
|
2618
|
+
});
|
|
3117
2619
|
_a = __expectNonNull;
|
|
3118
2620
|
_b = __expectObject;
|
|
3119
2621
|
return [4, parseBody(output.body, context)];
|
|
3120
2622
|
case 1:
|
|
3121
2623
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3122
|
-
if (data.CreateTime
|
|
2624
|
+
if (data.CreateTime != null) {
|
|
3123
2625
|
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
3124
2626
|
}
|
|
3125
|
-
if (data.IndexArn
|
|
2627
|
+
if (data.IndexArn != null) {
|
|
3126
2628
|
contents.IndexArn = __expectString(data.IndexArn);
|
|
3127
2629
|
}
|
|
3128
|
-
if (data.IndexName
|
|
2630
|
+
if (data.IndexName != null) {
|
|
3129
2631
|
contents.IndexName = __expectString(data.IndexName);
|
|
3130
2632
|
}
|
|
3131
|
-
return [2,
|
|
2633
|
+
return [2, contents];
|
|
3132
2634
|
}
|
|
3133
2635
|
});
|
|
3134
2636
|
}); };
|
|
3135
2637
|
var deserializeAws_restJson1CreatePlaceIndexCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3136
|
-
var parsedOutput, _a,
|
|
2638
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3137
2639
|
var _c;
|
|
3138
2640
|
return __generator(this, function (_d) {
|
|
3139
2641
|
switch (_d.label) {
|
|
@@ -3170,14 +2672,14 @@ var deserializeAws_restJson1CreatePlaceIndexCommandError = function (output, con
|
|
|
3170
2672
|
case 11: throw _d.sent();
|
|
3171
2673
|
case 12:
|
|
3172
2674
|
parsedBody = parsedOutput.body;
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
$metadata: $metadata,
|
|
2675
|
+
throwDefaultError({
|
|
2676
|
+
output: output,
|
|
2677
|
+
parsedBody: parsedBody,
|
|
2678
|
+
exceptionCtor: __BaseException,
|
|
2679
|
+
errorCode: errorCode,
|
|
3179
2680
|
});
|
|
3180
|
-
|
|
2681
|
+
_d.label = 13;
|
|
2682
|
+
case 13: return [2];
|
|
3181
2683
|
}
|
|
3182
2684
|
});
|
|
3183
2685
|
}); };
|
|
@@ -3189,32 +2691,29 @@ export var deserializeAws_restJson1CreateRouteCalculatorCommand = function (outp
|
|
|
3189
2691
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3190
2692
|
return [2, deserializeAws_restJson1CreateRouteCalculatorCommandError(output, context)];
|
|
3191
2693
|
}
|
|
3192
|
-
contents = {
|
|
2694
|
+
contents = map({
|
|
3193
2695
|
$metadata: deserializeMetadata(output),
|
|
3194
|
-
|
|
3195
|
-
CalculatorName: undefined,
|
|
3196
|
-
CreateTime: undefined,
|
|
3197
|
-
};
|
|
2696
|
+
});
|
|
3198
2697
|
_a = __expectNonNull;
|
|
3199
2698
|
_b = __expectObject;
|
|
3200
2699
|
return [4, parseBody(output.body, context)];
|
|
3201
2700
|
case 1:
|
|
3202
2701
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3203
|
-
if (data.CalculatorArn
|
|
2702
|
+
if (data.CalculatorArn != null) {
|
|
3204
2703
|
contents.CalculatorArn = __expectString(data.CalculatorArn);
|
|
3205
2704
|
}
|
|
3206
|
-
if (data.CalculatorName
|
|
2705
|
+
if (data.CalculatorName != null) {
|
|
3207
2706
|
contents.CalculatorName = __expectString(data.CalculatorName);
|
|
3208
2707
|
}
|
|
3209
|
-
if (data.CreateTime
|
|
2708
|
+
if (data.CreateTime != null) {
|
|
3210
2709
|
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
3211
2710
|
}
|
|
3212
|
-
return [2,
|
|
2711
|
+
return [2, contents];
|
|
3213
2712
|
}
|
|
3214
2713
|
});
|
|
3215
2714
|
}); };
|
|
3216
2715
|
var deserializeAws_restJson1CreateRouteCalculatorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3217
|
-
var parsedOutput, _a,
|
|
2716
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3218
2717
|
var _c;
|
|
3219
2718
|
return __generator(this, function (_d) {
|
|
3220
2719
|
switch (_d.label) {
|
|
@@ -3251,14 +2750,14 @@ var deserializeAws_restJson1CreateRouteCalculatorCommandError = function (output
|
|
|
3251
2750
|
case 11: throw _d.sent();
|
|
3252
2751
|
case 12:
|
|
3253
2752
|
parsedBody = parsedOutput.body;
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
$metadata: $metadata,
|
|
2753
|
+
throwDefaultError({
|
|
2754
|
+
output: output,
|
|
2755
|
+
parsedBody: parsedBody,
|
|
2756
|
+
exceptionCtor: __BaseException,
|
|
2757
|
+
errorCode: errorCode,
|
|
3260
2758
|
});
|
|
3261
|
-
|
|
2759
|
+
_d.label = 13;
|
|
2760
|
+
case 13: return [2];
|
|
3262
2761
|
}
|
|
3263
2762
|
});
|
|
3264
2763
|
}); };
|
|
@@ -3270,32 +2769,29 @@ export var deserializeAws_restJson1CreateTrackerCommand = function (output, cont
|
|
|
3270
2769
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3271
2770
|
return [2, deserializeAws_restJson1CreateTrackerCommandError(output, context)];
|
|
3272
2771
|
}
|
|
3273
|
-
contents = {
|
|
2772
|
+
contents = map({
|
|
3274
2773
|
$metadata: deserializeMetadata(output),
|
|
3275
|
-
|
|
3276
|
-
TrackerArn: undefined,
|
|
3277
|
-
TrackerName: undefined,
|
|
3278
|
-
};
|
|
2774
|
+
});
|
|
3279
2775
|
_a = __expectNonNull;
|
|
3280
2776
|
_b = __expectObject;
|
|
3281
2777
|
return [4, parseBody(output.body, context)];
|
|
3282
2778
|
case 1:
|
|
3283
2779
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3284
|
-
if (data.CreateTime
|
|
2780
|
+
if (data.CreateTime != null) {
|
|
3285
2781
|
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
3286
2782
|
}
|
|
3287
|
-
if (data.TrackerArn
|
|
2783
|
+
if (data.TrackerArn != null) {
|
|
3288
2784
|
contents.TrackerArn = __expectString(data.TrackerArn);
|
|
3289
2785
|
}
|
|
3290
|
-
if (data.TrackerName
|
|
2786
|
+
if (data.TrackerName != null) {
|
|
3291
2787
|
contents.TrackerName = __expectString(data.TrackerName);
|
|
3292
2788
|
}
|
|
3293
|
-
return [2,
|
|
2789
|
+
return [2, contents];
|
|
3294
2790
|
}
|
|
3295
2791
|
});
|
|
3296
2792
|
}); };
|
|
3297
2793
|
var deserializeAws_restJson1CreateTrackerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3298
|
-
var parsedOutput, _a,
|
|
2794
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3299
2795
|
var _c;
|
|
3300
2796
|
return __generator(this, function (_d) {
|
|
3301
2797
|
switch (_d.label) {
|
|
@@ -3332,14 +2828,14 @@ var deserializeAws_restJson1CreateTrackerCommandError = function (output, contex
|
|
|
3332
2828
|
case 11: throw _d.sent();
|
|
3333
2829
|
case 12:
|
|
3334
2830
|
parsedBody = parsedOutput.body;
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
$metadata: $metadata,
|
|
2831
|
+
throwDefaultError({
|
|
2832
|
+
output: output,
|
|
2833
|
+
parsedBody: parsedBody,
|
|
2834
|
+
exceptionCtor: __BaseException,
|
|
2835
|
+
errorCode: errorCode,
|
|
3341
2836
|
});
|
|
3342
|
-
|
|
2837
|
+
_d.label = 13;
|
|
2838
|
+
case 13: return [2];
|
|
3343
2839
|
}
|
|
3344
2840
|
});
|
|
3345
2841
|
}); };
|
|
@@ -3351,18 +2847,18 @@ export var deserializeAws_restJson1DeleteGeofenceCollectionCommand = function (o
|
|
|
3351
2847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3352
2848
|
return [2, deserializeAws_restJson1DeleteGeofenceCollectionCommandError(output, context)];
|
|
3353
2849
|
}
|
|
3354
|
-
contents = {
|
|
2850
|
+
contents = map({
|
|
3355
2851
|
$metadata: deserializeMetadata(output),
|
|
3356
|
-
};
|
|
2852
|
+
});
|
|
3357
2853
|
return [4, collectBody(output.body, context)];
|
|
3358
2854
|
case 1:
|
|
3359
2855
|
_a.sent();
|
|
3360
|
-
return [2,
|
|
2856
|
+
return [2, contents];
|
|
3361
2857
|
}
|
|
3362
2858
|
});
|
|
3363
2859
|
}); };
|
|
3364
2860
|
var deserializeAws_restJson1DeleteGeofenceCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3365
|
-
var parsedOutput, _a,
|
|
2861
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3366
2862
|
var _c;
|
|
3367
2863
|
return __generator(this, function (_d) {
|
|
3368
2864
|
switch (_d.label) {
|
|
@@ -3399,14 +2895,14 @@ var deserializeAws_restJson1DeleteGeofenceCollectionCommandError = function (out
|
|
|
3399
2895
|
case 11: throw _d.sent();
|
|
3400
2896
|
case 12:
|
|
3401
2897
|
parsedBody = parsedOutput.body;
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
$metadata: $metadata,
|
|
2898
|
+
throwDefaultError({
|
|
2899
|
+
output: output,
|
|
2900
|
+
parsedBody: parsedBody,
|
|
2901
|
+
exceptionCtor: __BaseException,
|
|
2902
|
+
errorCode: errorCode,
|
|
3408
2903
|
});
|
|
3409
|
-
|
|
2904
|
+
_d.label = 13;
|
|
2905
|
+
case 13: return [2];
|
|
3410
2906
|
}
|
|
3411
2907
|
});
|
|
3412
2908
|
}); };
|
|
@@ -3418,18 +2914,18 @@ export var deserializeAws_restJson1DeleteMapCommand = function (output, context)
|
|
|
3418
2914
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3419
2915
|
return [2, deserializeAws_restJson1DeleteMapCommandError(output, context)];
|
|
3420
2916
|
}
|
|
3421
|
-
contents = {
|
|
2917
|
+
contents = map({
|
|
3422
2918
|
$metadata: deserializeMetadata(output),
|
|
3423
|
-
};
|
|
2919
|
+
});
|
|
3424
2920
|
return [4, collectBody(output.body, context)];
|
|
3425
2921
|
case 1:
|
|
3426
2922
|
_a.sent();
|
|
3427
|
-
return [2,
|
|
2923
|
+
return [2, contents];
|
|
3428
2924
|
}
|
|
3429
2925
|
});
|
|
3430
2926
|
}); };
|
|
3431
2927
|
var deserializeAws_restJson1DeleteMapCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3432
|
-
var parsedOutput, _a,
|
|
2928
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3433
2929
|
var _c;
|
|
3434
2930
|
return __generator(this, function (_d) {
|
|
3435
2931
|
switch (_d.label) {
|
|
@@ -3466,14 +2962,14 @@ var deserializeAws_restJson1DeleteMapCommandError = function (output, context) {
|
|
|
3466
2962
|
case 11: throw _d.sent();
|
|
3467
2963
|
case 12:
|
|
3468
2964
|
parsedBody = parsedOutput.body;
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
$metadata: $metadata,
|
|
2965
|
+
throwDefaultError({
|
|
2966
|
+
output: output,
|
|
2967
|
+
parsedBody: parsedBody,
|
|
2968
|
+
exceptionCtor: __BaseException,
|
|
2969
|
+
errorCode: errorCode,
|
|
3475
2970
|
});
|
|
3476
|
-
|
|
2971
|
+
_d.label = 13;
|
|
2972
|
+
case 13: return [2];
|
|
3477
2973
|
}
|
|
3478
2974
|
});
|
|
3479
2975
|
}); };
|
|
@@ -3485,18 +2981,18 @@ export var deserializeAws_restJson1DeletePlaceIndexCommand = function (output, c
|
|
|
3485
2981
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3486
2982
|
return [2, deserializeAws_restJson1DeletePlaceIndexCommandError(output, context)];
|
|
3487
2983
|
}
|
|
3488
|
-
contents = {
|
|
2984
|
+
contents = map({
|
|
3489
2985
|
$metadata: deserializeMetadata(output),
|
|
3490
|
-
};
|
|
2986
|
+
});
|
|
3491
2987
|
return [4, collectBody(output.body, context)];
|
|
3492
2988
|
case 1:
|
|
3493
2989
|
_a.sent();
|
|
3494
|
-
return [2,
|
|
2990
|
+
return [2, contents];
|
|
3495
2991
|
}
|
|
3496
2992
|
});
|
|
3497
2993
|
}); };
|
|
3498
2994
|
var deserializeAws_restJson1DeletePlaceIndexCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3499
|
-
var parsedOutput, _a,
|
|
2995
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3500
2996
|
var _c;
|
|
3501
2997
|
return __generator(this, function (_d) {
|
|
3502
2998
|
switch (_d.label) {
|
|
@@ -3533,14 +3029,14 @@ var deserializeAws_restJson1DeletePlaceIndexCommandError = function (output, con
|
|
|
3533
3029
|
case 11: throw _d.sent();
|
|
3534
3030
|
case 12:
|
|
3535
3031
|
parsedBody = parsedOutput.body;
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
$metadata: $metadata,
|
|
3032
|
+
throwDefaultError({
|
|
3033
|
+
output: output,
|
|
3034
|
+
parsedBody: parsedBody,
|
|
3035
|
+
exceptionCtor: __BaseException,
|
|
3036
|
+
errorCode: errorCode,
|
|
3542
3037
|
});
|
|
3543
|
-
|
|
3038
|
+
_d.label = 13;
|
|
3039
|
+
case 13: return [2];
|
|
3544
3040
|
}
|
|
3545
3041
|
});
|
|
3546
3042
|
}); };
|
|
@@ -3552,18 +3048,18 @@ export var deserializeAws_restJson1DeleteRouteCalculatorCommand = function (outp
|
|
|
3552
3048
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3553
3049
|
return [2, deserializeAws_restJson1DeleteRouteCalculatorCommandError(output, context)];
|
|
3554
3050
|
}
|
|
3555
|
-
contents = {
|
|
3051
|
+
contents = map({
|
|
3556
3052
|
$metadata: deserializeMetadata(output),
|
|
3557
|
-
};
|
|
3053
|
+
});
|
|
3558
3054
|
return [4, collectBody(output.body, context)];
|
|
3559
3055
|
case 1:
|
|
3560
3056
|
_a.sent();
|
|
3561
|
-
return [2,
|
|
3057
|
+
return [2, contents];
|
|
3562
3058
|
}
|
|
3563
3059
|
});
|
|
3564
3060
|
}); };
|
|
3565
3061
|
var deserializeAws_restJson1DeleteRouteCalculatorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3566
|
-
var parsedOutput, _a,
|
|
3062
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3567
3063
|
var _c;
|
|
3568
3064
|
return __generator(this, function (_d) {
|
|
3569
3065
|
switch (_d.label) {
|
|
@@ -3600,14 +3096,14 @@ var deserializeAws_restJson1DeleteRouteCalculatorCommandError = function (output
|
|
|
3600
3096
|
case 11: throw _d.sent();
|
|
3601
3097
|
case 12:
|
|
3602
3098
|
parsedBody = parsedOutput.body;
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
$metadata: $metadata,
|
|
3099
|
+
throwDefaultError({
|
|
3100
|
+
output: output,
|
|
3101
|
+
parsedBody: parsedBody,
|
|
3102
|
+
exceptionCtor: __BaseException,
|
|
3103
|
+
errorCode: errorCode,
|
|
3609
3104
|
});
|
|
3610
|
-
|
|
3105
|
+
_d.label = 13;
|
|
3106
|
+
case 13: return [2];
|
|
3611
3107
|
}
|
|
3612
3108
|
});
|
|
3613
3109
|
}); };
|
|
@@ -3619,18 +3115,18 @@ export var deserializeAws_restJson1DeleteTrackerCommand = function (output, cont
|
|
|
3619
3115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3620
3116
|
return [2, deserializeAws_restJson1DeleteTrackerCommandError(output, context)];
|
|
3621
3117
|
}
|
|
3622
|
-
contents = {
|
|
3118
|
+
contents = map({
|
|
3623
3119
|
$metadata: deserializeMetadata(output),
|
|
3624
|
-
};
|
|
3120
|
+
});
|
|
3625
3121
|
return [4, collectBody(output.body, context)];
|
|
3626
3122
|
case 1:
|
|
3627
3123
|
_a.sent();
|
|
3628
|
-
return [2,
|
|
3124
|
+
return [2, contents];
|
|
3629
3125
|
}
|
|
3630
3126
|
});
|
|
3631
3127
|
}); };
|
|
3632
3128
|
var deserializeAws_restJson1DeleteTrackerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3633
|
-
var parsedOutput, _a,
|
|
3129
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3634
3130
|
var _c;
|
|
3635
3131
|
return __generator(this, function (_d) {
|
|
3636
3132
|
switch (_d.label) {
|
|
@@ -3667,14 +3163,14 @@ var deserializeAws_restJson1DeleteTrackerCommandError = function (output, contex
|
|
|
3667
3163
|
case 11: throw _d.sent();
|
|
3668
3164
|
case 12:
|
|
3669
3165
|
parsedBody = parsedOutput.body;
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
$metadata: $metadata,
|
|
3166
|
+
throwDefaultError({
|
|
3167
|
+
output: output,
|
|
3168
|
+
parsedBody: parsedBody,
|
|
3169
|
+
exceptionCtor: __BaseException,
|
|
3170
|
+
errorCode: errorCode,
|
|
3676
3171
|
});
|
|
3677
|
-
|
|
3172
|
+
_d.label = 13;
|
|
3173
|
+
case 13: return [2];
|
|
3678
3174
|
}
|
|
3679
3175
|
});
|
|
3680
3176
|
}); };
|
|
@@ -3686,56 +3182,47 @@ export var deserializeAws_restJson1DescribeGeofenceCollectionCommand = function
|
|
|
3686
3182
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3687
3183
|
return [2, deserializeAws_restJson1DescribeGeofenceCollectionCommandError(output, context)];
|
|
3688
3184
|
}
|
|
3689
|
-
contents = {
|
|
3185
|
+
contents = map({
|
|
3690
3186
|
$metadata: deserializeMetadata(output),
|
|
3691
|
-
|
|
3692
|
-
CollectionName: undefined,
|
|
3693
|
-
CreateTime: undefined,
|
|
3694
|
-
Description: undefined,
|
|
3695
|
-
KmsKeyId: undefined,
|
|
3696
|
-
PricingPlan: undefined,
|
|
3697
|
-
PricingPlanDataSource: undefined,
|
|
3698
|
-
Tags: undefined,
|
|
3699
|
-
UpdateTime: undefined,
|
|
3700
|
-
};
|
|
3187
|
+
});
|
|
3701
3188
|
_a = __expectNonNull;
|
|
3702
3189
|
_b = __expectObject;
|
|
3703
3190
|
return [4, parseBody(output.body, context)];
|
|
3704
3191
|
case 1:
|
|
3705
3192
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3706
|
-
if (data.CollectionArn
|
|
3193
|
+
if (data.CollectionArn != null) {
|
|
3707
3194
|
contents.CollectionArn = __expectString(data.CollectionArn);
|
|
3708
3195
|
}
|
|
3709
|
-
if (data.CollectionName
|
|
3196
|
+
if (data.CollectionName != null) {
|
|
3710
3197
|
contents.CollectionName = __expectString(data.CollectionName);
|
|
3711
3198
|
}
|
|
3712
|
-
if (data.CreateTime
|
|
3199
|
+
if (data.CreateTime != null) {
|
|
3713
3200
|
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
3714
3201
|
}
|
|
3715
|
-
if (data.Description
|
|
3202
|
+
if (data.Description != null) {
|
|
3716
3203
|
contents.Description = __expectString(data.Description);
|
|
3717
3204
|
}
|
|
3718
|
-
if (data.KmsKeyId
|
|
3205
|
+
if (data.KmsKeyId != null) {
|
|
3719
3206
|
contents.KmsKeyId = __expectString(data.KmsKeyId);
|
|
3720
3207
|
}
|
|
3721
|
-
if (data.PricingPlan
|
|
3208
|
+
if (data.PricingPlan != null) {
|
|
3722
3209
|
contents.PricingPlan = __expectString(data.PricingPlan);
|
|
3723
3210
|
}
|
|
3724
|
-
if (data.PricingPlanDataSource
|
|
3211
|
+
if (data.PricingPlanDataSource != null) {
|
|
3725
3212
|
contents.PricingPlanDataSource = __expectString(data.PricingPlanDataSource);
|
|
3726
3213
|
}
|
|
3727
|
-
if (data.Tags
|
|
3214
|
+
if (data.Tags != null) {
|
|
3728
3215
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
3729
3216
|
}
|
|
3730
|
-
if (data.UpdateTime
|
|
3217
|
+
if (data.UpdateTime != null) {
|
|
3731
3218
|
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
3732
3219
|
}
|
|
3733
|
-
return [2,
|
|
3220
|
+
return [2, contents];
|
|
3734
3221
|
}
|
|
3735
3222
|
});
|
|
3736
3223
|
}); };
|
|
3737
3224
|
var deserializeAws_restJson1DescribeGeofenceCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3738
|
-
var parsedOutput, _a,
|
|
3225
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3739
3226
|
var _c;
|
|
3740
3227
|
return __generator(this, function (_d) {
|
|
3741
3228
|
switch (_d.label) {
|
|
@@ -3772,14 +3259,14 @@ var deserializeAws_restJson1DescribeGeofenceCollectionCommandError = function (o
|
|
|
3772
3259
|
case 11: throw _d.sent();
|
|
3773
3260
|
case 12:
|
|
3774
3261
|
parsedBody = parsedOutput.body;
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
$metadata: $metadata,
|
|
3262
|
+
throwDefaultError({
|
|
3263
|
+
output: output,
|
|
3264
|
+
parsedBody: parsedBody,
|
|
3265
|
+
exceptionCtor: __BaseException,
|
|
3266
|
+
errorCode: errorCode,
|
|
3781
3267
|
});
|
|
3782
|
-
|
|
3268
|
+
_d.label = 13;
|
|
3269
|
+
case 13: return [2];
|
|
3783
3270
|
}
|
|
3784
3271
|
});
|
|
3785
3272
|
}); };
|
|
@@ -3791,56 +3278,47 @@ export var deserializeAws_restJson1DescribeMapCommand = function (output, contex
|
|
|
3791
3278
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3792
3279
|
return [2, deserializeAws_restJson1DescribeMapCommandError(output, context)];
|
|
3793
3280
|
}
|
|
3794
|
-
contents = {
|
|
3281
|
+
contents = map({
|
|
3795
3282
|
$metadata: deserializeMetadata(output),
|
|
3796
|
-
|
|
3797
|
-
CreateTime: undefined,
|
|
3798
|
-
DataSource: undefined,
|
|
3799
|
-
Description: undefined,
|
|
3800
|
-
MapArn: undefined,
|
|
3801
|
-
MapName: undefined,
|
|
3802
|
-
PricingPlan: undefined,
|
|
3803
|
-
Tags: undefined,
|
|
3804
|
-
UpdateTime: undefined,
|
|
3805
|
-
};
|
|
3283
|
+
});
|
|
3806
3284
|
_a = __expectNonNull;
|
|
3807
3285
|
_b = __expectObject;
|
|
3808
3286
|
return [4, parseBody(output.body, context)];
|
|
3809
3287
|
case 1:
|
|
3810
3288
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3811
|
-
if (data.Configuration
|
|
3289
|
+
if (data.Configuration != null) {
|
|
3812
3290
|
contents.Configuration = deserializeAws_restJson1MapConfiguration(data.Configuration, context);
|
|
3813
3291
|
}
|
|
3814
|
-
if (data.CreateTime
|
|
3292
|
+
if (data.CreateTime != null) {
|
|
3815
3293
|
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
3816
3294
|
}
|
|
3817
|
-
if (data.DataSource
|
|
3295
|
+
if (data.DataSource != null) {
|
|
3818
3296
|
contents.DataSource = __expectString(data.DataSource);
|
|
3819
3297
|
}
|
|
3820
|
-
if (data.Description
|
|
3298
|
+
if (data.Description != null) {
|
|
3821
3299
|
contents.Description = __expectString(data.Description);
|
|
3822
3300
|
}
|
|
3823
|
-
if (data.MapArn
|
|
3301
|
+
if (data.MapArn != null) {
|
|
3824
3302
|
contents.MapArn = __expectString(data.MapArn);
|
|
3825
3303
|
}
|
|
3826
|
-
if (data.MapName
|
|
3304
|
+
if (data.MapName != null) {
|
|
3827
3305
|
contents.MapName = __expectString(data.MapName);
|
|
3828
3306
|
}
|
|
3829
|
-
if (data.PricingPlan
|
|
3307
|
+
if (data.PricingPlan != null) {
|
|
3830
3308
|
contents.PricingPlan = __expectString(data.PricingPlan);
|
|
3831
3309
|
}
|
|
3832
|
-
if (data.Tags
|
|
3310
|
+
if (data.Tags != null) {
|
|
3833
3311
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
3834
3312
|
}
|
|
3835
|
-
if (data.UpdateTime
|
|
3313
|
+
if (data.UpdateTime != null) {
|
|
3836
3314
|
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
3837
3315
|
}
|
|
3838
|
-
return [2,
|
|
3316
|
+
return [2, contents];
|
|
3839
3317
|
}
|
|
3840
3318
|
});
|
|
3841
3319
|
}); };
|
|
3842
3320
|
var deserializeAws_restJson1DescribeMapCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3843
|
-
var parsedOutput, _a,
|
|
3321
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3844
3322
|
var _c;
|
|
3845
3323
|
return __generator(this, function (_d) {
|
|
3846
3324
|
switch (_d.label) {
|
|
@@ -3877,14 +3355,14 @@ var deserializeAws_restJson1DescribeMapCommandError = function (output, context)
|
|
|
3877
3355
|
case 11: throw _d.sent();
|
|
3878
3356
|
case 12:
|
|
3879
3357
|
parsedBody = parsedOutput.body;
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
$metadata: $metadata,
|
|
3358
|
+
throwDefaultError({
|
|
3359
|
+
output: output,
|
|
3360
|
+
parsedBody: parsedBody,
|
|
3361
|
+
exceptionCtor: __BaseException,
|
|
3362
|
+
errorCode: errorCode,
|
|
3886
3363
|
});
|
|
3887
|
-
|
|
3364
|
+
_d.label = 13;
|
|
3365
|
+
case 13: return [2];
|
|
3888
3366
|
}
|
|
3889
3367
|
});
|
|
3890
3368
|
}); };
|
|
@@ -3896,56 +3374,47 @@ export var deserializeAws_restJson1DescribePlaceIndexCommand = function (output,
|
|
|
3896
3374
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3897
3375
|
return [2, deserializeAws_restJson1DescribePlaceIndexCommandError(output, context)];
|
|
3898
3376
|
}
|
|
3899
|
-
contents = {
|
|
3377
|
+
contents = map({
|
|
3900
3378
|
$metadata: deserializeMetadata(output),
|
|
3901
|
-
|
|
3902
|
-
DataSource: undefined,
|
|
3903
|
-
DataSourceConfiguration: undefined,
|
|
3904
|
-
Description: undefined,
|
|
3905
|
-
IndexArn: undefined,
|
|
3906
|
-
IndexName: undefined,
|
|
3907
|
-
PricingPlan: undefined,
|
|
3908
|
-
Tags: undefined,
|
|
3909
|
-
UpdateTime: undefined,
|
|
3910
|
-
};
|
|
3379
|
+
});
|
|
3911
3380
|
_a = __expectNonNull;
|
|
3912
3381
|
_b = __expectObject;
|
|
3913
3382
|
return [4, parseBody(output.body, context)];
|
|
3914
3383
|
case 1:
|
|
3915
3384
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3916
|
-
if (data.CreateTime
|
|
3385
|
+
if (data.CreateTime != null) {
|
|
3917
3386
|
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
3918
3387
|
}
|
|
3919
|
-
if (data.DataSource
|
|
3388
|
+
if (data.DataSource != null) {
|
|
3920
3389
|
contents.DataSource = __expectString(data.DataSource);
|
|
3921
3390
|
}
|
|
3922
|
-
if (data.DataSourceConfiguration
|
|
3391
|
+
if (data.DataSourceConfiguration != null) {
|
|
3923
3392
|
contents.DataSourceConfiguration = deserializeAws_restJson1DataSourceConfiguration(data.DataSourceConfiguration, context);
|
|
3924
3393
|
}
|
|
3925
|
-
if (data.Description
|
|
3394
|
+
if (data.Description != null) {
|
|
3926
3395
|
contents.Description = __expectString(data.Description);
|
|
3927
3396
|
}
|
|
3928
|
-
if (data.IndexArn
|
|
3397
|
+
if (data.IndexArn != null) {
|
|
3929
3398
|
contents.IndexArn = __expectString(data.IndexArn);
|
|
3930
3399
|
}
|
|
3931
|
-
if (data.IndexName
|
|
3400
|
+
if (data.IndexName != null) {
|
|
3932
3401
|
contents.IndexName = __expectString(data.IndexName);
|
|
3933
3402
|
}
|
|
3934
|
-
if (data.PricingPlan
|
|
3403
|
+
if (data.PricingPlan != null) {
|
|
3935
3404
|
contents.PricingPlan = __expectString(data.PricingPlan);
|
|
3936
3405
|
}
|
|
3937
|
-
if (data.Tags
|
|
3406
|
+
if (data.Tags != null) {
|
|
3938
3407
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
3939
3408
|
}
|
|
3940
|
-
if (data.UpdateTime
|
|
3409
|
+
if (data.UpdateTime != null) {
|
|
3941
3410
|
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
3942
3411
|
}
|
|
3943
|
-
return [2,
|
|
3412
|
+
return [2, contents];
|
|
3944
3413
|
}
|
|
3945
3414
|
});
|
|
3946
3415
|
}); };
|
|
3947
3416
|
var deserializeAws_restJson1DescribePlaceIndexCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3948
|
-
var parsedOutput, _a,
|
|
3417
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
3949
3418
|
var _c;
|
|
3950
3419
|
return __generator(this, function (_d) {
|
|
3951
3420
|
switch (_d.label) {
|
|
@@ -3982,14 +3451,14 @@ var deserializeAws_restJson1DescribePlaceIndexCommandError = function (output, c
|
|
|
3982
3451
|
case 11: throw _d.sent();
|
|
3983
3452
|
case 12:
|
|
3984
3453
|
parsedBody = parsedOutput.body;
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
$metadata: $metadata,
|
|
3454
|
+
throwDefaultError({
|
|
3455
|
+
output: output,
|
|
3456
|
+
parsedBody: parsedBody,
|
|
3457
|
+
exceptionCtor: __BaseException,
|
|
3458
|
+
errorCode: errorCode,
|
|
3991
3459
|
});
|
|
3992
|
-
|
|
3460
|
+
_d.label = 13;
|
|
3461
|
+
case 13: return [2];
|
|
3993
3462
|
}
|
|
3994
3463
|
});
|
|
3995
3464
|
}); };
|
|
@@ -4001,52 +3470,44 @@ export var deserializeAws_restJson1DescribeRouteCalculatorCommand = function (ou
|
|
|
4001
3470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4002
3471
|
return [2, deserializeAws_restJson1DescribeRouteCalculatorCommandError(output, context)];
|
|
4003
3472
|
}
|
|
4004
|
-
contents = {
|
|
3473
|
+
contents = map({
|
|
4005
3474
|
$metadata: deserializeMetadata(output),
|
|
4006
|
-
|
|
4007
|
-
CalculatorName: undefined,
|
|
4008
|
-
CreateTime: undefined,
|
|
4009
|
-
DataSource: undefined,
|
|
4010
|
-
Description: undefined,
|
|
4011
|
-
PricingPlan: undefined,
|
|
4012
|
-
Tags: undefined,
|
|
4013
|
-
UpdateTime: undefined,
|
|
4014
|
-
};
|
|
3475
|
+
});
|
|
4015
3476
|
_a = __expectNonNull;
|
|
4016
3477
|
_b = __expectObject;
|
|
4017
3478
|
return [4, parseBody(output.body, context)];
|
|
4018
3479
|
case 1:
|
|
4019
3480
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4020
|
-
if (data.CalculatorArn
|
|
3481
|
+
if (data.CalculatorArn != null) {
|
|
4021
3482
|
contents.CalculatorArn = __expectString(data.CalculatorArn);
|
|
4022
3483
|
}
|
|
4023
|
-
if (data.CalculatorName
|
|
3484
|
+
if (data.CalculatorName != null) {
|
|
4024
3485
|
contents.CalculatorName = __expectString(data.CalculatorName);
|
|
4025
3486
|
}
|
|
4026
|
-
if (data.CreateTime
|
|
3487
|
+
if (data.CreateTime != null) {
|
|
4027
3488
|
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
4028
3489
|
}
|
|
4029
|
-
if (data.DataSource
|
|
3490
|
+
if (data.DataSource != null) {
|
|
4030
3491
|
contents.DataSource = __expectString(data.DataSource);
|
|
4031
3492
|
}
|
|
4032
|
-
if (data.Description
|
|
3493
|
+
if (data.Description != null) {
|
|
4033
3494
|
contents.Description = __expectString(data.Description);
|
|
4034
3495
|
}
|
|
4035
|
-
if (data.PricingPlan
|
|
3496
|
+
if (data.PricingPlan != null) {
|
|
4036
3497
|
contents.PricingPlan = __expectString(data.PricingPlan);
|
|
4037
3498
|
}
|
|
4038
|
-
if (data.Tags
|
|
3499
|
+
if (data.Tags != null) {
|
|
4039
3500
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
4040
3501
|
}
|
|
4041
|
-
if (data.UpdateTime
|
|
3502
|
+
if (data.UpdateTime != null) {
|
|
4042
3503
|
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
4043
3504
|
}
|
|
4044
|
-
return [2,
|
|
3505
|
+
return [2, contents];
|
|
4045
3506
|
}
|
|
4046
3507
|
});
|
|
4047
3508
|
}); };
|
|
4048
3509
|
var deserializeAws_restJson1DescribeRouteCalculatorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4049
|
-
var parsedOutput, _a,
|
|
3510
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4050
3511
|
var _c;
|
|
4051
3512
|
return __generator(this, function (_d) {
|
|
4052
3513
|
switch (_d.label) {
|
|
@@ -4083,14 +3544,14 @@ var deserializeAws_restJson1DescribeRouteCalculatorCommandError = function (outp
|
|
|
4083
3544
|
case 11: throw _d.sent();
|
|
4084
3545
|
case 12:
|
|
4085
3546
|
parsedBody = parsedOutput.body;
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
$metadata: $metadata,
|
|
3547
|
+
throwDefaultError({
|
|
3548
|
+
output: output,
|
|
3549
|
+
parsedBody: parsedBody,
|
|
3550
|
+
exceptionCtor: __BaseException,
|
|
3551
|
+
errorCode: errorCode,
|
|
4092
3552
|
});
|
|
4093
|
-
|
|
3553
|
+
_d.label = 13;
|
|
3554
|
+
case 13: return [2];
|
|
4094
3555
|
}
|
|
4095
3556
|
});
|
|
4096
3557
|
}); };
|
|
@@ -4102,60 +3563,50 @@ export var deserializeAws_restJson1DescribeTrackerCommand = function (output, co
|
|
|
4102
3563
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4103
3564
|
return [2, deserializeAws_restJson1DescribeTrackerCommandError(output, context)];
|
|
4104
3565
|
}
|
|
4105
|
-
contents = {
|
|
3566
|
+
contents = map({
|
|
4106
3567
|
$metadata: deserializeMetadata(output),
|
|
4107
|
-
|
|
4108
|
-
Description: undefined,
|
|
4109
|
-
KmsKeyId: undefined,
|
|
4110
|
-
PositionFiltering: undefined,
|
|
4111
|
-
PricingPlan: undefined,
|
|
4112
|
-
PricingPlanDataSource: undefined,
|
|
4113
|
-
Tags: undefined,
|
|
4114
|
-
TrackerArn: undefined,
|
|
4115
|
-
TrackerName: undefined,
|
|
4116
|
-
UpdateTime: undefined,
|
|
4117
|
-
};
|
|
3568
|
+
});
|
|
4118
3569
|
_a = __expectNonNull;
|
|
4119
3570
|
_b = __expectObject;
|
|
4120
3571
|
return [4, parseBody(output.body, context)];
|
|
4121
3572
|
case 1:
|
|
4122
3573
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4123
|
-
if (data.CreateTime
|
|
3574
|
+
if (data.CreateTime != null) {
|
|
4124
3575
|
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
4125
3576
|
}
|
|
4126
|
-
if (data.Description
|
|
3577
|
+
if (data.Description != null) {
|
|
4127
3578
|
contents.Description = __expectString(data.Description);
|
|
4128
3579
|
}
|
|
4129
|
-
if (data.KmsKeyId
|
|
3580
|
+
if (data.KmsKeyId != null) {
|
|
4130
3581
|
contents.KmsKeyId = __expectString(data.KmsKeyId);
|
|
4131
3582
|
}
|
|
4132
|
-
if (data.PositionFiltering
|
|
3583
|
+
if (data.PositionFiltering != null) {
|
|
4133
3584
|
contents.PositionFiltering = __expectString(data.PositionFiltering);
|
|
4134
3585
|
}
|
|
4135
|
-
if (data.PricingPlan
|
|
3586
|
+
if (data.PricingPlan != null) {
|
|
4136
3587
|
contents.PricingPlan = __expectString(data.PricingPlan);
|
|
4137
3588
|
}
|
|
4138
|
-
if (data.PricingPlanDataSource
|
|
3589
|
+
if (data.PricingPlanDataSource != null) {
|
|
4139
3590
|
contents.PricingPlanDataSource = __expectString(data.PricingPlanDataSource);
|
|
4140
3591
|
}
|
|
4141
|
-
if (data.Tags
|
|
3592
|
+
if (data.Tags != null) {
|
|
4142
3593
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
4143
3594
|
}
|
|
4144
|
-
if (data.TrackerArn
|
|
3595
|
+
if (data.TrackerArn != null) {
|
|
4145
3596
|
contents.TrackerArn = __expectString(data.TrackerArn);
|
|
4146
3597
|
}
|
|
4147
|
-
if (data.TrackerName
|
|
3598
|
+
if (data.TrackerName != null) {
|
|
4148
3599
|
contents.TrackerName = __expectString(data.TrackerName);
|
|
4149
3600
|
}
|
|
4150
|
-
if (data.UpdateTime
|
|
3601
|
+
if (data.UpdateTime != null) {
|
|
4151
3602
|
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
4152
3603
|
}
|
|
4153
|
-
return [2,
|
|
3604
|
+
return [2, contents];
|
|
4154
3605
|
}
|
|
4155
3606
|
});
|
|
4156
3607
|
}); };
|
|
4157
3608
|
var deserializeAws_restJson1DescribeTrackerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4158
|
-
var parsedOutput, _a,
|
|
3609
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4159
3610
|
var _c;
|
|
4160
3611
|
return __generator(this, function (_d) {
|
|
4161
3612
|
switch (_d.label) {
|
|
@@ -4192,14 +3643,14 @@ var deserializeAws_restJson1DescribeTrackerCommandError = function (output, cont
|
|
|
4192
3643
|
case 11: throw _d.sent();
|
|
4193
3644
|
case 12:
|
|
4194
3645
|
parsedBody = parsedOutput.body;
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
$metadata: $metadata,
|
|
3646
|
+
throwDefaultError({
|
|
3647
|
+
output: output,
|
|
3648
|
+
parsedBody: parsedBody,
|
|
3649
|
+
exceptionCtor: __BaseException,
|
|
3650
|
+
errorCode: errorCode,
|
|
4201
3651
|
});
|
|
4202
|
-
|
|
3652
|
+
_d.label = 13;
|
|
3653
|
+
case 13: return [2];
|
|
4203
3654
|
}
|
|
4204
3655
|
});
|
|
4205
3656
|
}); };
|
|
@@ -4211,18 +3662,18 @@ export var deserializeAws_restJson1DisassociateTrackerConsumerCommand = function
|
|
|
4211
3662
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4212
3663
|
return [2, deserializeAws_restJson1DisassociateTrackerConsumerCommandError(output, context)];
|
|
4213
3664
|
}
|
|
4214
|
-
contents = {
|
|
3665
|
+
contents = map({
|
|
4215
3666
|
$metadata: deserializeMetadata(output),
|
|
4216
|
-
};
|
|
3667
|
+
});
|
|
4217
3668
|
return [4, collectBody(output.body, context)];
|
|
4218
3669
|
case 1:
|
|
4219
3670
|
_a.sent();
|
|
4220
|
-
return [2,
|
|
3671
|
+
return [2, contents];
|
|
4221
3672
|
}
|
|
4222
3673
|
});
|
|
4223
3674
|
}); };
|
|
4224
3675
|
var deserializeAws_restJson1DisassociateTrackerConsumerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4225
|
-
var parsedOutput, _a,
|
|
3676
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4226
3677
|
var _c;
|
|
4227
3678
|
return __generator(this, function (_d) {
|
|
4228
3679
|
switch (_d.label) {
|
|
@@ -4259,14 +3710,14 @@ var deserializeAws_restJson1DisassociateTrackerConsumerCommandError = function (
|
|
|
4259
3710
|
case 11: throw _d.sent();
|
|
4260
3711
|
case 12:
|
|
4261
3712
|
parsedBody = parsedOutput.body;
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
$metadata: $metadata,
|
|
3713
|
+
throwDefaultError({
|
|
3714
|
+
output: output,
|
|
3715
|
+
parsedBody: parsedBody,
|
|
3716
|
+
exceptionCtor: __BaseException,
|
|
3717
|
+
errorCode: errorCode,
|
|
4268
3718
|
});
|
|
4269
|
-
|
|
3719
|
+
_d.label = 13;
|
|
3720
|
+
case 13: return [2];
|
|
4270
3721
|
}
|
|
4271
3722
|
});
|
|
4272
3723
|
}); };
|
|
@@ -4278,44 +3729,38 @@ export var deserializeAws_restJson1GetDevicePositionCommand = function (output,
|
|
|
4278
3729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4279
3730
|
return [2, deserializeAws_restJson1GetDevicePositionCommandError(output, context)];
|
|
4280
3731
|
}
|
|
4281
|
-
contents = {
|
|
3732
|
+
contents = map({
|
|
4282
3733
|
$metadata: deserializeMetadata(output),
|
|
4283
|
-
|
|
4284
|
-
DeviceId: undefined,
|
|
4285
|
-
Position: undefined,
|
|
4286
|
-
PositionProperties: undefined,
|
|
4287
|
-
ReceivedTime: undefined,
|
|
4288
|
-
SampleTime: undefined,
|
|
4289
|
-
};
|
|
3734
|
+
});
|
|
4290
3735
|
_a = __expectNonNull;
|
|
4291
3736
|
_b = __expectObject;
|
|
4292
3737
|
return [4, parseBody(output.body, context)];
|
|
4293
3738
|
case 1:
|
|
4294
3739
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4295
|
-
if (data.Accuracy
|
|
3740
|
+
if (data.Accuracy != null) {
|
|
4296
3741
|
contents.Accuracy = deserializeAws_restJson1PositionalAccuracy(data.Accuracy, context);
|
|
4297
3742
|
}
|
|
4298
|
-
if (data.DeviceId
|
|
3743
|
+
if (data.DeviceId != null) {
|
|
4299
3744
|
contents.DeviceId = __expectString(data.DeviceId);
|
|
4300
3745
|
}
|
|
4301
|
-
if (data.Position
|
|
3746
|
+
if (data.Position != null) {
|
|
4302
3747
|
contents.Position = deserializeAws_restJson1Position(data.Position, context);
|
|
4303
3748
|
}
|
|
4304
|
-
if (data.PositionProperties
|
|
3749
|
+
if (data.PositionProperties != null) {
|
|
4305
3750
|
contents.PositionProperties = deserializeAws_restJson1PropertyMap(data.PositionProperties, context);
|
|
4306
3751
|
}
|
|
4307
|
-
if (data.ReceivedTime
|
|
3752
|
+
if (data.ReceivedTime != null) {
|
|
4308
3753
|
contents.ReceivedTime = __expectNonNull(__parseRfc3339DateTime(data.ReceivedTime));
|
|
4309
3754
|
}
|
|
4310
|
-
if (data.SampleTime
|
|
3755
|
+
if (data.SampleTime != null) {
|
|
4311
3756
|
contents.SampleTime = __expectNonNull(__parseRfc3339DateTime(data.SampleTime));
|
|
4312
3757
|
}
|
|
4313
|
-
return [2,
|
|
3758
|
+
return [2, contents];
|
|
4314
3759
|
}
|
|
4315
3760
|
});
|
|
4316
3761
|
}); };
|
|
4317
3762
|
var deserializeAws_restJson1GetDevicePositionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4318
|
-
var parsedOutput, _a,
|
|
3763
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4319
3764
|
var _c;
|
|
4320
3765
|
return __generator(this, function (_d) {
|
|
4321
3766
|
switch (_d.label) {
|
|
@@ -4352,14 +3797,14 @@ var deserializeAws_restJson1GetDevicePositionCommandError = function (output, co
|
|
|
4352
3797
|
case 11: throw _d.sent();
|
|
4353
3798
|
case 12:
|
|
4354
3799
|
parsedBody = parsedOutput.body;
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
$metadata: $metadata,
|
|
3800
|
+
throwDefaultError({
|
|
3801
|
+
output: output,
|
|
3802
|
+
parsedBody: parsedBody,
|
|
3803
|
+
exceptionCtor: __BaseException,
|
|
3804
|
+
errorCode: errorCode,
|
|
4361
3805
|
});
|
|
4362
|
-
|
|
3806
|
+
_d.label = 13;
|
|
3807
|
+
case 13: return [2];
|
|
4363
3808
|
}
|
|
4364
3809
|
});
|
|
4365
3810
|
}); };
|
|
@@ -4371,28 +3816,26 @@ export var deserializeAws_restJson1GetDevicePositionHistoryCommand = function (o
|
|
|
4371
3816
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4372
3817
|
return [2, deserializeAws_restJson1GetDevicePositionHistoryCommandError(output, context)];
|
|
4373
3818
|
}
|
|
4374
|
-
contents = {
|
|
3819
|
+
contents = map({
|
|
4375
3820
|
$metadata: deserializeMetadata(output),
|
|
4376
|
-
|
|
4377
|
-
NextToken: undefined,
|
|
4378
|
-
};
|
|
3821
|
+
});
|
|
4379
3822
|
_a = __expectNonNull;
|
|
4380
3823
|
_b = __expectObject;
|
|
4381
3824
|
return [4, parseBody(output.body, context)];
|
|
4382
3825
|
case 1:
|
|
4383
3826
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4384
|
-
if (data.DevicePositions
|
|
3827
|
+
if (data.DevicePositions != null) {
|
|
4385
3828
|
contents.DevicePositions = deserializeAws_restJson1DevicePositionList(data.DevicePositions, context);
|
|
4386
3829
|
}
|
|
4387
|
-
if (data.NextToken
|
|
3830
|
+
if (data.NextToken != null) {
|
|
4388
3831
|
contents.NextToken = __expectString(data.NextToken);
|
|
4389
3832
|
}
|
|
4390
|
-
return [2,
|
|
3833
|
+
return [2, contents];
|
|
4391
3834
|
}
|
|
4392
3835
|
});
|
|
4393
3836
|
}); };
|
|
4394
3837
|
var deserializeAws_restJson1GetDevicePositionHistoryCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4395
|
-
var parsedOutput, _a,
|
|
3838
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4396
3839
|
var _c;
|
|
4397
3840
|
return __generator(this, function (_d) {
|
|
4398
3841
|
switch (_d.label) {
|
|
@@ -4429,14 +3872,14 @@ var deserializeAws_restJson1GetDevicePositionHistoryCommandError = function (out
|
|
|
4429
3872
|
case 11: throw _d.sent();
|
|
4430
3873
|
case 12:
|
|
4431
3874
|
parsedBody = parsedOutput.body;
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
$metadata: $metadata,
|
|
3875
|
+
throwDefaultError({
|
|
3876
|
+
output: output,
|
|
3877
|
+
parsedBody: parsedBody,
|
|
3878
|
+
exceptionCtor: __BaseException,
|
|
3879
|
+
errorCode: errorCode,
|
|
4438
3880
|
});
|
|
4439
|
-
|
|
3881
|
+
_d.label = 13;
|
|
3882
|
+
case 13: return [2];
|
|
4440
3883
|
}
|
|
4441
3884
|
});
|
|
4442
3885
|
}); };
|
|
@@ -4448,40 +3891,35 @@ export var deserializeAws_restJson1GetGeofenceCommand = function (output, contex
|
|
|
4448
3891
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4449
3892
|
return [2, deserializeAws_restJson1GetGeofenceCommandError(output, context)];
|
|
4450
3893
|
}
|
|
4451
|
-
contents = {
|
|
3894
|
+
contents = map({
|
|
4452
3895
|
$metadata: deserializeMetadata(output),
|
|
4453
|
-
|
|
4454
|
-
GeofenceId: undefined,
|
|
4455
|
-
Geometry: undefined,
|
|
4456
|
-
Status: undefined,
|
|
4457
|
-
UpdateTime: undefined,
|
|
4458
|
-
};
|
|
3896
|
+
});
|
|
4459
3897
|
_a = __expectNonNull;
|
|
4460
3898
|
_b = __expectObject;
|
|
4461
3899
|
return [4, parseBody(output.body, context)];
|
|
4462
3900
|
case 1:
|
|
4463
3901
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4464
|
-
if (data.CreateTime
|
|
3902
|
+
if (data.CreateTime != null) {
|
|
4465
3903
|
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
4466
3904
|
}
|
|
4467
|
-
if (data.GeofenceId
|
|
3905
|
+
if (data.GeofenceId != null) {
|
|
4468
3906
|
contents.GeofenceId = __expectString(data.GeofenceId);
|
|
4469
3907
|
}
|
|
4470
|
-
if (data.Geometry
|
|
3908
|
+
if (data.Geometry != null) {
|
|
4471
3909
|
contents.Geometry = deserializeAws_restJson1GeofenceGeometry(data.Geometry, context);
|
|
4472
3910
|
}
|
|
4473
|
-
if (data.Status
|
|
3911
|
+
if (data.Status != null) {
|
|
4474
3912
|
contents.Status = __expectString(data.Status);
|
|
4475
3913
|
}
|
|
4476
|
-
if (data.UpdateTime
|
|
3914
|
+
if (data.UpdateTime != null) {
|
|
4477
3915
|
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
4478
3916
|
}
|
|
4479
|
-
return [2,
|
|
3917
|
+
return [2, contents];
|
|
4480
3918
|
}
|
|
4481
3919
|
});
|
|
4482
3920
|
}); };
|
|
4483
3921
|
var deserializeAws_restJson1GetGeofenceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4484
|
-
var parsedOutput, _a,
|
|
3922
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4485
3923
|
var _c;
|
|
4486
3924
|
return __generator(this, function (_d) {
|
|
4487
3925
|
switch (_d.label) {
|
|
@@ -4518,14 +3956,14 @@ var deserializeAws_restJson1GetGeofenceCommandError = function (output, context)
|
|
|
4518
3956
|
case 11: throw _d.sent();
|
|
4519
3957
|
case 12:
|
|
4520
3958
|
parsedBody = parsedOutput.body;
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
$metadata: $metadata,
|
|
3959
|
+
throwDefaultError({
|
|
3960
|
+
output: output,
|
|
3961
|
+
parsedBody: parsedBody,
|
|
3962
|
+
exceptionCtor: __BaseException,
|
|
3963
|
+
errorCode: errorCode,
|
|
4527
3964
|
});
|
|
4528
|
-
|
|
3965
|
+
_d.label = 13;
|
|
3966
|
+
case 13: return [2];
|
|
4529
3967
|
}
|
|
4530
3968
|
});
|
|
4531
3969
|
}); };
|
|
@@ -4537,24 +3975,20 @@ export var deserializeAws_restJson1GetMapGlyphsCommand = function (output, conte
|
|
|
4537
3975
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4538
3976
|
return [2, deserializeAws_restJson1GetMapGlyphsCommandError(output, context)];
|
|
4539
3977
|
}
|
|
4540
|
-
contents = {
|
|
3978
|
+
contents = map({
|
|
4541
3979
|
$metadata: deserializeMetadata(output),
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
};
|
|
4545
|
-
if (output.headers["content-type"] !== undefined) {
|
|
4546
|
-
contents.ContentType = output.headers["content-type"];
|
|
4547
|
-
}
|
|
3980
|
+
ContentType: [, output.headers["content-type"]],
|
|
3981
|
+
});
|
|
4548
3982
|
return [4, collectBody(output.body, context)];
|
|
4549
3983
|
case 1:
|
|
4550
3984
|
data = _a.sent();
|
|
4551
3985
|
contents.Blob = data;
|
|
4552
|
-
return [2,
|
|
3986
|
+
return [2, contents];
|
|
4553
3987
|
}
|
|
4554
3988
|
});
|
|
4555
3989
|
}); };
|
|
4556
3990
|
var deserializeAws_restJson1GetMapGlyphsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4557
|
-
var parsedOutput, _a,
|
|
3991
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4558
3992
|
var _c;
|
|
4559
3993
|
return __generator(this, function (_d) {
|
|
4560
3994
|
switch (_d.label) {
|
|
@@ -4591,14 +4025,14 @@ var deserializeAws_restJson1GetMapGlyphsCommandError = function (output, context
|
|
|
4591
4025
|
case 11: throw _d.sent();
|
|
4592
4026
|
case 12:
|
|
4593
4027
|
parsedBody = parsedOutput.body;
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
$metadata: $metadata,
|
|
4028
|
+
throwDefaultError({
|
|
4029
|
+
output: output,
|
|
4030
|
+
parsedBody: parsedBody,
|
|
4031
|
+
exceptionCtor: __BaseException,
|
|
4032
|
+
errorCode: errorCode,
|
|
4600
4033
|
});
|
|
4601
|
-
|
|
4034
|
+
_d.label = 13;
|
|
4035
|
+
case 13: return [2];
|
|
4602
4036
|
}
|
|
4603
4037
|
});
|
|
4604
4038
|
}); };
|
|
@@ -4610,24 +4044,20 @@ export var deserializeAws_restJson1GetMapSpritesCommand = function (output, cont
|
|
|
4610
4044
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4611
4045
|
return [2, deserializeAws_restJson1GetMapSpritesCommandError(output, context)];
|
|
4612
4046
|
}
|
|
4613
|
-
contents = {
|
|
4047
|
+
contents = map({
|
|
4614
4048
|
$metadata: deserializeMetadata(output),
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
};
|
|
4618
|
-
if (output.headers["content-type"] !== undefined) {
|
|
4619
|
-
contents.ContentType = output.headers["content-type"];
|
|
4620
|
-
}
|
|
4049
|
+
ContentType: [, output.headers["content-type"]],
|
|
4050
|
+
});
|
|
4621
4051
|
return [4, collectBody(output.body, context)];
|
|
4622
4052
|
case 1:
|
|
4623
4053
|
data = _a.sent();
|
|
4624
4054
|
contents.Blob = data;
|
|
4625
|
-
return [2,
|
|
4055
|
+
return [2, contents];
|
|
4626
4056
|
}
|
|
4627
4057
|
});
|
|
4628
4058
|
}); };
|
|
4629
4059
|
var deserializeAws_restJson1GetMapSpritesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4630
|
-
var parsedOutput, _a,
|
|
4060
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4631
4061
|
var _c;
|
|
4632
4062
|
return __generator(this, function (_d) {
|
|
4633
4063
|
switch (_d.label) {
|
|
@@ -4664,14 +4094,14 @@ var deserializeAws_restJson1GetMapSpritesCommandError = function (output, contex
|
|
|
4664
4094
|
case 11: throw _d.sent();
|
|
4665
4095
|
case 12:
|
|
4666
4096
|
parsedBody = parsedOutput.body;
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
$metadata: $metadata,
|
|
4097
|
+
throwDefaultError({
|
|
4098
|
+
output: output,
|
|
4099
|
+
parsedBody: parsedBody,
|
|
4100
|
+
exceptionCtor: __BaseException,
|
|
4101
|
+
errorCode: errorCode,
|
|
4673
4102
|
});
|
|
4674
|
-
|
|
4103
|
+
_d.label = 13;
|
|
4104
|
+
case 13: return [2];
|
|
4675
4105
|
}
|
|
4676
4106
|
});
|
|
4677
4107
|
}); };
|
|
@@ -4683,24 +4113,20 @@ export var deserializeAws_restJson1GetMapStyleDescriptorCommand = function (outp
|
|
|
4683
4113
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4684
4114
|
return [2, deserializeAws_restJson1GetMapStyleDescriptorCommandError(output, context)];
|
|
4685
4115
|
}
|
|
4686
|
-
contents = {
|
|
4116
|
+
contents = map({
|
|
4687
4117
|
$metadata: deserializeMetadata(output),
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
};
|
|
4691
|
-
if (output.headers["content-type"] !== undefined) {
|
|
4692
|
-
contents.ContentType = output.headers["content-type"];
|
|
4693
|
-
}
|
|
4118
|
+
ContentType: [, output.headers["content-type"]],
|
|
4119
|
+
});
|
|
4694
4120
|
return [4, collectBody(output.body, context)];
|
|
4695
4121
|
case 1:
|
|
4696
4122
|
data = _a.sent();
|
|
4697
4123
|
contents.Blob = data;
|
|
4698
|
-
return [2,
|
|
4124
|
+
return [2, contents];
|
|
4699
4125
|
}
|
|
4700
4126
|
});
|
|
4701
4127
|
}); };
|
|
4702
4128
|
var deserializeAws_restJson1GetMapStyleDescriptorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4703
|
-
var parsedOutput, _a,
|
|
4129
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4704
4130
|
var _c;
|
|
4705
4131
|
return __generator(this, function (_d) {
|
|
4706
4132
|
switch (_d.label) {
|
|
@@ -4737,14 +4163,14 @@ var deserializeAws_restJson1GetMapStyleDescriptorCommandError = function (output
|
|
|
4737
4163
|
case 11: throw _d.sent();
|
|
4738
4164
|
case 12:
|
|
4739
4165
|
parsedBody = parsedOutput.body;
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
$metadata: $metadata,
|
|
4166
|
+
throwDefaultError({
|
|
4167
|
+
output: output,
|
|
4168
|
+
parsedBody: parsedBody,
|
|
4169
|
+
exceptionCtor: __BaseException,
|
|
4170
|
+
errorCode: errorCode,
|
|
4746
4171
|
});
|
|
4747
|
-
|
|
4172
|
+
_d.label = 13;
|
|
4173
|
+
case 13: return [2];
|
|
4748
4174
|
}
|
|
4749
4175
|
});
|
|
4750
4176
|
}); };
|
|
@@ -4756,24 +4182,20 @@ export var deserializeAws_restJson1GetMapTileCommand = function (output, context
|
|
|
4756
4182
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4757
4183
|
return [2, deserializeAws_restJson1GetMapTileCommandError(output, context)];
|
|
4758
4184
|
}
|
|
4759
|
-
contents = {
|
|
4185
|
+
contents = map({
|
|
4760
4186
|
$metadata: deserializeMetadata(output),
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
};
|
|
4764
|
-
if (output.headers["content-type"] !== undefined) {
|
|
4765
|
-
contents.ContentType = output.headers["content-type"];
|
|
4766
|
-
}
|
|
4187
|
+
ContentType: [, output.headers["content-type"]],
|
|
4188
|
+
});
|
|
4767
4189
|
return [4, collectBody(output.body, context)];
|
|
4768
4190
|
case 1:
|
|
4769
4191
|
data = _a.sent();
|
|
4770
4192
|
contents.Blob = data;
|
|
4771
|
-
return [2,
|
|
4193
|
+
return [2, contents];
|
|
4772
4194
|
}
|
|
4773
4195
|
});
|
|
4774
4196
|
}); };
|
|
4775
4197
|
var deserializeAws_restJson1GetMapTileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4776
|
-
var parsedOutput, _a,
|
|
4198
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4777
4199
|
var _c;
|
|
4778
4200
|
return __generator(this, function (_d) {
|
|
4779
4201
|
switch (_d.label) {
|
|
@@ -4810,14 +4232,14 @@ var deserializeAws_restJson1GetMapTileCommandError = function (output, context)
|
|
|
4810
4232
|
case 11: throw _d.sent();
|
|
4811
4233
|
case 12:
|
|
4812
4234
|
parsedBody = parsedOutput.body;
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
$metadata: $metadata,
|
|
4235
|
+
throwDefaultError({
|
|
4236
|
+
output: output,
|
|
4237
|
+
parsedBody: parsedBody,
|
|
4238
|
+
exceptionCtor: __BaseException,
|
|
4239
|
+
errorCode: errorCode,
|
|
4819
4240
|
});
|
|
4820
|
-
|
|
4241
|
+
_d.label = 13;
|
|
4242
|
+
case 13: return [2];
|
|
4821
4243
|
}
|
|
4822
4244
|
});
|
|
4823
4245
|
}); };
|
|
@@ -4829,28 +4251,26 @@ export var deserializeAws_restJson1ListDevicePositionsCommand = function (output
|
|
|
4829
4251
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4830
4252
|
return [2, deserializeAws_restJson1ListDevicePositionsCommandError(output, context)];
|
|
4831
4253
|
}
|
|
4832
|
-
contents = {
|
|
4254
|
+
contents = map({
|
|
4833
4255
|
$metadata: deserializeMetadata(output),
|
|
4834
|
-
|
|
4835
|
-
NextToken: undefined,
|
|
4836
|
-
};
|
|
4256
|
+
});
|
|
4837
4257
|
_a = __expectNonNull;
|
|
4838
4258
|
_b = __expectObject;
|
|
4839
4259
|
return [4, parseBody(output.body, context)];
|
|
4840
4260
|
case 1:
|
|
4841
4261
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4842
|
-
if (data.Entries
|
|
4262
|
+
if (data.Entries != null) {
|
|
4843
4263
|
contents.Entries = deserializeAws_restJson1ListDevicePositionsResponseEntryList(data.Entries, context);
|
|
4844
4264
|
}
|
|
4845
|
-
if (data.NextToken
|
|
4265
|
+
if (data.NextToken != null) {
|
|
4846
4266
|
contents.NextToken = __expectString(data.NextToken);
|
|
4847
4267
|
}
|
|
4848
|
-
return [2,
|
|
4268
|
+
return [2, contents];
|
|
4849
4269
|
}
|
|
4850
4270
|
});
|
|
4851
4271
|
}); };
|
|
4852
4272
|
var deserializeAws_restJson1ListDevicePositionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4853
|
-
var parsedOutput, _a,
|
|
4273
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4854
4274
|
var _c;
|
|
4855
4275
|
return __generator(this, function (_d) {
|
|
4856
4276
|
switch (_d.label) {
|
|
@@ -4883,14 +4303,14 @@ var deserializeAws_restJson1ListDevicePositionsCommandError = function (output,
|
|
|
4883
4303
|
case 9: throw _d.sent();
|
|
4884
4304
|
case 10:
|
|
4885
4305
|
parsedBody = parsedOutput.body;
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
$metadata: $metadata,
|
|
4306
|
+
throwDefaultError({
|
|
4307
|
+
output: output,
|
|
4308
|
+
parsedBody: parsedBody,
|
|
4309
|
+
exceptionCtor: __BaseException,
|
|
4310
|
+
errorCode: errorCode,
|
|
4892
4311
|
});
|
|
4893
|
-
|
|
4312
|
+
_d.label = 11;
|
|
4313
|
+
case 11: return [2];
|
|
4894
4314
|
}
|
|
4895
4315
|
});
|
|
4896
4316
|
}); };
|
|
@@ -4902,28 +4322,26 @@ export var deserializeAws_restJson1ListGeofenceCollectionsCommand = function (ou
|
|
|
4902
4322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4903
4323
|
return [2, deserializeAws_restJson1ListGeofenceCollectionsCommandError(output, context)];
|
|
4904
4324
|
}
|
|
4905
|
-
contents = {
|
|
4325
|
+
contents = map({
|
|
4906
4326
|
$metadata: deserializeMetadata(output),
|
|
4907
|
-
|
|
4908
|
-
NextToken: undefined,
|
|
4909
|
-
};
|
|
4327
|
+
});
|
|
4910
4328
|
_a = __expectNonNull;
|
|
4911
4329
|
_b = __expectObject;
|
|
4912
4330
|
return [4, parseBody(output.body, context)];
|
|
4913
4331
|
case 1:
|
|
4914
4332
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4915
|
-
if (data.Entries
|
|
4333
|
+
if (data.Entries != null) {
|
|
4916
4334
|
contents.Entries = deserializeAws_restJson1ListGeofenceCollectionsResponseEntryList(data.Entries, context);
|
|
4917
4335
|
}
|
|
4918
|
-
if (data.NextToken
|
|
4336
|
+
if (data.NextToken != null) {
|
|
4919
4337
|
contents.NextToken = __expectString(data.NextToken);
|
|
4920
4338
|
}
|
|
4921
|
-
return [2,
|
|
4339
|
+
return [2, contents];
|
|
4922
4340
|
}
|
|
4923
4341
|
});
|
|
4924
4342
|
}); };
|
|
4925
4343
|
var deserializeAws_restJson1ListGeofenceCollectionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4926
|
-
var parsedOutput, _a,
|
|
4344
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
4927
4345
|
var _c;
|
|
4928
4346
|
return __generator(this, function (_d) {
|
|
4929
4347
|
switch (_d.label) {
|
|
@@ -4956,14 +4374,14 @@ var deserializeAws_restJson1ListGeofenceCollectionsCommandError = function (outp
|
|
|
4956
4374
|
case 9: throw _d.sent();
|
|
4957
4375
|
case 10:
|
|
4958
4376
|
parsedBody = parsedOutput.body;
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
$metadata: $metadata,
|
|
4377
|
+
throwDefaultError({
|
|
4378
|
+
output: output,
|
|
4379
|
+
parsedBody: parsedBody,
|
|
4380
|
+
exceptionCtor: __BaseException,
|
|
4381
|
+
errorCode: errorCode,
|
|
4965
4382
|
});
|
|
4966
|
-
|
|
4383
|
+
_d.label = 11;
|
|
4384
|
+
case 11: return [2];
|
|
4967
4385
|
}
|
|
4968
4386
|
});
|
|
4969
4387
|
}); };
|
|
@@ -4975,28 +4393,26 @@ export var deserializeAws_restJson1ListGeofencesCommand = function (output, cont
|
|
|
4975
4393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4976
4394
|
return [2, deserializeAws_restJson1ListGeofencesCommandError(output, context)];
|
|
4977
4395
|
}
|
|
4978
|
-
contents = {
|
|
4396
|
+
contents = map({
|
|
4979
4397
|
$metadata: deserializeMetadata(output),
|
|
4980
|
-
|
|
4981
|
-
NextToken: undefined,
|
|
4982
|
-
};
|
|
4398
|
+
});
|
|
4983
4399
|
_a = __expectNonNull;
|
|
4984
4400
|
_b = __expectObject;
|
|
4985
4401
|
return [4, parseBody(output.body, context)];
|
|
4986
4402
|
case 1:
|
|
4987
4403
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4988
|
-
if (data.Entries
|
|
4404
|
+
if (data.Entries != null) {
|
|
4989
4405
|
contents.Entries = deserializeAws_restJson1ListGeofenceResponseEntryList(data.Entries, context);
|
|
4990
4406
|
}
|
|
4991
|
-
if (data.NextToken
|
|
4407
|
+
if (data.NextToken != null) {
|
|
4992
4408
|
contents.NextToken = __expectString(data.NextToken);
|
|
4993
4409
|
}
|
|
4994
|
-
return [2,
|
|
4410
|
+
return [2, contents];
|
|
4995
4411
|
}
|
|
4996
4412
|
});
|
|
4997
4413
|
}); };
|
|
4998
4414
|
var deserializeAws_restJson1ListGeofencesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4999
|
-
var parsedOutput, _a,
|
|
4415
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5000
4416
|
var _c;
|
|
5001
4417
|
return __generator(this, function (_d) {
|
|
5002
4418
|
switch (_d.label) {
|
|
@@ -5033,14 +4449,14 @@ var deserializeAws_restJson1ListGeofencesCommandError = function (output, contex
|
|
|
5033
4449
|
case 11: throw _d.sent();
|
|
5034
4450
|
case 12:
|
|
5035
4451
|
parsedBody = parsedOutput.body;
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
$metadata: $metadata,
|
|
4452
|
+
throwDefaultError({
|
|
4453
|
+
output: output,
|
|
4454
|
+
parsedBody: parsedBody,
|
|
4455
|
+
exceptionCtor: __BaseException,
|
|
4456
|
+
errorCode: errorCode,
|
|
5042
4457
|
});
|
|
5043
|
-
|
|
4458
|
+
_d.label = 13;
|
|
4459
|
+
case 13: return [2];
|
|
5044
4460
|
}
|
|
5045
4461
|
});
|
|
5046
4462
|
}); };
|
|
@@ -5052,28 +4468,26 @@ export var deserializeAws_restJson1ListMapsCommand = function (output, context)
|
|
|
5052
4468
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5053
4469
|
return [2, deserializeAws_restJson1ListMapsCommandError(output, context)];
|
|
5054
4470
|
}
|
|
5055
|
-
contents = {
|
|
4471
|
+
contents = map({
|
|
5056
4472
|
$metadata: deserializeMetadata(output),
|
|
5057
|
-
|
|
5058
|
-
NextToken: undefined,
|
|
5059
|
-
};
|
|
4473
|
+
});
|
|
5060
4474
|
_a = __expectNonNull;
|
|
5061
4475
|
_b = __expectObject;
|
|
5062
4476
|
return [4, parseBody(output.body, context)];
|
|
5063
4477
|
case 1:
|
|
5064
4478
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5065
|
-
if (data.Entries
|
|
4479
|
+
if (data.Entries != null) {
|
|
5066
4480
|
contents.Entries = deserializeAws_restJson1ListMapsResponseEntryList(data.Entries, context);
|
|
5067
4481
|
}
|
|
5068
|
-
if (data.NextToken
|
|
4482
|
+
if (data.NextToken != null) {
|
|
5069
4483
|
contents.NextToken = __expectString(data.NextToken);
|
|
5070
4484
|
}
|
|
5071
|
-
return [2,
|
|
4485
|
+
return [2, contents];
|
|
5072
4486
|
}
|
|
5073
4487
|
});
|
|
5074
4488
|
}); };
|
|
5075
4489
|
var deserializeAws_restJson1ListMapsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5076
|
-
var parsedOutput, _a,
|
|
4490
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5077
4491
|
var _c;
|
|
5078
4492
|
return __generator(this, function (_d) {
|
|
5079
4493
|
switch (_d.label) {
|
|
@@ -5106,14 +4520,14 @@ var deserializeAws_restJson1ListMapsCommandError = function (output, context) {
|
|
|
5106
4520
|
case 9: throw _d.sent();
|
|
5107
4521
|
case 10:
|
|
5108
4522
|
parsedBody = parsedOutput.body;
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
$metadata: $metadata,
|
|
4523
|
+
throwDefaultError({
|
|
4524
|
+
output: output,
|
|
4525
|
+
parsedBody: parsedBody,
|
|
4526
|
+
exceptionCtor: __BaseException,
|
|
4527
|
+
errorCode: errorCode,
|
|
5115
4528
|
});
|
|
5116
|
-
|
|
4529
|
+
_d.label = 11;
|
|
4530
|
+
case 11: return [2];
|
|
5117
4531
|
}
|
|
5118
4532
|
});
|
|
5119
4533
|
}); };
|
|
@@ -5125,28 +4539,26 @@ export var deserializeAws_restJson1ListPlaceIndexesCommand = function (output, c
|
|
|
5125
4539
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5126
4540
|
return [2, deserializeAws_restJson1ListPlaceIndexesCommandError(output, context)];
|
|
5127
4541
|
}
|
|
5128
|
-
contents = {
|
|
4542
|
+
contents = map({
|
|
5129
4543
|
$metadata: deserializeMetadata(output),
|
|
5130
|
-
|
|
5131
|
-
NextToken: undefined,
|
|
5132
|
-
};
|
|
4544
|
+
});
|
|
5133
4545
|
_a = __expectNonNull;
|
|
5134
4546
|
_b = __expectObject;
|
|
5135
4547
|
return [4, parseBody(output.body, context)];
|
|
5136
4548
|
case 1:
|
|
5137
4549
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5138
|
-
if (data.Entries
|
|
4550
|
+
if (data.Entries != null) {
|
|
5139
4551
|
contents.Entries = deserializeAws_restJson1ListPlaceIndexesResponseEntryList(data.Entries, context);
|
|
5140
4552
|
}
|
|
5141
|
-
if (data.NextToken
|
|
4553
|
+
if (data.NextToken != null) {
|
|
5142
4554
|
contents.NextToken = __expectString(data.NextToken);
|
|
5143
4555
|
}
|
|
5144
|
-
return [2,
|
|
4556
|
+
return [2, contents];
|
|
5145
4557
|
}
|
|
5146
4558
|
});
|
|
5147
4559
|
}); };
|
|
5148
4560
|
var deserializeAws_restJson1ListPlaceIndexesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5149
|
-
var parsedOutput, _a,
|
|
4561
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5150
4562
|
var _c;
|
|
5151
4563
|
return __generator(this, function (_d) {
|
|
5152
4564
|
switch (_d.label) {
|
|
@@ -5179,14 +4591,14 @@ var deserializeAws_restJson1ListPlaceIndexesCommandError = function (output, con
|
|
|
5179
4591
|
case 9: throw _d.sent();
|
|
5180
4592
|
case 10:
|
|
5181
4593
|
parsedBody = parsedOutput.body;
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
$metadata: $metadata,
|
|
4594
|
+
throwDefaultError({
|
|
4595
|
+
output: output,
|
|
4596
|
+
parsedBody: parsedBody,
|
|
4597
|
+
exceptionCtor: __BaseException,
|
|
4598
|
+
errorCode: errorCode,
|
|
5188
4599
|
});
|
|
5189
|
-
|
|
4600
|
+
_d.label = 11;
|
|
4601
|
+
case 11: return [2];
|
|
5190
4602
|
}
|
|
5191
4603
|
});
|
|
5192
4604
|
}); };
|
|
@@ -5198,28 +4610,26 @@ export var deserializeAws_restJson1ListRouteCalculatorsCommand = function (outpu
|
|
|
5198
4610
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5199
4611
|
return [2, deserializeAws_restJson1ListRouteCalculatorsCommandError(output, context)];
|
|
5200
4612
|
}
|
|
5201
|
-
contents = {
|
|
4613
|
+
contents = map({
|
|
5202
4614
|
$metadata: deserializeMetadata(output),
|
|
5203
|
-
|
|
5204
|
-
NextToken: undefined,
|
|
5205
|
-
};
|
|
4615
|
+
});
|
|
5206
4616
|
_a = __expectNonNull;
|
|
5207
4617
|
_b = __expectObject;
|
|
5208
4618
|
return [4, parseBody(output.body, context)];
|
|
5209
4619
|
case 1:
|
|
5210
4620
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5211
|
-
if (data.Entries
|
|
4621
|
+
if (data.Entries != null) {
|
|
5212
4622
|
contents.Entries = deserializeAws_restJson1ListRouteCalculatorsResponseEntryList(data.Entries, context);
|
|
5213
4623
|
}
|
|
5214
|
-
if (data.NextToken
|
|
4624
|
+
if (data.NextToken != null) {
|
|
5215
4625
|
contents.NextToken = __expectString(data.NextToken);
|
|
5216
4626
|
}
|
|
5217
|
-
return [2,
|
|
4627
|
+
return [2, contents];
|
|
5218
4628
|
}
|
|
5219
4629
|
});
|
|
5220
4630
|
}); };
|
|
5221
4631
|
var deserializeAws_restJson1ListRouteCalculatorsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5222
|
-
var parsedOutput, _a,
|
|
4632
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5223
4633
|
var _c;
|
|
5224
4634
|
return __generator(this, function (_d) {
|
|
5225
4635
|
switch (_d.label) {
|
|
@@ -5252,14 +4662,14 @@ var deserializeAws_restJson1ListRouteCalculatorsCommandError = function (output,
|
|
|
5252
4662
|
case 9: throw _d.sent();
|
|
5253
4663
|
case 10:
|
|
5254
4664
|
parsedBody = parsedOutput.body;
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
$metadata: $metadata,
|
|
4665
|
+
throwDefaultError({
|
|
4666
|
+
output: output,
|
|
4667
|
+
parsedBody: parsedBody,
|
|
4668
|
+
exceptionCtor: __BaseException,
|
|
4669
|
+
errorCode: errorCode,
|
|
5261
4670
|
});
|
|
5262
|
-
|
|
4671
|
+
_d.label = 11;
|
|
4672
|
+
case 11: return [2];
|
|
5263
4673
|
}
|
|
5264
4674
|
});
|
|
5265
4675
|
}); };
|
|
@@ -5271,24 +4681,23 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
5271
4681
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5272
4682
|
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
5273
4683
|
}
|
|
5274
|
-
contents = {
|
|
4684
|
+
contents = map({
|
|
5275
4685
|
$metadata: deserializeMetadata(output),
|
|
5276
|
-
|
|
5277
|
-
};
|
|
4686
|
+
});
|
|
5278
4687
|
_a = __expectNonNull;
|
|
5279
4688
|
_b = __expectObject;
|
|
5280
4689
|
return [4, parseBody(output.body, context)];
|
|
5281
4690
|
case 1:
|
|
5282
4691
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5283
|
-
if (data.Tags
|
|
4692
|
+
if (data.Tags != null) {
|
|
5284
4693
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
5285
4694
|
}
|
|
5286
|
-
return [2,
|
|
4695
|
+
return [2, contents];
|
|
5287
4696
|
}
|
|
5288
4697
|
});
|
|
5289
4698
|
}); };
|
|
5290
4699
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5291
|
-
var parsedOutput, _a,
|
|
4700
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5292
4701
|
var _c;
|
|
5293
4702
|
return __generator(this, function (_d) {
|
|
5294
4703
|
switch (_d.label) {
|
|
@@ -5325,14 +4734,14 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
5325
4734
|
case 11: throw _d.sent();
|
|
5326
4735
|
case 12:
|
|
5327
4736
|
parsedBody = parsedOutput.body;
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
$metadata: $metadata,
|
|
4737
|
+
throwDefaultError({
|
|
4738
|
+
output: output,
|
|
4739
|
+
parsedBody: parsedBody,
|
|
4740
|
+
exceptionCtor: __BaseException,
|
|
4741
|
+
errorCode: errorCode,
|
|
5334
4742
|
});
|
|
5335
|
-
|
|
4743
|
+
_d.label = 13;
|
|
4744
|
+
case 13: return [2];
|
|
5336
4745
|
}
|
|
5337
4746
|
});
|
|
5338
4747
|
}); };
|
|
@@ -5344,28 +4753,26 @@ export var deserializeAws_restJson1ListTrackerConsumersCommand = function (outpu
|
|
|
5344
4753
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5345
4754
|
return [2, deserializeAws_restJson1ListTrackerConsumersCommandError(output, context)];
|
|
5346
4755
|
}
|
|
5347
|
-
contents = {
|
|
4756
|
+
contents = map({
|
|
5348
4757
|
$metadata: deserializeMetadata(output),
|
|
5349
|
-
|
|
5350
|
-
NextToken: undefined,
|
|
5351
|
-
};
|
|
4758
|
+
});
|
|
5352
4759
|
_a = __expectNonNull;
|
|
5353
4760
|
_b = __expectObject;
|
|
5354
4761
|
return [4, parseBody(output.body, context)];
|
|
5355
4762
|
case 1:
|
|
5356
4763
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5357
|
-
if (data.ConsumerArns
|
|
4764
|
+
if (data.ConsumerArns != null) {
|
|
5358
4765
|
contents.ConsumerArns = deserializeAws_restJson1ArnList(data.ConsumerArns, context);
|
|
5359
4766
|
}
|
|
5360
|
-
if (data.NextToken
|
|
4767
|
+
if (data.NextToken != null) {
|
|
5361
4768
|
contents.NextToken = __expectString(data.NextToken);
|
|
5362
4769
|
}
|
|
5363
|
-
return [2,
|
|
4770
|
+
return [2, contents];
|
|
5364
4771
|
}
|
|
5365
4772
|
});
|
|
5366
4773
|
}); };
|
|
5367
4774
|
var deserializeAws_restJson1ListTrackerConsumersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5368
|
-
var parsedOutput, _a,
|
|
4775
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5369
4776
|
var _c;
|
|
5370
4777
|
return __generator(this, function (_d) {
|
|
5371
4778
|
switch (_d.label) {
|
|
@@ -5402,14 +4809,14 @@ var deserializeAws_restJson1ListTrackerConsumersCommandError = function (output,
|
|
|
5402
4809
|
case 11: throw _d.sent();
|
|
5403
4810
|
case 12:
|
|
5404
4811
|
parsedBody = parsedOutput.body;
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
$metadata: $metadata,
|
|
4812
|
+
throwDefaultError({
|
|
4813
|
+
output: output,
|
|
4814
|
+
parsedBody: parsedBody,
|
|
4815
|
+
exceptionCtor: __BaseException,
|
|
4816
|
+
errorCode: errorCode,
|
|
5411
4817
|
});
|
|
5412
|
-
|
|
4818
|
+
_d.label = 13;
|
|
4819
|
+
case 13: return [2];
|
|
5413
4820
|
}
|
|
5414
4821
|
});
|
|
5415
4822
|
}); };
|
|
@@ -5421,28 +4828,26 @@ export var deserializeAws_restJson1ListTrackersCommand = function (output, conte
|
|
|
5421
4828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5422
4829
|
return [2, deserializeAws_restJson1ListTrackersCommandError(output, context)];
|
|
5423
4830
|
}
|
|
5424
|
-
contents = {
|
|
4831
|
+
contents = map({
|
|
5425
4832
|
$metadata: deserializeMetadata(output),
|
|
5426
|
-
|
|
5427
|
-
NextToken: undefined,
|
|
5428
|
-
};
|
|
4833
|
+
});
|
|
5429
4834
|
_a = __expectNonNull;
|
|
5430
4835
|
_b = __expectObject;
|
|
5431
4836
|
return [4, parseBody(output.body, context)];
|
|
5432
4837
|
case 1:
|
|
5433
4838
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5434
|
-
if (data.Entries
|
|
4839
|
+
if (data.Entries != null) {
|
|
5435
4840
|
contents.Entries = deserializeAws_restJson1ListTrackersResponseEntryList(data.Entries, context);
|
|
5436
4841
|
}
|
|
5437
|
-
if (data.NextToken
|
|
4842
|
+
if (data.NextToken != null) {
|
|
5438
4843
|
contents.NextToken = __expectString(data.NextToken);
|
|
5439
4844
|
}
|
|
5440
|
-
return [2,
|
|
4845
|
+
return [2, contents];
|
|
5441
4846
|
}
|
|
5442
4847
|
});
|
|
5443
4848
|
}); };
|
|
5444
4849
|
var deserializeAws_restJson1ListTrackersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5445
|
-
var parsedOutput, _a,
|
|
4850
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5446
4851
|
var _c;
|
|
5447
4852
|
return __generator(this, function (_d) {
|
|
5448
4853
|
switch (_d.label) {
|
|
@@ -5475,14 +4880,14 @@ var deserializeAws_restJson1ListTrackersCommandError = function (output, context
|
|
|
5475
4880
|
case 9: throw _d.sent();
|
|
5476
4881
|
case 10:
|
|
5477
4882
|
parsedBody = parsedOutput.body;
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
$metadata: $metadata,
|
|
4883
|
+
throwDefaultError({
|
|
4884
|
+
output: output,
|
|
4885
|
+
parsedBody: parsedBody,
|
|
4886
|
+
exceptionCtor: __BaseException,
|
|
4887
|
+
errorCode: errorCode,
|
|
5484
4888
|
});
|
|
5485
|
-
|
|
4889
|
+
_d.label = 11;
|
|
4890
|
+
case 11: return [2];
|
|
5486
4891
|
}
|
|
5487
4892
|
});
|
|
5488
4893
|
}); };
|
|
@@ -5494,32 +4899,29 @@ export var deserializeAws_restJson1PutGeofenceCommand = function (output, contex
|
|
|
5494
4899
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5495
4900
|
return [2, deserializeAws_restJson1PutGeofenceCommandError(output, context)];
|
|
5496
4901
|
}
|
|
5497
|
-
contents = {
|
|
4902
|
+
contents = map({
|
|
5498
4903
|
$metadata: deserializeMetadata(output),
|
|
5499
|
-
|
|
5500
|
-
GeofenceId: undefined,
|
|
5501
|
-
UpdateTime: undefined,
|
|
5502
|
-
};
|
|
4904
|
+
});
|
|
5503
4905
|
_a = __expectNonNull;
|
|
5504
4906
|
_b = __expectObject;
|
|
5505
4907
|
return [4, parseBody(output.body, context)];
|
|
5506
4908
|
case 1:
|
|
5507
4909
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5508
|
-
if (data.CreateTime
|
|
4910
|
+
if (data.CreateTime != null) {
|
|
5509
4911
|
contents.CreateTime = __expectNonNull(__parseRfc3339DateTime(data.CreateTime));
|
|
5510
4912
|
}
|
|
5511
|
-
if (data.GeofenceId
|
|
4913
|
+
if (data.GeofenceId != null) {
|
|
5512
4914
|
contents.GeofenceId = __expectString(data.GeofenceId);
|
|
5513
4915
|
}
|
|
5514
|
-
if (data.UpdateTime
|
|
4916
|
+
if (data.UpdateTime != null) {
|
|
5515
4917
|
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
5516
4918
|
}
|
|
5517
|
-
return [2,
|
|
4919
|
+
return [2, contents];
|
|
5518
4920
|
}
|
|
5519
4921
|
});
|
|
5520
4922
|
}); };
|
|
5521
4923
|
var deserializeAws_restJson1PutGeofenceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5522
|
-
var parsedOutput, _a,
|
|
4924
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5523
4925
|
var _c;
|
|
5524
4926
|
return __generator(this, function (_d) {
|
|
5525
4927
|
switch (_d.label) {
|
|
@@ -5560,14 +4962,14 @@ var deserializeAws_restJson1PutGeofenceCommandError = function (output, context)
|
|
|
5560
4962
|
case 13: throw _d.sent();
|
|
5561
4963
|
case 14:
|
|
5562
4964
|
parsedBody = parsedOutput.body;
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
$metadata: $metadata,
|
|
4965
|
+
throwDefaultError({
|
|
4966
|
+
output: output,
|
|
4967
|
+
parsedBody: parsedBody,
|
|
4968
|
+
exceptionCtor: __BaseException,
|
|
4969
|
+
errorCode: errorCode,
|
|
5569
4970
|
});
|
|
5570
|
-
|
|
4971
|
+
_d.label = 15;
|
|
4972
|
+
case 15: return [2];
|
|
5571
4973
|
}
|
|
5572
4974
|
});
|
|
5573
4975
|
}); };
|
|
@@ -5579,28 +4981,26 @@ export var deserializeAws_restJson1SearchPlaceIndexForPositionCommand = function
|
|
|
5579
4981
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5580
4982
|
return [2, deserializeAws_restJson1SearchPlaceIndexForPositionCommandError(output, context)];
|
|
5581
4983
|
}
|
|
5582
|
-
contents = {
|
|
4984
|
+
contents = map({
|
|
5583
4985
|
$metadata: deserializeMetadata(output),
|
|
5584
|
-
|
|
5585
|
-
Summary: undefined,
|
|
5586
|
-
};
|
|
4986
|
+
});
|
|
5587
4987
|
_a = __expectNonNull;
|
|
5588
4988
|
_b = __expectObject;
|
|
5589
4989
|
return [4, parseBody(output.body, context)];
|
|
5590
4990
|
case 1:
|
|
5591
4991
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5592
|
-
if (data.Results
|
|
4992
|
+
if (data.Results != null) {
|
|
5593
4993
|
contents.Results = deserializeAws_restJson1SearchForPositionResultList(data.Results, context);
|
|
5594
4994
|
}
|
|
5595
|
-
if (data.Summary
|
|
4995
|
+
if (data.Summary != null) {
|
|
5596
4996
|
contents.Summary = deserializeAws_restJson1SearchPlaceIndexForPositionSummary(data.Summary, context);
|
|
5597
4997
|
}
|
|
5598
|
-
return [2,
|
|
4998
|
+
return [2, contents];
|
|
5599
4999
|
}
|
|
5600
5000
|
});
|
|
5601
5001
|
}); };
|
|
5602
5002
|
var deserializeAws_restJson1SearchPlaceIndexForPositionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5603
|
-
var parsedOutput, _a,
|
|
5003
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5604
5004
|
var _c;
|
|
5605
5005
|
return __generator(this, function (_d) {
|
|
5606
5006
|
switch (_d.label) {
|
|
@@ -5637,14 +5037,14 @@ var deserializeAws_restJson1SearchPlaceIndexForPositionCommandError = function (
|
|
|
5637
5037
|
case 11: throw _d.sent();
|
|
5638
5038
|
case 12:
|
|
5639
5039
|
parsedBody = parsedOutput.body;
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
$metadata: $metadata,
|
|
5040
|
+
throwDefaultError({
|
|
5041
|
+
output: output,
|
|
5042
|
+
parsedBody: parsedBody,
|
|
5043
|
+
exceptionCtor: __BaseException,
|
|
5044
|
+
errorCode: errorCode,
|
|
5646
5045
|
});
|
|
5647
|
-
|
|
5046
|
+
_d.label = 13;
|
|
5047
|
+
case 13: return [2];
|
|
5648
5048
|
}
|
|
5649
5049
|
});
|
|
5650
5050
|
}); };
|
|
@@ -5656,28 +5056,26 @@ export var deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommand = funct
|
|
|
5656
5056
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5657
5057
|
return [2, deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError(output, context)];
|
|
5658
5058
|
}
|
|
5659
|
-
contents = {
|
|
5059
|
+
contents = map({
|
|
5660
5060
|
$metadata: deserializeMetadata(output),
|
|
5661
|
-
|
|
5662
|
-
Summary: undefined,
|
|
5663
|
-
};
|
|
5061
|
+
});
|
|
5664
5062
|
_a = __expectNonNull;
|
|
5665
5063
|
_b = __expectObject;
|
|
5666
5064
|
return [4, parseBody(output.body, context)];
|
|
5667
5065
|
case 1:
|
|
5668
5066
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5669
|
-
if (data.Results
|
|
5067
|
+
if (data.Results != null) {
|
|
5670
5068
|
contents.Results = deserializeAws_restJson1SearchForSuggestionsResultList(data.Results, context);
|
|
5671
5069
|
}
|
|
5672
|
-
if (data.Summary
|
|
5070
|
+
if (data.Summary != null) {
|
|
5673
5071
|
contents.Summary = deserializeAws_restJson1SearchPlaceIndexForSuggestionsSummary(data.Summary, context);
|
|
5674
5072
|
}
|
|
5675
|
-
return [2,
|
|
5073
|
+
return [2, contents];
|
|
5676
5074
|
}
|
|
5677
5075
|
});
|
|
5678
5076
|
}); };
|
|
5679
5077
|
var deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5680
|
-
var parsedOutput, _a,
|
|
5078
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5681
5079
|
var _c;
|
|
5682
5080
|
return __generator(this, function (_d) {
|
|
5683
5081
|
switch (_d.label) {
|
|
@@ -5714,14 +5112,14 @@ var deserializeAws_restJson1SearchPlaceIndexForSuggestionsCommandError = functio
|
|
|
5714
5112
|
case 11: throw _d.sent();
|
|
5715
5113
|
case 12:
|
|
5716
5114
|
parsedBody = parsedOutput.body;
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
$metadata: $metadata,
|
|
5115
|
+
throwDefaultError({
|
|
5116
|
+
output: output,
|
|
5117
|
+
parsedBody: parsedBody,
|
|
5118
|
+
exceptionCtor: __BaseException,
|
|
5119
|
+
errorCode: errorCode,
|
|
5723
5120
|
});
|
|
5724
|
-
|
|
5121
|
+
_d.label = 13;
|
|
5122
|
+
case 13: return [2];
|
|
5725
5123
|
}
|
|
5726
5124
|
});
|
|
5727
5125
|
}); };
|
|
@@ -5733,28 +5131,26 @@ export var deserializeAws_restJson1SearchPlaceIndexForTextCommand = function (ou
|
|
|
5733
5131
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5734
5132
|
return [2, deserializeAws_restJson1SearchPlaceIndexForTextCommandError(output, context)];
|
|
5735
5133
|
}
|
|
5736
|
-
contents = {
|
|
5134
|
+
contents = map({
|
|
5737
5135
|
$metadata: deserializeMetadata(output),
|
|
5738
|
-
|
|
5739
|
-
Summary: undefined,
|
|
5740
|
-
};
|
|
5136
|
+
});
|
|
5741
5137
|
_a = __expectNonNull;
|
|
5742
5138
|
_b = __expectObject;
|
|
5743
5139
|
return [4, parseBody(output.body, context)];
|
|
5744
5140
|
case 1:
|
|
5745
5141
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5746
|
-
if (data.Results
|
|
5142
|
+
if (data.Results != null) {
|
|
5747
5143
|
contents.Results = deserializeAws_restJson1SearchForTextResultList(data.Results, context);
|
|
5748
5144
|
}
|
|
5749
|
-
if (data.Summary
|
|
5145
|
+
if (data.Summary != null) {
|
|
5750
5146
|
contents.Summary = deserializeAws_restJson1SearchPlaceIndexForTextSummary(data.Summary, context);
|
|
5751
5147
|
}
|
|
5752
|
-
return [2,
|
|
5148
|
+
return [2, contents];
|
|
5753
5149
|
}
|
|
5754
5150
|
});
|
|
5755
5151
|
}); };
|
|
5756
5152
|
var deserializeAws_restJson1SearchPlaceIndexForTextCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5757
|
-
var parsedOutput, _a,
|
|
5153
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5758
5154
|
var _c;
|
|
5759
5155
|
return __generator(this, function (_d) {
|
|
5760
5156
|
switch (_d.label) {
|
|
@@ -5791,14 +5187,14 @@ var deserializeAws_restJson1SearchPlaceIndexForTextCommandError = function (outp
|
|
|
5791
5187
|
case 11: throw _d.sent();
|
|
5792
5188
|
case 12:
|
|
5793
5189
|
parsedBody = parsedOutput.body;
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
$metadata: $metadata,
|
|
5190
|
+
throwDefaultError({
|
|
5191
|
+
output: output,
|
|
5192
|
+
parsedBody: parsedBody,
|
|
5193
|
+
exceptionCtor: __BaseException,
|
|
5194
|
+
errorCode: errorCode,
|
|
5800
5195
|
});
|
|
5801
|
-
|
|
5196
|
+
_d.label = 13;
|
|
5197
|
+
case 13: return [2];
|
|
5802
5198
|
}
|
|
5803
5199
|
});
|
|
5804
5200
|
}); };
|
|
@@ -5810,18 +5206,18 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
5810
5206
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5811
5207
|
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
5812
5208
|
}
|
|
5813
|
-
contents = {
|
|
5209
|
+
contents = map({
|
|
5814
5210
|
$metadata: deserializeMetadata(output),
|
|
5815
|
-
};
|
|
5211
|
+
});
|
|
5816
5212
|
return [4, collectBody(output.body, context)];
|
|
5817
5213
|
case 1:
|
|
5818
5214
|
_a.sent();
|
|
5819
|
-
return [2,
|
|
5215
|
+
return [2, contents];
|
|
5820
5216
|
}
|
|
5821
5217
|
});
|
|
5822
5218
|
}); };
|
|
5823
5219
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5824
|
-
var parsedOutput, _a,
|
|
5220
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5825
5221
|
var _c;
|
|
5826
5222
|
return __generator(this, function (_d) {
|
|
5827
5223
|
switch (_d.label) {
|
|
@@ -5858,14 +5254,14 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
5858
5254
|
case 11: throw _d.sent();
|
|
5859
5255
|
case 12:
|
|
5860
5256
|
parsedBody = parsedOutput.body;
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
$metadata: $metadata,
|
|
5257
|
+
throwDefaultError({
|
|
5258
|
+
output: output,
|
|
5259
|
+
parsedBody: parsedBody,
|
|
5260
|
+
exceptionCtor: __BaseException,
|
|
5261
|
+
errorCode: errorCode,
|
|
5867
5262
|
});
|
|
5868
|
-
|
|
5263
|
+
_d.label = 13;
|
|
5264
|
+
case 13: return [2];
|
|
5869
5265
|
}
|
|
5870
5266
|
});
|
|
5871
5267
|
}); };
|
|
@@ -5877,18 +5273,18 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
5877
5273
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5878
5274
|
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
5879
5275
|
}
|
|
5880
|
-
contents = {
|
|
5276
|
+
contents = map({
|
|
5881
5277
|
$metadata: deserializeMetadata(output),
|
|
5882
|
-
};
|
|
5278
|
+
});
|
|
5883
5279
|
return [4, collectBody(output.body, context)];
|
|
5884
5280
|
case 1:
|
|
5885
5281
|
_a.sent();
|
|
5886
|
-
return [2,
|
|
5282
|
+
return [2, contents];
|
|
5887
5283
|
}
|
|
5888
5284
|
});
|
|
5889
5285
|
}); };
|
|
5890
5286
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5891
|
-
var parsedOutput, _a,
|
|
5287
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5892
5288
|
var _c;
|
|
5893
5289
|
return __generator(this, function (_d) {
|
|
5894
5290
|
switch (_d.label) {
|
|
@@ -5925,14 +5321,14 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
5925
5321
|
case 11: throw _d.sent();
|
|
5926
5322
|
case 12:
|
|
5927
5323
|
parsedBody = parsedOutput.body;
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
$metadata: $metadata,
|
|
5324
|
+
throwDefaultError({
|
|
5325
|
+
output: output,
|
|
5326
|
+
parsedBody: parsedBody,
|
|
5327
|
+
exceptionCtor: __BaseException,
|
|
5328
|
+
errorCode: errorCode,
|
|
5934
5329
|
});
|
|
5935
|
-
|
|
5330
|
+
_d.label = 13;
|
|
5331
|
+
case 13: return [2];
|
|
5936
5332
|
}
|
|
5937
5333
|
});
|
|
5938
5334
|
}); };
|
|
@@ -5944,32 +5340,29 @@ export var deserializeAws_restJson1UpdateGeofenceCollectionCommand = function (o
|
|
|
5944
5340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5945
5341
|
return [2, deserializeAws_restJson1UpdateGeofenceCollectionCommandError(output, context)];
|
|
5946
5342
|
}
|
|
5947
|
-
contents = {
|
|
5343
|
+
contents = map({
|
|
5948
5344
|
$metadata: deserializeMetadata(output),
|
|
5949
|
-
|
|
5950
|
-
CollectionName: undefined,
|
|
5951
|
-
UpdateTime: undefined,
|
|
5952
|
-
};
|
|
5345
|
+
});
|
|
5953
5346
|
_a = __expectNonNull;
|
|
5954
5347
|
_b = __expectObject;
|
|
5955
5348
|
return [4, parseBody(output.body, context)];
|
|
5956
5349
|
case 1:
|
|
5957
5350
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
5958
|
-
if (data.CollectionArn
|
|
5351
|
+
if (data.CollectionArn != null) {
|
|
5959
5352
|
contents.CollectionArn = __expectString(data.CollectionArn);
|
|
5960
5353
|
}
|
|
5961
|
-
if (data.CollectionName
|
|
5354
|
+
if (data.CollectionName != null) {
|
|
5962
5355
|
contents.CollectionName = __expectString(data.CollectionName);
|
|
5963
5356
|
}
|
|
5964
|
-
if (data.UpdateTime
|
|
5357
|
+
if (data.UpdateTime != null) {
|
|
5965
5358
|
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
5966
5359
|
}
|
|
5967
|
-
return [2,
|
|
5360
|
+
return [2, contents];
|
|
5968
5361
|
}
|
|
5969
5362
|
});
|
|
5970
5363
|
}); };
|
|
5971
5364
|
var deserializeAws_restJson1UpdateGeofenceCollectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5972
|
-
var parsedOutput, _a,
|
|
5365
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
5973
5366
|
var _c;
|
|
5974
5367
|
return __generator(this, function (_d) {
|
|
5975
5368
|
switch (_d.label) {
|
|
@@ -6006,14 +5399,14 @@ var deserializeAws_restJson1UpdateGeofenceCollectionCommandError = function (out
|
|
|
6006
5399
|
case 11: throw _d.sent();
|
|
6007
5400
|
case 12:
|
|
6008
5401
|
parsedBody = parsedOutput.body;
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
$metadata: $metadata,
|
|
5402
|
+
throwDefaultError({
|
|
5403
|
+
output: output,
|
|
5404
|
+
parsedBody: parsedBody,
|
|
5405
|
+
exceptionCtor: __BaseException,
|
|
5406
|
+
errorCode: errorCode,
|
|
6015
5407
|
});
|
|
6016
|
-
|
|
5408
|
+
_d.label = 13;
|
|
5409
|
+
case 13: return [2];
|
|
6017
5410
|
}
|
|
6018
5411
|
});
|
|
6019
5412
|
}); };
|
|
@@ -6025,32 +5418,29 @@ export var deserializeAws_restJson1UpdateMapCommand = function (output, context)
|
|
|
6025
5418
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6026
5419
|
return [2, deserializeAws_restJson1UpdateMapCommandError(output, context)];
|
|
6027
5420
|
}
|
|
6028
|
-
contents = {
|
|
5421
|
+
contents = map({
|
|
6029
5422
|
$metadata: deserializeMetadata(output),
|
|
6030
|
-
|
|
6031
|
-
MapName: undefined,
|
|
6032
|
-
UpdateTime: undefined,
|
|
6033
|
-
};
|
|
5423
|
+
});
|
|
6034
5424
|
_a = __expectNonNull;
|
|
6035
5425
|
_b = __expectObject;
|
|
6036
5426
|
return [4, parseBody(output.body, context)];
|
|
6037
5427
|
case 1:
|
|
6038
5428
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6039
|
-
if (data.MapArn
|
|
5429
|
+
if (data.MapArn != null) {
|
|
6040
5430
|
contents.MapArn = __expectString(data.MapArn);
|
|
6041
5431
|
}
|
|
6042
|
-
if (data.MapName
|
|
5432
|
+
if (data.MapName != null) {
|
|
6043
5433
|
contents.MapName = __expectString(data.MapName);
|
|
6044
5434
|
}
|
|
6045
|
-
if (data.UpdateTime
|
|
5435
|
+
if (data.UpdateTime != null) {
|
|
6046
5436
|
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
6047
5437
|
}
|
|
6048
|
-
return [2,
|
|
5438
|
+
return [2, contents];
|
|
6049
5439
|
}
|
|
6050
5440
|
});
|
|
6051
5441
|
}); };
|
|
6052
5442
|
var deserializeAws_restJson1UpdateMapCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6053
|
-
var parsedOutput, _a,
|
|
5443
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6054
5444
|
var _c;
|
|
6055
5445
|
return __generator(this, function (_d) {
|
|
6056
5446
|
switch (_d.label) {
|
|
@@ -6087,14 +5477,14 @@ var deserializeAws_restJson1UpdateMapCommandError = function (output, context) {
|
|
|
6087
5477
|
case 11: throw _d.sent();
|
|
6088
5478
|
case 12:
|
|
6089
5479
|
parsedBody = parsedOutput.body;
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
$metadata: $metadata,
|
|
5480
|
+
throwDefaultError({
|
|
5481
|
+
output: output,
|
|
5482
|
+
parsedBody: parsedBody,
|
|
5483
|
+
exceptionCtor: __BaseException,
|
|
5484
|
+
errorCode: errorCode,
|
|
6096
5485
|
});
|
|
6097
|
-
|
|
5486
|
+
_d.label = 13;
|
|
5487
|
+
case 13: return [2];
|
|
6098
5488
|
}
|
|
6099
5489
|
});
|
|
6100
5490
|
}); };
|
|
@@ -6106,32 +5496,29 @@ export var deserializeAws_restJson1UpdatePlaceIndexCommand = function (output, c
|
|
|
6106
5496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6107
5497
|
return [2, deserializeAws_restJson1UpdatePlaceIndexCommandError(output, context)];
|
|
6108
5498
|
}
|
|
6109
|
-
contents = {
|
|
5499
|
+
contents = map({
|
|
6110
5500
|
$metadata: deserializeMetadata(output),
|
|
6111
|
-
|
|
6112
|
-
IndexName: undefined,
|
|
6113
|
-
UpdateTime: undefined,
|
|
6114
|
-
};
|
|
5501
|
+
});
|
|
6115
5502
|
_a = __expectNonNull;
|
|
6116
5503
|
_b = __expectObject;
|
|
6117
5504
|
return [4, parseBody(output.body, context)];
|
|
6118
5505
|
case 1:
|
|
6119
5506
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6120
|
-
if (data.IndexArn
|
|
5507
|
+
if (data.IndexArn != null) {
|
|
6121
5508
|
contents.IndexArn = __expectString(data.IndexArn);
|
|
6122
5509
|
}
|
|
6123
|
-
if (data.IndexName
|
|
5510
|
+
if (data.IndexName != null) {
|
|
6124
5511
|
contents.IndexName = __expectString(data.IndexName);
|
|
6125
5512
|
}
|
|
6126
|
-
if (data.UpdateTime
|
|
5513
|
+
if (data.UpdateTime != null) {
|
|
6127
5514
|
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
6128
5515
|
}
|
|
6129
|
-
return [2,
|
|
5516
|
+
return [2, contents];
|
|
6130
5517
|
}
|
|
6131
5518
|
});
|
|
6132
5519
|
}); };
|
|
6133
5520
|
var deserializeAws_restJson1UpdatePlaceIndexCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6134
|
-
var parsedOutput, _a,
|
|
5521
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6135
5522
|
var _c;
|
|
6136
5523
|
return __generator(this, function (_d) {
|
|
6137
5524
|
switch (_d.label) {
|
|
@@ -6168,14 +5555,14 @@ var deserializeAws_restJson1UpdatePlaceIndexCommandError = function (output, con
|
|
|
6168
5555
|
case 11: throw _d.sent();
|
|
6169
5556
|
case 12:
|
|
6170
5557
|
parsedBody = parsedOutput.body;
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
$metadata: $metadata,
|
|
5558
|
+
throwDefaultError({
|
|
5559
|
+
output: output,
|
|
5560
|
+
parsedBody: parsedBody,
|
|
5561
|
+
exceptionCtor: __BaseException,
|
|
5562
|
+
errorCode: errorCode,
|
|
6177
5563
|
});
|
|
6178
|
-
|
|
5564
|
+
_d.label = 13;
|
|
5565
|
+
case 13: return [2];
|
|
6179
5566
|
}
|
|
6180
5567
|
});
|
|
6181
5568
|
}); };
|
|
@@ -6187,32 +5574,29 @@ export var deserializeAws_restJson1UpdateRouteCalculatorCommand = function (outp
|
|
|
6187
5574
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6188
5575
|
return [2, deserializeAws_restJson1UpdateRouteCalculatorCommandError(output, context)];
|
|
6189
5576
|
}
|
|
6190
|
-
contents = {
|
|
5577
|
+
contents = map({
|
|
6191
5578
|
$metadata: deserializeMetadata(output),
|
|
6192
|
-
|
|
6193
|
-
CalculatorName: undefined,
|
|
6194
|
-
UpdateTime: undefined,
|
|
6195
|
-
};
|
|
5579
|
+
});
|
|
6196
5580
|
_a = __expectNonNull;
|
|
6197
5581
|
_b = __expectObject;
|
|
6198
5582
|
return [4, parseBody(output.body, context)];
|
|
6199
5583
|
case 1:
|
|
6200
5584
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6201
|
-
if (data.CalculatorArn
|
|
5585
|
+
if (data.CalculatorArn != null) {
|
|
6202
5586
|
contents.CalculatorArn = __expectString(data.CalculatorArn);
|
|
6203
5587
|
}
|
|
6204
|
-
if (data.CalculatorName
|
|
5588
|
+
if (data.CalculatorName != null) {
|
|
6205
5589
|
contents.CalculatorName = __expectString(data.CalculatorName);
|
|
6206
5590
|
}
|
|
6207
|
-
if (data.UpdateTime
|
|
5591
|
+
if (data.UpdateTime != null) {
|
|
6208
5592
|
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
6209
5593
|
}
|
|
6210
|
-
return [2,
|
|
5594
|
+
return [2, contents];
|
|
6211
5595
|
}
|
|
6212
5596
|
});
|
|
6213
5597
|
}); };
|
|
6214
5598
|
var deserializeAws_restJson1UpdateRouteCalculatorCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6215
|
-
var parsedOutput, _a,
|
|
5599
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6216
5600
|
var _c;
|
|
6217
5601
|
return __generator(this, function (_d) {
|
|
6218
5602
|
switch (_d.label) {
|
|
@@ -6249,14 +5633,14 @@ var deserializeAws_restJson1UpdateRouteCalculatorCommandError = function (output
|
|
|
6249
5633
|
case 11: throw _d.sent();
|
|
6250
5634
|
case 12:
|
|
6251
5635
|
parsedBody = parsedOutput.body;
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
$metadata: $metadata,
|
|
5636
|
+
throwDefaultError({
|
|
5637
|
+
output: output,
|
|
5638
|
+
parsedBody: parsedBody,
|
|
5639
|
+
exceptionCtor: __BaseException,
|
|
5640
|
+
errorCode: errorCode,
|
|
6258
5641
|
});
|
|
6259
|
-
|
|
5642
|
+
_d.label = 13;
|
|
5643
|
+
case 13: return [2];
|
|
6260
5644
|
}
|
|
6261
5645
|
});
|
|
6262
5646
|
}); };
|
|
@@ -6268,32 +5652,29 @@ export var deserializeAws_restJson1UpdateTrackerCommand = function (output, cont
|
|
|
6268
5652
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6269
5653
|
return [2, deserializeAws_restJson1UpdateTrackerCommandError(output, context)];
|
|
6270
5654
|
}
|
|
6271
|
-
contents = {
|
|
5655
|
+
contents = map({
|
|
6272
5656
|
$metadata: deserializeMetadata(output),
|
|
6273
|
-
|
|
6274
|
-
TrackerName: undefined,
|
|
6275
|
-
UpdateTime: undefined,
|
|
6276
|
-
};
|
|
5657
|
+
});
|
|
6277
5658
|
_a = __expectNonNull;
|
|
6278
5659
|
_b = __expectObject;
|
|
6279
5660
|
return [4, parseBody(output.body, context)];
|
|
6280
5661
|
case 1:
|
|
6281
5662
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6282
|
-
if (data.TrackerArn
|
|
5663
|
+
if (data.TrackerArn != null) {
|
|
6283
5664
|
contents.TrackerArn = __expectString(data.TrackerArn);
|
|
6284
5665
|
}
|
|
6285
|
-
if (data.TrackerName
|
|
5666
|
+
if (data.TrackerName != null) {
|
|
6286
5667
|
contents.TrackerName = __expectString(data.TrackerName);
|
|
6287
5668
|
}
|
|
6288
|
-
if (data.UpdateTime
|
|
5669
|
+
if (data.UpdateTime != null) {
|
|
6289
5670
|
contents.UpdateTime = __expectNonNull(__parseRfc3339DateTime(data.UpdateTime));
|
|
6290
5671
|
}
|
|
6291
|
-
return [2,
|
|
5672
|
+
return [2, contents];
|
|
6292
5673
|
}
|
|
6293
5674
|
});
|
|
6294
5675
|
}); };
|
|
6295
5676
|
var deserializeAws_restJson1UpdateTrackerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6296
|
-
var parsedOutput, _a,
|
|
5677
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
6297
5678
|
var _c;
|
|
6298
5679
|
return __generator(this, function (_d) {
|
|
6299
5680
|
switch (_d.label) {
|
|
@@ -6330,23 +5711,24 @@ var deserializeAws_restJson1UpdateTrackerCommandError = function (output, contex
|
|
|
6330
5711
|
case 11: throw _d.sent();
|
|
6331
5712
|
case 12:
|
|
6332
5713
|
parsedBody = parsedOutput.body;
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
$metadata: $metadata,
|
|
5714
|
+
throwDefaultError({
|
|
5715
|
+
output: output,
|
|
5716
|
+
parsedBody: parsedBody,
|
|
5717
|
+
exceptionCtor: __BaseException,
|
|
5718
|
+
errorCode: errorCode,
|
|
6339
5719
|
});
|
|
6340
|
-
|
|
5720
|
+
_d.label = 13;
|
|
5721
|
+
case 13: return [2];
|
|
6341
5722
|
}
|
|
6342
5723
|
});
|
|
6343
5724
|
}); };
|
|
5725
|
+
var map = __map;
|
|
6344
5726
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6345
5727
|
var contents, data, exception;
|
|
6346
5728
|
return __generator(this, function (_a) {
|
|
6347
|
-
contents = {};
|
|
5729
|
+
contents = map({});
|
|
6348
5730
|
data = parsedOutput.body;
|
|
6349
|
-
if (data.message
|
|
5731
|
+
if (data.message != null) {
|
|
6350
5732
|
contents.Message = __expectString(data.message);
|
|
6351
5733
|
}
|
|
6352
5734
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -6356,9 +5738,9 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
6356
5738
|
var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6357
5739
|
var contents, data, exception;
|
|
6358
5740
|
return __generator(this, function (_a) {
|
|
6359
|
-
contents = {};
|
|
5741
|
+
contents = map({});
|
|
6360
5742
|
data = parsedOutput.body;
|
|
6361
|
-
if (data.message
|
|
5743
|
+
if (data.message != null) {
|
|
6362
5744
|
contents.Message = __expectString(data.message);
|
|
6363
5745
|
}
|
|
6364
5746
|
exception = new ConflictException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -6368,9 +5750,9 @@ var deserializeAws_restJson1ConflictExceptionResponse = function (parsedOutput,
|
|
|
6368
5750
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6369
5751
|
var contents, data, exception;
|
|
6370
5752
|
return __generator(this, function (_a) {
|
|
6371
|
-
contents = {};
|
|
5753
|
+
contents = map({});
|
|
6372
5754
|
data = parsedOutput.body;
|
|
6373
|
-
if (data.message
|
|
5755
|
+
if (data.message != null) {
|
|
6374
5756
|
contents.Message = __expectString(data.message);
|
|
6375
5757
|
}
|
|
6376
5758
|
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -6380,9 +5762,9 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
6380
5762
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6381
5763
|
var contents, data, exception;
|
|
6382
5764
|
return __generator(this, function (_a) {
|
|
6383
|
-
contents = {};
|
|
5765
|
+
contents = map({});
|
|
6384
5766
|
data = parsedOutput.body;
|
|
6385
|
-
if (data.message
|
|
5767
|
+
if (data.message != null) {
|
|
6386
5768
|
contents.Message = __expectString(data.message);
|
|
6387
5769
|
}
|
|
6388
5770
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -6392,9 +5774,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
6392
5774
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6393
5775
|
var contents, data, exception;
|
|
6394
5776
|
return __generator(this, function (_a) {
|
|
6395
|
-
contents = {};
|
|
5777
|
+
contents = map({});
|
|
6396
5778
|
data = parsedOutput.body;
|
|
6397
|
-
if (data.message
|
|
5779
|
+
if (data.message != null) {
|
|
6398
5780
|
contents.Message = __expectString(data.message);
|
|
6399
5781
|
}
|
|
6400
5782
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -6404,9 +5786,9 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
6404
5786
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6405
5787
|
var contents, data, exception;
|
|
6406
5788
|
return __generator(this, function (_a) {
|
|
6407
|
-
contents = {};
|
|
5789
|
+
contents = map({});
|
|
6408
5790
|
data = parsedOutput.body;
|
|
6409
|
-
if (data.message
|
|
5791
|
+
if (data.message != null) {
|
|
6410
5792
|
contents.Message = __expectString(data.message);
|
|
6411
5793
|
}
|
|
6412
5794
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -6416,15 +5798,15 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
6416
5798
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6417
5799
|
var contents, data, exception;
|
|
6418
5800
|
return __generator(this, function (_a) {
|
|
6419
|
-
contents = {};
|
|
5801
|
+
contents = map({});
|
|
6420
5802
|
data = parsedOutput.body;
|
|
6421
|
-
if (data.fieldList
|
|
5803
|
+
if (data.fieldList != null) {
|
|
6422
5804
|
contents.FieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
6423
5805
|
}
|
|
6424
|
-
if (data.message
|
|
5806
|
+
if (data.message != null) {
|
|
6425
5807
|
contents.Message = __expectString(data.message);
|
|
6426
5808
|
}
|
|
6427
|
-
if (data.reason
|
|
5809
|
+
if (data.reason != null) {
|
|
6428
5810
|
contents.Reason = __expectString(data.reason);
|
|
6429
5811
|
}
|
|
6430
5812
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -6438,9 +5820,6 @@ var serializeAws_restJson1BatchPutGeofenceRequestEntryList = function (input, co
|
|
|
6438
5820
|
return input
|
|
6439
5821
|
.filter(function (e) { return e != null; })
|
|
6440
5822
|
.map(function (entry) {
|
|
6441
|
-
if (entry === null) {
|
|
6442
|
-
return null;
|
|
6443
|
-
}
|
|
6444
5823
|
return serializeAws_restJson1BatchPutGeofenceRequestEntry(entry, context);
|
|
6445
5824
|
});
|
|
6446
5825
|
};
|
|
@@ -6448,9 +5827,6 @@ var serializeAws_restJson1BoundingBox = function (input, context) {
|
|
|
6448
5827
|
return input
|
|
6449
5828
|
.filter(function (e) { return e != null; })
|
|
6450
5829
|
.map(function (entry) {
|
|
6451
|
-
if (entry === null) {
|
|
6452
|
-
return null;
|
|
6453
|
-
}
|
|
6454
5830
|
return __serializeFloat(entry);
|
|
6455
5831
|
});
|
|
6456
5832
|
};
|
|
@@ -6464,9 +5840,6 @@ var serializeAws_restJson1CountryCodeList = function (input, context) {
|
|
|
6464
5840
|
return input
|
|
6465
5841
|
.filter(function (e) { return e != null; })
|
|
6466
5842
|
.map(function (entry) {
|
|
6467
|
-
if (entry === null) {
|
|
6468
|
-
return null;
|
|
6469
|
-
}
|
|
6470
5843
|
return entry;
|
|
6471
5844
|
});
|
|
6472
5845
|
};
|
|
@@ -6477,9 +5850,6 @@ var serializeAws_restJson1DeviceIdsList = function (input, context) {
|
|
|
6477
5850
|
return input
|
|
6478
5851
|
.filter(function (e) { return e != null; })
|
|
6479
5852
|
.map(function (entry) {
|
|
6480
|
-
if (entry === null) {
|
|
6481
|
-
return null;
|
|
6482
|
-
}
|
|
6483
5853
|
return entry;
|
|
6484
5854
|
});
|
|
6485
5855
|
};
|
|
@@ -6492,9 +5862,6 @@ var serializeAws_restJson1DevicePositionUpdateList = function (input, context) {
|
|
|
6492
5862
|
return input
|
|
6493
5863
|
.filter(function (e) { return e != null; })
|
|
6494
5864
|
.map(function (entry) {
|
|
6495
|
-
if (entry === null) {
|
|
6496
|
-
return null;
|
|
6497
|
-
}
|
|
6498
5865
|
return serializeAws_restJson1DevicePositionUpdate(entry, context);
|
|
6499
5866
|
});
|
|
6500
5867
|
};
|
|
@@ -6505,9 +5872,6 @@ var serializeAws_restJson1IdList = function (input, context) {
|
|
|
6505
5872
|
return input
|
|
6506
5873
|
.filter(function (e) { return e != null; })
|
|
6507
5874
|
.map(function (entry) {
|
|
6508
|
-
if (entry === null) {
|
|
6509
|
-
return null;
|
|
6510
|
-
}
|
|
6511
5875
|
return entry;
|
|
6512
5876
|
});
|
|
6513
5877
|
};
|
|
@@ -6515,9 +5879,6 @@ var serializeAws_restJson1LinearRing = function (input, context) {
|
|
|
6515
5879
|
return input
|
|
6516
5880
|
.filter(function (e) { return e != null; })
|
|
6517
5881
|
.map(function (entry) {
|
|
6518
|
-
if (entry === null) {
|
|
6519
|
-
return null;
|
|
6520
|
-
}
|
|
6521
5882
|
return serializeAws_restJson1Position(entry, context);
|
|
6522
5883
|
});
|
|
6523
5884
|
};
|
|
@@ -6525,9 +5886,6 @@ var serializeAws_restJson1LinearRings = function (input, context) {
|
|
|
6525
5886
|
return input
|
|
6526
5887
|
.filter(function (e) { return e != null; })
|
|
6527
5888
|
.map(function (entry) {
|
|
6528
|
-
if (entry === null) {
|
|
6529
|
-
return null;
|
|
6530
|
-
}
|
|
6531
5889
|
return serializeAws_restJson1LinearRing(entry, context);
|
|
6532
5890
|
});
|
|
6533
5891
|
};
|
|
@@ -6538,9 +5896,6 @@ var serializeAws_restJson1Position = function (input, context) {
|
|
|
6538
5896
|
return input
|
|
6539
5897
|
.filter(function (e) { return e != null; })
|
|
6540
5898
|
.map(function (entry) {
|
|
6541
|
-
if (entry === null) {
|
|
6542
|
-
return null;
|
|
6543
|
-
}
|
|
6544
5899
|
return __serializeFloat(entry);
|
|
6545
5900
|
});
|
|
6546
5901
|
};
|
|
@@ -6551,9 +5906,6 @@ var serializeAws_restJson1PositionList = function (input, context) {
|
|
|
6551
5906
|
return input
|
|
6552
5907
|
.filter(function (e) { return e != null; })
|
|
6553
5908
|
.map(function (entry) {
|
|
6554
|
-
if (entry === null) {
|
|
6555
|
-
return null;
|
|
6556
|
-
}
|
|
6557
5909
|
return serializeAws_restJson1Position(entry, context);
|
|
6558
5910
|
});
|
|
6559
5911
|
};
|
|
@@ -6587,9 +5939,6 @@ var serializeAws_restJson1WaypointPositionList = function (input, context) {
|
|
|
6587
5939
|
return input
|
|
6588
5940
|
.filter(function (e) { return e != null; })
|
|
6589
5941
|
.map(function (entry) {
|
|
6590
|
-
if (entry === null) {
|
|
6591
|
-
return null;
|
|
6592
|
-
}
|
|
6593
5942
|
return serializeAws_restJson1Position(entry, context);
|
|
6594
5943
|
});
|
|
6595
5944
|
};
|