cleaned up

This commit is contained in:
sdarbinyan
2026-06-21 23:42:39 +04:00
parent 3b802b7c7b
commit 4fb918f5e4
25 changed files with 415 additions and 550 deletions

View File

@@ -12,14 +12,4 @@ export interface WebSessionStart {
url: string;
}
export interface TelegramAuthData {
id: number;
first_name: string;
last_name?: string;
username?: string;
photo_url?: string;
auth_date: number;
hash: string;
}
export type AuthStatus = 'unknown' | 'checking' | 'authenticated' | 'expired' | 'unauthenticated';

View File

@@ -33,6 +33,6 @@ export interface Subcategory {
subcategories?: Subcategory[];
}
export interface CategoryTranslation {
interface CategoryTranslation {
name?: string;
}

View File

@@ -1,4 +1,4 @@
export interface Photo {
interface Photo {
photo?: string;
video?: string;
url: string;
@@ -10,7 +10,7 @@ export interface DescriptionField {
value: string;
}
export interface Comment {
interface Comment {
id?: string;
text: string;
author?: string;
@@ -18,13 +18,13 @@ export interface Comment {
createdAt?: string;
}
export interface ItemTranslation {
interface ItemTranslation {
name?: string;
simpleDescription?: string;
description?: DescriptionField[];
}
export interface Review {
interface Review {
rating?: number;
content?: string;
userID?: string;
@@ -32,10 +32,7 @@ export interface Review {
timestamp?: string;
}
/** @deprecated Use {@link Review} instead */
export type Callback = Review;
export interface Question {
interface Question {
question: string;
answer: string;
upvotes: number;
@@ -51,13 +48,13 @@ export interface ItemName {
}
/** Localized description entry from backend */
export interface ItemDescription {
interface ItemDescription {
language: string;
value: string;
}
/** Key-value attribute pair */
export interface ItemAttribute {
interface ItemAttribute {
key: string;
value: string;
}
@@ -68,7 +65,7 @@ export interface DeliveryOption {
deliveryTime: string;
}
export type DeliveryMode = 'selectable' | 'digital';
type DeliveryMode = 'selectable' | 'digital';
/** Item variant detail (price, size, colour per variant) */
export interface ItemDetail {