@aws-sdk/client-sesv2 3.252.0 → 3.254.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.
@@ -751,11 +751,11 @@ const serializeAws_restJson1GetDomainStatisticsReportCommand = async (input, con
751
751
  const query = map({
752
752
  StartDate: [
753
753
  (0, smithy_client_1.expectNonNull)(input.StartDate, `StartDate`) != null,
754
- () => input.StartDate.toISOString().split(".")[0] + "Z",
754
+ () => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
755
755
  ],
756
756
  EndDate: [
757
757
  (0, smithy_client_1.expectNonNull)(input.EndDate, `EndDate`) != null,
758
- () => input.EndDate.toISOString().split(".")[0] + "Z",
758
+ () => (input.EndDate.toISOString().split(".")[0] + "Z").toString(),
759
759
  ],
760
760
  });
761
761
  let body;
@@ -1002,11 +1002,11 @@ const serializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = async (in
1002
1002
  const query = map({
1003
1003
  StartDate: [
1004
1004
  (0, smithy_client_1.expectNonNull)(input.StartDate, `StartDate`) != null,
1005
- () => input.StartDate.toISOString().split(".")[0] + "Z",
1005
+ () => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
1006
1006
  ],
1007
1007
  EndDate: [
1008
1008
  (0, smithy_client_1.expectNonNull)(input.EndDate, `EndDate`) != null,
1009
- () => input.EndDate.toISOString().split(".")[0] + "Z",
1009
+ () => (input.EndDate.toISOString().split(".")[0] + "Z").toString(),
1010
1010
  ],
1011
1011
  NextToken: [, input.NextToken],
1012
1012
  PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
@@ -1121,8 +1121,11 @@ const serializeAws_restJson1ListSuppressedDestinationsCommand = async (input, co
1121
1121
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/suppression/addresses";
1122
1122
  const query = map({
1123
1123
  Reason: [() => input.Reasons !== void 0, () => (input.Reasons || []).map((_entry) => _entry)],
1124
- StartDate: [() => input.StartDate !== void 0, () => input.StartDate.toISOString().split(".")[0] + "Z"],
1125
- EndDate: [() => input.EndDate !== void 0, () => input.EndDate.toISOString().split(".")[0] + "Z"],
1124
+ StartDate: [
1125
+ () => input.StartDate !== void 0,
1126
+ () => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
1127
+ ],
1128
+ EndDate: [() => input.EndDate !== void 0, () => (input.EndDate.toISOString().split(".")[0] + "Z").toString()],
1126
1129
  NextToken: [, input.NextToken],
1127
1130
  PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
1128
1131
  });
@@ -5760,11 +5763,11 @@ const serializeAws_restJson1BatchGetMetricDataQueries = (input, context) => {
5760
5763
  const serializeAws_restJson1BatchGetMetricDataQuery = (input, context) => {
5761
5764
  return {
5762
5765
  ...(input.Dimensions != null && { Dimensions: serializeAws_restJson1Dimensions(input.Dimensions, context) }),
5763
- ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000).toString() }),
5766
+ ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
5764
5767
  ...(input.Id != null && { Id: input.Id }),
5765
5768
  ...(input.Metric != null && { Metric: input.Metric }),
5766
5769
  ...(input.Namespace != null && { Namespace: input.Namespace }),
5767
- ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000).toString() }),
5770
+ ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
5768
5771
  };
5769
5772
  };
5770
5773
  const serializeAws_restJson1Body = (input, context) => {
@@ -5881,7 +5884,7 @@ const serializeAws_restJson1DomainDeliverabilityTrackingOption = (input, context
5881
5884
  InboxPlacementTrackingOption: serializeAws_restJson1InboxPlacementTrackingOption(input.InboxPlacementTrackingOption, context),
5882
5885
  }),
