forked from Yara724/api
update some important issues
This commit is contained in:
@@ -64,6 +64,10 @@ export class PartyResendRequest {
|
||||
@Prop({ type: [String], default: [] })
|
||||
requestedItems: string[]; // Array of ResendItemType values
|
||||
|
||||
/** @deprecated Resend UI uses requestedItems + inputKind from API; do not rely on workflow steps. */
|
||||
@Prop({ type: [String], default: [] })
|
||||
workflowStepKeys?: string[];
|
||||
|
||||
@Prop()
|
||||
description?: string;
|
||||
|
||||
@@ -75,6 +79,20 @@ export class PartyResendRequest {
|
||||
|
||||
@Prop({ type: Date })
|
||||
completedAt?: Date;
|
||||
|
||||
/** Document resend uploads keyed by ResendItemType (e.g. drivingLicense). */
|
||||
@Prop({ type: Object, default: {} })
|
||||
uploadedDocuments?: Record<string, Types.ObjectId>;
|
||||
|
||||
@Prop({ type: Types.ObjectId })
|
||||
resendVoiceId?: Types.ObjectId;
|
||||
|
||||
@Prop({ type: Types.ObjectId })
|
||||
resendVideoId?: Types.ObjectId;
|
||||
|
||||
/** Fulfills requestedItems `description` (text). */
|
||||
@Prop({ type: String })
|
||||
userTextDescription?: string;
|
||||
}
|
||||
export const PartyResendRequestSchema = SchemaFactory.createForClass(PartyResendRequest);
|
||||
|
||||
@@ -89,6 +107,12 @@ export class ExpertResend {
|
||||
|
||||
@Prop({ type: Types.ObjectId })
|
||||
requestedByExpertId?: Types.ObjectId;
|
||||
|
||||
/**
|
||||
* @deprecated Unused for resend UI; clients use per-party requestedItems + inputKind.
|
||||
*/
|
||||
@Prop({ type: [String], default: [] })
|
||||
combinedResubmitStepKeys?: string[];
|
||||
}
|
||||
export const ExpertResendSchema = SchemaFactory.createForClass(ExpertResend);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user