export type HomeServiceCatalogType = {
	id: string
	name: string
	category: string
	price: number
	durationText: string
	summary: string
	tags: Array<string>
	suitableFor: string
}

export type HomeServiceTimelineItemType = {
	id: string
	title: string
	time: string
	description: string
}

export type HomeServiceSelectedAddressType = {
	addressId: string
	userId: string
	isDefault: boolean
	contactName: string
	contactPhone: string
	phone?: string
	addressName: string
	locationName?: string
	addressDetail: string
	locationAddress?: string
	houseNumber: string
	doorNo?: string
	fullAddress: string
	latitude: number
	longitude: number
	remark: string
	coordinateType: string
	createdAt: number
	updatedAt: number
}

export type HomeServiceCaseType = {
	id: string
	caseNo: string
	status: string
	statusText: string
	statusTone: string
	serviceName: string
	serviceTime: string
	applicantName: string
	elderName: string
	age: number
	phone: string
	address: string
	summary: string
	currentStep: number
	totalSteps: number
	staffName: string
	staffPhone: string
	amount: number
	checkinTime: string
	checkinAddress: string
	serviceStartedAt: string
	serviceFinishedAt: string
	executionSummary: string
	evidenceCount: number
	serviceAddressSnapshot?: HomeServiceSelectedAddressType | null
	timeline: Array<HomeServiceTimelineItemType>
}

export type HomeServiceTaskType = {
	id: string
	caseId: string
	caseNo: string
	status: string
	statusText: string
	statusTone: string
	serviceName: string
	elderName: string
	address: string
	appointmentTime: string
	checkInStatus: string
	recordSummary: string
	staffName: string
	staffPhone: string
	actionText: string
	timeline: Array<HomeServiceTimelineItemType>
}

export type HomeServiceApplicationDraftType = {
	serviceId: string
	serviceName: string
	applicantName: string
	elderName: string
	age: number
	phone: string
	address: string
	preferredTime: string
	demandSummary: string
	serviceAddressSnapshot?: HomeServiceSelectedAddressType | null
}

export type HomeServiceAdminApplicationType = {
	id: string
	caseId: string
	caseNo: string
	status: string
	statusText: string
	statusTone: string
	elderName: string
	serviceName: string
	preferredTime: string
	assessmentResult: string
	dispatcherName: string
	staffName: string
}

export type HomeServiceOverviewCardType = {
	id: string
	label: string
	value: string
	tone: string
}

export type HomeServiceAssessmentType = {
	caseId: string
	caseNo: string
	elderName: string
	serviceName: string
	riskLevel: string
	careLevel: string
	visitTime: string
	assessmentSummary: string
	requirementTags: Array<string>
}

export type HomeServicePlanType = {
	caseId: string
	caseNo: string
	elderName: string
	serviceName: string
	planTitle: string
	serviceFrequency: string
	serviceCycle: string
	executorAdvice: string
	billingSummary: string
	planSummary: string
}

export type HomeServiceAcceptanceType = {
	caseId: string
	caseNo: string
	elderName: string
	serviceName: string
	acceptanceStatus: string
	acceptanceStatusText: string
	rating: number
	feedback: string
	tags: Array<string>
}

export type HomeServiceRectificationType = {
	caseId: string
	caseNo: string
	elderName: string
	serviceName: string
	issueSummary: string
	deadline: string
	ownerName: string
	status: string
	statusText: string
}

export type HomeServiceSettlementType = {
	caseId: string
	caseNo: string
	elderName: string
	serviceName: string
	billingPeriod: string
	totalAmount: string
	insuranceAmount: string
	selfPayAmount: string
	archiveStatus: string
	archiveStatusText: string
}