@aws-sdk/client-sesv2 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 (210) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/cjs/SESv2Client.js +13 -13
  3. package/dist/cjs/SESv2Client.js.map +1 -1
  4. package/dist/cjs/commands/CreateConfigurationSetCommand.js +3 -3
  5. package/dist/cjs/commands/CreateConfigurationSetCommand.js.map +1 -1
  6. package/dist/cjs/commands/CreateConfigurationSetEventDestinationCommand.js +3 -3
  7. package/dist/cjs/commands/CreateConfigurationSetEventDestinationCommand.js.map +1 -1
  8. package/dist/cjs/commands/CreateContactCommand.js +3 -3
  9. package/dist/cjs/commands/CreateContactCommand.js.map +1 -1
  10. package/dist/cjs/commands/CreateContactListCommand.js +3 -3
  11. package/dist/cjs/commands/CreateContactListCommand.js.map +1 -1
  12. package/dist/cjs/commands/CreateCustomVerificationEmailTemplateCommand.js +3 -3
  13. package/dist/cjs/commands/CreateCustomVerificationEmailTemplateCommand.js.map +1 -1
  14. package/dist/cjs/commands/CreateDedicatedIpPoolCommand.js +3 -3
  15. package/dist/cjs/commands/CreateDedicatedIpPoolCommand.js.map +1 -1
  16. package/dist/cjs/commands/CreateDeliverabilityTestReportCommand.js +3 -3
  17. package/dist/cjs/commands/CreateDeliverabilityTestReportCommand.js.map +1 -1
  18. package/dist/cjs/commands/CreateEmailIdentityCommand.js +3 -3
  19. package/dist/cjs/commands/CreateEmailIdentityCommand.js.map +1 -1
  20. package/dist/cjs/commands/CreateEmailIdentityPolicyCommand.js +3 -3
  21. package/dist/cjs/commands/CreateEmailIdentityPolicyCommand.js.map +1 -1
  22. package/dist/cjs/commands/CreateEmailTemplateCommand.js +3 -3
  23. package/dist/cjs/commands/CreateEmailTemplateCommand.js.map +1 -1
  24. package/dist/cjs/commands/CreateImportJobCommand.js +3 -3
  25. package/dist/cjs/commands/CreateImportJobCommand.js.map +1 -1
  26. package/dist/cjs/commands/DeleteConfigurationSetCommand.js +3 -3
  27. package/dist/cjs/commands/DeleteConfigurationSetCommand.js.map +1 -1
  28. package/dist/cjs/commands/DeleteConfigurationSetEventDestinationCommand.js +3 -3
  29. package/dist/cjs/commands/DeleteConfigurationSetEventDestinationCommand.js.map +1 -1
  30. package/dist/cjs/commands/DeleteContactCommand.js +3 -3
  31. package/dist/cjs/commands/DeleteContactCommand.js.map +1 -1
  32. package/dist/cjs/commands/DeleteContactListCommand.js +3 -3
  33. package/dist/cjs/commands/DeleteContactListCommand.js.map +1 -1
  34. package/dist/cjs/commands/DeleteCustomVerificationEmailTemplateCommand.js +3 -3
  35. package/dist/cjs/commands/DeleteCustomVerificationEmailTemplateCommand.js.map +1 -1
  36. package/dist/cjs/commands/DeleteDedicatedIpPoolCommand.js +3 -3
  37. package/dist/cjs/commands/DeleteDedicatedIpPoolCommand.js.map +1 -1
  38. package/dist/cjs/commands/DeleteEmailIdentityCommand.js +3 -3
  39. package/dist/cjs/commands/DeleteEmailIdentityCommand.js.map +1 -1
  40. package/dist/cjs/commands/DeleteEmailIdentityPolicyCommand.js +3 -3
  41. package/dist/cjs/commands/DeleteEmailIdentityPolicyCommand.js.map +1 -1
  42. package/dist/cjs/commands/DeleteEmailTemplateCommand.js +3 -3
  43. package/dist/cjs/commands/DeleteEmailTemplateCommand.js.map +1 -1
  44. package/dist/cjs/commands/DeleteSuppressedDestinationCommand.js +3 -3
  45. package/dist/cjs/commands/DeleteSuppressedDestinationCommand.js.map +1 -1
  46. package/dist/cjs/commands/GetAccountCommand.js +3 -3
  47. package/dist/cjs/commands/GetAccountCommand.js.map +1 -1
  48. package/dist/cjs/commands/GetBlacklistReportsCommand.js +3 -3
  49. package/dist/cjs/commands/GetBlacklistReportsCommand.js.map +1 -1
  50. package/dist/cjs/commands/GetConfigurationSetCommand.js +3 -3
  51. package/dist/cjs/commands/GetConfigurationSetCommand.js.map +1 -1
  52. package/dist/cjs/commands/GetConfigurationSetEventDestinationsCommand.js +3 -3
  53. package/dist/cjs/commands/GetConfigurationSetEventDestinationsCommand.js.map +1 -1
  54. package/dist/cjs/commands/GetContactCommand.js +3 -3
  55. package/dist/cjs/commands/GetContactCommand.js.map +1 -1
  56. package/dist/cjs/commands/GetContactListCommand.js +3 -3
  57. package/dist/cjs/commands/GetContactListCommand.js.map +1 -1
  58. package/dist/cjs/commands/GetCustomVerificationEmailTemplateCommand.js +3 -3
  59. package/dist/cjs/commands/GetCustomVerificationEmailTemplateCommand.js.map +1 -1
  60. package/dist/cjs/commands/GetDedicatedIpCommand.js +3 -3
  61. package/dist/cjs/commands/GetDedicatedIpCommand.js.map +1 -1
  62. package/dist/cjs/commands/GetDedicatedIpsCommand.js +3 -3
  63. package/dist/cjs/commands/GetDedicatedIpsCommand.js.map +1 -1
  64. package/dist/cjs/commands/GetDeliverabilityDashboardOptionsCommand.js +3 -3
  65. package/dist/cjs/commands/GetDeliverabilityDashboardOptionsCommand.js.map +1 -1
  66. package/dist/cjs/commands/GetDeliverabilityTestReportCommand.js +3 -3
  67. package/dist/cjs/commands/GetDeliverabilityTestReportCommand.js.map +1 -1
  68. package/dist/cjs/commands/GetDomainDeliverabilityCampaignCommand.js +3 -3
  69. package/dist/cjs/commands/GetDomainDeliverabilityCampaignCommand.js.map +1 -1
  70. package/dist/cjs/commands/GetDomainStatisticsReportCommand.js +3 -3
  71. package/dist/cjs/commands/GetDomainStatisticsReportCommand.js.map +1 -1
  72. package/dist/cjs/commands/GetEmailIdentityCommand.js +3 -3
  73. package/dist/cjs/commands/GetEmailIdentityCommand.js.map +1 -1
  74. package/dist/cjs/commands/GetEmailIdentityPoliciesCommand.js +3 -3
  75. package/dist/cjs/commands/GetEmailIdentityPoliciesCommand.js.map +1 -1
  76. package/dist/cjs/commands/GetEmailTemplateCommand.js +3 -3
  77. package/dist/cjs/commands/GetEmailTemplateCommand.js.map +1 -1
  78. package/dist/cjs/commands/GetImportJobCommand.js +3 -3
  79. package/dist/cjs/commands/GetImportJobCommand.js.map +1 -1
  80. package/dist/cjs/commands/GetSuppressedDestinationCommand.js +3 -3
  81. package/dist/cjs/commands/GetSuppressedDestinationCommand.js.map +1 -1
  82. package/dist/cjs/commands/ListConfigurationSetsCommand.js +3 -3
  83. package/dist/cjs/commands/ListConfigurationSetsCommand.js.map +1 -1
  84. package/dist/cjs/commands/ListContactListsCommand.js +3 -3
  85. package/dist/cjs/commands/ListContactListsCommand.js.map +1 -1
  86. package/dist/cjs/commands/ListContactsCommand.js +3 -3
  87. package/dist/cjs/commands/ListContactsCommand.js.map +1 -1
  88. package/dist/cjs/commands/ListCustomVerificationEmailTemplatesCommand.js +3 -3
  89. package/dist/cjs/commands/ListCustomVerificationEmailTemplatesCommand.js.map +1 -1
  90. package/dist/cjs/commands/ListDedicatedIpPoolsCommand.js +3 -3
  91. package/dist/cjs/commands/ListDedicatedIpPoolsCommand.js.map +1 -1
  92. package/dist/cjs/commands/ListDeliverabilityTestReportsCommand.js +3 -3
  93. package/dist/cjs/commands/ListDeliverabilityTestReportsCommand.js.map +1 -1
  94. package/dist/cjs/commands/ListDomainDeliverabilityCampaignsCommand.js +3 -3
  95. package/dist/cjs/commands/ListDomainDeliverabilityCampaignsCommand.js.map +1 -1
  96. package/dist/cjs/commands/ListEmailIdentitiesCommand.js +3 -3
  97. package/dist/cjs/commands/ListEmailIdentitiesCommand.js.map +1 -1
  98. package/dist/cjs/commands/ListEmailTemplatesCommand.js +3 -3
  99. package/dist/cjs/commands/ListEmailTemplatesCommand.js.map +1 -1
  100. package/dist/cjs/commands/ListImportJobsCommand.js +3 -3
  101. package/dist/cjs/commands/ListImportJobsCommand.js.map +1 -1
  102. package/dist/cjs/commands/ListSuppressedDestinationsCommand.js +3 -3
  103. package/dist/cjs/commands/ListSuppressedDestinationsCommand.js.map +1 -1
  104. package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
  105. package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
  106. package/dist/cjs/commands/PutAccountDedicatedIpWarmupAttributesCommand.js +3 -3
  107. package/dist/cjs/commands/PutAccountDedicatedIpWarmupAttributesCommand.js.map +1 -1
  108. package/dist/cjs/commands/PutAccountDetailsCommand.js +3 -3
  109. package/dist/cjs/commands/PutAccountDetailsCommand.js.map +1 -1
  110. package/dist/cjs/commands/PutAccountSendingAttributesCommand.js +3 -3
  111. package/dist/cjs/commands/PutAccountSendingAttributesCommand.js.map +1 -1
  112. package/dist/cjs/commands/PutAccountSuppressionAttributesCommand.js +3 -3
  113. package/dist/cjs/commands/PutAccountSuppressionAttributesCommand.js.map +1 -1
  114. package/dist/cjs/commands/PutConfigurationSetDeliveryOptionsCommand.js +3 -3
  115. package/dist/cjs/commands/PutConfigurationSetDeliveryOptionsCommand.js.map +1 -1
  116. package/dist/cjs/commands/PutConfigurationSetReputationOptionsCommand.js +3 -3
  117. package/dist/cjs/commands/PutConfigurationSetReputationOptionsCommand.js.map +1 -1
  118. package/dist/cjs/commands/PutConfigurationSetSendingOptionsCommand.js +3 -3
  119. package/dist/cjs/commands/PutConfigurationSetSendingOptionsCommand.js.map +1 -1
  120. package/dist/cjs/commands/PutConfigurationSetSuppressionOptionsCommand.js +3 -3
  121. package/dist/cjs/commands/PutConfigurationSetSuppressionOptionsCommand.js.map +1 -1
  122. package/dist/cjs/commands/PutConfigurationSetTrackingOptionsCommand.js +3 -3
  123. package/dist/cjs/commands/PutConfigurationSetTrackingOptionsCommand.js.map +1 -1
  124. package/dist/cjs/commands/PutDedicatedIpInPoolCommand.js +3 -3
  125. package/dist/cjs/commands/PutDedicatedIpInPoolCommand.js.map +1 -1
  126. package/dist/cjs/commands/PutDedicatedIpWarmupAttributesCommand.js +3 -3
  127. package/dist/cjs/commands/PutDedicatedIpWarmupAttributesCommand.js.map +1 -1
  128. package/dist/cjs/commands/PutDeliverabilityDashboardOptionCommand.js +3 -3
  129. package/dist/cjs/commands/PutDeliverabilityDashboardOptionCommand.js.map +1 -1
  130. package/dist/cjs/commands/PutEmailIdentityConfigurationSetAttributesCommand.js +3 -3
  131. package/dist/cjs/commands/PutEmailIdentityConfigurationSetAttributesCommand.js.map +1 -1
  132. package/dist/cjs/commands/PutEmailIdentityDkimAttributesCommand.js +3 -3
  133. package/dist/cjs/commands/PutEmailIdentityDkimAttributesCommand.js.map +1 -1
  134. package/dist/cjs/commands/PutEmailIdentityDkimSigningAttributesCommand.js +3 -3
  135. package/dist/cjs/commands/PutEmailIdentityDkimSigningAttributesCommand.js.map +1 -1
  136. package/dist/cjs/commands/PutEmailIdentityFeedbackAttributesCommand.js +3 -3
  137. package/dist/cjs/commands/PutEmailIdentityFeedbackAttributesCommand.js.map +1 -1
  138. package/dist/cjs/commands/PutEmailIdentityMailFromAttributesCommand.js +3 -3
  139. package/dist/cjs/commands/PutEmailIdentityMailFromAttributesCommand.js.map +1 -1
  140. package/dist/cjs/commands/PutSuppressedDestinationCommand.js +3 -3
  141. package/dist/cjs/commands/PutSuppressedDestinationCommand.js.map +1 -1
  142. package/dist/cjs/commands/SendBulkEmailCommand.js +3 -3
  143. package/dist/cjs/commands/SendBulkEmailCommand.js.map +1 -1
  144. package/dist/cjs/commands/SendCustomVerificationEmailCommand.js +3 -3
  145. package/dist/cjs/commands/SendCustomVerificationEmailCommand.js.map +1 -1
  146. package/dist/cjs/commands/SendEmailCommand.js +3 -3
  147. package/dist/cjs/commands/SendEmailCommand.js.map +1 -1
  148. package/dist/cjs/commands/TagResourceCommand.js +3 -3
  149. package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
  150. package/dist/cjs/commands/TestRenderEmailTemplateCommand.js +3 -3
  151. package/dist/cjs/commands/TestRenderEmailTemplateCommand.js.map +1 -1
  152. package/dist/cjs/commands/UntagResourceCommand.js +3 -3
  153. package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
  154. package/dist/cjs/commands/UpdateConfigurationSetEventDestinationCommand.js +3 -3
  155. package/dist/cjs/commands/UpdateConfigurationSetEventDestinationCommand.js.map +1 -1
  156. package/dist/cjs/commands/UpdateContactCommand.js +3 -3
  157. package/dist/cjs/commands/UpdateContactCommand.js.map +1 -1
  158. package/dist/cjs/commands/UpdateContactListCommand.js +3 -3
  159. package/dist/cjs/commands/UpdateContactListCommand.js.map +1 -1
  160. package/dist/cjs/commands/UpdateCustomVerificationEmailTemplateCommand.js +3 -3
  161. package/dist/cjs/commands/UpdateCustomVerificationEmailTemplateCommand.js.map +1 -1
  162. package/dist/cjs/commands/UpdateEmailIdentityPolicyCommand.js +3 -3
  163. package/dist/cjs/commands/UpdateEmailIdentityPolicyCommand.js.map +1 -1
  164. package/dist/cjs/commands/UpdateEmailTemplateCommand.js +3 -3
  165. package/dist/cjs/commands/UpdateEmailTemplateCommand.js.map +1 -1
  166. package/dist/cjs/endpoints.js +1 -1
  167. package/dist/cjs/endpoints.js.map +1 -1
  168. package/dist/cjs/index.js +97 -97
  169. package/dist/cjs/index.js.map +1 -1
  170. package/dist/cjs/models/index.js +1 -1
  171. package/dist/cjs/models/index.js.map +1 -1
  172. package/dist/cjs/package.json +31 -31
  173. package/dist/cjs/protocols/Aws_restJson1.js +295 -295
  174. package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
  175. package/dist/cjs/runtimeConfig.browser.js +4 -4
  176. package/dist/cjs/runtimeConfig.browser.js.map +1 -1
  177. package/dist/cjs/runtimeConfig.js +8 -8
  178. package/dist/cjs/runtimeConfig.js.map +1 -1
  179. package/dist/cjs/runtimeConfig.native.js +1 -1
  180. package/dist/cjs/runtimeConfig.native.js.map +1 -1
  181. package/dist/es/package.json +31 -31
  182. package/dist/es/pagination/GetDedicatedIpsPaginator.js +4 -4
  183. package/dist/es/pagination/GetDedicatedIpsPaginator.js.map +1 -1
  184. package/dist/es/pagination/ListConfigurationSetsPaginator.js +4 -4
  185. package/dist/es/pagination/ListConfigurationSetsPaginator.js.map +1 -1
  186. package/dist/es/pagination/ListContactListsPaginator.js +4 -4
  187. package/dist/es/pagination/ListContactListsPaginator.js.map +1 -1
  188. package/dist/es/pagination/ListContactsPaginator.js +4 -4
  189. package/dist/es/pagination/ListContactsPaginator.js.map +1 -1
  190. package/dist/es/pagination/ListCustomVerificationEmailTemplatesPaginator.js +4 -4
  191. package/dist/es/pagination/ListCustomVerificationEmailTemplatesPaginator.js.map +1 -1
  192. package/dist/es/pagination/ListDedicatedIpPoolsPaginator.js +4 -4
  193. package/dist/es/pagination/ListDedicatedIpPoolsPaginator.js.map +1 -1
  194. package/dist/es/pagination/ListDeliverabilityTestReportsPaginator.js +4 -4
  195. package/dist/es/pagination/ListDeliverabilityTestReportsPaginator.js.map +1 -1
  196. package/dist/es/pagination/ListDomainDeliverabilityCampaignsPaginator.js +4 -4
  197. package/dist/es/pagination/ListDomainDeliverabilityCampaignsPaginator.js.map +1 -1
  198. package/dist/es/pagination/ListEmailIdentitiesPaginator.js +4 -4
  199. package/dist/es/pagination/ListEmailIdentitiesPaginator.js.map +1 -1
  200. package/dist/es/pagination/ListEmailTemplatesPaginator.js +4 -4
  201. package/dist/es/pagination/ListEmailTemplatesPaginator.js.map +1 -1
  202. package/dist/es/pagination/ListImportJobsPaginator.js +4 -4
  203. package/dist/es/pagination/ListImportJobsPaginator.js.map +1 -1
  204. package/dist/es/pagination/ListSuppressedDestinationsPaginator.js +4 -4
  205. package/dist/es/pagination/ListSuppressedDestinationsPaginator.js.map +1 -1
  206. package/dist/es/protocols/Aws_restJson1.js +21 -21
  207. package/dist/es/protocols/Aws_restJson1.js.map +1 -1
  208. package/package.json +31 -31
  209. package/protocols/Aws_restJson1.ts +24 -20
  210. package/tsconfig.json +1 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sesv2",
