|
|
|
@@ -29,6 +29,8 @@ import { ClassifiedPageResponse } from '../model/classifiedPageResponse';
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
import { HTTPValidationError } from '../model/hTTPValidationError';
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
import { HierarchyResponse } from '../model/hierarchyResponse';
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
import { OrgminerContent } from '../model/orgminerContent';
|
|
|
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
@@ -202,6 +204,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns the aggregated categories of the classified pages of the orgminer org.
|
|
|
|
|
* Returns the aggregated categories of the classified pages of the orgminer org.
|
|
|
|
|
* @endpoint get /api/orgminer/classified-pages-aggs
|
|
|
|
|
* @param orgUrl The Orgminer URL of the organization to retrieve classified pages for.
|
|
|
|
@@ -325,6 +328,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns the aggregated categories of the classified pages of the orgminer org.
|
|
|
|
|
* Returns the aggregated categories of the classified pages of the orgminer org.
|
|
|
|
|
* @endpoint get /api/orgminer/classified-pages-aggs
|
|
|
|
|
* @param orgUrl The Orgminer URL of the organization to retrieve classified pages for.
|
|
|
|
@@ -617,7 +621,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<Array<object | null>>;
|
|
|
|
|
): Observable<HierarchyResponse>;
|
|
|
|
|
public getHierarchy(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'response',
|
|
|
|
@@ -627,7 +631,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpResponse<Array<object | null>>>;
|
|
|
|
|
): Observable<HttpResponse<HierarchyResponse>>;
|
|
|
|
|
public getHierarchy(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'events',
|
|
|
|
@@ -637,7 +641,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpEvent<Array<object | null>>>;
|
|
|
|
|
): Observable<HttpEvent<HierarchyResponse>>;
|
|
|
|
|
public getHierarchy(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe: any = 'body',
|
|
|
|
@@ -688,7 +692,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
|
|
|
|
|
let localVarPath = `/api/orgminer/get-hierarchy`;
|
|
|
|
|
const { basePath, withCredentials } = this.configuration;
|
|
|
|
|
return this.httpClient.request<Array<object | null>>(
|
|
|
|
|
return this.httpClient.request<HierarchyResponse>(
|
|
|
|
|
'get',
|
|
|
|
|
`${basePath}${localVarPath}`,
|
|
|
|
|
{
|
|
|
|
@@ -722,7 +726,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<Array<object | null>>;
|
|
|
|
|
): Observable<HierarchyResponse>;
|
|
|
|
|
public getHierarchy_3(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'response',
|
|
|
|
@@ -732,7 +736,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpResponse<Array<object | null>>>;
|
|
|
|
|
): Observable<HttpResponse<HierarchyResponse>>;
|
|
|
|
|
public getHierarchy_3(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'events',
|
|
|
|
@@ -742,7 +746,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpEvent<Array<object | null>>>;
|
|
|
|
|
): Observable<HttpEvent<HierarchyResponse>>;
|
|
|
|
|
public getHierarchy_3(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe: any = 'body',
|
|
|
|
@@ -793,7 +797,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
|
|
|
|
|
let localVarPath = `/api/orgminer/get-hierarchy`;
|
|
|
|
|
const { basePath, withCredentials } = this.configuration;
|
|
|
|
|
return this.httpClient.request<Array<object | null>>(
|
|
|
|
|
return this.httpClient.request<HierarchyResponse>(
|
|
|
|
|
'get',
|
|
|
|
|
`${basePath}${localVarPath}`,
|
|
|
|
|
{
|
|
|
|
@@ -1321,4 +1325,260 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Saves the hierarchy of organizations.
|
|
|
|
|
* Saves the hierarchy of organizations (max. 3 suggestions per account and day).
|
|
|
|
|
* @endpoint post /api/orgminer/save-hierarchy
|
|
|
|
|
* @param requestBody
|
|
|
|
|
* @param secureFgpAcc
|
|
|
|
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
|
|
|
* @param reportProgress flag to report request and response progress.
|
|
|
|
|
*/
|
|
|
|
|
public saveHierarchy(
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'body',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<object>;
|
|
|
|
|
public saveHierarchy(
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'response',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpResponse<object>>;
|
|
|
|
|
public saveHierarchy(
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'events',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpEvent<object>>;
|
|
|
|
|
public saveHierarchy(
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe: any = 'body',
|
|
|
|
|
reportProgress: boolean = false,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<any> {
|
|
|
|
|
if (requestBody === null || requestBody === undefined) {
|
|
|
|
|
throw new Error(
|
|
|
|
|
'Required parameter requestBody was null or undefined when calling saveHierarchy.',
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let localVarHeaders = this.defaultHeaders;
|
|
|
|
|
|
|
|
|
|
// authentication (HTTPBearer) required
|
|
|
|
|
localVarHeaders = this.configuration.addCredentialToHeaders(
|
|
|
|
|
'HTTPBearer',
|
|
|
|
|
'Authorization',
|
|
|
|
|
localVarHeaders,
|
|
|
|
|
'Bearer ',
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
|
|
|
|
options?.httpHeaderAccept ??
|
|
|
|
|
this.configuration.selectHeaderAccept(['application/json']);
|
|
|
|
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
|
|
|
localVarHeaders = localVarHeaders.set(
|
|
|
|
|
'Accept',
|
|
|
|
|
localVarHttpHeaderAcceptSelected,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const localVarHttpContext: HttpContext =
|
|
|
|
|
options?.context ?? new HttpContext();
|
|
|
|
|
|
|
|
|
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
|
|
|
|
|
|
|
|
// to determine the Content-Type header
|
|
|
|
|
const consumes: string[] = ['application/json'];
|
|
|
|
|
const httpContentTypeSelected: string | undefined =
|
|
|
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
|
|
|
if (httpContentTypeSelected !== undefined) {
|
|
|
|
|
localVarHeaders = localVarHeaders.set(
|
|
|
|
|
'Content-Type',
|
|
|
|
|
httpContentTypeSelected,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let localVarPath = `/api/orgminer/save-hierarchy`;
|
|
|
|
|
const { basePath, withCredentials } = this.configuration;
|
|
|
|
|
return this.httpClient.request<object>(
|
|
|
|
|
'post',
|
|
|
|
|
`${basePath}${localVarPath}`,
|
|
|
|
|
{
|
|
|
|
|
context: localVarHttpContext,
|
|
|
|
|
body: requestBody,
|
|
|
|
|
responseType: <any>responseType_,
|
|
|
|
|
...(withCredentials ? { withCredentials } : {}),
|
|
|
|
|
headers: localVarHeaders,
|
|
|
|
|
observe: observe,
|
|
|
|
|
...(localVarTransferCache !== undefined
|
|
|
|
|
? { transferCache: localVarTransferCache }
|
|
|
|
|
: {}),
|
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Saves the hierarchy of organizations.
|
|
|
|
|
* Saves the hierarchy of organizations (max. 3 suggestions per account and day).
|
|
|
|
|
* @endpoint post /api/orgminer/save-hierarchy
|
|
|
|
|
* @param requestBody
|
|
|
|
|
* @param secureFgpAcc
|
|
|
|
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
|
|
|
* @param reportProgress flag to report request and response progress.
|
|
|
|
|
*/
|
|
|
|
|
public saveHierarchy_6(
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'body',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<object>;
|
|
|
|
|
public saveHierarchy_6(
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'response',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpResponse<object>>;
|
|
|
|
|
public saveHierarchy_6(
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'events',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpEvent<object>>;
|
|
|
|
|
public saveHierarchy_6(
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe: any = 'body',
|
|
|
|
|
reportProgress: boolean = false,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<any> {
|
|
|
|
|
if (requestBody === null || requestBody === undefined) {
|
|
|
|
|
throw new Error(
|
|
|
|
|
'Required parameter requestBody was null or undefined when calling saveHierarchy_6.',
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let localVarHeaders = this.defaultHeaders;
|
|
|
|
|
|
|
|
|
|
// authentication (HTTPBearer) required
|
|
|
|
|
localVarHeaders = this.configuration.addCredentialToHeaders(
|
|
|
|
|
'HTTPBearer',
|
|
|
|
|
'Authorization',
|
|
|
|
|
localVarHeaders,
|
|
|
|
|
'Bearer ',
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
|
|
|
|
options?.httpHeaderAccept ??
|
|
|
|
|
this.configuration.selectHeaderAccept(['application/json']);
|
|
|
|
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
|
|
|
localVarHeaders = localVarHeaders.set(
|
|
|
|
|
'Accept',
|
|
|
|
|
localVarHttpHeaderAcceptSelected,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const localVarHttpContext: HttpContext =
|
|
|
|
|
options?.context ?? new HttpContext();
|
|
|
|
|
|
|
|
|
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
|
|
|
|
|
|
|
|
// to determine the Content-Type header
|
|
|
|
|
const consumes: string[] = ['application/json'];
|
|
|
|
|
const httpContentTypeSelected: string | undefined =
|
|
|
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
|
|
|
if (httpContentTypeSelected !== undefined) {
|
|
|
|
|
localVarHeaders = localVarHeaders.set(
|
|
|
|
|
'Content-Type',
|
|
|
|
|
httpContentTypeSelected,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let localVarPath = `/api/orgminer/save-hierarchy`;
|
|
|
|
|
const { basePath, withCredentials } = this.configuration;
|
|
|
|
|
return this.httpClient.request<object>(
|
|
|
|
|
'post',
|
|
|
|
|
`${basePath}${localVarPath}`,
|
|
|
|
|
{
|
|
|
|
|
context: localVarHttpContext,
|
|
|
|
|
body: requestBody,
|
|
|
|
|
responseType: <any>responseType_,
|
|
|
|
|
...(withCredentials ? { withCredentials } : {}),
|
|
|
|
|
headers: localVarHeaders,
|
|
|
|
|
observe: observe,
|
|
|
|
|
...(localVarTransferCache !== undefined
|
|
|
|
|
? { transferCache: localVarTransferCache }
|
|
|
|
|
: {}),
|
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|