import { IClientEntity, IDesignationEntity, IProjectEntity, IProjectRevenueSplitMappingEntity, IRateEntity, IUserEntity } from "../../entities"; import { IProjectCreateDtoExtra, IProjectUserDto } from "./project.create.dto.interface"; export interface IProjectUserDtoResponse extends IProjectUserDto { updatedOn: string; } export interface IProjectEntityDependentResponse { users: IProjectUserDtoResponse[]; revenueSplitData: IProjectRevenueSplitMappingEntity[]; } export type IProjectApiEntityDependent = IProjectEntity & IProjectEntityDependentResponse & IProjectCreateDtoExtra; export type IProjectEntityGet = { projects: IProjectApiEntityDependent[]; users: { [key: string]: IUserEntity; }; clients: { [key: string]: IClientEntity; }; designations?: { [key: string]: IDesignationEntity; }; rates?: { [key: string]: IRateEntity; }; };