5883
5886
  ...(input.SubscriptionStartDate != null && {
5884
- SubscriptionStartDate: Math.round(input.SubscriptionStartDate.getTime() / 1000).toString(),
5887
+ SubscriptionStartDate: Math.round(input.SubscriptionStartDate.getTime() / 1000),
5885
5888
  }),
5886
5889
  };
5887
5890
  };
@@ -6049,9 +6052,7 @@ const serializeAws_restJson1ReplacementTemplate = (input, context) => {
6049
6052
  };
6050
6053
  const serializeAws_restJson1ReputationOptions = (input, context) => {
6051
6054
  return {
6052
- ...(input.LastFreshStart != null && {
6053
- LastFreshStart: Math.round(input.LastFreshStart.getTime() / 1000).toString(),
6054
- }),
6055
+ ...(input.LastFreshStart != null && { LastFreshStart: Math.round(input.LastFreshStart.getTime() / 1000) }),
6055
6056
  ...(input.ReputationMetricsEnabled != null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }),
6056
6057
  };
6057
6058
  };
@@ -710,11 +710,11 @@ export const serializeAws_restJson1GetDomainStatisticsReportCommand = async (inp
710
710
  const query = map({
711
711
  StartDate: [
712
712
  __expectNonNull(input.StartDate, `StartDate`) != null,
713
- () => input.StartDate.toISOString().split(".")[0] + "Z",
713
+ () => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
714
714
  ],
715
715
  EndDate: [
716
716
  __expectNonNull(input.EndDate, `EndDate`) != null,
717
- () => input.EndDate.toISOString().split(".")[0] + "Z",
717
+ () => (input.EndDate.toISOString().split(".")[0] + "Z").toString(),
718
718
  ],
719
719
  });
720
720
  let body;
@@ -949,11 +949,11 @@ export const serializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = as
949
949
  const query = map({
950
950
  StartDate: [
951
951
  __expectNonNull(input.StartDate, `StartDate`) != null,
952
- () => input.StartDate.toISOString().split(".")[0] + "Z",
952
+ () => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
953
953
  ],
954
954
  EndDate: [
955
955
  __expectNonNull(input.EndDate, `EndDate`) != null,
956
- () => input.EndDate.toISOString().split(".")[0] + "Z",
956
+ () => (input.EndDate.toISOString().split(".")[0] + "Z").toString(),
957
957
  ],
958
958
  NextToken: [, input.NextToken],
959
959
  PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
@@ -1063,8 +1063,11 @@ export const serializeAws_restJson1ListSuppressedDestinationsCommand = async (in
1063
1063
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/email/suppression/addresses";
1064
1064
  const query = map({
1065
1065
  Reason: [() => input.Reasons !== void 0, () => (input.Reasons || []).map((_entry) => _entry)],
1066
- StartDate: [() => input.StartDate !== void 0, () => input.StartDate.toISOString().split(".")[0] + "Z"],
1067
- EndDate: [() => input.EndDate !== void 0, () => input.EndDate.toISOString().split(".")[0] + "Z"],
1066
+ StartDate: [
1067
+ () => input.StartDate !== void 0,
1068
+ () => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
1069
+ ],
1070
+ EndDate: [() => input.EndDate !== void 0, () => (input.EndDate.toISOString().split(".")[0] + "Z").toString()],
1068
1071
  NextToken: [, input.NextToken],
1069
1072
  PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
1070
1073
  });
@@ -5582,11 +5585,11 @@ const serializeAws_restJson1BatchGetMetricDataQueries = (input, context) => {
5582
5585
  const serializeAws_restJson1BatchGetMetricDataQuery = (input, context) => {
5583
5586
  return {
5584
5587
  ...(input.Dimensions != null && { Dimensions: serializeAws_restJson1Dimensions(input.Dimensions, context) }),
5585
- ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000).toString() }),
5588
+ ...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
5586
5589
  ...(input.Id != null && { Id: input.Id }),
5587
5590
  ...(input.Metric != null && { Metric: input.Metric }),
5588
5591
  ...(input.Namespace != null && { Namespace: input.Namespace }),
5589
- ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000).toString() }),
5592
+ ...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
5590
5593
  };
