Skip to content

Commit 329a39d

Browse files
author
awstools
committed
feat(client-connect): This release supports adding NotAttributeCondition and Range to the RoutingCriteria object.
1 parent a4d9117 commit 329a39d

File tree

8 files changed

+237
-69
lines changed

8 files changed

+237
-69
lines changed

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

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ export interface DescribeContactCommandOutput extends DescribeContactResponse, _
135135
* // Name: "STRING_VALUE",
136136
* // Value: "STRING_VALUE",
137137
* // ProficiencyLevel: Number("float"),
138+
* // Range: { // Range
139+
* // MinProficiencyLevel: Number("float"),
140+
* // MaxProficiencyLevel: Number("float"),
141+
* // },
138142
* // MatchCriteria: { // MatchCriteria
139143
* // AgentsCriteria: { // AgentsCriteria
140144
* // AgentIds: [ // AgentIds
@@ -150,6 +154,10 @@ export interface DescribeContactCommandOutput extends DescribeContactResponse, _
150154
* // Name: "STRING_VALUE",
151155
* // Value: "STRING_VALUE",
152156
* // ProficiencyLevel: Number("float"),
157+
* // Range: {
158+
* // MinProficiencyLevel: Number("float"),
159+
* // MaxProficiencyLevel: Number("float"),
160+
* // },
153161
* // MatchCriteria: {
154162
* // AgentsCriteria: {
155163
* // AgentIds: [
@@ -165,11 +173,45 @@ export interface DescribeContactCommandOutput extends DescribeContactResponse, _
165173
* // OrExpression: [
166174
* // "<Expression>",
167175
* // ],
176+
* // NotAttributeCondition: {
177+
* // Name: "STRING_VALUE",
178+
* // Value: "STRING_VALUE",
179+
* // ProficiencyLevel: Number("float"),
180+
* // Range: {
181+
* // MinProficiencyLevel: Number("float"),
182+
* // MaxProficiencyLevel: Number("float"),
183+
* // },
184+
* // MatchCriteria: {
185+
* // AgentsCriteria: {
186+
* // AgentIds: [
187+
* // "STRING_VALUE",
188+
* // ],
189+
* // },
190+
* // },
191+
* // ComparisonOperator: "STRING_VALUE",
192+
* // },
168193
* // },
169194
* // ],
170195
* // OrExpression: [
171196
* // "<Expression>",
172197
* // ],
198+
* // NotAttributeCondition: {
199+
* // Name: "STRING_VALUE",
200+
* // Value: "STRING_VALUE",
201+
* // ProficiencyLevel: Number("float"),
202+
* // Range: {
203+
* // MinProficiencyLevel: Number("float"),
204+
* // MaxProficiencyLevel: Number("float"),
205+
* // },
206+
* // MatchCriteria: {
207+
* // AgentsCriteria: {
208+
* // AgentIds: [
209+
* // "STRING_VALUE",
210+
* // ],
211+
* // },
212+
* // },
213+
* // ComparisonOperator: "STRING_VALUE",
214+
* // },
173215
* // },
174216
* // Status: "ACTIVE" || "INACTIVE" || "JOINED" || "EXPIRED",
175217
* // },

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

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ export interface UpdateContactRoutingDataCommandOutput extends UpdateContactRout
6464
* Name: "STRING_VALUE",
6565
* Value: "STRING_VALUE",
6666
* ProficiencyLevel: Number("float"),
67+
* Range: { // Range
68+
* MinProficiencyLevel: Number("float"),
69+
* MaxProficiencyLevel: Number("float"),
70+
* },
6771
* MatchCriteria: { // MatchCriteria
6872
* AgentsCriteria: { // AgentsCriteria
6973
* AgentIds: [ // AgentIds
@@ -79,6 +83,10 @@ export interface UpdateContactRoutingDataCommandOutput extends UpdateContactRout
7983
* Name: "STRING_VALUE",
8084
* Value: "STRING_VALUE",
8185
* ProficiencyLevel: Number("float"),
86+
* Range: {
87+
* MinProficiencyLevel: Number("float"),
88+
* MaxProficiencyLevel: Number("float"),
89+
* },
8290
* MatchCriteria: {
8391
* AgentsCriteria: {
8492
* AgentIds: [
@@ -94,11 +102,45 @@ export interface UpdateContactRoutingDataCommandOutput extends UpdateContactRout
94102
* OrExpression: [
95103
* "<Expression>",
96104
* ],
105+
* NotAttributeCondition: {
106+
* Name: "STRING_VALUE",
107+
* Value: "STRING_VALUE",
108+
* ProficiencyLevel: Number("float"),
109+
* Range: {
110+
* MinProficiencyLevel: Number("float"),
111+
* MaxProficiencyLevel: Number("float"),
112+
* },
113+
* MatchCriteria: {
114+
* AgentsCriteria: {
115+
* AgentIds: [
116+
* "STRING_VALUE",
117+
* ],
118+
* },
119+
* },
120+
* ComparisonOperator: "STRING_VALUE",
121+
* },
97122
* },
98123
* ],
99124
* OrExpression: [
100125
* "<Expression>",
101126
* ],
127+
* NotAttributeCondition: {
128+
* Name: "STRING_VALUE",
129+
* Value: "STRING_VALUE",
130+
* ProficiencyLevel: Number("float"),
131+
* Range: {
132+
* MinProficiencyLevel: Number("float"),
133+
* MaxProficiencyLevel: Number("float"),
134+
* },
135+
* MatchCriteria: {
136+
* AgentsCriteria: {
137+
* AgentIds: [
138+
* "STRING_VALUE",
139+
* ],
140+
* },
141+
* },
142+
* ComparisonOperator: "STRING_VALUE",
143+
* },
102144
* },
103145
* },
104146
* ],

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
88
import { commonParams } from "../endpoint/EndpointParameters";
9-
import { UpdateRuleRequest } from "../models/models_2";
9+
import { UpdateRuleRequest } from "../models/models_3";
1010
import { de_UpdateRuleCommand, se_UpdateRuleCommand } from "../protocols/Aws_restJson1";
1111

1212
/**

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

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,24 @@ export interface MatchCriteria {
607607
AgentsCriteria?: AgentsCriteria | undefined;
608608
}
609609

610+
/**
611+
* <p>An Object to define the minimum and maximum proficiency levels.</p>
612+
* @public
613+
*/
614+
export interface Range {
615+
/**
616+
* <p>The minimum proficiency level of the range.</p>
617+
* @public
618+
*/
619+
MinProficiencyLevel?: number | undefined;
620+
621+
/**
622+
* <p>The maximum proficiency level of the range.</p>
623+
* @public
624+
*/
625+
MaxProficiencyLevel?: number | undefined;
626+
}
627+
610628
/**
611629
* <p>An object to specify the predefined attribute condition.</p>
612630
* @public
@@ -630,6 +648,12 @@ export interface AttributeCondition {
630648
*/
631649
ProficiencyLevel?: number | undefined;
632650

651+
/**
652+
* <p>An Object to define the minimum and maximum proficiency levels.</p>
653+
* @public
654+
*/
655+
Range?: Range | undefined;
656+
633657
/**
634658
* <p>An object to define <code>AgentsCriteria</code>.</p>
635659
* @public
@@ -9821,25 +9845,6 @@ export const RealTimeContactAnalysisOutputType = {
98219845
export type RealTimeContactAnalysisOutputType =
98229846
(typeof RealTimeContactAnalysisOutputType)[keyof typeof RealTimeContactAnalysisOutputType];
98239847

9824-
/**
9825-
* @public
9826-
* @enum
9827-
*/
9828-
export const RealTimeContactAnalysisSegmentType = {
9829-
Attachments: "Attachments",
9830-
Categories: "Categories",
9831-
Event: "Event",
9832-
Issues: "Issues",
9833-
PostContactSummary: "PostContactSummary",
9834-
Transcript: "Transcript",
9835-
} as const;
9836-
9837-
/**
9838-
* @public
9839-
*/
9840-
export type RealTimeContactAnalysisSegmentType =
9841-
(typeof RealTimeContactAnalysisSegmentType)[keyof typeof RealTimeContactAnalysisSegmentType];
9842-
98439848
/**
98449849
* @internal
98459850
*/

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

Lines changed: 20 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import {
3232
Reference,
3333
RehydrationType,
3434
RoutingProfileQueueConfig,
35-
RuleAction,
3635
RulePublishStatus,
3736
StringComparisonType,
3837
StringCondition,
@@ -67,12 +66,30 @@ import {
6766
QueueStatus,
6867
QuickConnect,
6968
RealTimeContactAnalysisOutputType,
70-
RealTimeContactAnalysisSegmentType,
7169
RoutingProfile,
7270
SortOrder,
7371
TrafficDistributionGroupStatus,
7472
} from "./models_1";
7573

74+
/**
75+
* @public
76+
* @enum
77+
*/
78+
export const RealTimeContactAnalysisSegmentType = {
79+
Attachments: "Attachments",
80+
Categories: "Categories",
81+
Event: "Event",
82+
Issues: "Issues",
83+
PostContactSummary: "PostContactSummary",
84+
Transcript: "Transcript",
85+
} as const;
86+
87+
/**
88+
* @public
89+
*/
90+
export type RealTimeContactAnalysisSegmentType =
91+
(typeof RealTimeContactAnalysisSegmentType)[keyof typeof RealTimeContactAnalysisSegmentType];
92+
7693
/**
7794
* @public
7895
*/
@@ -4872,7 +4889,7 @@ export interface StartAttachedFileUploadResponse {
48724889
CreatedBy?: CreatedByInfo | undefined;
48734890

48744891
/**
4875-
* <p>Information to be used while uploading the attached file. </p>
4892+
* <p>The headers to be provided while uploading the file to the URL.</p>
48764893
* @public
48774894
*/
48784895
UploadUrlMetadata?: UploadUrlMetadata | undefined;
@@ -7646,50 +7663,6 @@ export interface UpdateRoutingProfileQueuesRequest {
76467663
QueueConfigs: RoutingProfileQueueConfig[] | undefined;
76477664
}
76487665

7649-
/**
7650-
* @public
7651-
*/
7652-
export interface UpdateRuleRequest {
7653-
/**
7654-
* <p>A unique identifier for the rule.</p>
7655-
* @public
7656-
*/
7657-
RuleId: string | undefined;
7658-
7659-
/**
7660-
* <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
7661-
* @public
7662-
*/
7663-
InstanceId: string | undefined;
7664-
7665-
/**
7666-
* <p>The name of the rule. You can change the name only if <code>TriggerEventSource</code> is one
7667-
* of the following values: <code>OnZendeskTicketCreate</code> |
7668-
* <code>OnZendeskTicketStatusUpdate</code> | <code>OnSalesforceCaseCreate</code>
7669-
* </p>
7670-
* @public
7671-
*/
7672-
Name: string | undefined;
7673-
7674-
/**
7675-
* <p>The conditions of the rule.</p>
7676-
* @public
7677-
*/
7678-
Function: string | undefined;
7679-
7680-
/**
7681-
* <p>A list of actions to be run when the rule is triggered.</p>
7682-
* @public
7683-
*/
7684-
Actions: RuleAction[] | undefined;
7685-
7686-
/**
7687-
* <p>The publish status of the rule.</p>
7688-
* @public
7689-
*/
7690-
PublishStatus: RulePublishStatus | undefined;
7691-
}
7692-
76937666
/**
76947667
* @internal
76957668
*/

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

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import {
1717
EvaluationFormScoringStrategy,
1818
InitiateAs,
1919
Reference,
20+
RuleAction,
21+
RulePublishStatus,
2022
StringCondition,
2123
TaskTemplateConstraints,
2224
TaskTemplateDefaults,
@@ -85,6 +87,50 @@ import {
8587
UserSearchFilter,
8688
} from "./models_2";
8789

90+
/**
91+
* @public
92+
*/
93+
export interface UpdateRuleRequest {
94+
/**
95+
* <p>A unique identifier for the rule.</p>
96+
* @public
97+
*/
98+
RuleId: string | undefined;
99+
100+
/**
101+
* <p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p>
102+
* @public
103+
*/
104+
InstanceId: string | undefined;
105+
106+
/**
107+
* <p>The name of the rule. You can change the name only if <code>TriggerEventSource</code> is one
108+
* of the following values: <code>OnZendeskTicketCreate</code> |
109+
* <code>OnZendeskTicketStatusUpdate</code> | <code>OnSalesforceCaseCreate</code>
110+
* </p>
111+
* @public
112+
*/
113+
Name: string | undefined;
114+
115+
/**
116+
* <p>The conditions of the rule.</p>
117+
* @public
118+
*/
119+
Function: string | undefined;
120+
121+
/**
122+
* <p>A list of actions to be run when the rule is triggered.</p>
123+
* @public
124+
*/
125+
Actions: RuleAction[] | undefined;
126+
127+
/**
128+
* <p>The publish status of the rule.</p>
129+
* @public
130+
*/
131+
PublishStatus: RulePublishStatus | undefined;
132+
}
133+
88134
/**
89135
* @public
90136
*/
@@ -1212,6 +1258,12 @@ export interface Expression {
12121258
* @public
12131259
*/
12141260
OrExpression?: Expression[] | undefined;
1261+
1262+
/**
1263+
* <p>An object to specify the predefined attribute condition.</p>
1264+
* @public
1265+
*/
1266+
NotAttributeCondition?: AttributeCondition | undefined;
12151267
}
12161268

12171269
/**

0 commit comments

Comments
 (0)