3
3
  "description": "AWS SDK for JavaScript Sesv2 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"
@@ -337,10 +337,12 @@ import {
337
337
  expectInt32 as __expectInt32,
338
338
  expectLong as __expectLong,
339
339
  expectNonNull as __expectNonNull,
340
+ expectNumber as __expectNumber,
340
341
  expectObject as __expectObject,
341
342
  expectString as __expectString,
342
343
  extendedEncodeURIComponent as __extendedEncodeURIComponent,
343
344
  limitedParseDouble as __limitedParseDouble,
345
+ parseEpochTimestamp as __parseEpochTimestamp,
344
346
  } from "@aws-sdk/smithy-client";
345
347
  import {
346
348
  Endpoint as __Endpoint,
@@ -5010,13 +5012,13 @@ export const deserializeAws_restJson1GetContactCommand = async (
5010
5012
  contents.ContactListName = __expectString(data.ContactListName);
5011
5013
  }
5012
5014
  if (data.CreatedTimestamp !== undefined && data.CreatedTimestamp !== null) {
5013
- contents.CreatedTimestamp = new Date(Math.round(data.CreatedTimestamp * 1000));
5015
+ contents.CreatedTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreatedTimestamp)));
5014
5016
  }
5015
5017
  if (data.EmailAddress !== undefined && data.EmailAddress !== null) {
5016
5018
  contents.EmailAddress = __expectString(data.EmailAddress);
5017
5019
  }
