@aws-sdk/client-dataexchange 3.29.0 → 3.33.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.
Files changed (76) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/cjs/DataExchangeClient.js +13 -13
  3. package/dist/cjs/DataExchangeClient.js.map +1 -1
  4. package/dist/cjs/commands/CancelJobCommand.js +3 -3
  5. package/dist/cjs/commands/CancelJobCommand.js.map +1 -1
  6. package/dist/cjs/commands/CreateDataSetCommand.js +3 -3
  7. package/dist/cjs/commands/CreateDataSetCommand.js.map +1 -1
  8. package/dist/cjs/commands/CreateJobCommand.js +3 -3
  9. package/dist/cjs/commands/CreateJobCommand.js.map +1 -1
  10. package/dist/cjs/commands/CreateRevisionCommand.js +3 -3
  11. package/dist/cjs/commands/CreateRevisionCommand.js.map +1 -1
  12. package/dist/cjs/commands/DeleteAssetCommand.js +3 -3
  13. package/dist/cjs/commands/DeleteAssetCommand.js.map +1 -1
  14. package/dist/cjs/commands/DeleteDataSetCommand.js +3 -3
  15. package/dist/cjs/commands/DeleteDataSetCommand.js.map +1 -1
  16. package/dist/cjs/commands/DeleteRevisionCommand.js +3 -3
  17. package/dist/cjs/commands/DeleteRevisionCommand.js.map +1 -1
  18. package/dist/cjs/commands/GetAssetCommand.js +3 -3
  19. package/dist/cjs/commands/GetAssetCommand.js.map +1 -1
  20. package/dist/cjs/commands/GetDataSetCommand.js +3 -3
  21. package/dist/cjs/commands/GetDataSetCommand.js.map +1 -1
  22. package/dist/cjs/commands/GetJobCommand.js +3 -3
  23. package/dist/cjs/commands/GetJobCommand.js.map +1 -1
  24. package/dist/cjs/commands/GetRevisionCommand.js +3 -3
  25. package/dist/cjs/commands/GetRevisionCommand.js.map +1 -1
  26. package/dist/cjs/commands/ListDataSetRevisionsCommand.js +3 -3
  27. package/dist/cjs/commands/ListDataSetRevisionsCommand.js.map +1 -1
  28. package/dist/cjs/commands/ListDataSetsCommand.js +3 -3
  29. package/dist/cjs/commands/ListDataSetsCommand.js.map +1 -1
  30. package/dist/cjs/commands/ListJobsCommand.js +3 -3
  31. package/dist/cjs/commands/ListJobsCommand.js.map +1 -1
  32. package/dist/cjs/commands/ListRevisionAssetsCommand.js +3 -3
  33. package/dist/cjs/commands/ListRevisionAssetsCommand.js.map +1 -1
  34. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  35. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  36. package/dist/cjs/commands/StartJobCommand.js +3 -3
  37. package/dist/cjs/commands/StartJobCommand.js.map +1 -1
  38. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  39. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  40. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  41. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  42. package/dist/cjs/commands/UpdateAssetCommand.js +3 -3
  43. package/dist/cjs/commands/UpdateAssetCommand.js.map +1 -1
  44. package/dist/cjs/commands/UpdateDataSetCommand.js +3 -3
  45. package/dist/cjs/commands/UpdateDataSetCommand.js.map +1 -1
  46. package/dist/cjs/commands/UpdateRevisionCommand.js +3 -3
  47. package/dist/cjs/commands/UpdateRevisionCommand.js.map +1 -1
  48. package/dist/cjs/endpoints.js +1 -1
  49. package/dist/cjs/endpoints.js.map +1 -1
  50. package/dist/cjs/index.js +30 -30
  51. package/dist/cjs/index.js.map +1 -1
  52. package/dist/cjs/models/index.js +1 -1
  53. package/dist/cjs/models/index.js.map +1 -1
  54. package/dist/cjs/package.json +31 -31
  55. package/dist/cjs/protocols/Aws_restJson1.js +225 -209
  56. package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
  57. package/dist/cjs/runtimeConfig.browser.js +4 -4
  58. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  59. package/dist/cjs/runtimeConfig.js +8 -8
  60. package/dist/cjs/runtimeConfig.js.map +1 -1
  61. package/dist/cjs/runtimeConfig.native.js +1 -1
  62. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  63. package/dist/es/package.json +31 -31
  64. package/dist/es/pagination/ListDataSetRevisionsPaginator.js +4 -4
  65. package/dist/es/pagination/ListDataSetRevisionsPaginator.js.map +1 -1
  66. package/dist/es/pagination/ListDataSetsPaginator.js +4 -4
  67. package/dist/es/pagination/ListDataSetsPaginator.js.map +1 -1
  68. package/dist/es/pagination/ListJobsPaginator.js +4 -4
  69. package/dist/es/pagination/ListJobsPaginator.js.map +1 -1
  70. package/dist/es/pagination/ListRevisionAssetsPaginator.js +4 -4
  71. package/dist/es/pagination/ListRevisionAssetsPaginator.js.map +1 -1
  72. package/dist/es/protocols/Aws_restJson1.js +47 -31
  73. package/dist/es/protocols/Aws_restJson1.js.map +1 -1
  74. package/package.json +31 -31
  75. package/protocols/Aws_restJson1.ts +55 -30
  76. package/tsconfig.json +1 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dataexchange",
