import { CustomData, ListArgs } from "./openchannel"; import { User } from "./user"; export interface Review { reviewId: string; headline: string; description: string; rating: number; status: ReviewStatus; reportDate: number; appId: string; appName: string; userId: string; type?: string; customData?: CustomData; user?: User; } export interface ReviewStatus { value: ReviewStatusValue; reason?: string; } export enum ReviewStatusValue { PENDING = "pending", SPAM = "spam", FLAGGED = "flagged", APPROVED = "approved" } export interface CreateReviewOptions { appId: string; userId: string; headline: string; rating: number; description: string; type?: string; mustOwnApp?: boolean; autoApprove?: boolean; customData?: CustomData; } export interface UpdateReviewOptions { reviewId: string; userId: string; headline: string; rating: number; description: string; type?: string; customData?: CustomData; } export interface GetReviewOptions { reviewId: string; } export interface GetReviewByAppIdUserIdOptions { appId: string; userId: string; } export interface ListReviewsOptions extends ListArgs { userId?: string; }