From d6ac774f2ee0c488dc9c1f12a4db7d1900695d1e Mon Sep 17 00:00:00 2001 From: pkupczyk <piotr.kupczyk@id.ethz.ch> Date: Mon, 8 Jan 2024 12:49:33 +0100 Subject: [PATCH] BIS-757 : Write Translator to TypeScript - move to sis packages --- api-openbis-typescript/build.gradle | 6 +++--- .../openbis/generic/typescript}/AddMethodsExtension.java | 2 +- .../generic/typescript}/AddOpenBISModuleExtension.java | 2 +- .../generic/typescript}/RemovePropertiesExtension.java | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename api-openbis-typescript/source/java/ch/{empa/tsprocessor => ethz/sis/openbis/generic/typescript}/AddMethodsExtension.java (99%) rename api-openbis-typescript/source/java/ch/{empa/tsprocessor => ethz/sis/openbis/generic/typescript}/AddOpenBISModuleExtension.java (98%) rename api-openbis-typescript/source/java/ch/{empa/tsprocessor => ethz/sis/openbis/generic/typescript}/RemovePropertiesExtension.java (96%) diff --git a/api-openbis-typescript/build.gradle b/api-openbis-typescript/build.gradle index 1b3e28f46ca..5f3a3e850a8 100644 --- a/api-openbis-typescript/build.gradle +++ b/api-openbis-typescript/build.gradle @@ -49,9 +49,9 @@ generateTypeScript { "ch.ethz.sis.openbis.generic.dssapi.v3.dto.common.operation.IOperationResult:dss_dto_common_operation_IOperationResult" ] extensionsWithConfiguration = [ - new ConfiguredExtension(className: 'ch.empa.tsprocessor.AddMethodsExtension', configuration: ['asyncClasses': "[\"ch.ethz.sis.openbis.generic.OpenBIS\"]"]), - new ConfiguredExtension(className: 'ch.empa.tsprocessor.RemovePropertiesExtension'), - new ConfiguredExtension(className: 'ch.empa.tsprocessor.AddOpenBISModuleExtension') + new ConfiguredExtension(className: 'ch.ethz.sis.openbis.generic.typescript.AddMethodsExtension', configuration: ['asyncClasses': "[\"ch.ethz.sis.openbis.generic.OpenBIS\"]"]), + new ConfiguredExtension(className: 'ch.ethz.sis.openbis.generic.typescript.RemovePropertiesExtension'), + new ConfiguredExtension(className: 'ch.ethz.sis.openbis.generic.typescript.AddOpenBISModuleExtension') ] jackson2ModuleDiscovery = true outputFile = file('../api-openbis-javascript/src/v3/openbis.d.ts') diff --git a/api-openbis-typescript/source/java/ch/empa/tsprocessor/AddMethodsExtension.java b/api-openbis-typescript/source/java/ch/ethz/sis/openbis/generic/typescript/AddMethodsExtension.java similarity index 99% rename from api-openbis-typescript/source/java/ch/empa/tsprocessor/AddMethodsExtension.java rename to api-openbis-typescript/source/java/ch/ethz/sis/openbis/generic/typescript/AddMethodsExtension.java index 8f4b248036d..b7e5fae615c 100644 --- a/api-openbis-typescript/source/java/ch/empa/tsprocessor/AddMethodsExtension.java +++ b/api-openbis-typescript/source/java/ch/ethz/sis/openbis/generic/typescript/AddMethodsExtension.java @@ -18,7 +18,7 @@ * limitations under the License. */ -package ch.empa.tsprocessor; +package ch.ethz.sis.openbis.generic.typescript; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; diff --git a/api-openbis-typescript/source/java/ch/empa/tsprocessor/AddOpenBISModuleExtension.java b/api-openbis-typescript/source/java/ch/ethz/sis/openbis/generic/typescript/AddOpenBISModuleExtension.java similarity index 98% rename from api-openbis-typescript/source/java/ch/empa/tsprocessor/AddOpenBISModuleExtension.java rename to api-openbis-typescript/source/java/ch/ethz/sis/openbis/generic/typescript/AddOpenBISModuleExtension.java index 5b37d90c2ec..64c1b7409df 100644 --- a/api-openbis-typescript/source/java/ch/empa/tsprocessor/AddOpenBISModuleExtension.java +++ b/api-openbis-typescript/source/java/ch/ethz/sis/openbis/generic/typescript/AddOpenBISModuleExtension.java @@ -1,4 +1,4 @@ -package ch.empa.tsprocessor; +package ch.ethz.sis.openbis.generic.typescript; import java.util.ArrayList; import java.util.HashSet; diff --git a/api-openbis-typescript/source/java/ch/empa/tsprocessor/RemovePropertiesExtension.java b/api-openbis-typescript/source/java/ch/ethz/sis/openbis/generic/typescript/RemovePropertiesExtension.java similarity index 96% rename from api-openbis-typescript/source/java/ch/empa/tsprocessor/RemovePropertiesExtension.java rename to api-openbis-typescript/source/java/ch/ethz/sis/openbis/generic/typescript/RemovePropertiesExtension.java index 7a6672518c5..bb29c8935a3 100644 --- a/api-openbis-typescript/source/java/ch/empa/tsprocessor/RemovePropertiesExtension.java +++ b/api-openbis-typescript/source/java/ch/ethz/sis/openbis/generic/typescript/RemovePropertiesExtension.java @@ -1,4 +1,4 @@ -package ch.empa.tsprocessor; +package ch.ethz.sis.openbis.generic.typescript; import java.util.Collections; import java.util.List; -- GitLab