3
3
  "description": "AWS SDK for JavaScript Dataexchange Client for Node.js, Browser and React Native",
4
- "version": "3.29.0",
4
+ "version": "3.33.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.29.0",
31
- "@aws-sdk/config-resolver": "3.29.0",
32
- "@aws-sdk/credential-provider-node": "3.29.0",
33
- "@aws-sdk/fetch-http-handler": "3.29.0",
34
- "@aws-sdk/hash-node": "3.29.0",
35
- "@aws-sdk/invalid-dependency": "3.29.0",
36
- "@aws-sdk/middleware-content-length": "3.29.0",
37
- "@aws-sdk/middleware-host-header": "3.29.0",
38
- "@aws-sdk/middleware-logger": "3.29.0",
39
- "@aws-sdk/middleware-retry": "3.29.0",
40
- "@aws-sdk/middleware-serde": "3.29.0",
41
- "@aws-sdk/middleware-signing": "3.29.0",
42
- "@aws-sdk/middleware-stack": "3.29.0",
43
- "@aws-sdk/middleware-user-agent": "3.29.0",
44
- "@aws-sdk/node-config-provider": "3.29.0",
45
- "@aws-sdk/node-http-handler": "3.29.0",
46
- "@aws-sdk/protocol-http": "3.29.0",
47
- "@aws-sdk/smithy-client": "3.29.0",
48
- "@aws-sdk/types": "3.29.0",
49
- "@aws-sdk/url-parser": "3.29.0",
50
- "@aws-sdk/util-base64-browser": "3.29.0",
51
- "@aws-sdk/util-base64-node": "3.29.0",
52
- "@aws-sdk/util-body-length-browser": "3.29.0",
53
- "@aws-sdk/util-body-length-node": "3.29.0",
54
- "@aws-sdk/util-user-agent-browser": "3.29.0",
55
- "@aws-sdk/util-user-agent-node": "3.29.0",
56
- "@aws-sdk/util-utf8-browser": "3.29.0",
57
- "@aws-sdk/util-utf8-node": "3.29.0",
30
+ "@aws-sdk/client-sts": "3.33.0",
31
+ "@aws-sdk/config-resolver": "3.33.0",
32
+ "@aws-sdk/credential-provider-node": "3.33.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.33.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.33.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.29.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.4.2"
68
+ "typescript": "~4.3.5"
69
69
  },
