@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 CHANGED
@@ -3,6 +3,38 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-cognito-sync
9
+
10
+
11
+
12
+
13
+
14
+ # [3.31.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.30.0...v3.31.0) (2021-09-11)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-cognito-sync
17
+
18
+
19
+
20
+
21
+
22
+ # [3.30.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.29.0...v3.30.0) (2021-09-07)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/client-cognito-sync
25
+
26
+
27
+
28
+
29
+
30
+ # [3.29.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.28.0...v3.29.0) (2021-09-02)
31
+
32
+ **Note:** Version bump only for package @aws-sdk/client-cognito-sync
33
+
34
+
35
+
36
+
37
+
6
38
  # [3.28.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.27.0...v3.28.0) (2021-08-27)
7
39
 
8
40
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cognito-sync",
3
3
  "description": "AWS SDK for JavaScript Cognito Sync Client for Node.js, Browser and React Native",
4
- "version": "3.28.0",
4
+ "version": "3.32.0",
5
5
  "scripts": {
6
6
  "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
7
  "build-documentation": "yarn remove-documentation && typedoc ./",
@@ -27,45 +27,45 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "^1.0.0",
29
29
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.28.0",
31
- "@aws-sdk/config-resolver": "3.28.0",
32
- "@aws-sdk/credential-provider-node": "3.28.0",
33
- "@aws-sdk/fetch-http-handler": "3.25.0",
34
- "@aws-sdk/hash-node": "3.25.0",
35
- "@aws-sdk/invalid-dependency": "3.25.0",
36
- "@aws-sdk/middleware-content-length": "3.25.0",
37
- "@aws-sdk/middleware-host-header": "3.25.0",
38
- "@aws-sdk/middleware-logger": "3.25.0",
39
- "@aws-sdk/middleware-retry": "3.28.0",
40
- "@aws-sdk/middleware-serde": "3.25.0",
41
- "@aws-sdk/middleware-signing": "3.28.0",
42
- "@aws-sdk/middleware-stack": "3.25.0",
43
- "@aws-sdk/middleware-user-agent": "3.25.0",
44
- "@aws-sdk/node-config-provider": "3.28.0",
45
- "@aws-sdk/node-http-handler": "3.25.0",
46
- "@aws-sdk/protocol-http": "3.25.0",
47
- "@aws-sdk/smithy-client": "3.28.0",
48
- "@aws-sdk/types": "3.25.0",
49
- "@aws-sdk/url-parser": "3.25.0",
50
- "@aws-sdk/util-base64-browser": "3.23.0",
51
- "@aws-sdk/util-base64-node": "3.23.0",
52
- "@aws-sdk/util-body-length-browser": "3.23.0",
53
- "@aws-sdk/util-body-length-node": "3.23.0",
54
- "@aws-sdk/util-user-agent-browser": "3.25.0",
55
- "@aws-sdk/util-user-agent-node": "3.28.0",
56
- "@aws-sdk/util-utf8-browser": "3.23.0",
57
- "@aws-sdk/util-utf8-node": "3.23.0",
30
+ "@aws-sdk/client-sts": "3.32.0",
31
+ "@aws-sdk/config-resolver": "3.32.0",
32
+ "@aws-sdk/credential-provider-node": "3.32.0",
33
+ "@aws-sdk/fetch-http-handler": "3.32.0",
34
+ "@aws-sdk/hash-node": "3.32.0",
35
+ "@aws-sdk/invalid-dependency": "3.32.0",
36
+ "@aws-sdk/middleware-content-length": "3.32.0",
37
+ "@aws-sdk/middleware-host-header": "3.32.0",
38
+ "@aws-sdk/middleware-logger": "3.32.0",
39
+ "@aws-sdk/middleware-retry": "3.32.0",
40
+ "@aws-sdk/middleware-serde": "3.32.0",
41
+ "@aws-sdk/middleware-signing": "3.32.0",
42
+ "@aws-sdk/middleware-stack": "3.32.0",
43
+ "@aws-sdk/middleware-user-agent": "3.32.0",
44
+ "@aws-sdk/node-config-provider": "3.32.0",
45
+ "@aws-sdk/node-http-handler": "3.32.0",
46
+ "@aws-sdk/protocol-http": "3.32.0",
47
+ "@aws-sdk/smithy-client": "3.32.0",
48
+ "@aws-sdk/types": "3.32.0",
49
+ "@aws-sdk/url-parser": "3.32.0",
50
+ "@aws-sdk/util-base64-browser": "3.32.0",
51
+ "@aws-sdk/util-base64-node": "3.32.0",
52
+ "@aws-sdk/util-body-length-browser": "3.32.0",
53
+ "@aws-sdk/util-body-length-node": "3.32.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.32.0",
55
+ "@aws-sdk/util-user-agent-node": "3.32.0",
56
+ "@aws-sdk/util-utf8-browser": "3.32.0",
57
+ "@aws-sdk/util-utf8-node": "3.32.0",
58
58
  "tslib": "^2.3.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@aws-sdk/client-documentation-generator": "3.23.0",
61
+ "@aws-sdk/client-documentation-generator": "3.32.0",
62
62
  "@types/node": "^12.7.5",
63
63
  "downlevel-dts": "0.7.0",
64
64
  "jest": "^26.1.0",
65
65
  "rimraf": "^3.0.0",
66
66
  "ts-jest": "^26.4.1",
67
67
  "typedoc": "^0.19.2",
68
- "typescript": "~4.3.2"
68
+ "typescript": "~4.3.5"
69
69
  },
