-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: listing duplication endpoint (#4307)
* feat: duplicate listing endpoint * feat: unit test fix * feat: permission tests * feat: feature flag partners duplicating listings * feat: handle logged out user * feat: handle new field * feat: improve e2e testing * feat: comment improvements
- Loading branch information
Showing
15 changed files
with
709 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { Expose, Type } from 'class-transformer'; | ||
import { | ||
IsBoolean, | ||
IsDefined, | ||
IsString, | ||
ValidateNested, | ||
} from 'class-validator'; | ||
import { ValidationsGroupsEnum } from '../../enums/shared/validation-groups-enum'; | ||
import { IdDTO } from '../shared/id.dto'; | ||
|
||
export class ListingDuplicate { | ||
@Expose() | ||
@ApiProperty() | ||
@IsDefined({ groups: [ValidationsGroupsEnum.default] }) | ||
@IsString({ groups: [ValidationsGroupsEnum.default] }) | ||
name: string; | ||
|
||
@Expose() | ||
@ApiProperty() | ||
@IsBoolean({ groups: [ValidationsGroupsEnum.default] }) | ||
@IsDefined({ groups: [ValidationsGroupsEnum.default] }) | ||
includeUnits: boolean; | ||
|
||
@Expose() | ||
@ApiProperty() | ||
@ValidateNested({ groups: [ValidationsGroupsEnum.default] }) | ||
@Type(() => IdDTO) | ||
storedListing: IdDTO; | ||
} |
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
Oops, something went wrong.