70
70
  "engines": {
71
71
  "node": ">=10.0.0"
@@ -69,6 +69,7 @@ import {
69
69
  expectString as __expectString,
70
70
  extendedEncodeURIComponent as __extendedEncodeURIComponent,
71
71
  limitedParseDouble as __limitedParseDouble,
72
+ parseRfc3339DateTime as __parseRfc3339DateTime,
72
73
  } from "@aws-sdk/smithy-client";
73
74
  import {
74
75
  Endpoint as __Endpoint,
@@ -952,7 +953,7 @@ export const deserializeAws_restJson1CreateDataSetCommand = async (
952
953
  contents.AssetType = __expectString(data.AssetType);
953
954
  }
954
955
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
955
- contents.CreatedAt = new Date(data.CreatedAt);
956
+ contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
956
957
  }
957
958
  if (data.Description !== undefined && data.Description !== null) {
958
959
  contents.Description = __expectString(data.Description);
@@ -976,7 +977,7 @@ export const deserializeAws_restJson1CreateDataSetCommand = async (
976
977
  contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
977
978
  }
978
979
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
979
- contents.UpdatedAt = new Date(data.UpdatedAt);
980
+ contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
980
981
  }
981
982
  return Promise.resolve(contents);
982
983
  };
@@ -1073,7 +1074,7 @@ export const deserializeAws_restJson1CreateJobCommand = async (
1073
1074
  contents.Arn = __expectString(data.Arn);
1074
1075
  }
1075
1076
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1076
- contents.CreatedAt = new Date(data.CreatedAt);
1077
+ contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
1077
1078
  }
1078
1079
  if (data.Details !== undefined && data.Details !== null) {
1079
1080
  contents.Details = deserializeAws_restJson1ResponseDetails(data.Details, context);
@@ -1091,7 +1092,7 @@ export const deserializeAws_restJson1CreateJobCommand = async (
1091
1092
  contents.Type = __expectString(data.Type);
1092
1093
  }
1093
1094
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1094
- contents.UpdatedAt = new Date(data.UpdatedAt);
1095
+ contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
1095
1096
  }
1096
1097
  return Promise.resolve(contents);
1097
1098
  };
@@ -1192,7 +1193,7 @@ export const deserializeAws_restJson1CreateRevisionCommand = async (
1192
1193
  contents.Comment = __expectString(data.Comment);
1193
1194
  }
1194
1195
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1195
- contents.CreatedAt = new Date(data.CreatedAt);
1196
+ contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
1196
1197
  }
1197
1198
  if (data.DataSetId !== undefined && data.DataSetId !== null) {
1198
1199
  contents.DataSetId = __expectString(data.DataSetId);
@@ -1210,7 +1211,7 @@ export const deserializeAws_restJson1CreateRevisionCommand = async (
1210
1211
  contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
1211
1212
  }
1212
1213
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1213
- contents.UpdatedAt = new Date(data.UpdatedAt);
1214
+ contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
1214
1215
  }
1215
1216
  return Promise.resolve(contents);
1216
1217
  };
@@ -1588,7 +1589,7 @@ export const deserializeAws_restJson1GetAssetCommand = async (
1588
1589
  contents.AssetType = __expectString(data.AssetType);
1589
1590
  }
1590
1591
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1591
- contents.CreatedAt = new Date(data.CreatedAt);
1592
+ contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
1592
1593
  }
1593
1594
  if (data.DataSetId !== undefined && data.DataSetId !== null) {
1594
1595
  contents.DataSetId = __expectString(data.DataSetId);
@@ -1606,7 +1607,7 @@ export const deserializeAws_restJson1GetAssetCommand = async (
1606
1607
  contents.SourceId = __expectString(data.SourceId);
1607
1608
  }
1608
1609
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1609
- contents.UpdatedAt = new Date(data.UpdatedAt);
1610
+ contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
1610
1611
  }
1611
1612
  return Promise.resolve(contents);
1612
1613
  };
@@ -1701,7 +1702,7 @@ export const deserializeAws_restJson1GetDataSetCommand = async (
1701
1702
  contents.AssetType = __expectString(data.AssetType);
1702
1703
  }
1703
1704
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1704
- contents.CreatedAt = new Date(data.CreatedAt);
1705
+ contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
1705
1706
  }