70
70
  "engines": {
71
71
  "node": ">=10.0.0"
@@ -677,7 +677,7 @@ const deserializeAws_restJson1BulkPublishCommand = async (output, context) => {
677
677
  $metadata: deserializeMetadata(output),
678
678
  IdentityPoolId: undefined,
679
679
  };
680
- const data = await parseBody(output.body, context);
680
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
681
681
  if (data.IdentityPoolId !== undefined && data.IdentityPoolId !== null) {
682
682
  contents.IdentityPoolId = smithy_client_1.expectString(data.IdentityPoolId);
683
683
  }
@@ -765,7 +765,7 @@ const deserializeAws_restJson1DeleteDatasetCommand = async (output, context) =>
765
765
  $metadata: deserializeMetadata(output),
766
766
  Dataset: undefined,
767
767
  };
768
- const data = await parseBody(output.body, context);
768
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
769
769
  if (data.Dataset !== undefined && data.Dataset !== null) {
770
770
  contents.Dataset = deserializeAws_restJson1Dataset(data.Dataset, context);
771
771
  }
@@ -853,7 +853,7 @@ const deserializeAws_restJson1DescribeDatasetCommand = async (output, context) =
853
853
  $metadata: deserializeMetadata(output),
854
854
  Dataset: undefined,
855
855
  };
856
- const data = await parseBody(output.body, context);
856
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
857
857
  if (data.Dataset !== undefined && data.Dataset !== null) {
858
858
  contents.Dataset = deserializeAws_restJson1Dataset(data.Dataset, context);
859
859
  }
@@ -933,7 +933,7 @@ const deserializeAws_restJson1DescribeIdentityPoolUsageCommand = async (output,
933
933
  $metadata: deserializeMetadata(output),
934
934
  IdentityPoolUsage: undefined,
935
935
  };
936
- const data = await parseBody(output.body, context);
936
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
937
937
  if (data.IdentityPoolUsage !== undefined && data.IdentityPoolUsage !== null) {
938
938
  contents.IdentityPoolUsage = deserializeAws_restJson1IdentityPoolUsage(data.IdentityPoolUsage, context);
939
939
  }
@@ -1013,7 +1013,7 @@ const deserializeAws_restJson1DescribeIdentityUsageCommand = async (output, cont
1013
1013
  $metadata: deserializeMetadata(output),
1014
1014
  IdentityUsage: undefined,
1015
1015
  };
1016
- const data = await parseBody(output.body, context);
1016
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1017
1017
  if (data.IdentityUsage !== undefined && data.IdentityUsage !== null) {
1018
1018
  contents.IdentityUsage = deserializeAws_restJson1IdentityUsage(data.IdentityUsage, context);
1019
1019
  }
