@aws-sdk/client-pinpoint 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
@@ -1195,10 +1195,10 @@ var se_GetApplicationDateRangeKpiCommand = /* @__PURE__ */ __name(async (input,
1195
1195
  b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
1196
1196
  b.p("KpiName", () => input.KpiName, "{KpiName}", false);
1197
1197
  const query = (0, import_smithy_client.map)({
1198
- [_et]: [() => input.EndTime !== void 0, () => (input[_ET].toISOString().split(".")[0] + "Z").toString()],
1198
+ [_et]: [() => input.EndTime !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_ET]).toString()],
1199
1199
  [_nt]: [, input[_NT]],
1200
1200
  [_ps]: [, input[_PS]],
1201
- [_st]: [() => input.StartTime !== void 0, () => (input[_ST].toISOString().split(".")[0] + "Z").toString()]
1201
+ [_st]: [() => input.StartTime !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_ST]).toString()]
1202
1202
  });
1203
1203
  let body;
1204
1204
  b.m("GET").h(headers).q(query).b(body);
@@ -1266,10 +1266,10 @@ var se_GetCampaignDateRangeKpiCommand = /* @__PURE__ */ __name(async (input, con
1266
1266
  b.p("CampaignId", () => input.CampaignId, "{CampaignId}", false);
1267
1267
  b.p("KpiName", () => input.KpiName, "{KpiName}", false);
1268
1268
  const query = (0, import_smithy_client.map)({
1269
- [_et]: [() => input.EndTime !== void 0, () => (input[_ET].toISOString().split(".")[0] + "Z").toString()],
1269
+ [_et]: [() => input.EndTime !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_ET]).toString()],
1270
1270
  [_nt]: [, input[_NT]],
1271
1271
  [_ps]: [, input[_PS]],
1272
- [_st]: [() => input.StartTime !== void 0, () => (input[_ST].toISOString().split(".")[0] + "Z").toString()]
1272
+ [_st]: [() => input.StartTime !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_ST]).toString()]
1273
1273
  });
1274
1274
  let body;
1275
1275
  b.m("GET").h(headers).q(query).b(body);
@@ -1457,10 +1457,10 @@ var se_GetJourneyDateRangeKpiCommand = /* @__PURE__ */ __name(async (input, cont
1457
1457
  b.p("JourneyId", () => input.JourneyId, "{JourneyId}", false);
1458
1458
  b.p("KpiName", () => input.KpiName, "{KpiName}", false);
1459
1459
  const query = (0, import_smithy_client.map)({
1460
- [_et]: [() => input.EndTime !== void 0, () => (input[_ET].toISOString().split(".")[0] + "Z").toString()],
1460
+ [_et]: [() => input.EndTime !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_ET]).toString()],
1461
1461
  [_nt]: [, input[_NT]],
1462
1462
  [_ps]: [, input[_PS]],
1463
- [_st]: [() => input.StartTime !== void 0, () => (input[_ST].toISOString().split(".")[0] + "Z").toString()]
1463
+ [_st]: [() => input.StartTime !== void 0, () => (0, import_smithy_client.serializeDateTime)(input[_ST]).toString()]
1464
1464
  });
1465
1465
  let body;
1466
1466
  b.m("GET").h(headers).q(query).b(body);
@@ -4075,8 +4075,8 @@ var se_InAppTemplateRequest = /* @__PURE__ */ __name((input, context) => {
4075
4075
  }, "se_InAppTemplateRequest");
4076
4076
  var se_JourneySchedule = /* @__PURE__ */ __name((input, context) => {
4077
4077
  return (0, import_smithy_client.take)(input, {
4078
- EndTime: (_) => _.toISOString().split(".")[0] + "Z",
4079
- StartTime: (_) => _.toISOString().split(".")[0] + "Z",
4078
+ EndTime: import_smithy_client.serializeDateTime,
4079
+ StartTime: import_smithy_client.serializeDateTime,
4080
4080
  Timezone: []
4081
4081
  });
4082
4082
  }, "se_JourneySchedule");
