@inworld/web-core
Version:
23 lines (22 loc) • 871 B
TypeScript
import { DislikeType, Feedback } from '../../entities/feedback.entity.js';
import { InworldPacket } from '../../entities/packets/inworld_packet.entity.js';
import { ConnectionService } from '../connection.service.js';
export interface BaseFeedbackProps {
interactionId: string;
correlationId?: string;
}
export interface FeedbackLikeProps extends BaseFeedbackProps {
}
export interface FeedbackDislikeProps extends BaseFeedbackProps {
comment?: string;
types?: DislikeType[];
}
export declare class FeedbackService<InworldPacketT extends InworldPacket = InworldPacket> {
private connection;
private service;
constructor(connection: ConnectionService<InworldPacketT>);
like(props: FeedbackLikeProps): Promise<Feedback>;
dislike(props: FeedbackDislikeProps): Promise<Feedback>;
undo(name: string): Promise<void>;
private send;
}