@@ -1097,12 +1097,12 @@ const deserializeAws_restJson1GetBulkPublishDetailsCommand = async (output, cont
1097
1097
  FailureMessage: undefined,
1098
1098
  IdentityPoolId: undefined,
1099
1099
  };
1100
- const data = await parseBody(output.body, context);
1100
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1101
1101
  if (data.BulkPublishCompleteTime !== undefined && data.BulkPublishCompleteTime !== null) {
1102
- contents.BulkPublishCompleteTime = new Date(Math.round(data.BulkPublishCompleteTime * 1000));
1102
+ contents.BulkPublishCompleteTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.BulkPublishCompleteTime)));
1103
1103
  }
1104
1104
  if (data.BulkPublishStartTime !== undefined && data.BulkPublishStartTime !== null) {
1105
- contents.BulkPublishStartTime = new Date(Math.round(data.BulkPublishStartTime * 1000));
1105
+ contents.BulkPublishStartTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.BulkPublishStartTime)));
1106
1106
  }
1107
1107
  if (data.BulkPublishStatus !== undefined && data.BulkPublishStatus !== null) {
1108
1108
  contents.BulkPublishStatus = smithy_client_1.expectString(data.BulkPublishStatus);
@@ -1181,7 +1181,7 @@ const deserializeAws_restJson1GetCognitoEventsCommand = async (output, context)
1181
1181
  $metadata: deserializeMetadata(output),
1182
1182
  Events: undefined,
1183
1183
  };
1184
- const data = await parseBody(output.body, context);
1184
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1185
1185
  if (data.Events !== undefined && data.Events !== null) {
1186
1186
  contents.Events = deserializeAws_restJson1Events(data.Events, context);
1187
1187
  }
@@ -1263,7 +1263,7 @@ const deserializeAws_restJson1GetIdentityPoolConfigurationCommand = async (outpu
1263
1263
  IdentityPoolId: undefined,
1264
1264
  PushSync: undefined,
1265
1265
  };
1266
- const data = await parseBody(output.body, context);
1266
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1267
1267
  if (data.CognitoStreams !== undefined && data.CognitoStreams !== null) {
1268
1268
  contents.CognitoStreams = deserializeAws_restJson1CognitoStreams(data.CognitoStreams, context);
1269
1269
  }
@@ -1351,9 +1351,9 @@ const deserializeAws_restJson1ListDatasetsCommand = async (output, context) => {
1351
1351
  Datasets: undefined,
1352
1352
  NextToken: undefined,
1353
1353
  };
1354
- const data = await parseBody(output.body, context);
1354
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1355
1355
  if (data.Count !== undefined && data.Count !== null) {
1356
- contents.Count = smithy_client_1.expectInt(data.Count);
1356
+ contents.Count = smithy_client_1.expectInt32(data.Count);
1357
1357
  }
