@aws-sdk/client-pinpoint 3.252.0 → 3.256.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.
@@ -855,10 +855,13 @@ const serializeAws_restJson1GetApplicationDateRangeKpiCommand = async (input, co
855
855
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
856
856
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "KpiName", () => input.KpiName, "{KpiName}", false);
857
857
  const query = map({
858
- "end-time": [() => input.EndTime !== void 0, () => input.EndTime.toISOString().split(".")[0] + "Z"],
858
+ "end-time": [() => input.EndTime !== void 0, () => (input.EndTime.toISOString().split(".")[0] + "Z").toString()],
859
859
  "next-token": [, input.NextToken],
860
860
  "page-size": [, input.PageSize],
861
- "start-time": [() => input.StartTime !== void 0, () => input.StartTime.toISOString().split(".")[0] + "Z"],
861
+ "start-time": [
862
+ () => input.StartTime !== void 0,
863
+ () => (input.StartTime.toISOString().split(".")[0] + "Z").toString(),
864
+ ],
862
865
  });
863
866
  let body;
864
867
  return new protocol_http_1.HttpRequest({
@@ -980,10 +983,13 @@ const serializeAws_restJson1GetCampaignDateRangeKpiCommand = async (input, conte
980
983
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
981
984
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "KpiName", () => input.KpiName, "{KpiName}", false);
982
985
  const query = map({
983
- "end-time": [() => input.EndTime !== void 0, () => input.EndTime.toISOString().split(".")[0] + "Z"],
986
+ "end-time": [() => input.EndTime !== void 0, () => (input.EndTime.toISOString().split(".")[0] + "Z").toString()],
984
987
  "next-token": [, input.NextToken],
985
988
  "page-size": [, input.PageSize],
986
- "start-time": [() => input.StartTime !== void 0, () => input.StartTime.toISOString().split(".")[0] + "Z"],
989
+ "start-time": [
990
+ () => input.StartTime !== void 0,
991
+ () => (input.StartTime.toISOString().split(".")[0] + "Z").toString(),
992
+ ],
987
993
  });
988
994
  let body;
989
995
  return new protocol_http_1.HttpRequest({
@@ -1322,10 +1328,13 @@ const serializeAws_restJson1GetJourneyDateRangeKpiCommand = async (input, contex
1322
1328
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
1323
1329
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "KpiName", () => input.KpiName, "{KpiName}", false);
1324
1330
  const query = map({
1325
- "end-time": [() => input.EndTime !== void 0, () => input.EndTime.toISOString().split(".")[0] + "Z"],
1331
+ "end-time": [() => input.EndTime !== void 0, () => (input.EndTime.toISOString().split(".")[0] + "Z").toString()],
1326
1332
  "next-token": [, input.NextToken],
1327
1333
  "page-size": [, input.PageSize],
1328
- "start-time": [() => input.StartTime !== void 0, () => input.StartTime.toISOString().split(".")[0] + "Z"],
1334
+ "start-time": [
1335
+ () => input.StartTime !== void 0,
1336
+ () => (input.StartTime.toISOString().split(".")[0] + "Z").toString(),
1337
+ ],
1329
1338
  });
1330
1339
  let body;
1331
1340
  return new protocol_http_1.HttpRequest({
@@ -807,10 +807,13 @@ export const serializeAws_restJson1GetApplicationDateRangeKpiCommand = async (in
807
807
  resolvedPath = __resolvedPath(resolvedPath, input, "ApplicationId", () => input.ApplicationId, "{ApplicationId}", false);
808
808
  resolvedPath = __resolvedPath(resolvedPath, input, "KpiName", () => input.KpiName, "{KpiName}", false);
809
809
  const query = map({
810
- "end-time": [() => input.EndTime !== void 0, () => input.EndTime.toISOString().split(".")[0] + "Z"],
810
+ "end-time": [() => input.EndTime !== void 0, () => (input.EndTime.toISOString().split(".")[0] + "Z").toString()],
811
811
  "next-token": [, input.NextToken],
812
812
  "page-size": [, input.PageSize],
813
- "start-time": [() => input.StartTime !== void 0, () => input.StartTime.toISOString().split(".")[0] + "Z"],
813
+ "start-time": [
814
+ () => input.StartTime !== void 0,
815
+ () => (input.StartTime.toISOString().split(".")[0] + "Z").toString(),
816
+ ],
814
817
  });
815
818
  let body;
816
819
  return new __HttpRequest({
@@ -926,10 +929,13 @@ export const serializeAws_restJson1GetCampaignDateRangeKpiCommand = async (input
926
929
  resolvedPath = __resolvedPath(resolvedPath, input, "CampaignId", () => input.CampaignId, "{CampaignId}", false);
927
930
  resolvedPath = __resolvedPath(resolvedPath, input, "KpiName", () => input.KpiName, "{KpiName}", false);
928
931
  const query = map({
929
- "end-time": [() => input.EndTime !== void 0, () => input.EndTime.toISOString().split(".")[0] + "Z"],
932
+ "end-time": [() => input.EndTime !== void 0, () => (input.EndTime.toISOString().split(".")[0] + "Z").toString()],
930
933
  "next-token": [, input.NextToken],
931
934
  "page-size": [, input.PageSize],
932
- "start-time": [() => input.StartTime !== void 0, () => input.StartTime.toISOString().split(".")[0] + "Z"],
935
+ "start-time": [
936
+ () => input.StartTime !== void 0,
937
+ () => (input.StartTime.toISOString().split(".")[0] + "Z").toString(),
938
+ ],
933
939
  });
934
940
  let body;
935
941
  return new __HttpRequest({
@@ -1251,10 +1257,13 @@ export const serializeAws_restJson1GetJourneyDateRangeKpiCommand = async (input,
1251
1257
  resolvedPath = __resolvedPath(resolvedPath, input, "JourneyId", () => input.JourneyId, "{JourneyId}", false);
1252
1258
  resolvedPath = __resolvedPath(resolvedPath, input, "KpiName", () => input.KpiName, "{KpiName}", false);
1253
1259
  const query = map({
1254
- "end-time": [() => input.EndTime !== void 0, () => input.EndTime.toISOString().split(".")[0] + "Z"],
1260
+ "end-time": [() => input.EndTime !== void 0, () => (input.EndTime.toISOString().split(".")[0] + "Z").toString()],
1255
1261
  "next-token": [, input.NextToken],
1256
1262
  "page-size": [, input.PageSize],
1257
- "start-time": [() => input.StartTime !== void 0, () => input.StartTime.toISOString().split(".")[0] + "Z"],
1263
+ "start-time": [
1264
+ () => input.StartTime !== void 0,
1265
+ () => (input.StartTime.toISOString().split(".")[0] + "Z").toString(),
1266
+ ],
1258
1267
  });
1259
1268
  let body;
1260
1269
  return new __HttpRequest({
@@ -5,8 +5,8 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
5
5
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
6
6
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
7
7
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
8
- import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
- import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
9
+ import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
10
10
  import { CreateAppCommandInput, CreateAppCommandOutput } from "./commands/CreateAppCommand";
11
11
  import { CreateCampaignCommandInput, CreateCampaignCommandOutput } from "./commands/CreateCampaignCommand";
12
12
  import { CreateEmailTemplateCommandInput, CreateEmailTemplateCommandOutput } from "./commands/CreateEmailTemplateCommand";
@@ -135,11 +135,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
135
135
  */
136
136
  requestHandler?: __HttpHandler;
137
137
  /**
138
- * A constructor for a class implementing the {@link __Hash} interface
138
+ * A constructor for a class implementing the {@link __Checksum} interface
139
139
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
140
140
  * @internal
141
141
  */
142
- sha256?: __HashConstructor;
142
+ sha256?: __ChecksumConstructor | __HashConstructor;
143
143
  /**
144
144
  * The function that will be used to convert strings into HTTP endpoints.
145
145
  * @internal
@@ -225,9 +225,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
225
225
  */
226
226
  defaultUserAgentProvider?: Provider<__UserAgent>;
227
227
  /**
228
- * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
228
+ * The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
229
229
  */
230
- defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
230
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
231
231
  }
232
232
  declare type PinpointClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
233
233
  /**
@@ -25,12 +25,13 @@ import {
25
25
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
26
26
  import {
27
27
  Client as __Client,
28
- DefaultsMode,
28
+ DefaultsMode as __DefaultsMode,
29
29
  SmithyConfiguration as __SmithyConfiguration,
30
30
  SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
31
31
  } from "@aws-sdk/smithy-client";
32
32
  import {
33
33
  BodyLengthCalculator as __BodyLengthCalculator,
34
+ ChecksumConstructor as __ChecksumConstructor,
34
35
  Credentials as __Credentials,
35
36
  Decoder as __Decoder,
36
37
  Encoder as __Encoder,
@@ -767,7 +768,7 @@ export declare type ServiceOutputTypes =
767
768
  export interface ClientDefaults
768
769
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
769
770
  requestHandler?: __HttpHandler;
770
- sha256?: __HashConstructor;
771
+ sha256?: __ChecksumConstructor | __HashConstructor;
771
772
  urlParser?: __UrlParser;
772
773
  bodyLengthChecker?: __BodyLengthCalculator;
773
774
  streamCollector?: __StreamCollector;
@@ -786,7 +787,7 @@ export interface ClientDefaults
786
787
  region?: string | __Provider<string>;
787
788
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
788
789
  defaultUserAgentProvider?: Provider<__UserAgent>;
789
- defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
790
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
790
791
  }
791
792
  declare type PinpointClientConfigType = Partial<
792
793
  __SmithyConfiguration<__HttpHandlerOptions>
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.252.0",
4
+ "version": "3.256.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",
@@ -18,39 +18,39 @@
18
18
  "module": "./dist-es/index.js",
19
19
  "sideEffects": false,
20
20
  "dependencies": {
21
- "@aws-crypto/sha256-browser": "2.0.0",
22
- "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.252.0",
24
- "@aws-sdk/config-resolver": "3.234.0",
25
- "@aws-sdk/credential-provider-node": "3.252.0",
26
- "@aws-sdk/fetch-http-handler": "3.226.0",
27
- "@aws-sdk/hash-node": "3.226.0",
28
- "@aws-sdk/invalid-dependency": "3.226.0",
29
- "@aws-sdk/middleware-content-length": "3.226.0",
30
- "@aws-sdk/middleware-endpoint": "3.226.0",
31
- "@aws-sdk/middleware-host-header": "3.226.0",
32
- "@aws-sdk/middleware-logger": "3.226.0",
33
- "@aws-sdk/middleware-recursion-detection": "3.226.0",
34
- "@aws-sdk/middleware-retry": "3.235.0",
35
- "@aws-sdk/middleware-serde": "3.226.0",
36
- "@aws-sdk/middleware-signing": "3.226.0",
37
- "@aws-sdk/middleware-stack": "3.226.0",
38
- "@aws-sdk/middleware-user-agent": "3.226.0",
39
- "@aws-sdk/node-config-provider": "3.226.0",
40
- "@aws-sdk/node-http-handler": "3.226.0",
41
- "@aws-sdk/protocol-http": "3.226.0",
42
- "@aws-sdk/smithy-client": "3.234.0",
43
- "@aws-sdk/types": "3.226.0",
44
- "@aws-sdk/url-parser": "3.226.0",
21
+ "@aws-crypto/sha256-browser": "3.0.0",
22
+ "@aws-crypto/sha256-js": "3.0.0",
23
+ "@aws-sdk/client-sts": "3.256.0",
24
+ "@aws-sdk/config-resolver": "3.254.0",
25
+ "@aws-sdk/credential-provider-node": "3.256.0",
26
+ "@aws-sdk/fetch-http-handler": "3.254.0",
27
+ "@aws-sdk/hash-node": "3.254.0",
28
+ "@aws-sdk/invalid-dependency": "3.254.0",
29
+ "@aws-sdk/middleware-content-length": "3.254.0",
30
+ "@aws-sdk/middleware-endpoint": "3.254.0",
31
+ "@aws-sdk/middleware-host-header": "3.254.0",
32
+ "@aws-sdk/middleware-logger": "3.254.0",
33
+ "@aws-sdk/middleware-recursion-detection": "3.254.0",
34
+ "@aws-sdk/middleware-retry": "3.254.0",
35
+ "@aws-sdk/middleware-serde": "3.254.0",
36
+ "@aws-sdk/middleware-signing": "3.254.0",
37
+ "@aws-sdk/middleware-stack": "3.254.0",
38
+ "@aws-sdk/middleware-user-agent": "3.254.0",
39
+ "@aws-sdk/node-config-provider": "3.254.0",
40
+ "@aws-sdk/node-http-handler": "3.254.0",
41
+ "@aws-sdk/protocol-http": "3.254.0",
42
+ "@aws-sdk/smithy-client": "3.254.0",
43
+ "@aws-sdk/types": "3.254.0",
44
+ "@aws-sdk/url-parser": "3.254.0",
45
45
  "@aws-sdk/util-base64": "3.208.0",
46
46
  "@aws-sdk/util-body-length-browser": "3.188.0",
47
47
  "@aws-sdk/util-body-length-node": "3.208.0",
48
- "@aws-sdk/util-defaults-mode-browser": "3.234.0",
49
- "@aws-sdk/util-defaults-mode-node": "3.234.0",
50
- "@aws-sdk/util-endpoints": "3.245.0",
51
- "@aws-sdk/util-retry": "3.229.0",
52
- "@aws-sdk/util-user-agent-browser": "3.226.0",
53
- "@aws-sdk/util-user-agent-node": "3.226.0",
48
+ "@aws-sdk/util-defaults-mode-browser": "3.254.0",
49
+ "@aws-sdk/util-defaults-mode-node": "3.254.0",
50
+ "@aws-sdk/util-endpoints": "3.254.0",
51
+ "@aws-sdk/util-retry": "3.254.0",
52
+ "@aws-sdk/util-user-agent-browser": "3.254.0",
53
+ "@aws-sdk/util-user-agent-node": "3.254.0",
54
54
  "@aws-sdk/util-utf8-browser": "3.188.0",
55
55
  "@aws-sdk/util-utf8-node": "3.208.0",
56
56
  "tslib": "^2.3.1"