Skip to content

Commit

Permalink
feat(client-connect): This release supports adding NotAttributeCondit…
Browse files Browse the repository at this point in the history
…ion and Range to the RoutingCriteria object.
  • Loading branch information
awstools committed Dec 20, 2024
1 parent a4d9117 commit 329a39d
Show file tree
Hide file tree
Showing 8 changed files with 237 additions and 69 deletions.
42 changes: 42 additions & 0 deletions clients/client-connect/src/commands/DescribeContactCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ export interface DescribeContactCommandOutput extends DescribeContactResponse, _
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // ProficiencyLevel: Number("float"),
* // Range: { // Range
* // MinProficiencyLevel: Number("float"),
* // MaxProficiencyLevel: Number("float"),
* // },
* // MatchCriteria: { // MatchCriteria
* // AgentsCriteria: { // AgentsCriteria
* // AgentIds: [ // AgentIds
Expand All @@ -150,6 +154,10 @@ export interface DescribeContactCommandOutput extends DescribeContactResponse, _
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // ProficiencyLevel: Number("float"),
* // Range: {
* // MinProficiencyLevel: Number("float"),
* // MaxProficiencyLevel: Number("float"),
* // },
* // MatchCriteria: {
* // AgentsCriteria: {
* // AgentIds: [
Expand All @@ -165,11 +173,45 @@ export interface DescribeContactCommandOutput extends DescribeContactResponse, _
* // OrExpression: [
* // "<Expression>",
* // ],
* // NotAttributeCondition: {
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // ProficiencyLevel: Number("float"),
* // Range: {
* // MinProficiencyLevel: Number("float"),
* // MaxProficiencyLevel: Number("float"),
* // },
* // MatchCriteria: {
* // AgentsCriteria: {
* // AgentIds: [
* // "STRING_VALUE",
* // ],
* // },
* // },
* // ComparisonOperator: "STRING_VALUE",
* // },
* // },
* // ],
* // OrExpression: [
* // "<Expression>",
* // ],
* // NotAttributeCondition: {
* // Name: "STRING_VALUE",
* // Value: "STRING_VALUE",
* // ProficiencyLevel: Number("float"),
* // Range: {
* // MinProficiencyLevel: Number("float"),
* // MaxProficiencyLevel: Number("float"),
* // },
* // MatchCriteria: {
* // AgentsCriteria: {
* // AgentIds: [
* // "STRING_VALUE",
* // ],
* // },
* // },
* // ComparisonOperator: "STRING_VALUE",
* // },
* // },
* // Status: "ACTIVE" || "INACTIVE" || "JOINED" || "EXPIRED",
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ export interface UpdateContactRoutingDataCommandOutput extends UpdateContactRout
* Name: "STRING_VALUE",
* Value: "STRING_VALUE",
* ProficiencyLevel: Number("float"),
* Range: { // Range
* MinProficiencyLevel: Number("float"),
* MaxProficiencyLevel: Number("float"),
* },
* MatchCriteria: { // MatchCriteria
* AgentsCriteria: { // AgentsCriteria
* AgentIds: [ // AgentIds
Expand All @@ -79,6 +83,10 @@ export interface UpdateContactRoutingDataCommandOutput extends UpdateContactRout
* Name: "STRING_VALUE",
* Value: "STRING_VALUE",
* ProficiencyLevel: Number("float"),
* Range: {
* MinProficiencyLevel: Number("float"),
* MaxProficiencyLevel: Number("float"),
* },
* MatchCriteria: {
* AgentsCriteria: {
* AgentIds: [
Expand All @@ -94,11 +102,45 @@ export interface UpdateContactRoutingDataCommandOutput extends UpdateContactRout
* OrExpression: [
* "<Expression>",
* ],
* NotAttributeCondition: {
* Name: "STRING_VALUE",
* Value: "STRING_VALUE",
* ProficiencyLevel: Number("float"),
* Range: {
* MinProficiencyLevel: Number("float"),
* MaxProficiencyLevel: Number("float"),
* },
* MatchCriteria: {
* AgentsCriteria: {
* AgentIds: [
* "STRING_VALUE",
* ],
* },
* },
* ComparisonOperator: "STRING_VALUE",
* },
* },
* ],
* OrExpression: [
* "<Expression>",
* ],
* NotAttributeCondition: {
* Name: "STRING_VALUE",
* Value: "STRING_VALUE",
* ProficiencyLevel: Number("float"),
* Range: {
* MinProficiencyLevel: Number("float"),
* MaxProficiencyLevel: Number("float"),
* },
* MatchCriteria: {
* AgentsCriteria: {
* AgentIds: [
* "STRING_VALUE",
* ],
* },
* },
* ComparisonOperator: "STRING_VALUE",
* },
* },
* },
* ],
Expand Down
2 changes: 1 addition & 1 deletion clients/client-connect/src/commands/UpdateRuleCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { ConnectClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { UpdateRuleRequest } from "../models/models_2";
import { UpdateRuleRequest } from "../models/models_3";
import { de_UpdateRuleCommand, se_UpdateRuleCommand } from "../protocols/Aws_restJson1";

/**
Expand Down
43 changes: 24 additions & 19 deletions clients/client-connect/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,24 @@ export interface MatchCriteria {
AgentsCriteria?: AgentsCriteria | undefined;
}

/**
* <p>An Object to define the minimum and maximum proficiency levels.</p>
* @public
*/
export interface Range {
/**
* <p>The minimum proficiency level of the range.</p>
* @public
*/
MinProficiencyLevel?: number | undefined;

/**
* <p>The maximum proficiency level of the range.</p>
* @public
*/
MaxProficiencyLevel?: number | undefined;
}

/**
* <p>An object to specify the predefined attribute condition.</p>
* @public
Expand All @@ -630,6 +648,12 @@ export interface AttributeCondition {
*/
ProficiencyLevel?: number | undefined;

/**
* <p>An Object to define the minimum and maximum proficiency levels.</p>
* @public
*/
Range?: Range | undefined;

/**
* <p>An object to define <code>AgentsCriteria</code>.</p>
* @public
Expand Down Expand Up @@ -9821,25 +9845,6 @@ export const RealTimeContactAnalysisOutputType = {
export type RealTimeContactAnalysisOutputType =
(typeof RealTimeContactAnalysisOutputType)[keyof typeof RealTimeContactAnalysisOutputType];

/**
* @public
* @enum
*/
export const RealTimeContactAnalysisSegmentType = {
Attachments: "Attachments",
Categories: "Categories",
Event: "Event",
Issues: "Issues",
PostContactSummary: "PostContactSummary",
Transcript: "Transcript",
} as const;

/**
* @public
*/
export type RealTimeContactAnalysisSegmentType =
(typeof RealTimeContactAnalysisSegmentType)[keyof typeof RealTimeContactAnalysisSegmentType];

/**
* @internal
*/
Expand Down
67 changes: 20 additions & 47 deletions clients/client-connect/src/models/models_2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import {
Reference,
RehydrationType,
RoutingProfileQueueConfig,
RuleAction,
RulePublishStatus,
StringComparisonType,
StringCondition,
Expand Down Expand Up @@ -67,12 +66,30 @@ import {
QueueStatus,
QuickConnect,
RealTimeContactAnalysisOutputType,
RealTimeContactAnalysisSegmentType,
RoutingProfile,
SortOrder,
TrafficDistributionGroupStatus,
} from "./models_1";

/**
* @public
* @enum
*/
export const RealTimeContactAnalysisSegmentType = {
Attachments: "Attachments",
Categories: "Categories",
Event: "Event",
Issues: "Issues",
PostContactSummary: "PostContactSummary",
Transcript: "Transcript",
} as const;

/**
* @public
*/
export type RealTimeContactAnalysisSegmentType =
(typeof RealTimeContactAnalysisSegmentType)[keyof typeof RealTimeContactAnalysisSegmentType];

/**
* @public
*/
Expand Down Expand Up @@ -4872,7 +4889,7 @@ export interface StartAttachedFileUploadResponse {
CreatedBy?: CreatedByInfo | undefined;

/**
* <p>Information to be used while uploading the attached file. </p>
* <p>The headers to be provided while uploading the file to the URL.</p>
* @public
*/
UploadUrlMetadata?: UploadUrlMetadata | undefined;
Expand Down Expand Up @@ -7646,50 +7663,6 @@ export interface UpdateRoutingProfileQueuesRequest {
QueueConfigs: RoutingProfileQueueConfig[] | undefined;
}

/**
* @public
*/
export interface UpdateRuleRequest {
/**
* <p>A unique identifier for the rule.</p>
* @public
*/
RuleId: string | undefined;

/**
* <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>
* @public
*/
InstanceId: string | undefined;

/**
* <p>The name of the rule. You can change the name only if <code>TriggerEventSource</code> is one
* of the following values: <code>OnZendeskTicketCreate</code> |
* <code>OnZendeskTicketStatusUpdate</code> | <code>OnSalesforceCaseCreate</code>
* </p>
* @public
*/
Name: string | undefined;

/**
* <p>The conditions of the rule.</p>
* @public
*/
Function: string | undefined;

/**
* <p>A list of actions to be run when the rule is triggered.</p>
* @public
*/
Actions: RuleAction[] | undefined;

/**
* <p>The publish status of the rule.</p>
* @public
*/
PublishStatus: RulePublishStatus | undefined;
}

/**
* @internal
*/
Expand Down
52 changes: 52 additions & 0 deletions clients/client-connect/src/models/models_3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import {
EvaluationFormScoringStrategy,
InitiateAs,
Reference,
RuleAction,
RulePublishStatus,
StringCondition,
TaskTemplateConstraints,
TaskTemplateDefaults,
Expand Down Expand Up @@ -85,6 +87,50 @@ import {
UserSearchFilter,
} from "./models_2";

/**
* @public
*/
export interface UpdateRuleRequest {
/**
* <p>A unique identifier for the rule.</p>
* @public
*/
RuleId: string | undefined;

/**
* <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>
* @public
*/
InstanceId: string | undefined;

/**
* <p>The name of the rule. You can change the name only if <code>TriggerEventSource</code> is one
* of the following values: <code>OnZendeskTicketCreate</code> |
* <code>OnZendeskTicketStatusUpdate</code> | <code>OnSalesforceCaseCreate</code>
* </p>
* @public
*/
Name: string | undefined;

/**
* <p>The conditions of the rule.</p>
* @public
*/
Function: string | undefined;

/**
* <p>A list of actions to be run when the rule is triggered.</p>
* @public
*/
Actions: RuleAction[] | undefined;

/**
* <p>The publish status of the rule.</p>
* @public
*/
PublishStatus: RulePublishStatus | undefined;
}

/**
* @public
*/
Expand Down Expand Up @@ -1212,6 +1258,12 @@ export interface Expression {
* @public
*/
OrExpression?: Expression[] | undefined;

/**
* <p>An object to specify the predefined attribute condition.</p>
* @public
*/
NotAttributeCondition?: AttributeCondition | undefined;
}

/**
Expand Down
Loading

0 comments on commit 329a39d

Please sign in to comment.