29 lines
436 B
TypeScript
29 lines
436 B
TypeScript
export type CategoryId =
|
|
| "upper"
|
|
| "barrel"
|
|
| "handguard"
|
|
| "chargingHandle"
|
|
| "buffer"
|
|
| "lowerParts"
|
|
| "sights"
|
|
| "lower"
|
|
| "optic"
|
|
| "stock";
|
|
|
|
export interface Category {
|
|
id: CategoryId;
|
|
name: string;
|
|
description?: string;
|
|
}
|
|
|
|
export interface Part {
|
|
id: string;
|
|
name: string;
|
|
brand: string;
|
|
categoryId: CategoryId;
|
|
price: number;
|
|
affiliateUrl: string;
|
|
imageUrl?: string;
|
|
notes?: string;
|
|
}
|