5591
5594
  };
5592
5595
  const serializeAws_restJson1Body = (input, context) => {
@@ -5703,7 +5706,7 @@ const serializeAws_restJson1DomainDeliverabilityTrackingOption = (input, context
5703
5706
  InboxPlacementTrackingOption: serializeAws_restJson1InboxPlacementTrackingOption(input.InboxPlacementTrackingOption, context),
5704
5707
  }),
5705
5708
  ...(input.SubscriptionStartDate != null && {
5706
- SubscriptionStartDate: Math.round(input.SubscriptionStartDate.getTime() / 1000).toString(),
5709
+ SubscriptionStartDate: Math.round(input.SubscriptionStartDate.getTime() / 1000),
5707
5710
  }),
5708
5711
  };
5709
5712
  };
@@ -5871,9 +5874,7 @@ const serializeAws_restJson1ReplacementTemplate = (input, context) => {
5871
5874
  };
5872
5875
  const serializeAws_restJson1ReputationOptions = (input, context) => {
5873
5876
  return {
5874
- ...(input.LastFreshStart != null && {
5875
- LastFreshStart: Math.round(input.LastFreshStart.getTime() / 1000).toString(),
5876
- }),
5877
+ ...(input.LastFreshStart != null && { LastFreshStart: Math.round(input.LastFreshStart.getTime() / 1000) }),
5877
5878
  ...(input.ReputationMetricsEnabled != null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }),
5878
5879
  };
5879
5880
  };
@@ -6,7 +6,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
6
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
8
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
- import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
10
  import { BatchGetMetricDataCommandInput, BatchGetMetricDataCommandOutput } from "./commands/BatchGetMetricDataCommand";
11
11
  import { CreateConfigurationSetCommandInput, CreateConfigurationSetCommandOutput } from "./commands/CreateConfigurationSetCommand";
12
12
  import { CreateConfigurationSetEventDestinationCommandInput, CreateConfigurationSetEventDestinationCommandOutput } from "./commands/CreateConfigurationSetEventDestinationCommand";
@@ -102,11 +102,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
102
102
  */
103
103
  requestHandler?: __HttpHandler;
104
104
  /**
105
- * A constructor for a class implementing the {@link __Hash} interface
105
+ * A constructor for a class implementing the {@link __Checksum} interface
106
106
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
107
107
  * @internal
108
108
  */
