Skip to content

Commit 696614a

Browse files
author
awstools
committed
feat(client-connect): Amazon Connect now supports the ability to programmatically configure and run automated tests for contact center experiences for Chat. Integrate testing into CICD pipelines, run multiple tests at scale, and retrieve results via API to automate validation of chat interactions and workflows.
1 parent 23fdf99 commit 696614a

14 files changed

Lines changed: 145 additions & 82 deletions

clients/client-connect/src/commands/CreateTestCaseCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,15 @@ export interface CreateTestCaseCommandOutput extends CreateTestCaseResponse, __M
4242
* Description: "STRING_VALUE",
4343
* Content: "STRING_VALUE", // required
4444
* EntryPoint: { // TestCaseEntryPoint
45-
* Type: "VOICE_CALL",
45+
* Type: "VOICE_CALL" || "CHAT",
4646
* VoiceCallEntryPointParameters: { // VoiceCallEntryPointParameters
4747
* SourcePhoneNumber: "STRING_VALUE",
4848
* DestinationPhoneNumber: "STRING_VALUE",
4949
* FlowId: "STRING_VALUE",
5050
* },
51+
* ChatEntryPointParameters: { // ChatEntryPointParameters
52+
* FlowId: "STRING_VALUE",
53+
* },
5154
* },
5255
* InitializationData: "STRING_VALUE",
5356
* Status: "PUBLISHED" || "SAVED",

clients/client-connect/src/commands/DescribeTestCaseCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,15 @@ export interface DescribeTestCaseCommandOutput extends DescribeTestCaseResponse,
5050
* // Name: "STRING_VALUE",
5151
* // Content: "STRING_VALUE",
5252
* // EntryPoint: { // TestCaseEntryPoint
53-
* // Type: "VOICE_CALL",
53+
* // Type: "VOICE_CALL" || "CHAT",
5454
* // VoiceCallEntryPointParameters: { // VoiceCallEntryPointParameters
5555
* // SourcePhoneNumber: "STRING_VALUE",
5656
* // DestinationPhoneNumber: "STRING_VALUE",
5757
* // FlowId: "STRING_VALUE",
5858
* // },
59+
* // ChatEntryPointParameters: { // ChatEntryPointParameters
60+
* // FlowId: "STRING_VALUE",
61+
* // },
5962
* // },
6063
* // InitializationData: "STRING_VALUE",
6164
* // Description: "STRING_VALUE",

clients/client-connect/src/commands/SearchRoutingProfilesCommand.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
55

