@coscine/api-connection
Advanced tools
Comparing version 1.29.0 to 1.30.0
@@ -686,2 +686,38 @@ var axios$p = require('axios'); | ||
}; | ||
ProjectApi.getInvitationsList = function (projectId, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$c | ||
.get(getProjectApiUrl() + 'invitation/list/' + projectId) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
ProjectApi.storeInvitation = function (body, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$c | ||
.post(getProjectApiUrl() + 'invitation', body) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
ProjectApi.deleteInvitation = function (invitationId, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$c | ||
.delete(getProjectApiUrl() + 'invitation/' + invitationId) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
ProjectApi.resolveInvitation = function (token, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$c | ||
.get(getProjectApiUrl() + 'invitation/resolve/' + token) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
return ProjectApi; | ||
@@ -688,0 +724,0 @@ }()); |
@@ -692,2 +692,38 @@ (function (global, factory) { | ||
}; | ||
ProjectApi.getInvitationsList = function (projectId, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$c | ||
.get(getProjectApiUrl() + 'invitation/list/' + projectId) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
ProjectApi.storeInvitation = function (body, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$c | ||
.post(getProjectApiUrl() + 'invitation', body) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
ProjectApi.deleteInvitation = function (invitationId, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$c | ||
.delete(getProjectApiUrl() + 'invitation/' + invitationId) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
ProjectApi.resolveInvitation = function (token, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$c | ||
.get(getProjectApiUrl() + 'invitation/resolve/' + token) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
return ProjectApi; | ||
@@ -694,0 +730,0 @@ }()); |
@@ -129,2 +129,38 @@ "use strict"; | ||
}; | ||
ProjectApi.getInvitationsList = function (projectId, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = api_connection_basic_1.default.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = api_connection_basic_1.default.defaultOnCatch; } | ||
api_connection_basic_1.default.setHeader(); | ||
return axios | ||
.get(getProjectApiUrl() + 'invitation/list/' + projectId) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
ProjectApi.storeInvitation = function (body, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = api_connection_basic_1.default.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = api_connection_basic_1.default.defaultOnCatch; } | ||
api_connection_basic_1.default.setHeader(); | ||
return axios | ||
.post(getProjectApiUrl() + 'invitation', body) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
ProjectApi.deleteInvitation = function (invitationId, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = api_connection_basic_1.default.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = api_connection_basic_1.default.defaultOnCatch; } | ||
api_connection_basic_1.default.setHeader(); | ||
return axios | ||
.delete(getProjectApiUrl() + 'invitation/' + invitationId) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
ProjectApi.resolveInvitation = function (token, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = api_connection_basic_1.default.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = api_connection_basic_1.default.defaultOnCatch; } | ||
api_connection_basic_1.default.setHeader(); | ||
return axios | ||
.get(getProjectApiUrl() + 'invitation/resolve/' + token) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
return ProjectApi; | ||
@@ -131,0 +167,0 @@ }()); |
@@ -16,2 +16,6 @@ export declare class ProjectApi { | ||
static getTopLevelProjectsWithoutAnalyticsLog(thenHandler?: any, catchHandler?: any): void; | ||
static getInvitationsList(projectId: string, thenHandler?: any, catchHandler?: any): any; | ||
static storeInvitation(body: any, thenHandler?: any, catchHandler?: any): any; | ||
static deleteInvitation(invitationId: string, thenHandler?: any, catchHandler?: any): any; | ||
static resolveInvitation(token: string, thenHandler?: any, catchHandler?: any): any; | ||
} |
{ | ||
"name": "@coscine/api-connection", | ||
"version": "1.29.0", | ||
"version": "1.30.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
423771
3837