-
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 #19 from cdalton713/backend
Backend
- Loading branch information
Showing
18 changed files
with
301 additions
and
154 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ export class CreateTicketDTO extends Omit(TicketDTO, [ | |
'ticket_id', | ||
'status', | ||
'submission_date', | ||
'notes', | ||
]) {} |
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 was deleted.
Oops, something went wrong.
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 { OmitType as Omit } from '@nestjs/swagger'; | ||
import { WorkDTO } from './work.dto'; | ||
|
||
export class CreateWorkDTO extends Omit(WorkDTO, ['work_id']) {} |
This file was deleted.
Oops, something went wrong.
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,40 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export enum WorkType { | ||
'LSU_ID', | ||
'TICKET_ID', | ||
} | ||
|
||
export class WorkDTO { | ||
@ApiProperty({ | ||
readOnly: true, | ||
description: 'serially generated id for work', | ||
}) | ||
work_id: number; | ||
|
||
@ApiProperty({ | ||
description: 'id that references ticket', | ||
example: 1, | ||
}) | ||
ticket_id: number; | ||
|
||
@ApiProperty({ | ||
minLength: 9, | ||
maxLength: 9, | ||
description: '9-digit number starting with 89', | ||
example: 897584512, | ||
}) | ||
lsu_id: number; | ||
|
||
@ApiProperty({ | ||
description: 'YYYY-MM-DD HH:MM:SS', | ||
example: '2020-07-21 12:44:22', | ||
}) | ||
start_datetime: string; | ||
|
||
@ApiProperty({ | ||
description: 'YYYY-MM-DD HH:MM:SS', | ||
example: '2020-07-21 12:44:22', | ||
}) | ||
end_datetime: string; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.