import { ObjectId } from 'mongodb'; import { BaseModel } from './baseModel'; import { Location } from './location'; import { Product } from './product'; export interface OperationCenter extends BaseModel { status?: boolean; name: string; code: string; capabilities?: string[]; zone?: string; parentOperationCenter?: OperationCenter | ObjectId; addressLine1: string; addressLine2?: string; city: string; state: string; country: string; pincode: string; location?: Location; procurableProducts?: Product[] | ObjectId[]; inventoryLinks?: OperationCenter[] | ObjectId[]; gstNumber?: string; virtualOC?: boolean; mappedOC?: OperationCenter | ObjectId; slas?: OperationCenterSLA[]; excludeFromCityInventory?: boolean; } export interface OperationCenterSLA extends BaseModel { operationCenter: OperationCenter | ObjectId; toOperationCenter: OperationCenter | ObjectId; customer?: /*Customer*/ (BaseModel & { [key: string]: any; }) | ObjectId; arrivalSLA: number; usageSLAinHrs?: number; usageSLA: number; }