diff --git a/app/index.html b/app/index.html index dd23d05..2096768 100644 --- a/app/index.html +++ b/app/index.html @@ -23,6 +23,7 @@ + @@ -93,6 +94,7 @@ + @@ -167,6 +169,9 @@ + + + diff --git a/app/scripts/controllers/transformation.js b/app/scripts/controllers/transformation.js index e96d559..c0d48fa 100644 --- a/app/scripts/controllers/transformation.js +++ b/app/scripts/controllers/transformation.js @@ -12,6 +12,7 @@ angular.module('grafterizerApp') $scope, $stateParams, ontotextAPI, + dataGraftApi, uploadFile, $rootScope, $state, @@ -401,14 +402,16 @@ angular.module('grafterizerApp') $scope.loading = true; $rootScope.readonlymode = true; - // setTimeout(function() { - ontotextAPI.transformation(id).success(function(data) { - $scope.loading = false; - $rootScope.readonlymode = $state.is('transformations.readonly'); - $scope.document = data; - $scope.document.title = data['dct:title']; - $scope.document.description = data['dct:description']; - $scope.document.keywords = data['dcat:keyword']; + // setTimeout(function() { + ontotextAPI.transformation(id).success(function(data) { + //dataGraftApi.getTransformation("comeonnn").success(function(data) { + //dataGraftApi.getTransformation(id).success(function(data) { + $scope.loading = false; + $rootScope.readonlymode = $state.is('transformations.readonly'); + $scope.document = data; + $scope.document.title = data['dct:title']; + $scope.document.description = data['dct:description']; + $scope.document.keywords = data['dcat:keyword']; if (!$scope.document.keywords || typeof $scope.document.keywords.length === 'undefined') { @@ -647,25 +650,40 @@ angular.module('grafterizerApp') function() { angular.copy($scope.originalPrefixers, $scope.transformation.prefixers); }); - }; - - $scope.defineCustomFunctions = function() { - $scope.originalCustomFunctionDeclarations = []; - angular.copy($scope.transformation.customFunctionDeclarations, $scope - .originalCustomFunctionDeclarations); - $mdDialog.show({ - templateUrl: 'views/createcustomfunction.html', - controller: 'CustomfunctionsdialogcontrollerCtrl', - scope: $scope.$new(false, $scope), - clickOutsideToClose: true - }).then( - function() {}, + }; + + // This function should open the dialog box and set controller for it. + // Let's try to use the same controller as we're already in :) + $scope.defineUtilityFunctions = function() { + //$scope.originalCustomFunctionDeclarations = []; + //angular.copy($scope.transformation.customFunctionDeclarations, $scope + // .originalCustomFunctionDeclarations); + $mdDialog.show({ + templateUrl: 'views/utilityfunctiondialog.html', + controller: 'UtilityFunctionsCtrl', + scope: $scope.$new(false, $scope), + clickOutsideToClose: true + }).then( + function() {});//, + }; + + $scope.defineCustomFunctions = function() { + $scope.originalCustomFunctionDeclarations = []; + angular.copy($scope.transformation.customFunctionDeclarations, $scope + .originalCustomFunctionDeclarations); + $mdDialog.show({ + templateUrl: 'views/createcustomfunction.html', + controller: 'CustomfunctionsdialogcontrollerCtrl', + scope: $scope.$new(false, $scope), + clickOutsideToClose: true + }).then( + function() {}, - function() { - angular.copy($scope.originalCustomFunctionDeclarations, $scope.transformation - .customFunctionDeclarations); - }); - }; + function() { + angular.copy($scope.originalCustomFunctionDeclarations, $scope.transformation + .customFunctionDeclarations); + }); + }; $scope.loadDistribution = function() { $mdDialog.show({ diff --git a/app/scripts/controllers/transformations.js b/app/scripts/controllers/transformations.js index a5213c7..f4f5755 100644 --- a/app/scripts/controllers/transformations.js +++ b/app/scripts/controllers/transformations.js @@ -1,7 +1,7 @@ 'use strict'; angular.module('grafterizerApp') - .controller('TransformationsCtrl', function($scope, ontotextAPI, $state) { + .controller('TransformationsCtrl', function($scope, ontotextAPI, dataGraftApi, $state) { var showTransformations = function(data) { $scope.transformations = data['dcat:record'].reverse(); diff --git a/app/scripts/controllers/utilityfunctions.js b/app/scripts/controllers/utilityfunctions.js new file mode 100644 index 0000000..691ba26 --- /dev/null +++ b/app/scripts/controllers/utilityfunctions.js @@ -0,0 +1,419 @@ +'use strict'; + +/** + * @ngdoc function + * @name grafterizerApp.controller:UtilityfunctionsCtrl + * @description + * # UtilityfunctionsCtrl + * Controller of the grafterizerApp + */ +angular.module('grafterizerApp') + .controller('UtilityFunctionsCtrl', function ( + $scope, + $mdDialog, + dataGraftApi) { + + // Some auto generated boiler code: + this.awesomeThings = [ + 'HTML5 Boilerplate', + 'AngularJS', + 'Karma' + ]; + + // settings for the code text field + $scope.codemirrorOpts = { + lineWrapping: true, + lineNumbers: true, + mode: 'clojure', + theme: 'monokai', + readOnly: 'nocursor' + }; + // Fix to properly align line numbers: + window.setTimeout(function() { + _.each(document.getElementsByClassName('CodeMirror'), function(el) { + el.CodeMirror.refresh(); + }); + }, 250); + + + + var _debug_ = false; + var log = function(a) { + if (_debug_) { + console.log(a); + } + } + + /* + Large required refactoring: + ufListAll -> ufAll + Should not be a list, but a dict: + ufListAll[id] = utility function with that id. + When loading a uf for the first time, overwriting similar fields. + Additional fields not stored on the server: + - visible (according to public/private/all, shown list is filtered on this variable) + - isLoaded (if GET on id is already called) + - publicInfo.text (hover text for private/public button) + - changed (boolean for if it can be saved or not) + - showDeleteOptions (boolean for showing the "Sure you want to delete?" option) + - serverHasClojure (boolean if clojure code exists. Makes a different for POST or PUT changed clojure code) + - serverHasConfiguration (boolean. Same as above, to prevent us from loosing other kinds of configurations if clojure does not exist) + - isNew (is this a new utility function or not?) + - nameIsChanged (do we have to update the name as well when saving changed code?) + - nameWarning (make a warning to the user about the name being used already) + + + selectedUF should then just be the id. + + Need two lists with public ids and private ids. + + New utility functions should have id "new" + newUfCounter - this is safe as all IDs are numerical. When saved, we should delete this entry, reload the new one and set the new one as selectedUF. The new id (and updating counter) is done by generateNewUFid(); + + Should really have some unit tests before doing this refactoring... :P + */ + + // New variables + $scope.ufAll = {}; + + $scope.selectedUF = undefined; + var newUFCounter = 0; + var generateNewUFid = function() { + var newID = "new" + newUFCounter; + newUFCounter = newUFCounter + 1; + return newID; + } + + // public and private objects + var publicField = {'text': "Public"}; + var privateField = {'text': "Private"}; + + // Load the list of utility functions + // This should only be done when loading the view. + var loadUFList = function() { + dataGraftApi.utilityFunctionsList().success( function(data) { + for (var i in data) { + var id = data[i].id; + $scope.ufAll[id] = data[i]; + // Adding local fields: + $scope.ufAll[id].visible = true; + $scope.ufAll[id].isLoaded = false; + $scope.ufAll[id].changed = false; + $scope.ufAll[id].showDeleteOption = false; + $scope.ufAll[id].isNew = false; + $scope.ufAll[id].nameIsChanged = false; + $scope.ufAll[id].nameWarning = false; + $scope.ufAll[id].publicInfo = + getPublicInfo(data[i].public); + } + }); + } + loadUFList(); + + + $scope.switchShowAll = true; + $scope.switchShowPublic = true; + $scope.switchShowPublicText = "Public only"; + + $scope.updateUFList = function() { + if ($scope.switchShowAll) { + for (var id in $scope.ufAll) { + $scope.ufAll[id].visible = true; + } + } else { + for (var id in $scope.ufAll) { + $scope.ufAll[id].visible = ($scope.ufAll[id].public == $scope.switchShowPublic); + } + } + } + + // Need to set selectedUF at the end so that we are sure that + // the clojure code is loaded + $scope.setSelectedUF = function(id) { + if (!$scope.ufAll[id].isLoaded) { + log("Loading utility function " + id); + dataGraftApi.utilityFunctionGet(id).success( function(data) { + log("Loaded id " + id + ":\n" + pretty(data)); + + // Copy each field from data into the correct ufAll + for (var i in data) { + $scope.ufAll[id][i] = data[i]; + } + + // Check if configuration field exist + $scope.ufAll[id].serverHasConfiguration = true; + if( typeof($scope.ufAll[id].configuration) === 'undefinied' || $scope.ufAll[id].configuration === null) { + $scope.ufAll[id].serverHasConfiguration = false; + $scope.ufAll[id].configuration = {}; + } + // Check if clojure code exists + $scope.ufAll[id].serverHasClojure = true; + if (typeof($scope.ufAll[id].configuration.code) === 'undefined' || $scope.ufAll[id].configuration.code === null) { + $scope.ufAll[id].serverHasClojure = false; + $scope.ufAll[id].configuration.code = "// No clojure code yet..."; + } + + $scope.ufAll[id].isLoaded = true; + $scope.selectedUF = id; + }); + } else { + $scope.selectedUF = id; + } + } + + $scope.markAsChanged = function() { + $scope.ufAll[$scope.selectedUF].changed = true; + } + + $scope.changePublicity = function(id) { + if ($scope.ufAll[id].isNew) { + changePublicityLocally(id); + } + else { + var patch = {}; + patch.public = !$scope.ufAll[id].public; + dataGraftApi.utilityFunctionPatch(id, patch) + .success(function (data) { + log("changed publicity"); + changePublicityLocally(id); + }); + } + } + + var changePublicityLocally = function(id) { + $scope.ufAll[id].public = !$scope.ufAll[id].public + $scope.ufAll[id].publicInfo = getPublicInfo($scope.ufAll[id].public); + if (!$scope.switchShowAll) { + // The UF will no longer be listed + $scope.selectedUF = undefined; + } + $scope.updateUFList(); + } + + + $scope.showDelete = function() { + $scope.ufAll[$scope.selectedUF].showDeleteOption = true; + } + $scope.abortDelete = function() { + $scope.ufAll[$scope.selectedUF].showDeleteOption = false; + } + + // If the user is fast, the user can change selectedUF before + // the request is successful, and we therefore take id as input + // to be sure we remove the correct entry. + $scope.deleteUtilityFunction = function(id) { + if ($scope.ufAll[id].isNew) { + deleteUFLocally(id); + } else { + dataGraftApi.utilityFunctionDelete(id).success( function(data) { + log("Deleted UF " + id + " successfully"); + deleteUFLocally(id); + }); + } + } + + var deleteUFLocally = function(id) { + delete $scope.ufAll[id]; + if ($scope.selectedUF === id) { + $scope.selectedUF = undefined; + } + } + + + $scope.saveChanges = function(id) { + var patch = {}; + patch.code = $scope.ufAll[id].configuration.code; + log("Patch from code field:\n" + pretty(patch)); + if (!$scope.ufAll[id].serverHasConfiguration) { + log("Creating configuration with clojure for " + id); + dataGraftApi.utilityFunctionCreateConfiguration(id, patch) + .success( function(data) { + $scope.ufAll[id].changed = false; + $scope.ufAll[id].serverHasConfiguration = true; + $scope.ufAll[id].serverHasClojure = true; + logServerUtilityFunction(id); + updateNameServerSide(id); + }); + } else if (!$scope.ufAll[id].serverHasClojure) { + log("Creating configuration code key for " + id); + dataGraftApi.utilityFunctionCreateConfigurationByKey(id, "code", patch.code) + .success( function(data) { + $scope.ufAll[id].changed = false; + $scope.ufAll[id].serverHasClojure = true; + logServerUtilityFunction(id); + updateNameServerSide(id); + }); + } else { + log("Updating clojure for " + id); + dataGraftApi.utilityFunctionUpdateConfigurationByKey(id, "code", $scope.ufAll[id].configuration.code) + .success( function(data) { + $scope.ufAll[id].changed = false; + log("Response from save changes: " + pretty(data)); + logServerUtilityFunction(id); + updateNameServerSide(id); + }); + } + } + + var updateNameServerSide = function(id) { + if ($scope.ufAll[id].nameIsChanged) { + var patchedUF = {}; + patchedUF.name = $scope.ufAll[id].name; + log("Should update name to be: " + pretty(patchedUF)); + dataGraftApi.utilityFunctionPatch(id, patchedUF).success( + function(data) { + log("Name updated with response: " + pretty(data)); + }); + } + } + + // Saving a brand new utility function + $scope.saveNewUtilityFunction = function(id) { + // Should we build this object here, or in datagraftapi.js??? + var newUF = {}; + newUF.public = $scope.ufAll[id].public; + newUF.name = $scope.ufAll[id].name; + newUF.configuration = {}; + newUF.configuration.code = $scope.ufAll[id].configuration.code; + log("creating new utilityFunction from:\n" + pretty(newUF)); + dataGraftApi.utilityFunctionCreate(newUF).success(function(data) { + log("Creating new UF - response from server:\n" + pretty(data)); + var reloadedUF = $scope.ufAll[id]; + reloadedUF.isNew = false; + reloadedUF.isLoaded = true; + reloadedUF.changed = false; + //reloadedUF.serverHasClojure = true; + reloadedUF.id = data.id; + delete $scope.ufAll[id]; + $scope.ufAll[data.id] = reloadedUF; + $scope.setSelectedUF(data.id); + + // Hack fix to store clojure: + $scope.saveChanges(data.id); + + }); + + } + + + + + var logServerUtilityFunction = function(id) { + dataGraftApi.utilityFunctionGet(id).success( function(data) { + log("Server version of " + id + ":\n" + pretty(data)); + }); + + } + + $scope.reloadUtilityFunction = function(id) { + log("Resetting: " + id); + $scope.ufAll[id].isLoaded = false; + $scope.ufAll[id].changed = false; + $scope.setSelectedUF(id); + } + + + $scope.createNewUtilityFunction = function() { + var newUF = {}; + newUF.isNew = true; + + newUF.visible = true; + newUF.isLoaded = true; + newUF.public = false; + newUF.publicInfo = getPublicInfo(newUF.public); + newUF.changed = true; + newUF.showDeleteOption = false; + newUF.serverHasClojure = false; + newUF.configuration = {}; + newUF.configuration.code = "// Please write your clojure code here"; + + var id = generateNewUFid(); + $scope.ufAll[id] = newUF; + + $scope.setSelectedUF(id); + } + + + // --- helpful "private" functions + var pretty = function(data) { + return JSON.stringify(data, null, 2); + } + + var getPublicInfo = function(pub) { + if (typeof(pub) !== 'undefined' && pub) { + return publicField; + } else { + return privateField; + } + } + + $scope.createNewTextTransformation = function() { + log("Not implemneted: Create new text transformation"); + } + + + $scope.cancelUtilityFunctionChanges = function() { + $mdDialog.cancel(); + } + + // clojure.substr(clojure.indexOf("(defn ") + 6, clojure.substr(clojure.indexOf("(defn ") + 6).indexOf(" ")) + + + var functionName = /\(defn?\s+([^\s\)]+)/i; + + // $Watch gives a list of variables that should have more complex update behaviour when they are modified. + $scope.$watch('ufAll[selectedUF].configuration.code', function() { + var id = $scope.selectedUF; + + if (!id) return; + + var code = $scope.ufAll[id].configuration.code; + if (!code) return; + + var m = code.match(functionName); + if (m) { + var name = m[1]; + if ($scope.ufAll[id].name == name) return; + + $scope.ufAll[id].name = name; + $scope.ufAll[id].nameIsChanged = true; + $scope.ufAll[id].changed = true; + + var conflict = false; + for (var i in $scope.ufAll) { + if (($scope.ufAll[i].name == name) && (i != id)) { + conflict = true; + } + } + $scope.ufAll[id].nameWarning = conflict; + + } + }); + + // We need to have selected a UF in order to modify the code + $scope.$watch('selectedUF', function() { + var undef = (typeof $scope.selectedUF === 'undefined'); + var nocursor = ($scope.codemirrorOpts.readOnly == 'nocursor'); + + if (undef && !nocursor) { + $scope.codemirrorOpts.readOnly = 'nocursor'; + } + else if (!undef && nocursor) { + $scope.codemirrorOpts.readOnly = false; + } + }); + + // Need to monitor two more variables... This becomes messy... + $scope.$watch('switchShowAll', function() { + if ($scope.selectedUF === undefined) return; + if ($scope.switchShowAll) return; + if ($scope.switchShowPublic === $scope.ufAll[$scope.selectedUF].public) return; + + $scope.selectedUF = undefined; + }); + $scope.$watch('switchShowPublic', function() { + if ($scope.selectedUF === undefined) return; + if ($scope.switchShowPublic === $scope.ufAll[$scope.selectedUF].public) return; + + $scope.selectedUF = undefined; + }); +}); diff --git a/app/scripts/services/datagraftapi.js b/app/scripts/services/datagraftapi.js new file mode 100644 index 0000000..8d6eb5f --- /dev/null +++ b/app/scripts/services/datagraftapi.js @@ -0,0 +1,171 @@ +'use strict'; + +/** + * @ngdoc service + * @name grafterizerApp.dataGraftApi + * @description + * # dataGraftApi + * Service in the grafterizerApp. + */ +angular.module('grafterizerApp') + .service('dataGraftApi', function ($http, $httpParamSerializer) { + // AngularJS will instantiate a singleton by calling "new" on this function + + var dgApi = new API.Client.DefaultApi($http=$http, $httpParamSerializer=$httpParamSerializer); + + // Using the reserved keyword making the server find the correct username automagically + this.username = "myassets"; + + + this.apiKey = "s4n7s3ehlrbi:8l29krbjh0jnp2h"; + + //Need to set correct headers for accepting headers only. + // Otherwise the response will be given as a html + dgApi.defaultHeaders = angular.extend(dgApi.defaultHeaders, {'Accept': 'application/json'}); + dgApi.defaultHeaders= angular.extend(dgApi.defaultHeaders, {'X-user-token': this.apiKey}) + + + + this.test = function() { + dgApi.userTransformationsGet(this.username) + .success( function (data) { + console.log(data); + }); + } + + // ---------- TRANSFORMATIONS ---------------- + + this.getTransformation = function(id) { + return dgApi.userTransformationsIdGet(this.username, id); // /{user}/transformation/{id} + } + + + this.transformationCreateMetadata = function(id, metadata) { + return dgApi.userTransformationsIdMetadataPost(this.username, id, metadata); + } + + this.transformationGetMetadata = function(id) { + return dgApi.userTransformationsIdMetadataGet(this.username, id); + } + + + this.transformationGetMetadataByKey = function(id, key) { + return dgApi.userTransformationsIdMetadataKeyGet(this.username, id, key); + } + + this.transformationUpdateMetadataByKey = function(id, key, newValue) { + dgApi.defaultHeaders['Content-Type'] = 'text/plain'; + var request = dgApi.userTransformationsIdMetadataKeyPut(this.username, id, key, newValue); + delete dgApi.defaultHeaders['Content-Type']; + + return request; + } + + this.transformationCreateMetadataByKey = function(id, key, value) { + dgApi.defaultHeaders['Content-Type'] = 'text/plain'; + var request = dgApi.userTransformationsIdMetadataKeyPost(this.username, id, key, value); + delete dgApi.defaultHeaders['Content-Type']; + + return request; + } + + this.transformationDeleteMetadataByKey = function(id, key) { + return dgApi.userTransformationsIdMetadataKeyDelete(this.username, id, key); + } + + // ----- TRANSFORMATION CONFIGURATION ---------------- + + this.transformationGetConfiguration = function(id) { + return dgApi.userTransformationsIdConfigurationGet(this.username, id); + } + + this.transformationCreateConfiguration = function(id, config) { + return dgApi.userTransformationsIdConfigurationPost(this.username, id, config); + } + + this.transformationGetConfigurationByKey = function(id, key) { + return dgApi.userTransformationsIdConfigurationKeyGet(this.username, id, key); + } + + this.transformationUpdateConfigurationByKey = function(id, key, newValue) { + dgApi.defaultHeaders['Content-Type'] = 'text/plain'; + var request = dgApi.userTransformationsIdConfigurationKeyPut(this.username, id, key, newValue); + delete dgApi.defaultHeaders['Content-Type']; + + return request; + } + + this.transformationCreateConfigurationByKey = function(id, key, value) { + dgApi.defaultHeaders['Content-Type'] = 'text/plain'; + var request = dgApi.userTransformationsIdConfigurationKeyPost(this.username, id, key, value); + delete dgApi.defaultHeaders['Content-Type']; + + return request; + } + + this.transformationDeleteConfigurationByKey = function(id, key) { + return dgApi.userTransformationsIdConfigurationKeyDelete(this.username, id, key); + } + + + // ----- UTILITY FUNCTIONS CONFIGURATION ------------ + + this.utilityFunctionGetConfiguration = function(id) { + return dgApi.userUtilityFunctionsIdConfigurationGet(this.username, id); + } + + this.utilityFunctionCreateConfiguration = function(id, config) { + return dgApi.userUtilityFunctionsIdConfigurationPost(this.username, id, config); + } + + this.utilityFunctionGetConfigurationByKey = function(id, key) { + return dgApi.userUtilityFunctionsIdConfigurationKeyGet(this.username, id, key); + } + + this.utilityFunctionUpdateConfigurationByKey = function(id, key, newValue) { + dgApi.defaultHeaders['Content-Type'] = 'text/plain'; + var request = dgApi.userUtilityFunctionsIdConfigurationKeyPut(this.username, id, key, newValue); + delete dgApi.defaultHeaders['Content-Type']; + + return request; + } + + this.utilityFunctionCreateConfigurationByKey = function(id, key, value) { + dgApi.defaultHeaders['Content-Type'] = 'text/plain'; + var request = dgApi.userUtilityFunctionsIdConfigurationKeyPost(this.username, id, key, value); + delete dgApi.defaultHeaders['Content-Type']; + + return request; + } + + this.utilityFunctionDeleteConfigurationByKey = function(id, key) { + return dgApi.userUtilityFunctionsIdConfigurationKeyDelete(this.username, id, key); + } + + + + + // ----- UTILITY FUNCTIONS --------------- + + this.utilityFunctionsList = function() { + return dgApi.userUtilityFunctionsGet(this.username); + } + + this.utilityFunctionCreate = function(utilityFunction) { + return dgApi.userUtilityFunctionsPost(this.username, utilityFunction) + } + + this.utilityFunctionGet = function(id) { + return dgApi.userUtilityFunctionsIdGet(this.username, id); + } + + this.utilityFunctionDelete = function(id) { + return dgApi.userUtilityFunctionsIdDelete(this.username, id); + } + + this.utilityFunctionPatch = function(id, patchedUtilityFunction) { + return dgApi.userUtilityFunctionsIdPatch(this.username, id, patchedUtilityFunction); + } + + + }); diff --git a/app/styles/main.scss b/app/styles/main.scss index dbeeca4..d074347 100644 --- a/app/styles/main.scss +++ b/app/styles/main.scss @@ -743,6 +743,10 @@ graph-mapping div { } } +.utility-functions .sin-functions-list .sin-utility-function-sub-buttons { + background-color: transparent; +} + .cm-s-monokai .CodeMirror-linenumber { color: #717171; } @@ -1015,3 +1019,5 @@ md-toolbar .md-button[type=submit] { } } + + diff --git a/app/swagger/compile.bat b/app/swagger/compile.bat new file mode 100644 index 0000000..bad050f --- /dev/null +++ b/app/swagger/compile.bat @@ -0,0 +1,7 @@ + +REM this is a comment + +java -jar swagger-codegen-cli-215.jar generate -i datagraftAPI.yaml -l typescript-angular -o datagraftClient + +REM To install tsc: npm install -g typescript +tsc datagraftClient\API\Client\DefaultAPI.ts diff --git a/app/swagger/datagraftAPI.yaml b/app/swagger/datagraftAPI.yaml new file mode 100644 index 0000000..81a0162 --- /dev/null +++ b/app/swagger/datagraftAPI.yaml @@ -0,0 +1,2932 @@ +--- +swagger: '2.0' +info: + version: "1.0.0" + title: DataGraft Reborn + description: | +host: 127.0.0.1:3000 +schemes: + - http + - https +securityDefinitions: + GitHub access code: + type: oauth2 + scopes: + user: 'Grants read/write access to profile info only. Note that this scope includes user:email and user:follow.' + 'user:email': Grants read access to a user’s email addresses. + 'user:follow': Grants access to follow or unfollow other users. + flow: accessCode + authorizationUrl: 'https://github.com/login/oauth/authorize' + tokenUrl: 'https://github.com/login/oauth/access_token' + APIKey: + type: apiKey + in: header + name: X-user-token +security: + - GitHub access code: + - user + - 'user:email' + - 'user:follow' + - APIKey: [] + +paths: + /api_keys: + get: + description: Get all of a user's API keys + produces: + - application/json + security: + - APIKey: [] + responses: + 200: + description: Success in retrieving API keys + post: + description: Create new API key + produces: + - application/json + consumes: + - application/json + parameters: + - in: body + name: api_key + schema: + $ref: '#/definitions/APIKey' + required: true + + security: + - APIKey: [] + responses: + 200: + description: Successfully created API key + + /api_keys/{id}: + get: + description: Get the attributes of the API key + produces: + - application/json + consumes: + - application/json + parameters: + - in: path + name: id + description: ID of the API key to be deleted + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully obtained info about API key + patch: + description: Update an API key + produces: + - application/json + consumes: + - application/json + parameters: + - in: path + name: id + description: ID of the API key to be updated + required: true + type: string + + - in: body + name: api_key + schema: + $ref: '#/definitions/APIKeyPatch' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated API key + delete: + description: Update an API key + produces: + - application/json + consumes: + - application/json + parameters: + - in: path + name: id + description: ID of the API key to be deleted + required: true + type: string + security: + - APIKey: [] + responses: + 204: + description: Successfully deleted API key + + + /{user}/catalogues: + get: + description: Obtain a list of all public catalogues for a user. If provided with an enabled API key for that user, returns also the private catalogues. + produces: + - application/json + parameters: + - name: user + required: true + in: path + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved list of catalogues + post: + description: Creates a new catalogue for the given user + produces: + - application/json + parameters: + - name: user + required: true + description: ID of the user for whom to obtain the catalogue + in: path + type: string + - name: catalogue + in: body + schema: + $ref: '#/definitions/Catalogue' + required: true + security: + - APIKey: [] + responses: + 201: + description: Successfully created a catalogue + + /{user}/catalogues/{id}: + get: + description: Obtain the attributes of the catalogue + produces: + - application/json + parameters: + - in: path + name: user + description: User that the catalogue belongs to + required: true + type: string + - in: path + name: id + description: ID (slug) of the catalogue to retrieve + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully obtained the catalogue + put: + description: Update a catalogue (replace the currently stored one with the one provided in this call) + produces: + - application/json + parameters: + - in: path + name: user + description: User that the catalogue belongs to + required: true + type: string + - in: path + name: id + description: ID (slug) of the catalogue to replace + required: true + type: string + - in: body + name: catalogue + schema: + $ref: '#/definitions/Catalogue' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully replaced the catalogue + patch: + description: Update a catalogue (only change the properties provided in the call) + produces: + - application/json + parameters: + - in: path + name: user + description: User that the catalogue belongs to + required: true + type: string + - in: path + name: id + description: ID (slug) of the catalogue to change + required: true + type: string + - in: body + name: catalogue + schema: + $ref: '#/definitions/Catalogue' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated catalogue + delete: + description: Delete a catalogue + produces: + - application/json + parameters: + - in: path + name: user + description: User that the catalogue belongs to* + required: true + type: string + - in: path + name: id + description: ID (slug) of the catalogue to delete + required: true + type: string + security: + - APIKey: [] + responses: + 204: + description: Successfully deleted the catalogue + + /{user}/catalogues/{id}/star: + post: + description: Star the selected catalogue + produces: + - application/json + parameters: + - name: user + in: path + description: ID of the user for who to star the catalogue + required: true + type: string + - name: id + in: path + description: ID (slug) of the catalogue to be stared + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully stared the caralogue + + /{user}/catalogue/{id}/unstar: + post: + description: Unstar the selected catalogue + produces: + - application/json + parameters: + - in: path + name: user + description: ID of the user for who to unstar the catalogue + required: true + type: string + - in: path + name: id + description: ID (slug) of the catalogue to be unstared + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully unstared the catalogue + + + /{user}/data_distributions: + get: + description: Obtain a list of all public data distributions for a user. If provided with an enabled API key for that user, returns also the private data distributions. + produces: + - application/json + parameters: + - name: user + required: true + in: path + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved list of data distributions + post: + description: TODO DUE TO SWAGGER BUG THIS NEEDS TO BE TESTED WITH THE AUTO-GENERATED CLIENTS! Create a new data distribution + consumes: + - multipart/form-data + produces: + - application/json + parameters: + - name: user + required: true + in: path + type: string + + - in: formData + name: public + required: false + type: boolean + + - in: formData + name: name + required: false + type: string + + - in: formData + name: code + required: false + type: string + + - in: formData + name: file + required: false + type: file + security: + - APIKey: [] + responses: + 200: + description: Successfully created data distribution + + /{user}/data_distributions/{id}: + get: + description: Obtain the attributes of a data distribution + produces: + - application/json + parameters: + - in: path + name: user + description: User that the data distribution belongs to + required: true + type: string + + - in: path + name: id + description: ID (slug) of the data distribution to retrieve + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully obtained distribution + put: + description: TO BE IMPLEMENTED - USE PATCH! Update a data distribution (replace the currently stored one with the one provided in the call) + produces: + - application/json + parameters: + - in: path + name: user + description: User that the data distribution belongs to + required: true + type: string + + - in: path + name: id + description: ID (slug) of the data distribution to change + required: true + type: string + + - in: formData + name: public + required: true + type: boolean + + - in: formData + name: name + required: true + type: string + allowEmptyValue: true + + - in: formData + name: code + required: true + type: string + allowEmptyValue: true + + - in: formData + name: file + required: true + type: file + allowEmptyValue: true + security: + - APIKey: [] + responses: + 200: + description: OK + patch: + description: TODO DUE TO SWAGGER BUG THIS NEEDS TO BE TESTED WITH THE AUTO-GENERATED CLIENTS! Update a data distribution (only change the properties provided in the call) + parameters: + - in: path + name: user + description: Data distribution to change + required: true + type: string + + - in: path + name: id + description: ID (slug) of the data distribution to change + required: true + type: string + + - in: formData + name: public + required: true + type: boolean + + - in: formData + name: name + required: false + type: string + + - in: formData + name: code + required: false + type: string + + - in: formData + name: file + required: false + type: file + security: + - APIKey: [] + responses: + 200: + description: OK + delete: + description: Delete a data distribution + produces: + - application/json + parameters: + - in: path + name: user + description: User that the data distribution belongs to + required: true + type: string + + - in: path + name: id + description: ID (slug) of the data distribution to delete + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted distribution + + /{user}/data_distributions/{id}/star: + post: + description: (NOT TESTED) Star the selected data distribution + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to star the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution to be stared + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully gave the data distribution a star + + /{user}/data_distributions/{id}/unstar: + post: + description: (NOT TESTED) Unstar the selected data distribution + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to unstar the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution to be unstared + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully unstared the data distribution + + /{user}/data_distributions/{id}/metadata: + get: + description: Retrieve meta data for the chosen data distribution + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the meta data for the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution for which to retrieve the meta data + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the meta data for the data distribution + post: + description: Create meta data for the chosen data distribution + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to create the meta data for the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution for which to create the meta data + type: string + - name: metadata + in: body + schema: + $ref: '#/definitions/MetaData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the meta data + put: + description: Update meta data for the chosen data distribution + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the meta data for the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution for which to update the meta data + type: string + - name: metadata + in: body + schema: + $ref: '#/definitions/MetaData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the meta data + delete: + description: Delete meta data for the chosen data distribution + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the meta data for the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution for which to delete the meta data + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the meta datav for the data distribution + + /{user}/data_distributions/{id}/metadata/{key}: + get: + description: Retrieve meta data according to the given key for the chosen data distribution + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the meta data for the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution for which to retrieve the meta data + type: string + - name: key + in: path + description: The key of the meta data field to obtain + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the meta data for the data distribution + post: + description: Create a meta data field for the chosen data distribution + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to create the meta data for the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution for which to create the meta data + type: string + - name: key + in: path + required: true + description: Key of the metadata to create + type: string + - name: metadata + in: body + schema: + $ref: '#/definitions/MetaData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the meta data + put: + description: Update a meta data field for the chosen data distribution + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the meta data for the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution for which to update the meta data + type: string + - name: key + in: path + description: The key of the meta data field to update + required: true + type: string + - name: metadata + in: body + schema: + $ref: '#/definitions/MetaData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the meta data field + delete: + description: Delete a metadata field for the chosen data distribution + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the meta data for the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution for which to delete the meta data + type: string + - name: key + in: path + description: The key of the meta data field to delete + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the meta data field + + /{user}/data_distributions/{id}/configuration: + get: + description: Retrieve configuration for the chosen data distribution + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the configuration for the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution for which to retrieve the configuration + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the configuration for the data distribution + post: + description: Create configuration for the chosen data distribution + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to create the configuration for the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution for which to create the configuration + type: string + - name: configuration + in: body + schema: + $ref: '#/definitions/Configuration' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the configuration + put: + description: Update configuration for the chosen data distribution + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the configuration for the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution for which to update the configuration + type: string + - name: configuration + in: body + schema: + $ref: '#/definitions/Configuration' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the configuration + delete: + description: Delete configuration for the chosen data distribution + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the configuration for the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution for which to delete the configuration + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the configuration for the data distribution + + /{user}/data_distributions/{id}/configuration/{key}: + get: + description: Retrieve configuration according to the given key for the chosen data distribution + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the configuration for the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution for which to retrieve the configuration + type: string + - name: key + in: path + description: The key of the configuration field to obtain + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the configuration for the data distribution + post: + description: Create a configuration field for the chosen data distribution + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to create the configuration for the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution for which to create the configuration + type: string + - name: key + in: path + required: true + description: Key of the configuration to create + type: string + - name: configuration + in: body + schema: + $ref: '#/definitions/Configuration' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the configuration + put: + description: Update a configuration field for the chosen data distribution + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the configuration for the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution for which to update the configuration + type: string + - name: key + in: path + description: The key of the configuration field to update + required: true + type: string + - name: configuration + in: body + schema: + $ref: '#/definitions/Configuration' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the configuration field + delete: + description: Delete a configuration field for the chosen data distribution + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the configuration for the data distribution + type: string + - name: id + in: path + required: true + description: ID (slug) of the data distribution for which to delete the configuration + type: string + - name: key + in: path + description: The key of the configuration field to delete + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the configuration field + + /{user}/transformations: + get: + description: Obtain a list of all public transformations for a user. If provided with an enabled API key for that user, returns also the private transformations. + produces: + - application/json + parameters: + - name: user + required: true + description: ID of the user for whom to obtain the list + in: path + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved list of transformations + post: + description: Creates a new transformation for the given user. + produces: + - application/json + parameters: + - name: user + required: true + description: ID of the user for whom to obtain the list + in: path + type: string + + - name: transformation + in: body + schema: + $ref: '#/definitions/Transformation' + required: true + security: + - APIKey: [] + responses: + 201: + description: Successfully created a transformation + + /{user}/transformations/{id}: + get: + description: Obtain the attributes of a transformation + produces: + - application/json + parameters: + - in: path + name: user + description: User that the transformation belongs to + required: true + type: string + + - in: path + name: id + description: ID (slug) of the transformation to retrieve + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully obtained transformation + put: + description: TO BE IMPLEMENTED - USE PATCH! Update a transformation (replace the currently stored one with the one provided in the call) + produces: + - application/json + parameters: + - in: path + name: user + description: User that the transformation belongs to + required: true + type: string + + - in: path + name: id + description: ID (slug) of the transformation to change + required: true + type: string + + - name: transformation + in: body + schema: + $ref: '#/definitions/Transformation' + required: true + security: + - APIKey: [] + responses: + 200: + description: OK + patch: + description: Update a transformation (only change the properties provided in the call) + produces: + - application/json + parameters: + - in: path + name: user + description: User that the transformation belongs to + required: true + type: string + + - in: path + name: id + description: ID (slug) of the transformation to change + required: true + type: string + + - name: transformation + in: body + schema: + $ref: '#/definitions/Transformation' + required: true + security: + - APIKey: [] + responses: + 200: + description: OK + delete: + description: Delete a transformation + produces: + - application/json + parameters: + - in: path + name: user + description: User that the transformation belongs to + required: true + type: string + + - in: path + name: id + description: ID (slug) of the transformation to delete + required: true + type: string + security: + - APIKey: [] + responses: + 204: + description: Successfully deleted transformation + + /{user}/transformations/{id}/star: + post: + description: Star the selected transformation + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to star the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation to be stared + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully gave the transformation a star + + /{user}/transformations/{id}/unstar: + post: + description: Unstar the selected transformation + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to unstar the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation to be unstared + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully unstared the transformation + + /{user}/transformations/{id}/metadata: + get: + description: Retrieve meta data for the chosen transformation + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the meta data for the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation for which to retrieve the meta data + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the meta data for the transformation + post: + description: Create meta data for the chosen transformation + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to create the meta data for the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation for which to create the meta data + type: string + - name: metadata + in: body + schema: + $ref: '#/definitions/MetaData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the meta data + put: + description: Update meta data for the chosen transformation + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the meta data for the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation for which to update the meta data + type: string + - name: metadata + in: body + schema: + $ref: '#/definitions/MetaData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the meta data + delete: + description: Delete meta data for the chosen transformation + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the meta data for the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation for which to delete the meta data + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the meta datav for the transformation + + /{user}/transformations/{id}/metadata/{key}: + get: + description: Retrieve meta data according to the given key for the chosen transformation + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the meta data for the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation for which to retrieve the meta data + type: string + - name: key + in: path + description: The key of the meta data field to obtain + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the meta data for the transformation + post: + description: Create a meta data field for the chosen transformation + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to create the meta data for the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation for which to create the meta data + type: string + - name: key + in: path + required: true + description: Key of the metadata to create + type: string + - name: metadata + in: body + schema: + $ref: '#/definitions/MetaData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the meta data + put: + description: Update a meta data field for the chosen transformation + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the meta data for the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation for which to update the meta data + type: string + - name: key + in: path + description: The key of the meta data field to update + required: true + type: string + - name: metadata + in: body + schema: + $ref: '#/definitions/MetaData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the meta data field + delete: + description: Delete a metadata field for the chosen transformation + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the meta data for the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation for which to delete the meta data + type: string + - name: key + in: path + description: The key of the meta data field to delete + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the meta data field + + /{user}/transformations/{id}/configuration: + get: + description: Retrieve configuration for the chosen transformation + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the configuration for the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation for which to retrieve the configuration + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the configuration for the transformation + post: + description: Create configuration for the chosen transformation + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to create the configuration for the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation for which to create the configuration + type: string + - name: configuration + in: body + schema: + $ref: '#/definitions/Configuration' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the configuration + put: + description: Update configuration for the chosen transformation + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the configuration for the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation for which to update the configuration + type: string + - name: configuration + in: body + schema: + $ref: '#/definitions/Configuration' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the configuration + delete: + description: Delete configuration for the chosen transformation + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the configuration for the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation for which to delete the configuration + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the configuration for the transformation + + /{user}/transformations/{id}/configuration/{key}: + get: + description: Retrieve configuration according to the given key for the chosen transformation + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the configuration for the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation for which to retrieve the configuration + type: string + - name: key + in: path + description: The key of the configuration field to obtain + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the configuration for the transformation + post: + description: Create a configuration field for the chosen transformation + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to create the configuration for the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation for which to create the configuration + type: string + - name: key + in: path + required: true + description: Key of the configuration to create + type: string + - name: configuration + in: body + schema: + $ref: '#/definitions/Configuration' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the configuration + put: + description: Update a configuration field for the chosen transformation + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the configuration for the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation for which to update the configuration + type: string + - name: key + in: path + description: The key of the configuration field to update + required: true + type: string + - name: configuration + in: body + schema: + $ref: '#/definitions/Configuration' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the configuration field + delete: + description: Delete a configuration field for the chosen transformation + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the configuration for the transformation + type: string + - name: id + in: path + required: true + description: ID (slug) of the transformation for which to delete the configuration + type: string + - name: key + in: path + description: The key of the configuration field to delete + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the configuration field + + + /{user}/queriable_data_stores: + get: + description: Obtain a list of all public queriable data for a user. If provided with an enabled API key for that user, returns also the private queriable data. + produces: + - application/json + parameters: + - name: user + required: true + description: ID of the user for whom to obtain the queriable data + in: path + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the list of queriable data. + + post: + description: Create a new queriable data to be stored + produces: + - application/json + parameters: + - name: user + required: true + description: ID of the user for whom to obtain the quireable data + in: path + type: string + - name: queriable_data_store + in: body + schema: + $ref: '#/definitions/QueriableData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the queriable data + + /{user}/queriable_data_stores/{id}: + get: + description: Obtain the attributes of the given queriable data + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the queriable data + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data to retrieve + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully obtained queriable data + delete: + description: Delete a queriable data + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user who wants to delete the queriable data + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data to delete + type: string + security: + - APIKey: [] + responses: + 204: + description: Successfully deleted the queriable data + put: + description: Update a queriable data (replace the currently stored one with the one provided in the call) + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the queriable data + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data to retrieve + type: string + - name: queriable_data_store + in: body + schema: + $ref: '#/definitions/QueriableData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the queriable data + put: + description: Update a queriable data (replace the currently stored one with the one provided in the call) + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the queriable data + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data to retrieve + type: string + - name: queriable_data_store + in: body + schema: + $ref: '#/definitions/QueriableData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the queriable data + patch: + description: Update a queriable data (only change the properties provided in the call) + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the queriable data + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data to retrieve + type: string + - name: queriable_data_store + in: body + schema: + $ref: '#/definitions/QueriableData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the queriable data + + /{user}/queriable_data_stores/{id}/edit: + get: + description: NOT IMPLEMENTED?? Doesn't work... (Retrieve the code for the queriable data for edit) + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to edit the queriable data + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data to be edited + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the queriable data + + /{user}/queriable_data_stores/{id}/star: + post: + description: Star the selected queriable data + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to star the queriable data + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data to be stared + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully gave the queriable data a star + + /{user}/queriable_data_stores/{id}/unstar: + post: + description: Unstar the selected queriable data + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to unstar the queriable data + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data to be unstared + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully unstared the queriable data + + /{user}/queriable_data_stores/{id}/versions: + get: + description: INVALID! Is this implemented?? (Retrieve versions of the queriable data) + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the queriable data + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data to retrieve + type: string + security: + - APIKey: [] + responses: + 200: + description: Information about the versions of the queried queriable data + + /{user}/queriable_data_stores/{id}/metadata: + get: + description: Retrieve meta data for the chosen queriable data store + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the meta data for the queriable data store + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data store for which to retrieve the meta data + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the meta data for the queriable data store + post: + description: Create meta data for the chosen queriable data store + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to create the meta data for the queriable data store + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data store for which to create the meta data + type: string + - name: metadata + in: body + schema: + $ref: '#/definitions/MetaData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the meta data + put: + description: Update meta data for the chosen queriable data store + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the meta data for the queriable data store + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data store for which to update the meta data + type: string + - name: metadata + in: body + schema: + $ref: '#/definitions/MetaData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the meta data + delete: + description: Delete meta data for the chosen queriable data store + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the meta data for the queriable data store + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data store for which to delete the meta data + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the meta datav for the queriable data store + + /{user}/queriable_data_stores/{id}/metadata/{key}: + get: + description: Retrieve meta data according to the given key for the chosen queriable data store + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the meta data for the queriable data store + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data store for which to retrieve the meta data + type: string + - name: key + in: path + description: The key of the meta data field to obtain + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the meta data for the queriable data store + post: + description: Create a meta data field for the chosen queriable data store + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to create the meta data for the queriable data store + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data store for which to create the meta data + type: string + - name: key + in: path + required: true + description: Key of the metadata to create + type: string + - name: metadata + in: body + schema: + $ref: '#/definitions/MetaData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the meta data + put: + description: Update a meta data field for the chosen queriable data store + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the meta data for the queriable data store + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data store for which to update the meta data + type: string + - name: key + in: path + description: The key of the meta data field to update + required: true + type: string + - name: metadata + in: body + schema: + $ref: '#/definitions/MetaData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the meta data field + delete: + description: Delete a metadata field for the chosen queriable data store + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the meta data for the queriable data store + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data store for which to delete the meta data + type: string + - name: key + in: path + description: The key of the meta data field to delete + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the meta data field + + /{user}/queriable_data_stores/{id}/configuration: + get: + description: Retrieve configuration for the chosen queriable data store + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the configuration for the queriable data store + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data store for which to retrieve the configuration + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the configuration for the queriable data store + post: + description: Create configuration for the chosen queriable data store + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to create the configuration for the queriable data store + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data store for which to create the configuration + type: string + - name: configuration + in: body + schema: + $ref: '#/definitions/Configuration' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the configuration + put: + description: Update configuration for the chosen queriable data store + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the configuration for the queriable data store + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data store for which to update the configuration + type: string + - name: configuration + in: body + schema: + $ref: '#/definitions/Configuration' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the configuration + delete: + description: Delete configuration for the chosen queriable data store + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the configuration for the queriable data store + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data store for which to delete the configuration + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the configuration for the queriable data store + + /{user}/queriable_data_stores/{id}/configuration/{key}: + get: + description: Retrieve configuration according to the given key for the chosen queriable data store + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the configuration for the queriable data store + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data store for which to retrieve the configuration + type: string + - name: key + in: path + description: The key of the configuration field to obtain + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the configuration for the queriable data store + post: + description: Create a configuration field for the chosen queriable data store + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to create the configuration for the queriable data store + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data store for which to create the configuration + type: string + - name: key + in: path + required: true + description: Key of the configuration to create + type: string + - name: configuration + in: body + schema: + $ref: '#/definitions/Configuration' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the configuration + put: + description: Update a configuration field for the chosen queriable data store + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the configuration for the queriable data store + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data store for which to update the configuration + type: string + - name: key + in: path + description: The key of the configuration field to update + required: true + type: string + - name: configuration + in: body + schema: + $ref: '#/definitions/Configuration' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the configuration field + delete: + description: Delete a configuration field for the chosen queriable data store + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the configuration for the queriable data store + type: string + - name: id + in: path + required: true + description: ID (slug) of the queriable data store for which to delete the configuration + type: string + - name: key + in: path + description: The key of the configuration field to delete + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the configuration field + + + /{user}/utility_functions: + get: + description: Obtain a list of all public utility functions for a user. If provided with an enabled API key for that user, returns also the private utility functions. + produces: + - application/json + parameters: + - name: user + required: true + description: ID of the user for whom to obtain the utility functions + in: path + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the list of utility functions + post: + description: Create a new utility function + produces: + - application/json + parameters: + - name: user + required: true + description: ID of the user for whom to create the utility function + in: path + type: string + - name: utility_function + in: body + schema: + $ref: '#/definitions/UtilityFunction' + required: true + security: + - APIKey: [] + responses: + 201: + description: Successfully created the utility function + + /{user}/utility_functions/{id}: + get: + description: Obtain the attributes of the given utility function. + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function to retrieve + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully obtained the utility function + delete: + description: Delete the given utility function + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function to delete + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the utility function + put: + description: Update a utility function by replacing the currently stored one with the one provided in this request + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function to be updated + type: string + - name: utility_function + in: body + schema: + $ref: '#/definitions/UtilityFunction' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the utility function + patch: + description: Update a utility function by replacing only the parts provided in this request + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function to be updated + type: string + - name: utility_function + in: body + schema: + $ref: '#/definitions/UtilityFunction' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the utility function + + /{user}/utility_functions/{id}/star: + post: + description: Star the selected utility function + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to star the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function to be stared + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully gave the utility function a star + + /{user}/utility_functions/{id}/unstar: + post: + description: Unstar the selected utility function + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to unstar the utility function + type: string + - name: id + in: path + required: true + description: ID (slut) of the utility function to be unstared + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully unstared the utility function + + /{user}/utility_functions/{id}/metadata: + get: + description: Retrieve meta data for the chosen utility function + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the meta data for the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function for which to retrieve the meta data + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the meta data for the utility function + post: + description: Create meta data for the chosen utility function + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to create the meta data for the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function for which to create the meta data + type: string + - name: metadata + in: body + schema: + $ref: '#/definitions/MetaData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the meta data + put: + description: Update meta data for the chosen utility function + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the meta data for the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function for which to update the meta data + type: string + - name: metadata + in: body + schema: + $ref: '#/definitions/MetaData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the meta data + delete: + description: Delete meta data for the chosen utility function + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the meta data for the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function for which to delete the meta data + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the meta datav for the utility function + + /{user}/utility_functions/{id}/metadata/{key}: + get: + description: Retrieve meta data according to the given key for the chosen utility function + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the meta data for the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function for which to retrieve the meta data + type: string + - name: key + in: path + description: The key of the meta data field to obtain + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the meta data for the utility function + post: + description: Create a meta data field for the chosen utility function + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to create the meta data for the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function for which to create the meta data + type: string + - name: key + in: path + required: true + description: Key of the metadata to create + type: string + - name: metadata + in: body + schema: + $ref: '#/definitions/MetaData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the meta data + put: + description: Update a meta data field for the chosen utility function + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the meta data for the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function for which to update the meta data + type: string + - name: key + in: path + description: The key of the meta data field to update + required: true + type: string + - name: metadata + in: body + schema: + $ref: '#/definitions/MetaData' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the meta data field + delete: + description: Delete a metadata field for the chosen utility function + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the meta data for the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function for which to delete the meta data + type: string + - name: key + in: path + description: The key of the meta data field to delete + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the meta data field + + /{user}/utility_functions/{id}/configuration: + get: + description: Retrieve configuration for the chosen utility function + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the configuration for the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function for which to retrieve the configuration + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the configuration for the utility function + post: + description: Create configuration for the chosen utility function + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to create the configuration for the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function for which to create the configuration + type: string + - name: configuration + in: body + schema: + $ref: '#/definitions/Configuration' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the configuration + put: + description: Update configuration for the chosen utility function + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the configuration for the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function for which to update the configuration + type: string + - name: configuration + in: body + schema: + $ref: '#/definitions/Configuration' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the configuration + delete: + description: Delete configuration for the chosen utility function + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the configuration for the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function for which to delete the configuration + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the configuration for the utility function + + /{user}/utility_functions/{id}/configuration/{key}: + get: + description: Retrieve configuration according to the given key for the chosen utility function + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to obtain the configuration for the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function for which to retrieve the configuration + type: string + - name: key + in: path + description: The key of the configuration field to obtain + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully retrieved the configuration for the utility function + post: + description: Create a configuration field for the chosen utility function + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to create the configuration for the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function for which to create the configuration + type: string + - name: key + in: path + required: true + description: Key of the configuration to create + type: string + - name: configuration + in: body + schema: + $ref: '#/definitions/Configuration' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully created the configuration + put: + description: Update a configuration field for the chosen utility function + produces: + - application/json + consumes: + - application/json + - text/plain + parameters: + - name: user + in: path + required: true + description: ID of the user for who to update the configuration for the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function for which to update the configuration + type: string + - name: key + in: path + description: The key of the configuration field to update + required: true + type: string + - name: configuration + in: body + schema: + $ref: '#/definitions/Configuration' + required: true + security: + - APIKey: [] + responses: + 200: + description: Successfully updated the configuration field + delete: + description: Delete a configuration field for the chosen utility function + produces: + - application/json + parameters: + - name: user + in: path + required: true + description: ID of the user for who to delete the configuration for the utility function + type: string + - name: id + in: path + required: true + description: ID (slug) of the utility function for which to delete the configuration + type: string + - name: key + in: path + description: The key of the configuration field to delete + required: true + type: string + security: + - APIKey: [] + responses: + 200: + description: Successfully deleted the configuration field + + + /explore: + get: + description: Get a list of all browsable public assets + produces: + - application/json + security: + - APIKey: [] + responses: + 200: + description: Success in retrieving assets + + /quotas: + get: + description: Get information on the current quota of an authenticated user + produces: + - application/json + security: + - APIKey: [] + responses: + 200: + description: Success in retrieving quota information + +definitions: + User: + required: + - email + properties: + username: + type: string + email: + type: string + organization: + type: string + description: Name of the organisation the user belongs to + place: + type: string + description: Address of the user + APIKey: + required: + - enabled + properties: + name: + type: string + enabled: + type: boolean + APIKeyPatch: + properties: + name: + type: string + enabled: + type: boolean + Transformation: + properties: + name: + type: string + public: + type: boolean + code: + type: string + description: JSON representation of a Grafterizer transformation + QueriableData: + properties: + public: + type: boolean + name: + type: string + code: + type: string + Catalogue: + properties: + public: + type: boolean + name: + type: string + UtilityFunction: + properties: + public: + type: boolean + name: + type: string + metadata: + type: string + configuration: + type: string + MetaData: + type: object + Configuration: + type: object \ No newline at end of file diff --git a/app/swagger/datagraftClient/API/Client/APIKey.js b/app/swagger/datagraftClient/API/Client/APIKey.js new file mode 100644 index 0000000..bceb4b4 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/APIKey.js @@ -0,0 +1,8 @@ +/// +var API; +(function (API) { + var Client; + (function (Client) { + 'use strict'; + })(Client = API.Client || (API.Client = {})); +})(API || (API = {})); diff --git a/app/swagger/datagraftClient/API/Client/APIKey.ts b/app/swagger/datagraftClient/API/Client/APIKey.ts new file mode 100644 index 0000000..646bd17 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/APIKey.ts @@ -0,0 +1,13 @@ +/// + +namespace API.Client { + 'use strict'; + + export interface APIKey { + + name?: string; + + enabled: boolean; + } + +} diff --git a/app/swagger/datagraftClient/API/Client/APIKeyPatch.js b/app/swagger/datagraftClient/API/Client/APIKeyPatch.js new file mode 100644 index 0000000..bceb4b4 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/APIKeyPatch.js @@ -0,0 +1,8 @@ +/// +var API; +(function (API) { + var Client; + (function (Client) { + 'use strict'; + })(Client = API.Client || (API.Client = {})); +})(API || (API = {})); diff --git a/app/swagger/datagraftClient/API/Client/APIKeyPatch.ts b/app/swagger/datagraftClient/API/Client/APIKeyPatch.ts new file mode 100644 index 0000000..bb824c9 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/APIKeyPatch.ts @@ -0,0 +1,13 @@ +/// + +namespace API.Client { + 'use strict'; + + export interface APIKeyPatch { + + name?: string; + + enabled?: boolean; + } + +} diff --git a/app/swagger/datagraftClient/API/Client/Catalogue.js b/app/swagger/datagraftClient/API/Client/Catalogue.js new file mode 100644 index 0000000..bceb4b4 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/Catalogue.js @@ -0,0 +1,8 @@ +/// +var API; +(function (API) { + var Client; + (function (Client) { + 'use strict'; + })(Client = API.Client || (API.Client = {})); +})(API || (API = {})); diff --git a/app/swagger/datagraftClient/API/Client/Catalogue.ts b/app/swagger/datagraftClient/API/Client/Catalogue.ts new file mode 100644 index 0000000..a1ed96e --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/Catalogue.ts @@ -0,0 +1,13 @@ +/// + +namespace API.Client { + 'use strict'; + + export interface Catalogue { + + _public?: boolean; + + name?: string; + } + +} diff --git a/app/swagger/datagraftClient/API/Client/Configuration.js b/app/swagger/datagraftClient/API/Client/Configuration.js new file mode 100644 index 0000000..bceb4b4 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/Configuration.js @@ -0,0 +1,8 @@ +/// +var API; +(function (API) { + var Client; + (function (Client) { + 'use strict'; + })(Client = API.Client || (API.Client = {})); +})(API || (API = {})); diff --git a/app/swagger/datagraftClient/API/Client/Configuration.ts b/app/swagger/datagraftClient/API/Client/Configuration.ts new file mode 100644 index 0000000..3bc3464 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/Configuration.ts @@ -0,0 +1,9 @@ +/// + +namespace API.Client { + 'use strict'; + + export interface Configuration { + } + +} diff --git a/app/swagger/datagraftClient/API/Client/DefaultApi.js b/app/swagger/datagraftClient/API/Client/DefaultApi.js new file mode 100644 index 0000000..99d966a --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/DefaultApi.js @@ -0,0 +1,4042 @@ +/// +/* tslint:disable:no-unused-variable member-ordering */ +var API; +(function (API) { + var Client; + (function (Client) { + 'use strict'; + var DefaultApi = (function () { + function DefaultApi($http, $httpParamSerializer, basePath) { + this.$http = $http; + this.$httpParamSerializer = $httpParamSerializer; + this.basePath = 'http://127.0.0.1:3000'; + this.defaultHeaders = {}; + if (basePath) { + this.basePath = basePath; + } + } + DefaultApi.prototype.extendObj = function (objA, objB) { + for (var key in objB) { + if (objB.hasOwnProperty(key)) { + objA[key] = objB[key]; + } + } + return objA; + }; + /** + * + * Get all of a user's API keys + */ + DefaultApi.prototype.apiKeysGet = function (extraHttpRequestParams) { + var path = this.basePath + '/api_keys'; + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create new API key + * @param apiKey + */ + DefaultApi.prototype.apiKeysPost = function (apiKey, extraHttpRequestParams) { + var path = this.basePath + '/api_keys'; + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'apiKey' is set + if (!apiKey) { + throw new Error('Missing required parameter apiKey when calling apiKeysPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: apiKey, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Get the attributes of the API key + * @param id ID of the API key to be deleted + */ + DefaultApi.prototype.apiKeysIdGet = function (id, extraHttpRequestParams) { + var path = this.basePath + '/api_keys/{id}' + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling apiKeysIdGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update an API key + * @param id ID of the API key to be deleted + */ + DefaultApi.prototype.apiKeysIdDelete = function (id, extraHttpRequestParams) { + var path = this.basePath + '/api_keys/{id}' + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling apiKeysIdDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update an API key + * @param id ID of the API key to be updated + * @param apiKey + */ + DefaultApi.prototype.apiKeysIdPatch = function (id, apiKey, extraHttpRequestParams) { + var path = this.basePath + '/api_keys/{id}' + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling apiKeysIdPatch'); + } + // verify required parameter 'apiKey' is set + if (!apiKey) { + throw new Error('Missing required parameter apiKey when calling apiKeysIdPatch'); + } + var httpRequestParams = { + method: 'PATCH', + url: path, + json: true, + data: apiKey, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Get a list of all browsable public assets + */ + DefaultApi.prototype.exploreGet = function (extraHttpRequestParams) { + var path = this.basePath + '/explore'; + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Get information on the current quota of an authenticated user + */ + DefaultApi.prototype.quotasGet = function (extraHttpRequestParams) { + var path = this.basePath + '/quotas'; + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Unstar the selected catalogue + * @param user ID of the user for who to unstar the catalogue + * @param id ID (slug) of the catalogue to be unstared + */ + DefaultApi.prototype.userCatalogueIdUnstarPost = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/catalogue/{id}/unstar' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userCatalogueIdUnstarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userCatalogueIdUnstarPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Obtain a list of all public catalogues for a user. If provided with an enabled API key for that user, returns also the private catalogues. + * @param user + */ + DefaultApi.prototype.userCataloguesGet = function (user, extraHttpRequestParams) { + var path = this.basePath + '/{user}/catalogues' + .replace('{' + 'user' + '}', String(user)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userCataloguesGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Creates a new catalogue for the given user + * @param user ID of the user for whom to obtain the catalogue + * @param catalogue + */ + DefaultApi.prototype.userCataloguesPost = function (user, catalogue, extraHttpRequestParams) { + var path = this.basePath + '/{user}/catalogues' + .replace('{' + 'user' + '}', String(user)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userCataloguesPost'); + } + // verify required parameter 'catalogue' is set + if (!catalogue) { + throw new Error('Missing required parameter catalogue when calling userCataloguesPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: catalogue, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Obtain the attributes of the catalogue + * @param user User that the catalogue belongs to + * @param id ID (slug) of the catalogue to retrieve + */ + DefaultApi.prototype.userCataloguesIdGet = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/catalogues/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userCataloguesIdGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userCataloguesIdGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update a catalogue (replace the currently stored one with the one provided in this call) + * @param user User that the catalogue belongs to + * @param id ID (slug) of the catalogue to replace + * @param catalogue + */ + DefaultApi.prototype.userCataloguesIdPut = function (user, id, catalogue, extraHttpRequestParams) { + var path = this.basePath + '/{user}/catalogues/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userCataloguesIdPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userCataloguesIdPut'); + } + // verify required parameter 'catalogue' is set + if (!catalogue) { + throw new Error('Missing required parameter catalogue when calling userCataloguesIdPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: catalogue, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete a catalogue + * @param user User that the catalogue belongs to* + * @param id ID (slug) of the catalogue to delete + */ + DefaultApi.prototype.userCataloguesIdDelete = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/catalogues/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userCataloguesIdDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userCataloguesIdDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update a catalogue (only change the properties provided in the call) + * @param user User that the catalogue belongs to + * @param id ID (slug) of the catalogue to change + * @param catalogue + */ + DefaultApi.prototype.userCataloguesIdPatch = function (user, id, catalogue, extraHttpRequestParams) { + var path = this.basePath + '/{user}/catalogues/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userCataloguesIdPatch'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userCataloguesIdPatch'); + } + // verify required parameter 'catalogue' is set + if (!catalogue) { + throw new Error('Missing required parameter catalogue when calling userCataloguesIdPatch'); + } + var httpRequestParams = { + method: 'PATCH', + url: path, + json: true, + data: catalogue, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Star the selected catalogue + * @param user ID of the user for who to star the catalogue + * @param id ID (slug) of the catalogue to be stared + */ + DefaultApi.prototype.userCataloguesIdStarPost = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/catalogues/{id}/star' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userCataloguesIdStarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userCataloguesIdStarPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Obtain a list of all public data distributions for a user. If provided with an enabled API key for that user, returns also the private data distributions. + * @param user + */ + DefaultApi.prototype.userDataDistributionsGet = function (user, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions' + .replace('{' + 'user' + '}', String(user)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * TODO DUE TO SWAGGER BUG THIS NEEDS TO BE TESTED WITH THE AUTO-GENERATED CLIENTS! Create a new data distribution + * @param user + * @param _public + * @param name + * @param code + * @param file + */ + DefaultApi.prototype.userDataDistributionsPost = function (user, _public, name, code, file, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions' + .replace('{' + 'user' + '}', String(user)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + var formParams = {}; + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsPost'); + } + headerParams['Content-Type'] = 'application/x-www-form-urlencoded'; + formParams['public'] = _public; + formParams['name'] = name; + formParams['code'] = code; + formParams['file'] = file; + var httpRequestParams = { + method: 'POST', + url: path, + json: false, + data: this.$httpParamSerializer(formParams), + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Obtain the attributes of a data distribution + * @param user User that the data distribution belongs to + * @param id ID (slug) of the data distribution to retrieve + */ + DefaultApi.prototype.userDataDistributionsIdGet = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * TO BE IMPLEMENTED - USE PATCH! Update a data distribution (replace the currently stored one with the one provided in the call) + * @param user User that the data distribution belongs to + * @param id ID (slug) of the data distribution to change + * @param _public + * @param name + * @param code + * @param file + */ + DefaultApi.prototype.userDataDistributionsIdPut = function (user, id, _public, name, code, file, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + var formParams = {}; + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdPut'); + } + // verify required parameter '_public' is set + if (!_public) { + throw new Error('Missing required parameter _public when calling userDataDistributionsIdPut'); + } + // verify required parameter 'name' is set + if (!name) { + throw new Error('Missing required parameter name when calling userDataDistributionsIdPut'); + } + // verify required parameter 'code' is set + if (!code) { + throw new Error('Missing required parameter code when calling userDataDistributionsIdPut'); + } + // verify required parameter 'file' is set + if (!file) { + throw new Error('Missing required parameter file when calling userDataDistributionsIdPut'); + } + headerParams['Content-Type'] = 'application/x-www-form-urlencoded'; + formParams['public'] = _public; + formParams['name'] = name; + formParams['code'] = code; + formParams['file'] = file; + var httpRequestParams = { + method: 'PUT', + url: path, + json: false, + data: this.$httpParamSerializer(formParams), + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete a data distribution + * @param user User that the data distribution belongs to + * @param id ID (slug) of the data distribution to delete + */ + DefaultApi.prototype.userDataDistributionsIdDelete = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * TODO DUE TO SWAGGER BUG THIS NEEDS TO BE TESTED WITH THE AUTO-GENERATED CLIENTS! Update a data distribution (only change the properties provided in the call) + * @param user Data distribution to change + * @param id ID (slug) of the data distribution to change + * @param _public + * @param name + * @param code + * @param file + */ + DefaultApi.prototype.userDataDistributionsIdPatch = function (user, id, _public, name, code, file, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + var formParams = {}; + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdPatch'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdPatch'); + } + // verify required parameter '_public' is set + if (!_public) { + throw new Error('Missing required parameter _public when calling userDataDistributionsIdPatch'); + } + headerParams['Content-Type'] = 'application/x-www-form-urlencoded'; + formParams['public'] = _public; + formParams['name'] = name; + formParams['code'] = code; + formParams['file'] = file; + var httpRequestParams = { + method: 'PATCH', + url: path, + json: false, + data: this.$httpParamSerializer(formParams), + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Retrieve configuration for the chosen data distribution + * @param user ID of the user for who to obtain the configuration for the data distribution + * @param id ID (slug) of the data distribution for which to retrieve the configuration + */ + DefaultApi.prototype.userDataDistributionsIdConfigurationGet = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdConfigurationGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdConfigurationGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update configuration for the chosen data distribution + * @param user ID of the user for who to update the configuration for the data distribution + * @param id ID (slug) of the data distribution for which to update the configuration + * @param configuration + */ + DefaultApi.prototype.userDataDistributionsIdConfigurationPut = function (user, id, configuration, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdConfigurationPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdConfigurationPut'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userDataDistributionsIdConfigurationPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: configuration, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create configuration for the chosen data distribution + * @param user ID of the user for who to create the configuration for the data distribution + * @param id ID (slug) of the data distribution for which to create the configuration + * @param configuration + */ + DefaultApi.prototype.userDataDistributionsIdConfigurationPost = function (user, id, configuration, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdConfigurationPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdConfigurationPost'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userDataDistributionsIdConfigurationPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: configuration, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete configuration for the chosen data distribution + * @param user ID of the user for who to delete the configuration for the data distribution + * @param id ID (slug) of the data distribution for which to delete the configuration + */ + DefaultApi.prototype.userDataDistributionsIdConfigurationDelete = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdConfigurationDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdConfigurationDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Retrieve configuration according to the given key for the chosen data distribution + * @param user ID of the user for who to obtain the configuration for the data distribution + * @param id ID (slug) of the data distribution for which to retrieve the configuration + * @param key The key of the configuration field to obtain + */ + DefaultApi.prototype.userDataDistributionsIdConfigurationKeyGet = function (user, id, key, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdConfigurationKeyGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdConfigurationKeyGet'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userDataDistributionsIdConfigurationKeyGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update a configuration field for the chosen data distribution + * @param user ID of the user for who to update the configuration for the data distribution + * @param id ID (slug) of the data distribution for which to update the configuration + * @param key The key of the configuration field to update + * @param configuration + */ + DefaultApi.prototype.userDataDistributionsIdConfigurationKeyPut = function (user, id, key, configuration, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdConfigurationKeyPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdConfigurationKeyPut'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userDataDistributionsIdConfigurationKeyPut'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userDataDistributionsIdConfigurationKeyPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: configuration, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create a configuration field for the chosen data distribution + * @param user ID of the user for who to create the configuration for the data distribution + * @param id ID (slug) of the data distribution for which to create the configuration + * @param key Key of the configuration to create + * @param configuration + */ + DefaultApi.prototype.userDataDistributionsIdConfigurationKeyPost = function (user, id, key, configuration, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdConfigurationKeyPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdConfigurationKeyPost'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userDataDistributionsIdConfigurationKeyPost'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userDataDistributionsIdConfigurationKeyPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: configuration, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete a configuration field for the chosen data distribution + * @param user ID of the user for who to delete the configuration for the data distribution + * @param id ID (slug) of the data distribution for which to delete the configuration + * @param key The key of the configuration field to delete + */ + DefaultApi.prototype.userDataDistributionsIdConfigurationKeyDelete = function (user, id, key, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdConfigurationKeyDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdConfigurationKeyDelete'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userDataDistributionsIdConfigurationKeyDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Retrieve meta data for the chosen data distribution + * @param user ID of the user for who to obtain the meta data for the data distribution + * @param id ID (slug) of the data distribution for which to retrieve the meta data + */ + DefaultApi.prototype.userDataDistributionsIdMetadataGet = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdMetadataGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdMetadataGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update meta data for the chosen data distribution + * @param user ID of the user for who to update the meta data for the data distribution + * @param id ID (slug) of the data distribution for which to update the meta data + * @param metadata + */ + DefaultApi.prototype.userDataDistributionsIdMetadataPut = function (user, id, metadata, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdMetadataPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdMetadataPut'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userDataDistributionsIdMetadataPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: metadata, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create meta data for the chosen data distribution + * @param user ID of the user for who to create the meta data for the data distribution + * @param id ID (slug) of the data distribution for which to create the meta data + * @param metadata + */ + DefaultApi.prototype.userDataDistributionsIdMetadataPost = function (user, id, metadata, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdMetadataPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdMetadataPost'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userDataDistributionsIdMetadataPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: metadata, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete meta data for the chosen data distribution + * @param user ID of the user for who to delete the meta data for the data distribution + * @param id ID (slug) of the data distribution for which to delete the meta data + */ + DefaultApi.prototype.userDataDistributionsIdMetadataDelete = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdMetadataDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdMetadataDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Retrieve meta data according to the given key for the chosen data distribution + * @param user ID of the user for who to obtain the meta data for the data distribution + * @param id ID (slug) of the data distribution for which to retrieve the meta data + * @param key The key of the meta data field to obtain + */ + DefaultApi.prototype.userDataDistributionsIdMetadataKeyGet = function (user, id, key, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdMetadataKeyGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdMetadataKeyGet'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userDataDistributionsIdMetadataKeyGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update a meta data field for the chosen data distribution + * @param user ID of the user for who to update the meta data for the data distribution + * @param id ID (slug) of the data distribution for which to update the meta data + * @param key The key of the meta data field to update + * @param metadata + */ + DefaultApi.prototype.userDataDistributionsIdMetadataKeyPut = function (user, id, key, metadata, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdMetadataKeyPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdMetadataKeyPut'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userDataDistributionsIdMetadataKeyPut'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userDataDistributionsIdMetadataKeyPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: metadata, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create a meta data field for the chosen data distribution + * @param user ID of the user for who to create the meta data for the data distribution + * @param id ID (slug) of the data distribution for which to create the meta data + * @param key Key of the metadata to create + * @param metadata + */ + DefaultApi.prototype.userDataDistributionsIdMetadataKeyPost = function (user, id, key, metadata, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdMetadataKeyPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdMetadataKeyPost'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userDataDistributionsIdMetadataKeyPost'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userDataDistributionsIdMetadataKeyPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: metadata, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete a metadata field for the chosen data distribution + * @param user ID of the user for who to delete the meta data for the data distribution + * @param id ID (slug) of the data distribution for which to delete the meta data + * @param key The key of the meta data field to delete + */ + DefaultApi.prototype.userDataDistributionsIdMetadataKeyDelete = function (user, id, key, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdMetadataKeyDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdMetadataKeyDelete'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userDataDistributionsIdMetadataKeyDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * (NOT TESTED) Star the selected data distribution + * @param user ID of the user for who to star the data distribution + * @param id ID (slug) of the data distribution to be stared + */ + DefaultApi.prototype.userDataDistributionsIdStarPost = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/star' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdStarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdStarPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * (NOT TESTED) Unstar the selected data distribution + * @param user ID of the user for who to unstar the data distribution + * @param id ID (slug) of the data distribution to be unstared + */ + DefaultApi.prototype.userDataDistributionsIdUnstarPost = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/data_distributions/{id}/unstar' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdUnstarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdUnstarPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Obtain a list of all public queriable data for a user. If provided with an enabled API key for that user, returns also the private queriable data. + * @param user ID of the user for whom to obtain the queriable data + */ + DefaultApi.prototype.userQueriableDataStoresGet = function (user, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores' + .replace('{' + 'user' + '}', String(user)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create a new queriable data to be stored + * @param user ID of the user for whom to obtain the quireable data + * @param queriableDataStore + */ + DefaultApi.prototype.userQueriableDataStoresPost = function (user, queriableDataStore, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores' + .replace('{' + 'user' + '}', String(user)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresPost'); + } + // verify required parameter 'queriableDataStore' is set + if (!queriableDataStore) { + throw new Error('Missing required parameter queriableDataStore when calling userQueriableDataStoresPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: queriableDataStore, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Obtain the attributes of the given queriable data + * @param user ID of the user for who to obtain the queriable data + * @param id ID (slug) of the queriable data to retrieve + */ + DefaultApi.prototype.userQueriableDataStoresIdGet = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update a queriable data (replace the currently stored one with the one provided in the call) + * @param user ID of the user for who to obtain the queriable data + * @param id ID (slug) of the queriable data to retrieve + * @param queriableDataStore + */ + DefaultApi.prototype.userQueriableDataStoresIdPut = function (user, id, queriableDataStore, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdPut'); + } + // verify required parameter 'queriableDataStore' is set + if (!queriableDataStore) { + throw new Error('Missing required parameter queriableDataStore when calling userQueriableDataStoresIdPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: queriableDataStore, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete a queriable data + * @param user ID of the user who wants to delete the queriable data + * @param id ID (slug) of the queriable data to delete + */ + DefaultApi.prototype.userQueriableDataStoresIdDelete = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update a queriable data (only change the properties provided in the call) + * @param user ID of the user for who to obtain the queriable data + * @param id ID (slug) of the queriable data to retrieve + * @param queriableDataStore + */ + DefaultApi.prototype.userQueriableDataStoresIdPatch = function (user, id, queriableDataStore, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdPatch'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdPatch'); + } + // verify required parameter 'queriableDataStore' is set + if (!queriableDataStore) { + throw new Error('Missing required parameter queriableDataStore when calling userQueriableDataStoresIdPatch'); + } + var httpRequestParams = { + method: 'PATCH', + url: path, + json: true, + data: queriableDataStore, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Retrieve configuration for the chosen queriable data store + * @param user ID of the user for who to obtain the configuration for the queriable data store + * @param id ID (slug) of the queriable data store for which to retrieve the configuration + */ + DefaultApi.prototype.userQueriableDataStoresIdConfigurationGet = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdConfigurationGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdConfigurationGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update configuration for the chosen queriable data store + * @param user ID of the user for who to update the configuration for the queriable data store + * @param id ID (slug) of the queriable data store for which to update the configuration + * @param configuration + */ + DefaultApi.prototype.userQueriableDataStoresIdConfigurationPut = function (user, id, configuration, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdConfigurationPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdConfigurationPut'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userQueriableDataStoresIdConfigurationPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: configuration, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create configuration for the chosen queriable data store + * @param user ID of the user for who to create the configuration for the queriable data store + * @param id ID (slug) of the queriable data store for which to create the configuration + * @param configuration + */ + DefaultApi.prototype.userQueriableDataStoresIdConfigurationPost = function (user, id, configuration, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdConfigurationPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdConfigurationPost'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userQueriableDataStoresIdConfigurationPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: configuration, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete configuration for the chosen queriable data store + * @param user ID of the user for who to delete the configuration for the queriable data store + * @param id ID (slug) of the queriable data store for which to delete the configuration + */ + DefaultApi.prototype.userQueriableDataStoresIdConfigurationDelete = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdConfigurationDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdConfigurationDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Retrieve configuration according to the given key for the chosen queriable data store + * @param user ID of the user for who to obtain the configuration for the queriable data store + * @param id ID (slug) of the queriable data store for which to retrieve the configuration + * @param key The key of the configuration field to obtain + */ + DefaultApi.prototype.userQueriableDataStoresIdConfigurationKeyGet = function (user, id, key, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdConfigurationKeyGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdConfigurationKeyGet'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userQueriableDataStoresIdConfigurationKeyGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update a configuration field for the chosen queriable data store + * @param user ID of the user for who to update the configuration for the queriable data store + * @param id ID (slug) of the queriable data store for which to update the configuration + * @param key The key of the configuration field to update + * @param configuration + */ + DefaultApi.prototype.userQueriableDataStoresIdConfigurationKeyPut = function (user, id, key, configuration, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdConfigurationKeyPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdConfigurationKeyPut'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userQueriableDataStoresIdConfigurationKeyPut'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userQueriableDataStoresIdConfigurationKeyPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: configuration, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create a configuration field for the chosen queriable data store + * @param user ID of the user for who to create the configuration for the queriable data store + * @param id ID (slug) of the queriable data store for which to create the configuration + * @param key Key of the configuration to create + * @param configuration + */ + DefaultApi.prototype.userQueriableDataStoresIdConfigurationKeyPost = function (user, id, key, configuration, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdConfigurationKeyPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdConfigurationKeyPost'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userQueriableDataStoresIdConfigurationKeyPost'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userQueriableDataStoresIdConfigurationKeyPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: configuration, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete a configuration field for the chosen queriable data store + * @param user ID of the user for who to delete the configuration for the queriable data store + * @param id ID (slug) of the queriable data store for which to delete the configuration + * @param key The key of the configuration field to delete + */ + DefaultApi.prototype.userQueriableDataStoresIdConfigurationKeyDelete = function (user, id, key, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdConfigurationKeyDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdConfigurationKeyDelete'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userQueriableDataStoresIdConfigurationKeyDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * NOT IMPLEMENTED?? Doesn't work... (Retrieve the code for the queriable data for edit) + * @param user ID of the user for who to edit the queriable data + * @param id ID (slug) of the queriable data to be edited + */ + DefaultApi.prototype.userQueriableDataStoresIdEditGet = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/edit' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdEditGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdEditGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Retrieve meta data for the chosen queriable data store + * @param user ID of the user for who to obtain the meta data for the queriable data store + * @param id ID (slug) of the queriable data store for which to retrieve the meta data + */ + DefaultApi.prototype.userQueriableDataStoresIdMetadataGet = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdMetadataGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdMetadataGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update meta data for the chosen queriable data store + * @param user ID of the user for who to update the meta data for the queriable data store + * @param id ID (slug) of the queriable data store for which to update the meta data + * @param metadata + */ + DefaultApi.prototype.userQueriableDataStoresIdMetadataPut = function (user, id, metadata, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdMetadataPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdMetadataPut'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userQueriableDataStoresIdMetadataPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: metadata, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create meta data for the chosen queriable data store + * @param user ID of the user for who to create the meta data for the queriable data store + * @param id ID (slug) of the queriable data store for which to create the meta data + * @param metadata + */ + DefaultApi.prototype.userQueriableDataStoresIdMetadataPost = function (user, id, metadata, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdMetadataPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdMetadataPost'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userQueriableDataStoresIdMetadataPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: metadata, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete meta data for the chosen queriable data store + * @param user ID of the user for who to delete the meta data for the queriable data store + * @param id ID (slug) of the queriable data store for which to delete the meta data + */ + DefaultApi.prototype.userQueriableDataStoresIdMetadataDelete = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdMetadataDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdMetadataDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Retrieve meta data according to the given key for the chosen queriable data store + * @param user ID of the user for who to obtain the meta data for the queriable data store + * @param id ID (slug) of the queriable data store for which to retrieve the meta data + * @param key The key of the meta data field to obtain + */ + DefaultApi.prototype.userQueriableDataStoresIdMetadataKeyGet = function (user, id, key, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdMetadataKeyGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdMetadataKeyGet'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userQueriableDataStoresIdMetadataKeyGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update a meta data field for the chosen queriable data store + * @param user ID of the user for who to update the meta data for the queriable data store + * @param id ID (slug) of the queriable data store for which to update the meta data + * @param key The key of the meta data field to update + * @param metadata + */ + DefaultApi.prototype.userQueriableDataStoresIdMetadataKeyPut = function (user, id, key, metadata, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdMetadataKeyPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdMetadataKeyPut'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userQueriableDataStoresIdMetadataKeyPut'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userQueriableDataStoresIdMetadataKeyPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: metadata, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create a meta data field for the chosen queriable data store + * @param user ID of the user for who to create the meta data for the queriable data store + * @param id ID (slug) of the queriable data store for which to create the meta data + * @param key Key of the metadata to create + * @param metadata + */ + DefaultApi.prototype.userQueriableDataStoresIdMetadataKeyPost = function (user, id, key, metadata, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdMetadataKeyPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdMetadataKeyPost'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userQueriableDataStoresIdMetadataKeyPost'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userQueriableDataStoresIdMetadataKeyPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: metadata, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete a metadata field for the chosen queriable data store + * @param user ID of the user for who to delete the meta data for the queriable data store + * @param id ID (slug) of the queriable data store for which to delete the meta data + * @param key The key of the meta data field to delete + */ + DefaultApi.prototype.userQueriableDataStoresIdMetadataKeyDelete = function (user, id, key, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdMetadataKeyDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdMetadataKeyDelete'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userQueriableDataStoresIdMetadataKeyDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Star the selected queriable data + * @param user ID of the user for who to star the queriable data + * @param id ID (slug) of the queriable data to be stared + */ + DefaultApi.prototype.userQueriableDataStoresIdStarPost = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/star' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdStarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdStarPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Unstar the selected queriable data + * @param user ID of the user for who to unstar the queriable data + * @param id ID (slug) of the queriable data to be unstared + */ + DefaultApi.prototype.userQueriableDataStoresIdUnstarPost = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/unstar' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdUnstarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdUnstarPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * INVALID! Is this implemented?? (Retrieve versions of the queriable data) + * @param user ID of the user for who to obtain the queriable data + * @param id ID (slug) of the queriable data to retrieve + */ + DefaultApi.prototype.userQueriableDataStoresIdVersionsGet = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/queriable_data_stores/{id}/versions' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdVersionsGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdVersionsGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Obtain a list of all public transformations for a user. If provided with an enabled API key for that user, returns also the private transformations. + * @param user ID of the user for whom to obtain the list + */ + DefaultApi.prototype.userTransformationsGet = function (user, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations' + .replace('{' + 'user' + '}', String(user)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Creates a new transformation for the given user. + * @param user ID of the user for whom to obtain the list + * @param transformation + */ + DefaultApi.prototype.userTransformationsPost = function (user, transformation, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations' + .replace('{' + 'user' + '}', String(user)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsPost'); + } + // verify required parameter 'transformation' is set + if (!transformation) { + throw new Error('Missing required parameter transformation when calling userTransformationsPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: transformation, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Obtain the attributes of a transformation + * @param user User that the transformation belongs to + * @param id ID (slug) of the transformation to retrieve + */ + DefaultApi.prototype.userTransformationsIdGet = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * TO BE IMPLEMENTED - USE PATCH! Update a transformation (replace the currently stored one with the one provided in the call) + * @param user User that the transformation belongs to + * @param id ID (slug) of the transformation to change + * @param transformation + */ + DefaultApi.prototype.userTransformationsIdPut = function (user, id, transformation, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdPut'); + } + // verify required parameter 'transformation' is set + if (!transformation) { + throw new Error('Missing required parameter transformation when calling userTransformationsIdPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: transformation, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete a transformation + * @param user User that the transformation belongs to + * @param id ID (slug) of the transformation to delete + */ + DefaultApi.prototype.userTransformationsIdDelete = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update a transformation (only change the properties provided in the call) + * @param user User that the transformation belongs to + * @param id ID (slug) of the transformation to change + * @param transformation + */ + DefaultApi.prototype.userTransformationsIdPatch = function (user, id, transformation, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdPatch'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdPatch'); + } + // verify required parameter 'transformation' is set + if (!transformation) { + throw new Error('Missing required parameter transformation when calling userTransformationsIdPatch'); + } + var httpRequestParams = { + method: 'PATCH', + url: path, + json: true, + data: transformation, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Retrieve configuration for the chosen transformation + * @param user ID of the user for who to obtain the configuration for the transformation + * @param id ID (slug) of the transformation for which to retrieve the configuration + */ + DefaultApi.prototype.userTransformationsIdConfigurationGet = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdConfigurationGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdConfigurationGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update configuration for the chosen transformation + * @param user ID of the user for who to update the configuration for the transformation + * @param id ID (slug) of the transformation for which to update the configuration + * @param configuration + */ + DefaultApi.prototype.userTransformationsIdConfigurationPut = function (user, id, configuration, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdConfigurationPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdConfigurationPut'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userTransformationsIdConfigurationPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: configuration, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create configuration for the chosen transformation + * @param user ID of the user for who to create the configuration for the transformation + * @param id ID (slug) of the transformation for which to create the configuration + * @param configuration + */ + DefaultApi.prototype.userTransformationsIdConfigurationPost = function (user, id, configuration, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdConfigurationPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdConfigurationPost'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userTransformationsIdConfigurationPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: configuration, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete configuration for the chosen transformation + * @param user ID of the user for who to delete the configuration for the transformation + * @param id ID (slug) of the transformation for which to delete the configuration + */ + DefaultApi.prototype.userTransformationsIdConfigurationDelete = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdConfigurationDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdConfigurationDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Retrieve configuration according to the given key for the chosen transformation + * @param user ID of the user for who to obtain the configuration for the transformation + * @param id ID (slug) of the transformation for which to retrieve the configuration + * @param key The key of the configuration field to obtain + */ + DefaultApi.prototype.userTransformationsIdConfigurationKeyGet = function (user, id, key, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdConfigurationKeyGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdConfigurationKeyGet'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userTransformationsIdConfigurationKeyGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update a configuration field for the chosen transformation + * @param user ID of the user for who to update the configuration for the transformation + * @param id ID (slug) of the transformation for which to update the configuration + * @param key The key of the configuration field to update + * @param configuration + */ + DefaultApi.prototype.userTransformationsIdConfigurationKeyPut = function (user, id, key, configuration, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdConfigurationKeyPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdConfigurationKeyPut'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userTransformationsIdConfigurationKeyPut'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userTransformationsIdConfigurationKeyPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: configuration, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create a configuration field for the chosen transformation + * @param user ID of the user for who to create the configuration for the transformation + * @param id ID (slug) of the transformation for which to create the configuration + * @param key Key of the configuration to create + * @param configuration + */ + DefaultApi.prototype.userTransformationsIdConfigurationKeyPost = function (user, id, key, configuration, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdConfigurationKeyPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdConfigurationKeyPost'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userTransformationsIdConfigurationKeyPost'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userTransformationsIdConfigurationKeyPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: configuration, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete a configuration field for the chosen transformation + * @param user ID of the user for who to delete the configuration for the transformation + * @param id ID (slug) of the transformation for which to delete the configuration + * @param key The key of the configuration field to delete + */ + DefaultApi.prototype.userTransformationsIdConfigurationKeyDelete = function (user, id, key, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdConfigurationKeyDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdConfigurationKeyDelete'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userTransformationsIdConfigurationKeyDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Retrieve meta data for the chosen transformation + * @param user ID of the user for who to obtain the meta data for the transformation + * @param id ID (slug) of the transformation for which to retrieve the meta data + */ + DefaultApi.prototype.userTransformationsIdMetadataGet = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdMetadataGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdMetadataGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update meta data for the chosen transformation + * @param user ID of the user for who to update the meta data for the transformation + * @param id ID (slug) of the transformation for which to update the meta data + * @param metadata + */ + DefaultApi.prototype.userTransformationsIdMetadataPut = function (user, id, metadata, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdMetadataPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdMetadataPut'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userTransformationsIdMetadataPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: metadata, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create meta data for the chosen transformation + * @param user ID of the user for who to create the meta data for the transformation + * @param id ID (slug) of the transformation for which to create the meta data + * @param metadata + */ + DefaultApi.prototype.userTransformationsIdMetadataPost = function (user, id, metadata, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdMetadataPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdMetadataPost'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userTransformationsIdMetadataPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: metadata, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete meta data for the chosen transformation + * @param user ID of the user for who to delete the meta data for the transformation + * @param id ID (slug) of the transformation for which to delete the meta data + */ + DefaultApi.prototype.userTransformationsIdMetadataDelete = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdMetadataDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdMetadataDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Retrieve meta data according to the given key for the chosen transformation + * @param user ID of the user for who to obtain the meta data for the transformation + * @param id ID (slug) of the transformation for which to retrieve the meta data + * @param key The key of the meta data field to obtain + */ + DefaultApi.prototype.userTransformationsIdMetadataKeyGet = function (user, id, key, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdMetadataKeyGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdMetadataKeyGet'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userTransformationsIdMetadataKeyGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update a meta data field for the chosen transformation + * @param user ID of the user for who to update the meta data for the transformation + * @param id ID (slug) of the transformation for which to update the meta data + * @param key The key of the meta data field to update + * @param metadata + */ + DefaultApi.prototype.userTransformationsIdMetadataKeyPut = function (user, id, key, metadata, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdMetadataKeyPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdMetadataKeyPut'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userTransformationsIdMetadataKeyPut'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userTransformationsIdMetadataKeyPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: metadata, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create a meta data field for the chosen transformation + * @param user ID of the user for who to create the meta data for the transformation + * @param id ID (slug) of the transformation for which to create the meta data + * @param key Key of the metadata to create + * @param metadata + */ + DefaultApi.prototype.userTransformationsIdMetadataKeyPost = function (user, id, key, metadata, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdMetadataKeyPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdMetadataKeyPost'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userTransformationsIdMetadataKeyPost'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userTransformationsIdMetadataKeyPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: metadata, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete a metadata field for the chosen transformation + * @param user ID of the user for who to delete the meta data for the transformation + * @param id ID (slug) of the transformation for which to delete the meta data + * @param key The key of the meta data field to delete + */ + DefaultApi.prototype.userTransformationsIdMetadataKeyDelete = function (user, id, key, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdMetadataKeyDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdMetadataKeyDelete'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userTransformationsIdMetadataKeyDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Star the selected transformation + * @param user ID of the user for who to star the transformation + * @param id ID (slug) of the transformation to be stared + */ + DefaultApi.prototype.userTransformationsIdStarPost = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/star' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdStarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdStarPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Unstar the selected transformation + * @param user ID of the user for who to unstar the transformation + * @param id ID (slug) of the transformation to be unstared + */ + DefaultApi.prototype.userTransformationsIdUnstarPost = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/transformations/{id}/unstar' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdUnstarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdUnstarPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Obtain a list of all public utility functions for a user. If provided with an enabled API key for that user, returns also the private utility functions. + * @param user ID of the user for whom to obtain the utility functions + */ + DefaultApi.prototype.userUtilityFunctionsGet = function (user, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions' + .replace('{' + 'user' + '}', String(user)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create a new utility function + * @param user ID of the user for whom to create the utility function + * @param utilityFunction + */ + DefaultApi.prototype.userUtilityFunctionsPost = function (user, utilityFunction, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions' + .replace('{' + 'user' + '}', String(user)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsPost'); + } + // verify required parameter 'utilityFunction' is set + if (!utilityFunction) { + throw new Error('Missing required parameter utilityFunction when calling userUtilityFunctionsPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: utilityFunction, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Obtain the attributes of the given utility function. + * @param user ID of the user for who to obtain the utility function + * @param id ID (slug) of the utility function to retrieve + */ + DefaultApi.prototype.userUtilityFunctionsIdGet = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update a utility function by replacing the currently stored one with the one provided in this request + * @param user ID of the user for who to update the utility function + * @param id ID (slug) of the utility function to be updated + * @param utilityFunction + */ + DefaultApi.prototype.userUtilityFunctionsIdPut = function (user, id, utilityFunction, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdPut'); + } + // verify required parameter 'utilityFunction' is set + if (!utilityFunction) { + throw new Error('Missing required parameter utilityFunction when calling userUtilityFunctionsIdPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: utilityFunction, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete the given utility function + * @param user ID of the user for who to delete the utility function + * @param id ID (slug) of the utility function to delete + */ + DefaultApi.prototype.userUtilityFunctionsIdDelete = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update a utility function by replacing only the parts provided in this request + * @param user ID of the user for who to update the utility function + * @param id ID (slug) of the utility function to be updated + * @param utilityFunction + */ + DefaultApi.prototype.userUtilityFunctionsIdPatch = function (user, id, utilityFunction, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdPatch'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdPatch'); + } + // verify required parameter 'utilityFunction' is set + if (!utilityFunction) { + throw new Error('Missing required parameter utilityFunction when calling userUtilityFunctionsIdPatch'); + } + var httpRequestParams = { + method: 'PATCH', + url: path, + json: true, + data: utilityFunction, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Retrieve configuration for the chosen utility function + * @param user ID of the user for who to obtain the configuration for the utility function + * @param id ID (slug) of the utility function for which to retrieve the configuration + */ + DefaultApi.prototype.userUtilityFunctionsIdConfigurationGet = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdConfigurationGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdConfigurationGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update configuration for the chosen utility function + * @param user ID of the user for who to update the configuration for the utility function + * @param id ID (slug) of the utility function for which to update the configuration + * @param configuration + */ + DefaultApi.prototype.userUtilityFunctionsIdConfigurationPut = function (user, id, configuration, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdConfigurationPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdConfigurationPut'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userUtilityFunctionsIdConfigurationPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: configuration, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create configuration for the chosen utility function + * @param user ID of the user for who to create the configuration for the utility function + * @param id ID (slug) of the utility function for which to create the configuration + * @param configuration + */ + DefaultApi.prototype.userUtilityFunctionsIdConfigurationPost = function (user, id, configuration, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdConfigurationPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdConfigurationPost'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userUtilityFunctionsIdConfigurationPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: configuration, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete configuration for the chosen utility function + * @param user ID of the user for who to delete the configuration for the utility function + * @param id ID (slug) of the utility function for which to delete the configuration + */ + DefaultApi.prototype.userUtilityFunctionsIdConfigurationDelete = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdConfigurationDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdConfigurationDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Retrieve configuration according to the given key for the chosen utility function + * @param user ID of the user for who to obtain the configuration for the utility function + * @param id ID (slug) of the utility function for which to retrieve the configuration + * @param key The key of the configuration field to obtain + */ + DefaultApi.prototype.userUtilityFunctionsIdConfigurationKeyGet = function (user, id, key, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdConfigurationKeyGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdConfigurationKeyGet'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userUtilityFunctionsIdConfigurationKeyGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update a configuration field for the chosen utility function + * @param user ID of the user for who to update the configuration for the utility function + * @param id ID (slug) of the utility function for which to update the configuration + * @param key The key of the configuration field to update + * @param configuration + */ + DefaultApi.prototype.userUtilityFunctionsIdConfigurationKeyPut = function (user, id, key, configuration, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdConfigurationKeyPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdConfigurationKeyPut'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userUtilityFunctionsIdConfigurationKeyPut'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userUtilityFunctionsIdConfigurationKeyPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: configuration, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create a configuration field for the chosen utility function + * @param user ID of the user for who to create the configuration for the utility function + * @param id ID (slug) of the utility function for which to create the configuration + * @param key Key of the configuration to create + * @param configuration + */ + DefaultApi.prototype.userUtilityFunctionsIdConfigurationKeyPost = function (user, id, key, configuration, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdConfigurationKeyPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdConfigurationKeyPost'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userUtilityFunctionsIdConfigurationKeyPost'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userUtilityFunctionsIdConfigurationKeyPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: configuration, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete a configuration field for the chosen utility function + * @param user ID of the user for who to delete the configuration for the utility function + * @param id ID (slug) of the utility function for which to delete the configuration + * @param key The key of the configuration field to delete + */ + DefaultApi.prototype.userUtilityFunctionsIdConfigurationKeyDelete = function (user, id, key, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdConfigurationKeyDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdConfigurationKeyDelete'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userUtilityFunctionsIdConfigurationKeyDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Retrieve meta data for the chosen utility function + * @param user ID of the user for who to obtain the meta data for the utility function + * @param id ID (slug) of the utility function for which to retrieve the meta data + */ + DefaultApi.prototype.userUtilityFunctionsIdMetadataGet = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdMetadataGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdMetadataGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update meta data for the chosen utility function + * @param user ID of the user for who to update the meta data for the utility function + * @param id ID (slug) of the utility function for which to update the meta data + * @param metadata + */ + DefaultApi.prototype.userUtilityFunctionsIdMetadataPut = function (user, id, metadata, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdMetadataPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdMetadataPut'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userUtilityFunctionsIdMetadataPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: metadata, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create meta data for the chosen utility function + * @param user ID of the user for who to create the meta data for the utility function + * @param id ID (slug) of the utility function for which to create the meta data + * @param metadata + */ + DefaultApi.prototype.userUtilityFunctionsIdMetadataPost = function (user, id, metadata, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdMetadataPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdMetadataPost'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userUtilityFunctionsIdMetadataPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: metadata, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete meta data for the chosen utility function + * @param user ID of the user for who to delete the meta data for the utility function + * @param id ID (slug) of the utility function for which to delete the meta data + */ + DefaultApi.prototype.userUtilityFunctionsIdMetadataDelete = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdMetadataDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdMetadataDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Retrieve meta data according to the given key for the chosen utility function + * @param user ID of the user for who to obtain the meta data for the utility function + * @param id ID (slug) of the utility function for which to retrieve the meta data + * @param key The key of the meta data field to obtain + */ + DefaultApi.prototype.userUtilityFunctionsIdMetadataKeyGet = function (user, id, key, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdMetadataKeyGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdMetadataKeyGet'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userUtilityFunctionsIdMetadataKeyGet'); + } + var httpRequestParams = { + method: 'GET', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Update a meta data field for the chosen utility function + * @param user ID of the user for who to update the meta data for the utility function + * @param id ID (slug) of the utility function for which to update the meta data + * @param key The key of the meta data field to update + * @param metadata + */ + DefaultApi.prototype.userUtilityFunctionsIdMetadataKeyPut = function (user, id, key, metadata, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdMetadataKeyPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdMetadataKeyPut'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userUtilityFunctionsIdMetadataKeyPut'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userUtilityFunctionsIdMetadataKeyPut'); + } + var httpRequestParams = { + method: 'PUT', + url: path, + json: true, + data: metadata, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Create a meta data field for the chosen utility function + * @param user ID of the user for who to create the meta data for the utility function + * @param id ID (slug) of the utility function for which to create the meta data + * @param key Key of the metadata to create + * @param metadata + */ + DefaultApi.prototype.userUtilityFunctionsIdMetadataKeyPost = function (user, id, key, metadata, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdMetadataKeyPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdMetadataKeyPost'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userUtilityFunctionsIdMetadataKeyPost'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userUtilityFunctionsIdMetadataKeyPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + data: metadata, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Delete a metadata field for the chosen utility function + * @param user ID of the user for who to delete the meta data for the utility function + * @param id ID (slug) of the utility function for which to delete the meta data + * @param key The key of the meta data field to delete + */ + DefaultApi.prototype.userUtilityFunctionsIdMetadataKeyDelete = function (user, id, key, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdMetadataKeyDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdMetadataKeyDelete'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userUtilityFunctionsIdMetadataKeyDelete'); + } + var httpRequestParams = { + method: 'DELETE', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Star the selected utility function + * @param user ID of the user for who to star the utility function + * @param id ID (slug) of the utility function to be stared + */ + DefaultApi.prototype.userUtilityFunctionsIdStarPost = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/star' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdStarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdStarPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + /** + * + * Unstar the selected utility function + * @param user ID of the user for who to unstar the utility function + * @param id ID (slut) of the utility function to be unstared + */ + DefaultApi.prototype.userUtilityFunctionsIdUnstarPost = function (user, id, extraHttpRequestParams) { + var path = this.basePath + '/{user}/utility_functions/{id}/unstar' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + var queryParameters = {}; + var headerParams = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdUnstarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdUnstarPost'); + } + var httpRequestParams = { + method: 'POST', + url: path, + json: true, + params: queryParameters, + headers: headerParams + }; + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + return this.$http(httpRequestParams); + }; + DefaultApi.$inject = ['$http', '$httpParamSerializer']; + return DefaultApi; + })(); + Client.DefaultApi = DefaultApi; + })(Client = API.Client || (API.Client = {})); +})(API || (API = {})); diff --git a/app/swagger/datagraftClient/API/Client/DefaultApi.ts b/app/swagger/datagraftClient/API/Client/DefaultApi.ts new file mode 100644 index 0000000..c5c7641 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/DefaultApi.ts @@ -0,0 +1,4624 @@ +/// + +/* tslint:disable:no-unused-variable member-ordering */ + +namespace API.Client { + 'use strict'; + + export class DefaultApi { + protected basePath = 'http://127.0.0.1:3000'; + public defaultHeaders : any = {}; + + static $inject: string[] = ['$http', '$httpParamSerializer']; + + constructor(protected $http: ng.IHttpService, protected $httpParamSerializer?: (d: any) => any, basePath?: string) { + if (basePath) { + this.basePath = basePath; + } + } + + private extendObj(objA: T1, objB: T2) { + for(let key in objB){ + if(objB.hasOwnProperty(key)){ + objA[key] = objB[key]; + } + } + return objA; + } + + /** + * + * Get all of a user's API keys + */ + public apiKeysGet (extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/api_keys'; + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create new API key + * @param apiKey + */ + public apiKeysPost (apiKey: APIKey, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/api_keys'; + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'apiKey' is set + if (!apiKey) { + throw new Error('Missing required parameter apiKey when calling apiKeysPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: apiKey, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Get the attributes of the API key + * @param id ID of the API key to be deleted + */ + public apiKeysIdGet (id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/api_keys/{id}' + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling apiKeysIdGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update an API key + * @param id ID of the API key to be deleted + */ + public apiKeysIdDelete (id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/api_keys/{id}' + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling apiKeysIdDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update an API key + * @param id ID of the API key to be updated + * @param apiKey + */ + public apiKeysIdPatch (id: string, apiKey: APIKeyPatch, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/api_keys/{id}' + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling apiKeysIdPatch'); + } + // verify required parameter 'apiKey' is set + if (!apiKey) { + throw new Error('Missing required parameter apiKey when calling apiKeysIdPatch'); + } + let httpRequestParams: any = { + method: 'PATCH', + url: path, + json: true, + data: apiKey, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Get a list of all browsable public assets + */ + public exploreGet (extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/explore'; + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Get information on the current quota of an authenticated user + */ + public quotasGet (extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/quotas'; + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Unstar the selected catalogue + * @param user ID of the user for who to unstar the catalogue + * @param id ID (slug) of the catalogue to be unstared + */ + public userCatalogueIdUnstarPost (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/catalogue/{id}/unstar' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userCatalogueIdUnstarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userCatalogueIdUnstarPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Obtain a list of all public catalogues for a user. If provided with an enabled API key for that user, returns also the private catalogues. + * @param user + */ + public userCataloguesGet (user: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/catalogues' + .replace('{' + 'user' + '}', String(user)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userCataloguesGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Creates a new catalogue for the given user + * @param user ID of the user for whom to obtain the catalogue + * @param catalogue + */ + public userCataloguesPost (user: string, catalogue: Catalogue, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/catalogues' + .replace('{' + 'user' + '}', String(user)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userCataloguesPost'); + } + // verify required parameter 'catalogue' is set + if (!catalogue) { + throw new Error('Missing required parameter catalogue when calling userCataloguesPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: catalogue, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Obtain the attributes of the catalogue + * @param user User that the catalogue belongs to + * @param id ID (slug) of the catalogue to retrieve + */ + public userCataloguesIdGet (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/catalogues/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userCataloguesIdGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userCataloguesIdGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update a catalogue (replace the currently stored one with the one provided in this call) + * @param user User that the catalogue belongs to + * @param id ID (slug) of the catalogue to replace + * @param catalogue + */ + public userCataloguesIdPut (user: string, id: string, catalogue: Catalogue, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/catalogues/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userCataloguesIdPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userCataloguesIdPut'); + } + // verify required parameter 'catalogue' is set + if (!catalogue) { + throw new Error('Missing required parameter catalogue when calling userCataloguesIdPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: catalogue, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete a catalogue + * @param user User that the catalogue belongs to* + * @param id ID (slug) of the catalogue to delete + */ + public userCataloguesIdDelete (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/catalogues/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userCataloguesIdDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userCataloguesIdDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update a catalogue (only change the properties provided in the call) + * @param user User that the catalogue belongs to + * @param id ID (slug) of the catalogue to change + * @param catalogue + */ + public userCataloguesIdPatch (user: string, id: string, catalogue: Catalogue, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/catalogues/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userCataloguesIdPatch'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userCataloguesIdPatch'); + } + // verify required parameter 'catalogue' is set + if (!catalogue) { + throw new Error('Missing required parameter catalogue when calling userCataloguesIdPatch'); + } + let httpRequestParams: any = { + method: 'PATCH', + url: path, + json: true, + data: catalogue, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Star the selected catalogue + * @param user ID of the user for who to star the catalogue + * @param id ID (slug) of the catalogue to be stared + */ + public userCataloguesIdStarPost (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/catalogues/{id}/star' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userCataloguesIdStarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userCataloguesIdStarPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Obtain a list of all public data distributions for a user. If provided with an enabled API key for that user, returns also the private data distributions. + * @param user + */ + public userDataDistributionsGet (user: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions' + .replace('{' + 'user' + '}', String(user)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * TODO DUE TO SWAGGER BUG THIS NEEDS TO BE TESTED WITH THE AUTO-GENERATED CLIENTS! Create a new data distribution + * @param user + * @param _public + * @param name + * @param code + * @param file + */ + public userDataDistributionsPost (user: string, _public?: boolean, name?: string, code?: string, file?: any, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions' + .replace('{' + 'user' + '}', String(user)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + let formParams: any = {}; + + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsPost'); + } + headerParams['Content-Type'] = 'application/x-www-form-urlencoded'; + + formParams['public'] = _public; + + formParams['name'] = name; + + formParams['code'] = code; + + formParams['file'] = file; + + let httpRequestParams: any = { + method: 'POST', + url: path, + json: false, + + data: this.$httpParamSerializer(formParams), + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Obtain the attributes of a data distribution + * @param user User that the data distribution belongs to + * @param id ID (slug) of the data distribution to retrieve + */ + public userDataDistributionsIdGet (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * TO BE IMPLEMENTED - USE PATCH! Update a data distribution (replace the currently stored one with the one provided in the call) + * @param user User that the data distribution belongs to + * @param id ID (slug) of the data distribution to change + * @param _public + * @param name + * @param code + * @param file + */ + public userDataDistributionsIdPut (user: string, id: string, _public: boolean, name: string, code: string, file: any, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + let formParams: any = {}; + + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdPut'); + } + // verify required parameter '_public' is set + if (!_public) { + throw new Error('Missing required parameter _public when calling userDataDistributionsIdPut'); + } + // verify required parameter 'name' is set + if (!name) { + throw new Error('Missing required parameter name when calling userDataDistributionsIdPut'); + } + // verify required parameter 'code' is set + if (!code) { + throw new Error('Missing required parameter code when calling userDataDistributionsIdPut'); + } + // verify required parameter 'file' is set + if (!file) { + throw new Error('Missing required parameter file when calling userDataDistributionsIdPut'); + } + headerParams['Content-Type'] = 'application/x-www-form-urlencoded'; + + formParams['public'] = _public; + + formParams['name'] = name; + + formParams['code'] = code; + + formParams['file'] = file; + + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: false, + + data: this.$httpParamSerializer(formParams), + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete a data distribution + * @param user User that the data distribution belongs to + * @param id ID (slug) of the data distribution to delete + */ + public userDataDistributionsIdDelete (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * TODO DUE TO SWAGGER BUG THIS NEEDS TO BE TESTED WITH THE AUTO-GENERATED CLIENTS! Update a data distribution (only change the properties provided in the call) + * @param user Data distribution to change + * @param id ID (slug) of the data distribution to change + * @param _public + * @param name + * @param code + * @param file + */ + public userDataDistributionsIdPatch (user: string, id: string, _public: boolean, name?: string, code?: string, file?: any, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + let formParams: any = {}; + + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdPatch'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdPatch'); + } + // verify required parameter '_public' is set + if (!_public) { + throw new Error('Missing required parameter _public when calling userDataDistributionsIdPatch'); + } + headerParams['Content-Type'] = 'application/x-www-form-urlencoded'; + + formParams['public'] = _public; + + formParams['name'] = name; + + formParams['code'] = code; + + formParams['file'] = file; + + let httpRequestParams: any = { + method: 'PATCH', + url: path, + json: false, + + data: this.$httpParamSerializer(formParams), + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Retrieve configuration for the chosen data distribution + * @param user ID of the user for who to obtain the configuration for the data distribution + * @param id ID (slug) of the data distribution for which to retrieve the configuration + */ + public userDataDistributionsIdConfigurationGet (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdConfigurationGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdConfigurationGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update configuration for the chosen data distribution + * @param user ID of the user for who to update the configuration for the data distribution + * @param id ID (slug) of the data distribution for which to update the configuration + * @param configuration + */ + public userDataDistributionsIdConfigurationPut (user: string, id: string, configuration: Configuration, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdConfigurationPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdConfigurationPut'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userDataDistributionsIdConfigurationPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: configuration, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create configuration for the chosen data distribution + * @param user ID of the user for who to create the configuration for the data distribution + * @param id ID (slug) of the data distribution for which to create the configuration + * @param configuration + */ + public userDataDistributionsIdConfigurationPost (user: string, id: string, configuration: Configuration, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdConfigurationPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdConfigurationPost'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userDataDistributionsIdConfigurationPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: configuration, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete configuration for the chosen data distribution + * @param user ID of the user for who to delete the configuration for the data distribution + * @param id ID (slug) of the data distribution for which to delete the configuration + */ + public userDataDistributionsIdConfigurationDelete (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdConfigurationDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdConfigurationDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Retrieve configuration according to the given key for the chosen data distribution + * @param user ID of the user for who to obtain the configuration for the data distribution + * @param id ID (slug) of the data distribution for which to retrieve the configuration + * @param key The key of the configuration field to obtain + */ + public userDataDistributionsIdConfigurationKeyGet (user: string, id: string, key: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdConfigurationKeyGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdConfigurationKeyGet'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userDataDistributionsIdConfigurationKeyGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update a configuration field for the chosen data distribution + * @param user ID of the user for who to update the configuration for the data distribution + * @param id ID (slug) of the data distribution for which to update the configuration + * @param key The key of the configuration field to update + * @param configuration + */ + public userDataDistributionsIdConfigurationKeyPut (user: string, id: string, key: string, configuration: Configuration, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdConfigurationKeyPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdConfigurationKeyPut'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userDataDistributionsIdConfigurationKeyPut'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userDataDistributionsIdConfigurationKeyPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: configuration, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create a configuration field for the chosen data distribution + * @param user ID of the user for who to create the configuration for the data distribution + * @param id ID (slug) of the data distribution for which to create the configuration + * @param key Key of the configuration to create + * @param configuration + */ + public userDataDistributionsIdConfigurationKeyPost (user: string, id: string, key: string, configuration: Configuration, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdConfigurationKeyPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdConfigurationKeyPost'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userDataDistributionsIdConfigurationKeyPost'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userDataDistributionsIdConfigurationKeyPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: configuration, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete a configuration field for the chosen data distribution + * @param user ID of the user for who to delete the configuration for the data distribution + * @param id ID (slug) of the data distribution for which to delete the configuration + * @param key The key of the configuration field to delete + */ + public userDataDistributionsIdConfigurationKeyDelete (user: string, id: string, key: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdConfigurationKeyDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdConfigurationKeyDelete'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userDataDistributionsIdConfigurationKeyDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Retrieve meta data for the chosen data distribution + * @param user ID of the user for who to obtain the meta data for the data distribution + * @param id ID (slug) of the data distribution for which to retrieve the meta data + */ + public userDataDistributionsIdMetadataGet (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdMetadataGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdMetadataGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update meta data for the chosen data distribution + * @param user ID of the user for who to update the meta data for the data distribution + * @param id ID (slug) of the data distribution for which to update the meta data + * @param metadata + */ + public userDataDistributionsIdMetadataPut (user: string, id: string, metadata: MetaData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdMetadataPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdMetadataPut'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userDataDistributionsIdMetadataPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: metadata, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create meta data for the chosen data distribution + * @param user ID of the user for who to create the meta data for the data distribution + * @param id ID (slug) of the data distribution for which to create the meta data + * @param metadata + */ + public userDataDistributionsIdMetadataPost (user: string, id: string, metadata: MetaData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdMetadataPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdMetadataPost'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userDataDistributionsIdMetadataPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: metadata, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete meta data for the chosen data distribution + * @param user ID of the user for who to delete the meta data for the data distribution + * @param id ID (slug) of the data distribution for which to delete the meta data + */ + public userDataDistributionsIdMetadataDelete (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdMetadataDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdMetadataDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Retrieve meta data according to the given key for the chosen data distribution + * @param user ID of the user for who to obtain the meta data for the data distribution + * @param id ID (slug) of the data distribution for which to retrieve the meta data + * @param key The key of the meta data field to obtain + */ + public userDataDistributionsIdMetadataKeyGet (user: string, id: string, key: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdMetadataKeyGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdMetadataKeyGet'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userDataDistributionsIdMetadataKeyGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update a meta data field for the chosen data distribution + * @param user ID of the user for who to update the meta data for the data distribution + * @param id ID (slug) of the data distribution for which to update the meta data + * @param key The key of the meta data field to update + * @param metadata + */ + public userDataDistributionsIdMetadataKeyPut (user: string, id: string, key: string, metadata: MetaData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdMetadataKeyPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdMetadataKeyPut'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userDataDistributionsIdMetadataKeyPut'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userDataDistributionsIdMetadataKeyPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: metadata, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create a meta data field for the chosen data distribution + * @param user ID of the user for who to create the meta data for the data distribution + * @param id ID (slug) of the data distribution for which to create the meta data + * @param key Key of the metadata to create + * @param metadata + */ + public userDataDistributionsIdMetadataKeyPost (user: string, id: string, key: string, metadata: MetaData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdMetadataKeyPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdMetadataKeyPost'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userDataDistributionsIdMetadataKeyPost'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userDataDistributionsIdMetadataKeyPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: metadata, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete a metadata field for the chosen data distribution + * @param user ID of the user for who to delete the meta data for the data distribution + * @param id ID (slug) of the data distribution for which to delete the meta data + * @param key The key of the meta data field to delete + */ + public userDataDistributionsIdMetadataKeyDelete (user: string, id: string, key: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdMetadataKeyDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdMetadataKeyDelete'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userDataDistributionsIdMetadataKeyDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * (NOT TESTED) Star the selected data distribution + * @param user ID of the user for who to star the data distribution + * @param id ID (slug) of the data distribution to be stared + */ + public userDataDistributionsIdStarPost (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/star' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdStarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdStarPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * (NOT TESTED) Unstar the selected data distribution + * @param user ID of the user for who to unstar the data distribution + * @param id ID (slug) of the data distribution to be unstared + */ + public userDataDistributionsIdUnstarPost (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/data_distributions/{id}/unstar' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userDataDistributionsIdUnstarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userDataDistributionsIdUnstarPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Obtain a list of all public queriable data for a user. If provided with an enabled API key for that user, returns also the private queriable data. + * @param user ID of the user for whom to obtain the queriable data + */ + public userQueriableDataStoresGet (user: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores' + .replace('{' + 'user' + '}', String(user)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create a new queriable data to be stored + * @param user ID of the user for whom to obtain the quireable data + * @param queriableDataStore + */ + public userQueriableDataStoresPost (user: string, queriableDataStore: QueriableData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores' + .replace('{' + 'user' + '}', String(user)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresPost'); + } + // verify required parameter 'queriableDataStore' is set + if (!queriableDataStore) { + throw new Error('Missing required parameter queriableDataStore when calling userQueriableDataStoresPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: queriableDataStore, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Obtain the attributes of the given queriable data + * @param user ID of the user for who to obtain the queriable data + * @param id ID (slug) of the queriable data to retrieve + */ + public userQueriableDataStoresIdGet (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update a queriable data (replace the currently stored one with the one provided in the call) + * @param user ID of the user for who to obtain the queriable data + * @param id ID (slug) of the queriable data to retrieve + * @param queriableDataStore + */ + public userQueriableDataStoresIdPut (user: string, id: string, queriableDataStore: QueriableData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdPut'); + } + // verify required parameter 'queriableDataStore' is set + if (!queriableDataStore) { + throw new Error('Missing required parameter queriableDataStore when calling userQueriableDataStoresIdPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: queriableDataStore, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete a queriable data + * @param user ID of the user who wants to delete the queriable data + * @param id ID (slug) of the queriable data to delete + */ + public userQueriableDataStoresIdDelete (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update a queriable data (only change the properties provided in the call) + * @param user ID of the user for who to obtain the queriable data + * @param id ID (slug) of the queriable data to retrieve + * @param queriableDataStore + */ + public userQueriableDataStoresIdPatch (user: string, id: string, queriableDataStore: QueriableData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdPatch'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdPatch'); + } + // verify required parameter 'queriableDataStore' is set + if (!queriableDataStore) { + throw new Error('Missing required parameter queriableDataStore when calling userQueriableDataStoresIdPatch'); + } + let httpRequestParams: any = { + method: 'PATCH', + url: path, + json: true, + data: queriableDataStore, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Retrieve configuration for the chosen queriable data store + * @param user ID of the user for who to obtain the configuration for the queriable data store + * @param id ID (slug) of the queriable data store for which to retrieve the configuration + */ + public userQueriableDataStoresIdConfigurationGet (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdConfigurationGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdConfigurationGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update configuration for the chosen queriable data store + * @param user ID of the user for who to update the configuration for the queriable data store + * @param id ID (slug) of the queriable data store for which to update the configuration + * @param configuration + */ + public userQueriableDataStoresIdConfigurationPut (user: string, id: string, configuration: Configuration, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdConfigurationPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdConfigurationPut'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userQueriableDataStoresIdConfigurationPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: configuration, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create configuration for the chosen queriable data store + * @param user ID of the user for who to create the configuration for the queriable data store + * @param id ID (slug) of the queriable data store for which to create the configuration + * @param configuration + */ + public userQueriableDataStoresIdConfigurationPost (user: string, id: string, configuration: Configuration, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdConfigurationPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdConfigurationPost'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userQueriableDataStoresIdConfigurationPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: configuration, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete configuration for the chosen queriable data store + * @param user ID of the user for who to delete the configuration for the queriable data store + * @param id ID (slug) of the queriable data store for which to delete the configuration + */ + public userQueriableDataStoresIdConfigurationDelete (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdConfigurationDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdConfigurationDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Retrieve configuration according to the given key for the chosen queriable data store + * @param user ID of the user for who to obtain the configuration for the queriable data store + * @param id ID (slug) of the queriable data store for which to retrieve the configuration + * @param key The key of the configuration field to obtain + */ + public userQueriableDataStoresIdConfigurationKeyGet (user: string, id: string, key: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdConfigurationKeyGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdConfigurationKeyGet'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userQueriableDataStoresIdConfigurationKeyGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update a configuration field for the chosen queriable data store + * @param user ID of the user for who to update the configuration for the queriable data store + * @param id ID (slug) of the queriable data store for which to update the configuration + * @param key The key of the configuration field to update + * @param configuration + */ + public userQueriableDataStoresIdConfigurationKeyPut (user: string, id: string, key: string, configuration: Configuration, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdConfigurationKeyPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdConfigurationKeyPut'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userQueriableDataStoresIdConfigurationKeyPut'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userQueriableDataStoresIdConfigurationKeyPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: configuration, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create a configuration field for the chosen queriable data store + * @param user ID of the user for who to create the configuration for the queriable data store + * @param id ID (slug) of the queriable data store for which to create the configuration + * @param key Key of the configuration to create + * @param configuration + */ + public userQueriableDataStoresIdConfigurationKeyPost (user: string, id: string, key: string, configuration: Configuration, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdConfigurationKeyPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdConfigurationKeyPost'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userQueriableDataStoresIdConfigurationKeyPost'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userQueriableDataStoresIdConfigurationKeyPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: configuration, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete a configuration field for the chosen queriable data store + * @param user ID of the user for who to delete the configuration for the queriable data store + * @param id ID (slug) of the queriable data store for which to delete the configuration + * @param key The key of the configuration field to delete + */ + public userQueriableDataStoresIdConfigurationKeyDelete (user: string, id: string, key: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdConfigurationKeyDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdConfigurationKeyDelete'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userQueriableDataStoresIdConfigurationKeyDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * NOT IMPLEMENTED?? Doesn't work... (Retrieve the code for the queriable data for edit) + * @param user ID of the user for who to edit the queriable data + * @param id ID (slug) of the queriable data to be edited + */ + public userQueriableDataStoresIdEditGet (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/edit' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdEditGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdEditGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Retrieve meta data for the chosen queriable data store + * @param user ID of the user for who to obtain the meta data for the queriable data store + * @param id ID (slug) of the queriable data store for which to retrieve the meta data + */ + public userQueriableDataStoresIdMetadataGet (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdMetadataGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdMetadataGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update meta data for the chosen queriable data store + * @param user ID of the user for who to update the meta data for the queriable data store + * @param id ID (slug) of the queriable data store for which to update the meta data + * @param metadata + */ + public userQueriableDataStoresIdMetadataPut (user: string, id: string, metadata: MetaData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdMetadataPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdMetadataPut'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userQueriableDataStoresIdMetadataPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: metadata, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create meta data for the chosen queriable data store + * @param user ID of the user for who to create the meta data for the queriable data store + * @param id ID (slug) of the queriable data store for which to create the meta data + * @param metadata + */ + public userQueriableDataStoresIdMetadataPost (user: string, id: string, metadata: MetaData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdMetadataPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdMetadataPost'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userQueriableDataStoresIdMetadataPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: metadata, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete meta data for the chosen queriable data store + * @param user ID of the user for who to delete the meta data for the queriable data store + * @param id ID (slug) of the queriable data store for which to delete the meta data + */ + public userQueriableDataStoresIdMetadataDelete (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdMetadataDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdMetadataDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Retrieve meta data according to the given key for the chosen queriable data store + * @param user ID of the user for who to obtain the meta data for the queriable data store + * @param id ID (slug) of the queriable data store for which to retrieve the meta data + * @param key The key of the meta data field to obtain + */ + public userQueriableDataStoresIdMetadataKeyGet (user: string, id: string, key: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdMetadataKeyGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdMetadataKeyGet'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userQueriableDataStoresIdMetadataKeyGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update a meta data field for the chosen queriable data store + * @param user ID of the user for who to update the meta data for the queriable data store + * @param id ID (slug) of the queriable data store for which to update the meta data + * @param key The key of the meta data field to update + * @param metadata + */ + public userQueriableDataStoresIdMetadataKeyPut (user: string, id: string, key: string, metadata: MetaData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdMetadataKeyPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdMetadataKeyPut'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userQueriableDataStoresIdMetadataKeyPut'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userQueriableDataStoresIdMetadataKeyPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: metadata, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create a meta data field for the chosen queriable data store + * @param user ID of the user for who to create the meta data for the queriable data store + * @param id ID (slug) of the queriable data store for which to create the meta data + * @param key Key of the metadata to create + * @param metadata + */ + public userQueriableDataStoresIdMetadataKeyPost (user: string, id: string, key: string, metadata: MetaData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdMetadataKeyPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdMetadataKeyPost'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userQueriableDataStoresIdMetadataKeyPost'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userQueriableDataStoresIdMetadataKeyPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: metadata, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete a metadata field for the chosen queriable data store + * @param user ID of the user for who to delete the meta data for the queriable data store + * @param id ID (slug) of the queriable data store for which to delete the meta data + * @param key The key of the meta data field to delete + */ + public userQueriableDataStoresIdMetadataKeyDelete (user: string, id: string, key: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdMetadataKeyDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdMetadataKeyDelete'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userQueriableDataStoresIdMetadataKeyDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Star the selected queriable data + * @param user ID of the user for who to star the queriable data + * @param id ID (slug) of the queriable data to be stared + */ + public userQueriableDataStoresIdStarPost (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/star' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdStarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdStarPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Unstar the selected queriable data + * @param user ID of the user for who to unstar the queriable data + * @param id ID (slug) of the queriable data to be unstared + */ + public userQueriableDataStoresIdUnstarPost (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/unstar' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdUnstarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdUnstarPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * INVALID! Is this implemented?? (Retrieve versions of the queriable data) + * @param user ID of the user for who to obtain the queriable data + * @param id ID (slug) of the queriable data to retrieve + */ + public userQueriableDataStoresIdVersionsGet (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/queriable_data_stores/{id}/versions' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userQueriableDataStoresIdVersionsGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userQueriableDataStoresIdVersionsGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Obtain a list of all public transformations for a user. If provided with an enabled API key for that user, returns also the private transformations. + * @param user ID of the user for whom to obtain the list + */ + public userTransformationsGet (user: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations' + .replace('{' + 'user' + '}', String(user)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Creates a new transformation for the given user. + * @param user ID of the user for whom to obtain the list + * @param transformation + */ + public userTransformationsPost (user: string, transformation: Transformation, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations' + .replace('{' + 'user' + '}', String(user)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsPost'); + } + // verify required parameter 'transformation' is set + if (!transformation) { + throw new Error('Missing required parameter transformation when calling userTransformationsPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: transformation, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Obtain the attributes of a transformation + * @param user User that the transformation belongs to + * @param id ID (slug) of the transformation to retrieve + */ + public userTransformationsIdGet (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * TO BE IMPLEMENTED - USE PATCH! Update a transformation (replace the currently stored one with the one provided in the call) + * @param user User that the transformation belongs to + * @param id ID (slug) of the transformation to change + * @param transformation + */ + public userTransformationsIdPut (user: string, id: string, transformation: Transformation, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdPut'); + } + // verify required parameter 'transformation' is set + if (!transformation) { + throw new Error('Missing required parameter transformation when calling userTransformationsIdPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: transformation, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete a transformation + * @param user User that the transformation belongs to + * @param id ID (slug) of the transformation to delete + */ + public userTransformationsIdDelete (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update a transformation (only change the properties provided in the call) + * @param user User that the transformation belongs to + * @param id ID (slug) of the transformation to change + * @param transformation + */ + public userTransformationsIdPatch (user: string, id: string, transformation: Transformation, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdPatch'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdPatch'); + } + // verify required parameter 'transformation' is set + if (!transformation) { + throw new Error('Missing required parameter transformation when calling userTransformationsIdPatch'); + } + let httpRequestParams: any = { + method: 'PATCH', + url: path, + json: true, + data: transformation, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Retrieve configuration for the chosen transformation + * @param user ID of the user for who to obtain the configuration for the transformation + * @param id ID (slug) of the transformation for which to retrieve the configuration + */ + public userTransformationsIdConfigurationGet (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdConfigurationGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdConfigurationGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update configuration for the chosen transformation + * @param user ID of the user for who to update the configuration for the transformation + * @param id ID (slug) of the transformation for which to update the configuration + * @param configuration + */ + public userTransformationsIdConfigurationPut (user: string, id: string, configuration: Configuration, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdConfigurationPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdConfigurationPut'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userTransformationsIdConfigurationPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: configuration, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create configuration for the chosen transformation + * @param user ID of the user for who to create the configuration for the transformation + * @param id ID (slug) of the transformation for which to create the configuration + * @param configuration + */ + public userTransformationsIdConfigurationPost (user: string, id: string, configuration: Configuration, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdConfigurationPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdConfigurationPost'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userTransformationsIdConfigurationPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: configuration, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete configuration for the chosen transformation + * @param user ID of the user for who to delete the configuration for the transformation + * @param id ID (slug) of the transformation for which to delete the configuration + */ + public userTransformationsIdConfigurationDelete (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdConfigurationDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdConfigurationDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Retrieve configuration according to the given key for the chosen transformation + * @param user ID of the user for who to obtain the configuration for the transformation + * @param id ID (slug) of the transformation for which to retrieve the configuration + * @param key The key of the configuration field to obtain + */ + public userTransformationsIdConfigurationKeyGet (user: string, id: string, key: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdConfigurationKeyGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdConfigurationKeyGet'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userTransformationsIdConfigurationKeyGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update a configuration field for the chosen transformation + * @param user ID of the user for who to update the configuration for the transformation + * @param id ID (slug) of the transformation for which to update the configuration + * @param key The key of the configuration field to update + * @param configuration + */ + public userTransformationsIdConfigurationKeyPut (user: string, id: string, key: string, configuration: Configuration, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdConfigurationKeyPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdConfigurationKeyPut'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userTransformationsIdConfigurationKeyPut'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userTransformationsIdConfigurationKeyPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: configuration, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create a configuration field for the chosen transformation + * @param user ID of the user for who to create the configuration for the transformation + * @param id ID (slug) of the transformation for which to create the configuration + * @param key Key of the configuration to create + * @param configuration + */ + public userTransformationsIdConfigurationKeyPost (user: string, id: string, key: string, configuration: Configuration, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdConfigurationKeyPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdConfigurationKeyPost'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userTransformationsIdConfigurationKeyPost'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userTransformationsIdConfigurationKeyPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: configuration, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete a configuration field for the chosen transformation + * @param user ID of the user for who to delete the configuration for the transformation + * @param id ID (slug) of the transformation for which to delete the configuration + * @param key The key of the configuration field to delete + */ + public userTransformationsIdConfigurationKeyDelete (user: string, id: string, key: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdConfigurationKeyDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdConfigurationKeyDelete'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userTransformationsIdConfigurationKeyDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Retrieve meta data for the chosen transformation + * @param user ID of the user for who to obtain the meta data for the transformation + * @param id ID (slug) of the transformation for which to retrieve the meta data + */ + public userTransformationsIdMetadataGet (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdMetadataGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdMetadataGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update meta data for the chosen transformation + * @param user ID of the user for who to update the meta data for the transformation + * @param id ID (slug) of the transformation for which to update the meta data + * @param metadata + */ + public userTransformationsIdMetadataPut (user: string, id: string, metadata: MetaData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdMetadataPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdMetadataPut'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userTransformationsIdMetadataPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: metadata, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create meta data for the chosen transformation + * @param user ID of the user for who to create the meta data for the transformation + * @param id ID (slug) of the transformation for which to create the meta data + * @param metadata + */ + public userTransformationsIdMetadataPost (user: string, id: string, metadata: MetaData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdMetadataPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdMetadataPost'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userTransformationsIdMetadataPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: metadata, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete meta data for the chosen transformation + * @param user ID of the user for who to delete the meta data for the transformation + * @param id ID (slug) of the transformation for which to delete the meta data + */ + public userTransformationsIdMetadataDelete (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdMetadataDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdMetadataDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Retrieve meta data according to the given key for the chosen transformation + * @param user ID of the user for who to obtain the meta data for the transformation + * @param id ID (slug) of the transformation for which to retrieve the meta data + * @param key The key of the meta data field to obtain + */ + public userTransformationsIdMetadataKeyGet (user: string, id: string, key: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdMetadataKeyGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdMetadataKeyGet'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userTransformationsIdMetadataKeyGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update a meta data field for the chosen transformation + * @param user ID of the user for who to update the meta data for the transformation + * @param id ID (slug) of the transformation for which to update the meta data + * @param key The key of the meta data field to update + * @param metadata + */ + public userTransformationsIdMetadataKeyPut (user: string, id: string, key: string, metadata: MetaData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdMetadataKeyPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdMetadataKeyPut'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userTransformationsIdMetadataKeyPut'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userTransformationsIdMetadataKeyPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: metadata, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create a meta data field for the chosen transformation + * @param user ID of the user for who to create the meta data for the transformation + * @param id ID (slug) of the transformation for which to create the meta data + * @param key Key of the metadata to create + * @param metadata + */ + public userTransformationsIdMetadataKeyPost (user: string, id: string, key: string, metadata: MetaData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdMetadataKeyPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdMetadataKeyPost'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userTransformationsIdMetadataKeyPost'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userTransformationsIdMetadataKeyPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: metadata, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete a metadata field for the chosen transformation + * @param user ID of the user for who to delete the meta data for the transformation + * @param id ID (slug) of the transformation for which to delete the meta data + * @param key The key of the meta data field to delete + */ + public userTransformationsIdMetadataKeyDelete (user: string, id: string, key: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdMetadataKeyDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdMetadataKeyDelete'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userTransformationsIdMetadataKeyDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Star the selected transformation + * @param user ID of the user for who to star the transformation + * @param id ID (slug) of the transformation to be stared + */ + public userTransformationsIdStarPost (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/star' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdStarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdStarPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Unstar the selected transformation + * @param user ID of the user for who to unstar the transformation + * @param id ID (slug) of the transformation to be unstared + */ + public userTransformationsIdUnstarPost (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/transformations/{id}/unstar' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userTransformationsIdUnstarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userTransformationsIdUnstarPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Obtain a list of all public utility functions for a user. If provided with an enabled API key for that user, returns also the private utility functions. + * @param user ID of the user for whom to obtain the utility functions + */ + public userUtilityFunctionsGet (user: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions' + .replace('{' + 'user' + '}', String(user)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create a new utility function + * @param user ID of the user for whom to create the utility function + * @param utilityFunction + */ + public userUtilityFunctionsPost (user: string, utilityFunction: UtilityFunction, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions' + .replace('{' + 'user' + '}', String(user)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsPost'); + } + // verify required parameter 'utilityFunction' is set + if (!utilityFunction) { + throw new Error('Missing required parameter utilityFunction when calling userUtilityFunctionsPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: utilityFunction, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Obtain the attributes of the given utility function. + * @param user ID of the user for who to obtain the utility function + * @param id ID (slug) of the utility function to retrieve + */ + public userUtilityFunctionsIdGet (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update a utility function by replacing the currently stored one with the one provided in this request + * @param user ID of the user for who to update the utility function + * @param id ID (slug) of the utility function to be updated + * @param utilityFunction + */ + public userUtilityFunctionsIdPut (user: string, id: string, utilityFunction: UtilityFunction, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdPut'); + } + // verify required parameter 'utilityFunction' is set + if (!utilityFunction) { + throw new Error('Missing required parameter utilityFunction when calling userUtilityFunctionsIdPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: utilityFunction, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete the given utility function + * @param user ID of the user for who to delete the utility function + * @param id ID (slug) of the utility function to delete + */ + public userUtilityFunctionsIdDelete (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update a utility function by replacing only the parts provided in this request + * @param user ID of the user for who to update the utility function + * @param id ID (slug) of the utility function to be updated + * @param utilityFunction + */ + public userUtilityFunctionsIdPatch (user: string, id: string, utilityFunction: UtilityFunction, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdPatch'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdPatch'); + } + // verify required parameter 'utilityFunction' is set + if (!utilityFunction) { + throw new Error('Missing required parameter utilityFunction when calling userUtilityFunctionsIdPatch'); + } + let httpRequestParams: any = { + method: 'PATCH', + url: path, + json: true, + data: utilityFunction, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Retrieve configuration for the chosen utility function + * @param user ID of the user for who to obtain the configuration for the utility function + * @param id ID (slug) of the utility function for which to retrieve the configuration + */ + public userUtilityFunctionsIdConfigurationGet (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdConfigurationGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdConfigurationGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update configuration for the chosen utility function + * @param user ID of the user for who to update the configuration for the utility function + * @param id ID (slug) of the utility function for which to update the configuration + * @param configuration + */ + public userUtilityFunctionsIdConfigurationPut (user: string, id: string, configuration: Configuration, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdConfigurationPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdConfigurationPut'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userUtilityFunctionsIdConfigurationPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: configuration, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create configuration for the chosen utility function + * @param user ID of the user for who to create the configuration for the utility function + * @param id ID (slug) of the utility function for which to create the configuration + * @param configuration + */ + public userUtilityFunctionsIdConfigurationPost (user: string, id: string, configuration: Configuration, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdConfigurationPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdConfigurationPost'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userUtilityFunctionsIdConfigurationPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: configuration, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete configuration for the chosen utility function + * @param user ID of the user for who to delete the configuration for the utility function + * @param id ID (slug) of the utility function for which to delete the configuration + */ + public userUtilityFunctionsIdConfigurationDelete (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/configuration' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdConfigurationDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdConfigurationDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Retrieve configuration according to the given key for the chosen utility function + * @param user ID of the user for who to obtain the configuration for the utility function + * @param id ID (slug) of the utility function for which to retrieve the configuration + * @param key The key of the configuration field to obtain + */ + public userUtilityFunctionsIdConfigurationKeyGet (user: string, id: string, key: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdConfigurationKeyGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdConfigurationKeyGet'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userUtilityFunctionsIdConfigurationKeyGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update a configuration field for the chosen utility function + * @param user ID of the user for who to update the configuration for the utility function + * @param id ID (slug) of the utility function for which to update the configuration + * @param key The key of the configuration field to update + * @param configuration + */ + public userUtilityFunctionsIdConfigurationKeyPut (user: string, id: string, key: string, configuration: Configuration, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdConfigurationKeyPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdConfigurationKeyPut'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userUtilityFunctionsIdConfigurationKeyPut'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userUtilityFunctionsIdConfigurationKeyPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: configuration, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create a configuration field for the chosen utility function + * @param user ID of the user for who to create the configuration for the utility function + * @param id ID (slug) of the utility function for which to create the configuration + * @param key Key of the configuration to create + * @param configuration + */ + public userUtilityFunctionsIdConfigurationKeyPost (user: string, id: string, key: string, configuration: Configuration, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdConfigurationKeyPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdConfigurationKeyPost'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userUtilityFunctionsIdConfigurationKeyPost'); + } + // verify required parameter 'configuration' is set + if (!configuration) { + throw new Error('Missing required parameter configuration when calling userUtilityFunctionsIdConfigurationKeyPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: configuration, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete a configuration field for the chosen utility function + * @param user ID of the user for who to delete the configuration for the utility function + * @param id ID (slug) of the utility function for which to delete the configuration + * @param key The key of the configuration field to delete + */ + public userUtilityFunctionsIdConfigurationKeyDelete (user: string, id: string, key: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/configuration/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdConfigurationKeyDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdConfigurationKeyDelete'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userUtilityFunctionsIdConfigurationKeyDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Retrieve meta data for the chosen utility function + * @param user ID of the user for who to obtain the meta data for the utility function + * @param id ID (slug) of the utility function for which to retrieve the meta data + */ + public userUtilityFunctionsIdMetadataGet (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdMetadataGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdMetadataGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update meta data for the chosen utility function + * @param user ID of the user for who to update the meta data for the utility function + * @param id ID (slug) of the utility function for which to update the meta data + * @param metadata + */ + public userUtilityFunctionsIdMetadataPut (user: string, id: string, metadata: MetaData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdMetadataPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdMetadataPut'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userUtilityFunctionsIdMetadataPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: metadata, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create meta data for the chosen utility function + * @param user ID of the user for who to create the meta data for the utility function + * @param id ID (slug) of the utility function for which to create the meta data + * @param metadata + */ + public userUtilityFunctionsIdMetadataPost (user: string, id: string, metadata: MetaData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdMetadataPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdMetadataPost'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userUtilityFunctionsIdMetadataPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: metadata, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete meta data for the chosen utility function + * @param user ID of the user for who to delete the meta data for the utility function + * @param id ID (slug) of the utility function for which to delete the meta data + */ + public userUtilityFunctionsIdMetadataDelete (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/metadata' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdMetadataDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdMetadataDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Retrieve meta data according to the given key for the chosen utility function + * @param user ID of the user for who to obtain the meta data for the utility function + * @param id ID (slug) of the utility function for which to retrieve the meta data + * @param key The key of the meta data field to obtain + */ + public userUtilityFunctionsIdMetadataKeyGet (user: string, id: string, key: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdMetadataKeyGet'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdMetadataKeyGet'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userUtilityFunctionsIdMetadataKeyGet'); + } + let httpRequestParams: any = { + method: 'GET', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Update a meta data field for the chosen utility function + * @param user ID of the user for who to update the meta data for the utility function + * @param id ID (slug) of the utility function for which to update the meta data + * @param key The key of the meta data field to update + * @param metadata + */ + public userUtilityFunctionsIdMetadataKeyPut (user: string, id: string, key: string, metadata: MetaData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdMetadataKeyPut'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdMetadataKeyPut'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userUtilityFunctionsIdMetadataKeyPut'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userUtilityFunctionsIdMetadataKeyPut'); + } + let httpRequestParams: any = { + method: 'PUT', + url: path, + json: true, + data: metadata, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Create a meta data field for the chosen utility function + * @param user ID of the user for who to create the meta data for the utility function + * @param id ID (slug) of the utility function for which to create the meta data + * @param key Key of the metadata to create + * @param metadata + */ + public userUtilityFunctionsIdMetadataKeyPost (user: string, id: string, key: string, metadata: MetaData, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdMetadataKeyPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdMetadataKeyPost'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userUtilityFunctionsIdMetadataKeyPost'); + } + // verify required parameter 'metadata' is set + if (!metadata) { + throw new Error('Missing required parameter metadata when calling userUtilityFunctionsIdMetadataKeyPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + data: metadata, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Delete a metadata field for the chosen utility function + * @param user ID of the user for who to delete the meta data for the utility function + * @param id ID (slug) of the utility function for which to delete the meta data + * @param key The key of the meta data field to delete + */ + public userUtilityFunctionsIdMetadataKeyDelete (user: string, id: string, key: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/metadata/{key}' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)) + .replace('{' + 'key' + '}', String(key)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdMetadataKeyDelete'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdMetadataKeyDelete'); + } + // verify required parameter 'key' is set + if (!key) { + throw new Error('Missing required parameter key when calling userUtilityFunctionsIdMetadataKeyDelete'); + } + let httpRequestParams: any = { + method: 'DELETE', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Star the selected utility function + * @param user ID of the user for who to star the utility function + * @param id ID (slug) of the utility function to be stared + */ + public userUtilityFunctionsIdStarPost (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/star' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdStarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdStarPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + /** + * + * Unstar the selected utility function + * @param user ID of the user for who to unstar the utility function + * @param id ID (slut) of the utility function to be unstared + */ + public userUtilityFunctionsIdUnstarPost (user: string, id: string, extraHttpRequestParams?: any ) : ng.IHttpPromise<{}> { + const path = this.basePath + '/{user}/utility_functions/{id}/unstar' + .replace('{' + 'user' + '}', String(user)) + .replace('{' + 'id' + '}', String(id)); + + let queryParameters: any = {}; + let headerParams: any = this.extendObj({}, this.defaultHeaders); + // verify required parameter 'user' is set + if (!user) { + throw new Error('Missing required parameter user when calling userUtilityFunctionsIdUnstarPost'); + } + // verify required parameter 'id' is set + if (!id) { + throw new Error('Missing required parameter id when calling userUtilityFunctionsIdUnstarPost'); + } + let httpRequestParams: any = { + method: 'POST', + url: path, + json: true, + + + params: queryParameters, + headers: headerParams + }; + + if (extraHttpRequestParams) { + httpRequestParams = this.extendObj(httpRequestParams, extraHttpRequestParams); + } + + return this.$http(httpRequestParams); + } + } +} diff --git a/app/swagger/datagraftClient/API/Client/MetaData.js b/app/swagger/datagraftClient/API/Client/MetaData.js new file mode 100644 index 0000000..bceb4b4 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/MetaData.js @@ -0,0 +1,8 @@ +/// +var API; +(function (API) { + var Client; + (function (Client) { + 'use strict'; + })(Client = API.Client || (API.Client = {})); +})(API || (API = {})); diff --git a/app/swagger/datagraftClient/API/Client/MetaData.ts b/app/swagger/datagraftClient/API/Client/MetaData.ts new file mode 100644 index 0000000..ceb750b --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/MetaData.ts @@ -0,0 +1,9 @@ +/// + +namespace API.Client { + 'use strict'; + + export interface MetaData { + } + +} diff --git a/app/swagger/datagraftClient/API/Client/QueriableData.js b/app/swagger/datagraftClient/API/Client/QueriableData.js new file mode 100644 index 0000000..bceb4b4 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/QueriableData.js @@ -0,0 +1,8 @@ +/// +var API; +(function (API) { + var Client; + (function (Client) { + 'use strict'; + })(Client = API.Client || (API.Client = {})); +})(API || (API = {})); diff --git a/app/swagger/datagraftClient/API/Client/QueriableData.ts b/app/swagger/datagraftClient/API/Client/QueriableData.ts new file mode 100644 index 0000000..01aae74 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/QueriableData.ts @@ -0,0 +1,15 @@ +/// + +namespace API.Client { + 'use strict'; + + export interface QueriableData { + + _public?: boolean; + + name?: string; + + code?: string; + } + +} diff --git a/app/swagger/datagraftClient/API/Client/Transformation.js b/app/swagger/datagraftClient/API/Client/Transformation.js new file mode 100644 index 0000000..bceb4b4 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/Transformation.js @@ -0,0 +1,8 @@ +/// +var API; +(function (API) { + var Client; + (function (Client) { + 'use strict'; + })(Client = API.Client || (API.Client = {})); +})(API || (API = {})); diff --git a/app/swagger/datagraftClient/API/Client/Transformation.ts b/app/swagger/datagraftClient/API/Client/Transformation.ts new file mode 100644 index 0000000..97ca27a --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/Transformation.ts @@ -0,0 +1,18 @@ +/// + +namespace API.Client { + 'use strict'; + + export interface Transformation { + + name?: string; + + _public?: boolean; + + /** + * JSON representation of a Grafterizer transformation + */ + code?: string; + } + +} diff --git a/app/swagger/datagraftClient/API/Client/User.js b/app/swagger/datagraftClient/API/Client/User.js new file mode 100644 index 0000000..bceb4b4 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/User.js @@ -0,0 +1,8 @@ +/// +var API; +(function (API) { + var Client; + (function (Client) { + 'use strict'; + })(Client = API.Client || (API.Client = {})); +})(API || (API = {})); diff --git a/app/swagger/datagraftClient/API/Client/User.ts b/app/swagger/datagraftClient/API/Client/User.ts new file mode 100644 index 0000000..85cb522 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/User.ts @@ -0,0 +1,23 @@ +/// + +namespace API.Client { + 'use strict'; + + export interface User { + + username?: string; + + email: string; + + /** + * Name of the organisation the user belongs to + */ + organization?: string; + + /** + * Address of the user + */ + place?: string; + } + +} diff --git a/app/swagger/datagraftClient/API/Client/UtilityFunction.js b/app/swagger/datagraftClient/API/Client/UtilityFunction.js new file mode 100644 index 0000000..bceb4b4 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/UtilityFunction.js @@ -0,0 +1,8 @@ +/// +var API; +(function (API) { + var Client; + (function (Client) { + 'use strict'; + })(Client = API.Client || (API.Client = {})); +})(API || (API = {})); diff --git a/app/swagger/datagraftClient/API/Client/UtilityFunction.ts b/app/swagger/datagraftClient/API/Client/UtilityFunction.ts new file mode 100644 index 0000000..35417a0 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/UtilityFunction.ts @@ -0,0 +1,17 @@ +/// + +namespace API.Client { + 'use strict'; + + export interface UtilityFunction { + + _public?: boolean; + + name?: string; + + metadata?: string; + + configuration?: string; + } + +} diff --git a/app/swagger/datagraftClient/API/Client/api.d.ts b/app/swagger/datagraftClient/API/Client/api.d.ts new file mode 100644 index 0000000..23adb51 --- /dev/null +++ b/app/swagger/datagraftClient/API/Client/api.d.ts @@ -0,0 +1,11 @@ +/// +/// +/// +/// +/// +/// +/// +/// +/// + +/// diff --git a/app/swagger/swagger-codegen-cli-215.jar b/app/swagger/swagger-codegen-cli-215.jar new file mode 100644 index 0000000..f41382c Binary files /dev/null and b/app/swagger/swagger-codegen-cli-215.jar differ diff --git a/app/views/transformation.html b/app/views/transformation.html index c6a19bf..84f2d87 100755 --- a/app/views/transformation.html +++ b/app/views/transformation.html @@ -43,7 +43,10 @@ Edit prefixes - + + Edit utility functions (old) + + Edit utility functions