@aws-sdk/client-pinpoint-email 3.583.0 → 3.587.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 CHANGED
@@ -718,14 +718,8 @@ var se_GetDomainStatisticsReportCommand = /* @__PURE__ */ __name(async (input, c
718
718
  b.bp("/v1/email/deliverability-dashboard/statistics-report/{Domain}");
719
719
  b.p("Domain", () => input.Domain, "{Domain}", false);
720
720
  const query = (0, import_smithy_client.map)({
721
- [_SD]: [
722
- (0, import_smithy_client.expectNonNull)(input.StartDate, `StartDate`) != null,
723
- () => (input[_SD].toISOString().split(".")[0] + "Z").toString()
724
- ],
725
- [_ED]: [
726
- (0, import_smithy_client.expectNonNull)(input.EndDate, `EndDate`) != null,
727
- () => (input[_ED].toISOString().split(".")[0] + "Z").toString()
728
- ]
721
+ [_SD]: [(0, import_smithy_client.expectNonNull)(input.StartDate, `StartDate`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_SD]).toString()],
722
+ [_ED]: [(0, import_smithy_client.expectNonNull)(input.EndDate, `EndDate`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_ED]).toString()]
729
723
  });
730
724
  let body;
731
725
  b.m("GET").h(headers).q(query).b(body);