66
import type { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
77
import { commonParams } from "../endpoint/EndpointParameters";
8-
import type { SearchRoutingProfilesResponse } from "../models/models_2";
9-
import type { SearchRoutingProfilesRequest } from "../models/models_3";
8+
import type { SearchRoutingProfilesRequest, SearchRoutingProfilesResponse } from "../models/models_3";
109
import { SearchRoutingProfiles$ } from "../schemas/schemas_0";
1110

1211
/**

clients/client-connect/src/commands/SearchTestCasesCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,15 @@ export interface SearchTestCasesCommandOutput extends SearchTestCasesResponse, _
9797
* // Name: "STRING_VALUE",
9898
* // Content: "STRING_VALUE",
9999
* // EntryPoint: { // TestCaseEntryPoint
100-
* // Type: "VOICE_CALL",
100+
* // Type: "VOICE_CALL" || "CHAT",
101101
* // VoiceCallEntryPointParameters: { // VoiceCallEntryPointParameters
102102
* // SourcePhoneNumber: "STRING_VALUE",
103103
* // DestinationPhoneNumber: "STRING_VALUE",
104104
* // FlowId: "STRING_VALUE",
105105
* // },
106+
* // ChatEntryPointParameters: { // ChatEntryPointParameters
107+
* // FlowId: "STRING_VALUE",
108+
* // },
106109
* // },
107110
* // InitializationData: "STRING_VALUE",
108111
* // Description: "STRING_VALUE",

clients/client-connect/src/commands/UpdateTestCaseCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,15 @@ export interface UpdateTestCaseCommandOutput extends UpdateTestCaseResponse, __M
4141
* TestCaseId: "STRING_VALUE", // required
4242
* Content: "STRING_VALUE",
4343
* EntryPoint: { // TestCaseEntryPoint
44-
* Type: "VOICE_CALL",
44+
* Type: "VOICE_CALL" || "CHAT",
4545
* VoiceCallEntryPointParameters: { // VoiceCallEntryPointParameters
4646
* SourcePhoneNumber: "STRING_VALUE",
4747
* DestinationPhoneNumber: "STRING_VALUE",
4848
* FlowId: "STRING_VALUE",
4949
* },
50+
* ChatEntryPointParameters: { // ChatEntryPointParameters
51+
* FlowId: "STRING_VALUE",
52+
* },
5053
* },
5154
* InitializationData: "STRING_VALUE",
5255
* Name: "STRING_VALUE",

clients/client-connect/src/models/enums.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,6 +1246,7 @@ export type PropertyValidationExceptionReason =
12461246
* @enum
12471247
*/
12481248
export const TestCaseEntryPointType = {
1249+
CHAT: "CHAT",
12491250
VOICE_CALL: "VOICE_CALL",
12501251
} as const;
12511252
/**

clients/client-connect/src/models/models_0.ts

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7076,6 +7076,18 @@ export interface PropertyValidationExceptionProperty {
70767076
Message: string | undefined;
70777077
}
70787078

7079+
/**
7080+
* <p>Parameters for initiating a chat test.</p>
7081+
* @public
7082+
*/
7083+
export interface ChatEntryPointParameters {
7084+
/**
7085+
* <p>The flow identifier for the test.</p>
7086+
* @public
7087+
*/
7088+
FlowId?: string | undefined;
7089+
}
7090+
70797091
/**
70807092
* <p>Parameters for initiating a voice call test.</p>
70817093
* @public
@@ -7116,6 +7128,12 @@ export interface TestCaseEntryPoint {
71167128
* @public
71177129
*/
71187130
VoiceCallEntryPointParameters?: VoiceCallEntryPointParameters | undefined;
7131+
7132+
/**
7133+
* <p>Parameters for chat entry point.</p>
7134+
* @public
7135+
*/
7136+
ChatEntryPointParameters?: ChatEntryPointParameters | undefined;
71197137
}
71207138

71217139
/**
@@ -8008,27 +8026,3 @@ export interface WorkspaceThemeImages {
80088026
*/
80098027
Logo?: ImagesLogo | undefined;
80108028
}
8011-
8012-
/**
8013-
* <p>Contains color configuration for canvas elements in a workspace theme.</p>
8014-
* @public
8015-
*/
8016-
export interface PaletteCanvas {
8017-
/**
8018-
* <p>The background color for container elements.</p>
8019-
* @public
8020-
*/
8021-
ContainerBackground?: string | undefined;
8022-
8023-
/**
8024-
* <p>The background color for page elements.</p>
8025-
* @public
8026-
*/
8027-
PageBackground?: string | undefined;
8028-
8029-
/**
8030-
* <p>The background color for active elements.</p>
8031-
* @public
8032-
*/
8033-
ActiveBackground?: string | undefined;
8034-
}

clients/client-connect/src/models/models_1.ts

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ import {
8282
type OutboundCallerConfig,
8383
type OutboundEmailConfig,
8484
type OverrideTimeSlice,
85-
type PaletteCanvas,
8685
type ParticipantCapabilities,
8786
type PredefinedAttributeValues,
8887
type QueueReference,
@@ -117,6 +116,30 @@ import {
117116
VoiceEnhancementConfig,
118117
} from "./models_0";
119118

119+
/**
120+
* <p>Contains color configuration for canvas elements in a workspace theme.</p>
121+
* @public
122+
*/
123+
export interface PaletteCanvas {
124+
/**
125+
* <p>The background color for container elements.</p>
126+
* @public
127+
*/
128+
ContainerBackground?: string | undefined;
129+
130+
/**
131+
* <p>The background color for page elements.</p>
132+
* @public
133+
*/
134+
PageBackground?: string | undefined;
135+
136+
/**
137+
* <p>The background color for active elements.</p>
138+
* @public
139+
*/
140+
ActiveBackground?: string | undefined;
141+
}
142+
120143
/**
121144
* <p>Contains color configuration for header elements in a workspace theme.</p>
122145
* @public
@@ -10350,27 +10373,3 @@ export interface GetTestCaseExecutionSummaryRequest {
1035010373
*/
1035110374
TestCaseExecutionId: string | undefined;
1035210375
}
10353-
10354-
/**
10355-
* <p>Contains summary statistics about a test case execution.</p>
10356-
* @public
10357-
*/
10358-
export interface ObservationSummary {
10359-
/**
10360-
* <p>The total number of observations in the test case.</p>
10361-
* @public
10362-
*/
10363-
TotalObservations?: number | undefined;
10364-
10365-
/**
10366-
* <p>The number of observations that passed during execution.</p>
10367-
* @public
10368-
*/
10369-
ObservationsPassed?: number | undefined;
10370-
10371-
/**
10372-
* <p>The number of observations that failed during execution.</p>
10373-
* @public
10374-
*/
10375-
ObservationsFailed?: number | undefined;
10376-
}

