@aws-sdk/client-pinpoint-email 3.216.0 → 3.218.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.
@@ -231,7 +231,7 @@ const serializeAws_restJson1GetBlacklistReportsCommand = async (input, context)
231
231
  "/v1/email/deliverability-dashboard/blacklist-report";
232
232
  const query = map({
233
233
  BlacklistItemNames: [
234
- () => input.BlacklistItemNames !== void 0,
234
+ (0, smithy_client_1.expectNonNull)(input.BlacklistItemNames, `BlacklistItemNames`) != null,
235
235
  () => (input.BlacklistItemNames || []).map((_entry) => _entry),
236
236
  ],
237
237
  });
@@ -386,10 +386,13 @@ const serializeAws_restJson1GetDomainStatisticsReportCommand = async (input, con
386
386
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "Domain", () => input.Domain, "{Domain}", false);
387
387
  const query = map({
388
388
  StartDate: [
389
- () => input.StartDate !== void 0,
389
+ (0, smithy_client_1.expectNonNull)(input.StartDate, `StartDate`) != null,
390
390
  () => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
391
391
  ],
392
- EndDate: [() => input.EndDate !== void 0, () => (input.EndDate.toISOString().split(".")[0] + "Z").toString()],
392
+ EndDate: [
393
+ (0, smithy_client_1.expectNonNull)(input.EndDate, `EndDate`) != null,
394
+ () => (input.EndDate.toISOString().split(".")[0] + "Z").toString(),
395
+ ],
393
396
  });
394
397
  let body;
395
398
  return new protocol_http_1.HttpRequest({
@@ -493,10 +496,13 @@ const serializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = async (in
493
496
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SubscribedDomain", () => input.SubscribedDomain, "{SubscribedDomain}", false);
494
497
  const query = map({
495
498
  StartDate: [
496
- () => input.StartDate !== void 0,
499
+ (0, smithy_client_1.expectNonNull)(input.StartDate, `StartDate`) != null,
497
500
  () => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
498
501
  ],
499
- EndDate: [() => input.EndDate !== void 0, () => (input.EndDate.toISOString().split(".")[0] + "Z").toString()],
502
+ EndDate: [
503
+ (0, smithy_client_1.expectNonNull)(input.EndDate, `EndDate`) != null,
504
+ () => (input.EndDate.toISOString().split(".")[0] + "Z").toString(),
505
+ ],
500
506
  NextToken: [, input.NextToken],
501
507
  PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
502
508
  });
@@ -539,7 +545,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
539
545
  const headers = {};
540
546
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/tags";
541
547
  const query = map({
542
- ResourceArn: [, input.ResourceArn],
548
+ ResourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
543
549
  });
544
550
  let body;
545
551
  return new protocol_http_1.HttpRequest({
@@ -884,8 +890,11 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
884
890
  const headers = {};
885
891
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/tags";
886
892
  const query = map({
887
- ResourceArn: [, input.ResourceArn],
888
- TagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
893
+ ResourceArn: [, (0, smithy_client_1.expectNonNull)(input.ResourceArn, `ResourceArn`)],
894
+ TagKeys: [
895
+ (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
896
+ () => (input.TagKeys || []).map((_entry) => _entry),
897
+ ],
889
898
  });
890
899
  let body;
891
900
  return new protocol_http_1.HttpRequest({
@@ -217,7 +217,7 @@ export const serializeAws_restJson1GetBlacklistReportsCommand = async (input, co
217
217
  "/v1/email/deliverability-dashboard/blacklist-report";
218
218
  const query = map({
219
219
  BlacklistItemNames: [
220
- () => input.BlacklistItemNames !== void 0,
220
+ __expectNonNull(input.BlacklistItemNames, `BlacklistItemNames`) != null,
221
221
  () => (input.BlacklistItemNames || []).map((_entry) => _entry),
222
222
  ],
223
223
  });
@@ -364,10 +364,13 @@ export const serializeAws_restJson1GetDomainStatisticsReportCommand = async (inp
364
364
  resolvedPath = __resolvedPath(resolvedPath, input, "Domain", () => input.Domain, "{Domain}", false);
365
365
  const query = map({
366
366
  StartDate: [
367
- () => input.StartDate !== void 0,
367
+ __expectNonNull(input.StartDate, `StartDate`) != null,
368
368
  () => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
369
369
  ],
370
- EndDate: [() => input.EndDate !== void 0, () => (input.EndDate.toISOString().split(".")[0] + "Z").toString()],
370
+ EndDate: [
371
+ __expectNonNull(input.EndDate, `EndDate`) != null,
372
+ () => (input.EndDate.toISOString().split(".")[0] + "Z").toString(),
373
+ ],
371
374
  });
372
375
  let body;
373
376
  return new __HttpRequest({
@@ -466,10 +469,13 @@ export const serializeAws_restJson1ListDomainDeliverabilityCampaignsCommand = as
466
469
  resolvedPath = __resolvedPath(resolvedPath, input, "SubscribedDomain", () => input.SubscribedDomain, "{SubscribedDomain}", false);
467
470
  const query = map({
468
471
  StartDate: [
469
- () => input.StartDate !== void 0,
472
+ __expectNonNull(input.StartDate, `StartDate`) != null,
470
473
  () => (input.StartDate.toISOString().split(".")[0] + "Z").toString(),
471
474
  ],
472
- EndDate: [() => input.EndDate !== void 0, () => (input.EndDate.toISOString().split(".")[0] + "Z").toString()],
475
+ EndDate: [
476
+ __expectNonNull(input.EndDate, `EndDate`) != null,
477
+ () => (input.EndDate.toISOString().split(".")[0] + "Z").toString(),
478
+ ],
473
479
  NextToken: [, input.NextToken],
474
480
  PageSize: [() => input.PageSize !== void 0, () => input.PageSize.toString()],
475
481
  });
@@ -510,7 +516,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
510
516
  const headers = {};
511
517
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/tags";
512
518
  const query = map({
513
- ResourceArn: [, input.ResourceArn],
519
+ ResourceArn: [, __expectNonNull(input.ResourceArn, `ResourceArn`)],
514
520
  });
515
521
  let body;
516
522
  return new __HttpRequest({
@@ -840,8 +846,11 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
840
846
  const headers = {};
841
847
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/email/tags";
842
848
  const query = map({
843
- ResourceArn: [, input.ResourceArn],
844
- TagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
849
+ ResourceArn: [, __expectNonNull(input.ResourceArn, `ResourceArn`)],
850
+ TagKeys: [
851
+ __expectNonNull(input.TagKeys, `TagKeys`) != null,
852
+ () => (input.TagKeys || []).map((_entry) => _entry),
853
+ ],
845
854
  });
846
855
  let body;
847
856
  return new __HttpRequest({
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.216.0",
4
+ "version": "3.218.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",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.216.0",
22
+ "@aws-sdk/client-sts": "3.218.0",
23
23
  "@aws-sdk/config-resolver": "3.215.0",
24
- "@aws-sdk/credential-provider-node": "3.216.0",
24
+ "@aws-sdk/credential-provider-node": "3.218.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.215.0",
26
26
  "@aws-sdk/hash-node": "3.215.0",
27
27
  "@aws-sdk/invalid-dependency": "3.215.0",