5018
5020
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
5019
- contents.LastUpdatedTimestamp = new Date(Math.round(data.LastUpdatedTimestamp * 1000));
5021
+ contents.LastUpdatedTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTimestamp)));
5020
5022
  }
5021
5023
  if (data.TopicDefaultPreferences !== undefined && data.TopicDefaultPreferences !== null) {
5022
5024
  contents.TopicDefaultPreferences = deserializeAws_restJson1TopicPreferenceList(
@@ -5107,13 +5109,13 @@ export const deserializeAws_restJson1GetContactListCommand = async (
5107
5109
  contents.ContactListName = __expectString(data.ContactListName);
5108
5110
  }
5109
5111
  if (data.CreatedTimestamp !== undefined && data.CreatedTimestamp !== null) {
5110
- contents.CreatedTimestamp = new Date(Math.round(data.CreatedTimestamp * 1000));
5112
+ contents.CreatedTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreatedTimestamp)));
5111
5113
  }
5112
5114
  if (data.Description !== undefined && data.Description !== null) {
5113
5115
  contents.Description = __expectString(data.Description);
5114
5116
  }
5115
5117
  if (data.LastUpdatedTimestamp !== undefined && data.LastUpdatedTimestamp !== null) {
5116
- contents.LastUpdatedTimestamp = new Date(Math.round(data.LastUpdatedTimestamp * 1000));
5118
+ contents.LastUpdatedTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastUpdatedTimestamp)));
5117
5119
  }
