@aws-sdk/client-pinpoint 3.320.0 → 3.321.1

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.
@@ -9761,7 +9761,7 @@ const de_SimpleCondition = (output, context) => {
9761
9761
  return (0, smithy_client_1.take)(output, {
9762
9762
  EventCondition: (_) => de_EventCondition(_, context),
9763
9763
  SegmentCondition: smithy_client_1._json,
9764
- SegmentDimensions: (_) => [, de_SegmentDimensions(_, context), `segmentDimensions`],
9764
+ SegmentDimensions: [, (_) => de_SegmentDimensions(_, context), `segmentDimensions`],
9765
9765
  });
9766
9766
  };
9767
9767
  const de_SMSTemplateResponse = (output, context) => {
@@ -9510,7 +9510,7 @@ const de_SimpleCondition = (output, context) => {
9510
9510
  return take(output, {
9511
9511
  EventCondition: (_) => de_EventCondition(_, context),
9512
9512
  SegmentCondition: _json,
9513
- SegmentDimensions: (_) => [, de_SegmentDimensions(_, context), `segmentDimensions`],
9513
+ SegmentDimensions: [, (_) => de_SegmentDimensions(_, context), `segmentDimensions`],
9514
9514
  });
9515
9515
  };
9516
9516
  const de_SMSTemplateResponse = (output, context) => {
@@ -66,6 +66,35 @@ export interface GetJourneyRunExecutionActivityMetricsCommandOutput extends GetJ
66
66
  * <p>Provides information about an API request or response.</p>
67
67
  *
68
68
  *
69
+ * @example To get the activity execution metrics for a journey run
70
+ * ```javascript
71
+ * // The following example gets activity execution metrics for a single run of a journey.
72
+ * const input = {
73
+ * "ApplicationId": "11111111112222222222333333333344",
74
+ * "JourneyId": "aaaaaaaaaabbbbbbbbbbccccccccccdd",
75
+ * "RunId": "99999999998888888888777777777766",
76
+ * "JourneyActivityId": "AAAAAAAAAA"
77
+ * };
78
+ * const command = new GetJourneyRunExecutionActivityMetricsCommand(input);
79
+ * const response = await client.send(command);
80
+ * /* response ==
81
+ * {
82
+ * "JourneyRunExecutionActivityMetricsResponse": {
83
+ * "ApplicationId": "11111111112222222222333333333344",
84
+ * "JourneyId": "aaaaaaaaaabbbbbbbbbbccccccccccdd",
85
+ * "RunId": "99999999998888888888777777777766",
86
+ * "JourneyActivityId": "AAAAAAAAAA",
87
+ * "ActivityType": "EMAIL",
88
+ * "LastEvaluatedTime": "2000-01-01T00:00:05.000Z",
89
+ * "Metrics": {
90
+ * "SUCCESS": "1"
91
+ * }
92
+ * }
93
+ * }
94
+ * *\/
95
+ * // example id: to-get-the-activity-execution-metrics-for-a-journey-run
96
+ * ```
97
+ *
69
98
  */
70
99
  export declare class GetJourneyRunExecutionActivityMetricsCommand extends $Command<GetJourneyRunExecutionActivityMetricsCommandInput, GetJourneyRunExecutionActivityMetricsCommandOutput, PinpointClientResolvedConfig> {
71
100
  readonly input: GetJourneyRunExecutionActivityMetricsCommandInput;
@@ -65,6 +65,34 @@ export interface GetJourneyRunExecutionMetricsCommandOutput extends GetJourneyRu
65
65
  * <p>Provides information about an API request or response.</p>
66
66
  *
67
67
  *
68
+ * @example To get the execution metrics for a journey run
69
+ * ```javascript
70
+ * // The following example gets execution metrics for a single run of a journey.
71
+ * const input = {
72
+ * "ApplicationId": "11111111112222222222333333333344",
73
+ * "JourneyId": "aaaaaaaaaabbbbbbbbbbccccccccccdd",
74
+ * "RunId": "99999999998888888888777777777766"
75
+ * };
76
+ * const command = new GetJourneyRunExecutionMetricsCommand(input);
77
+ * const response = await client.send(command);
78
+ * /* response ==
79
+ * {
80
+ * "JourneyRunExecutionMetricsResponse": {
81
+ * "ApplicationId": "11111111112222222222333333333344",
82
+ * "JourneyId": "aaaaaaaaaabbbbbbbbbbccccccccccdd",
83
+ * "RunId": "99999999998888888888777777777766",
84
+ * "LastEvaluatedTime": "2000-01-01T00:00:05.000Z",
85
+ * "Metrics": {
86
+ * "ENDPOINT_PRODUCED": "1",
87
+ * "ENDPOINT_ENTERED": "1",
88
+ * "ENDPOINT_LEFT": "1"
89
+ * }
90
+ * }
91
+ * }
92
+ * *\/
93
+ * // example id: to-get-the-execution-metrics-for-a-journey-run
94
+ * ```
95
+ *
68
96
  */
69
97
  export declare class GetJourneyRunExecutionMetricsCommand extends $Command<GetJourneyRunExecutionMetricsCommandInput, GetJourneyRunExecutionMetricsCommandOutput, PinpointClientResolvedConfig> {
70
98
  readonly input: GetJourneyRunExecutionMetricsCommandInput;
@@ -64,6 +64,38 @@ export interface GetJourneyRunsCommandOutput extends GetJourneyRunsResponse, __M
64
64
  * <p>Provides information about an API request or response.</p>
65
65
  *
66
66
  *
67
+ * @example To get the runs of a journey
68
+ * ```javascript
69
+ * // The following example gets the runs of a journey.
70
+ * const input = {
71
+ * "ApplicationId": "11111111112222222222333333333344",
72
+ * "JourneyId": "aaaaaaaaaabbbbbbbbbbccccccccccdd"
73
+ * };
74
+ * const command = new GetJourneyRunsCommand(input);
75
+ * const response = await client.send(command);
76
+ * /* response ==
77
+ * {
78
+ * "JourneyRunsResponse": {
79
+ * "Item": [
80
+ * {
81
+ * "RunId": "99999999998888888888777777777766",
82
+ * "CreationTime": "2000-01-01T00:00:00.000Z",
83
+ * "LastUpdateTime": "2000-01-01T00:00:05.000Z",
84
+ * "Status": "COMPLETED"
85
+ * },
86
+ * {
87
+ * "RunId": "ffffffffffeeeeeeeeeeddddddddddcc",
88
+ * "CreationTime": "2000-01-01T00:00:10.000Z",
89
+ * "LastUpdateTime": "2000-01-01T00:00:10.000Z",
90
+ * "Status": "SCHEDULED"
91
+ * }
92
+ * ]
93
+ * }
94
+ * }
95
+ * *\/
96
+ * // example id: to-get-the-runs-of-a-journey
97
+ * ```
98
+ *
67
99
  */
68
100
  export declare class GetJourneyRunsCommand extends $Command<GetJourneyRunsCommandInput, GetJourneyRunsCommandOutput, PinpointClientResolvedConfig> {
69
101
  readonly input: GetJourneyRunsCommandInput;
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.320.0",
4
+ "version": "3.321.1",
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",
@@ -21,9 +21,9 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.319.0",
24
+ "@aws-sdk/client-sts": "3.321.1",
25
25
  "@aws-sdk/config-resolver": "3.310.0",
26
- "@aws-sdk/credential-provider-node": "3.319.0",
26
+ "@aws-sdk/credential-provider-node": "3.321.1",
27
27
  "@aws-sdk/fetch-http-handler": "3.310.0",
28
28
  "@aws-sdk/hash-node": "3.310.0",
29
29
  "@aws-sdk/invalid-dependency": "3.310.0",
@@ -38,7 +38,7 @@
38
38
  "@aws-sdk/middleware-stack": "3.310.0",
39
39
  "@aws-sdk/middleware-user-agent": "3.319.0",
40
40
  "@aws-sdk/node-config-provider": "3.310.0",
41
- "@aws-sdk/node-http-handler": "3.310.0",
41
+ "@aws-sdk/node-http-handler": "3.321.1",
42
42
  "@aws-sdk/protocol-http": "3.310.0",
43
43
  "@aws-sdk/smithy-client": "3.316.0",
44
44
  "@aws-sdk/types": "3.310.0",