fix: make user branch selection and signature completion reliable

This commit is contained in:
SepehrYahyaee
2026-11-16 10:40:09 +03:30
parent 775934c056
commit e5c4b740e7
10 changed files with 406 additions and 118 deletions
@@ -1,4 +1,5 @@
import { ApiProperty } from "@nestjs/swagger";
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
import type { BlameUserNextAction } from "src/helpers/blame-user-progress";
export class UserSignatureResponseDto {
@ApiProperty({
@@ -24,4 +25,24 @@ export class UserSignatureResponseDto {
description: "Result message",
})
message: string;
@ApiPropertyOptional({ description: "Next action for the signing user" })
nextAction?: BlameUserNextAction;
@ApiPropertyOptional({ type: Object })
confirmation?: {
accepted?: boolean;
signature?: { fileId?: string; fileName?: string; fileUrl?: string };
};
@ApiPropertyOptional({ type: Object })
claimBranch?: { required: boolean; branchId: string | null };
@ApiPropertyOptional({ type: Object })
claimCreation?: {
hasClaim: boolean;
shouldGuideToCreateClaim: boolean;
claimRequestId?: string;
canContinueClaim?: boolean;
};
}