Options
All
  • Public
  • Public/Protected
  • All
Menu

@coscine/api-client

Index

Variables

Const AccountApi

AccountApi: { accountGetLoginUrls: any; accountLogout: any } = ...

Type declaration

  • accountGetLoginUrls: function
    • accountGetLoginUrls(options?: any): AxiosPromise<LoginUrls>
    • summary

      Return relevant URLs for logging the user in

      throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<LoginUrls>

  • accountLogout: function
    • accountLogout(options?: any): AxiosPromise<any>
    • summary

      Route for logging the user out of Coscine

      throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<any>

Const AdminApi

AdminApi: { adminGetProject: any; adminUpdateQuota: any } = ...

Type declaration

  • adminGetProject: function
    • adminGetProject(projectString: string, options?: any): AxiosPromise<AdminProjectObject>
    • summary

      Find the project related to the projectString(GUID or slug)

      throws

      {RequiredError}

      Parameters

      • projectString: string

        The project id (GUID) or slug (from URL).

      • Optional options: any

      Returns AxiosPromise<AdminProjectObject>

  • adminUpdateQuota: function
    • adminUpdateQuota(projectId: string, resourceTypeId: string, updateQuotaParameterObject: UpdateQuotaParameterObject, options?: any): AxiosPromise<any>
    • summary

      Update a project maximum and allocated quota

      throws

      {RequiredError}

      Parameters

      • projectId: string

        Id of the project

      • resourceTypeId: string

        Id of the resource type

      • updateQuotaParameterObject: UpdateQuotaParameterObject

        JSON object for updating the project maximum and allocated quota.

      • Optional options: any

      Returns AxiosPromise<any>

Const BlobApi

BlobApi: { blobDeleteFileWithParameter: any; blobGetFileWithParameter: any; blobUploadFileWithParameter: any } = ...

Type declaration

  • blobDeleteFileWithParameter: function
    • blobDeleteFileWithParameter(resourceId: string, path?: string, options?: any): AxiosPromise<any>
    • summary

      This method deletes a given file

      throws

      {RequiredError}

      Parameters

      • resourceId: string

        Id of the resource

      • Optional path: string
      • Optional options: any

      Returns AxiosPromise<any>

  • blobGetFileWithParameter: function
    • blobGetFileWithParameter(resourceId: string, path?: string, options?: any): AxiosPromise<any>
    • summary

      This method checks if the given file exists and returns it

      throws

      {RequiredError}

      Parameters

      • resourceId: string

        Id of the resource

      • Optional path: string
      • Optional options: any

      Returns AxiosPromise<any>

  • blobUploadFileWithParameter: function
    • blobUploadFileWithParameter(resourceId: string, path?: string, files?: any[], options?: any): AxiosPromise<any>
    • summary

      This method uploads a given File

      throws

      {RequiredError}

      Parameters

      • resourceId: string

        Id of the resource

      • Optional path: string
      • Optional files: any[]
      • Optional options: any

      Returns AxiosPromise<any>

Const ContactChangeApi

ContactChangeApi: { contactChangeChangeContactEmail: any; contactChangeConfirmContactEmail: any; contactChangeConfirmationStatus: any } = ...

Type declaration

  • contactChangeChangeContactEmail: function
    • contactChangeChangeContactEmail(body: string, options?: any): AxiosPromise<ContactChangeObject>
    • summary

      This method enables the user to request a change of his or her contact email. After entering a valid email, a confirmation email will be sent to the new address and a notification email will be sent to the present address.

      throws

      {RequiredError}

      Parameters

      • body: string

        A new email as string set by the user.

      • Optional options: any

      Returns AxiosPromise<ContactChangeObject>

  • contactChangeConfirmContactEmail: function
    • contactChangeConfirmContactEmail(verification: string, options?: any): AxiosPromise<UserObject>
    • summary

      Calling this method checks whether or not the entered confirmation token (verification) exists inside the database for the current user. If yes, it updates the EmailAddress field for that user with the New Email that has been requested with the ChangeContactEmail method.

      throws

      {RequiredError}

      Parameters

      • verification: string

        The Confirmation Token as String for a New Email.

      • Optional options: any

      Returns AxiosPromise<UserObject>

  • contactChangeConfirmationStatus: function
    • contactChangeConfirmationStatus(options?: any): AxiosPromise<ContactChangeObject[]>
    • summary

      Calling this method will check if there are pending emails for confirmation for the current user.

      throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<ContactChangeObject[]>

Const DisciplineApi

DisciplineApi: { apiV2DisciplinesOptions: any; getDiscipline: any; getDisciplines: any } = ...

