forked from Yara724/api
fix: make user branch selection and signature completion reliable
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user