-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement proof presentation for holder (#860)
* feat: accept proof request by holder API Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * feat: holder get proof presentation and get proof presentation by id Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> * refactor: changes in accept proof request and get proof request Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com> --------- Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
- Loading branch information
1 parent
def73bf
commit 1df5fb7
Showing
12 changed files
with
470 additions
and
82 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
29 changes: 29 additions & 0 deletions
29
apps/api-gateway/src/cloud-wallet/dtos/accept-proof-request.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,29 @@ | ||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; | ||
import { IsBoolean, IsNotEmpty, IsOptional, IsString, IsUUID } from 'class-validator'; | ||
|
||
export class AcceptProofRequestDto { | ||
@ApiProperty({ example: '4e687079-273b-447b-b9dd-9589c84dc6dd' }) | ||
@IsString({ message: 'proofRecordId must be a string' }) | ||
@IsNotEmpty({ message: 'please provide valid proofRecordId' }) | ||
@IsUUID() | ||
proofRecordId: string; | ||
|
||
@ApiPropertyOptional({ example: false }) | ||
@IsOptional() | ||
@IsBoolean({ message: 'filterByPresentationPreview must be a boolean' }) | ||
filterByPresentationPreview?: boolean; | ||
|
||
@ApiPropertyOptional({ example: false }) | ||
@IsOptional() | ||
@IsBoolean({ message: 'filterByNonRevocationRequirements must be a boolean' }) | ||
filterByNonRevocationRequirements?: boolean; | ||
|
||
@ApiPropertyOptional({ example: '' }) | ||
@IsOptional() | ||
@IsString({ message: 'comment must be a string' }) | ||
comment?: string; | ||
|
||
userId: string; | ||
|
||
email: 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
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
Oops, something went wrong.