Type declaration

  • apiV2DisciplinesOptions: function
    • apiV2DisciplinesOptions(options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<void>

  • getDiscipline: function
    • getDiscipline(disciplineId: string, options?: any): AxiosPromise<DisciplineDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • disciplineId: string
      • Optional options: any

      Returns AxiosPromise<DisciplineDtoResponse>

  • getDisciplines: function
    • getDisciplines(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<DisciplineDtoIEnumerablePagedResponse>
    • throws

      {RequiredError}

      Parameters

      • Optional pageNumber: number
      • Optional pageSize: number
      • Optional orderBy: string
      • Optional options: any

      Returns AxiosPromise<DisciplineDtoIEnumerablePagedResponse>

Const HomeApi

HomeApi: { homeIndex: any } = ...

Type declaration

  • homeIndex: function
    • homeIndex(options?: any): AxiosPromise<any>
    • summary

      The controller that the user is automatically entering when accesing the route .../coscine/api/Coscine.STS/

      throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<any>

Const LanguageApi

LanguageApi: { languageIndex: any } = ...

Type declaration

  • languageIndex: function
    • languageIndex(options?: any): AxiosPromise<LanguageObject[]>
    • summary

      Returns all available languages.

      throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<LanguageObject[]>

Const LicenseApi

LicenseApi: { apiV2LicensesOptions: any; getLicense: any; getLicenses: any } = ...

Type declaration

  • apiV2LicensesOptions: function
    • apiV2LicensesOptions(options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<void>

  • getLicense: function
    • getLicense(licenseId: string, options?: any): AxiosPromise<LicenseDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • licenseId: string
      • Optional options: any

      Returns AxiosPromise<LicenseDtoResponse>

  • getLicenses: function
    • getLicenses(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<LicenseDtoIEnumerablePagedResponse>
    • throws

      {RequiredError}

      Parameters

      • Optional pageNumber: number
      • Optional pageSize: number
      • Optional orderBy: string
      • Optional options: any

      Returns AxiosPromise<LicenseDtoIEnumerablePagedResponse>

Const MergeApi

MergeApi: { mergeCallback: any; mergeLogin: any } = ...

Type declaration

  • mergeCallback: function
    • mergeCallback(returnUrl?: string, options?: any): AxiosPromise<any>
    • throws

      {RequiredError}

      Parameters

      • Optional returnUrl: string
      • Optional options: any

      Returns AxiosPromise<any>

  • mergeLogin: function
    • mergeLogin(returnUrl?: string, options?: any): AxiosPromise<any>
    • throws

      {RequiredError}

      Parameters

      • Optional returnUrl: string
      • Optional options: any

      Returns AxiosPromise<any>

Const MetadataApi

MetadataApi: { metadataGetClassInstances: any; metadataGetProfile: any; metadataGetProfiles: any; metadataGetVocabularies: any; metadataGetVocabulary: any; metadataSaveApplicationProfile: any } = ...

Type declaration

  • metadataGetClassInstances: function
    • metadataGetClassInstances(className: string, options?: any): AxiosPromise<BilingualLabels>
    • summary

      This method returns instances.

      throws

      {RequiredError}

      Parameters

      • className: string

        class name

      • Optional options: any

      Returns AxiosPromise<BilingualLabels>

  • metadataGetProfile: function
    • metadataGetProfile(profile: string, options?: any): AxiosPromise<any>
    • summary

      This method returns the application profile for the given profileUrl.

      throws

      {RequiredError}

      Parameters

      • profile: string

        Url of the application profile

      • Optional options: any

      Returns AxiosPromise<any>

  • metadataGetProfiles: function
    • metadataGetProfiles(options?: any): AxiosPromise<string[]>
    • summary

      This method returns all application profiles.

      throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<string[]>

  • metadataGetVocabularies: function
    • metadataGetVocabularies(options?: any): AxiosPromise<string[]>
    • summary

      This method returns a list of all vocabularies.

      throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<string[]>

  • metadataGetVocabulary: function
    • metadataGetVocabulary(path: string, options?: any): AxiosPromise<BilingualLabels>
    • summary

      This method returns a specific vocabulary.

      throws

      {RequiredError}

      Parameters

      • path: string

        Url of the vocabulary

      • Optional options: any

      Returns AxiosPromise<BilingualLabels>

  • metadataSaveApplicationProfile: function
    • metadataSaveApplicationProfile(applicationProfile: ApplicationProfile, options?: any): AxiosPromise<any>
    • summary

      Create a request for storing a given application profile.

      throws

      {RequiredError}

      Parameters

      • applicationProfile: ApplicationProfile

        Object describing the application profile

      • Optional options: any

      Returns AxiosPromise<any>

Const NoticeApi

NoticeApi: { noticeGetMaintenance: any; noticeGetNotice: any } = ...

Type declaration

  • noticeGetMaintenance: function
    • noticeGetMaintenance(options?: any): AxiosPromise<MaintenanceReturnObject>
    • summary

      Returns defined properties of the first entry of the rss feed

      throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<MaintenanceReturnObject>

  • noticeGetNotice: function
    • noticeGetNotice(documentSlug: string, language?: string, options?: any): AxiosPromise<any>
    • summary

      Returns a notice

      deprecated
      throws

      {RequiredError}

      Parameters

      • documentSlug: string

        Slug defining a configured notice

      • Optional language: string
      • Optional options: any

      Returns AxiosPromise<any>

Const ORCiDApi

ORCiDApi: { oRCiDLoginGET: any; oRCiDLoginPOST: any } = ...

Type declaration

  • oRCiDLoginGET: function
    • oRCiDLoginGET(returnUrl?: string, options?: any): AxiosPromise<any>
    • summary

      ORCiD Login Route

      throws

      {RequiredError}

      Parameters

      • Optional returnUrl: string
      • Optional options: any

      Returns AxiosPromise<any>

  • oRCiDLoginPOST: function
    • oRCiDLoginPOST(oRCiDJWT?: string, returnUrl?: string, options?: any): AxiosPromise<any>
    • summary

      Execute ORCiD validation and login

      throws

      {RequiredError}

      Parameters

      • Optional oRCiDJWT: string
      • Optional returnUrl: string
      • Optional options: any

      Returns AxiosPromise<any>

Const OrganizationApi

OrganizationApi: { organizationGetOrganization: any; organizationGetROR: any; organizationIndex: any; organizationIsMember: any; organizationIsMember2: any } = ...

Type declaration

  • organizationGetOrganization: function
    • organizationGetOrganization(url: string, options?: any): AxiosPromise<WrapperObject>
    • summary

      Returns a specific organization.

      throws

      {RequiredError}

      Parameters

      • url: string

        Url of the organization.

      • Optional options: any

      Returns AxiosPromise<WrapperObject>

  • organizationGetROR: function
    • organizationGetROR(filter?: string, options?: any): AxiosPromise<WrapperObject>
    • summary

      Returns all labels and urls from the ror graph.

      throws

      {RequiredError}

      Parameters

      • Optional filter: string
      • Optional options: any

      Returns AxiosPromise<WrapperObject>

  • organizationIndex: function
    • organizationIndex(member?: number, filter?: string, options?: any): AxiosPromise<WrapperObject>
    • summary

      Returns all organizations that match the provided criterea.

      throws

      {RequiredError}

      Parameters

      • Optional member: number
      • Optional filter: string
      • Optional options: any

      Returns AxiosPromise<WrapperObject>

  • organizationIsMember: function
    • organizationIsMember(url: string, options?: any): AxiosPromise<IsMemberObject>
    • summary

      Returns true if the current user is a member of the given organization.

      throws

      {RequiredError}

      Parameters

      • url: string

        Url of the organization.

      • Optional options: any

      Returns AxiosPromise<IsMemberObject>

  • organizationIsMember2: function
    • organizationIsMember2(options?: any): AxiosPromise<WrapperObject>
    • summary

      Returns a list of organizations in which the current user is a member.

      throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<WrapperObject>

Const PidApi

PidApi: { apiV2PidsOptions: any; isValid: any; sendEmailToOwner: any } = ...

Type declaration

  • apiV2PidsOptions: function
    • apiV2PidsOptions(options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<void>

  • isValid: function
    • isValid(pid: string, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • pid: string
      • Optional options: any

      Returns AxiosPromise<void>

  • sendEmailToOwner: function
    • sendEmailToOwner(pid: string, pidEnquiryDto?: PidEnquiryDto, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • pid: string
      • Optional pidEnquiryDto: PidEnquiryDto
      • Optional options: any

      Returns AxiosPromise<void>

Const ProjectApi

ProjectApi: { apiV2ProjectsOptions: any; createProject: any; deleteProject: any; getProject: any; getProjects: any; updateProject: any } = ...

Type declaration

  • apiV2ProjectsOptions: function
    • apiV2ProjectsOptions(options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<void>

  • createProject: function
    • createProject(projectForCreationDto?: ProjectForCreationDto, options?: any): AxiosPromise<ProjectDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • Optional projectForCreationDto: ProjectForCreationDto
      • Optional options: any

      Returns AxiosPromise<ProjectDtoResponse>

  • deleteProject: function
    • deleteProject(projectId: string, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional options: any

      Returns AxiosPromise<void>

  • getProject: function
    • getProject(projectId: string, includeSubProjects?: boolean, options?: any): AxiosPromise<ProjectDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional includeSubProjects: boolean
      • Optional options: any

      Returns AxiosPromise<ProjectDtoResponse>

  • getProjects: function
    • getProjects(topLevel?: boolean, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<ProjectDtoIEnumerablePagedResponse>
    • throws

      {RequiredError}

      Parameters

      • Optional topLevel: boolean
      • Optional pageNumber: number
      • Optional pageSize: number
      • Optional orderBy: string
      • Optional options: any

      Returns AxiosPromise<ProjectDtoIEnumerablePagedResponse>

  • updateProject: function
    • updateProject(projectId: string, projectForUpdateDto?: ProjectForUpdateDto, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional projectForUpdateDto: ProjectForUpdateDto
      • Optional options: any

      Returns AxiosPromise<void>

Const ProjectInvitationApi

ProjectInvitationApi: { apiV2ProjectsProjectIdInvitationsOptions: any; createProjectInvitation: any; deleteProjectInvitation: any; getProjectInvitation: any; getProjectInvitations: any; resolveProjectInvitation: any } = ...

Type declaration

  • apiV2ProjectsProjectIdInvitationsOptions: function
    • apiV2ProjectsProjectIdInvitationsOptions(projectId: string, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional options: any

      Returns AxiosPromise<void>

  • createProjectInvitation: function
    • createProjectInvitation(projectId: string, projectInvitationForProjectManipulationDto?: ProjectInvitationForProjectManipulationDto, options?: any): AxiosPromise<ProjectInvitationDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional projectInvitationForProjectManipulationDto: ProjectInvitationForProjectManipulationDto
      • Optional options: any

      Returns AxiosPromise<ProjectInvitationDtoResponse>

  • deleteProjectInvitation: function
    • deleteProjectInvitation(projectId: string, projectInvitationId: string, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • projectInvitationId: string
      • Optional options: any

      Returns AxiosPromise<void>

  • getProjectInvitation: function
    • getProjectInvitation(projectId: string, projectInvitationId: string, options?: any): AxiosPromise<ProjectInvitationDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • projectInvitationId: string
      • Optional options: any

      Returns AxiosPromise<ProjectInvitationDtoResponse>

  • getProjectInvitations: function
    • getProjectInvitations(projectId: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<ProjectInvitationDtoIEnumerablePagedResponse>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional pageNumber: number
      • Optional pageSize: number
      • Optional orderBy: string
      • Optional options: any

      Returns AxiosPromise<ProjectInvitationDtoIEnumerablePagedResponse>

  • resolveProjectInvitation: function
    • resolveProjectInvitation(projectId: string, projectInvitationResolveDto?: ProjectInvitationResolveDto, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional projectInvitationResolveDto: ProjectInvitationResolveDto
      • Optional options: any

      Returns AxiosPromise<void>

Const ProjectMemberApi

ProjectMemberApi: { addMembership: any; apiV2ProjectsProjectIdMembersOptions: any; deleteMembership: any; getMembership: any; getMemberships: any; updateMembership: any } = ...

Type declaration

  • addMembership: function
    • addMembership(projectId: string, projectRoleForProjectCreationDto?: ProjectRoleForProjectCreationDto, options?: any): AxiosPromise<ProjectRoleDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional projectRoleForProjectCreationDto: ProjectRoleForProjectCreationDto
      • Optional options: any

      Returns AxiosPromise<ProjectRoleDtoResponse>

  • apiV2ProjectsProjectIdMembersOptions: function
    • apiV2ProjectsProjectIdMembersOptions(projectId: string, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional options: any

      Returns AxiosPromise<void>

  • deleteMembership: function
    • deleteMembership(projectId: string, membershipId: string, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • membershipId: string
      • Optional options: any

      Returns AxiosPromise<void>

  • getMembership: function
    • getMembership(projectId: string, membershipId: string, options?: any): AxiosPromise<ProjectRoleDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • membershipId: string
      • Optional options: any

      Returns AxiosPromise<ProjectRoleDtoResponse>

  • getMemberships: function
    • getMemberships(projectId: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<ProjectRoleDtoIEnumerablePagedResponse>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional pageNumber: number
      • Optional pageSize: number
      • Optional orderBy: string
      • Optional options: any

      Returns AxiosPromise<ProjectRoleDtoIEnumerablePagedResponse>

  • updateMembership: function
    • updateMembership(projectId: string, membershipId: string, projectRoleForProjectManipulationDto?: ProjectRoleForProjectManipulationDto, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • membershipId: string
      • Optional projectRoleForProjectManipulationDto: ProjectRoleForProjectManipulationDto
      • Optional options: any

      Returns AxiosPromise<void>

Const ProjectQuotaApi

ProjectQuotaApi: { apiV2ProjectsProjectIdQuotasOptions: any; getProjectQuota: any; getProjectQuotas: any; updateProjectQuota: any } = ...

Type declaration

  • apiV2ProjectsProjectIdQuotasOptions: function
    • apiV2ProjectsProjectIdQuotasOptions(projectId: string, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional options: any

      Returns AxiosPromise<void>

  • getProjectQuota: function
    • getProjectQuota(projectId: string, resourceTypeId: string, options?: any): AxiosPromise<ProjectQuotaDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • resourceTypeId: string
      • Optional options: any

      Returns AxiosPromise<ProjectQuotaDtoResponse>

  • getProjectQuotas: function
    • getProjectQuotas(projectId: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<ProjectQuotaDtoIEnumerablePagedResponse>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional pageNumber: number
      • Optional pageSize: number
      • Optional orderBy: string
      • Optional options: any

      Returns AxiosPromise<ProjectQuotaDtoIEnumerablePagedResponse>

  • updateProjectQuota: function
    • updateProjectQuota(projectId: string, resourceTypeId: string, projectQuotaForUpdateDto?: ProjectQuotaForUpdateDto, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • resourceTypeId: string
      • Optional projectQuotaForUpdateDto: ProjectQuotaForUpdateDto
      • Optional options: any

      Returns AxiosPromise<void>

Const ProjectResourceApi

ProjectResourceApi: { apiV2ProjectsProjectIdResourcesOptions: any; createResourceForProject: any; deleteResourceForProject: any; getResourceForProject: any; getResourcesForProject: any; updateResourceForProject: any } = ...

Type declaration

  • apiV2ProjectsProjectIdResourcesOptions: function
    • apiV2ProjectsProjectIdResourcesOptions(projectId: string, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional options: any

      Returns AxiosPromise<void>

  • createResourceForProject: function
    • createResourceForProject(projectId: string, resourceForCreationDto?: ResourceForCreationDto, options?: any): AxiosPromise<ResourceDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional resourceForCreationDto: ResourceForCreationDto
      • Optional options: any

      Returns AxiosPromise<ResourceDtoResponse>

  • deleteResourceForProject: function
    • deleteResourceForProject(projectId: string, resourceId: string, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • resourceId: string
      • Optional options: any

      Returns AxiosPromise<void>

  • getResourceForProject: function
    • getResourceForProject(projectId: string, resourceId: string, options?: any): AxiosPromise<ResourceDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • resourceId: string
      • Optional options: any

      Returns AxiosPromise<ResourceDtoResponse>

  • getResourcesForProject: function
    • getResourcesForProject(projectId: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<ResourceDtoIEnumerablePagedResponse>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional pageNumber: number
      • Optional pageSize: number
      • Optional orderBy: string
      • Optional options: any

      Returns AxiosPromise<ResourceDtoIEnumerablePagedResponse>

  • updateResourceForProject: function
    • updateResourceForProject(projectId: string, resourceId: string, resourceForUpdateDto?: ResourceForUpdateDto, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • resourceId: string
      • Optional resourceForUpdateDto: ResourceForUpdateDto
      • Optional options: any

      Returns AxiosPromise<void>

Const ProjectResourceQuotaApi

ProjectResourceQuotaApi: { apiV2ProjectsProjectIdResourcesResourceIdQuotaOptions: any; getQuotaForResourceForProject: any } = ...

Type declaration

  • apiV2ProjectsProjectIdResourcesResourceIdQuotaOptions: function
    • apiV2ProjectsProjectIdResourcesResourceIdQuotaOptions(projectId: string, resourceId: string, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • resourceId: string
      • Optional options: any

      Returns AxiosPromise<void>

  • getQuotaForResourceForProject: function
    • getQuotaForResourceForProject(projectId: string, resourceId: string, options?: any): AxiosPromise<ResourceQuotaDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • resourceId: string
      • Optional options: any

      Returns AxiosPromise<ResourceQuotaDtoResponse>

Const ProjectResourceTypeApi

ProjectResourceTypeApi: { apiV2ProjectsProjectIdResourcesTypesOptions: any; getAvailableResourceTypesInformationForProject: any } = ...

Type declaration

  • apiV2ProjectsProjectIdResourcesTypesOptions: function
    • apiV2ProjectsProjectIdResourcesTypesOptions(projectId: string, options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional options: any

      Returns AxiosPromise<void>

  • getAvailableResourceTypesInformationForProject: function
    • getAvailableResourceTypesInformationForProject(projectId: string, options?: any): AxiosPromise<ResourceTypeInformationDtoIEnumerableResponse>
    • throws

      {RequiredError}

      Parameters

      • projectId: string
      • Optional options: any

      Returns AxiosPromise<ResourceTypeInformationDtoIEnumerableResponse>

Const ResourceApi

ResourceApi: { apiV2ResourcesOptions: any; getResource: any } = ...

Type declaration

  • apiV2ResourcesOptions: function
    • apiV2ResourcesOptions(options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<void>

  • getResource: function
    • getResource(resourceId: string, options?: any): AxiosPromise<ResourceDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • resourceId: string
      • Optional options: any

      Returns AxiosPromise<ResourceDtoResponse>

Const ResourceTypeApi

ResourceTypeApi: { apiV2ResourcesTypesOptions: any; getAllGitlabBranchesForProject: any; getAllGitlabProjects: any; getAllResourceTypesInformation: any; getGitlabProject: any; getResourceTypeInformation: any } = ...

Type declaration

  • apiV2ResourcesTypesOptions: function
    • apiV2ResourcesTypesOptions(options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<void>

  • getAllGitlabBranchesForProject: function
    • getAllGitlabBranchesForProject(gitlabProjectId: number, domain: string, accessToken: string, options?: any): AxiosPromise<GitlabBranchDtoIEnumerableResponse>
    • throws

      {RequiredError}

      Parameters

      • gitlabProjectId: number
      • domain: string
      • accessToken: string
      • Optional options: any

      Returns AxiosPromise<GitlabBranchDtoIEnumerableResponse>

  • getAllGitlabProjects: function
    • getAllGitlabProjects(domain: string, accessToken: string, options?: any): AxiosPromise<GitlabProjectDtoIEnumerableResponse>
    • throws

      {RequiredError}

      Parameters

      • domain: string
      • accessToken: string
      • Optional options: any

      Returns AxiosPromise<GitlabProjectDtoIEnumerableResponse>

  • getAllResourceTypesInformation: function
    • getAllResourceTypesInformation(options?: any): AxiosPromise<ResourceTypeInformationDtoIEnumerableResponse>
    • throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<ResourceTypeInformationDtoIEnumerableResponse>

  • getGitlabProject: function
    • getGitlabProject(gitlabProjectId: number, domain: string, accessToken: string, options?: any): AxiosPromise<GitlabProjectDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • gitlabProjectId: number
      • domain: string
      • accessToken: string
      • Optional options: any

      Returns AxiosPromise<GitlabProjectDtoResponse>

  • getResourceTypeInformation: function
    • getResourceTypeInformation(resourceTypeId: string, options?: any): AxiosPromise<ResourceTypeInformationDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • resourceTypeId: string
      • Optional options: any

      Returns AxiosPromise<ResourceTypeInformationDtoResponse>

Const RoleApi

RoleApi: { apiV2RolesOptions: any; getRole: any; getRoles: any } = ...

Type declaration

  • apiV2RolesOptions: function
    • apiV2RolesOptions(options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<void>

  • getRole: function
    • getRole(roleId: string, options?: any): AxiosPromise<RoleDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • roleId: string
      • Optional options: any

      Returns AxiosPromise<RoleDtoResponse>

  • getRoles: function
    • getRoles(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<RoleDtoIEnumerablePagedResponse>
    • throws

      {RequiredError}

      Parameters

      • Optional pageNumber: number
      • Optional pageSize: number
      • Optional orderBy: string
      • Optional options: any

      Returns AxiosPromise<RoleDtoIEnumerablePagedResponse>

Const SearchApi

SearchApi: { searchSearch: any } = ...

Type declaration

  • searchSearch: function
    • searchSearch(searchQuery?: string, includeUsers?: boolean, useAdvancedSyntax?: boolean, includedLanguages?: string[], categoryFilter?: CategoryFilter, orderBy?: OrderBy, pageNumber?: number, pageSize?: number, options?: any): AxiosPromise<ItemSearchResult[]>
    • summary

      Search Elasticsearch

      throws

      {RequiredError}

      Parameters

      • Optional searchQuery: string
      • Optional includeUsers: boolean
      • Optional useAdvancedSyntax: boolean
      • Optional includedLanguages: string[]
      • Optional categoryFilter: CategoryFilter
      • Optional orderBy: OrderBy
      • Optional pageNumber: number
      • Optional pageSize: number
      • Optional options: any

      Returns AxiosPromise<ItemSearchResult[]>

Const ShibbolethApi

ShibbolethApi: { shibbolethCallback: any; shibbolethLogin: any } = ...

Type declaration

  • shibbolethCallback: function
    • shibbolethCallback(returnUrl?: string, remoteError?: string, options?: any): AxiosPromise<any>
    • summary

      Callback method to catch the login

      throws

      {RequiredError}

      Parameters

      • Optional returnUrl: string
      • Optional remoteError: string
      • Optional options: any

      Returns AxiosPromise<any>

  • shibbolethLogin: function
    • shibbolethLogin(returnUrl?: string, entityId?: string, options?: any): AxiosPromise<any>
    • summary

      This method is the central route for logging into an identity provider. On default, the user is redirected to the WAFY of the DFN-AAI. Setting the "entityId" parameter allows the application to redirect to a specific identity provider defined by DFN-AAI.

      throws

      {RequiredError}

      Parameters

      • Optional returnUrl: string
      • Optional entityId: string
      • Optional options: any

      Returns AxiosPromise<any>

Const TOSApi

TOSApi: { tOSAcceptCurrentTOSVersion: any; tOSAcceptedTOSVersion: any; tOSGetCurrentTOSVersion: any } = ...

Type declaration

  • tOSAcceptCurrentTOSVersion: function
    • tOSAcceptCurrentTOSVersion(options?: any): AxiosPromise<string>
    • summary

      Calling this method accepts the TOS for the current user.

      throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<string>

  • tOSAcceptedTOSVersion: function
    • tOSAcceptedTOSVersion(options?: any): AxiosPromise<Tos>
    • summary

      Returns the TOS Versions accepted by the current user.

      throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<Tos>

  • tOSGetCurrentTOSVersion: function
    • tOSGetCurrentTOSVersion(options?: any): AxiosPromise<string>
    • summary

      Returns the current TOS Version.

      throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<string>

Const TitleApi

TitleApi: { titleIndex: any } = ...

Type declaration

  • titleIndex: function
    • titleIndex(options?: any): AxiosPromise<TitleObject[]>
    • summary

      Returns all available titles.

      throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<TitleObject[]>

Const TokenApi

TokenApi: { tokenAddToken: any; tokenGetTokenValidityBounds: any; tokenGetUserToken: any; tokenGetUserTokens: any; tokenRevokeToken: any } = ...

Type declaration

  • tokenAddToken: function
    • tokenAddToken(addApiTokenParameter: AddApiTokenParameter, options?: any): AxiosPromise<CreatedApiTokenObject>
    • summary

      Add a new token for the user.

      throws

      {RequiredError}

      Parameters

      • addApiTokenParameter: AddApiTokenParameter

        Parsed from json

      • Optional options: any

      Returns AxiosPromise<CreatedApiTokenObject>

  • tokenGetTokenValidityBounds: function
    • tokenGetTokenValidityBounds(options?: any): AxiosPromise<TokenValidityObject>
    • summary

      Get the specified token minumum and maximum validity in days.

      throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<TokenValidityObject>

  • tokenGetUserToken: function
    • tokenGetUserToken(tokenId: string, options?: any): AxiosPromise<ApiTokenObject>
    • summary

      Get the specific token values.

      throws

      {RequiredError}

      Parameters

      • tokenId: string

        User tokenId

      • Optional options: any

      Returns AxiosPromise<ApiTokenObject>

  • tokenGetUserTokens: function
    • tokenGetUserTokens(options?: any): AxiosPromise<ApiTokenObject[]>
    • summary

      List all tokens of the current user.

      throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<ApiTokenObject[]>

  • tokenRevokeToken: function
    • tokenRevokeToken(tokenId: string, options?: any): AxiosPromise<any>
    • summary

      Revoke a specific token.

      throws

      {RequiredError}

      Parameters

      • tokenId: string

        User tokenId

      • Optional options: any

      Returns AxiosPromise<any>

Const TreeApi

TreeApi: { treeGetMetadataWithParameter: any; treeStoreMetadataForFileWithParameter: any } = ...

Type declaration

  • treeGetMetadataWithParameter: function
    • treeGetMetadataWithParameter(resourceId: string, path?: string, mimeType?: string, options?: any): AxiosPromise<any>
    • summary

      This method retrieves the metadata

      throws

      {RequiredError}

      Parameters

      • resourceId: string

        Id of a resource

      • Optional path: string
      • Optional mimeType: string
      • Optional options: any

      Returns AxiosPromise<any>

  • treeStoreMetadataForFileWithParameter: function
    • treeStoreMetadataForFileWithParameter(resourceId: string, path?: string, mimeType?: string, options?: any): AxiosPromise<any>
    • summary

      This method stores the metadata of the file

      throws

      {RequiredError}

      Parameters

      • resourceId: string

        Id of the resource

      • Optional path: string
      • Optional mimeType: string
      • Optional options: any

      Returns AxiosPromise<any>

Const UserApi

UserApi: { userGetUser: any; userQuery: any; userSetAndReturnMergeToken: any; userUpdateUser: any } = ...

Type declaration

  • userGetUser: function
    • userGetUser(options?: any): AxiosPromise<UserObject>
    • summary

      Retrieves the UserObject.

      throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<UserObject>

  • userQuery: function
    • userQuery(queryString: string, projectId: string, options?: any): AxiosPromise<UserObject[]>
    • summary

      This method lets someone query the user database using a query string.

      throws

      {RequiredError}

      Parameters

      • queryString: string

        Search String

      • projectId: string

        Project from which the search is triggered

      • Optional options: any

      Returns AxiosPromise<UserObject[]>

  • userSetAndReturnMergeToken: function
    • userSetAndReturnMergeToken(provider: string, options?: any): AxiosPromise<string>
    • summary

      Sets and returns a merge token.

      throws

      {RequiredError}

      Parameters

      • provider: string

        Specifies the provider from which a user should be merged from

      • Optional options: any

      Returns AxiosPromise<string>

  • userUpdateUser: function
    • userUpdateUser(userObject: UserObject, options?: any): AxiosPromise<number>
    • summary

      Updates the User.

      throws

      {RequiredError}

      Parameters

      • userObject: UserObject

        Entry representing the user

      • Optional options: any

      Returns AxiosPromise<number>

Const VisibilityApi

VisibilityApi: { apiV2VisibilitiesOptions: any; getVisibilities: any; getVisibility: any } = ...

Type declaration

  • apiV2VisibilitiesOptions: function
    • apiV2VisibilitiesOptions(options?: any): AxiosPromise<void>
    • throws

      {RequiredError}

      Parameters

      • Optional options: any

      Returns AxiosPromise<void>

  • getVisibilities: function
    • getVisibilities(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<VisibilityDtoIEnumerablePagedResponse>
    • throws

      {RequiredError}

      Parameters

      • Optional pageNumber: number
      • Optional pageSize: number
      • Optional orderBy: string
      • Optional options: any

      Returns AxiosPromise<VisibilityDtoIEnumerablePagedResponse>

  • getVisibility: function
    • getVisibility(visibilityId: string, options?: any): AxiosPromise<VisibilityDtoResponse>
    • throws

      {RequiredError}

      Parameters

      • visibilityId: string
      • Optional options: any

      Returns AxiosPromise<VisibilityDtoResponse>

Const default

default: { AccountApi: { accountGetLoginUrls: any; accountLogout: any }; AdminApi: { adminGetProject: any; adminUpdateQuota: any }; BlobApi: { blobDeleteFileWithParameter: any; blobGetFileWithParameter: any; blobUploadFileWithParameter: any }; ContactChangeApi: { contactChangeChangeContactEmail: any; contactChangeConfirmContactEmail: any; contactChangeConfirmationStatus: any }; DisciplineApi: { apiV2DisciplinesOptions: any; getDiscipline: any; getDisciplines: any }; HomeApi: { homeIndex: any }; LanguageApi: { languageIndex: any }; LicenseApi: { apiV2LicensesOptions: any; getLicense: any; getLicenses: any }; MergeApi: { mergeCallback: any; mergeLogin: any }; MetadataApi: { metadataGetClassInstances: any; metadataGetProfile: any; metadataGetProfiles: any; metadataGetVocabularies: any; metadataGetVocabulary: any; metadataSaveApplicationProfile: any }; NoticeApi: { noticeGetMaintenance: any; noticeGetNotice: any }; ORCiDApi: { oRCiDLoginGET: any; oRCiDLoginPOST: any }; OrganizationApi: { organizationGetOrganization: any; organizationGetROR: any; organizationIndex: any; organizationIsMember: any; organizationIsMember2: any }; PidApi: { apiV2PidsOptions: any; isValid: any; sendEmailToOwner: any }; ProjectApi: { apiV2ProjectsOptions: any; createProject: any; deleteProject: any; getProject: any; getProjects: any; updateProject: any }; ProjectInvitationApi: { apiV2ProjectsProjectIdInvitationsOptions: any; createProjectInvitation: any; deleteProjectInvitation: any; getProjectInvitation: any; getProjectInvitations: any; resolveProjectInvitation: any }; ProjectMemberApi: { addMembership: any; apiV2ProjectsProjectIdMembersOptions: any; deleteMembership: any; getMembership: any; getMemberships: any; updateMembership: any }; ProjectQuotaApi: { apiV2ProjectsProjectIdQuotasOptions: any; getProjectQuota: any; getProjectQuotas: any; updateProjectQuota: any }; ProjectResourceApi: { apiV2ProjectsProjectIdResourcesOptions: any; createResourceForProject: any; deleteResourceForProject: any; getResourceForProject: any; getResourcesForProject: any; updateResourceForProject: any }; ProjectResourceQuotaApi: { apiV2ProjectsProjectIdResourcesResourceIdQuotaOptions: any; getQuotaForResourceForProject: any }; ProjectResourceTypeApi: { apiV2ProjectsProjectIdResourcesTypesOptions: any; getAvailableResourceTypesInformationForProject: any }; ResourceApi: { apiV2ResourcesOptions: any; getResource: any }; ResourceTypeApi: { apiV2ResourcesTypesOptions: any; getAllGitlabBranchesForProject: any; getAllGitlabProjects: any; getAllResourceTypesInformation: any; getGitlabProject: any; getResourceTypeInformation: any }; RoleApi: { apiV2RolesOptions: any; getRole: any; getRoles: any }; SearchApi: { searchSearch: any }; ShibbolethApi: { shibbolethCallback: any; shibbolethLogin: any }; TOSApi: { tOSAcceptCurrentTOSVersion: any; tOSAcceptedTOSVersion: any; tOSGetCurrentTOSVersion: any }; TitleApi: { titleIndex: any }; TokenApi: { tokenAddToken: any; tokenGetTokenValidityBounds: any; tokenGetUserToken: any; tokenGetUserTokens: any; tokenRevokeToken: any }; TreeApi: { treeGetMetadataWithParameter: any; treeStoreMetadataForFileWithParameter: any }; UserApi: { userGetUser: any; userQuery: any; userSetAndReturnMergeToken: any; userUpdateUser: any }; VisibilityApi: { apiV2VisibilitiesOptions: any; getVisibilities: any; getVisibility: any } } = ...

Type declaration

  • AccountApi: { accountGetLoginUrls: any; accountLogout: any }
    • accountGetLoginUrls: function
      • accountGetLoginUrls(options?: any): AxiosPromise<LoginUrls>
      • summary

        Return relevant URLs for logging the user in

        throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<LoginUrls>

    • accountLogout: function
      • accountLogout(options?: any): AxiosPromise<any>
      • summary

        Route for logging the user out of Coscine

        throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<any>

  • AdminApi: { adminGetProject: any; adminUpdateQuota: any }
    • adminGetProject: function
      • adminGetProject(projectString: string, options?: any): AxiosPromise<AdminProjectObject>
      • summary

        Find the project related to the projectString(GUID or slug)

        throws

        {RequiredError}

        Parameters

        • projectString: string

          The project id (GUID) or slug (from URL).

        • Optional options: any

        Returns AxiosPromise<AdminProjectObject>

    • adminUpdateQuota: function
      • adminUpdateQuota(projectId: string, resourceTypeId: string, updateQuotaParameterObject: UpdateQuotaParameterObject, options?: any): AxiosPromise<any>
      • summary

        Update a project maximum and allocated quota

        throws

        {RequiredError}

        Parameters

        • projectId: string

          Id of the project

        • resourceTypeId: string

          Id of the resource type

        • updateQuotaParameterObject: UpdateQuotaParameterObject

          JSON object for updating the project maximum and allocated quota.

        • Optional options: any

        Returns AxiosPromise<any>

  • BlobApi: { blobDeleteFileWithParameter: any; blobGetFileWithParameter: any; blobUploadFileWithParameter: any }
    • blobDeleteFileWithParameter: function
      • blobDeleteFileWithParameter(resourceId: string, path?: string, options?: any): AxiosPromise<any>
      • summary

        This method deletes a given file

        throws

        {RequiredError}

        Parameters

        • resourceId: string

          Id of the resource

        • Optional path: string
        • Optional options: any

        Returns AxiosPromise<any>

    • blobGetFileWithParameter: function
      • blobGetFileWithParameter(resourceId: string, path?: string, options?: any): AxiosPromise<any>
      • summary

        This method checks if the given file exists and returns it

        throws

        {RequiredError}

        Parameters

        • resourceId: string

          Id of the resource

        • Optional path: string
        • Optional options: any

        Returns AxiosPromise<any>

    • blobUploadFileWithParameter: function
      • blobUploadFileWithParameter(resourceId: string, path?: string, files?: any[], options?: any): AxiosPromise<any>
      • summary

        This method uploads a given File

        throws

        {RequiredError}

        Parameters

        • resourceId: string

          Id of the resource

        • Optional path: string
        • Optional files: any[]
        • Optional options: any

        Returns AxiosPromise<any>

  • ContactChangeApi: { contactChangeChangeContactEmail: any; contactChangeConfirmContactEmail: any; contactChangeConfirmationStatus: any }
    • contactChangeChangeContactEmail: function
      • contactChangeChangeContactEmail(body: string, options?: any): AxiosPromise<ContactChangeObject>
      • summary

        This method enables the user to request a change of his or her contact email. After entering a valid email, a confirmation email will be sent to the new address and a notification email will be sent to the present address.

        throws

        {RequiredError}

        Parameters

        • body: string

          A new email as string set by the user.

        • Optional options: any

        Returns AxiosPromise<ContactChangeObject>

    • contactChangeConfirmContactEmail: function
      • contactChangeConfirmContactEmail(verification: string, options?: any): AxiosPromise<UserObject>
      • summary

        Calling this method checks whether or not the entered confirmation token (verification) exists inside the database for the current user. If yes, it updates the EmailAddress field for that user with the New Email that has been requested with the ChangeContactEmail method.

        throws

        {RequiredError}

        Parameters

        • verification: string

          The Confirmation Token as String for a New Email.

        • Optional options: any

        Returns AxiosPromise<UserObject>

    • contactChangeConfirmationStatus: function
      • contactChangeConfirmationStatus(options?: any): AxiosPromise<ContactChangeObject[]>
      • summary

        Calling this method will check if there are pending emails for confirmation for the current user.

        throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<ContactChangeObject[]>

  • DisciplineApi: { apiV2DisciplinesOptions: any; getDiscipline: any; getDisciplines: any }
    • apiV2DisciplinesOptions: function
      • apiV2DisciplinesOptions(options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<void>

    • getDiscipline: function
      • getDiscipline(disciplineId: string, options?: any): AxiosPromise<DisciplineDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • disciplineId: string
        • Optional options: any

        Returns AxiosPromise<DisciplineDtoResponse>

    • getDisciplines: function
      • getDisciplines(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<DisciplineDtoIEnumerablePagedResponse>
      • throws

        {RequiredError}

        Parameters

        • Optional pageNumber: number
        • Optional pageSize: number
        • Optional orderBy: string
        • Optional options: any

        Returns AxiosPromise<DisciplineDtoIEnumerablePagedResponse>

  • HomeApi: { homeIndex: any }
    • homeIndex: function
      • homeIndex(options?: any): AxiosPromise<any>
      • summary

        The controller that the user is automatically entering when accesing the route .../coscine/api/Coscine.STS/

        throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<any>

  • LanguageApi: { languageIndex: any }
    • languageIndex: function
      • languageIndex(options?: any): AxiosPromise<LanguageObject[]>
      • summary

        Returns all available languages.

        throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<LanguageObject[]>

  • LicenseApi: { apiV2LicensesOptions: any; getLicense: any; getLicenses: any }
    • apiV2LicensesOptions: function
      • apiV2LicensesOptions(options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<void>

    • getLicense: function
      • getLicense(licenseId: string, options?: any): AxiosPromise<LicenseDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • licenseId: string
        • Optional options: any

        Returns AxiosPromise<LicenseDtoResponse>

    • getLicenses: function
      • getLicenses(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<LicenseDtoIEnumerablePagedResponse>
      • throws

        {RequiredError}

        Parameters

        • Optional pageNumber: number
        • Optional pageSize: number
        • Optional orderBy: string
        • Optional options: any

        Returns AxiosPromise<LicenseDtoIEnumerablePagedResponse>

  • MergeApi: { mergeCallback: any; mergeLogin: any }
    • mergeCallback: function
      • mergeCallback(returnUrl?: string, options?: any): AxiosPromise<any>
      • throws

        {RequiredError}

        Parameters

        • Optional returnUrl: string
        • Optional options: any

        Returns AxiosPromise<any>

    • mergeLogin: function
      • mergeLogin(returnUrl?: string, options?: any): AxiosPromise<any>
      • throws

        {RequiredError}

        Parameters

        • Optional returnUrl: string
        • Optional options: any

        Returns AxiosPromise<any>

  • MetadataApi: { metadataGetClassInstances: any; metadataGetProfile: any; metadataGetProfiles: any; metadataGetVocabularies: any; metadataGetVocabulary: any; metadataSaveApplicationProfile: any }
    • metadataGetClassInstances: function
      • metadataGetClassInstances(className: string, options?: any): AxiosPromise<BilingualLabels>
      • summary

        This method returns instances.

        throws

        {RequiredError}

        Parameters

        • className: string

          class name

        • Optional options: any

        Returns AxiosPromise<BilingualLabels>

    • metadataGetProfile: function
      • metadataGetProfile(profile: string, options?: any): AxiosPromise<any>
      • summary

        This method returns the application profile for the given profileUrl.

        throws

        {RequiredError}

        Parameters

        • profile: string

          Url of the application profile

        • Optional options: any

        Returns AxiosPromise<any>

    • metadataGetProfiles: function
      • metadataGetProfiles(options?: any): AxiosPromise<string[]>
      • summary

        This method returns all application profiles.

        throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<string[]>

    • metadataGetVocabularies: function
      • metadataGetVocabularies(options?: any): AxiosPromise<string[]>
      • summary

        This method returns a list of all vocabularies.

        throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<string[]>

    • metadataGetVocabulary: function
      • metadataGetVocabulary(path: string, options?: any): AxiosPromise<BilingualLabels>
      • summary

        This method returns a specific vocabulary.

        throws

        {RequiredError}

        Parameters

        • path: string

          Url of the vocabulary

        • Optional options: any

        Returns AxiosPromise<BilingualLabels>

    • metadataSaveApplicationProfile: function
      • metadataSaveApplicationProfile(applicationProfile: ApplicationProfile, options?: any): AxiosPromise<any>
      • summary

        Create a request for storing a given application profile.

        throws

        {RequiredError}

        Parameters

        • applicationProfile: ApplicationProfile

          Object describing the application profile

        • Optional options: any

        Returns AxiosPromise<any>

  • NoticeApi: { noticeGetMaintenance: any; noticeGetNotice: any }
    • noticeGetMaintenance: function
      • noticeGetMaintenance(options?: any): AxiosPromise<MaintenanceReturnObject>
      • summary

        Returns defined properties of the first entry of the rss feed

        throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<MaintenanceReturnObject>

    • noticeGetNotice: function
      • noticeGetNotice(documentSlug: string, language?: string, options?: any): AxiosPromise<any>
      • summary

        Returns a notice

        deprecated
        throws

        {RequiredError}

        Parameters

        • documentSlug: string

          Slug defining a configured notice

        • Optional language: string
        • Optional options: any

        Returns AxiosPromise<any>

  • ORCiDApi: { oRCiDLoginGET: any; oRCiDLoginPOST: any }
    • oRCiDLoginGET: function
      • oRCiDLoginGET(returnUrl?: string, options?: any): AxiosPromise<any>
      • summary

        ORCiD Login Route

        throws

        {RequiredError}

        Parameters

        • Optional returnUrl: string
        • Optional options: any

        Returns AxiosPromise<any>

    • oRCiDLoginPOST: function
      • oRCiDLoginPOST(oRCiDJWT?: string, returnUrl?: string, options?: any): AxiosPromise<any>
      • summary

        Execute ORCiD validation and login

        throws

        {RequiredError}

        Parameters

        • Optional oRCiDJWT: string
        • Optional returnUrl: string
        • Optional options: any

        Returns AxiosPromise<any>

  • OrganizationApi: { organizationGetOrganization: any; organizationGetROR: any; organizationIndex: any; organizationIsMember: any; organizationIsMember2: any }
    • organizationGetOrganization: function
      • organizationGetOrganization(url: string, options?: any): AxiosPromise<WrapperObject>
      • summary

        Returns a specific organization.

        throws

        {RequiredError}

        Parameters

        • url: string

          Url of the organization.

        • Optional options: any

        Returns AxiosPromise<WrapperObject>

    • organizationGetROR: function
      • organizationGetROR(filter?: string, options?: any): AxiosPromise<WrapperObject>
      • summary

        Returns all labels and urls from the ror graph.

        throws

        {RequiredError}

        Parameters

        • Optional filter: string
        • Optional options: any

        Returns AxiosPromise<WrapperObject>

    • organizationIndex: function
      • organizationIndex(member?: number, filter?: string, options?: any): AxiosPromise<WrapperObject>
      • summary

        Returns all organizations that match the provided criterea.

        throws

        {RequiredError}

        Parameters

        • Optional member: number
        • Optional filter: string
        • Optional options: any

        Returns AxiosPromise<WrapperObject>

    • organizationIsMember: function
      • organizationIsMember(url: string, options?: any): AxiosPromise<IsMemberObject>
      • summary

        Returns true if the current user is a member of the given organization.

        throws

        {RequiredError}

        Parameters

        • url: string

          Url of the organization.

        • Optional options: any

        Returns AxiosPromise<IsMemberObject>

    • organizationIsMember2: function
      • organizationIsMember2(options?: any): AxiosPromise<WrapperObject>
      • summary

        Returns a list of organizations in which the current user is a member.

        throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<WrapperObject>

  • PidApi: { apiV2PidsOptions: any; isValid: any; sendEmailToOwner: any }
    • apiV2PidsOptions: function
      • apiV2PidsOptions(options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<void>

    • isValid: function
      • isValid(pid: string, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • pid: string
        • Optional options: any

        Returns AxiosPromise<void>

    • sendEmailToOwner: function
      • sendEmailToOwner(pid: string, pidEnquiryDto?: PidEnquiryDto, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • pid: string
        • Optional pidEnquiryDto: PidEnquiryDto
        • Optional options: any

        Returns AxiosPromise<void>

  • ProjectApi: { apiV2ProjectsOptions: any; createProject: any; deleteProject: any; getProject: any; getProjects: any; updateProject: any }
    • apiV2ProjectsOptions: function
      • apiV2ProjectsOptions(options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<void>

    • createProject: function
      • createProject(projectForCreationDto?: ProjectForCreationDto, options?: any): AxiosPromise<ProjectDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • Optional projectForCreationDto: ProjectForCreationDto
        • Optional options: any

        Returns AxiosPromise<ProjectDtoResponse>

    • deleteProject: function
      • deleteProject(projectId: string, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional options: any

        Returns AxiosPromise<void>

    • getProject: function
      • getProject(projectId: string, includeSubProjects?: boolean, options?: any): AxiosPromise<ProjectDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional includeSubProjects: boolean
        • Optional options: any

        Returns AxiosPromise<ProjectDtoResponse>

    • getProjects: function
      • getProjects(topLevel?: boolean, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<ProjectDtoIEnumerablePagedResponse>
      • throws

        {RequiredError}

        Parameters

        • Optional topLevel: boolean
        • Optional pageNumber: number
        • Optional pageSize: number
        • Optional orderBy: string
        • Optional options: any

        Returns AxiosPromise<ProjectDtoIEnumerablePagedResponse>

    • updateProject: function
      • updateProject(projectId: string, projectForUpdateDto?: ProjectForUpdateDto, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional projectForUpdateDto: ProjectForUpdateDto
        • Optional options: any

        Returns AxiosPromise<void>

  • ProjectInvitationApi: { apiV2ProjectsProjectIdInvitationsOptions: any; createProjectInvitation: any; deleteProjectInvitation: any; getProjectInvitation: any; getProjectInvitations: any; resolveProjectInvitation: any }
    • apiV2ProjectsProjectIdInvitationsOptions: function
      • apiV2ProjectsProjectIdInvitationsOptions(projectId: string, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional options: any

        Returns AxiosPromise<void>

    • createProjectInvitation: function
      • createProjectInvitation(projectId: string, projectInvitationForProjectManipulationDto?: ProjectInvitationForProjectManipulationDto, options?: any): AxiosPromise<ProjectInvitationDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional projectInvitationForProjectManipulationDto: ProjectInvitationForProjectManipulationDto
        • Optional options: any

        Returns AxiosPromise<ProjectInvitationDtoResponse>

    • deleteProjectInvitation: function
      • deleteProjectInvitation(projectId: string, projectInvitationId: string, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • projectInvitationId: string
        • Optional options: any

        Returns AxiosPromise<void>

    • getProjectInvitation: function
      • getProjectInvitation(projectId: string, projectInvitationId: string, options?: any): AxiosPromise<ProjectInvitationDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • projectInvitationId: string
        • Optional options: any

        Returns AxiosPromise<ProjectInvitationDtoResponse>

    • getProjectInvitations: function
      • getProjectInvitations(projectId: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<ProjectInvitationDtoIEnumerablePagedResponse>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional pageNumber: number
        • Optional pageSize: number
        • Optional orderBy: string
        • Optional options: any

        Returns AxiosPromise<ProjectInvitationDtoIEnumerablePagedResponse>

    • resolveProjectInvitation: function
      • resolveProjectInvitation(projectId: string, projectInvitationResolveDto?: ProjectInvitationResolveDto, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional projectInvitationResolveDto: ProjectInvitationResolveDto
        • Optional options: any

        Returns AxiosPromise<void>

  • ProjectMemberApi: { addMembership: any; apiV2ProjectsProjectIdMembersOptions: any; deleteMembership: any; getMembership: any; getMemberships: any; updateMembership: any }
    • addMembership: function
      • addMembership(projectId: string, projectRoleForProjectCreationDto?: ProjectRoleForProjectCreationDto, options?: any): AxiosPromise<ProjectRoleDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional projectRoleForProjectCreationDto: ProjectRoleForProjectCreationDto
        • Optional options: any

        Returns AxiosPromise<ProjectRoleDtoResponse>

    • apiV2ProjectsProjectIdMembersOptions: function
      • apiV2ProjectsProjectIdMembersOptions(projectId: string, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional options: any

        Returns AxiosPromise<void>

    • deleteMembership: function
      • deleteMembership(projectId: string, membershipId: string, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • membershipId: string
        • Optional options: any

        Returns AxiosPromise<void>

    • getMembership: function
      • getMembership(projectId: string, membershipId: string, options?: any): AxiosPromise<ProjectRoleDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • membershipId: string
        • Optional options: any

        Returns AxiosPromise<ProjectRoleDtoResponse>

    • getMemberships: function
      • getMemberships(projectId: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<ProjectRoleDtoIEnumerablePagedResponse>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional pageNumber: number
        • Optional pageSize: number
        • Optional orderBy: string
        • Optional options: any

        Returns AxiosPromise<ProjectRoleDtoIEnumerablePagedResponse>

    • updateMembership: function
      • updateMembership(projectId: string, membershipId: string, projectRoleForProjectManipulationDto?: ProjectRoleForProjectManipulationDto, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • membershipId: string
        • Optional projectRoleForProjectManipulationDto: ProjectRoleForProjectManipulationDto
        • Optional options: any

        Returns AxiosPromise<void>

  • ProjectQuotaApi: { apiV2ProjectsProjectIdQuotasOptions: any; getProjectQuota: any; getProjectQuotas: any; updateProjectQuota: any }
    • apiV2ProjectsProjectIdQuotasOptions: function
      • apiV2ProjectsProjectIdQuotasOptions(projectId: string, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional options: any

        Returns AxiosPromise<void>

    • getProjectQuota: function
      • getProjectQuota(projectId: string, resourceTypeId: string, options?: any): AxiosPromise<ProjectQuotaDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • resourceTypeId: string
        • Optional options: any

        Returns AxiosPromise<ProjectQuotaDtoResponse>

    • getProjectQuotas: function
      • getProjectQuotas(projectId: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<ProjectQuotaDtoIEnumerablePagedResponse>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional pageNumber: number
        • Optional pageSize: number
        • Optional orderBy: string
        • Optional options: any

        Returns AxiosPromise<ProjectQuotaDtoIEnumerablePagedResponse>

    • updateProjectQuota: function
      • updateProjectQuota(projectId: string, resourceTypeId: string, projectQuotaForUpdateDto?: ProjectQuotaForUpdateDto, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • resourceTypeId: string
        • Optional projectQuotaForUpdateDto: ProjectQuotaForUpdateDto
        • Optional options: any

        Returns AxiosPromise<void>

  • ProjectResourceApi: { apiV2ProjectsProjectIdResourcesOptions: any; createResourceForProject: any; deleteResourceForProject: any; getResourceForProject: any; getResourcesForProject: any; updateResourceForProject: any }
    • apiV2ProjectsProjectIdResourcesOptions: function
      • apiV2ProjectsProjectIdResourcesOptions(projectId: string, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional options: any

        Returns AxiosPromise<void>

    • createResourceForProject: function
      • createResourceForProject(projectId: string, resourceForCreationDto?: ResourceForCreationDto, options?: any): AxiosPromise<ResourceDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional resourceForCreationDto: ResourceForCreationDto
        • Optional options: any

        Returns AxiosPromise<ResourceDtoResponse>

    • deleteResourceForProject: function
      • deleteResourceForProject(projectId: string, resourceId: string, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • resourceId: string
        • Optional options: any

        Returns AxiosPromise<void>

    • getResourceForProject: function
      • getResourceForProject(projectId: string, resourceId: string, options?: any): AxiosPromise<ResourceDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • resourceId: string
        • Optional options: any

        Returns AxiosPromise<ResourceDtoResponse>

    • getResourcesForProject: function
      • getResourcesForProject(projectId: string, pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<ResourceDtoIEnumerablePagedResponse>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional pageNumber: number
        • Optional pageSize: number
        • Optional orderBy: string
        • Optional options: any

        Returns AxiosPromise<ResourceDtoIEnumerablePagedResponse>

    • updateResourceForProject: function
      • updateResourceForProject(projectId: string, resourceId: string, resourceForUpdateDto?: ResourceForUpdateDto, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • resourceId: string
        • Optional resourceForUpdateDto: ResourceForUpdateDto
        • Optional options: any

        Returns AxiosPromise<void>

  • ProjectResourceQuotaApi: { apiV2ProjectsProjectIdResourcesResourceIdQuotaOptions: any; getQuotaForResourceForProject: any }
    • apiV2ProjectsProjectIdResourcesResourceIdQuotaOptions: function
      • apiV2ProjectsProjectIdResourcesResourceIdQuotaOptions(projectId: string, resourceId: string, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • resourceId: string
        • Optional options: any

        Returns AxiosPromise<void>

    • getQuotaForResourceForProject: function
      • getQuotaForResourceForProject(projectId: string, resourceId: string, options?: any): AxiosPromise<ResourceQuotaDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • resourceId: string
        • Optional options: any

        Returns AxiosPromise<ResourceQuotaDtoResponse>

  • ProjectResourceTypeApi: { apiV2ProjectsProjectIdResourcesTypesOptions: any; getAvailableResourceTypesInformationForProject: any }
    • apiV2ProjectsProjectIdResourcesTypesOptions: function
      • apiV2ProjectsProjectIdResourcesTypesOptions(projectId: string, options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional options: any

        Returns AxiosPromise<void>

    • getAvailableResourceTypesInformationForProject: function
      • getAvailableResourceTypesInformationForProject(projectId: string, options?: any): AxiosPromise<ResourceTypeInformationDtoIEnumerableResponse>
      • throws

        {RequiredError}

        Parameters

        • projectId: string
        • Optional options: any

        Returns AxiosPromise<ResourceTypeInformationDtoIEnumerableResponse>

  • ResourceApi: { apiV2ResourcesOptions: any; getResource: any }
    • apiV2ResourcesOptions: function
      • apiV2ResourcesOptions(options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<void>

    • getResource: function
      • getResource(resourceId: string, options?: any): AxiosPromise<ResourceDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • resourceId: string
        • Optional options: any

        Returns AxiosPromise<ResourceDtoResponse>

  • ResourceTypeApi: { apiV2ResourcesTypesOptions: any; getAllGitlabBranchesForProject: any; getAllGitlabProjects: any; getAllResourceTypesInformation: any; getGitlabProject: any; getResourceTypeInformation: any }
    • apiV2ResourcesTypesOptions: function
      • apiV2ResourcesTypesOptions(options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<void>

    • getAllGitlabBranchesForProject: function
      • getAllGitlabBranchesForProject(gitlabProjectId: number, domain: string, accessToken: string, options?: any): AxiosPromise<GitlabBranchDtoIEnumerableResponse>
      • throws

        {RequiredError}

        Parameters

        • gitlabProjectId: number
        • domain: string
        • accessToken: string
        • Optional options: any

        Returns AxiosPromise<GitlabBranchDtoIEnumerableResponse>

    • getAllGitlabProjects: function
      • getAllGitlabProjects(domain: string, accessToken: string, options?: any): AxiosPromise<GitlabProjectDtoIEnumerableResponse>
      • throws

        {RequiredError}

        Parameters

        • domain: string
        • accessToken: string
        • Optional options: any

        Returns AxiosPromise<GitlabProjectDtoIEnumerableResponse>

    • getAllResourceTypesInformation: function
      • getAllResourceTypesInformation(options?: any): AxiosPromise<ResourceTypeInformationDtoIEnumerableResponse>
      • throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<ResourceTypeInformationDtoIEnumerableResponse>

    • getGitlabProject: function
      • getGitlabProject(gitlabProjectId: number, domain: string, accessToken: string, options?: any): AxiosPromise<GitlabProjectDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • gitlabProjectId: number
        • domain: string
        • accessToken: string
        • Optional options: any

        Returns AxiosPromise<GitlabProjectDtoResponse>

    • getResourceTypeInformation: function
      • getResourceTypeInformation(resourceTypeId: string, options?: any): AxiosPromise<ResourceTypeInformationDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • resourceTypeId: string
        • Optional options: any

        Returns AxiosPromise<ResourceTypeInformationDtoResponse>

  • RoleApi: { apiV2RolesOptions: any; getRole: any; getRoles: any }
    • apiV2RolesOptions: function
      • apiV2RolesOptions(options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<void>

    • getRole: function
      • getRole(roleId: string, options?: any): AxiosPromise<RoleDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • roleId: string
        • Optional options: any

        Returns AxiosPromise<RoleDtoResponse>

    • getRoles: function
      • getRoles(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<RoleDtoIEnumerablePagedResponse>
      • throws

        {RequiredError}

        Parameters

        • Optional pageNumber: number
        • Optional pageSize: number
        • Optional orderBy: string
        • Optional options: any

        Returns AxiosPromise<RoleDtoIEnumerablePagedResponse>

  • SearchApi: { searchSearch: any }
    • searchSearch: function
      • searchSearch(searchQuery?: string, includeUsers?: boolean, useAdvancedSyntax?: boolean, includedLanguages?: string[], categoryFilter?: CategoryFilter, orderBy?: OrderBy, pageNumber?: number, pageSize?: number, options?: any): AxiosPromise<ItemSearchResult[]>
      • summary

        Search Elasticsearch

        throws

        {RequiredError}

        Parameters

        • Optional searchQuery: string
        • Optional includeUsers: boolean
        • Optional useAdvancedSyntax: boolean
        • Optional includedLanguages: string[]
        • Optional categoryFilter: CategoryFilter
        • Optional orderBy: OrderBy
        • Optional pageNumber: number
        • Optional pageSize: number
        • Optional options: any

        Returns AxiosPromise<ItemSearchResult[]>

  • ShibbolethApi: { shibbolethCallback: any; shibbolethLogin: any }
    • shibbolethCallback: function
      • shibbolethCallback(returnUrl?: string, remoteError?: string, options?: any): AxiosPromise<any>
      • summary

        Callback method to catch the login

        throws

        {RequiredError}

        Parameters

        • Optional returnUrl: string
        • Optional remoteError: string
        • Optional options: any

        Returns AxiosPromise<any>

    • shibbolethLogin: function
      • shibbolethLogin(returnUrl?: string, entityId?: string, options?: any): AxiosPromise<any>
      • summary

        This method is the central route for logging into an identity provider. On default, the user is redirected to the WAFY of the DFN-AAI. Setting the "entityId" parameter allows the application to redirect to a specific identity provider defined by DFN-AAI.

        throws

        {RequiredError}

        Parameters

        • Optional returnUrl: string
        • Optional entityId: string
        • Optional options: any

        Returns AxiosPromise<any>

  • TOSApi: { tOSAcceptCurrentTOSVersion: any; tOSAcceptedTOSVersion: any; tOSGetCurrentTOSVersion: any }
    • tOSAcceptCurrentTOSVersion: function
      • tOSAcceptCurrentTOSVersion(options?: any): AxiosPromise<string>
      • summary

        Calling this method accepts the TOS for the current user.

        throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<string>

    • tOSAcceptedTOSVersion: function
      • tOSAcceptedTOSVersion(options?: any): AxiosPromise<Tos>
      • summary

        Returns the TOS Versions accepted by the current user.

        throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<Tos>

    • tOSGetCurrentTOSVersion: function
      • tOSGetCurrentTOSVersion(options?: any): AxiosPromise<string>
      • summary

        Returns the current TOS Version.

        throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<string>

  • TitleApi: { titleIndex: any }
    • titleIndex: function
      • titleIndex(options?: any): AxiosPromise<TitleObject[]>
      • summary

        Returns all available titles.

        throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<TitleObject[]>

  • TokenApi: { tokenAddToken: any; tokenGetTokenValidityBounds: any; tokenGetUserToken: any; tokenGetUserTokens: any; tokenRevokeToken: any }
    • tokenAddToken: function
      • tokenAddToken(addApiTokenParameter: AddApiTokenParameter, options?: any): AxiosPromise<CreatedApiTokenObject>
      • summary

        Add a new token for the user.

        throws

        {RequiredError}

        Parameters

        • addApiTokenParameter: AddApiTokenParameter

          Parsed from json

        • Optional options: any

        Returns AxiosPromise<CreatedApiTokenObject>

    • tokenGetTokenValidityBounds: function
      • tokenGetTokenValidityBounds(options?: any): AxiosPromise<TokenValidityObject>
      • summary

        Get the specified token minumum and maximum validity in days.

        throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<TokenValidityObject>

    • tokenGetUserToken: function
      • tokenGetUserToken(tokenId: string, options?: any): AxiosPromise<ApiTokenObject>
      • summary

        Get the specific token values.

        throws

        {RequiredError}

        Parameters

        • tokenId: string

          User tokenId

        • Optional options: any

        Returns AxiosPromise<ApiTokenObject>

    • tokenGetUserTokens: function
      • tokenGetUserTokens(options?: any): AxiosPromise<ApiTokenObject[]>
      • summary

        List all tokens of the current user.

        throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<ApiTokenObject[]>

    • tokenRevokeToken: function
      • tokenRevokeToken(tokenId: string, options?: any): AxiosPromise<any>
      • summary

        Revoke a specific token.

        throws

        {RequiredError}

        Parameters

        • tokenId: string

          User tokenId

        • Optional options: any

        Returns AxiosPromise<any>

  • TreeApi: { treeGetMetadataWithParameter: any; treeStoreMetadataForFileWithParameter: any }
    • treeGetMetadataWithParameter: function
      • treeGetMetadataWithParameter(resourceId: string, path?: string, mimeType?: string, options?: any): AxiosPromise<any>
      • summary

        This method retrieves the metadata

        throws

        {RequiredError}

        Parameters

        • resourceId: string

          Id of a resource

        • Optional path: string
        • Optional mimeType: string
        • Optional options: any

        Returns AxiosPromise<any>

    • treeStoreMetadataForFileWithParameter: function
      • treeStoreMetadataForFileWithParameter(resourceId: string, path?: string, mimeType?: string, options?: any): AxiosPromise<any>
      • summary

        This method stores the metadata of the file

        throws

        {RequiredError}

        Parameters

        • resourceId: string

          Id of the resource

        • Optional path: string
        • Optional mimeType: string
        • Optional options: any

        Returns AxiosPromise<any>

  • UserApi: { userGetUser: any; userQuery: any; userSetAndReturnMergeToken: any; userUpdateUser: any }
    • userGetUser: function
      • userGetUser(options?: any): AxiosPromise<UserObject>
      • summary

        Retrieves the UserObject.

        throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<UserObject>

    • userQuery: function
      • userQuery(queryString: string, projectId: string, options?: any): AxiosPromise<UserObject[]>
      • summary

        This method lets someone query the user database using a query string.

        throws

        {RequiredError}

        Parameters

        • queryString: string

          Search String

        • projectId: string

          Project from which the search is triggered

        • Optional options: any

        Returns AxiosPromise<UserObject[]>

    • userSetAndReturnMergeToken: function
      • userSetAndReturnMergeToken(provider: string, options?: any): AxiosPromise<string>
      • summary

        Sets and returns a merge token.

        throws

        {RequiredError}

        Parameters

        • provider: string

          Specifies the provider from which a user should be merged from

        • Optional options: any

        Returns AxiosPromise<string>

    • userUpdateUser: function
      • userUpdateUser(userObject: UserObject, options?: any): AxiosPromise<number>
      • summary

        Updates the User.

        throws

        {RequiredError}

        Parameters

        • userObject: UserObject

          Entry representing the user

        • Optional options: any

        Returns AxiosPromise<number>

  • VisibilityApi: { apiV2VisibilitiesOptions: any; getVisibilities: any; getVisibility: any }
    • apiV2VisibilitiesOptions: function
      • apiV2VisibilitiesOptions(options?: any): AxiosPromise<void>
      • throws

        {RequiredError}

        Parameters

        • Optional options: any

        Returns AxiosPromise<void>

    • getVisibilities: function
      • getVisibilities(pageNumber?: number, pageSize?: number, orderBy?: string, options?: any): AxiosPromise<VisibilityDtoIEnumerablePagedResponse>
      • throws

        {RequiredError}

        Parameters

        • Optional pageNumber: number
        • Optional pageSize: number
        • Optional orderBy: string
        • Optional options: any

        Returns AxiosPromise<VisibilityDtoIEnumerablePagedResponse>

    • getVisibility: function
      • getVisibility(visibilityId: string, options?: any): AxiosPromise<VisibilityDtoResponse>
      • throws

        {RequiredError}

        Parameters

        • visibilityId: string
        • Optional options: any

        Returns AxiosPromise<VisibilityDtoResponse>

Generated using TypeDoc