@aws-sdk/client-customer-profiles 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.
@@ -672,10 +672,8 @@ const serializeAws_restJson1ListWorkflowsCommand = async (input, context) => {
672
672
  });
673
673
  let body;
674
674
  body = JSON.stringify({
675
- ...(input.QueryEndDate != null && { QueryEndDate: Math.round(input.QueryEndDate.getTime() / 1000).toString() }),
676
- ...(input.QueryStartDate != null && {
677
- QueryStartDate: Math.round(input.QueryStartDate.getTime() / 1000).toString(),
678
- }),
675
+ ...(input.QueryEndDate != null && { QueryEndDate: Math.round(input.QueryEndDate.getTime() / 1000) }),
676
+ ...(input.QueryStartDate != null && { QueryStartDate: Math.round(input.QueryStartDate.getTime() / 1000) }),
679
677
  ...(input.Status != null && { Status: input.Status }),
680
678
  ...(input.WorkflowType != null && { WorkflowType: input.WorkflowType }),
681
679
  });
@@ -3119,8 +3117,8 @@ const serializeAws_restJson1AutoMerging = (input, context) => {
3119
3117
  };
3120
3118
  const serializeAws_restJson1Batch = (input, context) => {
3121
3119
  return {
3122
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000).toString() }),
3123
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000).toString() }),
3120
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3121
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3124
3122
  };
3125
3123
  };
3126
3124
  const serializeAws_restJson1Batches = (input, context) => {
@@ -3346,16 +3344,12 @@ const serializeAws_restJson1ScheduledTriggerProperties = (input, context) => {
3346
3344
  return {
3347
3345
  ...(input.DataPullMode != null && { DataPullMode: input.DataPullMode }),
3348
3346
  ...(input.FirstExecutionFrom != null && {
3349
- FirstExecutionFrom: Math.round(input.FirstExecutionFrom.getTime() / 1000).toString(),
3350
- }),
3351
- ...(input.ScheduleEndTime != null && {
3352
- ScheduleEndTime: Math.round(input.ScheduleEndTime.getTime() / 1000).toString(),
3347
+ FirstExecutionFrom: Math.round(input.FirstExecutionFrom.getTime() / 1000),
3353
3348
  }),
3349
+ ...(input.ScheduleEndTime != null && { ScheduleEndTime: Math.round(input.ScheduleEndTime.getTime() / 1000) }),
3354
3350
  ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
3355
3351
  ...(input.ScheduleOffset != null && { ScheduleOffset: input.ScheduleOffset }),
3356
- ...(input.ScheduleStartTime != null && {
3357
- ScheduleStartTime: Math.round(input.ScheduleStartTime.getTime() / 1000).toString(),
3358
- }),
3352
+ ...(input.ScheduleStartTime != null && { ScheduleStartTime: Math.round(input.ScheduleStartTime.getTime() / 1000) }),
3359
3353
  ...(input.Timezone != null && { Timezone: input.Timezone }),
3360
3354
  };
3361
3355
  };
@@ -640,10 +640,8 @@ export const serializeAws_restJson1ListWorkflowsCommand = async (input, context)
640
640
  });
641
641
  let body;
642
642
  body = JSON.stringify({
643
- ...(input.QueryEndDate != null && { QueryEndDate: Math.round(input.QueryEndDate.getTime() / 1000).toString() }),
644
- ...(input.QueryStartDate != null && {
645
- QueryStartDate: Math.round(input.QueryStartDate.getTime() / 1000).toString(),
646
- }),
643
+ ...(input.QueryEndDate != null && { QueryEndDate: Math.round(input.QueryEndDate.getTime() / 1000) }),
644
+ ...(input.QueryStartDate != null && { QueryStartDate: Math.round(input.QueryStartDate.getTime() / 1000) }),
647
645
  ...(input.Status != null && { Status: input.Status }),
648
646
  ...(input.WorkflowType != null && { WorkflowType: input.WorkflowType }),
649
647
  });
@@ -3039,8 +3037,8 @@ const serializeAws_restJson1AutoMerging = (input, context) => {
3039
3037
  };