@@ -782,14 +776,8 @@ var se_ListDomainDeliverabilityCampaignsCommand = /* @__PURE__ */ __name(async (
782
776
  b.bp("/v1/email/deliverability-dashboard/domains/{SubscribedDomain}/campaigns");
783
777
  b.p("SubscribedDomain", () => input.SubscribedDomain, "{SubscribedDomain}", false);
784
778
  const query = (0, import_smithy_client.map)({
785
- [_SD]: [
786
- (0, import_smithy_client.expectNonNull)(input.StartDate, `StartDate`) != null,
787
- () => (input[_SD].toISOString().split(".")[0] + "Z").toString()
788
- ],
789
- [_ED]: [
790
- (0, import_smithy_client.expectNonNull)(input.EndDate, `EndDate`) != null,
791
- () => (input[_ED].toISOString().split(".")[0] + "Z").toString()
792
- ],
779
+ [_SD]: [(0, import_smithy_client.expectNonNull)(input.StartDate, `StartDate`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_SD]).toString()],
780
+ [_ED]: [(0, import_smithy_client.expectNonNull)(input.EndDate, `EndDate`) != null, () => (0, import_smithy_client.serializeDateTime)(input[_ED]).toString()],
793
781
  [_NT]: [, input[_NT]],
794
782
  [_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()]
795
783
  });
@@ -1794,7 +1782,7 @@ var se_DomainDeliverabilityTrackingOption = /* @__PURE__ */ __name((input, conte
1794
1782
  return (0, import_smithy_client.take)(input, {
1795
1783
  Domain: [],
1796
1784
  InboxPlacementTrackingOption: import_smithy_client._json,
1797
- SubscriptionStartDate: (_) => Math.round(_.getTime() / 1e3)
1785
+ SubscriptionStartDate: (_) => _.getTime() / 1e3
1798
1786
  });
1799
1787
  }, "se_DomainDeliverabilityTrackingOption");
1800
1788
  var se_DomainDeliverabilityTrackingOptions = /* @__PURE__ */ __name((input, context) => {
@@ -1816,7 +1804,7 @@ var se_RawMessage = /* @__PURE__ */ __name((input, context) => {
1816
1804
  }, "se_RawMessage");
1817
1805
  var se_ReputationOptions = /* @__PURE__ */ __name((input, context) => {
1818
1806
  return (0, import_smithy_client.take)(input, {
1819
- LastFreshStart: (_) => Math.round(_.getTime() / 1e3),
1807
+ LastFreshStart: (_) => _.getTime() / 1e3,
1820
1808
  ReputationMetricsEnabled: []
1821
1809
  });
1822
1810
  }, "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, 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, 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, LimitExceededException, MailFromDomainNotVerifiedException, MessageRejected, NotFoundException, SendingPausedException, TooManyRequestsException, } from "../models/models_0";
5
5
  import { PinpointEmailServiceException as __BaseException } from "../models/PinpointEmailServiceException";
6
6
  export const se_CreateConfigurationSetCommand = async (input, context) => {
@@ -217,14 +217,8 @@ export const se_GetDomainStatisticsReportCommand = async (input, context) => {
217
217
  b.bp("/v1/email/deliverability-dashboard/statistics-report/{Domain}");
218
218
  b.p("Domain", () => input.Domain, "{Domain}", false);
219
219
  const query = map({
220
- [_SD]: [
221
- __expectNonNull(input.StartDate, `StartDate`) != null,
222
- () => (input[_SD].toISOString().split(".")[0] + "Z").toString(),
223
- ],
224
- [_ED]: [
225
- __expectNonNull(input.EndDate, `EndDate`) != null,
226
- () => (input[_ED].toISOString().split(".")[0] + "Z").toString(),
227
- ],
220
+ [_SD]: [__expectNonNull(input.StartDate, `StartDate`) != null, () => __serializeDateTime(input[_SD]).toString()],
221
+ [_ED]: [__expectNonNull(input.EndDate, `EndDate`) != null, () => __serializeDateTime(input[_ED]).toString()],
228
222
  });
229
223
  let body;
230
224
  b.m("GET").h(headers).q(query).b(body);
@@ -281,14 +275,8 @@ export const se_ListDomainDeliverabilityCampaignsCommand = async (input, context
281
275
  b.bp("/v1/email/deliverability-dashboard/domains/{SubscribedDomain}/campaigns");
282
276
  b.p("SubscribedDomain", () => input.SubscribedDomain, "{SubscribedDomain}", false);
283
277
  const query = map({
284
- [_SD]: [
285
- __expectNonNull(input.StartDate, `StartDate`) != null,
286
- () => (input[_SD].toISOString().split(".")[0] + "Z").toString(),
287
- ],
288
- [_ED]: [
289
- __expectNonNull(input.EndDate, `EndDate`) != null,
290
- () => (input[_ED].toISOString().split(".")[0] + "Z").toString(),
291
- ],
278
+ [_SD]: [__expectNonNull(input.StartDate, `StartDate`) != null, () => __serializeDateTime(input[_SD]).toString()],
279
+ [_ED]: [__expectNonNull(input.EndDate, `EndDate`) != null, () => __serializeDateTime(input[_ED]).toString()],
292
280
  [_NT]: [, input[_NT]],
293
281
  [_PS]: [() => input.PageSize !== void 0, () => input[_PS].toString()],
294
282
  });
@@ -1263,7 +1251,7 @@ const se_DomainDeliverabilityTrackingOption = (input, context) => {
1263
1251
  return take(input, {
1264
1252
  Domain: [],
1265
1253
  InboxPlacementTrackingOption: _json,
1266
- SubscriptionStartDate: (_) => Math.round(_.getTime() / 1000),
1254
+ SubscriptionStartDate: (_) => _.getTime() / 1000,
1267
1255
  });
1268
1256
  };
1269
1257
  const se_DomainDeliverabilityTrackingOptions = (input, context) => {
@@ -1287,7 +1275,7 @@ const se_RawMessage = (input, context) => {
1287
1275
  };
1288
1276
  const se_ReputationOptions = (input, context) => {
1289
1277
  return take(input, {
1290
- LastFreshStart: (_) => Math.round(_.getTime() / 1000),
1278
+ LastFreshStart: (_) => _.getTime() / 1000,
1291
1279
  ReputationMetricsEnabled: [],
1292
1280
  });
1293
1281
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pinpoint-email",
3
3
  "description": "AWS SDK for JavaScript Pinpoint Email Client for Node.js, Browser and React Native",
4
- "version": "3.583.0",
4
+ "version": "3.587.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-pinpoint-email",
@@ -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.583.0",
24
- "@aws-sdk/client-sts": "3.583.0",
25
- "@aws-sdk/core": "3.582.0",
26
- "@aws-sdk/credential-provider-node": "3.583.0",
23
+ "@aws-sdk/client-sso-oidc": "3.587.0",
24
+ "@aws-sdk/client-sts": "3.587.0",
25
+ "@aws-sdk/core": "3.587.0",
26
+ "@aws-sdk/credential-provider-node": "3.587.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.583.0",
31
- "@aws-sdk/region-config-resolver": "3.577.0",
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.583.0",
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.577.0",
36
- "@smithy/config-resolver": "^3.0.0",
37
- "@smithy/core": "^2.0.1",
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.0",
43
- "@smithy/middleware-retry": "^3.0.1",
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.0.0",
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.0.1",
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.1",
56
- "@smithy/util-defaults-mode-node": "^3.0.1",
57
- "@smithy/util-endpoints": "^2.0.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",