@@ -16,7 +16,7 @@ import { Controller, Logger, Post, Body, Get, Query, HttpStatus, Res, UseGuards,
16
16
import { ApiResponseDto } from '../dtos/apiResponse.dto' ;
17
17
import { UnauthorizedErrorDto } from '../dtos/unauthorized-error.dto' ;
18
18
import { ForbiddenErrorDto } from '../dtos/forbidden-error.dto' ;
19
- import { SendProofRequestPayload , RequestProofDto , ProofRequestPayloadDto } from './dto/request-proof.dto' ;
19
+ import { SendProofRequestPayload , RequestProofDtoV1 , RequestProofDtoV2 } from './dto/request-proof.dto' ;
20
20
import { VerificationService } from './verification.service' ;
21
21
import IResponseType , { IResponse } from '@credebl/common/interfaces/response.interface' ;
22
22
import { Response } from 'express' ;
@@ -171,7 +171,7 @@ export class VerificationController {
171
171
@ApiResponse ( { status : HttpStatus . OK , description : 'Success' , type : ApiResponseDto } )
172
172
@ApiUnauthorizedResponse ( { status : HttpStatus . UNAUTHORIZED , description : 'Unauthorized' , type : UnauthorizedErrorDto } )
173
173
@ApiForbiddenResponse ( { status : HttpStatus . FORBIDDEN , description : 'Forbidden' , type : ForbiddenErrorDto } )
174
- @ApiBody ( { type : RequestProofDto } ) @ApiQuery ( {
174
+ @ApiBody ( { type : RequestProofDtoV1 } ) @ApiQuery ( {
175
175
name : 'requestType' ,
176
176
enum : ProofRequestType
177
177
} )
@@ -182,7 +182,7 @@ export class VerificationController {
182
182
@Res ( ) res : Response ,
183
183
@User ( ) user : IUserRequest ,
184
184
@Param ( 'orgId' , new ParseUUIDPipe ( { exceptionFactory : ( ) : Error => { throw new BadRequestException ( `Invalid format for orgId` ) ; } } ) ) orgId : string ,
185
- @Body ( ) requestProof : RequestProofDto ,
185
+ @Body ( ) requestProof : RequestProofDtoV1 ,
186
186
@Query ( 'requestType' ) requestType :ProofRequestType = ProofRequestType . INDY
187
187
) : Promise < Response > {
188
188
@@ -233,7 +233,7 @@ export class VerificationController {
233
233
@ApiResponse ( { status : HttpStatus . OK , description : 'Success' , type : ApiResponseDto } )
234
234
@ApiUnauthorizedResponse ( { status : HttpStatus . UNAUTHORIZED , description : 'Unauthorized' , type : UnauthorizedErrorDto } )
235
235
@ApiForbiddenResponse ( { status : HttpStatus . FORBIDDEN , description : 'Forbidden' , type : ForbiddenErrorDto } )
236
- @ApiBody ( { type : ProofRequestPayloadDto } ) @ApiQuery ( {
236
+ @ApiBody ( { type : RequestProofDtoV2 } ) @ApiQuery ( {
237
237
name : 'requestType' ,
238
238
enum : ProofRequestType
239
239
} )
@@ -244,7 +244,7 @@ export class VerificationController {
244
244
@Res ( ) res : Response ,
245
245
@User ( ) user : IUserRequest ,
246
246
@Param ( 'orgId' , new ParseUUIDPipe ( { exceptionFactory : ( ) : Error => { throw new BadRequestException ( `Invalid format for orgId` ) ; } } ) ) orgId : string ,
247
- @Body ( ) requestProof : ProofRequestPayloadDto ,
247
+ @Body ( ) requestProof : RequestProofDtoV2 ,
248
248
@Query ( 'requestType' ) requestTypeV1 :ProofRequestType = ProofRequestType . INDY
249
249
) : Promise < Response > {
250
250
0 commit comments