5118
5120
  if (data.Tags !== undefined && data.Tags !== null) {
5119
5121
  contents.Tags = deserializeAws_restJson1TagList(data.Tags, context);
@@ -5449,7 +5451,9 @@ export const deserializeAws_restJson1GetDeliverabilityDashboardOptionsCommand =
5449
5451
  );
5450
5452
  }
5451
5453
  if (data.SubscriptionExpiryDate !== undefined && data.SubscriptionExpiryDate !== null) {
5452
- contents.SubscriptionExpiryDate = new Date(Math.round(data.SubscriptionExpiryDate * 1000));
5454
+ contents.SubscriptionExpiryDate = __expectNonNull(
5455
+ __parseEpochTimestamp(__expectNumber(data.SubscriptionExpiryDate))
5456
+ );
5453
5457
  }
5454
5458
  return Promise.resolve(contents);
5455
5459
  };
@@ -6012,10 +6016,10 @@ export const deserializeAws_restJson1GetImportJobCommand = async (
6012
6016
  };
6013
6017
  const data: { [key: string]: any } = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
6014
6018
  if (data.CompletedTimestamp !== undefined && data.CompletedTimestamp !== null) {
6015
- contents.CompletedTimestamp = new Date(Math.round(data.CompletedTimestamp * 1000));
6019
+ contents.CompletedTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CompletedTimestamp)));
6016
6020
  }
