forked from credebl/platform
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #8 from Bhutan-NDI/develop
Deploy synced codebase to ngotag DEV
- Loading branch information
Showing
43 changed files
with
450 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
30 changes: 30 additions & 0 deletions
30
apps/api-gateway/src/credential-definition/dto/get-all-platform-cred-defs.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,30 @@ | ||
import { trim } from '@credebl/common/cast.helper'; | ||
import { PaginationDto } from '@credebl/common/dtos/pagination.dto'; | ||
import { CredDefSortFields, SortValue } from '@credebl/enum/enum'; | ||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; | ||
import { Transform } from 'class-transformer'; | ||
import { IsEnum, IsOptional, IsUUID } from 'class-validator'; | ||
|
||
export class GetAllPlatformCredDefsDto extends PaginationDto { | ||
|
||
@ApiProperty({ example: '1a7eac11-ff05-40d7-8351-4d7467687cad'}) | ||
@Transform(({ value }) => trim(value)) | ||
@ApiPropertyOptional() | ||
@IsOptional() | ||
@IsUUID('4', { message: 'Invalid format of ledgerId' }) | ||
ledgerId: string; | ||
|
||
@ApiProperty({ | ||
required: false | ||
}) | ||
@Transform(({ value }) => trim(value)) | ||
@IsOptional() | ||
@IsEnum(CredDefSortFields) | ||
sortField: string = CredDefSortFields.CREATED_DATE_TIME; | ||
|
||
@ApiProperty({ required: false }) | ||
@Transform(({ value }) => trim(value)) | ||
@IsOptional() | ||
sortBy: string = SortValue.DESC; | ||
|
||
} |
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
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.