fix some bugs

This commit is contained in:
2026-07-21 22:26:46 +03:30
parent 7c2248bb00
commit 2f64c6cce7
24 changed files with 707 additions and 16 deletions
+23
View File
@@ -0,0 +1,23 @@
export interface ConditionalOrder {
id: number
customer_id: number
product_id: number
direction: 1 | 2
price_condition: 'gte' | 'lte'
trigger_price: number
amount?: number | null
number?: number | null
expires_at?: string | null
description?: string | null
is_active: boolean
status: 'pending' | 'executed' | 'failed' | 'expired'
fail_reason?: string | null
order_id?: number | null
fee_charged?: number
triggered_price?: number | null
executed_at?: string | null
created_at?: string
updated_at?: string
customer?: { id: number; name?: string; mobile?: string }
product?: { id: number; title?: string }
}
+2
View File
@@ -34,6 +34,8 @@ export interface Customer {
profit_amount: number
add_user_limit: number
trade_active: boolean
conditional_order_active?: boolean
conditional_order_limit?: number | null
type?: number
type_str: string
gold: number
+3
View File
@@ -17,6 +17,9 @@ export interface Transaction {
metal_gold?: Record<string, number>
transaction_metal_id?: number
transaction_metal_label?: string
product_id?: number | null
product_title?: string | null
product?: { id?: number; title?: string | null; group_type?: string | null; metal_id?: number | null } | null
order_id: number
transaction_type: string
type: number