1358
1358
  if (data.Datasets !== undefined && data.Datasets !== null) {
1359
1359
  contents.Datasets = deserializeAws_restJson1DatasetList(data.Datasets, context);
@@ -1432,15 +1432,15 @@ const deserializeAws_restJson1ListIdentityPoolUsageCommand = async (output, cont
1432
1432
  MaxResults: undefined,
1433
1433
  NextToken: undefined,
1434
1434
  };
1435
- const data = await parseBody(output.body, context);
1435
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1436
1436
  if (data.Count !== undefined && data.Count !== null) {
1437
- contents.Count = smithy_client_1.expectInt(data.Count);
1437
+ contents.Count = smithy_client_1.expectInt32(data.Count);
1438
1438
  }
1439
1439
  if (data.IdentityPoolUsages !== undefined && data.IdentityPoolUsages !== null) {
1440
1440
  contents.IdentityPoolUsages = deserializeAws_restJson1IdentityPoolUsageList(data.IdentityPoolUsages, context);
1441
1441
  }
1442
1442
  if (data.MaxResults !== undefined && data.MaxResults !== null) {
1443
- contents.MaxResults = smithy_client_1.expectInt(data.MaxResults);
1443
+ contents.MaxResults = smithy_client_1.expectInt32(data.MaxResults);
1444
1444
  }
1445
1445
  if (data.NextToken !== undefined && data.NextToken !== null) {
1446
1446
  contents.NextToken = smithy_client_1.expectString(data.NextToken);
@@ -1521,9 +1521,9 @@ const deserializeAws_restJson1ListRecordsCommand = async (output, context) => {
1521
1521
  Records: undefined,
1522
1522
  SyncSessionToken: undefined,
1523
1523
  };
1524
- const data = await parseBody(output.body, context);
1524
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1525
1525
  if (data.Count !== undefined && data.Count !== null) {
1526
- contents.Count = smithy_client_1.expectInt(data.Count);
1526
+ contents.Count = smithy_client_1.expectInt32(data.Count);
1527
1527
  }
1528
1528
  if (data.DatasetDeletedAfterRequestedSyncCount !== undefined && data.DatasetDeletedAfterRequestedSyncCount !== null) {
1529
1529
  contents.DatasetDeletedAfterRequestedSyncCount = smithy_client_1.expectBoolean(data.DatasetDeletedAfterRequestedSyncCount);
@@ -1532,7 +1532,7 @@ const deserializeAws_restJson1ListRecordsCommand = async (output, context) => {
1532
1532
  contents.DatasetExists = smithy_client_1.expectBoolean(data.DatasetExists);
1533
1533
  }
1534
1534
  if (data.DatasetSyncCount !== undefined && data.DatasetSyncCount !== null) {
1535
- contents.DatasetSyncCount = smithy_client_1.expectInt(data.DatasetSyncCount);
1535
+ contents.DatasetSyncCount = smithy_client_1.expectLong(data.DatasetSyncCount);
1536
1536
  }
1537
1537
  if (data.LastModifiedBy !== undefined && data.LastModifiedBy !== null) {
1538
1538
  contents.LastModifiedBy = smithy_client_1.expectString(data.LastModifiedBy);
@@ -1617,7 +1617,7 @@ const deserializeAws_restJson1RegisterDeviceCommand = async (output, context) =>
1617
1617
  $metadata: deserializeMetadata(output),
1618
1618
  DeviceId: undefined,
1619
1619
  };
1620
- const data = await parseBody(output.body, context);
1620
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1621
1621
  if (data.DeviceId !== undefined && data.DeviceId !== null) {
1622
1622
  contents.DeviceId = smithy_client_1.expectString(data.DeviceId);
1623
1623
  }
@@ -1783,7 +1783,7 @@ const deserializeAws_restJson1SetIdentityPoolConfigurationCommand = async (outpu
1783
1783
  IdentityPoolId: undefined,
1784
1784
  PushSync: undefined,
1785
1785
  };
1786
- const data = await parseBody(output.body, context);
1786
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1787
1787
  if (data.CognitoStreams !== undefined && data.CognitoStreams !== null) {
1788
1788
  contents.CognitoStreams = deserializeAws_restJson1CognitoStreams(data.CognitoStreams, context);
1789
1789
  }
@@ -2045,7 +2045,7 @@ const deserializeAws_restJson1UpdateRecordsCommand = async (output, context) =>
2045
2045
  $metadata: deserializeMetadata(output),
2046
2046
  Records: undefined,
2047
2047
  };
2048
- const data = await parseBody(output.body, context);
2048
+ const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2049
2049
  if (data.Records !== undefined && data.Records !== null) {
2050
2050
  contents.Records = deserializeAws_restJson1RecordList(data.Records, context);
2051
2051
  }
@@ -2398,16 +2398,16 @@ const deserializeAws_restJson1CognitoStreams = (output, context) => {
2398
2398
  const deserializeAws_restJson1Dataset = (output, context) => {
2399
2399
  return {
2400
2400
  CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
2401
- ? new Date(Math.round(output.CreationDate * 1000))
2401
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationDate)))
2402
2402
  : undefined,
2403
- DataStorage: smithy_client_1.expectInt(output.DataStorage),
2403
+ DataStorage: smithy_client_1.expectLong(output.DataStorage),
2404
2404
  DatasetName: smithy_client_1.expectString(output.DatasetName),
2405
2405
  IdentityId: smithy_client_1.expectString(output.IdentityId),
2406
2406
  LastModifiedBy: smithy_client_1.expectString(output.LastModifiedBy),
2407
2407
  LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
2408
- ? new Date(Math.round(output.LastModifiedDate * 1000))
2408
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedDate)))
2409
2409
  : undefined,
