managarten/packages/feedback/src/api.ts
Till JS 1aeb987cb6 refactor(packages): consolidate 3 feedback packages into @manacore/feedback
Merged shared-feedback-types + shared-feedback-service + shared-feedback-ui
into a single @manacore/feedback package. Updated imports in all 21 apps.

Before: 3 packages (types, service, ui) with cross-dependencies
After:  1 package with direct imports, no circular refs

Note: ESLint warnings from pre-existing unused vars in chat/mukke
servers are unrelated to this change.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 16:27:11 +01:00

41 lines
789 B
TypeScript

/**
* API request/response types for feedback
*/
import type { Feedback, FeedbackCategory, FeedbackStatus } from './feedback';
export interface CreateFeedbackInput {
title?: string;
feedbackText: string;
category?: FeedbackCategory;
deviceInfo?: Record<string, unknown>;
}
export interface FeedbackQueryParams {
appId?: string;
status?: FeedbackStatus;
category?: FeedbackCategory;
sort?: 'votes' | 'recent';
limit?: number;
offset?: number;
}
export interface FeedbackResponse {
success: boolean;
feedback?: Feedback;
error?: string;
}
export interface FeedbackListResponse {
success: boolean;
items: Feedback[];
total: number;
error?: string;
}
export interface VoteResponse {
success: boolean;
newVoteCount: number;
userHasVoted: boolean;
error?: string;
}