Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • Product/1107-frontendPerformance
  • Product/1180-genericOrganizationMembershipFunction
  • Product/1215-gitlabCleanUp
  • Product/1440-largerFiles
  • Product/1442-projectInviteMngmnt
  • Product/1573-ReadOnlyResources
  • Product/588-quotaManagement
  • Product/789-userContactEmail
  • Product/917-maintenanceFunctionality
  • Sprint/2021-01
  • Sprint/2021-02
  • Sprint/2021-04
  • Sprint/2021-06
  • Sprint/2021-07
  • Sprint/2021-09
  • Sprint/2021-15
  • Sprint/2022-01
  • Topic/1227-frontendPerformance
  • Topic/1280-quotaManagementUI
  • Topic/1281-genericOrganizationMembershipFunction
  • Topic/1295-contactChangeUi
  • Topic/1297-maintenanceBanner
  • Topic/1451-uploadUrl
  • Topic/1452-largerFiles
  • Topic/1528-projectInviteAPIcon
  • Topic/1529-HandleExternalUserInvitation
  • Topic/1594-SetReadOnlyResources
  • dev
  • gitkeep
  • master
  • v1.0.0
  • v1.0.1
  • v1.1.0
  • v1.1.1
  • v1.10.0
  • v1.11.0
  • v1.12.0
  • v1.13.0
  • v1.14.0
  • v1.15.0
  • v1.16.0
  • v1.17.0
  • v1.17.1
  • v1.18.0
  • v1.18.1
  • v1.19.0
  • v1.2.0
  • v1.20.0
  • v1.21.0
  • v1.22.0
  • v1.23.0
  • v1.23.1
  • v1.24.0
  • v1.24.1
  • v1.24.2
  • v1.25.0
  • v1.26.0
  • v1.27.0
  • v1.28.0
  • v1.29.0
  • v1.3.0
  • v1.3.1
  • v1.3.2
  • v1.30.0
  • v1.31.0
  • v1.4.0
  • v1.5.0
  • v1.6.0
  • v1.7.0
  • v1.8.0
  • v1.9.0
71 results

Target

Select target project
  • coscine/frontend/libraries/api-connection
1 result
Select Git revision
  • Product/1107-frontendPerformance
  • Product/1180-genericOrganizationMembershipFunction
  • Product/1215-gitlabCleanUp
  • Product/1440-largerFiles
  • Product/1442-projectInviteMngmnt
  • Product/1573-ReadOnlyResources
  • Product/588-quotaManagement
  • Product/789-userContactEmail
  • Product/917-maintenanceFunctionality
  • Sprint/2021-01
  • Sprint/2021-02
  • Sprint/2021-04
  • Sprint/2021-06
  • Sprint/2021-07
  • Sprint/2021-09
  • Sprint/2021-15
  • Sprint/2022-01
  • Topic/1227-frontendPerformance
  • Topic/1280-quotaManagementUI
  • Topic/1281-genericOrganizationMembershipFunction
  • Topic/1295-contactChangeUi
  • Topic/1297-maintenanceBanner
  • Topic/1451-uploadUrl
  • Topic/1452-largerFiles
  • Topic/1528-projectInviteAPIcon
  • Topic/1529-HandleExternalUserInvitation
  • Topic/1594-SetReadOnlyResources
  • dev
  • gitkeep
  • master
  • v1.0.0
  • v1.0.1
  • v1.1.0
  • v1.1.1
  • v1.10.0
  • v1.11.0
  • v1.12.0
  • v1.13.0
  • v1.14.0
  • v1.15.0
  • v1.16.0
  • v1.17.0
  • v1.17.1
  • v1.18.0
  • v1.18.1
  • v1.19.0
  • v1.2.0
  • v1.20.0
  • v1.21.0
  • v1.22.0
  • v1.23.0
  • v1.23.1
  • v1.24.0
  • v1.24.1
  • v1.24.2
  • v1.25.0
  • v1.26.0
  • v1.27.0
  • v1.28.0
  • v1.29.0
  • v1.3.0
  • v1.3.1
  • v1.3.2
  • v1.30.0
  • v1.31.0
  • v1.4.0
  • v1.5.0
  • v1.6.0
  • v1.7.0
  • v1.8.0
  • v1.9.0
71 results
Show changes
Commits on Source (4)
{ {
"name": "@coscine/api-connection", "name": "@coscine/api-connection",
"version": "1.29.0", "version": "1.30.0",
"description": "This library provides methods to connect to CoScInE Apis with JavaScript.", "description": "This library provides methods to connect to CoScInE Apis with JavaScript.",
"keywords": [ "keywords": [
"coscine", "coscine",
......
...@@ -155,4 +155,48 @@ export class ProjectApi { ...@@ -155,4 +155,48 @@ export class ProjectApi {
) { ) {
ProjectApi.getTopLevelProjects(thenHandler, catchHandler, '?noanalyticslog=true'); ProjectApi.getTopLevelProjects(thenHandler, catchHandler, '?noanalyticslog=true');
} }
public static getInvitationsList(
projectId: string,
thenHandler: any = apiConnectionBasic.defaultThenHandler,
catchHandler: any = apiConnectionBasic.defaultOnCatch
) {
apiConnectionBasic.setHeader();
return axios
.get(getProjectApiUrl() + 'invitation/list/' + projectId)
.then(thenHandler)
.catch(catchHandler);
}
public static storeInvitation(
body: any,
thenHandler: any = apiConnectionBasic.defaultThenHandler,
catchHandler: any = apiConnectionBasic.defaultOnCatch
) {
apiConnectionBasic.setHeader();
return axios
.post(getProjectApiUrl() + 'invitation', body)
.then(thenHandler)
.catch(catchHandler);
}
public static deleteInvitation(
invitationId: string,
thenHandler: any = apiConnectionBasic.defaultThenHandler,
catchHandler: any = apiConnectionBasic.defaultOnCatch
) {
apiConnectionBasic.setHeader();
return axios
.delete(getProjectApiUrl() + 'invitation/' + invitationId)
.then(thenHandler)
.catch(catchHandler);
}
public static resolveInvitation(
token: string,
thenHandler: any = apiConnectionBasic.defaultThenHandler,
catchHandler: any = apiConnectionBasic.defaultOnCatch
) {
apiConnectionBasic.setHeader();
return axios
.get(getProjectApiUrl() + 'invitation/resolve/' + token)
.then(thenHandler)
.catch(catchHandler);
}
} }