@coscine/api-connection
Advanced tools
Comparing version 1.19.0 to 1.20.0
@@ -470,2 +470,17 @@ var axios = require('axios'); | ||
}; | ||
ProjectApi.getTopLevelProjects = function (thenHandler, catchHandler, analyticsLogFlag) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
if (analyticsLogFlag === void 0) { analyticsLogFlag = ""; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$9 | ||
.get(getProjectApiUrl() + '-/topLevel' + analyticsLogFlag) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
ProjectApi.getTopLevelProjectsWithoutAnalyticsLog = function (thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
ProjectApi.getTopLevelProjects(thenHandler, catchHandler, '?noanalyticslog=true'); | ||
}; | ||
return ProjectApi; | ||
@@ -472,0 +487,0 @@ }()); |
@@ -476,2 +476,17 @@ (function (global, factory) { | ||
}; | ||
ProjectApi.getTopLevelProjects = function (thenHandler, catchHandler, analyticsLogFlag) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
if (analyticsLogFlag === void 0) { analyticsLogFlag = ""; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$9 | ||
.get(getProjectApiUrl() + '-/topLevel' + analyticsLogFlag) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
ProjectApi.getTopLevelProjectsWithoutAnalyticsLog = function (thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
ProjectApi.getTopLevelProjects(thenHandler, catchHandler, '?noanalyticslog=true'); | ||
}; | ||
return ProjectApi; | ||
@@ -478,0 +493,0 @@ }()); |
@@ -87,2 +87,17 @@ "use strict"; | ||
}; | ||
ProjectApi.getTopLevelProjects = function (thenHandler, catchHandler, analyticsLogFlag) { | ||
if (thenHandler === void 0) { thenHandler = api_connection_basic_1.default.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = api_connection_basic_1.default.defaultOnCatch; } | ||
if (analyticsLogFlag === void 0) { analyticsLogFlag = ""; } | ||
api_connection_basic_1.default.setHeader(); | ||
return axios | ||
.get(getProjectApiUrl() + '-/topLevel' + analyticsLogFlag) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
ProjectApi.getTopLevelProjectsWithoutAnalyticsLog = function (thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = api_connection_basic_1.default.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = api_connection_basic_1.default.defaultOnCatch; } | ||
ProjectApi.getTopLevelProjects(thenHandler, catchHandler, '?noanalyticslog=true'); | ||
}; | ||
return ProjectApi; | ||
@@ -89,0 +104,0 @@ }()); |
@@ -11,2 +11,4 @@ export declare class ProjectApi { | ||
static getProjectsWithoutAnalyticsLog(thenHandler?: any, catchHandler?: any): void; | ||
static getTopLevelProjects(thenHandler?: any, catchHandler?: any, analyticsLogFlag?: any): any; | ||
static getTopLevelProjectsWithoutAnalyticsLog(thenHandler?: any, catchHandler?: any): void; | ||
} |
{ | ||
"name": "@coscine/api-connection", | ||
"version": "1.19.0", | ||
"version": "1.20.0", | ||
"description": "This library provides methods to connect to CoScInE Apis with JavaScript.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
372200
2919