1706
1707
  if (data.Description !== undefined && data.Description !== null) {
1707
1708
  contents.Description = __expectString(data.Description);
@@ -1725,7 +1726,7 @@ export const deserializeAws_restJson1GetDataSetCommand = async (
1725
1726
  contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
1726
1727
  }
1727
1728
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1728
- contents.UpdatedAt = new Date(data.UpdatedAt);
1729
+ contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
1729
1730
  }
1730
1731
  return Promise.resolve(contents);
1731
1732
  };
@@ -1814,7 +1815,7 @@ export const deserializeAws_restJson1GetJobCommand = async (
1814
1815
  contents.Arn = __expectString(data.Arn);
1815
1816
  }
1816
1817
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1817
- contents.CreatedAt = new Date(data.CreatedAt);
1818
+ contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
1818
1819
  }
1819
1820
  if (data.Details !== undefined && data.Details !== null) {
1820
1821
  contents.Details = deserializeAws_restJson1ResponseDetails(data.Details, context);
@@ -1832,7 +1833,7 @@ export const deserializeAws_restJson1GetJobCommand = async (
1832
1833
  contents.Type = __expectString(data.Type);
1833
1834
  }
1834
1835
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1835
- contents.UpdatedAt = new Date(data.UpdatedAt);
1836
+ contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
1836
1837
  }
1837
1838
  return Promise.resolve(contents);
1838
1839
  };
@@ -1925,7 +1926,7 @@ export const deserializeAws_restJson1GetRevisionCommand = async (
1925
1926
  contents.Comment = __expectString(data.Comment);
1926
1927
  }
1927
1928
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
1928
- contents.CreatedAt = new Date(data.CreatedAt);
1929
+ contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
1929
1930
  }
1930
1931
  if (data.DataSetId !== undefined && data.DataSetId !== null) {
1931
1932
  contents.DataSetId = __expectString(data.DataSetId);
@@ -1943,7 +1944,7 @@ export const deserializeAws_restJson1GetRevisionCommand = async (
1943
1944
  contents.Tags = deserializeAws_restJson1MapOf__string(data.Tags, context);
1944
1945
  }
1945
1946
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
1946
- contents.UpdatedAt = new Date(data.UpdatedAt);
1947
+ contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
1947
1948
  }
1948
1949
  return Promise.resolve(contents);
1949
1950
  };
@@ -2596,7 +2597,7 @@ export const deserializeAws_restJson1UpdateAssetCommand = async (
2596
2597
  contents.AssetType = __expectString(data.AssetType);
2597
2598
  }
2598
2599
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
2599
- contents.CreatedAt = new Date(data.CreatedAt);
2600
+ contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
2600
2601
  }
2601
2602
  if (data.DataSetId !== undefined && data.DataSetId !== null) {
2602
2603
  contents.DataSetId = __expectString(data.DataSetId);
@@ -2614,7 +2615,7 @@ export const deserializeAws_restJson1UpdateAssetCommand = async (
2614
2615
  contents.SourceId = __expectString(data.SourceId);
2615
2616
  }
2616
2617
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
2617
- contents.UpdatedAt = new Date(data.UpdatedAt);
2618
+ contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
2618
2619
  }
2619
2620
  return Promise.resolve(contents);
2620
2621
  };
@@ -2724,7 +2725,7 @@ export const deserializeAws_restJson1UpdateDataSetCommand = async (
2724
2725
  contents.AssetType = __expectString(data.AssetType);
2725
2726
  }
2726
2727
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
2727
- contents.CreatedAt = new Date(data.CreatedAt);
2728
+ contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
2728
2729
  }
2729
2730
  if (data.Description !== undefined && data.Description !== null) {
2730
2731
  contents.Description = __expectString(data.Description);
@@ -2745,7 +2746,7 @@ export const deserializeAws_restJson1UpdateDataSetCommand = async (
2745
2746
  contents.SourceId = __expectString(data.SourceId);
2746
2747
  }
2747
2748
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
2748
- contents.UpdatedAt = new Date(data.UpdatedAt);
2749
+ contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
2749
2750
  }
