Show full special-order details and order codes in admin.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-10-12 23:44:28 +03:30
co-authored by Cursor
parent d63e3a83d5
commit 0e403c4915
4 changed files with 197 additions and 15 deletions
+25
View File
@@ -1,6 +1,7 @@
import { apiRequest } from './api'
export type SpecialOrderCategory = 'specialCake' | 'specialPastry'
export type SpecialOrderDeliveryType = 'pickup' | 'shipping'
export type SpecialOrderImage = {
id?: string
@@ -19,12 +20,36 @@ export type SpecialOrderUser = {
name: string
}
export type SpecialOrderBranch = {
id: string
name: string
district: string
address: string
}
export type SpecialOrder = {
id: string
number: number
code: string
userId: string
category: SpecialOrderCategory
name: string
description: string
neededDate: string | null
receiveTime: string
servings: number | null
cakeFlavor: string
filling: string
baloutSuggestedCombo: boolean
coating: string
designStyle: string
cakeText: string
decorations: string
deliveryType: SpecialOrderDeliveryType | null
deliveryTypeLabel: string | null
branchId: string | null
branchName: string
branch: SpecialOrderBranch | null
createdAt: string
updatedAt: string
images: SpecialOrderImage[]