3040
3038
  const serializeAws_restJson1Batch = (input, context) => {
3041
3039
  return {
3042
- ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000).toString() }),
3043
- ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000).toString() }),
3040
+ ...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
3041
+ ...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
3044
3042
  };
3045
3043
  };
3046
3044
  const serializeAws_restJson1Batches = (input, context) => {
@@ -3266,16 +3264,12 @@ const serializeAws_restJson1ScheduledTriggerProperties = (input, context) => {
3266
3264
  return {
3267
3265
  ...(input.DataPullMode != null && { DataPullMode: input.DataPullMode }),
3268
3266
  ...(input.FirstExecutionFrom != null && {
3269
- FirstExecutionFrom: Math.round(input.FirstExecutionFrom.getTime() / 1000).toString(),
3270
- }),
3271
- ...(input.ScheduleEndTime != null && {
3272
- ScheduleEndTime: Math.round(input.ScheduleEndTime.getTime() / 1000).toString(),
3267
+ FirstExecutionFrom: Math.round(input.FirstExecutionFrom.getTime() / 1000),
3273
3268
  }),
3269
+ ...(input.ScheduleEndTime != null && { ScheduleEndTime: Math.round(input.ScheduleEndTime.getTime() / 1000) }),
3274
3270
  ...(input.ScheduleExpression != null && { ScheduleExpression: input.ScheduleExpression }),
3275
3271
  ...(input.ScheduleOffset != null && { ScheduleOffset: input.ScheduleOffset }),
3276
- ...(input.ScheduleStartTime != null && {
3277
- ScheduleStartTime: Math.round(input.ScheduleStartTime.getTime() / 1000).toString(),
3278
- }),
3272
+ ...(input.ScheduleStartTime != null && { ScheduleStartTime: Math.round(input.ScheduleStartTime.getTime() / 1000) }),
3279
3273
  ...(input.Timezone != null && { Timezone: input.Timezone }),
3280
3274
  };
3281
3275
  };
@@ -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 { AddProfileKeyCommandInput, AddProfileKeyCommandOutput } from "./commands/AddProfileKeyCommand";
11
11
  import { CreateDomainCommandInput, CreateDomainCommandOutput } from "./commands/CreateDomainCommand";
12
12
  import { CreateIntegrationWorkflowCommandInput, CreateIntegrationWorkflowCommandOutput } from "./commands/CreateIntegrationWorkflowCommand";
@@ -54,11 +54,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
54
54
  */
55
55
  requestHandler?: __HttpHandler;
56
56
  /**
57
- * A constructor for a class implementing the {@link __Hash} interface
57
+ * A constructor for a class implementing the {@link __Checksum} interface
58
58
  * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
59
59
  * @internal
60
60
  */
61
- sha256?: __HashConstructor;
61
+ sha256?: __ChecksumConstructor | __HashConstructor;
62
62
  /**
63
63
  * The function that will be used to convert strings into HTTP endpoints.
64
64
  * @internal
@@ -144,9 +144,9 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
144
144
  */
145
145
  defaultUserAgentProvider?: Provider<__UserAgent>;
146
146
  /**
147
- * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
147
+ * The {@link __DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
148
148
  */
149
- defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
149
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
150
150
  }
151
151
  declare type CustomerProfilesClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
152
152
  /**
@@ -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,
@@ -281,7 +282,7 @@ export declare type ServiceOutputTypes =
281
282
  export interface ClientDefaults
282
283
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
283
284
  requestHandler?: __HttpHandler;
284
- sha256?: __HashConstructor;
285
+ sha256?: __ChecksumConstructor | __HashConstructor;
285
286
  urlParser?: __UrlParser;
286
287
  bodyLengthChecker?: __BodyLengthCalculator;
287
288
  streamCollector?: __StreamCollector;
@@ -300,7 +301,7 @@ export interface ClientDefaults
300
301
  region?: string | __Provider<string>;
301
302
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
302
303
  defaultUserAgentProvider?: Provider<__UserAgent>;
303
- defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
304
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
304
305
  }
305
306
  declare type CustomerProfilesClientConfigType = Partial<
306
307
  __SmithyConfiguration<__HttpHandlerOptions>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-customer-profiles",
3
3
  "description": "AWS SDK for JavaScript Customer Profiles 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"