2750
2751
  return Promise.resolve(contents);
2751
2752
  };
@@ -2845,7 +2846,7 @@ export const deserializeAws_restJson1UpdateRevisionCommand = async (
2845
2846
  contents.Comment = __expectString(data.Comment);
2846
2847
  }
2847
2848
  if (data.CreatedAt !== undefined && data.CreatedAt !== null) {
2848
- contents.CreatedAt = new Date(data.CreatedAt);
2849
+ contents.CreatedAt = __expectNonNull(__parseRfc3339DateTime(data.CreatedAt));
2849
2850
  }
2850
2851
  if (data.DataSetId !== undefined && data.DataSetId !== null) {
2851
2852
  contents.DataSetId = __expectString(data.DataSetId);
@@ -2860,7 +2861,7 @@ export const deserializeAws_restJson1UpdateRevisionCommand = async (
2860
2861
  contents.SourceId = __expectString(data.SourceId);
2861
2862
  }
2862
2863
  if (data.UpdatedAt !== undefined && data.UpdatedAt !== null) {
2863
- contents.UpdatedAt = new Date(data.UpdatedAt);
2864
+ contents.UpdatedAt = __expectNonNull(__parseRfc3339DateTime(data.UpdatedAt));
2864
2865
  }
2865
2866
  return Promise.resolve(contents);
2866
2867
  };
@@ -3303,13 +3304,19 @@ const deserializeAws_restJson1AssetEntry = (output: any, context: __SerdeContext
3303
3304
  ? deserializeAws_restJson1AssetDetails(output.AssetDetails, context)
3304
3305
  : undefined,
3305
3306
  AssetType: __expectString(output.AssetType),
3306
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(output.CreatedAt) : undefined,
3307
+ CreatedAt:
3308
+ output.CreatedAt !== undefined && output.CreatedAt !== null
3309
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreatedAt))
3310
+ : undefined,
3307
3311
  DataSetId: __expectString(output.DataSetId),
3308
3312
  Id: __expectString(output.Id),
3309
3313
  Name: __expectString(output.Name),
3310
3314
  RevisionId: __expectString(output.RevisionId),
3311
3315
  SourceId: __expectString(output.SourceId),
3312
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null ? new Date(output.UpdatedAt) : undefined,
3316
+ UpdatedAt:
3317
+ output.UpdatedAt !== undefined && output.UpdatedAt !== null
3318
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt))
3319
+ : undefined,
3313
3320
  } as any;
3314
3321
  };
3315
3322
 
@@ -3324,7 +3331,10 @@ const deserializeAws_restJson1DataSetEntry = (output: any, context: __SerdeConte
3324
3331
  return {
3325
3332
  Arn: __expectString(output.Arn),
3326
3333
  AssetType: __expectString(output.AssetType),
3327
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(output.CreatedAt) : undefined,
3334
+ CreatedAt:
3335
+ output.CreatedAt !== undefined && output.CreatedAt !== null
3336
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreatedAt))
3337
+ : undefined,
3328
3338
  Description: __expectString(output.Description),
3329
3339
  Id: __expectString(output.Id),
3330
3340
  Name: __expectString(output.Name),
@@ -3334,7 +3344,10 @@ const deserializeAws_restJson1DataSetEntry = (output: any, context: __SerdeConte
3334
3344
  ? deserializeAws_restJson1OriginDetails(output.OriginDetails, context)
3335
3345
  : undefined,
3336
3346
  SourceId: __expectString(output.SourceId),
3337
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null ? new Date(output.UpdatedAt) : undefined,
3347
+ UpdatedAt:
3348
+ output.UpdatedAt !== undefined && output.UpdatedAt !== null
3349
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt))
3350
+ : undefined,
3338
3351
  } as any;
3339
3352
  };
3340
3353
 
