diff --git a/openapitools.json b/openapitools.json
new file mode 100644
index 00000000..7f8d0939
--- /dev/null
+++ b/openapitools.json
@@ -0,0 +1,7 @@
+{
+ "$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
+ "spaces": 2,
+ "generator-cli": {
+ "version": "6.2.0"
+ }
+}
diff --git a/package-lock.json b/package-lock.json
index acbbdb8e..77901fcf 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -37,6 +37,8 @@
"depcheck": "^1.4.2",
"domsanitizer": "^0.2.3",
"monaco-editor": "^0.34.1",
+ "ng-for-track-by-property": "^14.0.0",
+ "ng-table-virtual-scroll": "~1.3.8",
"ngx-clipboard": "^15.1.0",
"oidc-client": "^1.11.5",
"rxjs": "^6.6.7",
@@ -57,6 +59,7 @@
"@types/jasminewd2": "^2.0.10",
"@types/node": "^16.4.11",
"codelyzer": "^6.0.2",
+ "cross-env": "^7.0.3",
"cross-var": "^1.1.0",
"jasmine-core": "^3.8.0",
"jasmine-spec-reporter": "^7.0.0",
@@ -68,6 +71,7 @@
"ng-packagr": "^14.2.2",
"prettier": "^2.7.1",
"protractor": "^7.0.0",
+ "rimraf": "^3.0.2",
"rxjs-tslint-rules": "^4.34.8",
"rxjs-watcher": "^1.1.3",
"ts-node": "^10.1.0",
@@ -7740,6 +7744,74 @@
"node": ">=8"
}
},
+ "node_modules/cross-env": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
+ "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
+ "dev": true,
+ "dependencies": {
+ "cross-spawn": "^7.0.1"
+ },
+ "bin": {
+ "cross-env": "src/bin/cross-env.js",
+ "cross-env-shell": "src/bin/cross-env-shell.js"
+ },
+ "engines": {
+ "node": ">=10.14",
+ "npm": ">=6",
+ "yarn": ">=1"
+ }
+ },
+ "node_modules/cross-env/node_modules/cross-spawn": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
+ "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+ "dev": true,
+ "dependencies": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
+ "node_modules/cross-env/node_modules/shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "dependencies": {
+ "shebang-regex": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cross-env/node_modules/shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true,
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/cross-env/node_modules/which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "dependencies": {
+ "isexe": "^2.0.0"
+ },
+ "bin": {
+ "node-which": "bin/node-which"
+ },
+ "engines": {
+ "node": ">= 8"
+ }
+ },
"node_modules/cross-spawn": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",
@@ -12394,6 +12466,18 @@
"integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
"dev": true
},
+ "node_modules/ng-for-track-by-property": {
+ "version": "14.0.2",
+ "resolved": "https://registry.npmjs.org/ng-for-track-by-property/-/ng-for-track-by-property-14.0.2.tgz",
+ "integrity": "sha512-GtVUx9LeYnWlPFKUqbKSuni2y3PnkWkJonyrpmlk8XYM8sIVBSO6QclXoXqVYSXGW3xOnoQyc2t6kabsx5yj3A==",
+ "dependencies": {
+ "tslib": "^2.3.0"
+ },
+ "peerDependencies": {
+ "@angular/common": "^14.0.0",
+ "@angular/core": "^14.0.0"
+ }
+ },
"node_modules/ng-packagr": {
"version": "14.2.2",
"resolved": "https://registry.npmjs.org/ng-packagr/-/ng-packagr-14.2.2.tgz",
@@ -12498,6 +12582,20 @@
"tslib": "^2.1.0"
}
},
+ "node_modules/ng-table-virtual-scroll": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmjs.org/ng-table-virtual-scroll/-/ng-table-virtual-scroll-1.3.8.tgz",
+ "integrity": "sha512-8FvAQ0INvWLKHxxsw9X7GRbOrW45+2GK2G/UIHT2b0weZGvZcgtwzpC9ipCfuVngw+cW61m1B9fU4Cfej2bF2A==",
+ "dependencies": {
+ "tslib": "^2.0.0"
+ },
+ "peerDependencies": {
+ "@angular/cdk": ">=6.0.0",
+ "@angular/common": ">=6.0.0",
+ "@angular/core": ">=6.0.0",
+ "@angular/material": ">=6.0.0"
+ }
+ },
"node_modules/ngx-clipboard": {
"version": "15.1.0",
"resolved": "https://registry.npmjs.org/ngx-clipboard/-/ngx-clipboard-15.1.0.tgz",
@@ -23977,6 +24075,52 @@
}
}
},
+ "cross-env": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
+ "integrity": "sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==",
+ "dev": true,
+ "requires": {
+ "cross-spawn": "^7.0.1"
+ },
+ "dependencies": {
+ "cross-spawn": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
+ "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==",
+ "dev": true,
+ "requires": {
+ "path-key": "^3.1.0",
+ "shebang-command": "^2.0.0",
+ "which": "^2.0.1"
+ }
+ },
+ "shebang-command": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
+ "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",
+ "dev": true,
+ "requires": {
+ "shebang-regex": "^3.0.0"
+ }
+ },
+ "shebang-regex": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",
+ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",
+ "dev": true
+ },
+ "which": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",
+ "dev": true,
+ "requires": {
+ "isexe": "^2.0.0"
+ }
+ }
+ }
+ },
"cross-spawn": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",
@@ -27483,6 +27627,14 @@
"integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",
"dev": true
},
+ "ng-for-track-by-property": {
+ "version": "14.0.2",
+ "resolved": "https://registry.npmjs.org/ng-for-track-by-property/-/ng-for-track-by-property-14.0.2.tgz",
+ "integrity": "sha512-GtVUx9LeYnWlPFKUqbKSuni2y3PnkWkJonyrpmlk8XYM8sIVBSO6QclXoXqVYSXGW3xOnoQyc2t6kabsx5yj3A==",
+ "requires": {
+ "tslib": "^2.3.0"
+ }
+ },
"ng-packagr": {
"version": "14.2.2",
"resolved": "https://registry.npmjs.org/ng-packagr/-/ng-packagr-14.2.2.tgz",
@@ -27564,6 +27716,14 @@
}
}
},
+ "ng-table-virtual-scroll": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmjs.org/ng-table-virtual-scroll/-/ng-table-virtual-scroll-1.3.8.tgz",
+ "integrity": "sha512-8FvAQ0INvWLKHxxsw9X7GRbOrW45+2GK2G/UIHT2b0weZGvZcgtwzpC9ipCfuVngw+cW61m1B9fU4Cfej2bF2A==",
+ "requires": {
+ "tslib": "^2.0.0"
+ }
+ },
"ngx-clipboard": {
"version": "15.1.0",
"resolved": "https://registry.npmjs.org/ngx-clipboard/-/ngx-clipboard-15.1.0.tgz",
diff --git a/package.json b/package.json
index d27cff42..543fe7ba 100644
--- a/package.json
+++ b/package.json
@@ -12,7 +12,9 @@
"docker:destroy": "// Destroys the docker stack, data retained"
},
"config": {
- "port": "4310"
+ "port": "4310",
+ "openapiArgs": "--additional-properties ngVersion=14.2 --additional-properties modelPropertyNaming=original",
+ "deleteGeneratedCommand": "rimraf src/app/generated/caster-api/*"
},
"scripts": {
"ng": "ng",
@@ -22,8 +24,8 @@
"lint": "ng lint caster-ui",
"e2e": "ng e2e caster-ui",
"postinstall": "ngcc",
- "swagger:gen": "curl --insecure http://localhost:4309/swagger/v1/swagger.json --output swagger.json && node_modules/@openapitools/openapi-generator-cli/bin/openapi-generator generate -i ./swagger.json -g typescript-angular -o src/app/generated/caster-api --additional-properties ngVersion=12.1 --additional-properties useRxJS6=true --additional-properties modelPropertyNaming=original --skip-validate-spec",
- "swagger:gen-win": "docker run --rm -v %CD%:/local openapitools/openapi-generator-cli:v5.3.0 generate -i http://host.docker.internal:4309/swagger/v1/swagger.json?format=openapi -g typescript-angular -o /local/src/app/generated/caster-api --additional-properties ngVersion=12.1 --additional-properties useRxJS6=true --additional-properties modelPropertyNaming=original --skip-validate-spec"
+ "swagger:gen": "cross-var $npm_package_config_deleteGeneratedCommand && cross-var curl --insecure http://localhost:4309/swagger/v1/swagger.json --output swagger.json && node_modules/@openapitools/openapi-generator-cli/bin/openapi-generator-cli generate -i ./swagger.json -g typescript-angular -o src/app/generated/caster-api $npm_package_config_openapiArgs",
+ "swagger:gen-docker": "cross-var $npm_package_config_deleteGeneratedCommand && cross-env-shell docker run --rm -v $INIT_CWD:/local openapitools/openapi-generator-cli:v6.2.0 generate -i http://host.docker.internal:4309/swagger/v1/swagger.json?format=openapi -g typescript-angular -o /local/src/app/generated/caster-api $npm_package_config_openapiArgs"
},
"private": true,
"dependencies": {
@@ -55,6 +57,8 @@
"depcheck": "^1.4.2",
"domsanitizer": "^0.2.3",
"monaco-editor": "^0.34.1",
+ "ng-for-track-by-property": "^14.0.0",
+ "ng-table-virtual-scroll": "~1.3.8",
"ngx-clipboard": "^15.1.0",
"oidc-client": "^1.11.5",
"rxjs": "^6.6.7",
@@ -75,6 +79,7 @@
"@types/jasminewd2": "^2.0.10",
"@types/node": "^16.4.11",
"codelyzer": "^6.0.2",
+ "cross-env": "^7.0.3",
"cross-var": "^1.1.0",
"jasmine-core": "^3.8.0",
"jasmine-spec-reporter": "^7.0.0",
@@ -86,6 +91,7 @@
"ng-packagr": "^14.2.2",
"prettier": "^2.7.1",
"protractor": "^7.0.0",
+ "rimraf": "^3.0.2",
"rxjs-tslint-rules": "^4.34.8",
"rxjs-watcher": "^1.1.3",
"ts-node": "^10.1.0",
diff --git a/src/app/admin-app/admin-app-routing.module.ts b/src/app/admin-app/admin-app-routing.module.ts
new file mode 100644
index 00000000..80b38b94
--- /dev/null
+++ b/src/app/admin-app/admin-app-routing.module.ts
@@ -0,0 +1,20 @@
+// Copyright 2021 Carnegie Mellon University. All Rights Reserved.
+// Released under a MIT (SEI)-style license. See LICENSE.md in the project root for license information.
+
+import { NgModule } from '@angular/core';
+import { RouterModule, Routes } from '@angular/router';
+import { AdminContainerComponent } from './component/admin-container/admin-container.component';
+
+const routes: Routes = [
+ {
+ path: '',
+ component: AdminContainerComponent,
+ pathMatch: 'full',
+ },
+];
+
+@NgModule({
+ imports: [RouterModule.forChild(routes)],
+ exports: [RouterModule],
+})
+export class AdminAppRoutingModule {}
diff --git a/src/app/admin-app/admin-app.module.ts b/src/app/admin-app/admin-app.module.ts
index 810ded16..61fca1ad 100644
--- a/src/app/admin-app/admin-app.module.ts
+++ b/src/app/admin-app/admin-app.module.ts
@@ -8,7 +8,6 @@ import { AdminContainerComponent } from './component/admin-container/admin-conta
import { UsersComponent } from './component/admin-users/users.component';
import { UserListComponent } from './component/admin-users/user-list/user-list.component';
import { FlexLayoutModule } from '@angular/flex-layout';
-import { ProjectModule } from '../project/project.module';
import { RouterModule } from '@angular/router';
import { ClipboardModule } from 'ngx-clipboard';
import { AdminModuleListComponent } from './component/admin-modules/modules-list/module-list.component';
@@ -35,6 +34,22 @@ import { LockingStatusComponent } from './component/admin-workspaces/locking-sta
import { ActiveRunsComponent } from './component/admin-workspaces/active-runs/active-runs.component';
import { CwdTableModule } from '../sei-cwd-common/cwd-table/cwd-table.module';
import { WorkspaceModule } from '../workspace/workspace.module';
+import { VlansComponent } from './component/admin-vlans/vlans.component';
+import { PoolListComponent } from './component/admin-vlans/pool-list/pool-list.component';
+import { PartitionListComponent } from './component/admin-vlans/partition-list/partition-list.component';
+import { PartitionComponent } from './component/admin-vlans/partition/partition.component';
+import { MatSliderModule } from '@angular/material/slider';
+import { VlanListComponent } from './component/admin-vlans/vlan-list/vlan-list.component';
+import { MatTableModule } from '@angular/material/table';
+import { TableVirtualScrollModule } from 'ng-table-virtual-scroll';
+import { ScrollingModule } from '@angular/cdk/scrolling';
+import { MatSelectModule } from '@angular/material/select';
+import { PoolsComponent } from './component/admin-vlans/pools/pools.component';
+import { ProjectVlansComponent } from './component/admin-vlans/project-vlans/project-vlans.component';
+import { MatTabsModule } from '@angular/material/tabs';
+import { PoolListItemComponent } from './component/admin-vlans/pool-list-item/pool-list-item.component';
+import { AdminAppRoutingModule } from './admin-app-routing.module';
+import { SharedModule } from '../shared/shared.module';
@NgModule({
declarations: [
@@ -46,13 +61,27 @@ import { WorkspaceModule } from '../workspace/workspace.module';
AdminWorkspacesComponent,
LockingStatusComponent,
ActiveRunsComponent,
+ VlansComponent,
+ PoolListComponent,
+ PartitionListComponent,
+ PartitionComponent,
+ VlanListComponent,
+ PoolsComponent,
+ ProjectVlansComponent,
+ PoolListItemComponent,
],
imports: [
ClipboardModule,
CommonModule,
- ProjectModule,
+ SharedModule,
+ RouterModule,
FlexLayoutModule,
FormsModule,
+ CwdTableModule,
+ WorkspaceModule,
+ ScrollingModule,
+ TableVirtualScrollModule,
+ AdminAppRoutingModule,
MatButtonModule,
MatCardModule,
MatCheckboxModule,
@@ -66,19 +95,15 @@ import { WorkspaceModule } from '../workspace/workspace.module';
MatProgressBarModule,
MatProgressSpinnerModule,
MatSidenavModule,
+ MatSlideToggleModule,
MatSortModule,
MatTooltipModule,
MatTreeModule,
- RouterModule,
- MatSlideToggleModule,
- CwdTableModule,
- WorkspaceModule,
- ],
- exports: [
- AdminContainerComponent,
- MatPaginatorModule,
- UsersComponent,
- UserListComponent,
+ MatSelectModule,
+ MatTabsModule,
+ MatSliderModule,
+ MatTableModule,
],
+ exports: [AdminContainerComponent, UsersComponent, UserListComponent],
})
export class AdminAppModule {}
diff --git a/src/app/admin-app/component/admin-container/admin-container.component.html b/src/app/admin-app/component/admin-container/admin-container.component.html
index 719589b9..21e76dbc 100644
--- a/src/app/admin-app/component/admin-container/admin-container.component.html
+++ b/src/app/admin-app/component/admin-container/admin-container.component.html
@@ -64,6 +64,21 @@
Administration
{{ workspacesText }}
+
+
+
+
+
+
+
+
+
+
+
+
{{ vlansText }}
+
-
+
myFancyParamEncoder(param),
+})
+```
+
+[parameter-locations-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#parameter-locations
+[style-values-url]: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values
+[@honoluluhenk/http-param-expander]: https://www.npmjs.com/package/@honoluluhenk/http-param-expander
diff --git a/src/app/generated/caster-api/api.module.ts b/src/app/generated/caster-api/api.module.ts
index 295fc21c..6599d3d0 100644
--- a/src/app/generated/caster-api/api.module.ts
+++ b/src/app/generated/caster-api/api.module.ts
@@ -24,6 +24,7 @@ import { TerraformService } from './api/terraform.service';
import { UserPermissionsService } from './api/userPermissions.service';
import { UsersService } from './api/users.service';
import { VariablesService } from './api/variables.service';
+import { VlansService } from './api/vlans.service';
import { WorkspacesService } from './api/workspaces.service';
@NgModule({
diff --git a/src/app/generated/caster-api/api/api.ts b/src/app/generated/caster-api/api/api.ts
index 66788c06..8d674c92 100644
--- a/src/app/generated/caster-api/api/api.ts
+++ b/src/app/generated/caster-api/api/api.ts
@@ -37,6 +37,8 @@ export * from './users.service';
import { UsersService } from './users.service';
export * from './variables.service';
import { VariablesService } from './variables.service';
+export * from './vlans.service';
+import { VlansService } from './vlans.service';
export * from './workspaces.service';
import { WorkspacesService } from './workspaces.service';
-export const APIS = [AppliesService, DesignsService, DesignsModulesService, DirectoriesService, FilesService, HealthService, HostsService, ModulesService, PermissionsService, PlansService, ProjectsService, ResourcesService, RunsService, TerraformService, UserPermissionsService, UsersService, VariablesService, WorkspacesService];
+export const APIS = [AppliesService, DesignsService, DesignsModulesService, DirectoriesService, FilesService, HealthService, HostsService, ModulesService, PermissionsService, PlansService, ProjectsService, ResourcesService, RunsService, TerraformService, UserPermissionsService, UsersService, VariablesService, VlansService, WorkspacesService];
diff --git a/src/app/generated/caster-api/api/applies.service.ts b/src/app/generated/caster-api/api/applies.service.ts
index 7b0a4c23..c3d7ad7b 100644
--- a/src/app/generated/caster-api/api/applies.service.ts
+++ b/src/app/generated/caster-api/api/applies.service.ts
@@ -23,9 +23,12 @@ import { HttpClient, HttpHeaders, HttpParams,
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { Apply } from '../model/models';
-import { ProblemDetails } from '../model/models';
+// @ts-ignore
+import { Apply } from '../model/apply';
+// @ts-ignore
+import { ProblemDetails } from '../model/problemDetails';
+// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -41,11 +44,15 @@ export class AppliesService {
public configuration = new Configuration();
public encoder: HttpParameterCodec;
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
+ if (Array.isArray(basePath) && basePath.length > 0) {
+ basePath = basePath[0];
+ }
+
if (typeof basePath !== 'string') {
basePath = this.basePath;
}
@@ -55,6 +62,7 @@ export class AppliesService {
}
+ // @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -74,8 +82,7 @@ export class AppliesService {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
- httpParams = httpParams.append(key,
- (value as Date).toISOString().substr(0, 10));
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
@@ -134,13 +141,19 @@ export class AppliesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/runs/${encodeURIComponent(String(runId))}/actions/apply`,
- null,
+ let localVarPath = `/api/runs/${this.configuration.encodeParam({name: "runId", value: runId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/apply`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -195,12 +208,19 @@ export class AppliesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/applies/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/applies/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -255,12 +275,19 @@ export class AppliesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/runs/${encodeURIComponent(String(runId))}/apply`,
+ let localVarPath = `/api/runs/${this.configuration.encodeParam({name: "runId", value: runId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/apply`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
diff --git a/src/app/generated/caster-api/api/designs.service.ts b/src/app/generated/caster-api/api/designs.service.ts
index 9e810c5f..5eccff60 100644
--- a/src/app/generated/caster-api/api/designs.service.ts
+++ b/src/app/generated/caster-api/api/designs.service.ts
@@ -23,11 +23,16 @@ import { HttpClient, HttpHeaders, HttpParams,
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { CreateDesignCommand } from '../model/models';
-import { Design } from '../model/models';
-import { EditDesignCommand } from '../model/models';
-import { ProblemDetails } from '../model/models';
-
+// @ts-ignore
+import { CreateDesignCommand } from '../model/createDesignCommand';
+// @ts-ignore
+import { Design } from '../model/design';
+// @ts-ignore
+import { EditDesignCommand } from '../model/editDesignCommand';
+// @ts-ignore
+import { ProblemDetails } from '../model/problemDetails';
+
+// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -43,11 +48,15 @@ export class DesignsService {
public configuration = new Configuration();
public encoder: HttpParameterCodec;
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
+ if (Array.isArray(basePath) && basePath.length > 0) {
+ basePath = basePath[0];
+ }
+
if (typeof basePath !== 'string') {
basePath = this.basePath;
}
@@ -57,6 +66,7 @@ export class DesignsService {
}
+ // @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -76,8 +86,7 @@ export class DesignsService {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
- httpParams = httpParams.append(key,
- (value as Date).toISOString().substr(0, 10));
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
@@ -137,22 +146,29 @@ export class DesignsService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/designs`,
- createDesignCommand,
+ let localVarPath = `/api/designs`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: createDesignCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -203,12 +219,19 @@ export class DesignsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.delete(`${this.configuration.basePath}/api/designs/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/designs/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -263,13 +286,19 @@ export class DesignsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/designs/${encodeURIComponent(String(id))}/actions/disable`,
- null,
+ let localVarPath = `/api/designs/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/disable`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -329,22 +358,29 @@ export class DesignsService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.put(`${this.configuration.basePath}/api/designs/${encodeURIComponent(String(id))}`,
- editDesignCommand,
+ let localVarPath = `/api/designs/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: editDesignCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -397,13 +433,19 @@ export class DesignsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/designs/${encodeURIComponent(String(id))}/actions/enable`,
- null,
+ let localVarPath = `/api/designs/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/enable`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -458,12 +500,19 @@ export class DesignsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/designs/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/designs/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -518,12 +567,19 @@ export class DesignsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/directories/${encodeURIComponent(String(directoryId))}/designs`,
+ let localVarPath = `/api/directories/${this.configuration.encodeParam({name: "directoryId", value: directoryId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/designs`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
diff --git a/src/app/generated/caster-api/api/designsModules.service.ts b/src/app/generated/caster-api/api/designsModules.service.ts
index 7983d800..7593afbb 100644
--- a/src/app/generated/caster-api/api/designsModules.service.ts
+++ b/src/app/generated/caster-api/api/designsModules.service.ts
@@ -23,12 +23,18 @@ import { HttpClient, HttpHeaders, HttpParams,
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { AddOrUpdateValuesDesignModuleCommand } from '../model/models';
-import { CreateDesignModuleCommand } from '../model/models';
-import { DesignModule } from '../model/models';
-import { EditDesignModuleCommand } from '../model/models';
-import { ProblemDetails } from '../model/models';
-
+// @ts-ignore
+import { AddOrUpdateValuesDesignModuleCommand } from '../model/addOrUpdateValuesDesignModuleCommand';
+// @ts-ignore
+import { CreateDesignModuleCommand } from '../model/createDesignModuleCommand';
+// @ts-ignore
+import { DesignModule } from '../model/designModule';
+// @ts-ignore
+import { EditDesignModuleCommand } from '../model/editDesignModuleCommand';
+// @ts-ignore
+import { ProblemDetails } from '../model/problemDetails';
+
+// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -44,11 +50,15 @@ export class DesignsModulesService {
public configuration = new Configuration();
public encoder: HttpParameterCodec;
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
+ if (Array.isArray(basePath) && basePath.length > 0) {
+ basePath = basePath[0];
+ }
+
if (typeof basePath !== 'string') {
basePath = this.basePath;
}
@@ -58,6 +68,7 @@ export class DesignsModulesService {
}
+ // @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -77,8 +88,7 @@ export class DesignsModulesService {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
- httpParams = httpParams.append(key,
- (value as Date).toISOString().substr(0, 10));
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
@@ -142,22 +152,29 @@ export class DesignsModulesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/designModules/${encodeURIComponent(String(designModuleId))}/values`,
- addOrUpdateValuesDesignModuleCommand,
+ let localVarPath = `/api/designModules/${this.configuration.encodeParam({name: "designModuleId", value: designModuleId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/values`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: addOrUpdateValuesDesignModuleCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -211,22 +228,29 @@ export class DesignsModulesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/designModules`,
- createDesignModuleCommand,
+ let localVarPath = `/api/designModules`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: createDesignModuleCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -277,12 +301,19 @@ export class DesignsModulesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.delete(`${this.configuration.basePath}/api/designsModules/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/designsModules/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -337,13 +368,19 @@ export class DesignsModulesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/designModules/${encodeURIComponent(String(id))}/actions/disable`,
- null,
+ let localVarPath = `/api/designModules/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/disable`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -403,22 +440,29 @@ export class DesignsModulesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.put(`${this.configuration.basePath}/api/designModules/${encodeURIComponent(String(id))}`,
- editDesignModuleCommand,
+ let localVarPath = `/api/designModules/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: editDesignModuleCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -471,13 +515,19 @@ export class DesignsModulesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/designModules/${encodeURIComponent(String(id))}/actions/enable`,
- null,
+ let localVarPath = `/api/designModules/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/enable`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -532,12 +582,19 @@ export class DesignsModulesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/designModules/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/designModules/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -592,12 +649,19 @@ export class DesignsModulesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/designs/${encodeURIComponent(String(designId))}/modules`,
+ let localVarPath = `/api/designs/${this.configuration.encodeParam({name: "designId", value: designId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/modules`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
diff --git a/src/app/generated/caster-api/api/directories.service.ts b/src/app/generated/caster-api/api/directories.service.ts
index 86e0091c..a3f21c55 100644
--- a/src/app/generated/caster-api/api/directories.service.ts
+++ b/src/app/generated/caster-api/api/directories.service.ts
@@ -23,14 +23,22 @@ import { HttpClient, HttpHeaders, HttpParams,
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { ArchiveType } from '../model/models';
-import { CreateDirectoryCommand } from '../model/models';
-import { Directory } from '../model/models';
-import { EditDirectoryCommand } from '../model/models';
-import { ImportDirectoryResult } from '../model/models';
-import { PartialEditDirectoryCommand } from '../model/models';
-import { ProblemDetails } from '../model/models';
-
+// @ts-ignore
+import { ArchiveType } from '../model/archiveType';
+// @ts-ignore
+import { CreateDirectoryCommand } from '../model/createDirectoryCommand';
+// @ts-ignore
+import { Directory } from '../model/directory';
+// @ts-ignore
+import { EditDirectoryCommand } from '../model/editDirectoryCommand';
+// @ts-ignore
+import { ImportDirectoryResult } from '../model/importDirectoryResult';
+// @ts-ignore
+import { PartialEditDirectoryCommand } from '../model/partialEditDirectoryCommand';
+// @ts-ignore
+import { ProblemDetails } from '../model/problemDetails';
+
+// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -46,11 +54,15 @@ export class DirectoriesService {
public configuration = new Configuration();
public encoder: HttpParameterCodec;
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
+ if (Array.isArray(basePath) && basePath.length > 0) {
+ basePath = basePath[0];
+ }
+
if (typeof basePath !== 'string') {
basePath = this.basePath;
}
@@ -73,6 +85,7 @@ export class DirectoriesService {
return false;
}
+ // @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -92,8 +105,7 @@ export class DirectoriesService {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
- httpParams = httpParams.append(key,
- (value as Date).toISOString().substr(0, 10));
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
@@ -153,22 +165,29 @@ export class DirectoriesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/directories`,
- createDirectoryCommand,
+ let localVarPath = `/api/directories`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: createDirectoryCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -219,12 +238,19 @@ export class DirectoriesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.delete(`${this.configuration.basePath}/api/directories/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/directories/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -284,22 +310,29 @@ export class DirectoriesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.put(`${this.configuration.basePath}/api/directories/${encodeURIComponent(String(id))}`,
- editDirectoryCommand,
+ let localVarPath = `/api/directories/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: editDirectoryCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -364,7 +397,8 @@ export class DirectoriesService {
}
- return this.httpClient.get(`${this.configuration.basePath}/api/directories/${encodeURIComponent(String(id))}/actions/export`,
+ let localVarPath = `/api/directories/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/export`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
@@ -428,12 +462,19 @@ export class DirectoriesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/directories`,
+ let localVarPath = `/api/directories`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
@@ -506,12 +547,19 @@ export class DirectoriesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/projects/${encodeURIComponent(String(projectId))}/directories`,
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/directories`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
@@ -579,12 +627,19 @@ export class DirectoriesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/directories/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/directories/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
@@ -657,12 +712,19 @@ export class DirectoriesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/directories/${encodeURIComponent(String(directoryId))}/children`,
+ let localVarPath = `/api/directories/${this.configuration.encodeParam({name: "directoryId", value: directoryId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/children`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
@@ -735,22 +797,35 @@ export class DirectoriesService {
let localVarFormParams: { append(param: string, value: any): any; };
let localVarUseForm = false;
let localVarConvertFormParamsToString = false;
+ // use FormData to transmit files using content-type "multipart/form-data"
+ // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
+ localVarUseForm = canConsumeForm;
if (localVarUseForm) {
localVarFormParams = new FormData();
} else {
localVarFormParams = new HttpParams({encoder: this.encoder});
}
+ if (archive !== undefined) {
+ localVarFormParams = localVarFormParams.append('Archive', archive) as any || localVarFormParams;
+ }
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/directories/${encodeURIComponent(String(id))}/actions/import`,
- localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
+ let localVarPath = `/api/directories/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/import`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
params: localVarQueryParameters,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
@@ -809,22 +884,29 @@ export class DirectoriesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.patch(`${this.configuration.basePath}/api/directories/${encodeURIComponent(String(id))}`,
- partialEditDirectoryCommand,
+ let localVarPath = `/api/directories/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: partialEditDirectoryCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
diff --git a/src/app/generated/caster-api/api/files.service.ts b/src/app/generated/caster-api/api/files.service.ts
index b3571ca5..61167291 100644
--- a/src/app/generated/caster-api/api/files.service.ts
+++ b/src/app/generated/caster-api/api/files.service.ts
@@ -23,14 +23,22 @@ import { HttpClient, HttpHeaders, HttpParams,
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { CreateFileCommand } from '../model/models';
-import { EditFileCommand } from '../model/models';
-import { FileVersion } from '../model/models';
-import { PartialEditFileCommand } from '../model/models';
-import { ProblemDetails } from '../model/models';
-import { RenameFileCommand } from '../model/models';
-import { TagFileCommand } from '../model/models';
-
+// @ts-ignore
+import { CreateFileCommand } from '../model/createFileCommand';
+// @ts-ignore
+import { EditFileCommand } from '../model/editFileCommand';
+// @ts-ignore
+import { FileVersion } from '../model/fileVersion';
+// @ts-ignore
+import { PartialEditFileCommand } from '../model/partialEditFileCommand';
+// @ts-ignore
+import { ProblemDetails } from '../model/problemDetails';
+// @ts-ignore
+import { RenameFileCommand } from '../model/renameFileCommand';
+// @ts-ignore
+import { TagFileCommand } from '../model/tagFileCommand';
+
+// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -46,11 +54,15 @@ export class FilesService {
public configuration = new Configuration();
public encoder: HttpParameterCodec;
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
+ if (Array.isArray(basePath) && basePath.length > 0) {
+ basePath = basePath[0];
+ }
+
if (typeof basePath !== 'string') {
basePath = this.basePath;
}
@@ -60,6 +72,7 @@ export class FilesService {
}
+ // @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -79,8 +92,7 @@ export class FilesService {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
- httpParams = httpParams.append(key,
- (value as Date).toISOString().substr(0, 10));
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
@@ -139,13 +151,19 @@ export class FilesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/files/${encodeURIComponent(String(id))}/actions/admin-lock`,
- null,
+ let localVarPath = `/api/files/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/admin-lock`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -200,13 +218,19 @@ export class FilesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/files/${encodeURIComponent(String(id))}/actions/admin-unlock`,
- null,
+ let localVarPath = `/api/files/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/admin-unlock`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -262,22 +286,29 @@ export class FilesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/files`,
- createFileCommand,
+ let localVarPath = `/api/files`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: createFileCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -328,12 +359,19 @@ export class FilesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.delete(`${this.configuration.basePath}/api/files/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/files/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -393,22 +431,29 @@ export class FilesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.put(`${this.configuration.basePath}/api/files/${encodeURIComponent(String(id))}`,
- editFileCommand,
+ let localVarPath = `/api/files/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: editFileCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -461,7 +506,8 @@ export class FilesService {
}
- return this.httpClient.get(`${this.configuration.basePath}/api/files/${encodeURIComponent(String(id))}/actions/export`,
+ let localVarPath = `/api/files/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/export`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: "blob",
@@ -524,12 +570,19 @@ export class FilesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/files`,
+ let localVarPath = `/api/files`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
@@ -585,12 +638,19 @@ export class FilesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/files/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/files/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -645,12 +705,19 @@ export class FilesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/files/versions/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/files/versions/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -705,12 +772,19 @@ export class FilesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/files/${encodeURIComponent(String(fileId))}/versions`,
+ let localVarPath = `/api/files/${this.configuration.encodeParam({name: "fileId", value: fileId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/versions`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -777,12 +851,19 @@ export class FilesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/directories/${encodeURIComponent(String(directoryId))}/files`,
+ let localVarPath = `/api/directories/${this.configuration.encodeParam({name: "directoryId", value: directoryId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/files`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
@@ -838,13 +919,19 @@ export class FilesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/files/${encodeURIComponent(String(id))}/actions/lock`,
- null,
+ let localVarPath = `/api/files/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/lock`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -904,22 +991,29 @@ export class FilesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.patch(`${this.configuration.basePath}/api/files/${encodeURIComponent(String(id))}`,
- partialEditFileCommand,
+ let localVarPath = `/api/files/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: partialEditFileCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -977,22 +1071,29 @@ export class FilesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/files/${encodeURIComponent(String(id))}/actions/rename`,
- renameFileCommand,
+ let localVarPath = `/api/files/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/rename`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: renameFileCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -1046,22 +1147,29 @@ export class FilesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post>(`${this.configuration.basePath}/api/files/actions/tag`,
- tagFileCommand,
+ let localVarPath = `/api/files/actions/tag`;
+ return this.httpClient.request>('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: tagFileCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -1114,13 +1222,19 @@ export class FilesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/files/${encodeURIComponent(String(id))}/actions/unlock`,
- null,
+ let localVarPath = `/api/files/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/unlock`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
diff --git a/src/app/generated/caster-api/api/health.service.ts b/src/app/generated/caster-api/api/health.service.ts
index 235e4fe7..1b8c4c42 100644
--- a/src/app/generated/caster-api/api/health.service.ts
+++ b/src/app/generated/caster-api/api/health.service.ts
@@ -23,9 +23,12 @@ import { HttpClient, HttpHeaders, HttpParams,
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { HealthStatus } from '../model/models';
-import { ProblemDetails } from '../model/models';
+// @ts-ignore
+import { HealthStatus } from '../model/healthStatus';
+// @ts-ignore
+import { ProblemDetails } from '../model/problemDetails';
+// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -41,11 +44,15 @@ export class HealthService {
public configuration = new Configuration();
public encoder: HttpParameterCodec;
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
+ if (Array.isArray(basePath) && basePath.length > 0) {
+ basePath = basePath[0];
+ }
+
if (typeof basePath !== 'string') {
basePath = this.basePath;
}
@@ -55,6 +62,7 @@ export class HealthService {
}
+ // @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -74,8 +82,7 @@ export class HealthService {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
- httpParams = httpParams.append(key,
- (value as Date).toISOString().substr(0, 10));
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
@@ -131,12 +138,19 @@ export class HealthService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/health/live`,
+ let localVarPath = `/api/health/live`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -188,12 +202,19 @@ export class HealthService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/health/ready`,
+ let localVarPath = `/api/health/ready`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
diff --git a/src/app/generated/caster-api/api/hosts.service.ts b/src/app/generated/caster-api/api/hosts.service.ts
index 25a7dc7c..454e3ef9 100644
--- a/src/app/generated/caster-api/api/hosts.service.ts
+++ b/src/app/generated/caster-api/api/hosts.service.ts
@@ -23,11 +23,16 @@ import { HttpClient, HttpHeaders, HttpParams,
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { CreateHostCommand } from '../model/models';
-import { EditHostCommand } from '../model/models';
-import { Host } from '../model/models';
-import { ProblemDetails } from '../model/models';
-
+// @ts-ignore
+import { CreateHostCommand } from '../model/createHostCommand';
+// @ts-ignore
+import { EditHostCommand } from '../model/editHostCommand';
+// @ts-ignore
+import { Host } from '../model/host';
+// @ts-ignore
+import { ProblemDetails } from '../model/problemDetails';
+
+// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -43,11 +48,15 @@ export class HostsService {
public configuration = new Configuration();
public encoder: HttpParameterCodec;
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
+ if (Array.isArray(basePath) && basePath.length > 0) {
+ basePath = basePath[0];
+ }
+
if (typeof basePath !== 'string') {
basePath = this.basePath;
}
@@ -57,6 +66,7 @@ export class HostsService {
}
+ // @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -76,8 +86,7 @@ export class HostsService {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
- httpParams = httpParams.append(key,
- (value as Date).toISOString().substr(0, 10));
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
@@ -137,22 +146,29 @@ export class HostsService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/hosts`,
- createHostCommand,
+ let localVarPath = `/api/hosts`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: createHostCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -203,12 +219,19 @@ export class HostsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.delete(`${this.configuration.basePath}/api/hosts/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/hosts/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -268,22 +291,29 @@ export class HostsService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.put(`${this.configuration.basePath}/api/hosts/${encodeURIComponent(String(id))}`,
- editHostCommand,
+ let localVarPath = `/api/hosts/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: editHostCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -332,12 +362,19 @@ export class HostsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/hosts`,
+ let localVarPath = `/api/hosts`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -392,12 +429,19 @@ export class HostsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/hosts/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/hosts/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
diff --git a/src/app/generated/caster-api/api/modules.service.ts b/src/app/generated/caster-api/api/modules.service.ts
index 7ac930c7..c0a452e4 100644
--- a/src/app/generated/caster-api/api/modules.service.ts
+++ b/src/app/generated/caster-api/api/modules.service.ts
@@ -23,13 +23,20 @@ import { HttpClient, HttpHeaders, HttpParams,
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { CreateModuleCommand } from '../model/models';
-import { CreateModuleRepositoryCommand } from '../model/models';
-import { CreateSnippetCommand } from '../model/models';
-import { Module } from '../model/models';
-import { ModuleVersion } from '../model/models';
-import { ProblemDetails } from '../model/models';
-
+// @ts-ignore
+import { CreateModuleCommand } from '../model/createModuleCommand';
+// @ts-ignore
+import { CreateModuleRepositoryCommand } from '../model/createModuleRepositoryCommand';
+// @ts-ignore
+import { CreateSnippetCommand } from '../model/createSnippetCommand';
+// @ts-ignore
+import { Module } from '../model/module';
+// @ts-ignore
+import { ModuleVersion } from '../model/moduleVersion';
+// @ts-ignore
+import { ProblemDetails } from '../model/problemDetails';
+
+// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -45,11 +52,15 @@ export class ModulesService {
public configuration = new Configuration();
public encoder: HttpParameterCodec;
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
+ if (Array.isArray(basePath) && basePath.length > 0) {
+ basePath = basePath[0];
+ }
+
if (typeof basePath !== 'string') {
basePath = this.basePath;
}
@@ -59,6 +70,7 @@ export class ModulesService {
}
+ // @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -78,8 +90,7 @@ export class ModulesService {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
- httpParams = httpParams.append(key,
- (value as Date).toISOString().substr(0, 10));
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
@@ -139,22 +150,29 @@ export class ModulesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/modules/snippet`,
- createSnippetCommand,
+ let localVarPath = `/api/modules/snippet`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: createSnippetCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -208,22 +226,29 @@ export class ModulesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/modules`,
- createModuleCommand,
+ let localVarPath = `/api/modules`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: createModuleCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -275,22 +300,29 @@ export class ModulesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/repository/modules`,
- createModuleRepositoryCommand,
+ let localVarPath = `/api/repository/modules`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: createModuleRepositoryCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -341,12 +373,19 @@ export class ModulesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.delete(`${this.configuration.basePath}/api/modules/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/modules/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -414,12 +453,19 @@ export class ModulesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/modules`,
+ let localVarPath = `/api/modules`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
@@ -475,12 +521,19 @@ export class ModulesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/modules/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/modules/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -535,12 +588,19 @@ export class ModulesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/modules/${encodeURIComponent(String(id))}/versions`,
+ let localVarPath = `/api/modules/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}/versions`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
diff --git a/src/app/generated/caster-api/api/permissions.service.ts b/src/app/generated/caster-api/api/permissions.service.ts
index 8448a6b5..13724649 100644
--- a/src/app/generated/caster-api/api/permissions.service.ts
+++ b/src/app/generated/caster-api/api/permissions.service.ts
@@ -23,9 +23,12 @@ import { HttpClient, HttpHeaders, HttpParams,
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { Permission } from '../model/models';
-import { ProblemDetails } from '../model/models';
+// @ts-ignore
+import { Permission } from '../model/permission';
+// @ts-ignore
+import { ProblemDetails } from '../model/problemDetails';
+// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -41,11 +44,15 @@ export class PermissionsService {
public configuration = new Configuration();
public encoder: HttpParameterCodec;
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
+ if (Array.isArray(basePath) && basePath.length > 0) {
+ basePath = basePath[0];
+ }
+
if (typeof basePath !== 'string') {
basePath = this.basePath;
}
@@ -55,6 +62,7 @@ export class PermissionsService {
}
+ // @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -74,8 +82,7 @@ export class PermissionsService {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
- httpParams = httpParams.append(key,
- (value as Date).toISOString().substr(0, 10));
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
@@ -130,12 +137,19 @@ export class PermissionsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/permissions`,
+ let localVarPath = `/api/permissions`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -186,12 +200,19 @@ export class PermissionsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/permissions/mine`,
+ let localVarPath = `/api/permissions/mine`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -246,12 +267,19 @@ export class PermissionsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/permissions/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/permissions/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -306,12 +334,19 @@ export class PermissionsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/users/${encodeURIComponent(String(userId))}/permissions`,
+ let localVarPath = `/users/${this.configuration.encodeParam({name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/permissions`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
diff --git a/src/app/generated/caster-api/api/plans.service.ts b/src/app/generated/caster-api/api/plans.service.ts
index b612b698..e48c6b4f 100644
--- a/src/app/generated/caster-api/api/plans.service.ts
+++ b/src/app/generated/caster-api/api/plans.service.ts
@@ -23,9 +23,12 @@ import { HttpClient, HttpHeaders, HttpParams,
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { Plan } from '../model/models';
-import { ProblemDetails } from '../model/models';
+// @ts-ignore
+import { Plan } from '../model/plan';
+// @ts-ignore
+import { ProblemDetails } from '../model/problemDetails';
+// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -41,11 +44,15 @@ export class PlansService {
public configuration = new Configuration();
public encoder: HttpParameterCodec;
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
+ if (Array.isArray(basePath) && basePath.length > 0) {
+ basePath = basePath[0];
+ }
+
if (typeof basePath !== 'string') {
basePath = this.basePath;
}
@@ -55,6 +62,7 @@ export class PlansService {
}
+ // @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -74,8 +82,7 @@ export class PlansService {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
- httpParams = httpParams.append(key,
- (value as Date).toISOString().substr(0, 10));
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
@@ -134,12 +141,19 @@ export class PlansService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/plans/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/plans/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -194,12 +208,19 @@ export class PlansService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/runs/${encodeURIComponent(String(runId))}/plan`,
+ let localVarPath = `/api/runs/${this.configuration.encodeParam({name: "runId", value: runId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/plan`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
diff --git a/src/app/generated/caster-api/api/projects.service.ts b/src/app/generated/caster-api/api/projects.service.ts
index e4b4319f..1162f8d4 100644
--- a/src/app/generated/caster-api/api/projects.service.ts
+++ b/src/app/generated/caster-api/api/projects.service.ts
@@ -23,13 +23,20 @@ import { HttpClient, HttpHeaders, HttpParams,
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { ArchiveType } from '../model/models';
-import { CreateProjectCommand } from '../model/models';
-import { EditProjectCommand } from '../model/models';
-import { ImportProjectResult } from '../model/models';
-import { ProblemDetails } from '../model/models';
-import { Project } from '../model/models';
-
+// @ts-ignore
+import { ArchiveType } from '../model/archiveType';
+// @ts-ignore
+import { CreateProjectCommand } from '../model/createProjectCommand';
+// @ts-ignore
+import { EditProjectCommand } from '../model/editProjectCommand';
+// @ts-ignore
+import { ImportProjectResult } from '../model/importProjectResult';
+// @ts-ignore
+import { ProblemDetails } from '../model/problemDetails';
+// @ts-ignore
+import { Project } from '../model/project';
+
+// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -45,11 +52,15 @@ export class ProjectsService {
public configuration = new Configuration();
public encoder: HttpParameterCodec;
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
+ if (Array.isArray(basePath) && basePath.length > 0) {
+ basePath = basePath[0];
+ }
+
if (typeof basePath !== 'string') {
basePath = this.basePath;
}
@@ -72,6 +83,7 @@ export class ProjectsService {
return false;
}
+ // @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -91,8 +103,7 @@ export class ProjectsService {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
- httpParams = httpParams.append(key,
- (value as Date).toISOString().substr(0, 10));
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
@@ -152,22 +163,29 @@ export class ProjectsService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/projects`,
- createProjectCommand,
+ let localVarPath = `/api/projects`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: createProjectCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -218,12 +236,19 @@ export class ProjectsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.delete(`${this.configuration.basePath}/api/projects/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -283,22 +308,29 @@ export class ProjectsService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.put(`${this.configuration.basePath}/api/projects/${encodeURIComponent(String(id))}`,
- editProjectCommand,
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: editProjectCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -363,7 +395,8 @@ export class ProjectsService {
}
- return this.httpClient.get(`${this.configuration.basePath}/api/projects/projects/${encodeURIComponent(String(id))}/actions/export`,
+ let localVarPath = `/api/projects/projects/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/export`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
@@ -415,12 +448,19 @@ export class ProjectsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/projects`,
+ let localVarPath = `/api/projects`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -475,12 +515,19 @@ export class ProjectsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/projects/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -552,22 +599,35 @@ export class ProjectsService {
let localVarFormParams: { append(param: string, value: any): any; };
let localVarUseForm = false;
let localVarConvertFormParamsToString = false;
+ // use FormData to transmit files using content-type "multipart/form-data"
+ // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
+ localVarUseForm = canConsumeForm;
if (localVarUseForm) {
localVarFormParams = new FormData();
} else {
localVarFormParams = new HttpParams({encoder: this.encoder});
}
+ if (archive !== undefined) {
+ localVarFormParams = localVarFormParams.append('Archive', archive) as any || localVarFormParams;
+ }
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/projects/projects/${encodeURIComponent(String(id))}/actions/import`,
- localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
+ let localVarPath = `/api/projects/projects/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/import`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: localVarConvertFormParamsToString ? localVarFormParams.toString() : localVarFormParams,
params: localVarQueryParameters,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
diff --git a/src/app/generated/caster-api/api/resources.service.ts b/src/app/generated/caster-api/api/resources.service.ts
index ed4af41f..6a6eda5d 100644
--- a/src/app/generated/caster-api/api/resources.service.ts
+++ b/src/app/generated/caster-api/api/resources.service.ts
@@ -23,13 +23,20 @@ import { HttpClient, HttpHeaders, HttpParams,
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { ImportResourceCommand } from '../model/models';
-import { ProblemDetails } from '../model/models';
-import { RemoveResourcesCommand } from '../model/models';
-import { Resource } from '../model/models';
-import { ResourceCommandResult } from '../model/models';
-import { TaintResourcesCommand } from '../model/models';
-
+// @ts-ignore
+import { ImportResourceCommand } from '../model/importResourceCommand';
+// @ts-ignore
+import { ProblemDetails } from '../model/problemDetails';
+// @ts-ignore
+import { RemoveResourcesCommand } from '../model/removeResourcesCommand';
+// @ts-ignore
+import { Resource } from '../model/resource';
+// @ts-ignore
+import { ResourceCommandResult } from '../model/resourceCommandResult';
+// @ts-ignore
+import { TaintResourcesCommand } from '../model/taintResourcesCommand';
+
+// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -45,11 +52,15 @@ export class ResourcesService {
public configuration = new Configuration();
public encoder: HttpParameterCodec;
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
+ if (Array.isArray(basePath) && basePath.length > 0) {
+ basePath = basePath[0];
+ }
+
if (typeof basePath !== 'string') {
basePath = this.basePath;
}
@@ -59,6 +70,7 @@ export class ResourcesService {
}
+ // @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -78,8 +90,7 @@ export class ResourcesService {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
- httpParams = httpParams.append(key,
- (value as Date).toISOString().substr(0, 10));
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
@@ -152,12 +163,19 @@ export class ResourcesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/workspaces/${encodeURIComponent(String(workspaceId))}/resources/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/workspaces/${this.configuration.encodeParam({name: "workspaceId", value: workspaceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/resources/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined})}`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
@@ -213,12 +231,19 @@ export class ResourcesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/workspaces/${encodeURIComponent(String(workspaceId))}/resources`,
+ let localVarPath = `/api/workspaces/${this.configuration.encodeParam({name: "workspaceId", value: workspaceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/resources`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -273,13 +298,19 @@ export class ResourcesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/workspaces/${encodeURIComponent(String(workspaceId))}/resources/actions/outputs`,
- null,
+ let localVarPath = `/api/workspaces/${this.configuration.encodeParam({name: "workspaceId", value: workspaceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/resources/actions/outputs`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -339,22 +370,29 @@ export class ResourcesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/workspaces/${encodeURIComponent(String(workspaceId))}/resources/actions/import`,
- importResourceCommand,
+ let localVarPath = `/api/workspaces/${this.configuration.encodeParam({name: "workspaceId", value: workspaceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/resources/actions/import`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: importResourceCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -407,13 +445,19 @@ export class ResourcesService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/workspaces/${encodeURIComponent(String(workspaceId))}/resources/actions/refresh`,
- null,
+ let localVarPath = `/api/workspaces/${this.configuration.encodeParam({name: "workspaceId", value: workspaceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/resources/actions/refresh`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -473,22 +517,29 @@ export class ResourcesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/workspaces/${encodeURIComponent(String(workspaceId))}/resources/actions/remove`,
- removeResourcesCommand,
+ let localVarPath = `/api/workspaces/${this.configuration.encodeParam({name: "workspaceId", value: workspaceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/resources/actions/remove`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: removeResourcesCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -546,22 +597,29 @@ export class ResourcesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/workspaces/${encodeURIComponent(String(workspaceId))}/resources/actions/taint`,
- taintResourcesCommand,
+ let localVarPath = `/api/workspaces/${this.configuration.encodeParam({name: "workspaceId", value: workspaceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/resources/actions/taint`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: taintResourcesCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -619,22 +677,29 @@ export class ResourcesService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/workspaces/${encodeURIComponent(String(workspaceId))}/resources/actions/untaint`,
- taintResourcesCommand,
+ let localVarPath = `/api/workspaces/${this.configuration.encodeParam({name: "workspaceId", value: workspaceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/resources/actions/untaint`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: taintResourcesCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
diff --git a/src/app/generated/caster-api/api/runs.service.ts b/src/app/generated/caster-api/api/runs.service.ts
index c6bc1c49..53184ed9 100644
--- a/src/app/generated/caster-api/api/runs.service.ts
+++ b/src/app/generated/caster-api/api/runs.service.ts
@@ -23,11 +23,16 @@ import { HttpClient, HttpHeaders, HttpParams,
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { CancelRunCommand } from '../model/models';
-import { CreateRunCommand } from '../model/models';
-import { ProblemDetails } from '../model/models';
-import { Run } from '../model/models';
-
+// @ts-ignore
+import { CancelRunCommand } from '../model/cancelRunCommand';
+// @ts-ignore
+import { CreateRunCommand } from '../model/createRunCommand';
+// @ts-ignore
+import { ProblemDetails } from '../model/problemDetails';
+// @ts-ignore
+import { Run } from '../model/run';
+
+// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -43,11 +48,15 @@ export class RunsService {
public configuration = new Configuration();
public encoder: HttpParameterCodec;
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
+ if (Array.isArray(basePath) && basePath.length > 0) {
+ basePath = basePath[0];
+ }
+
if (typeof basePath !== 'string') {
basePath = this.basePath;
}
@@ -57,6 +66,7 @@ export class RunsService {
}
+ // @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -76,8 +86,7 @@ export class RunsService {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
- httpParams = httpParams.append(key,
- (value as Date).toISOString().substr(0, 10));
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
@@ -141,22 +150,29 @@ export class RunsService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/runs/${encodeURIComponent(String(id))}/actions/cancel`,
- cancelRunCommand,
+ let localVarPath = `/api/runs/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/cancel`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: cancelRunCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -210,22 +226,29 @@ export class RunsService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/runs`,
- createRunCommand,
+ let localVarPath = `/api/runs`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: createRunCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -290,12 +313,19 @@ export class RunsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/runs/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/runs/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
@@ -369,12 +399,19 @@ export class RunsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/runs`,
+ let localVarPath = `/api/runs`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
@@ -447,12 +484,19 @@ export class RunsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get>(`${this.configuration.basePath}/api/workspaces/${encodeURIComponent(String(workspaceId))}/runs`,
+ let localVarPath = `/api/workspaces/${this.configuration.encodeParam({name: "workspaceId", value: workspaceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/runs`;
+ return this.httpClient.request>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
@@ -508,13 +552,19 @@ export class RunsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/runs/${encodeURIComponent(String(id))}/actions/reject`,
- null,
+ let localVarPath = `/api/runs/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/reject`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
@@ -569,13 +619,19 @@ export class RunsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/runs/${encodeURIComponent(String(runId))}/actions/save-state`,
- null,
+ let localVarPath = `/api/runs/${this.configuration.encodeParam({name: "runId", value: runId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}/actions/save-state`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
diff --git a/src/app/generated/caster-api/api/terraform.service.ts b/src/app/generated/caster-api/api/terraform.service.ts
index b3dea213..b2464e7e 100644
--- a/src/app/generated/caster-api/api/terraform.service.ts
+++ b/src/app/generated/caster-api/api/terraform.service.ts
@@ -23,9 +23,12 @@ import { HttpClient, HttpHeaders, HttpParams,
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { ProblemDetails } from '../model/models';
-import { TerraformVersionsResult } from '../model/models';
+// @ts-ignore
+import { ProblemDetails } from '../model/problemDetails';
+// @ts-ignore
+import { TerraformVersionsResult } from '../model/terraformVersionsResult';
+// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -41,11 +44,15 @@ export class TerraformService {
public configuration = new Configuration();
public encoder: HttpParameterCodec;
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
+ if (Array.isArray(basePath) && basePath.length > 0) {
+ basePath = basePath[0];
+ }
+
if (typeof basePath !== 'string') {
basePath = this.basePath;
}
@@ -55,6 +62,7 @@ export class TerraformService {
}
+ // @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -74,8 +82,7 @@ export class TerraformService {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
- httpParams = httpParams.append(key,
- (value as Date).toISOString().substr(0, 10));
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
@@ -130,12 +137,19 @@ export class TerraformService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.get(`${this.configuration.basePath}/api/terraform/versions`,
+ let localVarPath = `/api/terraform/versions`;
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: responseType_,
diff --git a/src/app/generated/caster-api/api/userPermissions.service.ts b/src/app/generated/caster-api/api/userPermissions.service.ts
index 396e785c..0087a93d 100644
--- a/src/app/generated/caster-api/api/userPermissions.service.ts
+++ b/src/app/generated/caster-api/api/userPermissions.service.ts
@@ -23,11 +23,16 @@ import { HttpClient, HttpHeaders, HttpParams,
import { CustomHttpParameterCodec } from '../encoder';
import { Observable } from 'rxjs';
-import { CreateUserPermissionCommand } from '../model/models';
-import { EditUserPermissionCommand } from '../model/models';
-import { ProblemDetails } from '../model/models';
-import { UserPermission } from '../model/models';
-
+// @ts-ignore
+import { CreateUserPermissionCommand } from '../model/createUserPermissionCommand';
+// @ts-ignore
+import { EditUserPermissionCommand } from '../model/editUserPermissionCommand';
+// @ts-ignore
+import { ProblemDetails } from '../model/problemDetails';
+// @ts-ignore
+import { UserPermission } from '../model/userPermission';
+
+// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
import { Configuration } from '../configuration';
@@ -43,11 +48,15 @@ export class UserPermissionsService {
public configuration = new Configuration();
public encoder: HttpParameterCodec;
- constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {
+ constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string|string[], @Optional() configuration: Configuration) {
if (configuration) {
this.configuration = configuration;
}
if (typeof this.configuration.basePath !== 'string') {
+ if (Array.isArray(basePath) && basePath.length > 0) {
+ basePath = basePath[0];
+ }
+
if (typeof basePath !== 'string') {
basePath = this.basePath;
}
@@ -57,6 +66,7 @@ export class UserPermissionsService {
}
+ // @ts-ignore
private addToHttpParams(httpParams: HttpParams, value: any, key?: string): HttpParams {
if (typeof value === "object" && value instanceof Date === false) {
httpParams = this.addToHttpParamsRecursive(httpParams, value);
@@ -76,8 +86,7 @@ export class UserPermissionsService {
(value as any[]).forEach( elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
} else if (value instanceof Date) {
if (key != null) {
- httpParams = httpParams.append(key,
- (value as Date).toISOString().substr(0, 10));
+ httpParams = httpParams.append(key, (value as Date).toISOString().substr(0, 10));
} else {
throw Error("key may not be null if value is Date");
}
@@ -137,22 +146,29 @@ export class UserPermissionsService {
const consumes: string[] = [
'application/json',
'text/json',
- 'application/_*+json'
+ 'application/*+json'
];
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected !== undefined) {
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.post(`${this.configuration.basePath}/api/userPermissions`,
- createUserPermissionCommand,
+ let localVarPath = `/api/userPermissions`;
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
+ body: createUserPermissionCommand,
responseType: responseType_,
withCredentials: this.configuration.withCredentials,
headers: localVarHeaders,
@@ -203,12 +219,19 @@ export class UserPermissionsService {
}
- let responseType_: 'text' | 'json' = 'json';
- if(localVarHttpHeaderAcceptSelected && localVarHttpHeaderAcceptSelected.startsWith('text')) {
- responseType_ = 'text';
+ let responseType_: 'text' | 'json' | 'blob' = 'json';
+ if (localVarHttpHeaderAcceptSelected) {
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
+ responseType_ = 'text';
+ } else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
+ responseType_ = 'json';
+ } else {
+ responseType_ = 'blob';
+ }
}
- return this.httpClient.delete(`${this.configuration.basePath}/api/userPermissions/${encodeURIComponent(String(id))}`,
+ let localVarPath = `/api/userPermissions/${this.configuration.encodeParam({name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid"})}`;
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
responseType: