@aws-sdk/client-sesv2 3.583.0 → 3.588.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/dist-cjs/index.js +14 -26
- package/dist-es/protocols/Aws_restJson1.js +15 -27
- package/package.json +18 -18
package/dist-cjs/index.js
CHANGED
|
@@ -1347,14 +1347,8 @@ var se_GetDomainStatisticsReportCommand = /* @__PURE__ */ __name(async (input, c
|
|
|
1347
1347
|
b.bp("/v2/email/deliverability-dashboard/statistics-report/{Domain}");
|
|
1348
1348
|
b.p("Domain", () => input.Domain, "{Domain}", false);
|
|
1349
1349
|
const query = (0, import_smithy_client.map)({
|
|
1350
|
-
[_SD]: [
|
|
1351
|
-
|
|
1352
|
-
() => (input[_SD].toISOString().split(".")[0] + "Z").toString()
|
|
1353
|
-
],
|
|
1354
|
-
[_ED]: [
|
|
1355
|
-
(0, import_smithy_client.expectNonNull)(input.EndDate, `EndDate`) != null,
|
|
1356
|
-
() => (input[_ED].toISOString().split(".")[0] + "Z").toString()
|
|
1357
|
-
]
|
|
1350
|
+
[_SD]: [(0, import_smithy_client.expectNonNull)(input.StartDate, `StartDate`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_SD]).toString()],
|
|
1351
|
+
[_ED]: [(0, import_smithy_client.expectNonNull)(input.EndDate, `EndDate`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_ED]).toString()]
|
|
1358
1352
|
});
|
|
1359
1353
|
let body;
|
|
1360
1354
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -1507,14 +1501,8 @@ var se_ListDomainDeliverabilityCampaignsCommand = /* @__PURE__ */ __name(async (
|
|
|
1507
1501
|
b.bp("/v2/email/deliverability-dashboard/domains/{SubscribedDomain}/campaigns");
|
|
1508
1502
|
b.p("SubscribedDomain", () => input.SubscribedDomain, "{SubscribedDomain}", false);
|
|
1509
1503
|
const query = (0, import_smithy_client.map)({
|
|
1510
|
-
[_SD]: [
|
|
1511
|
-
|
|
1512
|
-
() => (input[_SD].toISOString().split(".")[0] + "Z").toString()
|
|
1513
|
-
],
|
|
1514
|
-
[_ED]: [
|
|
1515
|
-
(0, import_smithy_client.expectNonNull)(input.EndDate, `EndDate`) != null,
|
|
1516
|
-
() => (input[_ED].toISOString().split(".")[0] + "Z").toString()
|
|
1517
|
-
],
|
|
1504
|
+
[_SD]: [(0, import_smithy_client.expectNonNull)(input.StartDate, `StartDate`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_SD]).toString()],
|
|
1505
|
+
[_ED]: [(0, import_smithy_client.expectNonNull)(input.EndDate, `EndDate`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_ED]).toString()],
|
|
1518
1506
|
[_NT]: [, input[_NT]],
|
|
1519
1507
|
[_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()]
|
|
1520
1508
|
});
|
|
@@ -1604,8 +1592,8 @@ var se_ListSuppressedDestinationsCommand = /* @__PURE__ */ __name(async (input,
|
|
|
1604
1592
|
b.bp("/v2/email/suppression/addresses");
|
|
1605
1593
|
const query = (0, import_smithy_client.map)({
|
|
1606
1594
|
[_Re]: [() => input.Reasons !== void 0, () => (input[_R] || []).map((_entry) => _entry)],
|
|
1607
|
-
[_SD]: [() => input.StartDate !== void 0, () => (
|
|
1608
|
-
[_ED]: [() => input.EndDate !== void 0, () => (
|
|
1595
|
+
[_SD]: [() => input.StartDate !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_SD]).toString()],
|
|
1596
|
+
[_ED]: [() => input.EndDate !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_ED]).toString()],
|
|
1609
1597
|
[_NT]: [, input[_NT]],
|
|
1610
1598
|
[_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()]
|
|
1611
1599
|
});
|
|
@@ -3602,18 +3590,18 @@ var se_BatchGetMetricDataQueries = /* @__PURE__ */ __name((input, context) => {
|
|
|
3602
3590
|
var se_BatchGetMetricDataQuery = /* @__PURE__ */ __name((input, context) => {
|
|
3603
3591
|
return (0, import_smithy_client.take)(input, {
|
|
3604
3592
|
Dimensions: import_smithy_client._json,
|
|
3605
|
-
EndDate: (_) =>
|
|
3593
|
+
EndDate: (_) => _.getTime() / 1e3,
|
|
3606
3594
|
Id: [],
|
|
3607
3595
|
Metric: [],
|
|
3608
3596
|
Namespace: [],
|
|
3609
|
-
StartDate: (_) =>
|
|
3597
|
+
StartDate: (_) => _.getTime() / 1e3
|
|
3610
3598
|
});
|
|
3611
3599
|
}, "se_BatchGetMetricDataQuery");
|
|
3612
3600
|
var se_DomainDeliverabilityTrackingOption = /* @__PURE__ */ __name((input, context) => {
|
|
3613
3601
|
return (0, import_smithy_client.take)(input, {
|
|
3614
3602
|
Domain: [],
|
|
3615
3603
|
InboxPlacementTrackingOption: import_smithy_client._json,
|
|
3616
|
-
SubscriptionStartDate: (_) =>
|
|
3604
|
+
SubscriptionStartDate: (_) => _.getTime() / 1e3
|
|
3617
3605
|
});
|
|
3618
3606
|
}, "se_DomainDeliverabilityTrackingOption");
|
|
3619
3607
|
var se_DomainDeliverabilityTrackingOptions = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -3636,20 +3624,20 @@ var se_ExportDataSource = /* @__PURE__ */ __name((input, context) => {
|
|
|
3636
3624
|
}, "se_ExportDataSource");
|
|
3637
3625
|
var se_MessageInsightsDataSource = /* @__PURE__ */ __name((input, context) => {
|
|
3638
3626
|
return (0, import_smithy_client.take)(input, {
|
|
3639
|
-
EndDate: (_) =>
|
|
3627
|
+
EndDate: (_) => _.getTime() / 1e3,
|
|
3640
3628
|
Exclude: import_smithy_client._json,
|
|
3641
3629
|
Include: import_smithy_client._json,
|
|
3642
3630
|
MaxResults: [],
|
|
3643
|
-
StartDate: (_) =>
|
|
3631
|
+
StartDate: (_) => _.getTime() / 1e3
|
|
3644
3632
|
});
|
|
3645
3633
|
}, "se_MessageInsightsDataSource");
|
|
3646
3634
|
var se_MetricsDataSource = /* @__PURE__ */ __name((input, context) => {
|
|
3647
3635
|
return (0, import_smithy_client.take)(input, {
|
|
3648
3636
|
Dimensions: import_smithy_client._json,
|
|
3649
|
-
EndDate: (_) =>
|
|
3637
|
+
EndDate: (_) => _.getTime() / 1e3,
|
|
3650
3638
|
Metrics: import_smithy_client._json,
|
|
3651
3639
|
Namespace: [],
|
|
3652
|
-
StartDate: (_) =>
|
|
3640
|
+
StartDate: (_) => _.getTime() / 1e3
|
|
3653
3641
|
});
|
|
3654
3642
|
}, "se_MetricsDataSource");
|
|
3655
3643
|
var se_RawMessage = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -3659,7 +3647,7 @@ var se_RawMessage = /* @__PURE__ */ __name((input, context) => {
|
|
|
3659
3647
|
}, "se_RawMessage");
|
|
3660
3648
|
var se_ReputationOptions = /* @__PURE__ */ __name((input, context) => {
|
|
3661
3649
|
return (0, import_smithy_client.take)(input, {
|
|
3662
|
-
LastFreshStart: (_) =>
|
|
3650
|
+
LastFreshStart: (_) => _.getTime() / 1e3,
|
|
3663
3651
|
ReputationMetricsEnabled: []
|
|
3664
3652
|
});
|
|
3665
3653
|
}, "se_ReputationOptions");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeDateTime as __serializeDateTime, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { AccountSuspendedException, AlreadyExistsException, BadRequestException, ConcurrentModificationException, ConflictException, InternalServiceErrorException, InvalidNextTokenException, LimitExceededException, MailFromDomainNotVerifiedException, MessageRejected, NotFoundException, SendingPausedException, TooManyRequestsException, } from "../models/models_0";
|
|
5
5
|
import { SESv2ServiceException as __BaseException } from "../models/SESv2ServiceException";
|
|
6
6
|
export const se_BatchGetMetricDataCommand = async (input, context) => {
|
|
@@ -445,14 +445,8 @@ export const se_GetDomainStatisticsReportCommand = async (input, context) => {
|
|
|
445
445
|
b.bp("/v2/email/deliverability-dashboard/statistics-report/{Domain}");
|
|
446
446
|
b.p("Domain", () => input.Domain, "{Domain}", false);
|
|
447
447
|
const query = map({
|
|
448
|
-
[_SD]: [
|
|
449
|
-
|
|
450
|
-
() => (input[_SD].toISOString().split(".")[0] + "Z").toString(),
|
|
451
|
-
],
|
|
452
|
-
[_ED]: [
|
|
453
|
-
__expectNonNull(input.EndDate, `EndDate`) != null,
|
|
454
|
-
() => (input[_ED].toISOString().split(".")[0] + "Z").toString(),
|
|
455
|
-
],
|
|
448
|
+
[_SD]: [__expectNonNull(input.StartDate, `StartDate`) != null, () => __serializeDateTime(input[_SD]).toString()],
|
|
449
|
+
[_ED]: [__expectNonNull(input.EndDate, `EndDate`) != null, () => __serializeDateTime(input[_ED]).toString()],
|
|
456
450
|
});
|
|
457
451
|
let body;
|
|
458
452
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -603,14 +597,8 @@ export const se_ListDomainDeliverabilityCampaignsCommand = async (input, context
|
|
|
603
597
|
b.bp("/v2/email/deliverability-dashboard/domains/{SubscribedDomain}/campaigns");
|
|
604
598
|
b.p("SubscribedDomain", () => input.SubscribedDomain, "{SubscribedDomain}", false);
|
|
605
599
|
const query = map({
|
|
606
|
-
[_SD]: [
|
|
607
|
-
|
|
608
|
-
() => (input[_SD].toISOString().split(".")[0] + "Z").toString(),
|
|
609
|
-
],
|
|
610
|
-
[_ED]: [
|
|
611
|
-
__expectNonNull(input.EndDate, `EndDate`) != null,
|
|
612
|
-
() => (input[_ED].toISOString().split(".")[0] + "Z").toString(),
|
|
613
|
-
],
|
|
600
|
+
[_SD]: [__expectNonNull(input.StartDate, `StartDate`) != null, () => __serializeDateTime(input[_SD]).toString()],
|
|
601
|
+
[_ED]: [__expectNonNull(input.EndDate, `EndDate`) != null, () => __serializeDateTime(input[_ED]).toString()],
|
|
614
602
|
[_NT]: [, input[_NT]],
|
|
615
603
|
[_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
|
|
616
604
|
});
|
|
@@ -694,8 +682,8 @@ export const se_ListSuppressedDestinationsCommand = async (input, context) => {
|
|
|
694
682
|
b.bp("/v2/email/suppression/addresses");
|
|
695
683
|
const query = map({
|
|
696
684
|
[_Re]: [() => input.Reasons !== void 0, () => (input[_R] || []).map((_entry) => _entry)],
|
|
697
|
-
[_SD]: [() => input.StartDate !== void 0, () => (input[_SD]
|
|
698
|
-
[_ED]: [() => input.EndDate !== void 0, () => (input[_ED]
|
|
685
|
+
[_SD]: [() => input.StartDate !== void 0, () => __serializeDateTime(input[_SD]).toString()],
|
|
686
|
+
[_ED]: [() => input.EndDate !== void 0, () => __serializeDateTime(input[_ED]).toString()],
|
|
699
687
|
[_NT]: [, input[_NT]],
|
|
700
688
|
[_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
|
|
701
689
|
});
|
|
@@ -2630,18 +2618,18 @@ const se_BatchGetMetricDataQueries = (input, context) => {
|
|
|
2630
2618
|
const se_BatchGetMetricDataQuery = (input, context) => {
|
|
2631
2619
|
return take(input, {
|
|
2632
2620
|
Dimensions: _json,
|
|
2633
|
-
EndDate: (_) =>
|
|
2621
|
+
EndDate: (_) => _.getTime() / 1000,
|
|
2634
2622
|
Id: [],
|
|
2635
2623
|
Metric: [],
|
|
2636
2624
|
Namespace: [],
|
|
2637
|
-
StartDate: (_) =>
|
|
2625
|
+
StartDate: (_) => _.getTime() / 1000,
|
|
2638
2626
|
});
|
|
2639
2627
|
};
|
|
2640
2628
|
const se_DomainDeliverabilityTrackingOption = (input, context) => {
|
|
2641
2629
|
return take(input, {
|
|
2642
2630
|
Domain: [],
|
|
2643
2631
|
InboxPlacementTrackingOption: _json,
|
|
2644
|
-
SubscriptionStartDate: (_) =>
|
|
2632
|
+
SubscriptionStartDate: (_) => _.getTime() / 1000,
|
|
2645
2633
|
});
|
|
2646
2634
|
};
|
|
2647
2635
|
const se_DomainDeliverabilityTrackingOptions = (input, context) => {
|
|
@@ -2666,20 +2654,20 @@ const se_ExportDataSource = (input, context) => {
|
|
|
2666
2654
|
};
|
|
2667
2655
|
const se_MessageInsightsDataSource = (input, context) => {
|
|
2668
2656
|
return take(input, {
|
|
2669
|
-
EndDate: (_) =>
|
|
2657
|
+
EndDate: (_) => _.getTime() / 1000,
|
|
2670
2658
|
Exclude: _json,
|
|
2671
2659
|
Include: _json,
|
|
2672
2660
|
MaxResults: [],
|
|
2673
|
-
StartDate: (_) =>
|
|
2661
|
+
StartDate: (_) => _.getTime() / 1000,
|
|
2674
2662
|
});
|
|
2675
2663
|
};
|
|
2676
2664
|
const se_MetricsDataSource = (input, context) => {
|
|
2677
2665
|
return take(input, {
|
|
2678
2666
|
Dimensions: _json,
|
|
2679
|
-
EndDate: (_) =>
|
|
2667
|
+
EndDate: (_) => _.getTime() / 1000,
|
|
2680
2668
|
Metrics: _json,
|
|
2681
2669
|
Namespace: [],
|
|
2682
|
-
StartDate: (_) =>
|
|
2670
|
+
StartDate: (_) => _.getTime() / 1000,
|
|
2683
2671
|
});
|
|
2684
2672
|
};
|
|
2685
2673
|
const se_RawMessage = (input, context) => {
|
|
@@ -2689,7 +2677,7 @@ const se_RawMessage = (input, context) => {
|
|
|
2689
2677
|
};
|
|
2690
2678
|
const se_ReputationOptions = (input, context) => {
|
|
2691
2679
|
return take(input, {
|
|
2692
|
-
LastFreshStart: (_) =>
|
|
2680
|
+
LastFreshStart: (_) => _.getTime() / 1000,
|
|
2693
2681
|
ReputationMetricsEnabled: [],
|
|
2694
2682
|
});
|
|
2695
2683
|
};
|
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.588.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sesv2",
|
|
@@ -20,41 +20,41 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.588.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.588.0",
|
|
25
|
+
"@aws-sdk/core": "3.588.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.588.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.577.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.577.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.577.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.587.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.587.0",
|
|
32
32
|
"@aws-sdk/types": "3.577.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.587.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.577.0",
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^3.0.
|
|
37
|
-
"@smithy/core": "^2.
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.587.0",
|
|
36
|
+
"@smithy/config-resolver": "^3.0.1",
|
|
37
|
+
"@smithy/core": "^2.1.1",
|
|
38
38
|
"@smithy/fetch-http-handler": "^3.0.1",
|
|
39
39
|
"@smithy/hash-node": "^3.0.0",
|
|
40
40
|
"@smithy/invalid-dependency": "^3.0.0",
|
|
41
41
|
"@smithy/middleware-content-length": "^3.0.0",
|
|
42
|
-
"@smithy/middleware-endpoint": "^3.0.
|
|
43
|
-
"@smithy/middleware-retry": "^3.0.
|
|
42
|
+
"@smithy/middleware-endpoint": "^3.0.1",
|
|
43
|
+
"@smithy/middleware-retry": "^3.0.3",
|
|
44
44
|
"@smithy/middleware-serde": "^3.0.0",
|
|
45
45
|
"@smithy/middleware-stack": "^3.0.0",
|
|
46
|
-
"@smithy/node-config-provider": "^3.
|
|
46
|
+
"@smithy/node-config-provider": "^3.1.0",
|
|
47
47
|
"@smithy/node-http-handler": "^3.0.0",
|
|
48
48
|
"@smithy/protocol-http": "^4.0.0",
|
|
49
|
-
"@smithy/smithy-client": "^3.
|
|
49
|
+
"@smithy/smithy-client": "^3.1.1",
|
|
50
50
|
"@smithy/types": "^3.0.0",
|
|
51
51
|
"@smithy/url-parser": "^3.0.0",
|
|
52
52
|
"@smithy/util-base64": "^3.0.0",
|
|
53
53
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
54
54
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
57
|
-
"@smithy/util-endpoints": "^2.0.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^3.0.3",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^3.0.3",
|
|
57
|
+
"@smithy/util-endpoints": "^2.0.1",
|
|
58
58
|
"@smithy/util-middleware": "^3.0.0",
|
|
59
59
|
"@smithy/util-retry": "^3.0.0",
|
|
60
60
|
"@smithy/util-utf8": "^3.0.0",
|