updated models and services
This commit is contained in:
@@ -32,6 +32,8 @@ import { HTTPValidationError } from '../model/hTTPValidationError';
|
||||
import { HierarchyResponse } from '../model/hierarchyResponse';
|
||||
// @ts-ignore
|
||||
import { OrgminerContent } from '../model/orgminerContent';
|
||||
// @ts-ignore
|
||||
import { SaveHierarchyResponse } from '../model/saveHierarchyResponse';
|
||||
|
||||
// @ts-ignore
|
||||
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
||||
@@ -1345,7 +1347,7 @@ export class OrgminerService extends BaseService {
|
||||
context?: HttpContext;
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<object>;
|
||||
): Observable<SaveHierarchyResponse>;
|
||||
public saveHierarchy(
|
||||
requestBody: Array<object | null>,
|
||||
secureFgpAcc?: string,
|
||||
@@ -1356,7 +1358,7 @@ export class OrgminerService extends BaseService {
|
||||
context?: HttpContext;
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpResponse<object>>;
|
||||
): Observable<HttpResponse<SaveHierarchyResponse>>;
|
||||
public saveHierarchy(
|
||||
requestBody: Array<object | null>,
|
||||
secureFgpAcc?: string,
|
||||
@@ -1367,7 +1369,7 @@ export class OrgminerService extends BaseService {
|
||||
context?: HttpContext;
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpEvent<object>>;
|
||||
): Observable<HttpEvent<SaveHierarchyResponse>>;
|
||||
public saveHierarchy(
|
||||
requestBody: Array<object | null>,
|
||||
secureFgpAcc?: string,
|
||||
@@ -1436,7 +1438,7 @@ export class OrgminerService extends BaseService {
|
||||
|
||||
let localVarPath = `/api/orgminer/save-hierarchy`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<object>(
|
||||
return this.httpClient.request<SaveHierarchyResponse>(
|
||||
'post',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
@@ -1473,7 +1475,7 @@ export class OrgminerService extends BaseService {
|
||||
context?: HttpContext;
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<object>;
|
||||
): Observable<SaveHierarchyResponse>;
|
||||
public saveHierarchy_6(
|
||||
requestBody: Array<object | null>,
|
||||
secureFgpAcc?: string,
|
||||
@@ -1484,7 +1486,7 @@ export class OrgminerService extends BaseService {
|
||||
context?: HttpContext;
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpResponse<object>>;
|
||||
): Observable<HttpResponse<SaveHierarchyResponse>>;
|
||||
public saveHierarchy_6(
|
||||
requestBody: Array<object | null>,
|
||||
secureFgpAcc?: string,
|
||||
@@ -1495,7 +1497,7 @@ export class OrgminerService extends BaseService {
|
||||
context?: HttpContext;
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpEvent<object>>;
|
||||
): Observable<HttpEvent<SaveHierarchyResponse>>;
|
||||
public saveHierarchy_6(
|
||||
requestBody: Array<object | null>,
|
||||
secureFgpAcc?: string,
|
||||
@@ -1564,7 +1566,7 @@ export class OrgminerService extends BaseService {
|
||||
|
||||
let localVarPath = `/api/orgminer/save-hierarchy`;
|
||||
const { basePath, withCredentials } = this.configuration;
|
||||
return this.httpClient.request<object>(
|
||||
return this.httpClient.request<SaveHierarchyResponse>(
|
||||
'post',
|
||||
`${basePath}${localVarPath}`,
|
||||
{
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
export interface SaveHierarchyResponse {
|
||||
message: string;
|
||||
remaining_today: number;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import { ResolveFn } from '@angular/router';
|
||||
import { inject } from '@angular/core';
|
||||
import { OrgminerService } from '../api';
|
||||
export const hierarchyResolver: ResolveFn<any> = () => {
|
||||
import { HierarchyResponse } from '../api/model/hierarchyResponse';
|
||||
|
||||
export const hierarchyResolver: ResolveFn<HierarchyResponse> = () => {
|
||||
return inject(OrgminerService).getHierarchy();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user