generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ORV2-1217 Document regeneration on send notification (#1272)
- Loading branch information
Showing
10 changed files
with
363 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
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
34 changes: 34 additions & 0 deletions
34
vehicles/src/modules/common/dto/request/create-notification.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { AutoMap } from '@automapper/classes'; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { | ||
ArrayMinSize, | ||
IsEmail, | ||
IsOptional, | ||
IsString, | ||
Length, | ||
} from 'class-validator'; | ||
|
||
export class CreateNotificationDto { | ||
@ApiProperty({ | ||
description: 'Notification email ids.', | ||
example: ['[email protected]', '[email protected]'], | ||
}) | ||
@IsEmail(undefined, { | ||
each: true, | ||
}) | ||
@ArrayMinSize(1) | ||
to: string[]; | ||
|
||
@AutoMap() | ||
@ApiProperty({ | ||
description: 'The fax number to send the notification to.', | ||
required: false, | ||
maxLength: 20, | ||
minLength: 10, | ||
example: '9999999999', | ||
}) | ||
@IsOptional() | ||
@IsString() | ||
@Length(10, 20) | ||
fax?: string; | ||
} |
4 changes: 4 additions & 0 deletions
4
vehicles/src/modules/common/dto/response/read-notification.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export class ReadNotificationDto { | ||
message: string; | ||
transactionId: string; | ||
} |
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.