@@ -3384,7 +3397,7 @@ const deserializeAws_restJson1ExportAssetToSignedUrlResponseDetails = (
3384
3397
  SignedUrl: __expectString(output.SignedUrl),
3385
3398
  SignedUrlExpiresAt:
3386
3399
  output.SignedUrlExpiresAt !== undefined && output.SignedUrlExpiresAt !== null
3387
- ? new Date(output.SignedUrlExpiresAt)
3400
+ ? __expectNonNull(__parseRfc3339DateTime(output.SignedUrlExpiresAt))
3388
3401
  : undefined,
3389
3402
  } as any;
3390
3403
  };
@@ -3437,7 +3450,7 @@ const deserializeAws_restJson1ImportAssetFromSignedUrlResponseDetails = (
3437
3450
  SignedUrl: __expectString(output.SignedUrl),
3438
3451
  SignedUrlExpiresAt:
3439
3452
  output.SignedUrlExpiresAt !== undefined && output.SignedUrlExpiresAt !== null
3440
- ? new Date(output.SignedUrlExpiresAt)
3453
+ ? __expectNonNull(__parseRfc3339DateTime(output.SignedUrlExpiresAt))
3441
3454
  : undefined,
3442
3455
  } as any;
3443
3456
  };
@@ -3459,7 +3472,10 @@ const deserializeAws_restJson1ImportAssetsFromS3ResponseDetails = (
3459
3472
  const deserializeAws_restJson1JobEntry = (output: any, context: __SerdeContext): JobEntry => {
3460
3473
  return {
3461
3474
  Arn: __expectString(output.Arn),
3462
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(output.CreatedAt) : undefined,
3475
+ CreatedAt:
3476
+ output.CreatedAt !== undefined && output.CreatedAt !== null
3477
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreatedAt))
3478
+ : undefined,
3463
3479
  Details:
3464
3480
  output.Details !== undefined && output.Details !== null
3465
3481
  ? deserializeAws_restJson1ResponseDetails(output.Details, context)
@@ -3471,7 +3487,10 @@ const deserializeAws_restJson1JobEntry = (output: any, context: __SerdeContext):
3471
3487
  Id: __expectString(output.Id),
3472
3488
  State: __expectString(output.State),
3473
3489
  Type: __expectString(output.Type),
3474
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null ? new Date(output.UpdatedAt) : undefined,
3490
+ UpdatedAt:
3491
+ output.UpdatedAt !== undefined && output.UpdatedAt !== null
3492
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt))
3493
+ : undefined,
3475
3494
  } as any;
3476
3495
  };
3477
3496
 
@@ -3642,12 +3661,18 @@ const deserializeAws_restJson1RevisionEntry = (output: any, context: __SerdeCont
3642
3661
  return {
3643
3662
  Arn: __expectString(output.Arn),
3644
3663
  Comment: __expectString(output.Comment),
3645
- CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null ? new Date(output.CreatedAt) : undefined,
3664
+ CreatedAt:
3665
+ output.CreatedAt !== undefined && output.CreatedAt !== null
3666
+ ? __expectNonNull(__parseRfc3339DateTime(output.CreatedAt))
3667
+ : undefined,
3646
3668
  DataSetId: __expectString(output.DataSetId),
3647
3669
  Finalized: __expectBoolean(output.Finalized),
3648
3670
  Id: __expectString(output.Id),
3649
3671
  SourceId: __expectString(output.SourceId),
3650
- UpdatedAt: output.UpdatedAt !== undefined && output.UpdatedAt !== null ? new Date(output.UpdatedAt) : undefined,
3672
+ UpdatedAt:
3673
+ output.UpdatedAt !== undefined && output.UpdatedAt !== null
3674
+ ? __expectNonNull(__parseRfc3339DateTime(output.UpdatedAt))
3675
+ : undefined,
3651
3676
  } as any;
3652
3677
  };
3653
3678
 
package/tsconfig.json CHANGED
@@ -13,8 +13,7 @@
13
13
  "resolveJsonModule": true,
14
14
  "esModuleInterop": true,
15
15
  "declarationDir": "./dist/types",
16
- "outDir": "dist/cjs",
17
- "useUnknownInCatchVariables": false
16
+ "outDir": "dist/cjs"
18
17
  },
19
18
  "typedocOptions": {
20
19
  "exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],