clients/client-connect/src/models/models_2.ts

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ import {
9393
import {
9494
type EvaluationContactParticipant,
9595
type EvaluationScore,
96-
type ObservationSummary,
9796
Attribute,
9897
ContactFlow,
9998
ContactFlowModule,
@@ -108,9 +107,32 @@ import {
108107
Prompt,
109108
Queue,
110109
QuickConnect,
111-
RoutingProfile,
112110
} from "./models_1";
113111

112+
/**
113+
* <p>Contains summary statistics about a test case execution.</p>
114+
* @public
115+
*/
116+
export interface ObservationSummary {
117+
/**
118+
* <p>The total number of observations in the test case.</p>
119+
* @public
120+
*/
121+
TotalObservations?: number | undefined;
122+
123+
/**
124+
* <p>The number of observations that passed during execution.</p>
125+
* @public
126+
*/
127+
ObservationsPassed?: number | undefined;
128+
129+
/**
130+
* <p>The number of observations that failed during execution.</p>
131+
* @public
132+
*/
133+
ObservationsFailed?: number | undefined;
134+
}
135+
114136
/**
115137
* @public
116138
*/
@@ -8615,26 +8637,3 @@ export interface RoutingProfileSearchFilter {
86158637
*/
86168638
TagFilter?: ControlPlaneTagFilter | undefined;
86178639
}
8618-
8619-
/**
8620-
* @public
8621-
*/
8622-
export interface SearchRoutingProfilesResponse {
8623-
/**
8624-
* <p>Information about the routing profiles.</p>
8625-
* @public
8626-
*/
8627-
RoutingProfiles?: RoutingProfile[] | undefined;
8628-
8629-
/**
8630-
* <p>If there are additional results, this is the token for the next set of results.</p>
8631-
* @public
8632-
*/
8633-
NextToken?: string | undefined;
8634-
8635-
/**
8636-
* <p>The total number of routing profiles which matched your search query.</p>
8637-
* @public
8638-
*/
8639-
ApproximateTotalCount?: number | undefined;
8640-
}

clients/client-connect/src/models/models_3.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ import {
132132
HierarchyGroup,
133133
NextContactEntry,
134134
RecordingInfo,
135+
RoutingProfile,
135136
TestCase,
136137
} from "./models_1";
137138
import type {
@@ -159,6 +160,29 @@ import type {
159160
TelephonyConfig,
160161
} from "./models_2";
161162

163+
/**
164+
* @public
165+
*/
166+
export interface SearchRoutingProfilesResponse {
167+
/**
168+
* <p>Information about the routing profiles.</p>
169+
* @public
170+
*/
171+
RoutingProfiles?: RoutingProfile[] | undefined;
172+
173+
/**
174+
* <p>If there are additional results, this is the token for the next set of results.</p>
175+
* @public
176+
*/
177+
NextToken?: string | undefined;
178+
179+
/**
180+
* <p>The total number of routing profiles which matched your search query.</p>
181+
* @public
182+
*/
183+
ApproximateTotalCount?: number | undefined;
184+
}
185+
162186
/**
163187
* <p>Filters to be applied to search results.</p>
164188
* @public

0 commit comments

Comments
 (0)