@@ -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, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeDateTime as __serializeDateTime, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { BadRequestException, ConflictException, ForbiddenException, InternalServerErrorException, MethodNotAllowedException, NotFoundException, PayloadTooLargeException, TooManyRequestsException, } from "../models/models_0";
5
5
  import { PinpointServiceException as __BaseException } from "../models/PinpointServiceException";
6
6
  export const se_CreateAppCommand = async (input, context) => {
@@ -505,10 +505,10 @@ export const se_GetApplicationDateRangeKpiCommand = async (input, context) => {
505
505
  b.p("ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
506
506
  b.p("KpiName", () => input.KpiName, "{KpiName}", false);
507
507
  const query = map({
508
- [_et]: [() => input.EndTime !== void 0, () => (input[_ET].toISOString().split(".")[0] + "Z").toString()],
508
+ [_et]: [() => input.EndTime !== void 0, () => __serializeDateTime(input[_ET]).toString()],
509
509
  [_nt]: [, input[_NT]],
510
510
  [_ps]: [, input[_PS]],
511
- [_st]: [() => input.StartTime !== void 0, () => (input[_ST].toISOString().split(".")[0] + "Z").toString()],
511
+ [_st]: [() => input.StartTime !== void 0, () => __serializeDateTime(input[_ST]).toString()],
512
512
  });
513
513
  let body;
514
514
  b.m("GET").h(headers).q(query).b(body);
@@ -576,10 +576,10 @@ export const se_GetCampaignDateRangeKpiCommand = async (input, context) => {
576
576
  b.p("CampaignId", () => input.CampaignId, "{CampaignId}", false);
577
577
  b.p("KpiName", () => input.KpiName, "{KpiName}", false);
578
578
  const query = map({
579
- [_et]: [() => input.EndTime !== void 0, () => (input[_ET].toISOString().split(".")[0] + "Z").toString()],
579
+ [_et]: [() => input.EndTime !== void 0, () => __serializeDateTime(input[_ET]).toString()],
580
580
  [_nt]: [, input[_NT]],
581
581
  [_ps]: [, input[_PS]],
582
- [_st]: [() => input.StartTime !== void 0, () => (input[_ST].toISOString().split(".")[0] + "Z").toString()],
582
+ [_st]: [() => input.StartTime !== void 0, () => __serializeDateTime(input[_ST]).toString()],
583
583
  });
584
584
  let body;
585
585
  b.m("GET").h(headers).q(query).b(body);
@@ -767,10 +767,10 @@ export const se_GetJourneyDateRangeKpiCommand = async (input, context) => {
767
767
  b.p("JourneyId", () => input.JourneyId, "{JourneyId}", false);
768
768
  b.p("KpiName", () => input.KpiName, "{KpiName}", false);
769
769
  const query = map({
770
- [_et]: [() => input.EndTime !== void 0, () => (input[_ET].toISOString().split(".")[0] + "Z").toString()],
770
+ [_et]: [() => input.EndTime !== void 0, () => __serializeDateTime(input[_ET]).toString()],
771
771
  [_nt]: [, input[_NT]],
772
772
  [_ps]: [, input[_PS]],
773
- [_st]: [() => input.StartTime !== void 0, () => (input[_ST].toISOString().split(".")[0] + "Z").toString()],
773
+ [_st]: [() => input.StartTime !== void 0, () => __serializeDateTime(input[_ST]).toString()],
774
774
  });
775
775
  let body;
776
776
  b.m("GET").h(headers).q(query).b(body);
@@ -3385,8 +3385,8 @@ const se_InAppTemplateRequest = (input, context) => {
3385
3385
  };
3386
3386
  const se_JourneySchedule = (input, context) => {
3387
3387
  return take(input, {
3388
- EndTime: (_) => _.toISOString().split(".")[0] + "Z",
3389
- StartTime: (_) => _.toISOString().split(".")[0] + "Z",
3388
+ EndTime: __serializeDateTime,
3389
+ StartTime: __serializeDateTime,
3390
3390
  Timezone: [],
3391
3391
  });
3392
3392
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pinpoint",
3
3
  "description": "AWS SDK for JavaScript Pinpoint 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",
@@ -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",