mirror of
https://github.com/clearml/clearml-web
synced 2025-06-26 18:27:02 +00:00
release v1.9 (#43)
Co-authored-by: Shay Halsband <shy.halsband@gmail.com>
This commit is contained in:
127
angular.json
127
angular.json
@@ -182,27 +182,126 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"trains-webapp-e2e": {
|
||||
"root": "",
|
||||
"sourceRoot": "",
|
||||
"report-widgets": {
|
||||
"projectType": "application",
|
||||
"schematics": {
|
||||
"@schematics/angular:component": {
|
||||
"style": "scss"
|
||||
}
|
||||
},
|
||||
"root": "src/app/webapp-common/clearml-applications/report-widgets",
|
||||
"sourceRoot": "src/app/webapp-common/clearml-applications/report-widgets/src",
|
||||
"prefix": "app",
|
||||
"architect": {
|
||||
"e2e": {
|
||||
"builder": "@angular-devkit/build-angular:protractor",
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:browser",
|
||||
"options": {
|
||||
"protractorConfig": "./protractor.conf.js",
|
||||
"devServerTarget": "trains-webapp:serve"
|
||||
"preserveSymlinks": true,
|
||||
"outputPath": "dist/report-widgets",
|
||||
"baseHref": "widgets",
|
||||
"index": "src/app/webapp-common/clearml-applications/report-widgets/src/index.html",
|
||||
"main": "src/app/webapp-common/clearml-applications/report-widgets/src/main.ts",
|
||||
"polyfills": "src/app/webapp-common/clearml-applications/report-widgets/src/polyfills.ts",
|
||||
"tsConfig": "src/app/webapp-common/clearml-applications/report-widgets/tsconfig.app.json",
|
||||
"inlineStyleLanguage": "scss",
|
||||
"assets": [
|
||||
"src/app/webapp-common/clearml-applications/report-widgets/src/favicon.ico",
|
||||
"src/app/webapp-common/clearml-applications/report-widgets/src/assets",
|
||||
"src/app/webapp-common/clearml-applications/report-widgets/src/app/webapp-common/assets"
|
||||
],
|
||||
"stylePreprocessorOptions": {
|
||||
"includePaths": [
|
||||
"src/app/webapp-common/shared/ui-components/styles/"
|
||||
]
|
||||
},
|
||||
"styles": [
|
||||
"src/app/webapp-common/clearml-applications/report-widgets/src/styles.scss",
|
||||
{
|
||||
"input": "src/app/webapp-common/assets/fonts/trains-icons.scss",
|
||||
"bundleName": "trains-icons",
|
||||
"inject": false
|
||||
}
|
||||
],
|
||||
"scripts": []
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "1mb",
|
||||
"maximumError": "2mb"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "2kb",
|
||||
"maximumError": "4kb"
|
||||
}
|
||||
],
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/app/webapp-common/clearml-applications/report-widgets/src/environments/environment.ts",
|
||||
"with": "src/app/webapp-common/clearml-applications/report-widgets/src/environments/environment.prod.ts"
|
||||
}
|
||||
],
|
||||
"outputHashing": "all"
|
||||
},
|
||||
"development": {
|
||||
"buildOptimizer": false,
|
||||
"optimization": false,
|
||||
"vendorChunk": true,
|
||||
"extractLicenses": false,
|
||||
"sourceMap": true,
|
||||
"namedChunks": true
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "production"
|
||||
},
|
||||
"serve": {
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"configurations": {
|
||||
"production": {
|
||||
"browserTarget": "report-widgets:build:production",
|
||||
"headers": {
|
||||
"Content-Security-Policy": "frame-ancestors *"
|
||||
}
|
||||
},
|
||||
"development": {
|
||||
"browserTarget": "report-widgets:build:development"
|
||||
}
|
||||
},
|
||||
"defaultConfiguration": "development"
|
||||
},
|
||||
"extract-i18n": {
|
||||
"builder": "@angular-devkit/build-angular:extract-i18n",
|
||||
"options": {
|
||||
"browserTarget": "report-widgets:build"
|
||||
}
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-devkit/build-angular:tslint",
|
||||
"test": {
|
||||
"builder": "@angular-devkit/build-angular:karma",
|
||||
"options": {
|
||||
"tsConfig": [
|
||||
"e2e/tsconfig.e2e.json"
|
||||
"main": "src/app/webapp-common/clearml-applications/report-widgets/src/test.ts",
|
||||
"polyfills": "src/app/webapp-common/clearml-applications/report-widgets/src/polyfills.ts",
|
||||
"tsConfig": "src/app/webapp-common/clearml-applications/report-widgets/tsconfig.spec.json",
|
||||
"karmaConfig": "src/app/webapp-common/clearml-applications/report-widgets/karma.conf.js",
|
||||
"inlineStyleLanguage": "scss",
|
||||
"assets": [
|
||||
"src/app/webapp-common/clearml-applications/report-widgets/src/favicon.ico",
|
||||
"src/app/webapp-common/clearml-applications/report-widgets/src/assets",
|
||||
"src/app/webapp-common/clearml-applications/report-widgets/src/app/webapp-common/assets",
|
||||
"src/app/webapp-common/clearml-applications/report-widgets/src/app/webapp-common/assets/fonts/trains.ttf"
|
||||
],
|
||||
"exclude": [
|
||||
"**/node_modules/**"
|
||||
]
|
||||
|
||||
"styles": [
|
||||
"src/app/webapp-common/clearml-applications/report-widgets/src/styles.scss",
|
||||
{
|
||||
"input": "src/app/webapp-common/assets/fonts/trains-icons.scss",
|
||||
"bundleName": "trains-icons",
|
||||
"inject": false
|
||||
}
|
||||
],
|
||||
"scripts": []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
4862
package-lock.json
generated
4862
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
85
package.json
85
package.json
@@ -1,13 +1,15 @@
|
||||
{
|
||||
"name": "clearml-webapp",
|
||||
"version": "1.8.0",
|
||||
"version": "1.9.0",
|
||||
"license": "",
|
||||
"scripts": {
|
||||
"ng": "ng",
|
||||
"start": "npx ng serve --proxy-config proxy.config.js --live-reload false --port 4300",
|
||||
"start-widgets": "npx ng serve --port 4201 --project report-widgets --proxy-config proxy.config.js --live-reload false",
|
||||
"hmr": "npx ng serve --proxy-config proxy.config.js --hmr --port 4300",
|
||||
"build": "node --max_old_space_size=3248 ./node_modules/.bin/ng build --configuration production --source-map --vendor-chunk",
|
||||
"build": "npx ng build --configuration production --source-map --vendor-chunk",
|
||||
"build-dev": "node ./node_modules/.bin/ng build --extract-css=false",
|
||||
"build-widgets": "npx ng build --project report-widgets --configuration production",
|
||||
"fetch": "./scripts/get-remote-build.sh",
|
||||
"test": "ng test",
|
||||
"lint": "ng lint",
|
||||
@@ -17,27 +19,27 @@
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@angular/animations": "^14.2.8",
|
||||
"@angular/cdk": "^14.2.6",
|
||||
"@angular/common": "^14.2.8",
|
||||
"@angular/compiler": "^14.2.8",
|
||||
"@angular/core": "^14.2.8",
|
||||
"@angular/forms": "^14.2.8",
|
||||
"@angular/material": "^14.2.6",
|
||||
"@angular/platform-browser": "^14.2.8",
|
||||
"@angular/platform-browser-dynamic": "^14.2.8",
|
||||
"@angular/platform-server": "^14.2.8",
|
||||
"@angular/router": "^14.2.8",
|
||||
"@angular/service-worker": "^14.2.8",
|
||||
"@angular/youtube-player": "^14.2.6",
|
||||
"@aws-sdk/client-s3": "^3.197.0",
|
||||
"@aws-sdk/s3-request-presigner": "^3.197.0",
|
||||
"@angular/animations": "^14.2.12",
|
||||
"@angular/cdk": "^14.2.7",
|
||||
"@angular/common": "^14.2.12",
|
||||
"@angular/compiler": "^14.2.12",
|
||||
"@angular/core": "^14.2.12",
|
||||
"@angular/forms": "^14.2.12",
|
||||
"@angular/material": "^14.2.7",
|
||||
"@angular/platform-browser": "^14.2.12",
|
||||
"@angular/platform-browser-dynamic": "^14.2.12",
|
||||
"@angular/platform-server": "^14.2.12",
|
||||
"@angular/router": "^14.2.12",
|
||||
"@angular/service-worker": "^14.2.12",
|
||||
"@angular/youtube-player": "^14.2.7",
|
||||
"@aws-sdk/client-s3": "^3.216.0",
|
||||
"@aws-sdk/s3-request-presigner": "^3.216.0",
|
||||
"@ngneat/dag": "^2.0.0",
|
||||
"@ngrx/effects": "^14.3.2",
|
||||
"@ngrx/entity": "^14.3.2",
|
||||
"@ngrx/router-store": "^14.3.2",
|
||||
"@ngrx/store": "^14.3.2",
|
||||
"ace-builds": "^1.12.3",
|
||||
"ace-builds": "^1.13.1",
|
||||
"angular-google-tag-manager": "^1.6.1",
|
||||
"angular-resizable-element": "^6.0.0",
|
||||
"angular-split": "^14.1.0",
|
||||
@@ -57,46 +59,47 @@
|
||||
"ngx-clipboard": "^15.1.0",
|
||||
"ngx-color-picker": "^13.0.0",
|
||||
"ngx-device-detector": "^4.0.1",
|
||||
"ngx-markdown-editor": "^4.2.0",
|
||||
"ngx-markdown-editor": "^4.3.0",
|
||||
"ngx-print": "^1.2.1",
|
||||
"ngx-window-token": "^6.0.0",
|
||||
"object-hash": "^3.0.0",
|
||||
"primeicons": "^6.0.1",
|
||||
"primeng": "^14.1.2",
|
||||
"primeng": "^14.2.2",
|
||||
"process": "^0.11.10",
|
||||
"rxjs": "^7.5.7",
|
||||
"string-to-color": "^2.2.2",
|
||||
"tslib": "^2.4.0",
|
||||
"tslib": "^2.4.1",
|
||||
"url": "^0.11.0",
|
||||
"uuid": "^9.0.0",
|
||||
"zone.js": "~0.11.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "^14.2.7",
|
||||
"@angular-devkit/core": "^14.2.7",
|
||||
"@angular-devkit/schematics": "^14.2.7",
|
||||
"@angular-devkit/build-angular": "^14.2.10",
|
||||
"@angular-devkit/core": "^14.2.10",
|
||||
"@angular-devkit/schematics": "^14.2.10",
|
||||
"@angular-devkit/schematics-cli": "^14.2.7",
|
||||
"@angular-eslint/builder": "^14.1.2",
|
||||
"@angular-eslint/eslint-plugin": "^14.1.2",
|
||||
"@angular-eslint/eslint-plugin-template": "^14.1.2",
|
||||
"@angular-eslint/schematics": "14.1.2",
|
||||
"@angular-eslint/template-parser": "^14.1.2",
|
||||
"@angular/cli": "^14.2.7",
|
||||
"@angular/compiler-cli": "^14.2.8",
|
||||
"@angular/language-service": "^14.2.8",
|
||||
"@fortawesome/fontawesome-free": "^6.2.0",
|
||||
"@angular-eslint/builder": "^14.4.0",
|
||||
"@angular-eslint/eslint-plugin": "^14.4.0",
|
||||
"@angular-eslint/eslint-plugin-template": "^14.4.0",
|
||||
"@angular-eslint/schematics": "14.4.0",
|
||||
"@angular-eslint/template-parser": "^14.4.0",
|
||||
"@angular/cli": "^14.2.10",
|
||||
"@angular/compiler-cli": "^14.2.12",
|
||||
"@angular/language-service": "^14.2.12",
|
||||
"@fortawesome/fontawesome-free": "^6.2.1",
|
||||
"@ngrx/schematics": "^14.3.2",
|
||||
"@ngrx/store-devtools": "^14.3.2",
|
||||
"@types/d3-selection": "^3.0.3",
|
||||
"@types/lodash": "^4.14.186",
|
||||
"@types/node": "^16.18.2",
|
||||
"@types/plotly.js": "^2.12.8",
|
||||
"@types/lodash": "^4.14.191",
|
||||
"@types/node": "^18.11.9",
|
||||
"@types/plotly.js": "^2.12.9",
|
||||
"@types/uuid": "^8.3.4",
|
||||
"@typescript-eslint/eslint-plugin": "^5.41.0",
|
||||
"@typescript-eslint/parser": "^5.41.0",
|
||||
"codelyzer": "^6.0.2",
|
||||
"eslint": "^8.26.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.44.0",
|
||||
"@typescript-eslint/parser": "^5.44.0",
|
||||
"codelyzer": "^0.0.28",
|
||||
"eslint": "^8.28.0",
|
||||
"eslint-plugin-import": "2.26.0",
|
||||
"eslint-plugin-jsdoc": "39.3.25",
|
||||
"eslint-plugin-jsdoc": "39.6.2",
|
||||
"eslint-plugin-prefer-arrow": "1.2.3",
|
||||
"typescript": "~4.8.4"
|
||||
}
|
||||
|
||||
@@ -45,3 +45,11 @@ notification-container {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
iframe.iframe-maximized {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
z-index: 999;
|
||||
}
|
||||
@@ -5,7 +5,6 @@ import {ActivatedRoute, NavigationEnd, Router, Params, RouterEvent} from '@angul
|
||||
import {Title} from '@angular/platform-browser';
|
||||
import {selectLoggedOut} from '@common/core/reducers/view.reducer';
|
||||
import {Store} from '@ngrx/store';
|
||||
import {castArray, get, last} from 'lodash/fp';
|
||||
import {selectRouterParams, selectRouterUrl} from '@common/core/reducers/router-reducer';
|
||||
import {ApiProjectsService} from './business-logic/api-services/projects.service';
|
||||
import {Project} from './business-logic/model/projects/project';
|
||||
@@ -27,7 +26,7 @@ import {aceReady, firstLogin, plotlyReady, setScaleFactor, visibilityChanged} fr
|
||||
import {UiUpdatesService} from '@common/shared/services/ui-updates.service';
|
||||
import {UsageStatsService} from './core/services/usage-stats.service';
|
||||
import {dismissSurvey} from './core/actions/layout.actions';
|
||||
import {getScaleFactor, loadExternalLibrary} from '@common/shared/utils/shared-utils';
|
||||
import {getScaleFactor} from '@common/shared/utils/shared-utils';
|
||||
import {User} from './business-logic/model/users/user';
|
||||
import {ConfigurationService} from '@common/shared/services/configuration.service';
|
||||
import {GoogleTagManagerService} from 'angular-google-tag-manager';
|
||||
@@ -36,6 +35,7 @@ import {TipsService} from '@common/shared/services/tips.service';
|
||||
import {USER_PREFERENCES_KEY} from '@common/user-preferences';
|
||||
import {selectIsPipelines} from '@common/experiments-compare/reducers';
|
||||
import {Environment} from '../environments/base';
|
||||
import {loadExternalLibrary} from '@common/shared/utils/load-external-library';
|
||||
|
||||
@Component({
|
||||
selector: 'sm-root',
|
||||
@@ -111,6 +111,20 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
window.addEventListener('message', e => {
|
||||
if (e.data.maximizing) {
|
||||
const drawerContent = document.querySelector('sm-report mat-drawer-container');
|
||||
const iframeElement = document.querySelector(`iframe[name="${e.data.name}"]`);
|
||||
if (iframeElement?.classList.contains('iframe-maximized')) {
|
||||
this.renderer.removeClass(iframeElement, 'iframe-maximized');
|
||||
this.renderer.removeClass(drawerContent, 'iframe-maximized');
|
||||
} else {
|
||||
this.renderer.addClass(iframeElement, 'iframe-maximized');
|
||||
this.renderer.addClass(drawerContent, 'iframe-maximized');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.configService.globalEnvironmentObservable.subscribe(env => {
|
||||
this.hideUpdate = env.hideUpdateNotice;
|
||||
this.showSurvey = env.showSurvey;
|
||||
@@ -156,7 +170,7 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||
|
||||
this.urlSubscription = combineLatest([this.store.select(selectRouterUrl), this.store.select(selectRouterParams)])
|
||||
.subscribe(([url, params]) => {
|
||||
this.projectId = get('projectId', params);
|
||||
this.projectId = params?.projectId;
|
||||
this.isLoginContext = url && url.includes('login');
|
||||
this.isWorkersContext = url && url.includes('workers-and-queues');
|
||||
if (this.projectId) {
|
||||
@@ -226,9 +240,11 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||
const crumbs = routeConfig
|
||||
.reduce((acc, config) => {
|
||||
const dynamicCrumb = this.breadcrumbsStrings[config];
|
||||
return acc.concat(last(castArray(dynamicCrumb ? dynamicCrumb.name : formatStaticCrumb(config))).name);
|
||||
let crumb = dynamicCrumb ? dynamicCrumb : formatStaticCrumb(config);
|
||||
crumb = Array.isArray(crumb) ? crumb.at(-1) : crumb;
|
||||
return acc.concat(crumb.name);
|
||||
}, [''])
|
||||
.filter(name => !!name);
|
||||
.filter(name => !!name && name !== ':project');
|
||||
this.titleService.setTitle(`ClearML - ${crumbs.join(' / ')}`);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ export const BASE_REGEX = {
|
||||
SCHEME : '^[hH][tT][tT][pP][sS]?:\\/\\/',
|
||||
FILE_SUFFIX : '\\/\\S*[^\\/ ]+$',
|
||||
FOLDER : '\\/\\S*[^\\/ ]',
|
||||
S3_BUCKET_NAME : '(\\w[A-Za-z0-9\\-]+\\w\\.)*\\w[A-Za-z0-9\\-]+\\w',
|
||||
S3_BUCKET_NAME : '(?!(xn--|.+-s3alias$|.*\\.{2}.*))[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]',
|
||||
GS_BUCKET_NAME : '(\\w[A-Za-z0-9\\-_]+\\w\\.)*\\w[A-Za-z0-9\\-_]+\\w',
|
||||
AZURE_BUCKET_NAME: '(\\w[A-Za-z0-9\\-_]+\\w\\.)*\\w[A-Za-z0-9\\-_]+\\w'
|
||||
};
|
||||
@@ -99,6 +99,8 @@ export const guessAPIServerURL = () => {
|
||||
return url.replace(/(https?):\/\/(demo|)app/, '$1://$2api');
|
||||
} else if (window.location.port === '30080') {
|
||||
return url.replace(/:\d+/, '') + ':30008';
|
||||
} else if (window.location.pathname === '/widgets') {
|
||||
return url + '/api';
|
||||
}
|
||||
return url.replace(/:\d+/, '') + ':8008';
|
||||
};
|
||||
|
||||
@@ -81,6 +81,10 @@ export const routes: Routes = [
|
||||
data: {search: true},
|
||||
loadChildren: () => import('./features/datasets/datasets.module').then(m => m.DatasetsModule)
|
||||
},
|
||||
{
|
||||
path: 'reports',
|
||||
loadChildren: () => import('./webapp-common/reports/reports.module').then(m => m.ReportsModule)
|
||||
},
|
||||
{path: 'workers-and-queues', loadChildren: () => import('./features/workers-and-queues/workers-and-queues.module').then(m => m.WorkersAndQueuesModule)},
|
||||
{path: '404', loadChildren: () => import('./features/not-found/not-found.module').then(m => m.NotFoundModule)},
|
||||
{path: '**', loadChildren: () => import('./features/not-found/not-found.module').then(m => m.NotFoundModule)},
|
||||
|
||||
578
src/app/business-logic/api-services/reports.service.ts
Normal file
578
src/app/business-logic/api-services/reports.service.ts
Normal file
@@ -0,0 +1,578 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
|
||||
|
||||
import {HTTP} from '../../app.constants';
|
||||
import {SmApiRequestsService} from "./api-requests.service";
|
||||
|
||||
import { Inject, Injectable, Optional } from '@angular/core';
|
||||
import { HttpClient, HttpHeaders, HttpParams,
|
||||
HttpResponse, HttpEvent } from '@angular/common/http';
|
||||
import { CustomHttpUrlEncodingCodec } from '../encoder';
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
import { ReportsArchiveRequest } from '../model/reports/reportsArchiveRequest';
|
||||
import { ReportsArchiveResponse } from '../model/reports/reportsArchiveResponse';
|
||||
import { ReportsCreateRequest } from '../model/reports/reportsCreateRequest';
|
||||
import { ReportsCreateResponse } from '../model/reports/reportsCreateResponse';
|
||||
import { ReportsDeleteRequest } from '../model/reports/reportsDeleteRequest';
|
||||
import { ReportsDeleteResponse } from '../model/reports/reportsDeleteResponse';
|
||||
import { ReportsGetAllExRequest } from '../model/reports/reportsGetAllExRequest';
|
||||
import { ReportsGetAllExResponse } from '../model/reports/reportsGetAllExResponse';
|
||||
import { ReportsGetTagsResponse } from '../model/reports/reportsGetTagsResponse';
|
||||
import { ReportsGetTaskDataRequest } from '../model/reports/reportsGetTaskDataRequest';
|
||||
import { ReportsGetTaskDataResponse } from '../model/reports/reportsGetTaskDataResponse';
|
||||
import { ReportsMoveRequest } from '../model/reports/reportsMoveRequest';
|
||||
import { ReportsMoveResponse } from '../model/reports/reportsMoveResponse';
|
||||
import { ReportsPublishRequest } from '../model/reports/reportsPublishRequest';
|
||||
import { ReportsPublishResponse } from '../model/reports/reportsPublishResponse';
|
||||
import { ReportsShareRequest } from '../model/reports/reportsShareRequest';
|
||||
import { ReportsShareResponse } from '../model/reports/reportsShareResponse';
|
||||
import { ReportsUnarchiveRequest } from '../model/reports/reportsUnarchiveRequest';
|
||||
import { ReportsUnarchiveResponse } from '../model/reports/reportsUnarchiveResponse';
|
||||
import { ReportsUpdateRequest } from '../model/reports/reportsUpdateRequest';
|
||||
import { ReportsUpdateResponse } from '../model/reports/reportsUpdateResponse';
|
||||
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
import { Configuration } from '../configuration';
|
||||
|
||||
|
||||
@Injectable()
|
||||
export class ApiReportsService {
|
||||
|
||||
protected basePath = HTTP.API_BASE_URL;
|
||||
public defaultHeaders = new HttpHeaders();
|
||||
public configuration = new Configuration();
|
||||
|
||||
constructor(protected apiRequest: SmApiRequestsService, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
|
||||
if (basePath) {
|
||||
this.basePath = basePath;
|
||||
}
|
||||
if (configuration) {
|
||||
this.configuration = configuration;
|
||||
this.basePath = basePath || configuration.basePath || this.basePath;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param consumes string[] mime-types
|
||||
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
||||
*/
|
||||
private canConsumeForm(consumes: string[]): boolean {
|
||||
const form = 'multipart/form-data';
|
||||
for (const consume of consumes) {
|
||||
if (form === consume) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Archive report
|
||||
* @param request request body
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public reportsArchive(request: ReportsArchiveRequest, options?: any, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
|
||||
if (request === null || request === undefined) {
|
||||
throw new Error('Required parameter request was null or undefined when calling reportsArchive.');
|
||||
}
|
||||
|
||||
let headers = this.defaultHeaders;
|
||||
if (options && options.async_enable) {
|
||||
headers = headers.set(this.configuration.asyncHeader, '1');
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
const httpHeaderAccepts: string[] = [
|
||||
'application/json'
|
||||
];
|
||||
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
||||
if (httpHeaderAcceptSelected != undefined) {
|
||||
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
// to determine the Content-Type header
|
||||
const consumes: string[] = [
|
||||
];
|
||||
const httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||
if (httpContentTypeSelected != undefined) {
|
||||
headers = headers.set("Content-Type", httpContentTypeSelected);
|
||||
}
|
||||
|
||||
return this.apiRequest.post<ReportsArchiveResponse>(`${this.basePath}/reports.archive`,
|
||||
request,
|
||||
{
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: headers,
|
||||
observe: observe,
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Create a new report
|
||||
* @param request request body
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public reportsCreate(request: ReportsCreateRequest, options?: any, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
|
||||
if (request === null || request === undefined) {
|
||||
throw new Error('Required parameter request was null or undefined when calling reportsCreate.');
|
||||
}
|
||||
|
||||
let headers = this.defaultHeaders;
|
||||
if (options && options.async_enable) {
|
||||
headers = headers.set(this.configuration.asyncHeader, '1');
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
const httpHeaderAccepts: string[] = [
|
||||
'application/json'
|
||||
];
|
||||
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
||||
if (httpHeaderAcceptSelected != undefined) {
|
||||
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
// to determine the Content-Type header
|
||||
const consumes: string[] = [
|
||||
];
|
||||
const httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||
if (httpContentTypeSelected != undefined) {
|
||||
headers = headers.set("Content-Type", httpContentTypeSelected);
|
||||
}
|
||||
|
||||
return this.apiRequest.post<ReportsCreateResponse>(`${this.basePath}/reports.create`,
|
||||
request,
|
||||
{
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: headers,
|
||||
observe: observe,
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Delete report
|
||||
* @param request request body
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public reportsDelete(request: ReportsDeleteRequest, options?: any, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
|
||||
if (request === null || request === undefined) {
|
||||
throw new Error('Required parameter request was null or undefined when calling reportsDelete.');
|
||||
}
|
||||
|
||||
let headers = this.defaultHeaders;
|
||||
if (options && options.async_enable) {
|
||||
headers = headers.set(this.configuration.asyncHeader, '1');
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
const httpHeaderAccepts: string[] = [
|
||||
'application/json'
|
||||
];
|
||||
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
||||
if (httpHeaderAcceptSelected != undefined) {
|
||||
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
// to determine the Content-Type header
|
||||
const consumes: string[] = [
|
||||
];
|
||||
const httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||
if (httpContentTypeSelected != undefined) {
|
||||
headers = headers.set("Content-Type", httpContentTypeSelected);
|
||||
}
|
||||
|
||||
return this.apiRequest.post<ReportsDeleteResponse>(`${this.basePath}/reports.delete`,
|
||||
request,
|
||||
{
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: headers,
|
||||
observe: observe,
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get all the company\'s and public report tasks
|
||||
* @param request request body
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public reportsGetAllEx(request: ReportsGetAllExRequest, options?: any, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
|
||||
if (request === null || request === undefined) {
|
||||
throw new Error('Required parameter request was null or undefined when calling reportsGetAllEx.');
|
||||
}
|
||||
|
||||
let headers = this.defaultHeaders;
|
||||
if (options && options.async_enable) {
|
||||
headers = headers.set(this.configuration.asyncHeader, '1');
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
const httpHeaderAccepts: string[] = [
|
||||
'application/json'
|
||||
];
|
||||
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
||||
if (httpHeaderAcceptSelected != undefined) {
|
||||
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
// to determine the Content-Type header
|
||||
const consumes: string[] = [
|
||||
];
|
||||
const httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||
if (httpContentTypeSelected != undefined) {
|
||||
headers = headers.set("Content-Type", httpContentTypeSelected);
|
||||
}
|
||||
|
||||
return this.apiRequest.post<ReportsGetAllExResponse>(`${this.basePath}/reports.get_all_ex`,
|
||||
request,
|
||||
{
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: headers,
|
||||
observe: observe,
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get all the user tags used for the company reports
|
||||
* @param request request body
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public reportsGetTags(request: object, options?: any, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
|
||||
if (request === null || request === undefined) {
|
||||
throw new Error('Required parameter request was null or undefined when calling reportsGetTags.');
|
||||
}
|
||||
|
||||
let headers = this.defaultHeaders;
|
||||
if (options && options.async_enable) {
|
||||
headers = headers.set(this.configuration.asyncHeader, '1');
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
const httpHeaderAccepts: string[] = [
|
||||
'application/json'
|
||||
];
|
||||
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
||||
if (httpHeaderAcceptSelected != undefined) {
|
||||
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
// to determine the Content-Type header
|
||||
const consumes: string[] = [
|
||||
];
|
||||
const httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||
if (httpContentTypeSelected != undefined) {
|
||||
headers = headers.set("Content-Type", httpContentTypeSelected);
|
||||
}
|
||||
|
||||
return this.apiRequest.post<ReportsGetTagsResponse>(`${this.basePath}/reports.get_tags`,
|
||||
request,
|
||||
{
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: headers,
|
||||
observe: observe,
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Get the tasks data according the passed search criteria + requested events
|
||||
* @param request request body
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public reportsGetTaskData(request: ReportsGetTaskDataRequest, options?: any, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
|
||||
if (request === null || request === undefined) {
|
||||
throw new Error('Required parameter request was null or undefined when calling reportsGetTaskData.');
|
||||
}
|
||||
|
||||
let headers = this.defaultHeaders;
|
||||
if (options && options.async_enable) {
|
||||
headers = headers.set(this.configuration.asyncHeader, '1');
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
const httpHeaderAccepts: string[] = [
|
||||
'application/json'
|
||||
];
|
||||
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
||||
if (httpHeaderAcceptSelected != undefined) {
|
||||
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
// to determine the Content-Type header
|
||||
const consumes: string[] = [
|
||||
];
|
||||
const httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||
if (httpContentTypeSelected != undefined) {
|
||||
headers = headers.set("Content-Type", httpContentTypeSelected);
|
||||
}
|
||||
|
||||
return this.apiRequest.post<ReportsGetTaskDataResponse>(`${this.basePath}/reports.get_task_data`,
|
||||
request,
|
||||
{
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: headers,
|
||||
observe: observe,
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Move reports to a project
|
||||
* @param request request body
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public reportsMove(request: ReportsMoveRequest, options?: any, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
|
||||
if (request === null || request === undefined) {
|
||||
throw new Error('Required parameter request was null or undefined when calling reportsMove.');
|
||||
}
|
||||
|
||||
let headers = this.defaultHeaders;
|
||||
if (options && options.async_enable) {
|
||||
headers = headers.set(this.configuration.asyncHeader, '1');
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
const httpHeaderAccepts: string[] = [
|
||||
'application/json'
|
||||
];
|
||||
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
||||
if (httpHeaderAcceptSelected != undefined) {
|
||||
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
// to determine the Content-Type header
|
||||
const consumes: string[] = [
|
||||
];
|
||||
const httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||
if (httpContentTypeSelected != undefined) {
|
||||
headers = headers.set("Content-Type", httpContentTypeSelected);
|
||||
}
|
||||
|
||||
return this.apiRequest.post<ReportsMoveResponse>(`${this.basePath}/reports.move`,
|
||||
request,
|
||||
{
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: headers,
|
||||
observe: observe,
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Publish report
|
||||
* @param request request body
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public reportsPublish(request: ReportsPublishRequest, options?: any, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
|
||||
if (request === null || request === undefined) {
|
||||
throw new Error('Required parameter request was null or undefined when calling reportsPublish.');
|
||||
}
|
||||
|
||||
let headers = this.defaultHeaders;
|
||||
if (options && options.async_enable) {
|
||||
headers = headers.set(this.configuration.asyncHeader, '1');
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
const httpHeaderAccepts: string[] = [
|
||||
'application/json'
|
||||
];
|
||||
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
||||
if (httpHeaderAcceptSelected != undefined) {
|
||||
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
// to determine the Content-Type header
|
||||
const consumes: string[] = [
|
||||
];
|
||||
const httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||
if (httpContentTypeSelected != undefined) {
|
||||
headers = headers.set("Content-Type", httpContentTypeSelected);
|
||||
}
|
||||
|
||||
return this.apiRequest.post<ReportsPublishResponse>(`${this.basePath}/reports.publish`,
|
||||
request,
|
||||
{
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: headers,
|
||||
observe: observe,
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Share or unshare report
|
||||
* @param request request body
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public reportsShare(request: ReportsShareRequest, options?: any, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
|
||||
if (request === null || request === undefined) {
|
||||
throw new Error('Required parameter request was null or undefined when calling reportsShare.');
|
||||
}
|
||||
|
||||
let headers = this.defaultHeaders;
|
||||
if (options && options.async_enable) {
|
||||
headers = headers.set(this.configuration.asyncHeader, '1');
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
const httpHeaderAccepts: string[] = [
|
||||
'application/json'
|
||||
];
|
||||
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
||||
if (httpHeaderAcceptSelected != undefined) {
|
||||
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
// to determine the Content-Type header
|
||||
const consumes: string[] = [
|
||||
];
|
||||
const httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||
if (httpContentTypeSelected != undefined) {
|
||||
headers = headers.set("Content-Type", httpContentTypeSelected);
|
||||
}
|
||||
|
||||
return this.apiRequest.post<ReportsShareResponse>(`${this.basePath}/reports.share`,
|
||||
request,
|
||||
{
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: headers,
|
||||
observe: observe,
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Unarchive report
|
||||
* @param request request body
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public reportsUnarchive(request: ReportsUnarchiveRequest, options?: any, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
|
||||
if (request === null || request === undefined) {
|
||||
throw new Error('Required parameter request was null or undefined when calling reportsUnarchive.');
|
||||
}
|
||||
|
||||
let headers = this.defaultHeaders;
|
||||
if (options && options.async_enable) {
|
||||
headers = headers.set(this.configuration.asyncHeader, '1');
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
const httpHeaderAccepts: string[] = [
|
||||
'application/json'
|
||||
];
|
||||
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
||||
if (httpHeaderAcceptSelected != undefined) {
|
||||
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
// to determine the Content-Type header
|
||||
const consumes: string[] = [
|
||||
];
|
||||
const httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||
if (httpContentTypeSelected != undefined) {
|
||||
headers = headers.set("Content-Type", httpContentTypeSelected);
|
||||
}
|
||||
|
||||
return this.apiRequest.post<ReportsUnarchiveResponse>(`${this.basePath}/reports.unarchive`,
|
||||
request,
|
||||
{
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: headers,
|
||||
observe: observe,
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Create a new report
|
||||
* @param request request body
|
||||
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
||||
* @param reportProgress flag to report request and response progress.
|
||||
*/
|
||||
public reportsUpdate(request: ReportsUpdateRequest, options?: any, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {
|
||||
if (request === null || request === undefined) {
|
||||
throw new Error('Required parameter request was null or undefined when calling reportsUpdate.');
|
||||
}
|
||||
|
||||
let headers = this.defaultHeaders;
|
||||
if (options && options.async_enable) {
|
||||
headers = headers.set(this.configuration.asyncHeader, '1');
|
||||
}
|
||||
|
||||
// to determine the Accept header
|
||||
const httpHeaderAccepts: string[] = [
|
||||
'application/json'
|
||||
];
|
||||
const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
||||
if (httpHeaderAcceptSelected != undefined) {
|
||||
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
||||
}
|
||||
|
||||
// to determine the Content-Type header
|
||||
const consumes: string[] = [
|
||||
];
|
||||
const httpContentTypeSelected:string | undefined = this.configuration.selectHeaderContentType(consumes);
|
||||
if (httpContentTypeSelected != undefined) {
|
||||
headers = headers.set("Content-Type", httpContentTypeSelected);
|
||||
}
|
||||
|
||||
return this.apiRequest.post<ReportsUpdateResponse>(`${this.basePath}/reports.update`,
|
||||
request,
|
||||
{
|
||||
withCredentials: this.configuration.withCredentials,
|
||||
headers: headers,
|
||||
observe: observe,
|
||||
reportProgress: reportProgress
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -16,6 +16,7 @@ import {ApiServerService} from './api-services/server.service';
|
||||
import {ApiOrganizationService} from './api-services/organization.service';
|
||||
import {ApiLoginService} from './api-services/login.service';
|
||||
import {ApiPipelinesService} from '~/business-logic/api-services/pipelines.service';
|
||||
import {ApiReportsService} from '~/business-logic/api-services/reports.service';
|
||||
|
||||
@NgModule({
|
||||
imports : [CommonModule, HttpClientModule],
|
||||
@@ -36,7 +37,8 @@ import {ApiPipelinesService} from '~/business-logic/api-services/pipelines.servi
|
||||
ApiServerService,
|
||||
ApiOrganizationService,
|
||||
ApiLoginService,
|
||||
ApiPipelinesService
|
||||
ApiPipelinesService,
|
||||
ApiReportsService,
|
||||
]
|
||||
})
|
||||
export class BusinessLogicModule {
|
||||
|
||||
@@ -74,6 +74,10 @@ export interface ModelsGetAllExRequest {
|
||||
* List of model URIs
|
||||
*/
|
||||
uri?: Array<string>;
|
||||
/**
|
||||
* List of last_update constraint strings (utcformat, epoch) with an optional prefix modifier (>, >=, <, <=)
|
||||
*/
|
||||
last_update?: Array<string>;
|
||||
_all_?: MultiFieldPatternData;
|
||||
_any_?: MultiFieldPatternData;
|
||||
/**
|
||||
@@ -96,4 +100,8 @@ export interface ModelsGetAllExRequest {
|
||||
* If true, include models statistic in response
|
||||
*/
|
||||
include_stats?: boolean;
|
||||
/**
|
||||
* Allow public models to be returned in the results
|
||||
*/
|
||||
allow_public?: boolean;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,10 @@ export interface OrganizationGetEntitiesCountRequest {
|
||||
* Search criteria for models
|
||||
*/
|
||||
models?: object;
|
||||
/**
|
||||
* Search criteria for dataviews
|
||||
*/
|
||||
dataviews?: object;
|
||||
/**
|
||||
* Search criteria for pipelines
|
||||
*/
|
||||
@@ -32,13 +36,18 @@ export interface OrganizationGetEntitiesCountRequest {
|
||||
/**
|
||||
* Search criteria for datasets
|
||||
*/
|
||||
datasets: object;
|
||||
datasets?: object;
|
||||
/**
|
||||
* If set to 'true' then hidden projects and tasks are included in the search results
|
||||
* If set to \'true\' then hidden projects and tasks are included in the search results
|
||||
*/
|
||||
search_hidden?: boolean;
|
||||
active_users?: Array<string>;
|
||||
/**
|
||||
* The list of users that were active in the project. If passes then the resulting projects are filtered to the ones that have tasks created by these users
|
||||
* Search criteria for reports
|
||||
*/
|
||||
active_users?: string[];
|
||||
reports?: object;
|
||||
/**
|
||||
* Allow public entities to be counted in the results
|
||||
*/
|
||||
allow_public?: boolean;
|
||||
}
|
||||
|
||||
@@ -29,12 +29,16 @@ export interface OrganizationGetEntitiesCountResponse {
|
||||
* The number of dataviews matching the criteria
|
||||
*/
|
||||
dataviews?: number;
|
||||
/**
|
||||
* The number of hyper datasets matching the criteria
|
||||
*/
|
||||
hyper_datasets?: number;
|
||||
/**
|
||||
* The number of pipelines matching the criteria
|
||||
*/
|
||||
pipelines?: number;
|
||||
/**
|
||||
* The number of datasets matching the criteria
|
||||
*/
|
||||
datasets?: number;
|
||||
/**
|
||||
* The number of reports matching the criteria
|
||||
*/
|
||||
reports?: number;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* projects
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 2.14
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
@@ -22,6 +22,10 @@ export interface ProjectsGetAllExRequest {
|
||||
* Get only projects whose name matches this pattern (python regular expression syntax)
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Project base name
|
||||
*/
|
||||
basename?: string;
|
||||
/**
|
||||
* Get only projects whose description matches this pattern (python regular expression syntax)
|
||||
*/
|
||||
@@ -39,7 +43,7 @@ export interface ProjectsGetAllExRequest {
|
||||
*/
|
||||
order_by?: Array<string>;
|
||||
/**
|
||||
* Page number, returns a specific page out of the resulting list of projects
|
||||
* Page number, returns a specific page out of the resulting list of dataviews
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
@@ -74,7 +78,7 @@ export interface ProjectsGetAllExRequest {
|
||||
*/
|
||||
shallow_search?: boolean;
|
||||
/**
|
||||
* If set to \'true\' and project ids are passed to the query then for these projects their own tasks and models are counted
|
||||
* If set to \'true\' and project ids are passed to the query then for these projects their own tasks, models and dataviews are counted
|
||||
*/
|
||||
check_own_contents?: boolean;
|
||||
/**
|
||||
@@ -93,12 +97,26 @@ export interface ProjectsGetAllExRequest {
|
||||
* The number of projects to retrieve
|
||||
*/
|
||||
size?: number;
|
||||
stats_with_children?: boolean;
|
||||
include_stats_filter?: any;
|
||||
/**
|
||||
* If include_stats flag is set then this flag contols whether the child projects tasks are taken into statistics or not
|
||||
*/
|
||||
stats_with_children?: boolean;
|
||||
/**
|
||||
* The filter for selecting entities that participate in statistics calculation. For each task field that you want to filter on pass the list of allowed values. Prepend the value with \'-\' to exclude
|
||||
*/
|
||||
include_stats_filter?: object;
|
||||
/**
|
||||
* If true, include project dataset statistic in response
|
||||
*/
|
||||
include_dataset_stats?: boolean;
|
||||
/**
|
||||
* If Truethen the shallow search is done among all the top projects that the user has access to beneath the requested parent. Even if these projects are not direct children of the parent
|
||||
*/
|
||||
permission_roots_only?: boolean;
|
||||
/**
|
||||
* Allow public projects to be returned in the results
|
||||
*/
|
||||
allow_public?: boolean;
|
||||
}
|
||||
export namespace ProjectsGetAllExRequest {
|
||||
export type StatsForStateEnum = 'active' | 'archived';
|
||||
|
||||
48
src/app/business-logic/model/reports/artifact.ts
Normal file
48
src/app/business-logic/model/reports/artifact.ts
Normal file
@@ -0,0 +1,48 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { ArtifactModeEnum } from '././artifactModeEnum';
|
||||
import { ArtifactTypeData } from '././artifactTypeData';
|
||||
|
||||
|
||||
export interface Artifact {
|
||||
/**
|
||||
* Entry key
|
||||
*/
|
||||
key: string;
|
||||
/**
|
||||
* System defined type
|
||||
*/
|
||||
type: string;
|
||||
mode?: ArtifactModeEnum;
|
||||
/**
|
||||
* Raw data location
|
||||
*/
|
||||
uri?: string;
|
||||
/**
|
||||
* Raw data length in bytes
|
||||
*/
|
||||
content_size?: number;
|
||||
/**
|
||||
* Hash of entire raw data
|
||||
*/
|
||||
hash?: string;
|
||||
/**
|
||||
* Epoch time when artifact was created
|
||||
*/
|
||||
timestamp?: number;
|
||||
type_data?: ArtifactTypeData;
|
||||
/**
|
||||
* User-defined list of key/value pairs, sorted
|
||||
*/
|
||||
display_data?: Array<Array<string>>;
|
||||
}
|
||||
20
src/app/business-logic/model/reports/artifactModeEnum.ts
Normal file
20
src/app/business-logic/model/reports/artifactModeEnum.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export type ArtifactModeEnum = 'input' | 'output';
|
||||
|
||||
export const ArtifactModeEnum = {
|
||||
Input: 'input' as ArtifactModeEnum,
|
||||
Output: 'output' as ArtifactModeEnum
|
||||
}
|
||||
28
src/app/business-logic/model/reports/artifactTypeData.ts
Normal file
28
src/app/business-logic/model/reports/artifactTypeData.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ArtifactTypeData {
|
||||
/**
|
||||
* Description or textual data
|
||||
*/
|
||||
preview?: string;
|
||||
/**
|
||||
* System defined raw data content type
|
||||
*/
|
||||
content_type?: string;
|
||||
/**
|
||||
* Hash of raw data, without any headers or descriptive parts
|
||||
*/
|
||||
data_hash?: string;
|
||||
}
|
||||
25
src/app/business-logic/model/reports/augmentation.ts
Normal file
25
src/app/business-logic/model/reports/augmentation.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { AugmentationSet } from '././augmentationSet';
|
||||
|
||||
|
||||
export interface Augmentation {
|
||||
/**
|
||||
* List of augmentation sets
|
||||
*/
|
||||
sets?: Array<AugmentationSet>;
|
||||
/**
|
||||
* Crop image data around all frame ROIs
|
||||
*/
|
||||
crop_around_rois?: boolean;
|
||||
}
|
||||
32
src/app/business-logic/model/reports/augmentationSet.ts
Normal file
32
src/app/business-logic/model/reports/augmentationSet.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface AugmentationSet {
|
||||
/**
|
||||
* Augmentation class
|
||||
*/
|
||||
cls?: string;
|
||||
/**
|
||||
* Augmentation type
|
||||
*/
|
||||
types?: Array<string>;
|
||||
/**
|
||||
* Augmentation strength. Range [0,).
|
||||
*/
|
||||
strength?: number;
|
||||
/**
|
||||
* Arguments dictionary per custom augmentation type.
|
||||
*/
|
||||
arguments?: { [key: string]: object; };
|
||||
}
|
||||
32
src/app/business-logic/model/reports/configurationItem.ts
Normal file
32
src/app/business-logic/model/reports/configurationItem.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ConfigurationItem {
|
||||
/**
|
||||
* Name of the parameter. Should be unique
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Value of the parameter
|
||||
*/
|
||||
value?: string;
|
||||
/**
|
||||
* Type of the parameter. Optional
|
||||
*/
|
||||
type?: string;
|
||||
/**
|
||||
* The parameter description. Optional
|
||||
*/
|
||||
description?: string;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { DebugImagesResponseTaskMetricsIterations } from '././debugImagesResponseTaskMetricsIterations';
|
||||
|
||||
|
||||
export interface DebugImagesResponseTaskMetrics {
|
||||
/**
|
||||
* Task ID
|
||||
*/
|
||||
task?: string;
|
||||
iterations?: Array<DebugImagesResponseTaskMetricsIterations>;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface DebugImagesResponseTaskMetricsIterations {
|
||||
/**
|
||||
* Iteration number
|
||||
*/
|
||||
iter?: number;
|
||||
events?: Array<object>;
|
||||
}
|
||||
57
src/app/business-logic/model/reports/execution.ts
Normal file
57
src/app/business-logic/model/reports/execution.ts
Normal file
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { Artifact } from '././artifact';
|
||||
|
||||
|
||||
export interface Execution {
|
||||
/**
|
||||
* Queue ID where task was queued.
|
||||
*/
|
||||
queue?: string;
|
||||
/**
|
||||
* Percentage of frames to use for testing only
|
||||
*/
|
||||
test_split?: number;
|
||||
/**
|
||||
* Json object containing the Task parameters
|
||||
*/
|
||||
parameters?: object;
|
||||
/**
|
||||
* Execution input model ID Not applicable for Register (Import) tasks
|
||||
*/
|
||||
model?: string;
|
||||
/**
|
||||
* Json object representing the Model descriptors
|
||||
*/
|
||||
model_desc?: object;
|
||||
/**
|
||||
* Json object representing the ids of the labels in the model. The keys are the layers\' names and the values are the IDs. Not applicable for Register (Import) tasks. Mandatory for Training tasks
|
||||
*/
|
||||
model_labels?: { [key: string]: number; };
|
||||
/**
|
||||
* Framework related to the task. Case insensitive. Mandatory for Training tasks.
|
||||
*/
|
||||
framework?: string;
|
||||
/**
|
||||
* Additional dataviews for the task
|
||||
*/
|
||||
dataviews?: Array<object>;
|
||||
/**
|
||||
* Command for running docker script for the execution of the task
|
||||
*/
|
||||
docker_cmd?: string;
|
||||
/**
|
||||
* Task artifacts
|
||||
*/
|
||||
artifacts?: Array<Artifact>;
|
||||
}
|
||||
21
src/app/business-logic/model/reports/filterByRoiEnum.ts
Normal file
21
src/app/business-logic/model/reports/filterByRoiEnum.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export type FilterByRoiEnum = 'disabled' | 'no_rois' | 'label_rules';
|
||||
|
||||
export const FilterByRoiEnum = {
|
||||
Disabled: 'disabled' as FilterByRoiEnum,
|
||||
NoRois: 'no_rois' as FilterByRoiEnum,
|
||||
LabelRules: 'label_rules' as FilterByRoiEnum
|
||||
}
|
||||
32
src/app/business-logic/model/reports/filterLabelRule.ts
Normal file
32
src/app/business-logic/model/reports/filterLabelRule.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface FilterLabelRule {
|
||||
/**
|
||||
* Lucene format query (see lucene query syntax). Default search field is label.keyword and default operator is AND, so searching for: \'Bus Stop\' Blue is equivalent to: Label.keyword:\'Bus Stop\' AND label.keyword:\'Blue\'
|
||||
*/
|
||||
label: string;
|
||||
/**
|
||||
* Range of times ROI appears in the frame (min, max). -1 for not applicable. Both integers must be larger than or equal to -1. 2nd integer (max) must be either -1 or larger than or equal to the 1st integer (min)
|
||||
*/
|
||||
count_range?: Array<number>;
|
||||
/**
|
||||
* Range of ROI confidence level in the frame (min, max). -1 for not applicable Both min and max can be either -1 or positive. 2nd number (max) must be either -1 or larger than or equal to the 1st number (min)
|
||||
*/
|
||||
conf_range?: Array<number>;
|
||||
/**
|
||||
* If set then the label must not exist or lucene query must not be true. The default value is false
|
||||
*/
|
||||
must_not?: boolean;
|
||||
}
|
||||
43
src/app/business-logic/model/reports/filterRule.ts
Normal file
43
src/app/business-logic/model/reports/filterRule.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { FilterByRoiEnum } from '././filterByRoiEnum';
|
||||
import { FilterLabelRule } from '././filterLabelRule';
|
||||
|
||||
|
||||
export interface FilterRule {
|
||||
/**
|
||||
* List of FilterLabelRule (\'AND\' connection) disabled - No filtering by ROIs. Select all frames, even if they don\'t have ROIs (all frames) no_rois - Select only frames without ROIs (empty frames) label_rules - Select frames according to label rules
|
||||
*/
|
||||
label_rules?: Array<FilterLabelRule>;
|
||||
filter_by_roi?: FilterByRoiEnum;
|
||||
/**
|
||||
* Frame filter, in Lucene query syntax
|
||||
*/
|
||||
frame_query?: string;
|
||||
/**
|
||||
* Sources filter, in Lucene query syntax. Filters sources in each frame.
|
||||
*/
|
||||
sources_query?: string;
|
||||
/**
|
||||
* Dataset ID. Must be a dataset which is in the task\'s view. If set to \'*\' all datasets in View are used.
|
||||
*/
|
||||
dataset: string;
|
||||
/**
|
||||
* Dataset version to apply rule to. Must belong to the dataset and be in the task\'s view. If set to \'*\' all version of the datasets in View are used.
|
||||
*/
|
||||
version?: string;
|
||||
/**
|
||||
* Rule weight. Default is 1
|
||||
*/
|
||||
weight?: number;
|
||||
}
|
||||
23
src/app/business-logic/model/reports/filtering.ts
Normal file
23
src/app/business-logic/model/reports/filtering.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { OutputRoisEnum } from '././outputRoisEnum';
|
||||
import { FilterRule } from '././filterRule';
|
||||
|
||||
|
||||
export interface Filtering {
|
||||
/**
|
||||
* List of FilterRule (\'OR\' connection)
|
||||
*/
|
||||
filtering_rules?: Array<FilterRule>;
|
||||
output_rois?: OutputRoisEnum;
|
||||
}
|
||||
30
src/app/business-logic/model/reports/input.ts
Normal file
30
src/app/business-logic/model/reports/input.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { Augmentation } from '././augmentation';
|
||||
import { Filtering } from '././filtering';
|
||||
import { Iteration } from '././iteration';
|
||||
import { Mapping } from '././mapping';
|
||||
import { View } from '././view';
|
||||
|
||||
|
||||
export interface Input {
|
||||
view?: View;
|
||||
frames_filter?: Filtering;
|
||||
mapping?: Mapping;
|
||||
augmentation?: Augmentation;
|
||||
iteration?: Iteration;
|
||||
/**
|
||||
* Key to DataView ID Mapping
|
||||
*/
|
||||
dataviews?: { [key: string]: string; };
|
||||
}
|
||||
41
src/app/business-logic/model/reports/iteration.ts
Normal file
41
src/app/business-logic/model/reports/iteration.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { Jump } from '././jump';
|
||||
|
||||
|
||||
/**
|
||||
* Sequential Iteration API configuration
|
||||
*/
|
||||
export interface Iteration {
|
||||
/**
|
||||
* Input frames order. Values: \'sequential\', \'random\' In Sequential mode frames will be returned according to the order in which the frames were added to the dataset.
|
||||
*/
|
||||
order?: string;
|
||||
jump?: Jump;
|
||||
/**
|
||||
* Length (in ms) of video clips to return. This is used in random order, and in sequential order only if jumping is provided and only for video frames
|
||||
*/
|
||||
min_sequence?: number;
|
||||
/**
|
||||
* Infinite iteration
|
||||
*/
|
||||
infinite?: boolean;
|
||||
/**
|
||||
* Maximum frames per task. If not passed, frames will end when no more matching frames are found, unless infinite is True.
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* Random seed used during iteration
|
||||
*/
|
||||
random_seed: number;
|
||||
}
|
||||
20
src/app/business-logic/model/reports/jump.ts
Normal file
20
src/app/business-logic/model/reports/jump.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface Jump {
|
||||
/**
|
||||
* Max time in milliseconds between frames
|
||||
*/
|
||||
time?: number;
|
||||
}
|
||||
28
src/app/business-logic/model/reports/labelSource.ts
Normal file
28
src/app/business-logic/model/reports/labelSource.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface LabelSource {
|
||||
/**
|
||||
* List of source labels (AND connection). \'*\' indicates any label. Labels must exist in at least one of the dataset versions in the task\'s view
|
||||
*/
|
||||
labels?: Array<string>;
|
||||
/**
|
||||
* Source dataset id. \'*\' for all datasets in view
|
||||
*/
|
||||
dataset?: string;
|
||||
/**
|
||||
* Source dataset version id. Default is \'*\' (for all versions in dataset in the view) Version must belong to the selected dataset, and must be in the task\'s view[i]
|
||||
*/
|
||||
version?: string;
|
||||
}
|
||||
36
src/app/business-logic/model/reports/lastMetricsEvent.ts
Normal file
36
src/app/business-logic/model/reports/lastMetricsEvent.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface LastMetricsEvent {
|
||||
/**
|
||||
* Metric name
|
||||
*/
|
||||
metric?: string;
|
||||
/**
|
||||
* Variant name
|
||||
*/
|
||||
variant?: string;
|
||||
/**
|
||||
* Last value reported
|
||||
*/
|
||||
value?: number;
|
||||
/**
|
||||
* Minimum value reported
|
||||
*/
|
||||
min_value?: number;
|
||||
/**
|
||||
* Maximum value reported
|
||||
*/
|
||||
max_value?: number;
|
||||
}
|
||||
21
src/app/business-logic/model/reports/mapping.ts
Normal file
21
src/app/business-logic/model/reports/mapping.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { MappingRule } from '././mappingRule';
|
||||
|
||||
|
||||
export interface Mapping {
|
||||
/**
|
||||
* Rules list
|
||||
*/
|
||||
rules?: Array<MappingRule>;
|
||||
}
|
||||
22
src/app/business-logic/model/reports/mappingRule.ts
Normal file
22
src/app/business-logic/model/reports/mappingRule.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { LabelSource } from '././labelSource';
|
||||
|
||||
|
||||
export interface MappingRule {
|
||||
source?: LabelSource;
|
||||
/**
|
||||
* Target label name
|
||||
*/
|
||||
target?: string;
|
||||
}
|
||||
63
src/app/business-logic/model/reports/models.ts
Normal file
63
src/app/business-logic/model/reports/models.ts
Normal file
@@ -0,0 +1,63 @@
|
||||
export * from '././artifact';
|
||||
export * from '././artifactModeEnum';
|
||||
export * from '././artifactTypeData';
|
||||
export * from '././augmentation';
|
||||
export * from '././augmentationSet';
|
||||
export * from '././configurationItem';
|
||||
export * from '././debugImagesResponseTaskMetrics';
|
||||
export * from '././debugImagesResponseTaskMetricsIterations';
|
||||
export * from '././execution';
|
||||
export * from '././filterByRoiEnum';
|
||||
export * from '././filterLabelRule';
|
||||
export * from '././filterRule';
|
||||
export * from '././filtering';
|
||||
export * from '././input';
|
||||
export * from '././iteration';
|
||||
export * from '././jump';
|
||||
export * from '././labelSource';
|
||||
export * from '././lastMetricsEvent';
|
||||
export * from '././mapping';
|
||||
export * from '././mappingRule';
|
||||
export * from '././multiFieldPatternData';
|
||||
export * from '././output';
|
||||
export * from '././outputRoisEnum';
|
||||
export * from '././paramsItem';
|
||||
export * from '././plotsResponseTaskMetrics';
|
||||
export * from '././plotsResponseTaskMetricsIterations';
|
||||
export * from '././report';
|
||||
export * from '././reportStatusEnum';
|
||||
export * from '././reportsArchiveRequest';
|
||||
export * from '././reportsArchiveResponse';
|
||||
export * from '././reportsCreateRequest';
|
||||
export * from '././reportsCreateResponse';
|
||||
export * from '././reportsDeleteRequest';
|
||||
export * from '././reportsDeleteResponse';
|
||||
export * from '././reportsGetAllExRequest';
|
||||
export * from '././reportsGetAllExResponse';
|
||||
export * from '././reportsGetTaskDataRequest';
|
||||
export * from '././reportsGetTaskDataRequestDebugImages';
|
||||
export * from '././reportsGetTaskDataRequestPlots';
|
||||
export * from '././reportsGetTaskDataRequestScalarMetricsIterHistogram';
|
||||
export * from '././reportsGetTaskDataResponse';
|
||||
export * from '././reportsGetTaskDataResponseDebugImages';
|
||||
export * from '././reportsGetTaskDataResponsePlots';
|
||||
export * from '././reportsGetTaskDataResponseScalarMetricsIterHistogram';
|
||||
export * from '././reportsMoveRequest';
|
||||
export * from '././reportsMoveResponse';
|
||||
export * from '././reportsPublishRequest';
|
||||
export * from '././reportsPublishResponse';
|
||||
export * from '././reportsShareRequest';
|
||||
export * from '././reportsShareResponse';
|
||||
export * from '././reportsUnarchiveRequest';
|
||||
export * from '././reportsUnarchiveResponse';
|
||||
export * from '././reportsUpdateRequest';
|
||||
export * from '././reportsUpdateResponse';
|
||||
export * from '././scalarKeyEnum';
|
||||
export * from '././script';
|
||||
export * from '././task';
|
||||
export * from '././taskModelItem';
|
||||
export * from '././taskModels';
|
||||
export * from '././taskStatusEnum';
|
||||
export * from '././taskTypeEnum';
|
||||
export * from '././view';
|
||||
export * from '././viewEntry';
|
||||
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface MultiFieldPatternData {
|
||||
/**
|
||||
* Pattern string (regex)
|
||||
*/
|
||||
pattern?: string;
|
||||
/**
|
||||
* List of field names
|
||||
*/
|
||||
fields?: Array<string>;
|
||||
}
|
||||
34
src/app/business-logic/model/reports/output.ts
Normal file
34
src/app/business-logic/model/reports/output.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { View } from '././view';
|
||||
|
||||
|
||||
export interface Output {
|
||||
view?: View;
|
||||
/**
|
||||
* Storage id. This is where output files will be stored.
|
||||
*/
|
||||
destination?: string;
|
||||
/**
|
||||
* Model id.
|
||||
*/
|
||||
model?: string;
|
||||
/**
|
||||
* Task result. Values: \'success\', \'failure\'
|
||||
*/
|
||||
result?: string;
|
||||
/**
|
||||
* Last error text
|
||||
*/
|
||||
error?: string;
|
||||
}
|
||||
21
src/app/business-logic/model/reports/outputRoisEnum.ts
Normal file
21
src/app/business-logic/model/reports/outputRoisEnum.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export type OutputRoisEnum = 'all_in_frame' | 'only_filtered' | 'frame_per_roi';
|
||||
|
||||
export const OutputRoisEnum = {
|
||||
AllInFrame: 'all_in_frame' as OutputRoisEnum,
|
||||
OnlyFiltered: 'only_filtered' as OutputRoisEnum,
|
||||
FramePerRoi: 'frame_per_roi' as OutputRoisEnum
|
||||
}
|
||||
36
src/app/business-logic/model/reports/paramsItem.ts
Normal file
36
src/app/business-logic/model/reports/paramsItem.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ParamsItem {
|
||||
/**
|
||||
* Section that the parameter belongs to
|
||||
*/
|
||||
section?: string;
|
||||
/**
|
||||
* Name of the parameter. The combination of section and name should be unique
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Value of the parameter
|
||||
*/
|
||||
value?: string;
|
||||
/**
|
||||
* Type of the parameter. Optional
|
||||
*/
|
||||
type?: string;
|
||||
/**
|
||||
* The parameter description. Optional
|
||||
*/
|
||||
description?: string;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { PlotsResponseTaskMetricsIterations } from '././plotsResponseTaskMetricsIterations';
|
||||
|
||||
|
||||
export interface PlotsResponseTaskMetrics {
|
||||
/**
|
||||
* Task ID
|
||||
*/
|
||||
task?: string;
|
||||
iterations?: Array<PlotsResponseTaskMetricsIterations>;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface PlotsResponseTaskMetricsIterations {
|
||||
/**
|
||||
* Iteration number
|
||||
*/
|
||||
iter?: number;
|
||||
events?: Array<object>;
|
||||
}
|
||||
76
src/app/business-logic/model/reports/report.ts
Normal file
76
src/app/business-logic/model/reports/report.ts
Normal file
@@ -0,0 +1,76 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { ReportStatusEnum } from '././reportStatusEnum';
|
||||
|
||||
|
||||
export interface Report {
|
||||
/**
|
||||
* Report id
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* Report Name
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Associated user id
|
||||
*/
|
||||
user?: string;
|
||||
/**
|
||||
* Company ID
|
||||
*/
|
||||
company?: string;
|
||||
status?: ReportStatusEnum;
|
||||
/**
|
||||
* Free text comment
|
||||
*/
|
||||
comment?: string;
|
||||
/**
|
||||
* Report creation time (UTC)
|
||||
*/
|
||||
created?: string;
|
||||
/**
|
||||
* Project ID of the project to which this report is assigned
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* User-defined tags list
|
||||
*/
|
||||
tags?: Array<string>;
|
||||
/**
|
||||
* System tags list. This field is reserved for system use, please don\'t use it.
|
||||
*/
|
||||
system_tags?: Array<string>;
|
||||
/**
|
||||
* Last status change time
|
||||
*/
|
||||
status_changed?: string;
|
||||
/**
|
||||
* free text string representing info about the status
|
||||
*/
|
||||
status_message?: string;
|
||||
/**
|
||||
* Reason for last status change
|
||||
*/
|
||||
status_reason?: string;
|
||||
/**
|
||||
* Report publish time
|
||||
*/
|
||||
published?: string;
|
||||
/**
|
||||
* Last time this report was created, edited, changed
|
||||
*/
|
||||
last_update?: string;
|
||||
|
||||
report?: string;
|
||||
}
|
||||
20
src/app/business-logic/model/reports/reportStatusEnum.ts
Normal file
20
src/app/business-logic/model/reports/reportStatusEnum.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export type ReportStatusEnum = 'created' | 'published';
|
||||
|
||||
export const ReportStatusEnum = {
|
||||
Created: 'created' as ReportStatusEnum,
|
||||
Published: 'published' as ReportStatusEnum
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsArchiveRequest {
|
||||
/**
|
||||
* The ID of the report task to archive
|
||||
*/
|
||||
task: string;
|
||||
/**
|
||||
* The client message
|
||||
*/
|
||||
comment?: string;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsArchiveResponse {
|
||||
/**
|
||||
* Number of reports archived (0 or 1)
|
||||
*/
|
||||
archived?: number;
|
||||
}
|
||||
36
src/app/business-logic/model/reports/reportsCreateRequest.ts
Normal file
36
src/app/business-logic/model/reports/reportsCreateRequest.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsCreateRequest {
|
||||
/**
|
||||
* Report name. Unique within the company.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* User-defined tags list
|
||||
*/
|
||||
tags?: Array<string>;
|
||||
/**
|
||||
* Free text comment
|
||||
*/
|
||||
comment?: string;
|
||||
/**
|
||||
* Report template
|
||||
*/
|
||||
report?: string;
|
||||
/**
|
||||
* Project ID of the project to which this report is assigned Must exist[ab]
|
||||
*/
|
||||
project?: string;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsCreateResponse {
|
||||
/**
|
||||
* ID of the report
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* ID of the project that the report belongs to
|
||||
*/
|
||||
project_id?: string;
|
||||
}
|
||||
24
src/app/business-logic/model/reports/reportsDeleteRequest.ts
Normal file
24
src/app/business-logic/model/reports/reportsDeleteRequest.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsDeleteRequest {
|
||||
/**
|
||||
* The ID of the report task to delete
|
||||
*/
|
||||
task: string;
|
||||
/**
|
||||
* If not set then published or unarchived reports cannot be deleted
|
||||
*/
|
||||
force?: boolean;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsDeleteResponse {
|
||||
/**
|
||||
* Number of deleted reports (0 or 1)
|
||||
*/
|
||||
deleted?: number;
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { ReportStatusEnum } from '././reportStatusEnum';
|
||||
import { MultiFieldPatternData } from '././multiFieldPatternData';
|
||||
|
||||
|
||||
export interface ReportsGetAllExRequest {
|
||||
/**
|
||||
* List of IDs to filter by
|
||||
*/
|
||||
id?: Array<string>;
|
||||
/**
|
||||
* Get only reports whose name matches this pattern (python regular expression syntax)
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* List of user IDs used to filter results by the reports\'s creating user
|
||||
*/
|
||||
user?: Array<string>;
|
||||
/**
|
||||
* Page number, returns a specific page out of the resulting list of reports
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* Page size, specifies the number of results returned in each page (last page may contain fewer results)
|
||||
*/
|
||||
page_size?: number;
|
||||
/**
|
||||
* List of field names to order by. When search_text is used, \'@text_score\' can be used as a field representing the text score of returned documents. Use \'-\' prefix to specify descending order. Optional, recommended when using page
|
||||
*/
|
||||
order_by?: Array<string>;
|
||||
/**
|
||||
* List of report user-defined tags. Use \'-\' prefix to exclude tags
|
||||
*/
|
||||
tags?: Array<string>;
|
||||
/**
|
||||
* List of report system tags. Use \'-\' prefix to exclude system tags
|
||||
*/
|
||||
system_tags?: Array<string>;
|
||||
/**
|
||||
* List of report status.
|
||||
*/
|
||||
status?: Array<ReportStatusEnum>;
|
||||
/**
|
||||
* List of project IDs
|
||||
*/
|
||||
project?: Array<string>;
|
||||
/**
|
||||
* List of report field names (nesting is supported using \'.\'). If provided, this list defines the query\'s projection (only these fields will be returned for each result entry)
|
||||
*/
|
||||
only_fields?: Array<string>;
|
||||
/**
|
||||
* List of status changed constraint strings (utcformat, epoch) with an optional prefix modifier (>, >=, <, <=)
|
||||
*/
|
||||
status_changed?: Array<string>;
|
||||
/**
|
||||
* Free text search query
|
||||
*/
|
||||
search_text?: string;
|
||||
/**
|
||||
* Scroll ID returned from the previos calls to get_all
|
||||
*/
|
||||
scroll_id?: string;
|
||||
/**
|
||||
* If set then all the data received with this scroll will be requeried
|
||||
*/
|
||||
refresh_scroll?: boolean;
|
||||
/**
|
||||
* The number of tasks to retrieve
|
||||
*/
|
||||
size?: number;
|
||||
_all_?: MultiFieldPatternData;
|
||||
_any_?: MultiFieldPatternData;
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { Report } from '././report';
|
||||
|
||||
|
||||
export interface ReportsGetAllExResponse {
|
||||
/**
|
||||
* List of report tasks
|
||||
*/
|
||||
tasks?: Array<Report>;
|
||||
/**
|
||||
* Scroll ID that can be used with the next calls to get_all to retrieve more data
|
||||
*/
|
||||
scroll_id?: string;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsGetTagsResponse {
|
||||
/**
|
||||
* The list of unique tag values
|
||||
*/
|
||||
tags?: Array<string>;
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { ReportsGetTaskDataRequestPlots } from '././reportsGetTaskDataRequestPlots';
|
||||
import { MultiFieldPatternData } from '././multiFieldPatternData';
|
||||
import { ReportsGetTaskDataRequestScalarMetricsIterHistogram } from '././reportsGetTaskDataRequestScalarMetricsIterHistogram';
|
||||
import { TaskStatusEnum } from '././taskStatusEnum';
|
||||
import { ReportsGetTaskDataRequestDebugImages } from '././reportsGetTaskDataRequestDebugImages';
|
||||
|
||||
|
||||
export interface ReportsGetTaskDataRequest {
|
||||
/**
|
||||
* List of IDs to filter by
|
||||
*/
|
||||
id?: Array<string>;
|
||||
/**
|
||||
* Get only tasks whose name matches this pattern (python regular expression syntax)
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* List of user IDs used to filter results by the task\'s creating user
|
||||
*/
|
||||
user?: Array<string>;
|
||||
/**
|
||||
* The number of tasks to retrieve
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* List of field names to order by. When search_text is used, \'@text_score\' can be used as a field representing the text score of returned documents. Use \'-\' prefix to specify descending order. Optional, recommended when using page
|
||||
*/
|
||||
order_by?: Array<string>;
|
||||
/**
|
||||
* List of task types. One or more of: \'import\', \'annotation\', \'training\' or \'testing\' (case insensitive)
|
||||
*/
|
||||
type?: Array<string>;
|
||||
/**
|
||||
* List of task user-defined tags. Use \'-\' prefix to exclude tags
|
||||
*/
|
||||
tags?: Array<string>;
|
||||
/**
|
||||
* List of task system tags. Use \'-\' prefix to exclude system tags
|
||||
*/
|
||||
system_tags?: Array<string>;
|
||||
/**
|
||||
* List of task status.
|
||||
*/
|
||||
status?: Array<TaskStatusEnum>;
|
||||
/**
|
||||
* List of project IDs
|
||||
*/
|
||||
project?: Array<string>;
|
||||
/**
|
||||
* List of task field names (nesting is supported using \'.\', e.g. execution.model_labels). If provided, this list defines the query\'s projection (only these fields will be returned for each result entry)
|
||||
*/
|
||||
only_fields?: Array<string>;
|
||||
/**
|
||||
* Parent ID
|
||||
*/
|
||||
parent?: string;
|
||||
/**
|
||||
* List of status changed constraint strings (utcformat, epoch) with an optional prefix modifier (>, >=, <, <=)
|
||||
*/
|
||||
status_changed?: Array<string>;
|
||||
/**
|
||||
* Free text search query
|
||||
*/
|
||||
search_text?: string;
|
||||
_all_?: MultiFieldPatternData;
|
||||
_any_?: MultiFieldPatternData;
|
||||
/**
|
||||
* List of input dataset IDs
|
||||
*/
|
||||
input_view_entries_dataset?: Array<string>;
|
||||
/**
|
||||
* List of input dataset version IDs
|
||||
*/
|
||||
input_view_entries_version?: Array<string>;
|
||||
/**
|
||||
* If set to \'true\' then hidden tasks are included in the search results
|
||||
*/
|
||||
search_hidden?: boolean;
|
||||
/**
|
||||
* If set to \'true\' and project field is set then tasks from the subprojects are searched too
|
||||
*/
|
||||
include_subprojects?: boolean;
|
||||
plots?: ReportsGetTaskDataRequestPlots;
|
||||
debug_images?: ReportsGetTaskDataRequestDebugImages;
|
||||
scalar_metrics_iter_histogram?: ReportsGetTaskDataRequestScalarMetricsIterHistogram;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsGetTaskDataRequestDebugImages {
|
||||
/**
|
||||
* Max number of latest iterations for which to return debug images
|
||||
*/
|
||||
iters?: number;
|
||||
/**
|
||||
* List of metrics and variants
|
||||
*/
|
||||
metrics?: Array<object>;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsGetTaskDataRequestPlots {
|
||||
/**
|
||||
* Max number of latest iterations for which to return plots
|
||||
*/
|
||||
iters?: number;
|
||||
/**
|
||||
* List of metrics and variants
|
||||
*/
|
||||
metrics?: Array<object>;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { ScalarKeyEnum } from '././scalarKeyEnum';
|
||||
|
||||
|
||||
export interface ReportsGetTaskDataRequestScalarMetricsIterHistogram {
|
||||
/**
|
||||
* The amount of histogram points to return (0 to return all the points). Optional, the default value is 6000.
|
||||
*/
|
||||
samples?: number;
|
||||
key?: ScalarKeyEnum;
|
||||
/**
|
||||
* List of metrics and variants
|
||||
*/
|
||||
metrics?: Array<object>;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { Task } from '././task';
|
||||
import { DebugImagesResponseTaskMetrics } from '././debugImagesResponseTaskMetrics';
|
||||
|
||||
|
||||
export interface ReportsGetTaskDataResponse {
|
||||
/**
|
||||
* List of tasks
|
||||
*/
|
||||
tasks?: Array<Task>;
|
||||
/**
|
||||
* Plot events grouped by tasks and iterations
|
||||
*/
|
||||
plots?: object;
|
||||
/**
|
||||
* Debug image events grouped by tasks and iterations
|
||||
*/
|
||||
debug_images?: Array<DebugImagesResponseTaskMetrics>;
|
||||
scalar_metrics_iter_histogram?: object;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { DebugImagesResponseTaskMetrics } from '././debugImagesResponseTaskMetrics';
|
||||
|
||||
|
||||
export interface ReportsGetTaskDataResponseDebugImages {
|
||||
/**
|
||||
* Debug image events grouped by tasks and iterations
|
||||
*/
|
||||
metrics?: Array<DebugImagesResponseTaskMetrics>;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { PlotsResponseTaskMetrics } from '././plotsResponseTaskMetrics';
|
||||
|
||||
|
||||
export interface ReportsGetTaskDataResponsePlots {
|
||||
/**
|
||||
* Plot events grouped by tasks and iterations
|
||||
*/
|
||||
metrics?: Array<PlotsResponseTaskMetrics>;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { DebugImagesResponseTaskMetrics } from '././debugImagesResponseTaskMetrics';
|
||||
|
||||
|
||||
export interface ReportsGetTaskDataResponseScalarMetricsIterHistogram {
|
||||
/**
|
||||
* Scalar metric histograms grouped by tasks
|
||||
*/
|
||||
histograms?: Array<DebugImagesResponseTaskMetrics>;
|
||||
}
|
||||
28
src/app/business-logic/model/reports/reportsMoveRequest.ts
Normal file
28
src/app/business-logic/model/reports/reportsMoveRequest.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsMoveRequest {
|
||||
/**
|
||||
* ID of the report to move
|
||||
*/
|
||||
task: string;
|
||||
/**
|
||||
* Target project ID. If not provided, `project_name` must be provided.
|
||||
*/
|
||||
project?: string;
|
||||
/**
|
||||
* Target project name. If provided and a project with this name does not exist, a new project will be created. If not provided, `project` must be provided.
|
||||
*/
|
||||
project_name?: string;
|
||||
}
|
||||
20
src/app/business-logic/model/reports/reportsMoveResponse.ts
Normal file
20
src/app/business-logic/model/reports/reportsMoveResponse.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsMoveResponse {
|
||||
/**
|
||||
* The ID of the target project
|
||||
*/
|
||||
project_id?: string;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsPublishRequest {
|
||||
/**
|
||||
* The ID of the report task to publish
|
||||
*/
|
||||
task: string;
|
||||
/**
|
||||
* The client message
|
||||
*/
|
||||
comment?: string;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsPublishResponse {
|
||||
/**
|
||||
* Number of reports updated (0 or 1)
|
||||
*/
|
||||
updated?: number;
|
||||
/**
|
||||
* Updated fields names and values
|
||||
*/
|
||||
fields?: object;
|
||||
}
|
||||
24
src/app/business-logic/model/reports/reportsShareRequest.ts
Normal file
24
src/app/business-logic/model/reports/reportsShareRequest.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsShareRequest {
|
||||
/**
|
||||
* The ID of the report task to share/unshare
|
||||
*/
|
||||
task: string;
|
||||
/**
|
||||
* If set to \'true\' then the report will be shared. Otherwise unshared.
|
||||
*/
|
||||
share?: boolean;
|
||||
}
|
||||
20
src/app/business-logic/model/reports/reportsShareResponse.ts
Normal file
20
src/app/business-logic/model/reports/reportsShareResponse.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsShareResponse {
|
||||
/**
|
||||
* Number of changed reports (0 or 1)
|
||||
*/
|
||||
changed?: number;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsUnarchiveRequest {
|
||||
/**
|
||||
* The ID of the report task to unarchive
|
||||
*/
|
||||
task: string;
|
||||
/**
|
||||
* The client message
|
||||
*/
|
||||
comment?: string;
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsUnarchiveResponse {
|
||||
/**
|
||||
* Number of reports unarchived (0 or 1)
|
||||
*/
|
||||
unarchived?: number;
|
||||
}
|
||||
36
src/app/business-logic/model/reports/reportsUpdateRequest.ts
Normal file
36
src/app/business-logic/model/reports/reportsUpdateRequest.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsUpdateRequest {
|
||||
/**
|
||||
* The ID of the report task to update
|
||||
*/
|
||||
task: string;
|
||||
/**
|
||||
* Report name. Unique within the company.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* User-defined tags list
|
||||
*/
|
||||
tags?: Array<string>;
|
||||
/**
|
||||
* Free text comment
|
||||
*/
|
||||
comment?: string;
|
||||
/**
|
||||
* Report template
|
||||
*/
|
||||
report?: string;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ReportsUpdateResponse {
|
||||
/**
|
||||
* Number of reports updated (0 or 1)
|
||||
*/
|
||||
updated?: number;
|
||||
/**
|
||||
* Updated fields names and values
|
||||
*/
|
||||
fields?: object;
|
||||
}
|
||||
21
src/app/business-logic/model/reports/scalarKeyEnum.ts
Normal file
21
src/app/business-logic/model/reports/scalarKeyEnum.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export type ScalarKeyEnum = 'iter' | 'timestamp' | 'iso_time';
|
||||
|
||||
export const ScalarKeyEnum = {
|
||||
Iter: 'iter' as ScalarKeyEnum,
|
||||
Timestamp: 'timestamp' as ScalarKeyEnum,
|
||||
IsoTime: 'iso_time' as ScalarKeyEnum
|
||||
}
|
||||
52
src/app/business-logic/model/reports/script.ts
Normal file
52
src/app/business-logic/model/reports/script.ts
Normal file
@@ -0,0 +1,52 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface Script {
|
||||
/**
|
||||
* Binary to use when running the script
|
||||
*/
|
||||
binary?: string;
|
||||
/**
|
||||
* Name of the repository where the script is located
|
||||
*/
|
||||
repository?: string;
|
||||
/**
|
||||
* Repository tag
|
||||
*/
|
||||
tag?: string;
|
||||
/**
|
||||
* Repository branch id If not provided and tag not provided, default repository branch is used.
|
||||
*/
|
||||
branch?: string;
|
||||
/**
|
||||
* Version (changeset) number. Optional (default is head version) Unused if tag is provided.
|
||||
*/
|
||||
version_num?: string;
|
||||
/**
|
||||
* Path to execute within the repository
|
||||
*/
|
||||
entry_point?: string;
|
||||
/**
|
||||
* Path to the folder from which to run the script Default - root folder of repository
|
||||
*/
|
||||
working_dir?: string;
|
||||
/**
|
||||
* A JSON object containing requirements strings by key
|
||||
*/
|
||||
requirements?: object;
|
||||
/**
|
||||
* Uncommitted changes found in the repository when task was run
|
||||
*/
|
||||
diff?: string;
|
||||
}
|
||||
141
src/app/business-logic/model/reports/task.ts
Normal file
141
src/app/business-logic/model/reports/task.ts
Normal file
@@ -0,0 +1,141 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { Script } from '././script';
|
||||
import { ConfigurationItem } from '././configurationItem';
|
||||
import { Input } from '././input';
|
||||
import { ParamsItem } from '././paramsItem';
|
||||
import { Execution } from '././execution';
|
||||
import { TaskModels } from '././taskModels';
|
||||
import { Output } from '././output';
|
||||
import { TaskStatusEnum } from '././taskStatusEnum';
|
||||
import { LastMetricsEvent } from '././lastMetricsEvent';
|
||||
import { TaskTypeEnum } from '././taskTypeEnum';
|
||||
|
||||
|
||||
export interface Task {
|
||||
/**
|
||||
* Task id
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* Task Name
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Associated user id
|
||||
*/
|
||||
user?: string;
|
||||
/**
|
||||
* Company ID
|
||||
*/
|
||||
company?: string;
|
||||
type?: TaskTypeEnum;
|
||||
status?: TaskStatusEnum;
|
||||
/**
|
||||
* Free text comment
|
||||
*/
|
||||
comment?: string;
|
||||
/**
|
||||
* Task creation time (UTC)
|
||||
*/
|
||||
created?: string;
|
||||
/**
|
||||
* Task start time (UTC)
|
||||
*/
|
||||
started?: string;
|
||||
/**
|
||||
* Task end time (UTC)
|
||||
*/
|
||||
completed?: string;
|
||||
/**
|
||||
* Task duration time (seconds)
|
||||
*/
|
||||
active_duration?: number;
|
||||
/**
|
||||
* Parent task id
|
||||
*/
|
||||
parent?: string;
|
||||
/**
|
||||
* Project ID of the project to which this task is assigned
|
||||
*/
|
||||
project?: string;
|
||||
input?: Input;
|
||||
output?: Output;
|
||||
execution?: Execution;
|
||||
/**
|
||||
* Docker container parameters
|
||||
*/
|
||||
container?: object;
|
||||
models?: TaskModels;
|
||||
script?: Script;
|
||||
/**
|
||||
* User-defined tags list
|
||||
*/
|
||||
tags?: Array<string>;
|
||||
/**
|
||||
* System tags list. This field is reserved for system use, please don\'t use it.
|
||||
*/
|
||||
system_tags?: Array<string>;
|
||||
/**
|
||||
* Last status change time
|
||||
*/
|
||||
status_changed?: string;
|
||||
/**
|
||||
* free text string representing info about the status
|
||||
*/
|
||||
status_message?: string;
|
||||
/**
|
||||
* Reason for last status change
|
||||
*/
|
||||
status_reason?: string;
|
||||
/**
|
||||
* Task publish time
|
||||
*/
|
||||
published?: string;
|
||||
/**
|
||||
* ID of last worker that handled the task
|
||||
*/
|
||||
last_worker?: string;
|
||||
/**
|
||||
* Last time a worker reported while working on this task
|
||||
*/
|
||||
last_worker_report?: string;
|
||||
/**
|
||||
* Last time this task was created, edited, changed or events for this task were reported
|
||||
*/
|
||||
last_update?: string;
|
||||
/**
|
||||
* Last time any update was done to the task
|
||||
*/
|
||||
last_change?: string;
|
||||
/**
|
||||
* Last iteration reported for this task
|
||||
*/
|
||||
last_iteration?: number;
|
||||
/**
|
||||
* Last metric variants (hash to events), one for each metric hash
|
||||
*/
|
||||
last_metrics?: { [key: string]: { [key: string]: LastMetricsEvent; }; };
|
||||
/**
|
||||
* Task hyper params per section
|
||||
*/
|
||||
hyperparams?: { [key: string]: { [key: string]: ParamsItem; }; };
|
||||
/**
|
||||
* Task configuration params
|
||||
*/
|
||||
configuration?: { [key: string]: ConfigurationItem; };
|
||||
/**
|
||||
* Task runtime mapping
|
||||
*/
|
||||
runtime?: object;
|
||||
}
|
||||
24
src/app/business-logic/model/reports/taskModelItem.ts
Normal file
24
src/app/business-logic/model/reports/taskModelItem.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface TaskModelItem {
|
||||
/**
|
||||
* The task model name
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The model ID
|
||||
*/
|
||||
model: string;
|
||||
}
|
||||
25
src/app/business-logic/model/reports/taskModels.ts
Normal file
25
src/app/business-logic/model/reports/taskModels.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { TaskModelItem } from '././taskModelItem';
|
||||
|
||||
|
||||
export interface TaskModels {
|
||||
/**
|
||||
* The list of task input models
|
||||
*/
|
||||
input?: Array<TaskModelItem>;
|
||||
/**
|
||||
* The list of task output models
|
||||
*/
|
||||
output?: Array<TaskModelItem>;
|
||||
}
|
||||
28
src/app/business-logic/model/reports/taskStatusEnum.ts
Normal file
28
src/app/business-logic/model/reports/taskStatusEnum.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export type TaskStatusEnum = 'created' | 'queued' | 'in_progress' | 'stopped' | 'published' | 'publishing' | 'closed' | 'failed' | 'completed' | 'unknown';
|
||||
|
||||
export const TaskStatusEnum = {
|
||||
Created: 'created' as TaskStatusEnum,
|
||||
Queued: 'queued' as TaskStatusEnum,
|
||||
InProgress: 'in_progress' as TaskStatusEnum,
|
||||
Stopped: 'stopped' as TaskStatusEnum,
|
||||
Published: 'published' as TaskStatusEnum,
|
||||
Publishing: 'publishing' as TaskStatusEnum,
|
||||
Closed: 'closed' as TaskStatusEnum,
|
||||
Failed: 'failed' as TaskStatusEnum,
|
||||
Completed: 'completed' as TaskStatusEnum,
|
||||
Unknown: 'unknown' as TaskStatusEnum
|
||||
}
|
||||
32
src/app/business-logic/model/reports/taskTypeEnum.ts
Normal file
32
src/app/business-logic/model/reports/taskTypeEnum.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export type TaskTypeEnum = 'dataset_import' | 'annotation' | 'annotation_manual' | 'training' | 'testing' | 'inference' | 'data_processing' | 'application' | 'monitor' | 'controller' | 'optimizer' | 'service' | 'qc' | 'custom';
|
||||
|
||||
export const TaskTypeEnum = {
|
||||
DatasetImport: 'dataset_import' as TaskTypeEnum,
|
||||
Annotation: 'annotation' as TaskTypeEnum,
|
||||
AnnotationManual: 'annotation_manual' as TaskTypeEnum,
|
||||
Training: 'training' as TaskTypeEnum,
|
||||
Testing: 'testing' as TaskTypeEnum,
|
||||
Inference: 'inference' as TaskTypeEnum,
|
||||
DataProcessing: 'data_processing' as TaskTypeEnum,
|
||||
Application: 'application' as TaskTypeEnum,
|
||||
Monitor: 'monitor' as TaskTypeEnum,
|
||||
Controller: 'controller' as TaskTypeEnum,
|
||||
Optimizer: 'optimizer' as TaskTypeEnum,
|
||||
Service: 'service' as TaskTypeEnum,
|
||||
Qc: 'qc' as TaskTypeEnum,
|
||||
Custom: 'custom' as TaskTypeEnum
|
||||
}
|
||||
21
src/app/business-logic/model/reports/view.ts
Normal file
21
src/app/business-logic/model/reports/view.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { ViewEntry } from '././viewEntry';
|
||||
|
||||
|
||||
export interface View {
|
||||
/**
|
||||
* List of view entries. All tasks must have at least one view.
|
||||
*/
|
||||
entries?: Array<ViewEntry>;
|
||||
}
|
||||
28
src/app/business-logic/model/reports/viewEntry.ts
Normal file
28
src/app/business-logic/model/reports/viewEntry.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* reports
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
* https://github.com/swagger-api/swagger-codegen.git
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
export interface ViewEntry {
|
||||
/**
|
||||
* Version id of a version belonging to the dataset
|
||||
*/
|
||||
version?: string;
|
||||
/**
|
||||
* Existing Dataset id
|
||||
*/
|
||||
dataset?: string;
|
||||
/**
|
||||
* Version ID to merge with
|
||||
*/
|
||||
merge_with?: string;
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
* tasks
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 2.14
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
@@ -40,11 +40,11 @@ export interface TasksGetAllExRequest {
|
||||
*/
|
||||
page_size?: number;
|
||||
/**
|
||||
* List of field names to order by. When search_text is used, \'@text_score\' can be used as a field representing the text score of returned documents. Use \'-\' prefix to specify descending order. Optional, recommended when using page. If the first order field is a hyper parameter or metric then string values are ordered according to numeric ordering rules where applicable
|
||||
* List of field names to order by. When search_text is used, \'@text_score\' can be used as a field representing the text score of returned documents. Use \'-\' prefix to specify descending order. Optional, recommended when using page
|
||||
*/
|
||||
order_by?: Array<string>;
|
||||
/**
|
||||
* List of task types. One or more of: \'import\', \'annotation\', \'training\' or \'testing\' (case insensitive)
|
||||
* List of task types. One or more of: \'training\', \'testing\', \'import\', \'annotation\', \'inference\', \'data_processing\', \'application\', \'monitor\', \'controller\', \'optimizer\', \'service\', \'qc\' or \'custom\' (case insensitive)
|
||||
*/
|
||||
type?: Array<string>;
|
||||
/**
|
||||
@@ -66,7 +66,7 @@ export interface TasksGetAllExRequest {
|
||||
/**
|
||||
* Parent ID
|
||||
*/
|
||||
parent?: string[];
|
||||
parent?: string;
|
||||
/**
|
||||
* List of status changed constraint strings (utcformat, epoch) with an optional prefix modifier (>, >=, <, <=)
|
||||
*/
|
||||
@@ -97,4 +97,8 @@ export interface TasksGetAllExRequest {
|
||||
* The number of tasks to retrieve
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* Allow public tasks to be returned in the results
|
||||
*/
|
||||
allow_public?: boolean;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* tasks
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* OpenAPI spec version: 2.14
|
||||
* OpenAPI spec version: 999.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by the swagger code generator program.
|
||||
@@ -40,11 +40,11 @@ export interface TasksGetByIdExRequest {
|
||||
*/
|
||||
page_size?: number;
|
||||
/**
|
||||
* List of field names to order by. When search_text is used, \'@text_score\' can be used as a field representing the text score of returned documents. Use \'-\' prefix to specify descending order. Optional, recommended when using page. If the first order field is a hyper parameter or metric then string values are ordered according to numeric ordering rules where applicable
|
||||
* List of field names to order by. When search_text is used, \'@text_score\' can be used as a field representing the text score of returned documents. Use \'-\' prefix to specify descending order. Optional, recommended when using page
|
||||
*/
|
||||
order_by?: Array<string>;
|
||||
/**
|
||||
* List of task types. One or more of: \'import\', \'annotation\', \'training\' or \'testing\' (case insensitive)
|
||||
* List of task types. One or more of: \'training\', \'testing\', \'import\', \'annotation\', \'inference\', \'data_processing\', \'application\', \'monitor\', \'controller\', \'optimizer\', \'service\', \'qc\' or \'custom\' (case insensitive)
|
||||
*/
|
||||
type?: Array<string>;
|
||||
/**
|
||||
@@ -77,4 +77,8 @@ export interface TasksGetByIdExRequest {
|
||||
search_text?: string;
|
||||
_all_?: MultiFieldPatternData;
|
||||
_any_?: MultiFieldPatternData;
|
||||
/**
|
||||
* List of input dataset version IDs
|
||||
*/
|
||||
input_view_entries_version?: Array<string>;
|
||||
}
|
||||
|
||||
@@ -12,10 +12,11 @@
|
||||
|
||||
|
||||
|
||||
export type FeaturesEnum = 'experiments' | 'queues' | 'pipelines';
|
||||
export type FeaturesEnum = 'experiments' | 'queues' | 'pipelines' | 'reports';
|
||||
|
||||
export const FeaturesEnum = {
|
||||
Experiments: 'experiments' as FeaturesEnum,
|
||||
Queues: 'queues' as FeaturesEnum,
|
||||
Pipelines: 'pipelines' as FeaturesEnum
|
||||
Pipelines: 'pipelines' as FeaturesEnum,
|
||||
Reports: 'reports' as FeaturesEnum
|
||||
};
|
||||
|
||||
@@ -9,7 +9,7 @@ import {RouterEffects} from '@common/core/effects/router.effects';
|
||||
import {CommonUserEffects} from '@common/core/effects/users.effects';
|
||||
import {createUserPrefReducer} from '@common/core/meta-reducers/user-pref-reducer';
|
||||
import {messagesReducer} from '@common/core/reducers/messages-reducer';
|
||||
import {projectsReducer} from '@common/core/reducers/projects.reducer';
|
||||
import {projectsReducer, RootProjects} from '@common/core/reducers/projects.reducer';
|
||||
import {routerReducer} from '@common/core/reducers/router-reducer';
|
||||
import {SmSyncStateSelectorService} from '@common/core/services/sync-state-selector.service';
|
||||
import {EXPERIMENTS_COMPARE_METRICS_CHARTS_} from '@common/experiments-compare/actions/experiments-compare-charts.actions';
|
||||
@@ -62,6 +62,8 @@ const syncedKeys = [
|
||||
'datasets.selected',
|
||||
'projects.selectedProjectId',
|
||||
'projects.selectedProject',
|
||||
'rootProjects.showHidden',
|
||||
'rootProjects.hideExamples',
|
||||
'views.availableUpdates',
|
||||
'views.showSurvey',
|
||||
'views.neverShowPopupAgain'
|
||||
@@ -96,7 +98,7 @@ const userPrefMetaFactory = (userPreferences: UserPreferences): MetaReducer<any>
|
||||
(reducer: ActionReducer<any>) =>
|
||||
createUserPrefReducer('users', ['activeWorkspace', 'showOnlyUserWork'], [USERS_PREFIX], userPreferences, reducer),
|
||||
(reducer: ActionReducer<any>) =>
|
||||
createUserPrefReducer('rootProjects', ['tagsColors', 'graphVariant', 'showHidden'], [ROOT_PROJECTS_PREFIX], userPreferences, reducer),
|
||||
createUserPrefReducer('rootProjects', ['tagsColors', 'graphVariant', 'showHidden', 'hideExamples', 'aa'] as (keyof RootProjects)[], [ROOT_PROJECTS_PREFIX], userPreferences, reducer),
|
||||
(reducer: ActionReducer<any>) =>
|
||||
createUserPrefReducer('views', ['autoRefresh', 'neverShowPopupAgain', 'redactedArguments', 'hideRedactedArguments'], [VIEW_PREFIX], userPreferences, reducer),
|
||||
localStorageReducer,
|
||||
|
||||
@@ -63,6 +63,8 @@ export class ProjectsEffects {
|
||||
mergeMap(({projects}) => [
|
||||
actions.setSelectedProject({project: projects[0]}),
|
||||
actions.getProjectUsers(action),
|
||||
actions.getTags(),
|
||||
actions.getCompanyTags(),
|
||||
deactivateLoader(action.type),
|
||||
]
|
||||
),
|
||||
|
||||
@@ -5,7 +5,8 @@ export const activeSearchLink = {
|
||||
experiments: 'experiments' as ActiveSearchLink,
|
||||
models: 'models' as ActiveSearchLink,
|
||||
pipelines: 'pipelines' as ActiveSearchLink,
|
||||
openDatasets: 'datasets' as ActiveSearchLink
|
||||
openDatasets: 'datasets' as ActiveSearchLink,
|
||||
reports: 'reports' as ActiveSearchLink
|
||||
};
|
||||
|
||||
export const activeLinksList = [
|
||||
@@ -28,5 +29,9 @@ export const activeLinksList = [
|
||||
{
|
||||
label: 'PIPELINES',
|
||||
name: activeSearchLink.pipelines,
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'REPORTS',
|
||||
name: activeSearchLink.reports,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -6,7 +6,7 @@ import {getEntityStatQuery} from '@common/dashboard-search/dashboard-search.effe
|
||||
import {ApiOrganizationService} from '~/business-logic/api-services/organization.service';
|
||||
import {Store} from '@ngrx/store';
|
||||
import {selectCurrentUser, selectShowOnlyUserWork} from '@common/core/reducers/users-reducer';
|
||||
import {selectShowHidden} from '@common/core/reducers/projects.reducer';
|
||||
import {selectHideExamples, selectShowHidden} from '@common/core/reducers/projects.reducer';
|
||||
|
||||
|
||||
@Injectable()
|
||||
@@ -14,8 +14,8 @@ export class DashboardSearchEffects {
|
||||
constructor(
|
||||
private actions: Actions,
|
||||
private store: Store,
|
||||
public organizationApi: ApiOrganizationService) {
|
||||
}
|
||||
private organizationApi: ApiOrganizationService,
|
||||
) {}
|
||||
|
||||
getResultsCount = createEffect(() => this.actions.pipe(
|
||||
ofType(getResultsCount),
|
||||
@@ -23,12 +23,15 @@ export class DashboardSearchEffects {
|
||||
this.store.select(selectShowOnlyUserWork),
|
||||
this.store.select(selectCurrentUser),
|
||||
this.store.select(selectShowHidden),
|
||||
this.store.select(selectHideExamples),
|
||||
),
|
||||
switchMap(([action, userFocus, user, hidden]) => this.organizationApi.organizationGetEntitiesCount({
|
||||
switchMap(([action, userFocus, user, hidden, hideExamples]) => this.organizationApi.organizationGetEntitiesCount({
|
||||
/* eslint-disable @typescript-eslint/naming-convention */
|
||||
...(userFocus && {active_users: [user.id]}),
|
||||
...(hidden && {search_hidden: true}),
|
||||
...getEntityStatQuery(action)
|
||||
...(hideExamples && {allow_public: false}),
|
||||
...getEntityStatQuery(action, hidden)
|
||||
/* eslint-enable @typescript-eslint/naming-convention */
|
||||
})),
|
||||
map(({tasks: experiments, ...rest}) =>
|
||||
setResultsCount({counts: {...rest, experiments}}))
|
||||
|
||||
@@ -8,12 +8,14 @@ import {DashboardSearchEffects} from '~/features/dashboard/dashboard-search/dash
|
||||
import {ProjectsSharedModule} from '../../projects/shared/projects-shared.module';
|
||||
import {SharedModule} from '~/shared/shared.module';
|
||||
import {dashboardSearchReducer} from '@common/dashboard-search/dashboard-search.reducer';
|
||||
import {ReportsSharedModule} from '../../../webapp-common/reports/reports-shared.module';
|
||||
|
||||
@NgModule({
|
||||
imports : [
|
||||
CommonModule,
|
||||
SMSharedModule,
|
||||
ProjectsSharedModule,
|
||||
ReportsSharedModule,
|
||||
StoreModule.forFeature('search', dashboardSearchReducer),
|
||||
EffectsModule.forFeature([DashboardSearchEffects, commonDashboardSearchEffects]),
|
||||
SharedModule
|
||||
|
||||
@@ -11,29 +11,8 @@
|
||||
.recent {
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.search-bar {
|
||||
padding-top: 16px;
|
||||
padding-bottom: 16px;
|
||||
margin-left: 64px;
|
||||
background-color: $blue-900;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
|
||||
::ng-deep sm-search {
|
||||
input {
|
||||
font-size: 16px;
|
||||
|
||||
&::-webkit-input-placeholder {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
&::-moz-placeholder {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
max-width: 2400px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.clear-search {
|
||||
@@ -45,12 +24,11 @@
|
||||
.view-all {
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
color: $blue-400;
|
||||
}
|
||||
|
||||
sm-dashboard-experiments {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
margin: 24px auto 0;
|
||||
height: calc(100% - 356px);
|
||||
}
|
||||
|
||||
|
||||
@@ -16,22 +16,24 @@ import {ProjectsSharedModule} from '../projects/shared/projects-shared.module';
|
||||
import {DashboardSearchBaseComponent} from '@common/dashboard/dashboard-search.component.base';
|
||||
import {DatasetsSharedModule} from '~/features/datasets/shared/datasets-shared.module';
|
||||
import {ScrollingModule} from '@angular/cdk/scrolling';
|
||||
import {ReportsSharedModule} from '../../webapp-common/reports/reports-shared.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
ProjectsSharedModule,
|
||||
ProjectDialogModule,
|
||||
SMSharedModule,
|
||||
ExperimentSharedModule,
|
||||
DashboardRoutingModule,
|
||||
StoreModule.forFeature('dashboard', commonDashboardReducer),
|
||||
CommonDashboardModule,
|
||||
SharedModule,
|
||||
DashboardSearchModule,
|
||||
DatasetsSharedModule,
|
||||
ScrollingModule
|
||||
],
|
||||
imports: [
|
||||
CommonModule,
|
||||
ProjectsSharedModule,
|
||||
ProjectDialogModule,
|
||||
SMSharedModule,
|
||||
ExperimentSharedModule,
|
||||
DashboardRoutingModule,
|
||||
StoreModule.forFeature('dashboard', commonDashboardReducer),
|
||||
CommonDashboardModule,
|
||||
SharedModule,
|
||||
DashboardSearchModule,
|
||||
DatasetsSharedModule,
|
||||
ScrollingModule,
|
||||
ReportsSharedModule
|
||||
],
|
||||
declarations : [DashboardComponent, GettingStartedCardComponent, DashboardSearchBaseComponent, SearchResultsPageComponent]
|
||||
})
|
||||
export class DashboardModule {
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
activeLink === searchPages.models ? ModelsTemplate :
|
||||
activeLink === searchPages.openDatasets ? openDatasetTemplate :
|
||||
activeLink === searchPages.pipelines ? PipelineTemplate :
|
||||
activeLink === searchPages.reports ? ReportsTemplate :
|
||||
ProjectTemplate"
|
||||
[items]="getResults()"
|
||||
[cardHeight]="getCardHeight()"
|
||||
@@ -61,5 +62,12 @@
|
||||
(projectCardClicked)="openDatasetClicked($event)"
|
||||
></sm-simple-dataset-card>
|
||||
</ng-template>
|
||||
<ng-template #ReportsTemplate let-report>
|
||||
<sm-report-card
|
||||
[hideMenu]="true"
|
||||
[report]="report"
|
||||
(cardClicked)="reportClicked($event)"
|
||||
></sm-report-card>
|
||||
</ng-template>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -4,6 +4,7 @@ import {Task} from '~/business-logic/model/tasks/task';
|
||||
import {ITask} from '~/business-logic/model/al-task';
|
||||
import {Model} from '~/business-logic/model/models/model';
|
||||
import {activeLinksList, ActiveSearchLink, activeSearchLink} from '~/features/dashboard-search/dashboard-search.consts';
|
||||
import {IReport} from '../../../../webapp-common/reports/reports.consts';
|
||||
|
||||
@Component({
|
||||
selector: 'sm-search-results-page',
|
||||
@@ -19,6 +20,7 @@ export class SearchResultsPageComponent {
|
||||
@Input() modelsList: Array<Model> = [];
|
||||
@Input() pipelinesList: Array<Project> = [];
|
||||
@Input() datasetsList: Array<Project> = [];
|
||||
@Input() reportsList: Array<IReport> = [];
|
||||
@Input() activeLink: ActiveSearchLink;
|
||||
@Input() resultsCount: Map<ActiveSearchLink, number>;
|
||||
|
||||
@@ -27,6 +29,7 @@ export class SearchResultsPageComponent {
|
||||
@Output() experimentSelected = new EventEmitter<ITask>();
|
||||
@Output() modelSelected = new EventEmitter<Model>();
|
||||
@Output() pipelineSelected = new EventEmitter<Project>();
|
||||
@Output() reportSelected = new EventEmitter<IReport>();
|
||||
@Output() openDatasetSelected = new EventEmitter<Project>();
|
||||
@Output() loadMoreClicked = new EventEmitter();
|
||||
|
||||
@@ -50,6 +53,10 @@ export class SearchResultsPageComponent {
|
||||
this.openDatasetSelected.emit(project);
|
||||
}
|
||||
|
||||
reportClicked(report: IReport) {
|
||||
this.reportSelected.emit(report);
|
||||
}
|
||||
|
||||
getResults = () => this[`${this.activeLink}List`];
|
||||
|
||||
getCardHeight() {
|
||||
|
||||
@@ -4,9 +4,10 @@ import {experimentInfoReducer, ExperimentInfoState, initialState as infoInitialS
|
||||
import {experimentOutputReducer, ExperimentOutputState, initialState as outputInitialState} from './experiment-output.reducer';
|
||||
import {IExperimentInfo} from '../shared/experiment-info.model';
|
||||
import {TaskStatusEnum} from '~/business-logic/model/tasks/taskStatusEnum';
|
||||
import {isReadOnly, isSharedAndNotOwner} from '@common/shared/utils/shared-utils';
|
||||
import {selectSelectedModel} from '@common/models/reducers';
|
||||
import {selectCurrentUser} from '@common/core/reducers/users-reducer';
|
||||
import {isReadOnly} from '@common/shared/utils/is-read-only';
|
||||
import {isSharedAndNotOwner} from '@common/shared/utils/is-shared-and-not-owner';
|
||||
|
||||
export interface ExperimentState {
|
||||
view: ExperimentsViewState;
|
||||
|
||||
@@ -4,10 +4,11 @@ import {selectSelectedExperiment} from '~/features/experiments/reducers';
|
||||
import {selectRootProjects, selectSelectedProject} from '@common/core/reducers/projects.reducer';
|
||||
export {formatStaticCrumb} from '@common/layout/breadcrumbs/breadcrumbs-common.utils';
|
||||
import {IBreadcrumbs} from '@common/layout/breadcrumbs/breadcrumbs-common.utils';
|
||||
import {selectReport} from '@common/reports/reports.reducer';
|
||||
export {prepareNames, IBreadcrumbs} from '@common/layout/breadcrumbs/breadcrumbs-common.utils';
|
||||
|
||||
|
||||
export const selectBreadcrumbsStringsBase = createSelector(
|
||||
selectSelectedProject, selectSelectedExperiment, selectSelectedTableModel, selectRootProjects,
|
||||
(project, experiment, model, projects) =>
|
||||
({project, experiment, model, projects}) as IBreadcrumbs);
|
||||
selectSelectedProject, selectSelectedExperiment, selectSelectedTableModel, selectRootProjects, selectReport,
|
||||
(project, experiment, model, projects, report) =>
|
||||
({project, experiment, model, projects, report}) as IBreadcrumbs);
|
||||
|
||||
@@ -33,6 +33,13 @@
|
||||
[matTooltipShowDelay]="0"
|
||||
matTooltipPosition="right">
|
||||
</a>
|
||||
<a class="item al-ico-reports"
|
||||
routerLink="/reports"
|
||||
routerLinkActive="active"
|
||||
smTooltip="REPORTS"
|
||||
[matTooltipShowDelay]="0"
|
||||
matTooltipPosition="right">
|
||||
</a>
|
||||
<a class="item al-ico-queues"
|
||||
routerLink="/workers-and-queues"
|
||||
routerLinkActive="active"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// This material theme tries its best to look as material-design'ish as possible - round edges, shadows, and small animations.
|
||||
// And, of course, thanks to #Google for creating and sharing such an awesome design language!
|
||||
// I highly encourage everyone to read into the Material Design specs: <https://material.google.com/>
|
||||
@import "../../../shared/ui-components/styles/variables";
|
||||
@import "variables";
|
||||
|
||||
$notifier-shadow-color: rgba(0, 0, 0, .2) !default;
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
@import "variables";
|
||||
@import "src/app/webapp-common/shared/ui-components/styles/variables.scss";
|
||||
|
||||
@font-face {
|
||||
font-family: '#{$icomoon-font-family}';
|
||||
src: url('./#{$icomoon-font-family}.ttf?84hl5c') format('truetype');
|
||||
src: url('./#{$icomoon-font-family}.ttf?f4pbms') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: block;
|
||||
@@ -23,6 +24,31 @@
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.al-ico-md-copy {
|
||||
&:before {
|
||||
content: $al-ico-md-copy;
|
||||
}
|
||||
}
|
||||
.al-ico-hor-expand {
|
||||
&:before {
|
||||
content: $al-ico-hor-expand;
|
||||
}
|
||||
}
|
||||
.al-ico-hor-minimize {
|
||||
&:before {
|
||||
content: $al-ico-hor-minimize;
|
||||
}
|
||||
}
|
||||
.al-ico-pdf {
|
||||
&:before {
|
||||
content: $al-ico-pdf;
|
||||
}
|
||||
}
|
||||
.al-ico-reports {
|
||||
&:before {
|
||||
content: $al-ico-reports;
|
||||
}
|
||||
}
|
||||
.al-ico-gpu {
|
||||
&:before {
|
||||
content: $al-ico-gpu;
|
||||
|
||||
Binary file not shown.
@@ -1,6 +1,11 @@
|
||||
$icomoon-font-family: "trains" !default;
|
||||
$icomoon-font-path: "fonts" !default;
|
||||
|
||||
$al-ico-md-copy: "\e9ec";
|
||||
$al-ico-hor-expand: "\e9ea";
|
||||
$al-ico-hor-minimize: "\e9eb";
|
||||
$al-ico-pdf: "\e9e9";
|
||||
$al-ico-reports: "\e9e8";
|
||||
$al-ico-gpu: "\e9e7";
|
||||
$al-ico-project-path: "\e9e6";
|
||||
$al-ico-tree-view: "\e9e5";
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
|
||||
# For additional information regarding the format and rule options, please see:
|
||||
# https://github.com/browserslist/browserslist#queries
|
||||
|
||||
# For the full list of supported browsers by the Angular framework, please see:
|
||||
# https://angular.io/guide/browser-support
|
||||
|
||||
# You can see what browsers were selected by your queries by running:
|
||||
# npx browserslist
|
||||
|
||||
last 1 Chrome version
|
||||
last 1 Firefox version
|
||||
last 2 Edge major versions
|
||||
last 2 Safari major versions
|
||||
last 2 iOS major versions
|
||||
Firefox ESR
|
||||
@@ -0,0 +1,44 @@
|
||||
// Karma configuration file, see link for more information
|
||||
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
||||
|
||||
module.exports = function (config) {
|
||||
config.set({
|
||||
basePath: '',
|
||||
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
||||
plugins: [
|
||||
require('karma-jasmine'),
|
||||
require('karma-chrome-launcher'),
|
||||
require('karma-jasmine-html-reporter'),
|
||||
require('karma-coverage'),
|
||||
require('@angular-devkit/build-angular/plugins/karma')
|
||||
],
|
||||
client: {
|
||||
jasmine: {
|
||||
// you can add configuration options for Jasmine here
|
||||
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
||||
// for example, you can disable the random execution with `random: false`
|
||||
// or set a specific seed with `seed: 4321`
|
||||
},
|
||||
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
||||
},
|
||||
jasmineHtmlReporter: {
|
||||
suppressAll: true // removes the duplicated traces
|
||||
},
|
||||
coverageReporter: {
|
||||
dir: require('path').join(__dirname, '../../coverage/report-widgets'),
|
||||
subdir: '.',
|
||||
reporters: [
|
||||
{ type: 'html' },
|
||||
{ type: 'text-summary' }
|
||||
]
|
||||
},
|
||||
reporters: ['progress', 'kjhtml'],
|
||||
port: 9876,
|
||||
colors: true,
|
||||
logLevel: config.LOG_INFO,
|
||||
autoWatch: true,
|
||||
browsers: ['Chrome'],
|
||||
singleRun: false,
|
||||
restartOnFileChange: true
|
||||
});
|
||||
};
|
||||
@@ -0,0 +1,34 @@
|
||||
import {createAction, props} from '@ngrx/store';
|
||||
import {ExtFrame} from '@common/shared/single-graph/plotly-graph-base';
|
||||
import {DebugSample} from '@common/shared/debug-sample/debug-sample.reducer';
|
||||
import {ReportsApiMultiplotsResponse} from '@common/clearml-applications/report-widgets/src/app/app.reducer';
|
||||
|
||||
export const getPlot = createAction('[App] getPlot', props<{
|
||||
tasks: string[];
|
||||
iterations: number[];
|
||||
metrics: string[];
|
||||
variants: string[];
|
||||
company: string;
|
||||
}>());
|
||||
|
||||
export const getScalar = createAction('[App] getScalar', props<{
|
||||
tasks: string[];
|
||||
iterations: number[];
|
||||
metrics: string[];
|
||||
variants: string[];
|
||||
company: string;
|
||||
}>());
|
||||
export const getSample = createAction('[App] getSample', props<{
|
||||
tasks: string[];
|
||||
iterations: number[];
|
||||
metrics: string[];
|
||||
variants: string[];
|
||||
company: string;
|
||||
}>());
|
||||
|
||||
export const setPlotData = createAction('[App] setPlot', props<{ data: ReportsApiMultiplotsResponse }>());
|
||||
export const setScalarData = createAction('[App] setScalar', props<{ data: ExtFrame[] }>());
|
||||
export const setSampleData = createAction('[App] setSample', props<{ data: DebugSample }>());
|
||||
|
||||
export const reportsPlotlyReady = createAction('[App] plotly ready');
|
||||
export const setSignIsNeeded = createAction('[App] set sign is needed');
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user