dawn-interfaces
Version:
Dawn application interfaces
75 lines (74 loc) • 2.08 kB
TypeScript
export interface ISellerContainer {
id: string;
createdAt: Date;
taskIds: string[];
createdById: string;
sellerId: string;
updatedAt: Date;
}
export declare enum ESellerRegistrationSellTimeOptions {
within3Days = "Within 3 days",
within1Week = "Within 1 week",
within1Month = "Within 1 month",
within2Months = "Within 2 months",
moreThan2Months = "In more than 2 months",
notSure = "I'm not sure"
}
export declare enum ESellerReasonOptions {
upgradingHome = "Upgrading my home",
sellingSecondHome = "Selling second home",
relocating = "Relocating",
downsizing = "Downsizing my home",
retiring = "Retiring",
other = "Other"
}
export interface ISellerRegistration {
containerId: string;
createdAt: Date;
longitude: number;
latitude: number;
sellingTime: ESellerRegistrationSellTimeOptions;
sellingReason: ESellerReasonOptions;
address: string;
sqft: number;
lotSize: number;
yearBuilt: number;
bedrooms: number;
fullBaths: number;
halfBaths: number;
}
export declare enum ESellerTaskCategory {
registration = "Registration",
initialTasks = "Initial Tasks",
homePrep = "Prepare Your Property",
homeMarketing = "Home Marketing",
contractTasks = "Contract Tasks",
homeExit = "Home Exit Planning",
closingTasks = "Closing Tasks",
miscellaneous = "Miscellaneous",
additionalTodo = "Additional Todo"
}
export declare enum ESellerTaskOwnerType {
client = "client",
agent = "agent"
}
export interface ISellerTaskItem {
id: string;
createdAt: Date;
sellerUserId: string;
itemCreatorId: string;
description: string;
category: ESellerTaskCategory;
taskOwnerType: ESellerTaskOwnerType;
isMarkedCompleted: boolean;
title: string;
taskActionType?: string;
dueDate?: Date;
}
export interface ICommonSellerTask {
id: string;
title: string;
category: ESellerTaskCategory;
taskOwnerType: ESellerTaskOwnerType;
}
export declare const commonSellerTasks: ICommonSellerTask[];