新增房表生成前端页面
This commit is contained in:
@@ -8,6 +8,7 @@ export type AuthPermissionCode =
|
||||
| 'RESERVATION_OPERA_SIM_EXECUTE'
|
||||
| 'RESERVATION_AUDIT_READ'
|
||||
| 'RESERVATION_INVOICE_GENERATE'
|
||||
| 'RESERVATION_ROOMING_LIST_GENERATE'
|
||||
| 'HOTEL_SWITCH'
|
||||
| 'SYSTEM_AUTH_READ'
|
||||
| 'SYSTEM_ADMIN_CONSOLE_ACCESS'
|
||||
|
||||
39
client/src/types/roomingList.ts
Normal file
39
client/src/types/roomingList.ts
Normal file
@@ -0,0 +1,39 @@
|
||||
export type RoomingListGenerationErrorCode =
|
||||
| 'ROOMING_LIST_VALIDATION_FAILED'
|
||||
| 'ROOMING_LIST_SOURCE_FILE_INVALID'
|
||||
| 'FRONTEND_PERMISSION_DENIED'
|
||||
| 'HOTEL_ACCESS_DENIED'
|
||||
| 'AUTH_TOKEN_REQUIRED'
|
||||
| 'AUTH_SESSION_INVALID'
|
||||
| 'UNKNOWN'
|
||||
| (string & {})
|
||||
|
||||
export interface RoomingListGenerationInput {
|
||||
file: File
|
||||
hotelId?: string | null
|
||||
peoplePerRoom: number
|
||||
arrival: string
|
||||
departure: string
|
||||
roomType: string
|
||||
title?: string | null
|
||||
rateCode?: string | null
|
||||
adults?: number | null
|
||||
children?: number | null
|
||||
paymentType?: string | null
|
||||
vip?: string | null
|
||||
nationality?: string | null
|
||||
email?: string | null
|
||||
idType?: string | null
|
||||
idNumber?: string | null
|
||||
}
|
||||
|
||||
export interface RoomingListGenerationDownload {
|
||||
blob: Blob
|
||||
fileName: string
|
||||
}
|
||||
|
||||
export interface RoomingListErrorResponse {
|
||||
error_code?: RoomingListGenerationErrorCode
|
||||
message?: string
|
||||
details?: unknown
|
||||
}
|
||||
Reference in New Issue
Block a user