6017
6021
  if (data.CreatedTimestamp !== undefined && data.CreatedTimestamp !== null) {
6018
- contents.CreatedTimestamp = new Date(Math.round(data.CreatedTimestamp * 1000));
6022
+ contents.CreatedTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.CreatedTimestamp)));
6019
6023
  }
6020
6024
  if (data.FailedRecordsCount !== undefined && data.FailedRecordsCount !== null) {
6021
6025
  contents.FailedRecordsCount = __expectInt32(data.FailedRecordsCount);
@@ -9947,7 +9951,7 @@ const deserializeAws_restJson1BlacklistEntry = (output: any, context: __SerdeCon
9947
9951
  Description: __expectString(output.Description),
9948
9952
  ListingTime:
9949
9953
  output.ListingTime !== undefined && output.ListingTime !== null
9950
- ? new Date(Math.round(output.ListingTime * 1000))
9954
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ListingTime)))
9951
9955
  : undefined,
9952
9956
  RblName: __expectString(output.RblName),
9953
9957
  } as any;
@@ -10040,7 +10044,7 @@ const deserializeAws_restJson1Contact = (output: any, context: __SerdeContext):
10040
10044
  EmailAddress: __expectString(output.EmailAddress),
10041
10045
  LastUpdatedTimestamp:
