Skip to content

Commit 8ea9f3c

Browse files
author
awstools
committed
feat(client-wisdom): This release updates the GetRecommendations API to include a trigger event list for classifying and grouping recommendations.
1 parent f296ccc commit 8ea9f3c

File tree

7 files changed

+27
-500
lines changed

7 files changed

+27
-500
lines changed

clients/client-wisdom/src/Wisdom.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ import {
103103
NotifyRecommendationsReceivedCommandInput,
104104
NotifyRecommendationsReceivedCommandOutput,
105105
} from "./commands/NotifyRecommendationsReceivedCommand";
106-
import { PutFeedbackCommand, PutFeedbackCommandInput, PutFeedbackCommandOutput } from "./commands/PutFeedbackCommand";
107106
import {
108107
QueryAssistantCommand,
109108
QueryAssistantCommandInput,
@@ -880,36 +879,6 @@ export class Wisdom extends WisdomClient {
880879
}
881880
}
882881

883-
/**
884-
* <p>Submits feedback to Wisdom. The feedback is used to improve future recommendations from
885-
* <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html">GetRecommendations</a> or
886-
* results from <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_QueryAssistant.html">QueryAssistant</a>.
887-
* Feedback can be resubmitted up to 6 hours after submission.
888-
* </p>
889-
*/
890-
public putFeedback(args: PutFeedbackCommandInput, options?: __HttpHandlerOptions): Promise<PutFeedbackCommandOutput>;
891-
public putFeedback(args: PutFeedbackCommandInput, cb: (err: any, data?: PutFeedbackCommandOutput) => void): void;
892-
public putFeedback(
893-
args: PutFeedbackCommandInput,
894-
options: __HttpHandlerOptions,
895-
cb: (err: any, data?: PutFeedbackCommandOutput) => void
896-
): void;
897-
public putFeedback(
898-
args: PutFeedbackCommandInput,
899-
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutFeedbackCommandOutput) => void),
900-
cb?: (err: any, data?: PutFeedbackCommandOutput) => void
901-
): Promise<PutFeedbackCommandOutput> | void {
902-
const command = new PutFeedbackCommand(args);
903-
if (typeof optionsOrCb === "function") {
904-
this.send(command, optionsOrCb);
905-
} else if (typeof cb === "function") {
906-
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
907-
this.send(command, optionsOrCb || {}, cb);
908-
} else {
909-
return this.send(command, optionsOrCb);
910-
}
911-
}
912-
913882
/**
914883
* <p>Performs a manual search against the specified assistant. To retrieve recommendations for
915884
* an assistant, use <a href="https://docs.aws.amazon.com/wisdom/latest/APIReference/API_GetRecommendations.html">GetRecommendations</a>.

clients/client-wisdom/src/WisdomClient.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ import {
9999
NotifyRecommendationsReceivedCommandInput,
100100
NotifyRecommendationsReceivedCommandOutput,
101101
} from "./commands/NotifyRecommendationsReceivedCommand";
102-
import { PutFeedbackCommandInput, PutFeedbackCommandOutput } from "./commands/PutFeedbackCommand";
103102
import { QueryAssistantCommandInput, QueryAssistantCommandOutput } from "./commands/QueryAssistantCommand";
104103
import {
105104
RemoveKnowledgeBaseTemplateUriCommandInput,
@@ -140,7 +139,6 @@ export type ServiceInputTypes =
140139
| ListKnowledgeBasesCommandInput
141140
| ListTagsForResourceCommandInput
142141
| NotifyRecommendationsReceivedCommandInput
143-
| PutFeedbackCommandInput
144142
| QueryAssistantCommandInput
145143
| RemoveKnowledgeBaseTemplateUriCommandInput
146144
| SearchContentCommandInput
@@ -174,7 +172,6 @@ export type ServiceOutputTypes =
174172
| ListKnowledgeBasesCommandOutput
175173
| ListTagsForResourceCommandOutput
176174
| NotifyRecommendationsReceivedCommandOutput
177-
| PutFeedbackCommandOutput
178175
| QueryAssistantCommandOutput
179176
| RemoveKnowledgeBaseTemplateUriCommandOutput
180177
| SearchContentCommandOutput

clients/client-wisdom/src/commands/PutFeedbackCommand.ts

Lines changed: 0 additions & 105 deletions
This file was deleted.

clients/client-wisdom/src/commands/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export * from "./ListContentsCommand";
2121
export * from "./ListKnowledgeBasesCommand";
2222
export * from "./ListTagsForResourceCommand";
2323
export * from "./NotifyRecommendationsReceivedCommand";
24-
export * from "./PutFeedbackCommand";
2524
export * from "./QueryAssistantCommand";
2625
export * from "./RemoveKnowledgeBaseTemplateUriCommand";
2726
export * from "./SearchContentCommand";

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

Lines changed: 0 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -890,75 +890,6 @@ export interface NotifyRecommendationsReceivedResponse {
890890
errors?: NotifyRecommendationsReceivedError[];
891891
}
892892

893-
export enum Relevance {
894-
HELPFUL = "HELPFUL",
895-
NOT_HELPFUL = "NOT_HELPFUL",
896-
}
897-
898-
/**
899-
* <p>The feedback to submit to Wisdom.</p>
900-
*/
901-
export interface FeedbackData {
902-
/**
903-
* <p>The relevance of the target this feedback is for.</p>
904-
*/
905-
relevance: Relevance | string | undefined;
906-
}
907-
908-
export enum TargetType {
909-
RECOMMENDATION = "RECOMMENDATION",
910-
RESULT = "RESULT",
911-
}
912-
913-
export interface PutFeedbackRequest {
914-
/**
915-
* <p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
916-
*/
917-
assistantId: string | undefined;
918-
919-
/**
920-
* <p>The identifier of a recommendation. or The identifier of the result data.</p>
921-
*/
922-
targetId: string | undefined;
923-
924-
/**
925-
* <p>The type of the targetId for which The feedback. is targeted.</p>
926-
*/
927-
targetType: TargetType | string | undefined;
928-
929-
/**
930-
* <p>The feedback.</p>
931-
*/
932-
feedback: FeedbackData | undefined;
933-
}
934-
935-
export interface PutFeedbackResponse {
936-
/**
937-
* <p>The identifier of the Wisdom assistant.</p>
938-
*/
939-
assistantId: string | undefined;
940-
941-
/**
942-
* <p>The Amazon Resource Name (ARN) of the Wisdom assistant.</p>
943-
*/
944-
assistantArn: string | undefined;
945-
946-
/**
947-
* <p>The identifier of a recommendation. or The identifier of the result data.</p>
948-
*/
949-
targetId: string | undefined;
950-
951-
/**
952-
* <p>The type of the targetId for which The feedback. is targeted.</p>
953-
*/
954-
targetType: TargetType | string | undefined;
955-
956-
/**
957-
* <p>The feedback.</p>
958-
*/
959-
feedback: FeedbackData | undefined;
960-
}
961-
962893
export interface QueryAssistantRequest {
963894
/**
964895
* <p>The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.</p>
@@ -2310,27 +2241,6 @@ export const NotifyRecommendationsReceivedResponseFilterSensitiveLog = (
23102241
...obj,
23112242
});
23122243

2313-
/**
2314-
* @internal
2315-
*/
2316-
export const FeedbackDataFilterSensitiveLog = (obj: FeedbackData): any => ({
2317-
...obj,
2318-
});
2319-
2320-
/**
2321-
* @internal
2322-
*/
2323-
export const PutFeedbackRequestFilterSensitiveLog = (obj: PutFeedbackRequest): any => ({
2324-
...obj,
2325-
});
2326-
2327-
/**
2328-
* @internal
2329-
*/
2330-
export const PutFeedbackResponseFilterSensitiveLog = (obj: PutFeedbackResponse): any => ({
2331-
...obj,
2332-
});
2333-
23342244
/**
23352245
* @internal
23362246
*/

0 commit comments

Comments
 (0)