Initial commit
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
import type { AssetType } from './enums'
|
||||
|
||||
export interface AreaRange {
|
||||
min: number
|
||||
max: number
|
||||
}
|
||||
|
||||
export interface BudgetRange {
|
||||
minPerSqm?: number
|
||||
maxPerSqm: number
|
||||
maxMonthlyTotal?: number
|
||||
currency: string
|
||||
}
|
||||
|
||||
export interface Timing {
|
||||
earliestMoveIn: string
|
||||
latestMoveIn: string
|
||||
contractDurationMonths?: number
|
||||
flexibleTiming: boolean
|
||||
}
|
||||
|
||||
export interface WeightingProfile {
|
||||
area: number
|
||||
location: number
|
||||
budget: number
|
||||
timing: number
|
||||
prestige: number
|
||||
accessibility: number
|
||||
expansionPotential: number
|
||||
flexibility: number
|
||||
[key: string]: number
|
||||
}
|
||||
|
||||
export interface SoftFactorPreferences {
|
||||
minPrestige?: number
|
||||
minAccessibility?: number
|
||||
requireParking?: boolean
|
||||
maxPublicTransportMinutes?: number
|
||||
preferredEsgRating?: string
|
||||
requireHighVisibility?: boolean
|
||||
}
|
||||
|
||||
export interface Need {
|
||||
id: string
|
||||
companyName: string
|
||||
contactName?: string
|
||||
assetType: AssetType
|
||||
requiredArea: AreaRange
|
||||
preferredLocations: string[]
|
||||
excludedLocations?: string[]
|
||||
budgetRange: BudgetRange
|
||||
timing: Timing
|
||||
mustCriteriaText?: string[]
|
||||
softFactors?: SoftFactorPreferences
|
||||
weightingProfile: WeightingProfile
|
||||
confidenceInCriteria: number
|
||||
extractedFromText?: string
|
||||
notes?: string
|
||||
organizationId?: string
|
||||
createdAt: string
|
||||
updatedAt: string
|
||||
}
|
||||
|
||||
export type CreateNeedInput = Omit<Need, 'id' | 'createdAt' | 'updatedAt'>
|
||||
export type UpdateNeedInput = Partial<CreateNeedInput>
|
||||
Reference in New Issue
Block a user