Explorar el Código

add attachments

visuddhinanda hace 2 años
padre
commit
897537df4e
Se han modificado 1 ficheros con 9 adiciones y 1 borrados
  1. 9 1
      dashboard/src/components/template/Wbw/WbwWord.tsx

+ 9 - 1
dashboard/src/components/template/Wbw/WbwWord.tsx

@@ -38,6 +38,7 @@ export type TFieldName =
   | "bookMarkColor"
   | "bookMarkColor"
   | "bookMarkText"
   | "bookMarkText"
   | "locked"
   | "locked"
+  | "attachments"
   | "confidence";
   | "confidence";
 
 
 export interface IWbwField {
 export interface IWbwField {
@@ -51,6 +52,13 @@ export enum WbwStatus {
   apply = 5,
   apply = 5,
   manual = 7,
   manual = 7,
 }
 }
+
+export interface IWbwAttachment {
+  id: string;
+  content_type: string;
+  size: number;
+  title: string;
+}
 export interface WbwElement<R> {
 export interface WbwElement<R> {
   value: R;
   value: R;
   status: WbwStatus;
   status: WbwStatus;
@@ -79,7 +87,7 @@ export interface IWbw {
   bookMarkText?: WbwElement<string | null>;
   bookMarkText?: WbwElement<string | null>;
   locked?: boolean;
   locked?: boolean;
   confidence: number;
   confidence: number;
-  attachments?: UploadFile[];
+  attachments?: IWbwAttachment[];
   hasComment?: boolean;
   hasComment?: boolean;
 }
 }
 export interface IWbwFields {
 export interface IWbwFields {