@coscine/api-connection
Advanced tools
Comparing version 1.25.0 to 1.26.0
@@ -437,6 +437,24 @@ var axios = require('axios'); | ||
return axios$9 | ||
.get(getOrganizationApiUrl() + '-/isRWTHMember') | ||
.get(getOrganizationApiUrl() + '-/isMember/' + encodeURIComponent('https://ror.org/04xfq0f34')) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
OrganizationApi.isMember = function (organizationUrl, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$9 | ||
.get(getOrganizationApiUrl() + '-/isMember/' + encodeURIComponent(organizationUrl)) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
OrganizationApi.getMemberships = function (thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$9 | ||
.get(getOrganizationApiUrl() + '-/isMember') | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
return OrganizationApi; | ||
@@ -443,0 +461,0 @@ }()); |
@@ -443,6 +443,24 @@ (function (global, factory) { | ||
return axios$9 | ||
.get(getOrganizationApiUrl() + '-/isRWTHMember') | ||
.get(getOrganizationApiUrl() + '-/isMember/' + encodeURIComponent('https://ror.org/04xfq0f34')) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
OrganizationApi.isMember = function (organizationUrl, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$9 | ||
.get(getOrganizationApiUrl() + '-/isMember/' + encodeURIComponent(organizationUrl)) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
OrganizationApi.getMemberships = function (thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$9 | ||
.get(getOrganizationApiUrl() + '-/isMember') | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
return OrganizationApi; | ||
@@ -449,0 +467,0 @@ }()); |
@@ -62,6 +62,24 @@ "use strict"; | ||
return axios | ||
.get(getOrganizationApiUrl() + '-/isRWTHMember') | ||
.get(getOrganizationApiUrl() + '-/isMember/' + encodeURIComponent('https://ror.org/04xfq0f34')) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
OrganizationApi.isMember = function (organizationUrl, 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(getOrganizationApiUrl() + '-/isMember/' + encodeURIComponent(organizationUrl)) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
OrganizationApi.getMemberships = 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; } | ||
api_connection_basic_1.default.setHeader(); | ||
return axios | ||
.get(getOrganizationApiUrl() + '-/isMember') | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
return OrganizationApi; | ||
@@ -68,0 +86,0 @@ }()); |
@@ -8,2 +8,4 @@ export declare class OrganizationApi { | ||
static isRWTHMember(thenHandler?: any, catchHandler?: any): any; | ||
static isMember(organizationUrl: string, thenHandler?: any, catchHandler?: any): any; | ||
static getMemberships(thenHandler?: any, catchHandler?: any): any; | ||
} |
{ | ||
"name": "@coscine/api-connection", | ||
"version": "1.25.0", | ||
"version": "1.26.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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
395483
3576