@aws-sdk/client-sesv2 3.245.0 → 3.252.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
|
-
() =>
|
|
754
|
+
() => input.StartDate.toISOString().split(".")[0] + "Z",
|
|
755
755
|
],
|
|
756
756
|
EndDate: [
|
|
757
757
|
(0, smithy_client_1.expectNonNull)(input.EndDate, `EndDate`) != null,
|
|
758
|
-
() =>
|
|
758
|
+
() => input.EndDate.toISOString().split(".")[0] + "Z",
|
|
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
|
-
() =>
|
|
1005
|
+
() => input.StartDate.toISOString().split(".")[0] + "Z",
|
|
1006
1006
|
],
|
|
1007
1007
|
EndDate: [
|
|
1008
1008
|
(0, smithy_client_1.expectNonNull)(input.EndDate, `EndDate`) != null,
|
|
1009
|
-
() =>
|
|
1009
|
+
() => input.EndDate.toISOString().split(".")[0] + "Z",
|
|
1010
1010
|
],
|
|
1011
1011
|
NextToken: [, input.NextToken],
|
|
1012
1012
|
PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
|
|
@@ -1121,11 +1121,8 @@ 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: [
|
|
1125
|
-
|
|
1126
|
-
() => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
|
|
1127
|
-
],
|
|
1128
|
-
EndDate: [() => input.EndDate !== void 0, () => (input.EndDate.toISOString().split(".")[0] + "Z").toString()],
|
|
1124
|
+
StartDate: [() => input.StartDate !== void 0, () => input.StartDate.toISOString().split(".")[0] + "Z"],
|
|
1125
|
+
EndDate: [() => input.EndDate !== void 0, () => input.EndDate.toISOString().split(".")[0] + "Z"],
|
|
1129
1126
|
NextToken: [, input.NextToken],
|
|
1130
1127
|
PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
|
|
1131
1128
|
});
|
|
@@ -5763,11 +5760,11 @@ const serializeAws_restJson1BatchGetMetricDataQueries = (input, context) => {
|
|
|
5763
5760
|
const serializeAws_restJson1BatchGetMetricDataQuery = (input, context) => {
|
|
5764
5761
|
return {
|
|
5765
5762
|
...(input.Dimensions != null && { Dimensions: serializeAws_restJson1Dimensions(input.Dimensions, context) }),
|
|
5766
|
-
...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
|
|
5763
|
+
...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000).toString() }),
|
|
5767
5764
|
...(input.Id != null && { Id: input.Id }),
|
|
5768
5765
|
...(input.Metric != null && { Metric: input.Metric }),
|
|
5769
5766
|
...(input.Namespace != null && { Namespace: input.Namespace }),
|
|
5770
|
-
...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
|
|
5767
|
+
...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000).toString() }),
|
|
5771
5768
|
};
|
|
5772
5769
|
};
|
|
5773
5770
|
const serializeAws_restJson1Body = (input, context) => {
|
|
@@ -5884,7 +5881,7 @@ const serializeAws_restJson1DomainDeliverabilityTrackingOption = (input, context
|
|
|
5884
5881
|
InboxPlacementTrackingOption: serializeAws_restJson1InboxPlacementTrackingOption(input.InboxPlacementTrackingOption, context),
|
|
5885
5882
|
}),
|
|
5886
5883
|
...(input.SubscriptionStartDate != null && {
|
|
5887
|
-
SubscriptionStartDate: Math.round(input.SubscriptionStartDate.getTime() / 1000),
|
|
5884
|
+
SubscriptionStartDate: Math.round(input.SubscriptionStartDate.getTime() / 1000).toString(),
|
|
5888
5885
|
}),
|
|
5889
5886
|
};
|
|
5890
5887
|
};
|
|
@@ -6052,7 +6049,9 @@ const serializeAws_restJson1ReplacementTemplate = (input, context) => {
|
|
|
6052
6049
|
};
|
|
6053
6050
|
const serializeAws_restJson1ReputationOptions = (input, context) => {
|
|
6054
6051
|
return {
|
|
6055
|
-
...(input.LastFreshStart != null && {
|
|
6052
|
+
...(input.LastFreshStart != null && {
|
|
6053
|
+
LastFreshStart: Math.round(input.LastFreshStart.getTime() / 1000).toString(),
|
|
6054
|
+
}),
|
|
6056
6055
|
...(input.ReputationMetricsEnabled != null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }),
|
|
6057
6056
|
};
|
|
6058
6057
|
};
|
|
@@ -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
|
-
() =>
|
|
713
|
+
() => input.StartDate.toISOString().split(".")[0] + "Z",
|
|
714
714
|
],
|
|
715
715
|
EndDate: [
|
|
716
716
|
__expectNonNull(input.EndDate, `EndDate`) != null,
|
|
717
|
-
() =>
|
|
717
|
+
() => input.EndDate.toISOString().split(".")[0] + "Z",
|
|
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
|
-
() =>
|
|
952
|
+
() => input.StartDate.toISOString().split(".")[0] + "Z",
|
|
953
953
|
],
|
|
954
954
|
EndDate: [
|
|
955
955
|
__expectNonNull(input.EndDate, `EndDate`) != null,
|
|
956
|
-
() =>
|
|
956
|
+
() => input.EndDate.toISOString().split(".")[0] + "Z",
|
|
957
957
|
],
|
|
958
958
|
NextToken: [, input.NextToken],
|
|
959
959
|
PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
|
|
@@ -1063,11 +1063,8 @@ 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: [
|
|
1067
|
-
|
|
1068
|
-
() => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
|
|
1069
|
-
],
|
|
1070
|
-
EndDate: [() => input.EndDate !== void 0, () => (input.EndDate.toISOString().split(".")[0] + "Z").toString()],
|
|
1066
|
+
StartDate: [() => input.StartDate !== void 0, () => input.StartDate.toISOString().split(".")[0] + "Z"],
|
|
1067
|
+
EndDate: [() => input.EndDate !== void 0, () => input.EndDate.toISOString().split(".")[0] + "Z"],
|
|
1071
1068
|
NextToken: [, input.NextToken],
|
|
1072
1069
|
PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
|
|
1073
1070
|
});
|
|
@@ -5585,11 +5582,11 @@ const serializeAws_restJson1BatchGetMetricDataQueries = (input, context) => {
|
|
|
5585
5582
|
const serializeAws_restJson1BatchGetMetricDataQuery = (input, context) => {
|
|
5586
5583
|
return {
|
|
5587
5584
|
...(input.Dimensions != null && { Dimensions: serializeAws_restJson1Dimensions(input.Dimensions, context) }),
|
|
5588
|
-
...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000) }),
|
|
5585
|
+
...(input.EndDate != null && { EndDate: Math.round(input.EndDate.getTime() / 1000).toString() }),
|
|
5589
5586
|
...(input.Id != null && { Id: input.Id }),
|
|
5590
5587
|
...(input.Metric != null && { Metric: input.Metric }),
|
|
5591
5588
|
...(input.Namespace != null && { Namespace: input.Namespace }),
|
|
5592
|
-
...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000) }),
|
|
5589
|
+
...(input.StartDate != null && { StartDate: Math.round(input.StartDate.getTime() / 1000).toString() }),
|
|
5593
5590
|
};
|
|
5594
5591
|
};
|
|
5595
5592
|
const serializeAws_restJson1Body = (input, context) => {
|
|
@@ -5706,7 +5703,7 @@ const serializeAws_restJson1DomainDeliverabilityTrackingOption = (input, context
|
|
|
5706
5703
|
InboxPlacementTrackingOption: serializeAws_restJson1InboxPlacementTrackingOption(input.InboxPlacementTrackingOption, context),
|
|
5707
5704
|
}),
|
|
5708
5705
|
...(input.SubscriptionStartDate != null && {
|
|
5709
|
-
SubscriptionStartDate: Math.round(input.SubscriptionStartDate.getTime() / 1000),
|
|
5706
|
+
SubscriptionStartDate: Math.round(input.SubscriptionStartDate.getTime() / 1000).toString(),
|
|
5710
5707
|
}),
|
|
5711
5708
|
};
|
|
5712
5709
|
};
|
|
@@ -5874,7 +5871,9 @@ const serializeAws_restJson1ReplacementTemplate = (input, context) => {
|
|
|
5874
5871
|
};
|
|
5875
5872
|
const serializeAws_restJson1ReputationOptions = (input, context) => {
|
|
5876
5873
|
return {
|
|
5877
|
-
...(input.LastFreshStart != null && {
|
|
5874
|
+
...(input.LastFreshStart != null && {
|
|
5875
|
+
LastFreshStart: Math.round(input.LastFreshStart.getTime() / 1000).toString(),
|
|
5876
|
+
}),
|
|
5878
5877
|
...(input.ReputationMetricsEnabled != null && { ReputationMetricsEnabled: input.ReputationMetricsEnabled }),
|
|
5879
5878
|
};
|
|
5880
5879
|
};
|
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.
|
|
4
|
+
"version": "3.252.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",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"build:types": "tsc -p tsconfig.types.json",
|
|
12
12
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
13
13
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
14
|
-
"generate:client": "
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service --solo sesv2"
|
|
15
15
|
},
|
|
16
16
|
"main": "./dist-cjs/index.js",
|
|
17
17
|
"types": "./dist-types/index.d.ts",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.252.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.234.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.252.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.226.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.226.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.226.0",
|