Files
digicraft-fe/types.ts
Fahri Can Seçer 6e3bee17ef
Some checks failed
Deploy Frontend / deploy (push) Has been cancelled
main
2026-02-05 01:34:13 +03:00

42 lines
1.1 KiB
TypeScript

export type ProductType = "Wall Art" | "Bookmark" | "Sticker" | "Planner" | "Phone Wallpaper" | "Social Media Kit" | "Label";
export type CreativityLevel = "Literal" | "Balanced" | "Artistic" | "Avant-Garde" | "Conservative" | "Wild";
export interface ProductPackage {
imagePrompt: string;
seoTitle: string;
keywords: string[];
description: string;
suggestedPrice?: string;
printingGuide: string;
}
export type AspectRatio = "1:1" | "3:4" | "4:3" | "9:16" | "16:9" | "4:5" | "5:4" | "2:3" | "3:2" | "5:7" | "21:9" | "32:9" | "2.35:1" | "9:21";
export type ImageSize = "SD" | "HD" | "4K" | "1K" | "2K";
export interface ProductionAsset {
ratio: string;
label: string;
description: string;
prompt?: string;
quality?: 'DRAFT' | 'MASTER' | 'UPSCALED';
meta?: string;
createdAt: string;
url: string | null;
}
export interface User {
id: string;
email: string;
role: 'USER' | 'ADMIN';
apiKey?: string;
skuSettings?: string; // JSON String
plan?: string;
credits?: number;
etsyShopName?: string;
etsyShopLink?: string;
etsyShopLogo?: string;
}