-
Notifications
You must be signed in to change notification settings - Fork 528
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
feat: #6972 Added Last Log permission, flag to filter by organization…
- Loading branch information
Showing
19 changed files
with
258 additions
and
129 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
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
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
27 changes: 21 additions & 6 deletions
27
packages/core/src/organization-team/dto/organization-team-statistic.dto.ts
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,21 +1,36 @@ | ||
import { ApiPropertyOptional, IntersectionType } from '@nestjs/swagger'; | ||
import { IsOptional } from 'class-validator'; | ||
import { Transform, TransformFnParams } from 'class-transformer'; | ||
import { IDateRangePicker, IOrganizationTeamStatisticInput } from '@gauzy/contracts'; | ||
import { | ||
IDateRangePicker, | ||
IOrganizationTeamStatisticInput, | ||
} from '@gauzy/contracts'; | ||
import { parseToBoolean } from '@gauzy/common'; | ||
import { DateRangeQueryDTO, RelationsQueryDTO } from './../../shared/dto'; | ||
/** | ||
* Get team statistic request DTO validation | ||
*/ | ||
export class OrganizationTeamStatisticDTO extends IntersectionType( | ||
DateRangeQueryDTO, | ||
RelationsQueryDTO | ||
) implements IOrganizationTeamStatisticInput, IDateRangePicker { | ||
export class OrganizationTeamStatisticDTO | ||
extends IntersectionType(DateRangeQueryDTO, RelationsQueryDTO) | ||
implements IOrganizationTeamStatisticInput, IDateRangePicker | ||
{ | ||
/** | ||
* Indicates if last worked task row should be included in entity result. | ||
*/ | ||
@ApiPropertyOptional({ type: 'boolean' }) | ||
@IsOptional() | ||
@Transform(({ value }: TransformFnParams) => value ? parseToBoolean(value) : false) | ||
@Transform(({ value }: TransformFnParams) => | ||
value ? parseToBoolean(value) : false | ||
) | ||
readonly withLaskWorkedTask: boolean; | ||
|
||
/** | ||
* Indicates if organizationTeamId should be used to filter the records. | ||
*/ | ||
@ApiPropertyOptional({ type: 'boolean' }) | ||
@IsOptional() | ||
@Transform(({ value }: TransformFnParams) => | ||
value ? parseToBoolean(value) : false | ||
) | ||
readonly includeOrganizationTeamId?: boolean; | ||
} |
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.