10042
10046
  output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
10043
- ? new Date(Math.round(output.LastUpdatedTimestamp * 1000))
10047
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
10044
10048
  : undefined,
10045
10049
  TopicDefaultPreferences:
10046
10050
  output.TopicDefaultPreferences !== undefined && output.TopicDefaultPreferences !== null
@@ -10059,7 +10063,7 @@ const deserializeAws_restJson1ContactList = (output: any, context: __SerdeContex
10059
10063
  ContactListName: __expectString(output.ContactListName),
10060
10064
  LastUpdatedTimestamp:
10061
10065
  output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
10062
- ? new Date(Math.round(output.LastUpdatedTimestamp * 1000))
10066
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
10063
10067
  : undefined,
10064
10068
  } as any;
10065
10069
  };
@@ -10109,7 +10113,7 @@ const deserializeAws_restJson1DailyVolume = (output: any, context: __SerdeContex
10109
10113
  : undefined,
10110
10114
  StartDate:
10111
10115
  output.StartDate !== undefined && output.StartDate !== null
10112
- ? new Date(Math.round(output.StartDate * 1000))
10116
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartDate)))
10113
10117
  : undefined,
10114
10118
  VolumeStatistics:
10115
10119
  output.VolumeStatistics !== undefined && output.VolumeStatistics !== null
