-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from cdalton713/backend
Backend
- Loading branch information
Showing
5 changed files
with
159 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { IntersectionType } from '@nestjs/swagger'; | ||
import { UpdateUserDTO } from 'src/user/dto/update-user.dto'; | ||
import { UpdateDeviceDTO } from './update-device.dto'; | ||
import { UpdateTicketDto } from './update-ticket.dto'; | ||
|
||
class UpdateTicketandDevice extends IntersectionType( | ||
UpdateTicketDto, | ||
UpdateDeviceDTO, | ||
) {} | ||
|
||
export class UpdateCombinedDTO extends IntersectionType( | ||
UpdateTicketandDevice, | ||
UpdateUserDTO, | ||
) {} |
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,4 @@ | ||
import { CreateDeviceDTO } from './create-device.dto'; | ||
import { OmitType as Omit } from '@nestjs/swagger'; | ||
|
||
export class UpdateDeviceDTO extends Omit(CreateDeviceDTO, ['ticket_id']) {} |
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