-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(root): Release 2024-12-05 12:46 (#7221)
- Loading branch information
Showing
200 changed files
with
9,352 additions
and
2,449 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
Submodule .source
updated
from e37e9d to 3a84f6
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
18 changes: 13 additions & 5 deletions
18
apps/api/src/app/events/dtos/trigger-event-response.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,30 +1,38 @@ | ||
import { IsBoolean, IsDefined, IsString } from 'class-validator'; | ||
import { IsBoolean, IsDefined, IsEnum, IsOptional, IsString } from 'class-validator'; | ||
import { TriggerEventStatusEnum } from '@novu/shared'; | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class TriggerEventResponseDto { | ||
@ApiProperty({ | ||
description: 'If trigger was acknowledged or not', | ||
description: 'Indicates whether the trigger was acknowledged or not', | ||
type: Boolean, | ||
}) | ||
@IsBoolean() | ||
@IsDefined() | ||
acknowledged: boolean; | ||
|
||
@ApiProperty({ | ||
description: 'Status for trigger', | ||
description: 'Status of the trigger', | ||
enum: TriggerEventStatusEnum, | ||
}) | ||
@IsDefined() | ||
@IsEnum(TriggerEventStatusEnum) | ||
status: TriggerEventStatusEnum; | ||
|
||
@ApiProperty({ | ||
description: 'In case of an error, this field will contain the error message', | ||
description: 'In case of an error, this field will contain the error message(s)', | ||
type: [String], // Specify that this is an array of strings | ||
required: false, // Not required since it's optional | ||
}) | ||
@IsOptional() | ||
error?: string[]; | ||
|
||
@ApiProperty({ | ||
description: 'Transaction id for trigger', | ||
description: 'The returned transaction ID of the trigger', | ||
type: String, // Specify that this is a string | ||
required: false, // Not required since it's optional | ||
}) | ||
@IsOptional() | ||
@IsString() | ||
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
Oops, something went wrong.