-
Notifications
You must be signed in to change notification settings - Fork 577
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/some-permission-logic
- Loading branch information
Showing
35 changed files
with
1,449 additions
and
601 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
import { IBasePerTenantAndOrganizationEntityModel, ID } from './base-entity.model'; | ||
import { IUser } from './user.model'; | ||
import { IHasUserCreator } from './user.model'; | ||
import { IPipelineStage } from './pipeline-stage.model'; | ||
import { IContact } from './contact.model'; | ||
import { IOrganizationContact } from './organization-contact.model'; | ||
|
||
export interface IDeal extends IBasePerTenantAndOrganizationEntityModel { | ||
// Common base interface for deal fields | ||
interface IDealBase extends IBasePerTenantAndOrganizationEntityModel { | ||
title: string; | ||
probability?: number; | ||
createdBy: IUser; | ||
createdByUserId: ID; | ||
probability: number; | ||
stage: IPipelineStage; | ||
stageId: ID; | ||
client?: IContact; | ||
client?: IOrganizationContact; | ||
clientId?: ID; | ||
} | ||
|
||
export type IDealFindInput = Partial<IDealCreateInput>; | ||
// IDeal interface with the additional stage and user creator properties | ||
export interface IDeal extends IDealBase, IHasUserCreator {} | ||
|
||
export interface IDealCreateInput extends IBasePerTenantAndOrganizationEntityModel { | ||
stageId: ID; | ||
clientId?: ID; | ||
title: string; | ||
probability?: number; | ||
} | ||
// IDealCreateInput interface, omitting user-related fields from IDeal | ||
export interface IDealCreateInput extends IDealBase {} | ||
|
||
// IDealFindInput type, based on IDealCreateInput | ||
export type IDealFindInput = Partial<IDealBase>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.