@@ -10156,7 +10160,7 @@ const deserializeAws_restJson1DeliverabilityTestReport = (
10156
10160
  return {
10157
10161
  CreateDate:
10158
10162
  output.CreateDate !== undefined && output.CreateDate !== null
10159
- ? new Date(Math.round(output.CreateDate * 1000))
10163
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreateDate)))
10160
10164
  : undefined,
10161
10165
  DeliverabilityTestStatus: __expectString(output.DeliverabilityTestStatus),
10162
10166
  FromEmailAddress: __expectString(output.FromEmailAddress),
@@ -10223,14 +10227,14 @@ const deserializeAws_restJson1DomainDeliverabilityCampaign = (
10223
10227
  : undefined,
10224
10228
  FirstSeenDateTime:
10225
10229
  output.FirstSeenDateTime !== undefined && output.FirstSeenDateTime !== null
10226
- ? new Date(Math.round(output.FirstSeenDateTime * 1000))
10230
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FirstSeenDateTime)))
10227
10231
  : undefined,
10228
10232
  FromAddress: __expectString(output.FromAddress),
10229
10233
  ImageUrl: __expectString(output.ImageUrl),
10230
10234
  InboxCount: __expectLong(output.InboxCount),
10231
10235
  LastSeenDateTime:
10232
10236
  output.LastSeenDateTime !== undefined && output.LastSeenDateTime !== null
