From 4fcb0e879afc3539fa30d4a383a68a579cd426e1 Mon Sep 17 00:00:00 2001
From: vkovtun <viktor.kovtun@id.ethz.ch>
Date: Tue, 5 Dec 2023 10:38:09 +0100
Subject: [PATCH] BIS-772: Added JS API export method.

---
 api-openbis-javascript/src/v3/openbis.js | 31 ++++++++++++++++--------
 1 file changed, 21 insertions(+), 10 deletions(-)

diff --git a/api-openbis-javascript/src/v3/openbis.js b/api-openbis-javascript/src/v3/openbis.js
index 1f4aa3c7b00..f7b04ec5da2 100644
--- a/api-openbis-javascript/src/v3/openbis.js
+++ b/api-openbis-javascript/src/v3/openbis.js
@@ -2347,16 +2347,27 @@ define([ 'jquery', 'util/Json', 'as/dto/datastore/search/DataStoreSearchCriteria
 			});
 		}
 
-        this.isSessionActive = function() {
-            var thisFacade = this;
-            return thisFacade._private.ajaxRequest({
-                url : openbisUrl,
-                data : {
-                    "method" : "isSessionActive",
-                    "params" : [ thisFacade._private.sessionToken ]
-                }
-            });
-        }
+		this.executeExport = function(exportData, exportOptions) {
+			var thisFacade = this;
+			return thisFacade._private.ajaxRequest({
+				url : openbisUrl,
+				data : {
+					"method" : "executeExport",
+					"params" : [ thisFacade._private.sessionToken, exportData, exportOptions ]
+				}
+			});
+		}
+
+		this.isSessionActive = function() {
+				var thisFacade = this;
+				return thisFacade._private.ajaxRequest({
+						url : openbisUrl,
+						data : {
+								"method" : "isSessionActive",
+								"params" : [ thisFacade._private.sessionToken ]
+						}
+				});
+		}
 
 		this.getDataStoreFacade = function() {
 			var dataStoreCodes = [];
-- 
GitLab