2410
- NumRecords: smithy_client_1.expectInt(output.NumRecords),
2410
+ NumRecords: smithy_client_1.expectLong(output.NumRecords),
2411
2411
  };
2412
2412
  };
2413
2413
  const deserializeAws_restJson1DatasetList = (output, context) => {
@@ -2433,12 +2433,12 @@ const deserializeAws_restJson1Events = (output, context) => {
2433
2433
  };
2434
2434
  const deserializeAws_restJson1IdentityPoolUsage = (output, context) => {
2435
2435
  return {
2436
- DataStorage: smithy_client_1.expectInt(output.DataStorage),
2436
+ DataStorage: smithy_client_1.expectLong(output.DataStorage),
2437
2437
  IdentityPoolId: smithy_client_1.expectString(output.IdentityPoolId),
2438
2438
  LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
2439
- ? new Date(Math.round(output.LastModifiedDate * 1000))
2439
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedDate)))
2440
2440
  : undefined,
2441
- SyncSessionsCount: smithy_client_1.expectInt(output.SyncSessionsCount),
2441
+ SyncSessionsCount: smithy_client_1.expectLong(output.SyncSessionsCount),
2442
2442
  };
2443
2443
  };
2444
2444
  const deserializeAws_restJson1IdentityPoolUsageList = (output, context) => {
@@ -2453,12 +2453,12 @@ const deserializeAws_restJson1IdentityPoolUsageList = (output, context) => {
2453
2453
  };
2454
2454
  const deserializeAws_restJson1IdentityUsage = (output, context) => {
2455
2455
  return {
2456
- DataStorage: smithy_client_1.expectInt(output.DataStorage),
2457
- DatasetCount: smithy_client_1.expectInt(output.DatasetCount),
2456
+ DataStorage: smithy_client_1.expectLong(output.DataStorage),
2457
+ DatasetCount: smithy_client_1.expectInt32(output.DatasetCount),
2458
2458
  IdentityId: smithy_client_1.expectString(output.IdentityId),
2459
2459
  IdentityPoolId: smithy_client_1.expectString(output.IdentityPoolId),
2460
2460
  LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
2461
- ? new Date(Math.round(output.LastModifiedDate * 1000))
2461
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedDate)))
2462
2462
  : undefined,
2463
2463
  };
2464
2464
  };
@@ -2483,14 +2483,14 @@ const deserializeAws_restJson1PushSync = (output, context) => {
2483
2483
  const deserializeAws_restJson1_Record = (output, context) => {
2484
2484
  return {
2485
2485
  DeviceLastModifiedDate: output.DeviceLastModifiedDate !== undefined && output.DeviceLastModifiedDate !== null
2486
- ? new Date(Math.round(output.DeviceLastModifiedDate * 1000))
2486
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.DeviceLastModifiedDate)))
2487
2487
  : undefined,
2488
2488
  Key: smithy_client_1.expectString(output.Key),
2489
2489
  LastModifiedBy: smithy_client_1.expectString(output.LastModifiedBy),
2490
2490
  LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
2491
- ? new Date(Math.round(output.LastModifiedDate * 1000))
2491
+ ? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastModifiedDate)))
2492
2492
  : undefined,
2493
- SyncCount: smithy_client_1.expectInt(output.SyncCount),
2493
+ SyncCount: smithy_client_1.expectLong(output.SyncCount),
2494
2494
  Value: smithy_client_1.expectString(output.Value),
2495
2495
  };
2496
2496
  };