From defbecc2c3e3cafae5231dff8cc6605f9a24cd2b Mon Sep 17 00:00:00 2001 From: "rinkal.bhojani" Date: Tue, 24 Sep 2024 13:20:13 +0530 Subject: [PATCH] fix: parentThreadId changes incorporated --- apps/api-gateway/src/verification/dto/webhook-proof.dto.ts | 4 ++++ apps/verification/src/interfaces/verification.interface.ts | 2 ++ apps/verification/src/verification.service.ts | 1 + 3 files changed, 7 insertions(+) diff --git a/apps/api-gateway/src/verification/dto/webhook-proof.dto.ts b/apps/api-gateway/src/verification/dto/webhook-proof.dto.ts index 13a80785c..7c89da54a 100644 --- a/apps/api-gateway/src/verification/dto/webhook-proof.dto.ts +++ b/apps/api-gateway/src/verification/dto/webhook-proof.dto.ts @@ -41,6 +41,10 @@ export class WebhookPresentationProofDto { @IsOptional() threadId: string; + @ApiPropertyOptional() + @IsOptional() + parentThreadId?: string; + @ApiPropertyOptional() @IsOptional() presentationId: string; diff --git a/apps/verification/src/interfaces/verification.interface.ts b/apps/verification/src/interfaces/verification.interface.ts index ced4b84c1..1fd8e4e09 100644 --- a/apps/verification/src/interfaces/verification.interface.ts +++ b/apps/verification/src/interfaces/verification.interface.ts @@ -135,6 +135,7 @@ export interface IPresentationExchangeProofFormats { export interface ISendPresentationExchangeProofRequestPayload { protocolVersion: string; comment: string; + parentThreadId?: string; proofFormats: IPresentationExchangeProofFormats; autoAcceptProof: string; label?: string; @@ -206,6 +207,7 @@ export interface IWebhookProofPresentation { connectionId: string; presentationId: string; threadId: string; + parentThreadId?: string; autoAcceptProof: string; updatedAt: string; isVerified: boolean; diff --git a/apps/verification/src/verification.service.ts b/apps/verification/src/verification.service.ts index 9c3b702d3..c56604bbb 100644 --- a/apps/verification/src/verification.service.ts +++ b/apps/verification/src/verification.service.ts @@ -433,6 +433,7 @@ export class VerificationService { url, proofRequestPayload: { goalCode: outOfBandRequestProof.goalCode, + parentThreadId: outOfBandRequestProof.parentThreadId, protocolVersion:outOfBandRequestProof.protocolVersion || 'v2', comment:outOfBandRequestProof.comment, label,