Show full special-order details and order codes in admin.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
d63e3a83d5
commit
0e403c4915
@@ -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[]
|
||||
|
||||
Reference in New Issue
Block a user