From f608ea1f72d19cf70d4ceb3bcb4da3624d34bf83 Mon Sep 17 00:00:00 2001
From: Jose Manuel Serrano Amaut <a20122128@pucp.pe>
Date: Mon, 20 Mar 2023 19:10:00 -0500
Subject: [PATCH] [REF]: Add videoUrl attribute to ExtFile and ExtFileInstance

---
 src/files-ui/core/types/ExtFile.ts | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/src/files-ui/core/types/ExtFile.ts b/src/files-ui/core/types/ExtFile.ts
index 5d54eb3..300dcb1 100644
--- a/src/files-ui/core/types/ExtFile.ts
+++ b/src/files-ui/core/types/ExtFile.ts
@@ -77,6 +77,10 @@ export declare type ExtFile = {
         file. If defined, the download icon will be shown.
      */
     downloadUrl?: string;
+    /**
+     * Link, URI, FIle object or string representation of a video
+     */
+    videoUrl?: string;
 }
 
 /**
@@ -153,6 +157,11 @@ export class ExtFileInstance {
      * In case onDownload prop is given
      */
     public downloadUrl?: string;
+    /**
+     * Link, URI, FIle object or string representation of a video
+     */
+    public videoUrl?: string;
+
     constructor(extFile: ExtFile) {
         const {
             id,
@@ -170,7 +179,7 @@ export class ExtFileInstance {
             extraData,
             extraUploadData,
             serverResponse,
-            downloadUrl
+            downloadUrl, videoUrl
         } = extFile;
 
         this.id = id;
@@ -192,6 +201,7 @@ export class ExtFileInstance {
         this.serverResponse = serverResponse;
 
         this.downloadUrl = downloadUrl;
+        this.videoUrl = videoUrl;
     }
     /**
      * method under construction
-- 
GitLab