Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@coscine/api-connection

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coscine/api-connection - npm Package Compare versions

Comparing version 1.21.0 to 1.22.0

dist/coscine-api-connection-1.22.0.tgz

136

dist/api-connection.es5.js
var axios = require('axios');
var authHeaderKey = 'Authorization';
var clientCorrolationIdKey = 'X-Coscine-Logging-CorrelationId';
axios.interceptors.request.use(function (request) {
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
coscine.loading.counter++;
}
return request;
}, function (error) {
return Promise.reject(error);
});
axios.interceptors.response.use(function (response) {
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
coscine.loading.counter--;
}
return response;
}, function (error) {
return Promise.reject(error);
});
var apiConnectionBasic = {

@@ -398,2 +414,20 @@ getHostName: function () {

var axios$9 = require('axios');
function getPIDApiUrl() {
return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Pid/Pid/');
}
var PIDApi = /** @class */ (function () {
function PIDApi() {
}
PIDApi.sendMailToOwner = function (body, thenHandler, catchHandler) {
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; }
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; }
return axios$9
.post(getPIDApiUrl() + 'sendMailToOwner', body)
.then(thenHandler)
.catch(catchHandler);
};
return PIDApi;
}());
var axios$a = require('axios');
function getProjectApiUrl() {

@@ -409,3 +443,3 @@ return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Project/Project/');

apiConnectionBasic.setHeader();
return axios$9
return axios$a
.get(getProjectApiUrl() + projectId)

@@ -419,3 +453,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$9
return axios$a
.post(getProjectApiUrl(), body)

@@ -429,3 +463,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$9
return axios$a
.post(getProjectApiUrl() + projectId, body)

@@ -439,3 +473,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$9
return axios$a
.get(getProjectApiUrl() + projectId + '/quotas')

@@ -450,3 +484,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$9
return axios$a
.get(getProjectApiUrl() + projectId + '/resources' + analyticsLogFlag)

@@ -465,3 +499,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$9
return axios$a
.delete(getProjectApiUrl() + projectId)

@@ -476,3 +510,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$9
return axios$a
.get(getProjectApiUrl() + analyticsLogFlag)

@@ -492,3 +526,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$9
return axios$a
.get(getProjectApiUrl() + '-/topLevel' + analyticsLogFlag)

@@ -506,3 +540,3 @@ .then(thenHandler)

var axios$a = require('axios');
var axios$b = require('axios');
function getProjectRoleApiUrl() {

@@ -519,3 +553,3 @@ return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Project/ProjectRole/');

apiConnectionBasic.setHeader();
return axios$a
return axios$b
.get(getProjectRoleApiUrl() + parentId + '/' + analyticsLogFlag)

@@ -534,3 +568,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$a
return axios$b
.get(getProjectRoleApiUrl() + 'project/' + projectId + '/')

@@ -544,3 +578,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$a
return axios$b
.post(getProjectRoleApiUrl(), body)

@@ -554,3 +588,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$a
return axios$b
.delete(getProjectRoleApiUrl() + 'project/' + parentId + '/user/' + userId + '/role/' + roleId)

@@ -564,3 +598,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$a
return axios$b
.delete(getProjectRoleApiUrl() + 'project/' + projectId + '/user')

@@ -573,3 +607,3 @@ .then(thenHandler)

var axios$b = require('axios');
var axios$c = require('axios');
function getResourceApiUrl() {

@@ -585,3 +619,3 @@ return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Resources/Resource/');

apiConnectionBasic.setHeader();
return axios$b
return axios$c
.get(getResourceApiUrl() + resourceId)

@@ -595,3 +629,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$b
return axios$c
.post(getResourceApiUrl() + 'Project/' + parentId, body)

@@ -605,3 +639,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$b
return axios$c
.delete(getResourceApiUrl() + resourceId)

@@ -615,3 +649,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$b
return axios$c
.post(getResourceApiUrl() + resourceId, body)

@@ -625,3 +659,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$b
return axios$c
.get(getResourceApiUrl() + resourceId + '/isCreator')

@@ -634,3 +668,3 @@ .then(thenHandler)

var axios$c = require('axios');
var axios$d = require('axios');
function getResourceTypeApiUrl() {

@@ -648,3 +682,3 @@ return ('https://' +

apiConnectionBasic.setHeader();
return axios$c
return axios$d
.get(getResourceTypeApiUrl() + 'types')

@@ -658,3 +692,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$c
return axios$d
.get(getResourceTypeApiUrl() + 'types/-/enabled')

@@ -668,3 +702,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$c
return axios$d
.get(getResourceTypeApiUrl() + 'types/' + resourceTypeId)

@@ -677,3 +711,3 @@ .then(thenHandler)

var axios$d = require('axios');
var axios$e = require('axios');
function getRoleApiUrl() {

@@ -689,3 +723,3 @@ return 'https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Project/Role/';

apiConnectionBasic.setHeader();
return axios$d
return axios$e
.get(getRoleApiUrl())

@@ -698,3 +732,3 @@ .then(thenHandler)

var axios$e = require('axios');
var axios$f = require('axios');
function getSearchApiUrl() {

@@ -710,3 +744,3 @@ return 'https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Project/Search/';

apiConnectionBasic.setHeader();
return axios$e
return axios$f
.get(getSearchApiUrl() + 'all/' + encodeURIComponent(query))

@@ -720,3 +754,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$e
return axios$f
.get(getSearchApiUrl() + 'allNoFilter/')

@@ -730,3 +764,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$e
return axios$f
.get(getSearchApiUrl() + 'project/' + projectId + '/' + encodeURIComponent(query))

@@ -740,3 +774,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$e
return axios$f
.get(getSearchApiUrl() + 'projectNoFilter/' + projectId)

@@ -749,3 +783,3 @@ .then(thenHandler)

var axios$f = require('axios');
var axios$g = require('axios');
function getSubProjectApiUrl() {

@@ -761,3 +795,3 @@ return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Project/SubProject/');

apiConnectionBasic.setHeader();
return axios$f
return axios$g
.get(getSubProjectApiUrl() + parentId + '/')

@@ -771,3 +805,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$f
return axios$g
.get(getSubProjectApiUrl() + childId + '/accessibleParent')

@@ -780,3 +814,3 @@ .then(thenHandler)

var axios$g = require('axios');
var axios$h = require('axios');
function getTitleApiUrl() {

@@ -792,3 +826,3 @@ return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.User/Title/');

apiConnectionBasic.setHeader();
return axios$g
return axios$h
.get(getTitleApiUrl())

@@ -801,3 +835,3 @@ .then(thenHandler)

var axios$h = require('axios');
var axios$i = require('axios');
var authHeaderKey$1 = 'Authorization';

@@ -808,3 +842,3 @@ function getTOSApiUrl() {

function setHeader(jwtToken) {
axios$h.defaults.headers.common[authHeaderKey$1] =
axios$i.defaults.headers.common[authHeaderKey$1] =
'Bearer ' + jwtToken;

@@ -819,3 +853,3 @@ }

apiConnectionBasic.setHeader();
return axios$h
return axios$i
.get(getTOSApiUrl())

@@ -829,3 +863,3 @@ .then(thenHandler)

setHeader(jwtToken);
return axios$h
return axios$i
.post(getTOSApiUrl())

@@ -838,3 +872,3 @@ .then(thenHandler)

var axios$i = require('axios');
var axios$j = require('axios');
function getTreeApiUrl() {

@@ -850,3 +884,3 @@ return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Tree/Tree/');

apiConnectionBasic.setHeader();
return axios$i
return axios$j
.get(getTreeApiUrl() + resourceId + '/' + apiConnectionBasic.preparePath(path))

@@ -870,3 +904,3 @@ .then(thenHandler)

}
return axios$i
return axios$j
.put(getTreeApiUrl() + resourceId + '/' + apiConnectionBasic.preparePath(path), body)

@@ -879,3 +913,3 @@ .then(thenHandler)

var axios$j = require('axios');
var axios$k = require('axios');
function getUserApiUrl() {

@@ -891,3 +925,3 @@ return 'https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.User/User/';

apiConnectionBasic.setHeader();
return axios$j
return axios$k
.get(getUserApiUrl() + 'query/' + query + '/project/' + parentId + '/')

@@ -901,3 +935,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$j
return axios$k
.get(getUserApiUrl() + 'user')

@@ -911,3 +945,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$j
return axios$k
.post(getUserApiUrl() + 'user', body)

@@ -921,3 +955,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$j
return axios$k
.get(getUserApiUrl() + 'mergeToken/' + provider)

@@ -930,3 +964,3 @@ .then(thenHandler)

var axios$k = require('axios');
var axios$l = require('axios');
function getVisibilityApiUrl() {

@@ -942,3 +976,3 @@ return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Project/Visibility/');

apiConnectionBasic.setHeader();
return axios$k
return axios$l
.get(getVisibilityApiUrl())

@@ -951,3 +985,3 @@ .then(thenHandler)

export { ActivatedFeaturesApi, BlobApi, DisciplineApi, LanguageApi, LicenseApi, MetadataApi, NoticeApi, OrganizationApi, ProjectApi, ProjectRoleApi, ResourceApi, ResourceTypeApi, RoleApi, SearchApi, SubProjectApi, TOSApi, TitleApi, TreeApi, UserApi, VisibilityApi };
export { ActivatedFeaturesApi, BlobApi, DisciplineApi, LanguageApi, LicenseApi, MetadataApi, NoticeApi, OrganizationApi, PIDApi, ProjectApi, ProjectRoleApi, ResourceApi, ResourceTypeApi, RoleApi, SearchApi, SubProjectApi, TOSApi, TitleApi, TreeApi, UserApi, VisibilityApi };
//# sourceMappingURL=api-connection.es5.js.map

@@ -10,2 +10,18 @@ (function (global, factory) {

var clientCorrolationIdKey = 'X-Coscine-Logging-CorrelationId';
axios.interceptors.request.use(function (request) {
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
coscine.loading.counter++;
}
return request;
}, function (error) {
return Promise.reject(error);
});
axios.interceptors.response.use(function (response) {
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
coscine.loading.counter--;
}
return response;
}, function (error) {
return Promise.reject(error);
});
var apiConnectionBasic = {

@@ -405,2 +421,20 @@ getHostName: function () {

var axios$9 = require('axios');
function getPIDApiUrl() {
return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Pid/Pid/');
}
var PIDApi = /** @class */ (function () {
function PIDApi() {
}
PIDApi.sendMailToOwner = function (body, thenHandler, catchHandler) {
if (thenHandler === void 0) { thenHandler = apiConnectionBasic.defaultThenHandler; }
if (catchHandler === void 0) { catchHandler = apiConnectionBasic.defaultOnCatch; }
return axios$9
.post(getPIDApiUrl() + 'sendMailToOwner', body)
.then(thenHandler)
.catch(catchHandler);
};
return PIDApi;
}());
var axios$a = require('axios');
function getProjectApiUrl() {

@@ -416,3 +450,3 @@ return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Project/Project/');

apiConnectionBasic.setHeader();
return axios$9
return axios$a
.get(getProjectApiUrl() + projectId)

@@ -426,3 +460,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$9
return axios$a
.post(getProjectApiUrl(), body)

@@ -436,3 +470,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$9
return axios$a
.post(getProjectApiUrl() + projectId, body)

@@ -446,3 +480,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$9
return axios$a
.get(getProjectApiUrl() + projectId + '/quotas')

@@ -457,3 +491,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$9
return axios$a
.get(getProjectApiUrl() + projectId + '/resources' + analyticsLogFlag)

@@ -472,3 +506,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$9
return axios$a
.delete(getProjectApiUrl() + projectId)

@@ -483,3 +517,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$9
return axios$a
.get(getProjectApiUrl() + analyticsLogFlag)

@@ -499,3 +533,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$9
return axios$a
.get(getProjectApiUrl() + '-/topLevel' + analyticsLogFlag)

@@ -513,3 +547,3 @@ .then(thenHandler)

var axios$a = require('axios');
var axios$b = require('axios');
function getProjectRoleApiUrl() {

@@ -526,3 +560,3 @@ return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Project/ProjectRole/');

apiConnectionBasic.setHeader();
return axios$a
return axios$b
.get(getProjectRoleApiUrl() + parentId + '/' + analyticsLogFlag)

@@ -541,3 +575,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$a
return axios$b
.get(getProjectRoleApiUrl() + 'project/' + projectId + '/')

@@ -551,3 +585,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$a
return axios$b
.post(getProjectRoleApiUrl(), body)

@@ -561,3 +595,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$a
return axios$b
.delete(getProjectRoleApiUrl() + 'project/' + parentId + '/user/' + userId + '/role/' + roleId)

@@ -571,3 +605,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$a
return axios$b
.delete(getProjectRoleApiUrl() + 'project/' + projectId + '/user')

@@ -580,3 +614,3 @@ .then(thenHandler)

var axios$b = require('axios');
var axios$c = require('axios');
function getResourceApiUrl() {

@@ -592,3 +626,3 @@ return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Resources/Resource/');

apiConnectionBasic.setHeader();
return axios$b
return axios$c
.get(getResourceApiUrl() + resourceId)

@@ -602,3 +636,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$b
return axios$c
.post(getResourceApiUrl() + 'Project/' + parentId, body)

@@ -612,3 +646,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$b
return axios$c
.delete(getResourceApiUrl() + resourceId)

@@ -622,3 +656,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$b
return axios$c
.post(getResourceApiUrl() + resourceId, body)

@@ -632,3 +666,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$b
return axios$c
.get(getResourceApiUrl() + resourceId + '/isCreator')

@@ -641,3 +675,3 @@ .then(thenHandler)

var axios$c = require('axios');
var axios$d = require('axios');
function getResourceTypeApiUrl() {

@@ -655,3 +689,3 @@ return ('https://' +

apiConnectionBasic.setHeader();
return axios$c
return axios$d
.get(getResourceTypeApiUrl() + 'types')

@@ -665,3 +699,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$c
return axios$d
.get(getResourceTypeApiUrl() + 'types/-/enabled')

@@ -675,3 +709,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$c
return axios$d
.get(getResourceTypeApiUrl() + 'types/' + resourceTypeId)

@@ -684,3 +718,3 @@ .then(thenHandler)

var axios$d = require('axios');
var axios$e = require('axios');
function getRoleApiUrl() {

@@ -696,3 +730,3 @@ return 'https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Project/Role/';

apiConnectionBasic.setHeader();
return axios$d
return axios$e
.get(getRoleApiUrl())

@@ -705,3 +739,3 @@ .then(thenHandler)

var axios$e = require('axios');
var axios$f = require('axios');
function getSearchApiUrl() {

@@ -717,3 +751,3 @@ return 'https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Project/Search/';

apiConnectionBasic.setHeader();
return axios$e
return axios$f
.get(getSearchApiUrl() + 'all/' + encodeURIComponent(query))

@@ -727,3 +761,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$e
return axios$f
.get(getSearchApiUrl() + 'allNoFilter/')

@@ -737,3 +771,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$e
return axios$f
.get(getSearchApiUrl() + 'project/' + projectId + '/' + encodeURIComponent(query))

@@ -747,3 +781,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$e
return axios$f
.get(getSearchApiUrl() + 'projectNoFilter/' + projectId)

@@ -756,3 +790,3 @@ .then(thenHandler)

var axios$f = require('axios');
var axios$g = require('axios');
function getSubProjectApiUrl() {

@@ -768,3 +802,3 @@ return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Project/SubProject/');

apiConnectionBasic.setHeader();
return axios$f
return axios$g
.get(getSubProjectApiUrl() + parentId + '/')

@@ -778,3 +812,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$f
return axios$g
.get(getSubProjectApiUrl() + childId + '/accessibleParent')

@@ -787,3 +821,3 @@ .then(thenHandler)

var axios$g = require('axios');
var axios$h = require('axios');
function getTitleApiUrl() {

@@ -799,3 +833,3 @@ return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.User/Title/');

apiConnectionBasic.setHeader();
return axios$g
return axios$h
.get(getTitleApiUrl())

@@ -808,3 +842,3 @@ .then(thenHandler)

var axios$h = require('axios');
var axios$i = require('axios');
var authHeaderKey$1 = 'Authorization';

@@ -815,3 +849,3 @@ function getTOSApiUrl() {

function setHeader(jwtToken) {
axios$h.defaults.headers.common[authHeaderKey$1] =
axios$i.defaults.headers.common[authHeaderKey$1] =
'Bearer ' + jwtToken;

@@ -826,3 +860,3 @@ }

apiConnectionBasic.setHeader();
return axios$h
return axios$i
.get(getTOSApiUrl())

@@ -836,3 +870,3 @@ .then(thenHandler)

setHeader(jwtToken);
return axios$h
return axios$i
.post(getTOSApiUrl())

@@ -845,3 +879,3 @@ .then(thenHandler)

var axios$i = require('axios');
var axios$j = require('axios');
function getTreeApiUrl() {

@@ -857,3 +891,3 @@ return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Tree/Tree/');

apiConnectionBasic.setHeader();
return axios$i
return axios$j
.get(getTreeApiUrl() + resourceId + '/' + apiConnectionBasic.preparePath(path))

@@ -877,3 +911,3 @@ .then(thenHandler)

}
return axios$i
return axios$j
.put(getTreeApiUrl() + resourceId + '/' + apiConnectionBasic.preparePath(path), body)

@@ -886,3 +920,3 @@ .then(thenHandler)

var axios$j = require('axios');
var axios$k = require('axios');
function getUserApiUrl() {

@@ -898,3 +932,3 @@ return 'https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.User/User/';

apiConnectionBasic.setHeader();
return axios$j
return axios$k
.get(getUserApiUrl() + 'query/' + query + '/project/' + parentId + '/')

@@ -908,3 +942,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$j
return axios$k
.get(getUserApiUrl() + 'user')

@@ -918,3 +952,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$j
return axios$k
.post(getUserApiUrl() + 'user', body)

@@ -928,3 +962,3 @@ .then(thenHandler)

apiConnectionBasic.setHeader();
return axios$j
return axios$k
.get(getUserApiUrl() + 'mergeToken/' + provider)

@@ -937,3 +971,3 @@ .then(thenHandler)

var axios$k = require('axios');
var axios$l = require('axios');
function getVisibilityApiUrl() {

@@ -949,3 +983,3 @@ return ('https://' + apiConnectionBasic.getHostName() + '/coscine/api/Coscine.Api.Project/Visibility/');

apiConnectionBasic.setHeader();
return axios$k
return axios$l
.get(getVisibilityApiUrl())

@@ -966,2 +1000,3 @@ .then(thenHandler)

exports.OrganizationApi = OrganizationApi;
exports.PIDApi = PIDApi;
exports.ProjectApi = ProjectApi;

@@ -968,0 +1003,0 @@ exports.ProjectRoleApi = ProjectRoleApi;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VisibilityApi = exports.UserApi = exports.TreeApi = exports.TOSApi = exports.TitleApi = exports.SubProjectApi = exports.SearchApi = exports.RoleApi = exports.ResourceTypeApi = exports.ResourceApi = exports.ProjectRoleApi = exports.ProjectApi = exports.OrganizationApi = exports.NoticeApi = exports.MetadataApi = exports.LicenseApi = exports.LanguageApi = exports.DisciplineApi = exports.BlobApi = exports.ActivatedFeaturesApi = void 0;
exports.VisibilityApi = exports.UserApi = exports.TreeApi = exports.TOSApi = exports.TitleApi = exports.SubProjectApi = exports.SearchApi = exports.RoleApi = exports.ResourceTypeApi = exports.ResourceApi = exports.ProjectRoleApi = exports.ProjectApi = exports.PIDApi = exports.OrganizationApi = exports.NoticeApi = exports.MetadataApi = exports.LicenseApi = exports.LanguageApi = exports.DisciplineApi = exports.BlobApi = exports.ActivatedFeaturesApi = void 0;
var activatedFeatures_api_1 = require("./requests/activatedFeatures-api");

@@ -20,2 +20,4 @@ Object.defineProperty(exports, "ActivatedFeaturesApi", { enumerable: true, get: function () { return activatedFeatures_api_1.ActivatedFeaturesApi; } });

Object.defineProperty(exports, "OrganizationApi", { enumerable: true, get: function () { return organization_api_1.OrganizationApi; } });
var pid_api_1 = require("./requests/pid-api");
Object.defineProperty(exports, "PIDApi", { enumerable: true, get: function () { return pid_api_1.PIDApi; } });
var project_api_1 = require("./requests/project-api");

@@ -22,0 +24,0 @@ Object.defineProperty(exports, "ProjectApi", { enumerable: true, get: function () { return project_api_1.ProjectApi; } });

@@ -6,2 +6,18 @@ "use strict";

var clientCorrolationIdKey = 'X-Coscine-Logging-CorrelationId';
axios.interceptors.request.use(function (request) {
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
coscine.loading.counter++;
}
return request;
}, function (error) {
return Promise.reject(error);
});
axios.interceptors.response.use(function (response) {
if ((typeof coscine !== "undefined") && (typeof coscine.loading !== "undefined") && (typeof coscine.loading.counter !== "undefined")) {
coscine.loading.counter--;
}
return response;
}, function (error) {
return Promise.reject(error);
});
exports.default = {

@@ -8,0 +24,0 @@ getHostName: function () {

@@ -9,2 +9,3 @@ export { ActivatedFeaturesApi } from './requests/activatedFeatures-api';

export { OrganizationApi } from './requests/organization-api';
export { PIDApi } from './requests/pid-api';
export { ProjectApi } from './requests/project-api';

@@ -11,0 +12,0 @@ export { ProjectRoleApi } from './requests/project-role-api';

{
"name": "@coscine/api-connection",
"version": "1.21.0",
"version": "1.22.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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc