Skip to content

Commit 318bae0

Browse files
chore: added parentThreadId in webhook dto (#1112)
* fix:added array data type in schema payload Signed-off-by: pallavicoder <[email protected]> * fix:added nested attributes in schema paylaod Signed-off-by: pallavicoder <[email protected]> * feat: add array data type while creating schema Signed-off-by: bhavanakarwade <[email protected]> * replace hardcoded value with dynamic Signed-off-by: bhavanakarwade <[email protected]> * fix: removed commented code Signed-off-by: bhavanakarwade <[email protected]> * fix: added search on schema name Signed-off-by: bhavanakarwade <[email protected]> * fix: made api property optional Signed-off-by: bhavanakarwade <[email protected]> * handled conditions for empty array Signed-off-by: bhavanakarwade <[email protected]> * chore: added loggers Signed-off-by: bhavanakarwade <[email protected]> * chore: added loggers for issuance and verification Signed-off-by: bhavanakarwade <[email protected]> * chore: added parentthreadid in webhook dto Signed-off-by: bhavanakarwade <[email protected]> * fix: remove unnecessary loggers Signed-off-by: bhavanakarwade <[email protected]> * fix: remove unnecessary loggers Signed-off-by: bhavanakarwade <[email protected]> --------- Signed-off-by: pallavicoder <[email protected]> Signed-off-by: bhavanakarwade <[email protected]> Co-authored-by: pallavicoder <[email protected]> Signed-off-by: bhavanakarwade <[email protected]>
1 parent f212554 commit 318bae0

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

apps/api-gateway/src/verification/dto/webhook-proof.dto.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ export class WebhookPresentationProofDto {
4141
@IsOptional()
4242
threadId: string;
4343

44+
@ApiPropertyOptional()
45+
@IsOptional()
46+
parentThreadId?: string;
47+
4448
@ApiPropertyOptional()
4549
@IsOptional()
4650
presentationId: string;

apps/api-gateway/src/verification/verification.controller.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,6 @@ export class VerificationController {
239239
@Body() requestProof: RequestProofDtoV2,
240240
@Query('requestType') requestTypeV1:ProofRequestType = ProofRequestType.INDY
241241
): Promise<Response> {
242-
243242
if (requestTypeV1 === ProofRequestType.INDY && !requestProof.proofFormats) {
244243
throw new BadRequestException(`type: ${requestTypeV1} requires proofFormats`);
245244
}

apps/verification/src/interfaces/verification.interface.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ export interface IPresentationExchangeProofFormats {
136136
export interface ISendPresentationExchangeProofRequestPayload {
137137
protocolVersion: string;
138138
comment: string;
139+
parentThreadId?: string;
139140
proofFormats: IPresentationExchangeProofFormats;
140141
autoAcceptProof: string;
141142
label?: string;
@@ -207,6 +208,7 @@ export interface IWebhookProofPresentation {
207208
connectionId: string;
208209
presentationId: string;
209210
threadId: string;
211+
parentThreadId?: string;
210212
autoAcceptProof: string;
211213
updatedAt: string;
212214
isVerified: boolean;

apps/verification/src/verification.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ export class VerificationService {
481481
url,
482482
proofRequestPayload: {
483483
goalCode: outOfBandRequestProof.goalCode,
484+
parentThreadId: outOfBandRequestProof?.parentThreadId,
484485
protocolVersion:outOfBandRequestProof.protocolVersion || 'v2',
485486
comment:outOfBandRequestProof.comment,
486487
label,

0 commit comments

Comments
 (0)