import type { Attachment } from "@root/model/attachment"
import { UserAccount } from "@frontend/kitui"

export type File = {
  name: "inn" | "rule" | "egrule" | "certificate";
  url: string;
};

export interface Verification {
  _id: string;
  accepted: boolean;
  status: UserAccount["status"];
  updated_at: string;
  comment: string;
  files: File[];
}

export type SendDocumentsArgs = {
  status: UserAccount["status"];
  inn: Attachment;
  rule: Attachment;
  certificate?: Attachment;
};

export type UpdateDocumentsArgs = {
  status: UserAccount["status"];
  inn?: Attachment;
  rule?: Attachment;
  certificate?: Attachment;
};