109
- sha256?: __HashConstructor;
109
+ sha256?: __ChecksumConstructor | __HashConstructor;
110
110
  /**
111
111
  * The function that will be used to convert strings into HTTP endpoints.
112
112
  * @internal
@@ -31,6 +31,7 @@ import {
31
31
  } from "@aws-sdk/smithy-client";
32
32
  import {
33
33
  BodyLengthCalculator as __BodyLengthCalculator,
34
+ ChecksumConstructor as __ChecksumConstructor,
34
35
  Credentials as __Credentials,
35
36
  Decoder as __Decoder,
36
37
  Encoder as __Encoder,
@@ -569,7 +570,7 @@ export declare type ServiceOutputTypes =
569
570
  export interface ClientDefaults
570
571
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
571
572
  requestHandler?: __HttpHandler;
572
- sha256?: __HashConstructor;
573
+ sha256?: __ChecksumConstructor | __HashConstructor;
573
574
  urlParser?: __UrlParser;
574
575
  bodyLengthChecker?: __BodyLengthCalculator;
575
576
  streamCollector?: __StreamCollector;
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.252.0",
4
+ "version": "3.254.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,39 +18,39 @@
18
18
  "module": "./dist-es/index.js",
19
19
  "sideEffects": false,
20
20
  "dependencies": {
21
- "@aws-crypto/sha256-browser": "2.0.0",
22
- "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.252.0",
24
- "@aws-sdk/config-resolver": "3.234.0",
25
- "@aws-sdk/credential-provider-node": "3.252.0",
26
- "@aws-sdk/fetch-http-handler": "3.226.0",
27
- "@aws-sdk/hash-node": "3.226.0",
28
- "@aws-sdk/invalid-dependency": "3.226.0",
29
- "@aws-sdk/middleware-content-length": "3.226.0",
30
- "@aws-sdk/middleware-endpoint": "3.226.0",
31
- "@aws-sdk/middleware-host-header": "3.226.0",
32
- "@aws-sdk/middleware-logger": "3.226.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.226.0",
34
- "@aws-sdk/middleware-retry": "3.235.0",
35
- "@aws-sdk/middleware-serde": "3.226.0",
36
- "@aws-sdk/middleware-signing": "3.226.0",
37
- "@aws-sdk/middleware-stack": "3.226.0",
38
- "@aws-sdk/middleware-user-agent": "3.226.0",
39
- "@aws-sdk/node-config-provider": "3.226.0",
40
- "@aws-sdk/node-http-handler": "3.226.0",
41
- "@aws-sdk/protocol-http": "3.226.0",
42
- "@aws-sdk/smithy-client": "3.234.0",
43
- "@aws-sdk/types": "3.226.0",
44
- "@aws-sdk/url-parser": "3.226.0",
21
+ "@aws-crypto/sha256-browser": "3.0.0",
22
+ "@aws-crypto/sha256-js": "3.0.0",
23
+ "@aws-sdk/client-sts": "3.254.0",
24
+ "@aws-sdk/config-resolver": "3.254.0",
25
+ "@aws-sdk/credential-provider-node": "3.254.0",
26
+ "@aws-sdk/fetch-http-handler": "3.254.0",
27
+ "@aws-sdk/hash-node": "3.254.0",
28
+ "@aws-sdk/invalid-dependency": "3.254.0",
29
+ "@aws-sdk/middleware-content-length": "3.254.0",
30
+ "@aws-sdk/middleware-endpoint": "3.254.0",
31
+ "@aws-sdk/middleware-host-header": "3.254.0",
32
+ "@aws-sdk/middleware-logger": "3.254.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.254.0",
34
+ "@aws-sdk/middleware-retry": "3.254.0",
35
+ "@aws-sdk/middleware-serde": "3.254.0",
36
+ "@aws-sdk/middleware-signing": "3.254.0",
37
+ "@aws-sdk/middleware-stack": "3.254.0",
38
+ "@aws-sdk/middleware-user-agent": "3.254.0",
39
+ "@aws-sdk/node-config-provider": "3.254.0",
40
+ "@aws-sdk/node-http-handler": "3.254.0",
41
+ "@aws-sdk/protocol-http": "3.254.0",
42
+ "@aws-sdk/smithy-client": "3.254.0",
43
+ "@aws-sdk/types": "3.254.0",
44
+ "@aws-sdk/url-parser": "3.254.0",
45
45
  "@aws-sdk/util-base64": "3.208.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.234.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.234.0",
50
- "@aws-sdk/util-endpoints": "3.245.0",
51
- "@aws-sdk/util-retry": "3.229.0",
52
- "@aws-sdk/util-user-agent-browser": "3.226.0",
53
- "@aws-sdk/util-user-agent-node": "3.226.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.254.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.254.0",
50
+ "@aws-sdk/util-endpoints": "3.254.0",
51
+ "@aws-sdk/util-retry": "3.254.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.254.0",
53
+ "@aws-sdk/util-user-agent-node": "3.254.0",
54
54
  "@aws-sdk/util-utf8-browser": "3.188.0",
55
55
  "@aws-sdk/util-utf8-node": "3.208.0",
56
56
  "tslib": "^2.3.1"