@coscine/api-connection
Advanced tools
Comparing version 1.30.0 to 1.31.0
@@ -166,3 +166,3 @@ var axios$p = require('axios'); | ||
//# sourceMappingURL=FileSaver.min.js.map | ||
}); | ||
@@ -839,2 +839,11 @@ | ||
}; | ||
ResourceApi.setResourceReadonly = function (resourceId, isResourceReadOnly, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$a | ||
.post(getResourceApiUrl() + resourceId + '/setReadonly?status=' + isResourceReadOnly) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
return ResourceApi; | ||
@@ -841,0 +850,0 @@ }()); |
@@ -172,3 +172,3 @@ (function (global, factory) { | ||
//# sourceMappingURL=FileSaver.min.js.map | ||
}); | ||
@@ -845,2 +845,11 @@ | ||
}; | ||
ResourceApi.setResourceReadonly = function (resourceId, isResourceReadOnly, thenHandler, catchHandler) { | ||
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; } | ||
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; } | ||
apiConnectionBasic.setHeader(); | ||
return axios$a | ||
.post(getResourceApiUrl() + resourceId + '/setReadonly?status=' + isResourceReadOnly) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
return ResourceApi; | ||
@@ -847,0 +856,0 @@ }()); |
@@ -57,2 +57,11 @@ "use strict"; | ||
}; | ||
ResourceApi.setResourceReadonly = function (resourceId, isResourceReadOnly, 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(getResourceApiUrl() + resourceId + '/setReadonly?status=' + isResourceReadOnly) | ||
.then(thenHandler) | ||
.catch(catchHandler); | ||
}; | ||
return ResourceApi; | ||
@@ -59,0 +68,0 @@ }()); |
@@ -7,2 +7,3 @@ export declare class ResourceApi { | ||
static isUserResourceCreator(resourceId: string, thenHandler?: any, catchHandler?: any): any; | ||
static setResourceReadonly(resourceId: string, isResourceReadOnly: boolean, thenHandler?: any, catchHandler?: any): any; | ||
} |
{ | ||
"name": "@coscine/api-connection", | ||
"version": "1.30.0", | ||
"version": "1.31.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
427312
3863