10233
- ? new Date(Math.round(output.LastSeenDateTime * 1000))
10237
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastSeenDateTime)))
10234
10238
  : undefined,
10235
10239
  ProjectedVolume: __expectLong(output.ProjectedVolume),
10236
10240
  ReadDeleteRate: __limitedParseDouble(output.ReadDeleteRate),
@@ -10270,7 +10274,7 @@ const deserializeAws_restJson1DomainDeliverabilityTrackingOption = (
10270
10274
  : undefined,
10271
10275
  SubscriptionStartDate:
10272
10276
  output.SubscriptionStartDate !== undefined && output.SubscriptionStartDate !== null
10273
- ? new Date(Math.round(output.SubscriptionStartDate * 1000))
10277
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubscriptionStartDate)))
10274
10278
  : undefined,
10275
10279
  } as any;
10276
10280
  };
@@ -10322,7 +10326,7 @@ const deserializeAws_restJson1EmailTemplateMetadata = (output: any, context: __S
10322
10326
  return {
10323
10327
  CreatedTimestamp:
10324
10328
  output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
10325
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
10329
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
10326
10330
  : undefined,
10327
10331
  TemplateName: __expectString(output.TemplateName),
10328
10332
  } as any;
@@ -10452,7 +10456,7 @@ const deserializeAws_restJson1ImportJobSummary = (output: any, context: __SerdeC
10452
10456
  return {
10453
10457
  CreatedTimestamp:
10454
10458
  output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
10455
- ? new Date(Math.round(output.CreatedTimestamp * 1000))
10459
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
10456
10460
  : undefined,
10457
10461
  ImportDestination:
10458
10462
  output.ImportDestination !== undefined && output.ImportDestination !== null
@@ -10627,7 +10631,7 @@ const deserializeAws_restJson1ReputationOptions = (output: any, context: __Serde
10627
10631
  return {
10628
10632
  LastFreshStart:
10629
10633
  output.LastFreshStart !== undefined && output.LastFreshStart !== null
10630
- ? new Date(Math.round(output.LastFreshStart * 1000))
10634
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastFreshStart)))
10631
10635
  : undefined,
10632
10636
  ReputationMetricsEnabled: __expectBoolean(output.ReputationMetricsEnabled),
10633
10637
  } as any;
@@ -10669,7 +10673,7 @@ const deserializeAws_restJson1SuppressedDestination = (output: any, context: __S
10669
10673
  EmailAddress: __expectString(output.EmailAddress),
10670
10674
  LastUpdateTime:
10671
10675
  output.LastUpdateTime !== undefined && output.LastUpdateTime !== null
10672
- ? new Date(Math.round(output.LastUpdateTime * 1000))
10676
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTime)))
10673
10677
  : undefined,
10674
10678
  Reason: __expectString(output.Reason),
10675
10679
  } as any;
@@ -10707,7 +10711,7 @@ const deserializeAws_restJson1SuppressedDestinationSummary = (
10707
10711
  EmailAddress: __expectString(output.EmailAddress),
10708
10712
  LastUpdateTime:
10709
10713
  output.LastUpdateTime !== undefined && output.LastUpdateTime !== null
10710
- ? new Date(Math.round(output.LastUpdateTime * 1000))
10714
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdateTime)))
10711
10715
  : undefined,
10712
10716
  Reason: __expectString(output.Reason),
10713
10717
  } as any;
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"],