Skip to content
Snippets Groups Projects
Commit 66b0f254 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs Committed by Sandra Westerhoff
Browse files

Update: Semantic Search for Project and Resource

parent 785726dd
No related branches found
No related tags found
2 merge requests!40Release: Sprint/2022 17 :robot:,!38Update: Semantic Search for Project and Resource
.gitignore .gitignore
.npmignore .npmignore
.openapi-generator-ignore
api.ts api.ts
base.ts base.ts
common.ts common.ts
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Coscine.Api.Search * Coscine.Api.Search
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* *
* The version of the OpenAPI document: 1.3.2 * The version of the OpenAPI document: 1.4.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
...@@ -22,483 +22,54 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj ...@@ -22,483 +22,54 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base'; import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
/** /**
* * Item Search Result Object
* @export * @export
* @interface DisciplineObject * @interface ItemSearchResult
*/
export interface DisciplineObject {
/**
*
* @type {string}
* @memberof DisciplineObject
*/
id?: string;
/**
*
* @type {string}
* @memberof DisciplineObject
*/ */
url?: string | null; export interface ItemSearchResult {
/**
*
* @type {string}
* @memberof DisciplineObject
*/
displayNameDe?: string | null;
/**
*
* @type {string}
* @memberof DisciplineObject
*/
displayNameEn?: string | null;
}
/**
* File Search Result Object
* @export
* @interface FileSearchResult
*/
export interface FileSearchResult {
/** /**
* Graph Name * Graph Name
* @type {string} * @type {string}
* @memberof FileSearchResult * @memberof ItemSearchResult
*/ */
graphName?: string | null; graphName?: string | null;
/** /**
* ID of Project containing the file * Graph Name
* @type {string} * @type {ItemType}
* @memberof FileSearchResult * @memberof ItemSearchResult
*/
projectId?: string | null;
/**
* ID of Resource containing the file
* @type {string}
* @memberof FileSearchResult
*/ */
resourceId?: string | null; type?: ItemType;
/** /**
* Search result fields * Search result fields
* @type {any} * @type {any}
* @memberof FileSearchResult * @memberof ItemSearchResult
*/ */
source?: any | null; source?: any | null;
} }
/** /**
* *
* @export * @export
* @interface LicenseObject * @enum {string}
*/
export interface LicenseObject {
/**
*
* @type {string}
* @memberof LicenseObject
*/
id?: string;
/**
*
* @type {string}
* @memberof LicenseObject
*/
displayName?: string | null;
}
/**
*
* @export
* @interface OrganizationObject
*/
export interface OrganizationObject {
/**
*
* @type {string}
* @memberof OrganizationObject
*/
url?: string | null;
/**
*
* @type {string}
* @memberof OrganizationObject
*/
displayName?: string | null;
}
/**
*
* @export
* @interface ProjectObject
*/
export interface ProjectObject {
/**
*
* @type {string}
* @memberof ProjectObject
*/
id?: string;
/**
*
* @type {string}
* @memberof ProjectObject
*/
description?: string | null;
/**
*
* @type {string}
* @memberof ProjectObject
*/
displayName?: string | null;
/**
*
* @type {string}
* @memberof ProjectObject
*/
startDate?: string;
/**
*
* @type {string}
* @memberof ProjectObject
*/
endDate?: string;
/**
*
* @type {string}
* @memberof ProjectObject
*/
keywords?: string | null;
/**
*
* @type {string}
* @memberof ProjectObject
*/
projectName?: string | null;
/**
*
* @type {string}
* @memberof ProjectObject
*/
principleInvestigators?: string | null;
/**
*
* @type {string}
* @memberof ProjectObject
*/
grantId?: string | null;
/**
*
* @type {string}
* @memberof ProjectObject
*/
slug?: string | null;
/**
*
* @type {Array<DisciplineObject>}
* @memberof ProjectObject
*/
disciplines?: Array<DisciplineObject> | null;
/**
*
* @type {Array<OrganizationObject>}
* @memberof ProjectObject
*/
organizations?: Array<OrganizationObject> | null;
/**
*
* @type {VisibilityObject}
* @memberof ProjectObject
*/
visibility?: VisibilityObject | null;
/**
*
* @type {string}
* @memberof ProjectObject
*/
parentId?: string;
}
/**
*
* @export
* @interface ResourceObject
*/
export interface ResourceObject {
/**
*
* @type {string}
* @memberof ResourceObject
*/
id?: string;
/**
*
* @type {string}
* @memberof ResourceObject
*/
pid?: string | null;
/**
*
* @type {string}
* @memberof ResourceObject
*/
displayName?: string | null;
/**
*
* @type {string}
* @memberof ResourceObject
*/
resourceName?: string | null;
/**
*
* @type {string}
* @memberof ResourceObject
*/
description?: string | null;
/**
*
* @type {string}
* @memberof ResourceObject
*/
keywords?: string | null;
/**
*
* @type {string}
* @memberof ResourceObject
*/
usageRights?: string | null;
/**
*
* @type {ResourceTypeObject}
* @memberof ResourceObject
*/
type?: ResourceTypeObject | null;
/**
*
* @type {Array<DisciplineObject>}
* @memberof ResourceObject
*/
disciplines?: Array<DisciplineObject> | null;
/**
*
* @type {VisibilityObject}
* @memberof ResourceObject
*/
visibility?: VisibilityObject | null;
/**
*
* @type {LicenseObject}
* @memberof ResourceObject
*/
license?: LicenseObject | null;
/**
*
* @type {any}
* @memberof ResourceObject
*/
resourceTypeOption?: any | null;
/**
*
* @type {string}
* @memberof ResourceObject
*/
applicationProfile?: string | null;
/**
*
* @type {any}
* @memberof ResourceObject
*/
fixedValues?: any | null;
/**
*
* @type {string}
* @memberof ResourceObject
*/
creator?: string | null;
/**
*
* @type {boolean}
* @memberof ResourceObject
*/
archived?: boolean;
}
/**
*
* @export
* @interface ResourceSearchResult
*/
export interface ResourceSearchResult {
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
id?: string;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
pid?: string | null;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
displayName?: string | null;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
resourceName?: string | null;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
description?: string | null;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
keywords?: string | null;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
usageRights?: string | null;
/**
*
* @type {ResourceTypeObject}
* @memberof ResourceSearchResult
*/
type?: ResourceTypeObject | null;
/**
*
* @type {Array<DisciplineObject>}
* @memberof ResourceSearchResult
*/
disciplines?: Array<DisciplineObject> | null;
/**
*
* @type {VisibilityObject}
* @memberof ResourceSearchResult
*/
visibility?: VisibilityObject | null;
/**
*
* @type {LicenseObject}
* @memberof ResourceSearchResult
*/
license?: LicenseObject | null;
/**
*
* @type {any}
* @memberof ResourceSearchResult
*/
resourceTypeOption?: any | null;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
applicationProfile?: string | null;
/**
*
* @type {any}
* @memberof ResourceSearchResult
*/
fixedValues?: any | null;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
creator?: string | null;
/**
*
* @type {boolean}
* @memberof ResourceSearchResult
*/
archived?: boolean;
/**
*
* @type {string}
* @memberof ResourceSearchResult
*/
projectId?: string | null;
}
/**
*
* @export
* @interface ResourceSearchResultAllOf
*/
export interface ResourceSearchResultAllOf {
/**
*
* @type {string}
* @memberof ResourceSearchResultAllOf
*/
projectId?: string | null;
}
/**
*
* @export
* @interface ResourceTypeObject
*/
export interface ResourceTypeObject {
/**
*
* @type {string}
* @memberof ResourceTypeObject
*/
id?: string;
/**
*
* @type {string}
* @memberof ResourceTypeObject
*/ */
displayName?: string | null;
export enum ItemType {
Metadata = 'Metadata',
Project = 'Project',
Resource = 'Resource'
} }
/** /**
* Search result return object * Search result return object
* @export * @export
* @interface SearchResult * @interface SearchResult
*/ */
export interface SearchResult { export interface SearchResult {
/**
* Search result projects
* @type {Array<ProjectObject>}
* @memberof SearchResult
*/
projects?: Array<ProjectObject> | null;
/**
* Search result resources
* @type {Array<ResourceSearchResult>}
* @memberof SearchResult
*/
resources?: Array<ResourceSearchResult> | null;
/** /**
* Search result files * Search result files
* @type {Array<FileSearchResult>} * @type {Array<ItemSearchResult>}
* @memberof SearchResult * @memberof SearchResult
*/ */
files?: Array<FileSearchResult> | null; items?: Array<ItemSearchResult> | null;
}
/**
*
* @export
* @interface VisibilityObject
*/
export interface VisibilityObject {
/**
*
* @type {string}
* @memberof VisibilityObject
*/
id?: string;
/**
*
* @type {string}
* @memberof VisibilityObject
*/
displayName?: string | null;
} }
/** /**
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Coscine.Api.Search * Coscine.Api.Search
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* *
* The version of the OpenAPI document: 1.3.2 * The version of the OpenAPI document: 1.4.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
...@@ -18,7 +18,7 @@ import { Configuration } from "./configuration"; ...@@ -18,7 +18,7 @@ import { Configuration } from "./configuration";
// @ts-ignore // @ts-ignore
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, ""); export const BASE_PATH = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, "");
/** /**
* *
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Coscine.Api.Search * Coscine.Api.Search
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* *
* The version of the OpenAPI document: 1.3.2 * The version of the OpenAPI document: 1.4.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Coscine.Api.Search * Coscine.Api.Search
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* *
* The version of the OpenAPI document: 1.3.2 * The version of the OpenAPI document: 1.4.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Coscine.Api.Search * Coscine.Api.Search
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* *
* The version of the OpenAPI document: 1.3.2 * The version of the OpenAPI document: 1.4.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment