Merge pull request #7 from allegroai/v1.0

ClearML v1.0
This commit is contained in:
Allegro AI
2021-05-11 17:21:24 +03:00
committed by GitHub
888 changed files with 27457 additions and 11373 deletions

View File

@@ -1,136 +1,94 @@
{
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/class-name-casing": "error",
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/ng-cli-compat",
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "sm",
"style": "kebab-case"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "sm",
"style": "camelCase"
}
],
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
"off",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/indent": ["warn", 2],
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
"@typescript-eslint/no-inferrable-types": [
"off",
{
"ignoreParameters": true
}
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/quotes": [
"error",
"single"
"brace-style": [
"error",
"1tbs"
],
"@typescript-eslint/semi": [
"error",
"always"
],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/no-explicit-any": "warn",
"arrow-body-style": "error",
"@typescript-eslint/camelcase": "off",
"camelcase": "off",
"constructor-super": "error",
"curly": "error",
"dot-notation": "off",
"eol-last": "error",
"eqeqeq": [
"off",
"smart"
"off",
"smart"
],
"guard-for-in": "error",
"id-blacklist": "off",
"id-match": "off",
"max-len": [
"error",
{
"code": 2000
}
"error",
{
"code": 2000
}
],
"no-bitwise": "off",
"no-caller": "error",
"no-console": [
"error",
{
"allow": [
"log",
"warn",
"dir",
"timeLog",
"assert",
"clear",
"count",
"countReset",
"group",
"groupEnd",
"table",
"dirxml",
"error",
"groupCollapsed",
"Console",
"profile",
"profileEnd",
"timeStamp",
"context"
]
}
],
"no-debugger": "error",
"no-empty": "off",
"no-eval": "error",
"no-fallthrough": "error",
"no-new-wrappers": "error",
"no-shadow": [
"off",
{
"hoist": "all"
}
"off",
{
"hoist": "all"
}
],
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-underscore-dangle": "off",
"no-unused-expressions": "off",
"no-unused-labels": "error",
"no-var": "error",
"prefer-const": "error",
"radix": "error",
"spaced-comment": "error",
"valid-typeof": "error"
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}

View File

@@ -19,6 +19,11 @@
"main": "src/main.ts",
"tsConfig": "src/tsconfig.app.json",
"polyfills": "src/polyfills.ts",
"stylePreprocessorOptions": {
"includePaths": [
"src/app/webapp-common/shared/ui-components/styles/"
]
},
"assets": [
"src/assets",
"src/favicon.ico",
@@ -39,7 +44,12 @@
"fabric/dist/fabric.min",
"url",
"entities",
"string-to-color"
"string-to-color",
"ace-builds/webpack-resolver"
],
"scripts": [
"node_modules/ngx-markdown-editor/assets/highlight.js/highlight.min.js",
"node_modules/ngx-markdown-editor/assets/marked.min.js"
]
},
"configurations": {
@@ -53,7 +63,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
@@ -76,7 +85,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
@@ -99,7 +107,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
@@ -122,7 +129,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
@@ -145,7 +151,6 @@
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
@@ -189,6 +194,11 @@
"main": "src/test.ts",
"karmaConfig": "./karma.conf.js",
"polyfills": "src/polyfills.ts",
"stylePreprocessorOptions": {
"includePaths": [
"src/app/webapp-common/shared/ui-components/styles/"
]
},
"tsConfig": "src/tsconfig.spec.json",
"styles": [
"src/styles.scss"
@@ -201,14 +211,11 @@
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"builder": "@angular-eslint/builder:lint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}

11548
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -5,86 +5,98 @@
"scripts": {
"ng": "ng",
"start": "npx ng serve --proxy-config proxy.config.js --live-reload false --port 4300",
"hmr": "npx ng serve --proxy-config proxy.config.js --hmr --port 4300",
"build": "node --max_old_space_size=3248 ./node_modules/.bin/ng build --prod --source-map --extract-css=false --vendor-chunk --crossOrigin=use-credentials",
"build-demo": "node --max_old_space_size=3248 ./node_modules/.bin/ng build --configuration demo --source-map --extract-css=false --crossOrigin=use-credentials",
"build-guest": "node --max_old_space_size=3248 ./node_modules/.bin/ng build --prod --configuration guest --source-map --extract-css=false --crossOrigin=use-credentials",
"build-community": "node --max_old_space_size=3248 ./node_modules/.bin/ng build --prod --configuration community --source-map --extract-css=false --crossOrigin=use-credentials",
"build-dev": "node ./node_modules/.bin/ng build --extract-css=false --crossOrigin=use-credentials",
"fetch": "./scripts/get-remote-build.sh",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e --port 4300",
"bundle-report": "node --max_old_space_size=3248 ./node_modules/.bin/ng build --prod --vendor-chunk --aot --stats-json; webpack-bundle-analyzer build/stats.json"
"bundle-report": "node --max_old_space_size=3248 ./node_modules/.bin/ng build --prod --vendor-chunk --aot --stats-json; webpack-bundle-analyzer build/stats.json",
"submodule": "git submodule update --recursive --remote --init"
},
"private": true,
"dependencies": {
"@angular-devkit/build-ng-packagr": "~0.1001.6",
"@angular/animations": "^10.1.5",
"@angular/cdk": "^10.2.4",
"@angular/common": "^10.1.5",
"@angular/compiler": "^10.1.5",
"@angular/core": "^10.1.5",
"@angular/forms": "^10.1.5",
"@angular/material": "^10.2.4",
"@angular/platform-browser": "^10.1.5",
"@angular/platform-browser-dynamic": "^10.1.5",
"@angular/platform-server": "^10.1.5",
"@angular/router": "^10.1.5",
"@angular/service-worker": "^10.1.5",
"@ng-select/ng-select": "^5.0.8",
"@ngrx/effects": "^10.0.1",
"@ngrx/entity": "^10.0.1",
"@ngrx/router-store": "^10.0.1",
"@ngrx/store": "^10.0.1",
"@types/d3-selection": "^1.4.3",
"@types/plotly.js": "^1.50.21",
"@angular/animations": "^11.2.7",
"@angular/cdk": "^11.2.6",
"@angular/common": "^11.2.7",
"@angular/compiler": "^11.2.7",
"@angular/core": "^11.2.7",
"@angular/forms": "^11.2.7",
"@angular/material": "^11.2.6",
"@angular/platform-browser": "^11.2.7",
"@angular/platform-browser-dynamic": "^11.2.7",
"@angular/platform-server": "^11.2.7",
"@angular/router": "^11.2.7",
"@angular/service-worker": "^11.2.7",
"@ngrx/effects": "^11.0.1",
"@ngrx/entity": "^11.0.1",
"@ngrx/router-store": "^11.0.1",
"@ngrx/store": "^11.0.1",
"ace-builds": "^1.4.12",
"amazon-s3-uri": "0.1.0",
"angular-google-tag-manager": "^1.2.3",
"angular-split": "^4.0.0",
"angular-google-tag-manager": "^1.3.0",
"angular-resizable-element": "^3.3.5",
"angular-split": "^5.0.0",
"ansi-to-html": "^0.6.14",
"aws-sdk": "^2.771.0",
"bootstrap": "^4.5.2",
"britecharts": "^2.17.1",
"has-ansi": "^4.0.0",
"aws-sdk": "^2.874.0",
"bootstrap": "^4.6.0",
"britecharts": "^2.17.6",
"diff": "^5.0.0",
"has-ansi": "^4.0.1",
"hocon-parser": "^1.0.1",
"jwt-decode": "^3.0.0",
"jwt-decode": "^3.1.2",
"localforage": "^1.9.0",
"lodash": "^4.17.20",
"lodash": "^4.17.21",
"lucene": "^2.1.1",
"ngx-clipboard": "^13.0.1",
"ngx-color-picker": "^10.1.0",
"ngx-clipboard": "^14.0.1",
"ngx-color-picker": "^11.0.0",
"ngx-filesize": "^2.0.16",
"node-sass": "^4.14.1",
"object-hash": "^2.0.3",
"primeicons": "^4.0.0",
"primeng": "^10.0.3",
"ngx-markdown-editor": "^3.3.2",
"object-hash": "^2.1.1",
"primeicons": "^4.1.0",
"primeng": "^11.3.1",
"process": "^0.11.10",
"rxjs": "^6.6.3",
"rxjs": "^6.6.7",
"string-to-color": "^2.2.2",
"tslib": "^2.0.3",
"uuid": "^8.3.1",
"zone.js": "~0.11.1"
"tslib": "^2.1.0",
"uuid": "^8.3.2",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.1001.6",
"@angular-devkit/core": "^10.1.6",
"@angular-devkit/schematics": "^10.1.6",
"@angular-devkit/schematics-cli": "^0.1001.6",
"@angular/cli": "^10.1.6",
"@angular/compiler-cli": "^10.1.5",
"@angular/language-service": "^10.1.5",
"@fortawesome/fontawesome-free": "^5.15.1",
"@ngrx/schematics": "^10.0.1",
"@ngrx/store-devtools": "^10.0.1",
"@schematics/schematics": "^0.1001.6",
"@types/lodash": "^4.14.162",
"@types/node": "^14.11.8",
"@angular-devkit/build-angular": "~0.1102.6",
"@angular-devkit/core": "^11.2.6",
"@angular-devkit/schematics": "^11.2.6",
"@angular-devkit/schematics-cli": "^0.1102.6",
"@angular-eslint/builder": "^2.0.2",
"@angular-eslint/eslint-plugin": "^2.0.2",
"@angular-eslint/eslint-plugin-template": "^2.0.2",
"@angular-eslint/schematics": "2.0.2",
"@angular-eslint/template-parser": "^2.0.2",
"@angular/cli": "^11.2.6",
"@angular/compiler-cli": "^11.2.7",
"@angular/language-service": "^11.2.7",
"@fortawesome/fontawesome-free": "^5.15.3",
"@ngrx/schematics": "^11.0.1",
"@ngrx/store-devtools": "^11.0.1",
"@schematics/schematics": "^0.1102.6",
"@types/d3-selection": "^2.0.0",
"@types/lodash": "^4.14.168",
"@types/node": "^14.14.37",
"@types/plotly.js": "^1.54.10",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^4.4.1",
"@typescript-eslint/parser": "^4.4.1",
"@typescript-eslint/eslint-plugin": "4.19.0",
"@typescript-eslint/parser": "4.19.0",
"codelyzer": "^6.0.1",
"eslint": "^7.11.0",
"ts-node": "~8.3.0",
"typescript": "4.0.3",
"webpack-bundle-analyzer": "^3.9.0"
"eslint": "^7.23.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsdoc": "32.3.0",
"eslint-plugin-prefer-arrow": "1.2.3",
"ts-node": "~9.1.1",
"typescript": "^4.1.5",
"webpack-bundle-analyzer": "^4.4.0"
}
}

View File

@@ -4,7 +4,7 @@ import {Component, OnDestroy, OnInit, ViewEncapsulation, HostListener, Renderer2
import {ActivatedRoute, NavigationEnd, Router, Params, RouterEvent} from '@angular/router';
import {Title} from '@angular/platform-browser';
import {selectLoggedOut} from './webapp-common/core/reducers/view-reducer';
import {select, Store} from '@ngrx/store';
import {Store} from '@ngrx/store';
import {get} from 'lodash/fp';
import {selectRouterParams, selectRouterUrl} from './webapp-common/core/reducers/router-reducer';
import {ApiProjectsService} from './business-logic/api-services/projects.service';
@@ -20,8 +20,8 @@ import {
import {MatDialog, MatDialogRef} from '@angular/material/dialog';
import {S3AccessResolverComponent} from './webapp-common/layout/s3-access-resolver/s3-access-resolver.component';
import {cancelS3Credentials, getTutorialBucketCredentials} from './webapp-common/core/actions/common-auth.actions';
import {FetchCurrentUser} from './webapp-common/core/actions/users.actions';
import {distinctUntilChanged, filter, map, tap, withLatestFrom} from 'rxjs/operators';
import {termsOfUseAccepted} from './webapp-common/core/actions/users.actions';
import {debounceTime, distinctUntilChanged, filter, map, tap, withLatestFrom} from 'rxjs/operators';
import * as routerActions from './webapp-common/core/actions/router.actions';
import {combineLatest, Observable, Subscription} from 'rxjs';
import {selectBreadcrumbsStrings} from './webapp-common/layout/layout.reducer';
@@ -30,7 +30,7 @@ import {formatStaticCrumb} from './webapp-common/layout/breadcrumbs/breadcrumbs-
import {ServerUpdatesService} from './webapp-common/shared/services/server-updates.service';
import {selectAvailableUpdates, selectShowSurvey} from './core/reducers/view-reducer';
import {UPDATE_SERVER_PATH} from './app.constants';
import {plotlyReady, setScaleFactor, VisibilityChanged} from './webapp-common/core/actions/layout.actions';
import {firstLogin, plotlyReady, setScaleFactor, VisibilityChanged} from './webapp-common/core/actions/layout.actions';
import {UiUpdatesService} from './webapp-common/shared/services/ui-updates.service';
import {UsageStatsService} from './core/Services/usage-stats.service';
import {dismissSurvey} from './core/Actions/layout.actions';
@@ -40,6 +40,7 @@ import {ConfigurationService} from './webapp-common/shared/services/configuratio
import {GoogleTagManagerService} from 'angular-google-tag-manager';
import {selectIsSharedAndNotOwner} from './features/experiments/reducers';
import {TipsService} from './webapp-common/shared/services/tips.service';
import {USER_PREFERENCES_KEY} from '@common/user-preferences';
@Component({
selector: 'sm-root',
@@ -61,6 +62,7 @@ export class AppComponent implements OnInit, OnDestroy {
private s3Dialog: MatDialogRef<S3AccessResolverComponent, any>;
private showLocalFilePopup$: Observable<any>;
private breadcrumbsSubscription: Subscription;
private selectedCurrentUserSubscription: Subscription;
private breadcrumbsStrings;
private selectedCurrentUser$: Observable<any>;
public showNotification: boolean = true;
@@ -80,7 +82,7 @@ export class AppComponent implements OnInit, OnDestroy {
}
@HostListener('window:beforeunload', ['$event'])
beforeunloadHandler(event) {
beforeunloadHandler() {
window.localStorage.setItem('lastWorkspace', this.activeWorkspace);
}
@@ -101,23 +103,29 @@ export class AppComponent implements OnInit, OnDestroy {
private configService: ConfigurationService
) {
this.showS3Popup$ = this.store.select(selectShowS3PopUp);
this.showLocalFilePopup$ = this.store.pipe(select(selectShowLocalFilesPopUp));
this.showLocalFilePopup$ = this.store.select(selectShowLocalFilesPopUp);
this.loggedOut$ = store.select(selectLoggedOut);
this.isSharedAndNotOwner$ = this.store.select(selectIsSharedAndNotOwner);
this.selectedProject$ = this.store.select(selectSelectedProject);
this.updatesAvailable$ = this.store.select(selectAvailableUpdates);
this.showSurvey$ = this.store.select(selectShowSurvey).pipe(map(show => {
if (show) {
let loginTime = parseInt(localStorage.getItem('firstLogin'), 10);
if(!loginTime) {
loginTime = Date.now();
localStorage.setItem('firstLogin', `${loginTime}`);
this.showSurvey$ = combineLatest([this.store.select(selectShowSurvey), this.store.select(selectCurrentUser)])
.pipe(
debounceTime(0),
filter(([, user]) => !!user),
map(([show]) => {
if (show) {
let loginTime = parseInt(localStorage.getItem(USER_PREFERENCES_KEY.firstLogin), 10);
if(!loginTime) {
this.store.dispatch(firstLogin({first: true}));
loginTime = Date.now();
localStorage.setItem(USER_PREFERENCES_KEY.firstLogin, `${loginTime}`);
return false;
}
return Date.now() - loginTime > (14 * 24 * 60 * 60 * 1000); // 2 weeks in milliseconds
}
return false;
}
return Date.now() - loginTime > (14 * 24 * 60 * 60 * 1000); // 2 weeks in milliseconds
}
return false;
}));
})
);
this.selectedCurrentUser$ = this.store.select(selectCurrentUser);
this.selectedProjectFromUrl$ = this.store.select(selectRouterParams)
.pipe(
@@ -149,14 +157,15 @@ export class AppComponent implements OnInit, OnDestroy {
this.updateTitle();
});
this.store.dispatch(new FetchCurrentUser());
this.selectedCurrentUser$.pipe(
this.selectedCurrentUserSubscription = this.selectedCurrentUser$.pipe(
tap(user => this.currentUser = user), // should not be filtered
filter(user => !!user?.id),
distinctUntilChanged((prev, next) => prev?.id === next?.id))
.subscribe((user) => {
distinctUntilChanged((prev, next) => prev?.id === next?.id)
)
.subscribe(() => {
this.store.dispatch(new GetAllProjects());
this.store.dispatch(getTutorialBucketCredentials());
this.store.dispatch(termsOfUseAccepted());
this.uiUpdatesService.checkForUiUpdate();
this.tipsService.initTipsService();
this.serverUpdatesService.checkForUpdates(UPDATE_SERVER_PATH);
@@ -171,7 +180,7 @@ export class AppComponent implements OnInit, OnDestroy {
this.s3Dialog = this.matDialog.open(S3AccessResolverComponent);
this.s3Dialog.afterClosed().pipe(
withLatestFrom(
this.store.pipe(select(selectS3BucketCredentialsBucketCredentials)), this.store.pipe(select(selectS3PopUpDetails)))
this.store.select(selectS3BucketCredentialsBucketCredentials), this.store.select(selectS3PopUpDetails))
)
.subscribe(([data, bucketCredentials, popupDetails]) => {
if (!(data && data.success)) {
@@ -201,15 +210,14 @@ export class AppComponent implements OnInit, OnDestroy {
}
});
this.breadcrumbsSubscription = this.store.pipe(
select(selectBreadcrumbsStrings),
filter(names => !!names)
).subscribe(
(names) => {
this.breadcrumbsStrings = prepareNames(names);
this.updateTitle();
}
);
this.breadcrumbsSubscription = this.store.select(selectBreadcrumbsStrings)
.pipe(filter(names => !!names))
.subscribe(
(names) => {
this.breadcrumbsStrings = prepareNames(names);
this.updateTitle();
}
);
if (window.localStorage.getItem('disableHidpi') !== 'true') {
this.setScale();
}
@@ -228,20 +236,21 @@ export class AppComponent implements OnInit, OnDestroy {
}
nameChanged(name) {
this.store.dispatch(new UpdateProject({id: this.projectId, changes: {name: name}}));
this.store.dispatch(new UpdateProject({id: this.projectId, changes: {name}}));
}
ngOnDestroy(): void {
this.urlSubscription.unsubscribe();
this.breadcrumbsSubscription.unsubscribe();
this.selectedCurrentUserSubscription.unsubscribe();
}
changeRoute(feature) {
this.router.navigateByUrl('projects/' + this.projectId + '/' + feature);
return this.router.navigateByUrl('projects/' + this.projectId + '/' + feature);
}
backToProjects() {
this.router.navigateByUrl('projects');
return this.router.navigateByUrl('projects');
}
updateTitle() {
@@ -290,7 +299,7 @@ export class AppComponent implements OnInit, OnDestroy {
const head: HTMLHeadElement = document.getElementsByTagName('head')[0];
head.appendChild(script);
let counter = 200;
let counter = 600;
const fn = () => {
const plotly = (window as any).Plotly;

View File

@@ -68,88 +68,6 @@ export const RECENT_TASKS_ACTIONS = {
SET_RECENT_TASKS: recentTasksPrefix + 'SET_RECENT_TASKS'
};
export const AUTH_PREFIX = 'AUTH_';
export const AUTH_ACTIONS = {
ADD_CREDENTIAL : AUTH_PREFIX + 'ADD_CREDENTIAL',
CREATE_CREDENTIAL : AUTH_PREFIX + 'CREATE_CREDENTIAL (API)',
CREATE_SUCCESS : AUTH_PREFIX + 'CREATE_SUCCESS',
GET_SUCCESS : AUTH_PREFIX + 'GET_SUCCESS',
REVOKE_SUCCESS : AUTH_PREFIX + 'REVOKE_SUCCESS',
RESET_NEW_CREDENTIAL : AUTH_PREFIX + 'RESET_NEW_CREDENTIAL',
GET_TASK_TOKEN_SUCCESS : AUTH_PREFIX + 'GET_TASK_TOKEN_SUCCESS',
SET_TASK_TOKEN : AUTH_PREFIX + 'SET_TASK_TOKEN',
GET_ALL_CREDENTIALS : AUTH_PREFIX + 'GET_ALL_CREDENTIALS (API)',
UPDATE_ALL_CREDENTIALS : AUTH_PREFIX + 'UPDATE_ALL_CREDENTIALS',
UPDATE_S3_BUCKET_CREDENTIALS: AUTH_PREFIX + 'UPDATE_S3_BUCKET_CREDENTIALS',
REVOKE_CREDENTIAL : AUTH_PREFIX + 'REVOKE_CREDENTIAL (API)'
};
export const S3_ACTIONS = {
RESET_DONT_SHOW_AGAIN_FOR_BUCKET_ENDPOINT: AUTH_PREFIX + 'RESET_DONT_SHOW_AGAIN_FOR_BUCKET_ENDPOINT',
CANCEL_BUCKET_CREDENTIALS : AUTH_PREFIX + 'CANCEL_BUCKET_CREDENTIALS',
SHOW_S3_POPUP : AUTH_PREFIX + 'SHOW_S3_POPUP',
RESET_SHOW_S3_POPUP : AUTH_PREFIX + 'RESET_SHOW_S3_POPUP',
SHOW_LOCAL_FILE_POPUP : AUTH_PREFIX + 'SHOW_LOCAL_FILE_POPUP',
SET_BUCKETS_CREDENTIALS : AUTH_PREFIX + 'SET_BUCKETS_CREDENTIALS',
SET_BUCKET_CREDENTIALS : AUTH_PREFIX + 'SET_BUCKET_CREDENTIALS',
GET_TUTORIAL_BUCKET_CREDENTIALS : AUTH_PREFIX + 'GET_TUTORIAL_BUCKET_CREDENTIALS'
};
export const ICONS = {
CREATED : 'fa-plus',
MINUS : 'fa-minus',
CHART : 'fa-chart-area',
QUEUED : 'fa-hourglass',
ENQUEUE : 'fa-hourglass',
DEQUEUE : 'fa-undo',
IN_PROGRESS : 'fa-hourglass-half',
STOPPED : 'fa-square',
RESUME : 'fa-hourglass-half',
CLOSED : 'fa-circle-o',
FAILED : 'fa-times',
FALSE : 'fa-times',
PUBLISHED : 'fa-check',
PUBLISHING : 'fa-spinner',
TRUE : 'fa-check',
ANNOTATION : 'fa-puzzle-piece',
TASK : 'fa-briefcase',
MODEL : 'fa-cube',
SHOW : 'fa-eye',
HIDE : 'fa-eye-slash',
COMPLETED : 'fa-circle',
ABORTED : 'fa-circle',
UNKNOWN : 'fa-question-circle',
TESTING : 'fa-balance-scale',
IMPORT : 'fa-download',
TRAINING : 'fa-cube',
ANNOTATION_MANUAL: 'fa-edit',
ADMIN : 'fa-cogs',
WARNING : 'fa-exclamation-triangle',
OUTPUT : 'fa-folder-open',
EXECUTION : 'fa-terminal',
LIST : 'fa-list',
REMOVE : 'fa-trash',
ADD : 'fa-plus',
TREE : 'fa-code-branch',
TABLE : 'fa-table',
SELECTED : 'fa-check-square-o',
PROJECT : 'fa-list-alt',
FOCUS : 'fa-crosshairs',
LOG : 'fa-file-text-o',
METRICS : 'fa-chart-area',
TOKEN : 'fa-key',
EDIT : 'fa-pencil-square-o',
EDITABLE : 'fa-pencil-alt',
RESET : 'fa-sync',
CLONE : 'fa-clone',
EXTEND : 'fa-code-branch',
DOWNLOAD : 'fa-download',
WORKER : 'fa-microchip',
};
export const VIEW_PREFIX = 'VIEW_';
export const VIEW_ACTIONS = {
SET_SERVER_UPDATES_AVAILABLE: VIEW_PREFIX + 'SET_SERVER_UPDATES_AVAILABLE',
@@ -266,7 +184,7 @@ export function guessAPIServerURL() {
return url.replace(/:\d+/, '') + ':8008';
}
export const ENVIRONMENT = {API_VERSION: '/v2.12'};
export const ENVIRONMENT = {API_VERSION: '/v2.13'};
const url = window.location.origin;
let apiBaseUrl: string;
if (environment.apiBaseUrl) {

View File

@@ -7,7 +7,7 @@ import {AppComponent} from './app.component';
import {routes} from './app.routes';
import {SMCoreModule} from './core/core.module';
import {SMSharedModule} from './webapp-common/shared/shared.module';
import {FormsModule} from '@angular/forms';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {CommonLayoutModule} from './webapp-common/layout/layout.module';
import {HTTP_INTERCEPTORS} from '@angular/common/http';
import {WebappIntercptor} from './webapp-common/core/interceptors/webapp-interceptor';
@@ -24,22 +24,30 @@ import {Store} from '@ngrx/store';
import {SharedModule} from './shared/shared.module';
import {ErrorService} from './webapp-common/shared/services/error.service';
import {ConfigurationService} from './webapp-common/shared/services/configuration.service';
import {ProjectsSharedModule} from "./features/projects/shared/projects-shared.module";
import { UserManagementComponent } from './webapp-common/user-management/user-management.component';
import { UserManagementDialogComponent } from './webapp-common/user-management/user-management-dialog/user-management-dialog.component';
import { UserManagementInvitesComponent } from './webapp-common/user-management/user-managment-invites/user-management-invites.component';
import {MAT_FORM_FIELD_DEFAULT_OPTIONS} from "@angular/material/form-field";
@NgModule({
declarations : [AppComponent],
declarations : [AppComponent, UserManagementComponent, UserManagementDialogComponent, UserManagementInvitesComponent],
imports: [
FormsModule,
ReactiveFormsModule,
BrowserAnimationsModule,
ProjectsSharedModule,
BrowserModule,
SMCoreModule,
BusinessLogicModule,
SMSharedModule,
AngularSplitModule.forRoot(),
AngularSplitModule,
RouterModule.forRoot(routes, {
preloadingStrategy: PreloadAllModules,
scrollPositionRestoration: 'top',
onSameUrlNavigation: 'reload'
}),
onSameUrlNavigation: 'reload',
relativeLinkResolution: 'legacy'
}),
AdminModule,
NotifierModule.withConfig({
theme: 'material',
@@ -56,6 +64,7 @@ import {ConfigurationService} from './webapp-common/shared/services/configuratio
SharedModule,
],
providers : [
{provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: {floatLabel: 'always'}},
{
provide : APP_INITIALIZER,
useFactory: loadUserAndPreferences,

View File

@@ -1,38 +1,48 @@
import {Routes} from '@angular/router';
import {AdminComponent} from './webapp-common/admin/admin.component';
import {AccountAdministrationGuard} from "./webapp-common/shared/guards/account-administration.guard";
import {UserManagementComponent} from "./webapp-common/user-management/user-management.component";
import {ProjectRedirectGuardGuard} from './webapp-common/shared/guards/project-redirect.guard';
export const routes: Routes = [
{path: '', redirectTo: 'dashboard', pathMatch: 'full'},
{path: 'admin', redirectTo: 'profile', pathMatch: 'full'},
{
path : 'dashboard',
path: 'dashboard',
loadChildren: () => import('./features/dashboard/dashboard.module').then(m => m.DashboardModule),
data : {search: true},
data: {search: true},
},
{
path: 'projects',
loadChildren: () => import('./features/projects/projects.module').then(m => m.ProjectsModule),
data: {search: true},
},
{path: 'login', loadChildren: () => import('./webapp-common/login/login.module').then(m => m.LoginModule)},
{path: 'signup', loadChildren: () => import('./webapp-common/login/login.module').then(m => m.LoginModule)},
{
path : 'projects',
loadChildren: () => import('./features/projects/projects.module').then(m => m.ProjectsModule),
data : {search: true},
},
{path: 'profile', component: AdminComponent},
{path: 'profile', component: AdminComponent, data: {workspaceNeutral: true}},
{path: 'account-administration', component: UserManagementComponent, data: {workspaceNeutral: false, }, canActivate: [AccountAdministrationGuard]},
{
path: 'projects', children: [
path: 'projects',
data: {search: true},
children: [
{path: '', redirectTo: '*', pathMatch: 'full'},
{
path : ':projectId',
data : {search: true},
path: ':projectId',
data: {search: true},
children: [
{path: '', redirectTo: 'experiments', pathMatch: 'full'},
{path: '', pathMatch: 'full', children: [], canActivate: [ProjectRedirectGuardGuard]},
{path: '', redirectTo: '*', pathMatch: 'full'},
{path: 'overview', loadChildren: () => import('./webapp-common/project-info/project-info.module').then(m => m.ProjectInfoModule)},
{path: 'projects', loadChildren: () => import('./features/projects/projects.module').then(m => m.ProjectsModule)},
{path: 'experiments', loadChildren: () => import('./features/experiments/experiments.module').then(m => m.ExperimentsModule)},
{path: 'models', loadChildren: () => import('./webapp-common/models/models.module').then(m => m.ModelsModule)},
{
path : 'compare-experiments',
path: 'compare-experiments',
loadChildren: () => import('./webapp-common/experiments-compare/experiments-compare.module').then(m => m.ExperimentsCompareModule),
data : {search: false}
data: {search: false}
},
]
},

View File

@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
import {HTTP} from '../../app.constants';
import {SmApiRequestsService} from "./api-requests.service";

View File

@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
import {HTTP} from '../../app.constants';
import {SmApiRequestsService} from "./api-requests.service";

View File

@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
import {HTTP} from '../../app.constants';
import {SmApiRequestsService} from "./api-requests.service";

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.12
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
import {HTTP} from '../../app.constants';
import {SmApiRequestsService} from "./api-requests.service";
@@ -29,6 +29,12 @@ import { LoginGetInviteInfoResponse } from '../model/login/loginGetInviteInfoRes
import { LoginGetSettingsResponse } from '../model/login/loginGetSettingsResponse';
import { LoginGetWhitelistRequest } from '../model/login/loginGetWhitelistRequest';
import { LoginGetWhitelistResponse } from '../model/login/loginGetWhitelistResponse';
import { LoginJoinCompanyRequest } from '../model/login/loginJoinCompanyRequest';
import { LoginJoinCompanyResponse } from '../model/login/loginJoinCompanyResponse';
import { LoginLeaveCompanyRequest } from '../model/login/loginLeaveCompanyRequest';
import { LoginLeaveCompanyResponse } from '../model/login/loginLeaveCompanyResponse';
import { LoginLogoutRequest } from '../model/login/loginLogoutRequest';
import { LoginLogoutResponse } from '../model/login/loginLogoutResponse';
import { LoginRemoveInvitesRequest } from '../model/login/loginRemoveInvitesRequest';
import { LoginRemoveInvitesResponse } from '../model/login/loginRemoveInvitesResponse';
import { LoginSetDomainsRequest } from '../model/login/loginSetDomainsRequest';
@@ -43,10 +49,10 @@ import { LoginSupportedModesResponse } from '../model/login/loginSupportedModesR
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import {LoginLeaveCompanyResponse} from '../model/login/loginLeaveCompanyResponse';
import {LoginLeaveCompanyRequest} from '../model/login/loginLeaveCompanyRequest';
import {LoginJoinCompanyResponse} from '../model/login/loginJoinCompanyResponse';
import {LoginJoinCompanyRequest} from '../model/login/loginJoinCompanyRequest';
import {LoginRemoveWhitelistEntriesResponse} from "../model/login/loginRemoveWhitelistEntriesResponse";
import {LoginRemoveWhitelistEntriesRequest} from "../model/login/loginRemoveWhitelistEntriesRequest";
import {LoginAddWhitelistEntriesResponse} from "../model/login/loginAddWhitelistEntriesResponse";
import {LoginAddWhitelistEntriesRequest} from "../model/login/loginAddWhitelistEntriesRequest";
@Injectable()
@@ -83,7 +89,7 @@ export class ApiLoginService {
/**
*
* Adds new login invites.
* Adds new login whitelist entries.
* @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.
@@ -261,6 +267,95 @@ export class ApiLoginService {
);
}
/**
*
* Get whitelist entries (optionally filtered). Reserved for internal use.
* @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 loginRemoveWhitelistEntries(request: LoginRemoveWhitelistEntriesRequest, 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 loginGetWhitelist.');
}
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<LoginRemoveWhitelistEntriesResponse>(`${this.basePath}/login.remove_whitelist_entries`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* Get whitelist entries (optionally filtered). Reserved for internal use.
* @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 loginAddWhitelistEntries(request: LoginAddWhitelistEntriesRequest, 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 loginGetWhitelist.');
}
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<LoginAddWhitelistEntriesResponse>(`${this.basePath}/login.add_whitelist_entries`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* Join a tenant company by invite and regenerate a token
@@ -295,14 +390,14 @@ export class ApiLoginService {
headers = headers.set("Content-Type", httpContentTypeSelected);
}
return this.apiRequest.post<LoginJoinCompanyResponse>(`${this.basePath}/login.join_company`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
return this.apiRequest.post<LoginJoinCompanyResponse>(`${this.basePath}/login.join_company`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
@@ -340,14 +435,59 @@ export class ApiLoginService {
headers = headers.set("Content-Type", httpContentTypeSelected);
}
return this.apiRequest.post<LoginLeaveCompanyResponse>(`${this.basePath}/login.leave_company`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
return this.apiRequest.post<LoginLeaveCompanyResponse>(`${this.basePath}/login.leave_company`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* Logout from SSO
* @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 loginLogout(request: LoginLogoutRequest, 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 loginLogout.');
}
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<LoginLogoutResponse>(`${this.basePath}/login.logout`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
@@ -654,7 +794,6 @@ export class ApiLoginService {
if (httpContentTypeSelected != undefined) {
headers = headers.set("Content-Type", httpContentTypeSelected);
}
return this.apiRequest.post<LoginSupportedModesResponse>(`${this.basePath}/login.supported_modes`,
request,
{

File diff suppressed because it is too large Load Diff

View File

@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
import {HTTP} from '../../app.constants';
import {SmApiRequestsService} from "./api-requests.service";

View File

@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
import {HTTP} from '../../app.constants';
import {SmApiRequestsService} from "./api-requests.service";
@@ -47,6 +47,10 @@ import { ProjectsUpdateResponse } from '../model/projects/projectsUpdateResponse
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import {ProjectsGetHyperparamValuesRequest} from '../model/projects/projectsGetHyperparamValuesRequest';
import {ProjectsGetHyperparamValuesResponse} from '../model/projects/projectsGetHyperparamValuesResponse';
import {ProjectsMoveRequest} from "../model/projects/projectsMoveRequest";
import {ProjectsMoveResponse} from "../model/projects/projectsMoveResponse";
@Injectable()
@@ -82,7 +86,7 @@ export class ApiProjectsService {
/**
*
*
* Create a new 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.
@@ -127,7 +131,7 @@ export class ApiProjectsService {
}
/**
*
*
* Deletes 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.
@@ -172,7 +176,7 @@ export class ApiProjectsService {
}
/**
*
*
* Get all the company\&#39;s projects and all public projects
* @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.
@@ -217,7 +221,7 @@ export class ApiProjectsService {
}
/**
*
*
* Get all the company\&#39;s projects and all public projects
* @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.
@@ -262,8 +266,8 @@ export class ApiProjectsService {
}
/**
*
*
*
*
* @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.
@@ -307,7 +311,7 @@ export class ApiProjectsService {
}
/**
*
*
* Get a list of all hyper parameter sections and names used in tasks within the given 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.
@@ -352,7 +356,7 @@ export class ApiProjectsService {
}
/**
*
*
* Get user and system tags used for the models under the specified projects
* @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.
@@ -397,7 +401,7 @@ export class ApiProjectsService {
}
/**
*
*
* Get unique parent tasks for the tasks in the specified pprojects
* @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.
@@ -440,9 +444,49 @@ export class ApiProjectsService {
}
);
}
/**
*
* Moves a project and all of its subprojects under the different location
* @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 projectsMove(request: ProjectsMoveRequest, 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 projectsMove.');
}
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<ProjectsMoveResponse>(`${this.basePath}/projects.move`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
*
* Get user and system tags used for the tasks under the specified projects
* @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.
@@ -487,7 +531,7 @@ export class ApiProjectsService {
}
/**
*
*
* Get all metric/variant pairs reported for tasks in a specific project. If no project is specified, metrics/variant paris reported for all tasks will be returned. If the project does not exist, an empty list will be returned.
* @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.
@@ -532,7 +576,7 @@ export class ApiProjectsService {
}
/**
*
*
* Update project information
* @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.
@@ -576,4 +620,54 @@ export class ApiProjectsService {
);
}
/**
*
* Get a list of distinct values for the chosen hyperparameter
* @param request request body
*/
/**
*
* Get a list of distinct values for the chosen hyperparameter
* @param request request body
*/
public projectsGetHyperparamValuesWithHttpInfo(request: ProjectsGetHyperparamValuesRequest, 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 projectsUpdate.');
}
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<ProjectsGetHyperparamValuesResponse>(`${this.basePath}/projects.get_hyperparam_values`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
}

View File

@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
import {HTTP} from '../../app.constants';
import {SmApiRequestsService} from "./api-requests.service";

View File

@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
import {HTTP} from '../../app.constants';
import {SmApiRequestsService} from "./api-requests.service";

View File

@@ -2,7 +2,7 @@
* tasks
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
import {HTTP} from '../../app.constants';
import {SmApiRequestsService} from "./api-requests.service";
@@ -24,6 +24,10 @@ import { Observable } from 'rxjs';
import { TasksAddOrUpdateArtifactsRequest } from '../model/tasks/tasksAddOrUpdateArtifactsRequest';
import { TasksAddOrUpdateArtifactsResponse } from '../model/tasks/tasksAddOrUpdateArtifactsResponse';
import { TasksAddOrUpdateModelRequest } from '../model/tasks/tasksAddOrUpdateModelRequest';
import { TasksAddOrUpdateModelResponse } from '../model/tasks/tasksAddOrUpdateModelResponse';
import { TasksArchiveManyRequest } from '../model/tasks/tasksArchiveManyRequest';
import { TasksArchiveManyResponse } from '../model/tasks/tasksArchiveManyResponse';
import { TasksArchiveRequest } from '../model/tasks/tasksArchiveRequest';
import { TasksArchiveResponse } from '../model/tasks/tasksArchiveResponse';
import { TasksCloneRequest } from '../model/tasks/tasksCloneRequest';
@@ -40,8 +44,14 @@ import { TasksDeleteConfigurationRequest } from '../model/tasks/tasksDeleteConfi
import { TasksDeleteConfigurationResponse } from '../model/tasks/tasksDeleteConfigurationResponse';
import { TasksDeleteHyperParamsRequest } from '../model/tasks/tasksDeleteHyperParamsRequest';
import { TasksDeleteHyperParamsResponse } from '../model/tasks/tasksDeleteHyperParamsResponse';
import { TasksDeleteManyRequest } from '../model/tasks/tasksDeleteManyRequest';
import { TasksDeleteManyResponse } from '../model/tasks/tasksDeleteManyResponse';
import { TasksDeleteModelsRequest } from '../model/tasks/tasksDeleteModelsRequest';
import { TasksDeleteModelsResponse } from '../model/tasks/tasksDeleteModelsResponse';
import { TasksDeleteRequest } from '../model/tasks/tasksDeleteRequest';
import { TasksDeleteResponse } from '../model/tasks/tasksDeleteResponse';
import { TasksDequeueManyRequest } from '../model/tasks/tasksDequeueManyRequest';
import { TasksDequeueManyResponse } from '../model/tasks/tasksDequeueManyResponse';
import { TasksDequeueRequest } from '../model/tasks/tasksDequeueRequest';
import { TasksDequeueResponse } from '../model/tasks/tasksDequeueResponse';
import { TasksEditConfigurationRequest } from '../model/tasks/tasksEditConfigurationRequest';
@@ -50,6 +60,8 @@ import { TasksEditHyperParamsRequest } from '../model/tasks/tasksEditHyperParams
import { TasksEditHyperParamsResponse } from '../model/tasks/tasksEditHyperParamsResponse';
import { TasksEditRequest } from '../model/tasks/tasksEditRequest';
import { TasksEditResponse } from '../model/tasks/tasksEditResponse';
import { TasksEnqueueManyRequest } from '../model/tasks/tasksEnqueueManyRequest';
import { TasksEnqueueManyResponse } from '../model/tasks/tasksEnqueueManyResponse';
import { TasksEnqueueRequest } from '../model/tasks/tasksEnqueueRequest';
import { TasksEnqueueResponse } from '../model/tasks/tasksEnqueueResponse';
import { TasksFailedRequest } from '../model/tasks/tasksFailedRequest';
@@ -70,9 +82,14 @@ import { TasksGetHyperParamsRequest } from '../model/tasks/tasksGetHyperParamsRe
import { TasksGetHyperParamsResponse } from '../model/tasks/tasksGetHyperParamsResponse';
import { TasksGetTypesRequest } from '../model/tasks/tasksGetTypesRequest';
import { TasksGetTypesResponse } from '../model/tasks/tasksGetTypesResponse';
import { TasksMoveRequest } from '../model/tasks/tasksMoveRequest';
import { TasksPingRequest } from '../model/tasks/tasksPingRequest';
import { TasksPublishManyRequest } from '../model/tasks/tasksPublishManyRequest';
import { TasksPublishManyResponse } from '../model/tasks/tasksPublishManyResponse';
import { TasksPublishRequest } from '../model/tasks/tasksPublishRequest';
import { TasksPublishResponse } from '../model/tasks/tasksPublishResponse';
import { TasksResetManyRequest } from '../model/tasks/tasksResetManyRequest';
import { TasksResetManyResponse } from '../model/tasks/tasksResetManyResponse';
import { TasksResetRequest } from '../model/tasks/tasksResetRequest';
import { TasksResetResponse } from '../model/tasks/tasksResetResponse';
import { TasksSetRequirementsRequest } from '../model/tasks/tasksSetRequirementsRequest';
@@ -81,10 +98,14 @@ import { TasksShareRequest } from '../model/tasks/tasksShareRequest';
import { TasksShareResponse } from '../model/tasks/tasksShareResponse';
import { TasksStartedRequest } from '../model/tasks/tasksStartedRequest';
import { TasksStartedResponse } from '../model/tasks/tasksStartedResponse';
import { TasksStopManyRequest } from '../model/tasks/tasksStopManyRequest';
import { TasksStopManyResponse } from '../model/tasks/tasksStopManyResponse';
import { TasksStopRequest } from '../model/tasks/tasksStopRequest';
import { TasksStopResponse } from '../model/tasks/tasksStopResponse';
import { TasksStoppedRequest } from '../model/tasks/tasksStoppedRequest';
import { TasksStoppedResponse } from '../model/tasks/tasksStoppedResponse';
import { TasksUnarchiveManyRequest } from '../model/tasks/tasksUnarchiveManyRequest';
import { TasksUnarchiveManyResponse } from '../model/tasks/tasksUnarchiveManyResponse';
import { TasksUpdateBatchResponse } from '../model/tasks/tasksUpdateBatchResponse';
import { TasksUpdateRequest } from '../model/tasks/tasksUpdateRequest';
import { TasksUpdateResponse } from '../model/tasks/tasksUpdateResponse';
@@ -92,7 +113,6 @@ import { TasksValidateRequest } from '../model/tasks/tasksValidateRequest';
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
import {TasksMoveRequest} from "../model/tasks/tasksMoveRequest";
@Injectable()
@@ -128,7 +148,7 @@ export class ApiTasksService {
/**
*
*
* Update existing artifacts (search by key/mode) and add new ones
* @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.
@@ -173,7 +193,52 @@ export class ApiTasksService {
}
/**
*
*
* Add or update task model
* @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 tasksAddOrUpdateModel(request: TasksAddOrUpdateModelRequest, 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 tasksAddOrUpdateModel.');
}
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<TasksAddOrUpdateModelResponse>(`${this.basePath}/tasks.add_or_update_model`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* Archive tasks. If a task is queued it will first be dequeued and then archived.
* @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.
@@ -216,54 +281,54 @@ export class ApiTasksService {
}
);
}
/**
*
* Move tasks 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 tasksMove(request: TasksMoveRequest, 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 tasksMove.');
/**
*
* Archive 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 tasksArchiveMany(request: TasksArchiveManyRequest, 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 tasksArchiveMany.');
}
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<TasksArchiveManyResponse>(`${this.basePath}/tasks.archive_many`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
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<object>(`${this.basePath}/tasks.move`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
/**
*
* Clone an existing task
* @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.
@@ -308,7 +373,7 @@ export class ApiTasksService {
}
/**
*
*
* Indicates that task is closed
* @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.
@@ -353,7 +418,7 @@ export class ApiTasksService {
}
/**
*
*
* Signal a task has completed
* @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.
@@ -398,7 +463,7 @@ export class ApiTasksService {
}
/**
*
*
* Create a new task
* @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.
@@ -443,7 +508,7 @@ export class ApiTasksService {
}
/**
*
*
* Delete a task along with any information stored for it (statistics, frame updates etc.) Unless Force flag is provided, operation will fail if task has objects associated with it - i.e. children tasks, projects or datasets. Models that refer to the deleted task will be updated with a task ID indicating a deleted task.
* @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.
@@ -488,7 +553,7 @@ export class ApiTasksService {
}
/**
*
*
* Delete existing artifacts (search by key/mode)
* @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.
@@ -533,7 +598,7 @@ export class ApiTasksService {
}
/**
*
*
* Delete task configuration items
* @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.
@@ -578,7 +643,7 @@ export class ApiTasksService {
}
/**
*
*
* Delete task hyper parameters
* @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.
@@ -623,7 +688,97 @@ export class ApiTasksService {
}
/**
*
*
* Delete 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 tasksDeleteMany(request: TasksDeleteManyRequest, 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 tasksDeleteMany.');
}
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<TasksDeleteManyResponse>(`${this.basePath}/tasks.delete_many`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* Delete models from task
* @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 tasksDeleteModels(request: TasksDeleteModelsRequest, 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 tasksDeleteModels.');
}
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<TasksDeleteModelsResponse>(`${this.basePath}/tasks.delete_models`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* Remove a task from its queue. Fails if task status is not queued.
* @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.
@@ -668,7 +823,52 @@ export class ApiTasksService {
}
/**
*
*
* Dequeue 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 tasksDequeueMany(request: TasksDequeueManyRequest, 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 tasksDequeueMany.');
}
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<TasksDequeueManyResponse>(`${this.basePath}/tasks.dequeue_many`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* Edit task\&#39;s details.
* @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.
@@ -713,7 +913,7 @@ export class ApiTasksService {
}
/**
*
*
* Add or update task configuration
* @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.
@@ -758,7 +958,7 @@ export class ApiTasksService {
}
/**
*
*
* Add or update task hyper parameters
* @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.
@@ -803,7 +1003,7 @@ export class ApiTasksService {
}
/**
*
*
* Adds a task into a queue. Fails if task state is not \&#39;created\&#39;. Fails if the following parameters in the task were not filled: * execution.script.repository * execution.script.entrypoint
* @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.
@@ -848,7 +1048,52 @@ export class ApiTasksService {
}
/**
*
*
* Enqueue 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 tasksEnqueueMany(request: TasksEnqueueManyRequest, 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 tasksEnqueueMany.');
}
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<TasksEnqueueManyResponse>(`${this.basePath}/tasks.enqueue_many`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* Indicates that task has failed
* @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.
@@ -893,7 +1138,7 @@ export class ApiTasksService {
}
/**
*
*
* Get all the company\&#39;s tasks and all public 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.
@@ -938,7 +1183,7 @@ export class ApiTasksService {
}
/**
*
*
* Get all the company\&#39;s tasks and all public 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.
@@ -983,7 +1228,7 @@ export class ApiTasksService {
}
/**
*
*
* Gets task information
* @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.
@@ -1028,7 +1273,7 @@ export class ApiTasksService {
}
/**
*
*
* Get all the company\&#39;s tasks and all public 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.
@@ -1073,7 +1318,7 @@ export class ApiTasksService {
}
/**
*
*
* Get the list of task configuration items names
* @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.
@@ -1118,7 +1363,7 @@ export class ApiTasksService {
}
/**
*
*
* Get the list of task configurations
* @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.
@@ -1163,7 +1408,7 @@ export class ApiTasksService {
}
/**
*
*
* Get the list of task hyper parameters
* @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.
@@ -1208,7 +1453,7 @@ export class ApiTasksService {
}
/**
*
*
* Get the list of task types used in the specified projects
* @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.
@@ -1253,7 +1498,52 @@ export class ApiTasksService {
}
/**
*
*
* Move tasks 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 tasksMove(request: TasksMoveRequest, 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 tasksMove.');
}
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<object>(`${this.basePath}/tasks.move`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* Refresh the task\&#39;s last update time
* @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.
@@ -1298,7 +1588,7 @@ export class ApiTasksService {
}
/**
*
*
* Mark a task status as published. For Annotation tasks - if any changes were committed by this task, a new version in the dataset together with an output view are created. For Training tasks - if a model was created, it should be set to ready.
* @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.
@@ -1343,7 +1633,52 @@ export class ApiTasksService {
}
/**
*
*
* Publish 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 tasksPublishMany(request: TasksPublishManyRequest, 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 tasksPublishMany.');
}
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<TasksPublishManyResponse>(`${this.basePath}/tasks.publish_many`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* Reset a task to its initial state, along with any information stored for it (statistics, frame updates etc.).
* @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.
@@ -1388,7 +1723,52 @@ export class ApiTasksService {
}
/**
*
*
* Reset 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 tasksResetMany(request: TasksResetManyRequest, 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 tasksResetMany.');
}
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<TasksResetManyResponse>(`${this.basePath}/tasks.reset_many`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* Set the script requirements for a task
* @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.
@@ -1433,7 +1813,7 @@ export class ApiTasksService {
}
/**
*
*
* Share or unshare 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.
@@ -1478,7 +1858,7 @@ export class ApiTasksService {
}
/**
*
*
* Mark a task status as in_progress. Optionally allows to set the task\&#39;s execution progress.
* @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.
@@ -1523,7 +1903,7 @@ export class ApiTasksService {
}
/**
*
*
* Request to stop a running task
* @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.
@@ -1568,7 +1948,52 @@ export class ApiTasksService {
}
/**
*
*
* Request to stop running 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 tasksStopMany(request: TasksStopManyRequest, 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 tasksStopMany.');
}
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<TasksStopManyResponse>(`${this.basePath}/tasks.stop_many`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* Signal a task has stopped
* @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.
@@ -1613,7 +2038,52 @@ export class ApiTasksService {
}
/**
*
*
* Unarchive 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 tasksUnarchiveMany(request: TasksUnarchiveManyRequest, 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 tasksUnarchiveMany.');
}
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<TasksUnarchiveManyResponse>(`${this.basePath}/tasks.unarchive_many`,
request,
{
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
}
);
}
/**
*
* Update task\&#39;s runtime parameters
* @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.
@@ -1658,7 +2128,7 @@ export class ApiTasksService {
}
/**
*
*
* Updates a batch of tasks. Headers Content type should be \&#39;application/json- lines\&#39;.
* @param requests Json encoded newline-terminated lines, each representing an event in the batch and uses the same parameters used for tasks.update
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
@@ -1703,7 +2173,7 @@ export class ApiTasksService {
}
/**
*
*
* Validate task properties (before create)
* @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.

View File

@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
import {HTTP} from '../../app.constants';
import {SmApiRequestsService} from "./api-requests.service";

View File

@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
import {HTTP} from '../../app.constants';
import {SmApiRequestsService} from "./api-requests.service";

View File

@@ -1,13 +1,16 @@
import {AuthFixedUsersModeResponse} from './auth/authFixedUsersModeResponse';
export interface LoginModeResponse extends AuthFixedUsersModeResponse {
authenticated?: boolean;
// eslint-disable-next-line @typescript-eslint/naming-convention
server_errors?: {missed_es_upgrade: boolean; es_connection_error: boolean};
basic?: {
enabled?: boolean;
guest?: {enabled: boolean; username: string; password: string}
guest?: {enabled: boolean; username: string; password: string};
};
sso?: { [key: string]: string }[];
sso_providers?: { name: string; url: string }[];
// eslint-disable-next-line @typescript-eslint/naming-convention
sso_providers?: { name: string; url: string; display_name?: string; displayName?: string }[];
}

View File

@@ -9,103 +9,19 @@
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import {Output} from './tasks/output';
import {Script} from './tasks/script';
import {TaskStatusEnum} from './tasks/taskStatusEnum';
import {TaskTypeEnum} from './tasks/taskTypeEnum';
import {User} from './users/user';
import {Project} from './projects/project';
import {IExecution} from '../../webapp-common/core/models/model-data';
import { Task } from './tasks/task';
import {IExecution} from '../../core/models/model-data';
import {ItaskOutput} from '@common/core/models/model-data';
import {GetCurrentUserResponseUserObjectCompany} from './users/getCurrentUserResponseUserObjectCompany';
export interface ITask {
/**
* Task id
*/
id?: string;
/**
* Task Name
*/
name?: string;
/**
* Associated user id
*/
export interface ITask extends Omit<Task, 'user' | 'parent' | 'project' | 'execution' | 'output' | 'company'> {
user?: User;
/**
* Company ID
*/
company?: string;
/**
* Type of task. Values: 'dataset_import', 'annotation', 'training', 'testing'
*/
type?: TaskTypeEnum;
/**
*
*/
status?: TaskStatusEnum;
/**
* Free text comment
*/
comment?: string;
/**
* Task creation time (UTC)
*/
created?: Date;
/**
* Task start time (UTC)
*/
started?: Date;
/**
* Task end time (UTC)
*/
completed?: Date;
/**
* Parent task id
*/
parent?: string | ITask;
/**
* Project ID of the project to which this task is assigned
*/
project?: Project;
/**
* Task output params
*/
output?: Output;
/**
* Task execution params
*/
execution?: IExecution;
/**
* Script info
*/
script?: Script;
/**
* Tags list
*/
tags?: Array<string>;
system_tags?: string[];
/**
* Last status change time
*/
status_changed?: Date;
/**
* free text string representing info about the status
*/
status_message?: string;
/**
* Reason for last status change
*/
status_reason?: string;
/**
* Last status change time
*/
published?: Date;
/**
* ID of last worker that handled the task
*/
last_worker?: string;
/**
* Last time a worker reported while working on this task
*/
last_worker_report?: Date;
output: ItaskOutput;
company: GetCurrentUserResponseUserObjectCompany;
}

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.12
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -29,6 +29,11 @@ export interface Invite {
* Time invite was accepted
*/
accepted?: Date;
user?: {
id: string;
role: string;
name: string;
};
}
export namespace Invite {
export type StatusEnum = 'pending' | 'accepted' | 'timed_out';

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.12
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.12
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@@ -0,0 +1,20 @@
/**
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 LoginAddWhitelistEntriesRequest {
/**
* Emails for which new entries should be created.
*/
emails?: Array<string>;
}

View File

@@ -0,0 +1,20 @@
/**
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 LoginAddWhitelistEntriesResponse {
/**
* Emails for which new entries were actually added.
*/
added?: Array<string>;
}

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -16,5 +16,5 @@ export interface LoginGetInviteInfoRequest {
/**
* ID of the invite
*/
invite_id?: string;
invite_id: string;
}

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
import { Invite } from './invite';
import { WhitelistEntry } from '././whitelistEntry';
export interface LoginGetSettingsResponse {
@@ -19,7 +19,7 @@ export interface LoginGetSettingsResponse {
*/
domains?: Array<string>;
/**
* Invite entries
* Whitelist entries
*/
invites?: Array<Invite>;
whitelist_entries?: Array<WhitelistEntry>;
}

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
import { LoginWhiteListV15 } from './loginWhiteListV15';
import { LoginWhiteListV15 } from '././loginWhiteListV15';
export interface LoginGetWhitelistResponse {

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.12
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -15,7 +15,7 @@
export interface LoginJoinCompanyRequest {
invite_id: string;
/**
* Return the generated token in this call's result (token is always embedded in the session)
* Return the generated token in this call\'s result (token is always embedded in the session)
*/
return_token?: boolean;
}

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.12
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.12
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -13,9 +13,9 @@
export interface LoginLeaveCompanyRequest {
company_id?: string;
company_id: string;
/**
* Return the generated token in this call's result (token is always embedded in the session)
* Return the generated token in this call\'s result (token is always embedded in the session)
*/
return_token?: boolean;
}

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.12
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@@ -0,0 +1,24 @@
/**
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 LoginLogoutRequest {
/**
* Redirect URL to use in the provider\'s logout flow
*/
redirect_url?: string;
/**
* Provider key in case call is not authenticated
*/
provider?: string;
}

View File

@@ -0,0 +1,20 @@
/**
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 LoginLogoutResponse {
/**
* Provider logout flow redirect URL for the caller to follow
*/
redirect_url?: string;
}

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.12
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.12
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@@ -0,0 +1,20 @@
/**
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 LoginRemoveWhitelistEntriesRequest {
/**
* Emails for which whitelist entries should be removed.
*/
emails?: Array<string>;
}

View File

@@ -0,0 +1,20 @@
/**
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 LoginRemoveWhitelistEntriesResponse {
/**
* Emails for which white list entries were actually removed.
*/
removed?: Array<string>;
}

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -10,12 +10,13 @@
* Do not edit the class manually.
*/
import { LoginSignupUserRequestSignupData } from '././loginSignupUserRequestSignupData';
export interface LoginSignupUserRequest {
signup_data?: any;
signup_data: LoginSignupUserRequestSignupData;
/**
* Return the generated token in this call's result (token is always embedded in the session)
* Return the generated token in this call\'s result (token is always embedded in the session)
*/
return_token?: boolean;
}

View File

@@ -0,0 +1,53 @@
/**
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 { LoginSignupUserRequestSignupDataCrmFormData } from '././loginSignupUserRequestSignupDataCrmFormData';
/**
* Info for the user sign up
*/
export interface LoginSignupUserRequestSignupData {
/**
* Sign-up token recieved from the sso_callback call. This field is required
*/
signup_token?: string;
/**
* Company name for the user. This field is required. In case the user was invited to join the company this field cannot be changed
*/
company_name?: string;
/**
* The user full name. This field is required
*/
name?: string;
/**
* The user given name
*/
given_name?: string;
/**
* The user family name
*/
family_name?: string;
/**
* The user email
*/
email?: string;
/**
* The user avatar
*/
avatar?: string;
crm_form_data?: LoginSignupUserRequestSignupDataCrmFormData;
/**
* The user additional info
*/
additional_info?: object;
}

View File

@@ -0,0 +1,31 @@
/**
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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.
*/
/**
* The user data for the CRM system
*/
export interface LoginSignupUserRequestSignupDataCrmFormData {
/**
* The ID of the form
*/
form_id?: string;
/**
* The ID of the portal
*/
portal_id?: string;
/**
* The filled form data
*/
form_data?: string;
}

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -14,6 +14,7 @@
export interface LoginSignupUserResponse {
user_id?: string;
company_id?: string;
company_name?: string;
token?: string;
}

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.12
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -16,25 +16,21 @@ export interface LoginSsoCallbackRequest {
/**
* SSO Provider name (id)
*/
provider?: string;
provider: string;
/**
* Redirected callback args
*/
args?: { [key: string]: string; };
args: { [key: string]: string; };
/**
* Callback URL for this provider
*/
callback_url?: string;
callback_url: string;
/**
* Return the generated token in this call's result (token is always embedded in the session)
* Return the generated token in this call\'s result (token is always embedded in the session)
*/
return_token?: boolean;
/**
* If set to 'true' then the user is peforming signup. Otherwise login.
* If set to \'true\' then the user is peforming signup. Otherwise login.
*/
signup_flow?: boolean;
/**
* Invite to the specific company. Can be passed only in the signup flow
*/
invite_id?: string;
}

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -10,12 +10,15 @@
* Do not edit the class manually.
*/
import { SignupInfo } from './signupInfo';
import { SignupInfo } from '././signupInfo';
export interface LoginSsoCallbackResponse {
user_id?: string;
company_name?: string;
/**
* The id of the company that the user logged into
*/
company_id?: string;
token?: string;
/**
* The status of the login. Indicates whether the user was logged in or sign up required
@@ -24,8 +27,9 @@ export interface LoginSsoCallbackResponse {
signup_info?: SignupInfo;
}
export namespace LoginSsoCallbackResponse {
export type LoginStatusEnum = 'logged_in signup_required';
export type LoginStatusEnum = 'logged_in' | 'signup_required';
export const LoginStatusEnum = {
LoggedInSignupRequired: 'logged_in signup_required' as LoginStatusEnum
}
LoggedIn: 'logged_in' as LoginStatusEnum,
SignupRequired: 'signup_required' as LoginStatusEnum
};
}

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -10,12 +10,22 @@
* Do not edit the class manually.
*/
import { LoginSupportedModesResponseBasic } from '././loginSupportedModesResponseBasic';
import { LoginSupportedModesResponseSsoProviders } from '././loginSupportedModesResponseSsoProviders';
export interface LoginSupportedModesResponse {
basic?: object;
basic?: LoginSupportedModesResponseBasic;
/**
* SSO authentication providers
*/
sso?: { [key: string]: string; };
sso?: object;
/**
* The list of SSO authentication providers
*/
sso_providers?: Array<LoginSupportedModesResponseSsoProviders>;
/**
* True if free signup is allowed on the server (i.e. any user verified by an SSO provider can create an account)
*/
free_signup?: boolean;
}

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -10,12 +10,13 @@
* Do not edit the class manually.
*/
import { LoginSupportedModesResponseBasicGuest } from '././loginSupportedModesResponseBasicGuest';
export interface LoginSupportedModesResponseBasic {
/**
* Basic aothentication (fixed users mode) mode enabled
* Basic authentication (fixed users mode) mode enabled
*/
enabled?: boolean;
guest?: object;
guest?: LoginSupportedModesResponseBasicGuest;
}

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -14,7 +14,7 @@
export interface LoginSupportedModesResponseBasicGuest {
/**
* Basic aothentication guest mode enabled
* Basic authentication guest mode enabled
*/
enabled?: boolean;
/**

View File

@@ -0,0 +1,24 @@
/**
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 LoginSupportedModesResponseSsoProviders {
/**
* The name of the sso provider
*/
name?: string;
/**
* The URL of the sso provider
*/
url?: string;
}

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
import { LoginWhiteListEmailEntry } from './loginWhiteListEmailEntry';
import { LoginWhiteListEmailEntry } from '././loginWhiteListEmailEntry';
export interface LoginWhiteList {

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -20,5 +20,5 @@ export interface LoginWhiteListEmailEntry {
/**
* The time this email entry was added
*/
added?: Date;
added?: string;
}

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.11
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -10,7 +10,7 @@
* Do not edit the class manually.
*/
import { LoginWhiteListEmailEntry } from './loginWhiteListEmailEntry';
import { LoginWhiteListEmailEntry } from '././loginWhiteListEmailEntry';
export interface LoginWhiteListV15 {

View File

@@ -1,25 +1,35 @@
export * from './invite';
export * from './loginAddInvitesRequest';
export * from './loginAddInvitesResponse';
export * from './loginGetInviteInfoRequest';
export * from './loginGetInviteInfoResponse';
export * from './loginGetSettingsResponse';
export * from './loginGetWhitelistRequest';
export * from './loginGetWhitelistResponse';
export * from './loginRemoveInvitesRequest';
export * from './loginRemoveInvitesResponse';
export * from './loginSetDomainsRequest';
export * from './loginSignupUserRequest';
export * from './loginSignupUserResponse';
export * from './loginSsoAuthorizeRequest';
export * from './loginSsoAuthorizeResponse';
export * from './loginSsoCallbackRequest';
export * from './loginSsoCallbackResponse';
export * from './loginSupportedModesRequest';
export * from './loginSupportedModesResponse';
export * from './loginSupportedModesResponseBasic';
export * from './loginSupportedModesResponseBasicGuest';
export * from './loginWhiteList';
export * from './loginWhiteListEmailEntry';
export * from './loginWhiteListV15';
export * from './signupInfo';
export * from '././loginAddWhitelistEntriesRequest';
export * from '././loginAddWhitelistEntriesResponse';
export * from '././loginGetInviteInfoRequest';
export * from '././loginGetInviteInfoResponse';
export * from '././loginGetSettingsResponse';
export * from '././loginGetWhitelistRequest';
export * from '././loginGetWhitelistResponse';
export * from '././loginJoinCompanyRequest';
export * from '././loginJoinCompanyResponse';
export * from '././loginLeaveCompanyRequest';
export * from '././loginLeaveCompanyResponse';
export * from '././loginLogoutRequest';
export * from '././loginLogoutResponse';
export * from '././loginRemoveWhitelistEntriesRequest';
export * from '././loginRemoveWhitelistEntriesResponse';
export * from '././loginSetDomainsRequest';
export * from '././loginSignupUserRequest';
export * from '././loginSignupUserRequestSignupData';
export * from '././loginSignupUserRequestSignupDataCrmFormData';
export * from '././loginSignupUserResponse';
export * from '././loginSsoAuthorizeRequest';
export * from '././loginSsoAuthorizeResponse';
export * from '././loginSsoCallbackRequest';
export * from '././loginSsoCallbackResponse';
export * from '././loginSupportedModesRequest';
export * from '././loginSupportedModesResponse';
export * from '././loginSupportedModesResponseBasic';
export * from '././loginSupportedModesResponseBasicGuest';
export * from '././loginSupportedModesResponseSsoProviders';
export * from '././loginWhiteList';
export * from '././loginWhiteListEmailEntry';
export * from '././loginWhiteListV15';
export * from '././signupInfo';
export * from '././whitelistEntry';
export * from '././whitelistEntryUser';

View File

@@ -2,7 +2,7 @@
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.12
* OpenAPI spec version: 2.13
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -41,6 +41,12 @@ export interface SignupInfo {
* Company name for the user. In case the user was invited to join the company this field cannot be changed
*/
company_name?: string;
// (nir) added manually
crm_form: string;
/**
* The crm form template for the user signup
*/
crm_form?: string;
/**
* App state stored until email was verified
*/
email_verify_state?: string;
}

View File

@@ -0,0 +1,41 @@
/**
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 { WhitelistEntryUser } from '././whitelistEntryUser';
export interface WhitelistEntry {
/**
* Email address
*/
email?: string;
/**
* Time that the entry was added
*/
added?: string;
/**
* Entry status
*/
status?: WhitelistEntry.StatusEnum;
/**
* Time the entry was accepted
*/
accepted?: string;
user?: WhitelistEntryUser;
}
export namespace WhitelistEntry {
export type StatusEnum = 'pending' | 'accepted';
export const StatusEnum = {
Pending: 'pending' as StatusEnum,
Accepted: 'accepted' as StatusEnum
}
}

View File

@@ -0,0 +1,40 @@
/**
* login
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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.
*/
/**
* The user info (if the user was created)
*/
export interface WhitelistEntryUser {
/**
* The user ID
*/
id?: string;
/**
* The user full name
*/
name?: string;
/**
* The user role
*/
role?: WhitelistEntryUser.RoleEnum;
}
export namespace WhitelistEntryUser {
export type RoleEnum = 'admin' | 'superuser' | 'user' | 'annotator';
export const RoleEnum = {
Admin: 'admin' as RoleEnum,
Superuser: 'superuser' as RoleEnum,
User: 'user' as RoleEnum,
Annotator: 'annotator' as RoleEnum
}
}

View File

@@ -0,0 +1,21 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ModelsAddOrUpdateMetadataRequest {
/**
* ID of the model
*/
model: string;
metadata: Array<any>;
}

View File

@@ -0,0 +1,20 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ModelsAddOrUpdateMetadataResponse {
/**
* Number of models updated (0 or 1)
*/
updated?: number;
}

View File

@@ -0,0 +1,20 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ModelsArchiveManyRequest {
/**
* IDs of the models to archive
*/
ids: Array<string>;
}

View File

@@ -0,0 +1,20 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 { ModelsPublishManyResponseFailed } from '././modelsPublishManyResponseFailed';
import { ModelsArchiveManyResponseSucceeded } from '././modelsArchiveManyResponseSucceeded';
export interface ModelsArchiveManyResponse {
succeeded?: Array<ModelsArchiveManyResponseSucceeded>;
failed?: Array<ModelsPublishManyResponseFailed>;
}

View File

@@ -0,0 +1,24 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ModelsArchiveManyResponseSucceeded {
/**
* ID of the succeeded entity
*/
id?: string;
/**
* Indicates whether the model was archived
*/
archived?: boolean;
}

View File

@@ -0,0 +1,24 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ModelsDeleteManyRequest {
/**
* IDs of the models to delete
*/
ids: Array<string>;
/**
* Force. Required if there are tasks that use the model as an execution model, or if the model\'s creating task is published.
*/
force?: boolean;
}

View File

@@ -0,0 +1,20 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 { ModelsPublishManyResponseFailed } from '././modelsPublishManyResponseFailed';
import { ModelsDeleteManyResponseSucceeded } from '././modelsDeleteManyResponseSucceeded';
export interface ModelsDeleteManyResponse {
succeeded?: Array<ModelsDeleteManyResponseSucceeded>;
failed?: Array<ModelsPublishManyResponseFailed>;
}

View File

@@ -0,0 +1,28 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ModelsDeleteManyResponseSucceeded {
/**
* ID of the succeeded entity
*/
id?: string;
/**
* Indicates whether the model was deleted
*/
deleted?: boolean;
/**
* The url of the model file
*/
url?: string;
}

View File

@@ -0,0 +1,24 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ModelsDeleteMetadataRequest {
/**
* ID of the model
*/
model: string;
/**
* The list of metadata keys to delete
*/
keys: Array<string>;
}

View File

@@ -0,0 +1,20 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ModelsDeleteMetadataResponse {
/**
* Number of models updated (0 or 1)
*/
updated?: number;
}

View File

@@ -17,4 +17,5 @@ export interface ModelsDeleteResponse {
* Indicates whether the model was deleted
*/
deleted?: boolean;
url?: string;
}

View File

@@ -50,6 +50,7 @@ export interface ModelsGetAllExRequest {
* List of associated project IDs
*/
project?: Array<string>;
include_subprojects?: boolean;
/**
* 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
*/

View File

@@ -0,0 +1,20 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ModelsMakePrivateRequest {
/**
* Ids of the models to convert. Only the models originated by the company can be converted
*/
ids?: Array<string>;
}

View File

@@ -0,0 +1,20 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ModelsMakePrivateResponse {
/**
* Number of models updated
*/
updated?: number;
}

View File

@@ -0,0 +1,20 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ModelsMakePublicRequest {
/**
* Ids of the models to convert
*/
ids?: Array<string>;
}

View File

@@ -0,0 +1,20 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ModelsMakePublicResponse {
/**
* Number of models updated
*/
updated?: number;
}

View File

@@ -0,0 +1,28 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ModelsPublishManyRequest {
/**
* IDs of the models to publish
*/
ids: Array<string>;
/**
* Publish the associated tasks (if exist) even if they are not in the \'stopped\' state. Optional, the default value is False.
*/
force_publish_task?: boolean;
/**
* Indicates that the associated tasks (if exist) should be published. Optional, the default value is True.
*/
publish_tasks?: boolean;
}

View File

@@ -0,0 +1,20 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 { ModelsPublishManyResponseSucceeded } from '././modelsPublishManyResponseSucceeded';
import { ModelsPublishManyResponseFailed } from '././modelsPublishManyResponseFailed';
export interface ModelsPublishManyResponse {
succeeded?: Array<ModelsPublishManyResponseSucceeded>;
failed?: Array<ModelsPublishManyResponseFailed>;
}

View File

@@ -0,0 +1,31 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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.
*/
/**
* Data returned from the task publishing operation.
*/
export interface ModelsPublishManyResponseData {
/**
* Updated fields names and values
*/
fields?: any;
/**
* Number of tasks updated (0 or 1)
*/
updated?: number;
/**
* Committed versions results
*/
committed_versions_results?: Array<any>;
}

View File

@@ -0,0 +1,22 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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.
*/
/**
* Error info
*/
export interface ModelsPublishManyResponseError {
codes?: Array<number>;
msg?: string;
data?: object;
}

View File

@@ -0,0 +1,22 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 { ModelsPublishManyResponseError } from '././modelsPublishManyResponseError';
export interface ModelsPublishManyResponseFailed {
/**
* ID of the failed entity
*/
id?: string;
error?: ModelsPublishManyResponseError;
}

View File

@@ -0,0 +1,21 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ModelsPublishManyResponseFailures {
/**
* ID of the failed entity
*/
id?: string;
error?: any;
}

View File

@@ -0,0 +1,25 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 { ModelsPublishManyResponsePublishedTaskData } from '././modelsPublishManyResponsePublishedTaskData';
/**
* Result of publishing of the model\'s associated task (if exists). Returned only if the task was published successfully as part of the model publishing.
*/
export interface ModelsPublishManyResponsePublishedTask {
/**
* Task id
*/
id?: string;
data?: ModelsPublishManyResponsePublishedTaskData;
}

View File

@@ -0,0 +1,31 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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.
*/
/**
* Data returned from the task publishing operation.
*/
export interface ModelsPublishManyResponsePublishedTaskData {
/**
* Committed versions results
*/
committed_versions_results?: Array<object>;
/**
* Number of tasks updated (0 or 1)
*/
updated?: number;
/**
* Updated fields names and values
*/
fields?: object;
}

View File

@@ -0,0 +1,24 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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.
*/
/**
* Result of publishing of the model's associated task (if exists). Returned only if the task was published successfully as part of the model publishing.
*/
export interface ModelsPublishManyResponsePublishedTasks {
data?: any;
/**
* Task id
*/
id?: string;
}

View File

@@ -0,0 +1,26 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 { ModelsPublishManyResponsePublishedTask } from '././modelsPublishManyResponsePublishedTask';
export interface ModelsPublishManyResponseSucceeded {
/**
* ID of the succeeded entity
*/
id?: string;
/**
* Indicates whether the model was updated
*/
updated?: boolean;
published_task?: ModelsPublishManyResponsePublishedTask;
}

View File

@@ -0,0 +1,20 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ModelsUnarchiveManyRequest {
/**
* IDs of the models to unarchive
*/
ids: Array<string>;
}

View File

@@ -0,0 +1,20 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 { ModelsPublishManyResponseFailed } from '././modelsPublishManyResponseFailed';
import { ModelsUnarchiveManyResponseSucceeded } from '././modelsUnarchiveManyResponseSucceeded';
export interface ModelsUnarchiveManyResponse {
succeeded?: Array<ModelsUnarchiveManyResponseSucceeded>;
failed?: Array<ModelsPublishManyResponseFailed>;
}

View File

@@ -0,0 +1,24 @@
/**
* models
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 ModelsUnarchiveManyResponseSucceeded {
/**
* ID of the succeeded entity
*/
id?: string;
/**
* Indicates whether the model was unarchived
*/
unarchived?: boolean;
}

View File

@@ -0,0 +1,28 @@
/**
* organization
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.13
*
*
* 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 OrganizationGetUserCompaniesResponseOwners {
/**
* User ID
*/
id?: string;
/**
* User Name
*/
name?: string;
/**
* User avatar (URL or base64-encoded data)
*/
avatar?: string;
}

View File

@@ -2,7 +2,7 @@
* projects
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.9
* OpenAPI spec version: 2.12
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@@ -10,6 +10,7 @@ export * from './projectsGetAllExResponse';
export * from './projectsGetAllRequest';
export * from './projectsGetAllResponse';
export * from './projectsGetAllResponseSingle';
export * from './projectsGetAllResponseSingleSubProjects';
export * from './projectsGetByIdRequest';
export * from './projectsGetByIdResponse';
export * from './projectsGetHyperParametersRequest';
@@ -21,6 +22,10 @@ export * from './projectsGetTaskTagsRequestFilter';
export * from './projectsGetTaskTagsResponse';
export * from './projectsGetUniqueMetricVariantsRequest';
export * from './projectsGetUniqueMetricVariantsResponse';
export * from './projectsMergeRequest';
export * from './projectsMergeResponse';
export * from './projectsMoveRequest';
export * from './projectsMoveResponse';
export * from './projectsUpdateRequest';
export * from './projectsUpdateResponse';
export * from './stats';

View File

@@ -2,7 +2,7 @@
* projects
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.9
* OpenAPI spec version: 2.12
*
*
* NOTE: This class is auto generated by the swagger code generator program.

View File

@@ -2,7 +2,7 @@
* projects
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.9
* OpenAPI spec version: 2.12
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -32,7 +32,7 @@ export interface Project {
/**
* Company id
*/
company?: string;
company?: {id: string; name?: string};
/**
* Creation time
*/
@@ -42,7 +42,7 @@ export interface Project {
*/
tags?: Array<string>;
/**
* System tags. This field is reserved for system use, please don\'t use it.
* System tags. This field is reserved for system use, please don't use it.
*/
system_tags?: Array<string>;
/**
@@ -53,4 +53,8 @@ export interface Project {
* Last project update time. Reflects the last time the project metadata was changed or a task in this project has changed status
*/
last_update?: Date;
sub_projects?: string[];
own_tasks?: number;
own_models?: number;
}

View File

@@ -2,7 +2,7 @@
* projects
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.9
* OpenAPI spec version: 2.12
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -26,7 +26,7 @@ export interface ProjectsCreateRequest {
*/
tags?: Array<string>;
/**
* System tags. This field is reserved for system use, please don\'t use it.
* System tags. This field is reserved for system use, please don't use it.
*/
system_tags?: Array<string>;
/**

View File

@@ -2,7 +2,7 @@
* projects
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 2.9
* OpenAPI spec version: 2.12
*
*
* NOTE: This class is auto generated by the swagger code generator program.

Some files were not shown because too many files have changed in this diff Show More