@aws-sdk/client-cognito-sync 3.28.0 → 3.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +34 -34
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +105 -77
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +42 -35
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean,
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
4
4
|
export var serializeAws_restJson1BulkPublishCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
@@ -727,9 +727,9 @@ export var serializeAws_restJson1UpdateRecordsCommand = function (input, context
|
|
|
727
727
|
});
|
|
728
728
|
}); };
|
|
729
729
|
export var deserializeAws_restJson1BulkPublishCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
730
|
-
var contents, data;
|
|
731
|
-
return __generator(this, function (
|
|
732
|
-
switch (
|
|
730
|
+
var contents, data, _a, _b;
|
|
731
|
+
return __generator(this, function (_c) {
|
|
732
|
+
switch (_c.label) {
|
|
733
733
|
case 0:
|
|
734
734
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
735
735
|
return [2 /*return*/, deserializeAws_restJson1BulkPublishCommandError(output, context)];
|
|
@@ -738,9 +738,11 @@ export var deserializeAws_restJson1BulkPublishCommand = function (output, contex
|
|
|
738
738
|
$metadata: deserializeMetadata(output),
|
|
739
739
|
IdentityPoolId: undefined,
|
|
740
740
|
};
|
|
741
|
+
_a = __expectNonNull;
|
|
742
|
+
_b = __expectObject;
|
|
741
743
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
742
744
|
case 1:
|
|
743
|
-
data = _a.sent();
|
|
745
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
744
746
|
if (data.IdentityPoolId !== undefined && data.IdentityPoolId !== null) {
|
|
745
747
|
contents.IdentityPoolId = __expectString(data.IdentityPoolId);
|
|
746
748
|
}
|
|
@@ -827,9 +829,9 @@ var deserializeAws_restJson1BulkPublishCommandError = function (output, context)
|
|
|
827
829
|
});
|
|
828
830
|
}); };
|
|
829
831
|
export var deserializeAws_restJson1DeleteDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
830
|
-
var contents, data;
|
|
831
|
-
return __generator(this, function (
|
|
832
|
-
switch (
|
|
832
|
+
var contents, data, _a, _b;
|
|
833
|
+
return __generator(this, function (_c) {
|
|
834
|
+
switch (_c.label) {
|
|
833
835
|
case 0:
|
|
834
836
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
835
837
|
return [2 /*return*/, deserializeAws_restJson1DeleteDatasetCommandError(output, context)];
|
|
@@ -838,9 +840,11 @@ export var deserializeAws_restJson1DeleteDatasetCommand = function (output, cont
|
|
|
838
840
|
$metadata: deserializeMetadata(output),
|
|
839
841
|
Dataset: undefined,
|
|
840
842
|
};
|
|
843
|
+
_a = __expectNonNull;
|
|
844
|
+
_b = __expectObject;
|
|
841
845
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
842
846
|
case 1:
|
|
843
|
-
data = _a.sent();
|
|
847
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
844
848
|
if (data.Dataset !== undefined && data.Dataset !== null) {
|
|
845
849
|
contents.Dataset = deserializeAws_restJson1Dataset(data.Dataset, context);
|
|
846
850
|
}
|
|
@@ -927,9 +931,9 @@ var deserializeAws_restJson1DeleteDatasetCommandError = function (output, contex
|
|
|
927
931
|
});
|
|
928
932
|
}); };
|
|
929
933
|
export var deserializeAws_restJson1DescribeDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
930
|
-
var contents, data;
|
|
931
|
-
return __generator(this, function (
|
|
932
|
-
switch (
|
|
934
|
+
var contents, data, _a, _b;
|
|
935
|
+
return __generator(this, function (_c) {
|
|
936
|
+
switch (_c.label) {
|
|
933
937
|
case 0:
|
|
934
938
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
935
939
|
return [2 /*return*/, deserializeAws_restJson1DescribeDatasetCommandError(output, context)];
|
|
@@ -938,9 +942,11 @@ export var deserializeAws_restJson1DescribeDatasetCommand = function (output, co
|
|
|
938
942
|
$metadata: deserializeMetadata(output),
|
|
939
943
|
Dataset: undefined,
|
|
940
944
|
};
|
|
945
|
+
_a = __expectNonNull;
|
|
946
|
+
_b = __expectObject;
|
|
941
947
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
942
948
|
case 1:
|
|
943
|
-
data = _a.sent();
|
|
949
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
944
950
|
if (data.Dataset !== undefined && data.Dataset !== null) {
|
|
945
951
|
contents.Dataset = deserializeAws_restJson1Dataset(data.Dataset, context);
|
|
946
952
|
}
|
|
@@ -1019,9 +1025,9 @@ var deserializeAws_restJson1DescribeDatasetCommandError = function (output, cont
|
|
|
1019
1025
|
});
|
|
1020
1026
|
}); };
|
|
1021
1027
|
export var deserializeAws_restJson1DescribeIdentityPoolUsageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1022
|
-
var contents, data;
|
|
1023
|
-
return __generator(this, function (
|
|
1024
|
-
switch (
|
|
1028
|
+
var contents, data, _a, _b;
|
|
1029
|
+
return __generator(this, function (_c) {
|
|
1030
|
+
switch (_c.label) {
|
|
1025
1031
|
case 0:
|
|
1026
1032
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1027
1033
|
return [2 /*return*/, deserializeAws_restJson1DescribeIdentityPoolUsageCommandError(output, context)];
|
|
@@ -1030,9 +1036,11 @@ export var deserializeAws_restJson1DescribeIdentityPoolUsageCommand = function (
|
|
|
1030
1036
|
$metadata: deserializeMetadata(output),
|
|
1031
1037
|
IdentityPoolUsage: undefined,
|
|
1032
1038
|
};
|
|
1039
|
+
_a = __expectNonNull;
|
|
1040
|
+
_b = __expectObject;
|
|
1033
1041
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1034
1042
|
case 1:
|
|
1035
|
-
data = _a.sent();
|
|
1043
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1036
1044
|
if (data.IdentityPoolUsage !== undefined && data.IdentityPoolUsage !== null) {
|
|
1037
1045
|
contents.IdentityPoolUsage = deserializeAws_restJson1IdentityPoolUsage(data.IdentityPoolUsage, context);
|
|
1038
1046
|
}
|
|
@@ -1111,9 +1119,9 @@ var deserializeAws_restJson1DescribeIdentityPoolUsageCommandError = function (ou
|
|
|
1111
1119
|
});
|
|
1112
1120
|
}); };
|
|
1113
1121
|
export var deserializeAws_restJson1DescribeIdentityUsageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1114
|
-
var contents, data;
|
|
1115
|
-
return __generator(this, function (
|
|
1116
|
-
switch (
|
|
1122
|
+
var contents, data, _a, _b;
|
|
1123
|
+
return __generator(this, function (_c) {
|
|
1124
|
+
switch (_c.label) {
|
|
1117
1125
|
case 0:
|
|
1118
1126
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1119
1127
|
return [2 /*return*/, deserializeAws_restJson1DescribeIdentityUsageCommandError(output, context)];
|
|
@@ -1122,9 +1130,11 @@ export var deserializeAws_restJson1DescribeIdentityUsageCommand = function (outp
|
|
|
1122
1130
|
$metadata: deserializeMetadata(output),
|
|
1123
1131
|
IdentityUsage: undefined,
|
|
1124
1132
|
};
|
|
1133
|
+
_a = __expectNonNull;
|
|
1134
|
+
_b = __expectObject;
|
|
1125
1135
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1126
1136
|
case 1:
|
|
1127
|
-
data = _a.sent();
|
|
1137
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1128
1138
|
if (data.IdentityUsage !== undefined && data.IdentityUsage !== null) {
|
|
1129
1139
|
contents.IdentityUsage = deserializeAws_restJson1IdentityUsage(data.IdentityUsage, context);
|
|
1130
1140
|
}
|
|
@@ -1203,9 +1213,9 @@ var deserializeAws_restJson1DescribeIdentityUsageCommandError = function (output
|
|
|
1203
1213
|
});
|
|
1204
1214
|
}); };
|
|
1205
1215
|
export var deserializeAws_restJson1GetBulkPublishDetailsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1206
|
-
var contents, data;
|
|
1207
|
-
return __generator(this, function (
|
|
1208
|
-
switch (
|
|
1216
|
+
var contents, data, _a, _b;
|
|
1217
|
+
return __generator(this, function (_c) {
|
|
1218
|
+
switch (_c.label) {
|
|
1209
1219
|
case 0:
|
|
1210
1220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1211
1221
|
return [2 /*return*/, deserializeAws_restJson1GetBulkPublishDetailsCommandError(output, context)];
|
|
@@ -1218,14 +1228,16 @@ export var deserializeAws_restJson1GetBulkPublishDetailsCommand = function (outp
|
|
|
1218
1228
|
FailureMessage: undefined,
|
|
1219
1229
|
IdentityPoolId: undefined,
|
|
1220
1230
|
};
|
|
1231
|
+
_a = __expectNonNull;
|
|
1232
|
+
_b = __expectObject;
|
|
1221
1233
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1222
1234
|
case 1:
|
|
1223
|
-
data = _a.sent();
|
|
1235
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1224
1236
|
if (data.BulkPublishCompleteTime !== undefined && data.BulkPublishCompleteTime !== null) {
|
|
1225
|
-
contents.BulkPublishCompleteTime =
|
|
1237
|
+
contents.BulkPublishCompleteTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.BulkPublishCompleteTime)));
|
|
1226
1238
|
}
|
|
1227
1239
|
if (data.BulkPublishStartTime !== undefined && data.BulkPublishStartTime !== null) {
|
|
1228
|
-
contents.BulkPublishStartTime =
|
|
1240
|
+
contents.BulkPublishStartTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.BulkPublishStartTime)));
|
|
1229
1241
|
}
|
|
1230
1242
|
if (data.BulkPublishStatus !== undefined && data.BulkPublishStatus !== null) {
|
|
1231
1243
|
contents.BulkPublishStatus = __expectString(data.BulkPublishStatus);
|
|
@@ -1303,9 +1315,9 @@ var deserializeAws_restJson1GetBulkPublishDetailsCommandError = function (output
|
|
|
1303
1315
|
});
|
|
1304
1316
|
}); };
|
|
1305
1317
|
export var deserializeAws_restJson1GetCognitoEventsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1306
|
-
var contents, data;
|
|
1307
|
-
return __generator(this, function (
|
|
1308
|
-
switch (
|
|
1318
|
+
var contents, data, _a, _b;
|
|
1319
|
+
return __generator(this, function (_c) {
|
|
1320
|
+
switch (_c.label) {
|
|
1309
1321
|
case 0:
|
|
1310
1322
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1311
1323
|
return [2 /*return*/, deserializeAws_restJson1GetCognitoEventsCommandError(output, context)];
|
|
@@ -1314,9 +1326,11 @@ export var deserializeAws_restJson1GetCognitoEventsCommand = function (output, c
|
|
|
1314
1326
|
$metadata: deserializeMetadata(output),
|
|
1315
1327
|
Events: undefined,
|
|
1316
1328
|
};
|
|
1329
|
+
_a = __expectNonNull;
|
|
1330
|
+
_b = __expectObject;
|
|
1317
1331
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1318
1332
|
case 1:
|
|
1319
|
-
data = _a.sent();
|
|
1333
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1320
1334
|
if (data.Events !== undefined && data.Events !== null) {
|
|
1321
1335
|
contents.Events = deserializeAws_restJson1Events(data.Events, context);
|
|
1322
1336
|
}
|
|
@@ -1395,9 +1409,9 @@ var deserializeAws_restJson1GetCognitoEventsCommandError = function (output, con
|
|
|
1395
1409
|
});
|
|
1396
1410
|
}); };
|
|
1397
1411
|
export var deserializeAws_restJson1GetIdentityPoolConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1398
|
-
var contents, data;
|
|
1399
|
-
return __generator(this, function (
|
|
1400
|
-
switch (
|
|
1412
|
+
var contents, data, _a, _b;
|
|
1413
|
+
return __generator(this, function (_c) {
|
|
1414
|
+
switch (_c.label) {
|
|
1401
1415
|
case 0:
|
|
1402
1416
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1403
1417
|
return [2 /*return*/, deserializeAws_restJson1GetIdentityPoolConfigurationCommandError(output, context)];
|
|
@@ -1408,9 +1422,11 @@ export var deserializeAws_restJson1GetIdentityPoolConfigurationCommand = functio
|
|
|
1408
1422
|
IdentityPoolId: undefined,
|
|
1409
1423
|
PushSync: undefined,
|
|
1410
1424
|
};
|
|
1425
|
+
_a = __expectNonNull;
|
|
1426
|
+
_b = __expectObject;
|
|
1411
1427
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1412
1428
|
case 1:
|
|
1413
|
-
data = _a.sent();
|
|
1429
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1414
1430
|
if (data.CognitoStreams !== undefined && data.CognitoStreams !== null) {
|
|
1415
1431
|
contents.CognitoStreams = deserializeAws_restJson1CognitoStreams(data.CognitoStreams, context);
|
|
1416
1432
|
}
|
|
@@ -1495,9 +1511,9 @@ var deserializeAws_restJson1GetIdentityPoolConfigurationCommandError = function
|
|
|
1495
1511
|
});
|
|
1496
1512
|
}); };
|
|
1497
1513
|
export var deserializeAws_restJson1ListDatasetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1498
|
-
var contents, data;
|
|
1499
|
-
return __generator(this, function (
|
|
1500
|
-
switch (
|
|
1514
|
+
var contents, data, _a, _b;
|
|
1515
|
+
return __generator(this, function (_c) {
|
|
1516
|
+
switch (_c.label) {
|
|
1501
1517
|
case 0:
|
|
1502
1518
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1503
1519
|
return [2 /*return*/, deserializeAws_restJson1ListDatasetsCommandError(output, context)];
|
|
@@ -1508,11 +1524,13 @@ export var deserializeAws_restJson1ListDatasetsCommand = function (output, conte
|
|
|
1508
1524
|
Datasets: undefined,
|
|
1509
1525
|
NextToken: undefined,
|
|
1510
1526
|
};
|
|
1527
|
+
_a = __expectNonNull;
|
|
1528
|
+
_b = __expectObject;
|
|
1511
1529
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1512
1530
|
case 1:
|
|
1513
|
-
data = _a.sent();
|
|
1531
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1514
1532
|
if (data.Count !== undefined && data.Count !== null) {
|
|
1515
|
-
contents.Count =
|
|
1533
|
+
contents.Count = __expectInt32(data.Count);
|
|
1516
1534
|
}
|
|
1517
1535
|
if (data.Datasets !== undefined && data.Datasets !== null) {
|
|
1518
1536
|
contents.Datasets = deserializeAws_restJson1DatasetList(data.Datasets, context);
|
|
@@ -1587,9 +1605,9 @@ var deserializeAws_restJson1ListDatasetsCommandError = function (output, context
|
|
|
1587
1605
|
});
|
|
1588
1606
|
}); };
|
|
1589
1607
|
export var deserializeAws_restJson1ListIdentityPoolUsageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1590
|
-
var contents, data;
|
|
1591
|
-
return __generator(this, function (
|
|
1592
|
-
switch (
|
|
1608
|
+
var contents, data, _a, _b;
|
|
1609
|
+
return __generator(this, function (_c) {
|
|
1610
|
+
switch (_c.label) {
|
|
1593
1611
|
case 0:
|
|
1594
1612
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1595
1613
|
return [2 /*return*/, deserializeAws_restJson1ListIdentityPoolUsageCommandError(output, context)];
|
|
@@ -1601,17 +1619,19 @@ export var deserializeAws_restJson1ListIdentityPoolUsageCommand = function (outp
|
|
|
1601
1619
|
MaxResults: undefined,
|
|
1602
1620
|
NextToken: undefined,
|
|
1603
1621
|
};
|
|
1622
|
+
_a = __expectNonNull;
|
|
1623
|
+
_b = __expectObject;
|
|
1604
1624
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1605
1625
|
case 1:
|
|
1606
|
-
data = _a.sent();
|
|
1626
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1607
1627
|
if (data.Count !== undefined && data.Count !== null) {
|
|
1608
|
-
contents.Count =
|
|
1628
|
+
contents.Count = __expectInt32(data.Count);
|
|
1609
1629
|
}
|
|
1610
1630
|
if (data.IdentityPoolUsages !== undefined && data.IdentityPoolUsages !== null) {
|
|
1611
1631
|
contents.IdentityPoolUsages = deserializeAws_restJson1IdentityPoolUsageList(data.IdentityPoolUsages, context);
|
|
1612
1632
|
}
|
|
1613
1633
|
if (data.MaxResults !== undefined && data.MaxResults !== null) {
|
|
1614
|
-
contents.MaxResults =
|
|
1634
|
+
contents.MaxResults = __expectInt32(data.MaxResults);
|
|
1615
1635
|
}
|
|
1616
1636
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
1617
1637
|
contents.NextToken = __expectString(data.NextToken);
|
|
@@ -1683,9 +1703,9 @@ var deserializeAws_restJson1ListIdentityPoolUsageCommandError = function (output
|
|
|
1683
1703
|
});
|
|
1684
1704
|
}); };
|
|
1685
1705
|
export var deserializeAws_restJson1ListRecordsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1686
|
-
var contents, data;
|
|
1687
|
-
return __generator(this, function (
|
|
1688
|
-
switch (
|
|
1706
|
+
var contents, data, _a, _b;
|
|
1707
|
+
return __generator(this, function (_c) {
|
|
1708
|
+
switch (_c.label) {
|
|
1689
1709
|
case 0:
|
|
1690
1710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1691
1711
|
return [2 /*return*/, deserializeAws_restJson1ListRecordsCommandError(output, context)];
|
|
@@ -1702,11 +1722,13 @@ export var deserializeAws_restJson1ListRecordsCommand = function (output, contex
|
|
|
1702
1722
|
Records: undefined,
|
|
1703
1723
|
SyncSessionToken: undefined,
|
|
1704
1724
|
};
|
|
1725
|
+
_a = __expectNonNull;
|
|
1726
|
+
_b = __expectObject;
|
|
1705
1727
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1706
1728
|
case 1:
|
|
1707
|
-
data = _a.sent();
|
|
1729
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1708
1730
|
if (data.Count !== undefined && data.Count !== null) {
|
|
1709
|
-
contents.Count =
|
|
1731
|
+
contents.Count = __expectInt32(data.Count);
|
|
1710
1732
|
}
|
|
1711
1733
|
if (data.DatasetDeletedAfterRequestedSyncCount !== undefined && data.DatasetDeletedAfterRequestedSyncCount !== null) {
|
|
1712
1734
|
contents.DatasetDeletedAfterRequestedSyncCount = __expectBoolean(data.DatasetDeletedAfterRequestedSyncCount);
|
|
@@ -1715,7 +1737,7 @@ export var deserializeAws_restJson1ListRecordsCommand = function (output, contex
|
|
|
1715
1737
|
contents.DatasetExists = __expectBoolean(data.DatasetExists);
|
|
1716
1738
|
}
|
|
1717
1739
|
if (data.DatasetSyncCount !== undefined && data.DatasetSyncCount !== null) {
|
|
1718
|
-
contents.DatasetSyncCount =
|
|
1740
|
+
contents.DatasetSyncCount = __expectLong(data.DatasetSyncCount);
|
|
1719
1741
|
}
|
|
1720
1742
|
if (data.LastModifiedBy !== undefined && data.LastModifiedBy !== null) {
|
|
1721
1743
|
contents.LastModifiedBy = __expectString(data.LastModifiedBy);
|
|
@@ -1799,9 +1821,9 @@ var deserializeAws_restJson1ListRecordsCommandError = function (output, context)
|
|
|
1799
1821
|
});
|
|
1800
1822
|
}); };
|
|
1801
1823
|
export var deserializeAws_restJson1RegisterDeviceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1802
|
-
var contents, data;
|
|
1803
|
-
return __generator(this, function (
|
|
1804
|
-
switch (
|
|
1824
|
+
var contents, data, _a, _b;
|
|
1825
|
+
return __generator(this, function (_c) {
|
|
1826
|
+
switch (_c.label) {
|
|
1805
1827
|
case 0:
|
|
1806
1828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1807
1829
|
return [2 /*return*/, deserializeAws_restJson1RegisterDeviceCommandError(output, context)];
|
|
@@ -1810,9 +1832,11 @@ export var deserializeAws_restJson1RegisterDeviceCommand = function (output, con
|
|
|
1810
1832
|
$metadata: deserializeMetadata(output),
|
|
1811
1833
|
DeviceId: undefined,
|
|
1812
1834
|
};
|
|
1835
|
+
_a = __expectNonNull;
|
|
1836
|
+
_b = __expectObject;
|
|
1813
1837
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1814
1838
|
case 1:
|
|
1815
|
-
data = _a.sent();
|
|
1839
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1816
1840
|
if (data.DeviceId !== undefined && data.DeviceId !== null) {
|
|
1817
1841
|
contents.DeviceId = __expectString(data.DeviceId);
|
|
1818
1842
|
}
|
|
@@ -1987,9 +2011,9 @@ var deserializeAws_restJson1SetCognitoEventsCommandError = function (output, con
|
|
|
1987
2011
|
});
|
|
1988
2012
|
}); };
|
|
1989
2013
|
export var deserializeAws_restJson1SetIdentityPoolConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1990
|
-
var contents, data;
|
|
1991
|
-
return __generator(this, function (
|
|
1992
|
-
switch (
|
|
2014
|
+
var contents, data, _a, _b;
|
|
2015
|
+
return __generator(this, function (_c) {
|
|
2016
|
+
switch (_c.label) {
|
|
1993
2017
|
case 0:
|
|
1994
2018
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1995
2019
|
return [2 /*return*/, deserializeAws_restJson1SetIdentityPoolConfigurationCommandError(output, context)];
|
|
@@ -2000,9 +2024,11 @@ export var deserializeAws_restJson1SetIdentityPoolConfigurationCommand = functio
|
|
|
2000
2024
|
IdentityPoolId: undefined,
|
|
2001
2025
|
PushSync: undefined,
|
|
2002
2026
|
};
|
|
2027
|
+
_a = __expectNonNull;
|
|
2028
|
+
_b = __expectObject;
|
|
2003
2029
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2004
2030
|
case 1:
|
|
2005
|
-
data = _a.sent();
|
|
2031
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2006
2032
|
if (data.CognitoStreams !== undefined && data.CognitoStreams !== null) {
|
|
2007
2033
|
contents.CognitoStreams = deserializeAws_restJson1CognitoStreams(data.CognitoStreams, context);
|
|
2008
2034
|
}
|
|
@@ -2287,9 +2313,9 @@ var deserializeAws_restJson1UnsubscribeFromDatasetCommandError = function (outpu
|
|
|
2287
2313
|
});
|
|
2288
2314
|
}); };
|
|
2289
2315
|
export var deserializeAws_restJson1UpdateRecordsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2290
|
-
var contents, data;
|
|
2291
|
-
return __generator(this, function (
|
|
2292
|
-
switch (
|
|
2316
|
+
var contents, data, _a, _b;
|
|
2317
|
+
return __generator(this, function (_c) {
|
|
2318
|
+
switch (_c.label) {
|
|
2293
2319
|
case 0:
|
|
2294
2320
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2295
2321
|
return [2 /*return*/, deserializeAws_restJson1UpdateRecordsCommandError(output, context)];
|
|
@@ -2298,9 +2324,11 @@ export var deserializeAws_restJson1UpdateRecordsCommand = function (output, cont
|
|
|
2298
2324
|
$metadata: deserializeMetadata(output),
|
|
2299
2325
|
Records: undefined,
|
|
2300
2326
|
};
|
|
2327
|
+
_a = __expectNonNull;
|
|
2328
|
+
_b = __expectObject;
|
|
2301
2329
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2302
2330
|
case 1:
|
|
2303
|
-
data = _a.sent();
|
|
2331
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2304
2332
|
if (data.Records !== undefined && data.Records !== null) {
|
|
2305
2333
|
contents.Records = deserializeAws_restJson1RecordList(data.Records, context);
|
|
2306
2334
|
}
|
|
@@ -2684,16 +2712,16 @@ var deserializeAws_restJson1CognitoStreams = function (output, context) {
|
|
|
2684
2712
|
var deserializeAws_restJson1Dataset = function (output, context) {
|
|
2685
2713
|
return {
|
|
2686
2714
|
CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
|
|
2687
|
-
?
|
|
2715
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
|
|
2688
2716
|
: undefined,
|
|
2689
|
-
DataStorage:
|
|
2717
|
+
DataStorage: __expectLong(output.DataStorage),
|
|
2690
2718
|
DatasetName: __expectString(output.DatasetName),
|
|
2691
2719
|
IdentityId: __expectString(output.IdentityId),
|
|
2692
2720
|
LastModifiedBy: __expectString(output.LastModifiedBy),
|
|
2693
2721
|
LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
|
|
2694
|
-
?
|
|
2722
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
|
|
2695
2723
|
: undefined,
|
|
2696
|
-
NumRecords:
|
|
2724
|
+
NumRecords: __expectLong(output.NumRecords),
|
|
2697
2725
|
};
|
|
2698
2726
|
};
|
|
2699
2727
|
var deserializeAws_restJson1DatasetList = function (output, context) {
|
|
@@ -2718,12 +2746,12 @@ var deserializeAws_restJson1Events = function (output, context) {
|
|
|
2718
2746
|
};
|
|
2719
2747
|
var deserializeAws_restJson1IdentityPoolUsage = function (output, context) {
|
|
2720
2748
|
return {
|
|
2721
|
-
DataStorage:
|
|
2749
|
+
DataStorage: __expectLong(output.DataStorage),
|
|
2722
2750
|
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
2723
2751
|
LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
|
|
2724
|
-
?
|
|
2752
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
|
|
2725
2753
|
: undefined,
|
|
2726
|
-
SyncSessionsCount:
|
|
2754
|
+
SyncSessionsCount: __expectLong(output.SyncSessionsCount),
|
|
2727
2755
|
};
|
|
2728
2756
|
};
|
|
2729
2757
|
var deserializeAws_restJson1IdentityPoolUsageList = function (output, context) {
|
|
@@ -2738,12 +2766,12 @@ var deserializeAws_restJson1IdentityPoolUsageList = function (output, context) {
|
|
|
2738
2766
|
};
|
|
2739
2767
|
var deserializeAws_restJson1IdentityUsage = function (output, context) {
|
|
2740
2768
|
return {
|
|
2741
|
-
DataStorage:
|
|
2742
|
-
DatasetCount:
|
|
2769
|
+
DataStorage: __expectLong(output.DataStorage),
|
|
2770
|
+
DatasetCount: __expectInt32(output.DatasetCount),
|
|
2743
2771
|
IdentityId: __expectString(output.IdentityId),
|
|
2744
2772
|
IdentityPoolId: __expectString(output.IdentityPoolId),
|
|
2745
2773
|
LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
|
|
2746
|
-
?
|
|
2774
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
|
|
2747
2775
|
: undefined,
|
|
2748
2776
|
};
|
|
2749
2777
|
};
|
|
@@ -2768,14 +2796,14 @@ var deserializeAws_restJson1PushSync = function (output, context) {
|
|
|
2768
2796
|
var deserializeAws_restJson1_Record = function (output, context) {
|
|
2769
2797
|
return {
|
|
2770
2798
|
DeviceLastModifiedDate: output.DeviceLastModifiedDate !== undefined && output.DeviceLastModifiedDate !== null
|
|
2771
|
-
?
|
|
2799
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeviceLastModifiedDate)))
|
|
2772
2800
|
: undefined,
|
|
2773
2801
|
Key: __expectString(output.Key),
|
|
2774
2802
|
LastModifiedBy: __expectString(output.LastModifiedBy),
|
|
2775
2803
|
LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
|
|
2776
|
-
?
|
|
2804
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
|
|
2777
2805
|
: undefined,
|
|
2778
|
-
SyncCount:
|
|
2806
|
+
SyncCount: __expectLong(output.SyncCount),
|
|
2779
2807
|
Value: __expectString(output.Value),
|
|
2780
2808
|
};
|
|
2781
2809
|
};
|