|
|
|
@@ -31,6 +31,8 @@ import { HTTPValidationError } from '../model/hTTPValidationError';
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
import { HierarchyResponse } from '../model/hierarchyResponse';
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
import { HierarchySuggestion } from '../model/hierarchySuggestion';
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
import { OrgminerContent } from '../model/orgminerContent';
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
import { SaveHierarchyResponse } from '../model/saveHierarchyResponse';
|
|
|
|
@@ -52,6 +54,143 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
super(basePath, configuration);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Accept Hierarchy Suggestion
|
|
|
|
|
* @endpoint post /api/orgminer/hierarchy-suggestions/{suggestion_id}/accept
|
|
|
|
|
* @param suggestionId
|
|
|
|
|
* @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 acceptHierarchySuggestion(
|
|
|
|
|
suggestionId: string,
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'body',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<SaveHierarchyResponse>;
|
|
|
|
|
public acceptHierarchySuggestion(
|
|
|
|
|
suggestionId: string,
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'response',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpResponse<SaveHierarchyResponse>>;
|
|
|
|
|
public acceptHierarchySuggestion(
|
|
|
|
|
suggestionId: string,
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'events',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpEvent<SaveHierarchyResponse>>;
|
|
|
|
|
public acceptHierarchySuggestion(
|
|
|
|
|
suggestionId: string,
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe: any = 'body',
|
|
|
|
|
reportProgress: boolean = false,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<any> {
|
|
|
|
|
if (suggestionId === null || suggestionId === undefined) {
|
|
|
|
|
throw new Error(
|
|
|
|
|
'Required parameter suggestionId was null or undefined when calling acceptHierarchySuggestion.',
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
if (requestBody === null || requestBody === undefined) {
|
|
|
|
|
throw new Error(
|
|
|
|
|
'Required parameter requestBody was null or undefined when calling acceptHierarchySuggestion.',
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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/hierarchy-suggestions/${this.configuration.encodeParam({ name: 'suggestionId', value: suggestionId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: 'uuid' })}/accept`;
|
|
|
|
|
const { basePath, withCredentials } = this.configuration;
|
|
|
|
|
return this.httpClient.request<SaveHierarchyResponse>(
|
|
|
|
|
'post',
|
|
|
|
|
`${basePath}${localVarPath}`,
|
|
|
|
|
{
|
|
|
|
|
context: localVarHttpContext,
|
|
|
|
|
body: requestBody,
|
|
|
|
|
responseType: <any>responseType_,
|
|
|
|
|
...(withCredentials ? { withCredentials } : {}),
|
|
|
|
|
headers: localVarHeaders,
|
|
|
|
|
observe: observe,
|
|
|
|
|
...(localVarTransferCache !== undefined
|
|
|
|
|
? { transferCache: localVarTransferCache }
|
|
|
|
|
: {}),
|
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns the classified pages of the orgminer org.
|
|
|
|
|
* @endpoint get /api/orgminer/classified-pages
|
|
|
|
@@ -711,6 +850,214 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns hierarchy suggestions for managers.
|
|
|
|
|
* @endpoint get /api/orgminer/hierarchy-suggestions
|
|
|
|
|
* @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 getHierarchySuggestions(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'body',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<Array<HierarchySuggestion>>;
|
|
|
|
|
public getHierarchySuggestions(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'response',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpResponse<Array<HierarchySuggestion>>>;
|
|
|
|
|
public getHierarchySuggestions(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'events',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpEvent<Array<HierarchySuggestion>>>;
|
|
|
|
|
public getHierarchySuggestions(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe: any = 'body',
|
|
|
|
|
reportProgress: boolean = false,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<any> {
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
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/hierarchy-suggestions`;
|
|
|
|
|
const { basePath, withCredentials } = this.configuration;
|
|
|
|
|
return this.httpClient.request<Array<HierarchySuggestion>>(
|
|
|
|
|
'get',
|
|
|
|
|
`${basePath}${localVarPath}`,
|
|
|
|
|
{
|
|
|
|
|
context: localVarHttpContext,
|
|
|
|
|
responseType: <any>responseType_,
|
|
|
|
|
...(withCredentials ? { withCredentials } : {}),
|
|
|
|
|
headers: localVarHeaders,
|
|
|
|
|
observe: observe,
|
|
|
|
|
...(localVarTransferCache !== undefined
|
|
|
|
|
? { transferCache: localVarTransferCache }
|
|
|
|
|
: {}),
|
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns hierarchy suggestions for managers.
|
|
|
|
|
* @endpoint get /api/orgminer/hierarchy-suggestions
|
|
|
|
|
* @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 getHierarchySuggestions_3(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'body',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<Array<HierarchySuggestion>>;
|
|
|
|
|
public getHierarchySuggestions_3(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'response',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpResponse<Array<HierarchySuggestion>>>;
|
|
|
|
|
public getHierarchySuggestions_3(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'events',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpEvent<Array<HierarchySuggestion>>>;
|
|
|
|
|
public getHierarchySuggestions_3(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe: any = 'body',
|
|
|
|
|
reportProgress: boolean = false,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<any> {
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
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/hierarchy-suggestions`;
|
|
|
|
|
const { basePath, withCredentials } = this.configuration;
|
|
|
|
|
return this.httpClient.request<Array<HierarchySuggestion>>(
|
|
|
|
|
'get',
|
|
|
|
|
`${basePath}${localVarPath}`,
|
|
|
|
|
{
|
|
|
|
|
context: localVarHttpContext,
|
|
|
|
|
responseType: <any>responseType_,
|
|
|
|
|
...(withCredentials ? { withCredentials } : {}),
|
|
|
|
|
headers: localVarHeaders,
|
|
|
|
|
observe: observe,
|
|
|
|
|
...(localVarTransferCache !== undefined
|
|
|
|
|
? { transferCache: localVarTransferCache }
|
|
|
|
|
: {}),
|
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Returns the hierarchy of organizations.
|
|
|
|
|
* Returns the hierarchy of organizations.
|
|
|
|
@@ -719,7 +1066,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
* @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 getHierarchy_3(
|
|
|
|
|
public getHierarchy_4(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'body',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
@@ -729,7 +1076,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HierarchyResponse>;
|
|
|
|
|
public getHierarchy_3(
|
|
|
|
|
public getHierarchy_4(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'response',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
@@ -739,7 +1086,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpResponse<HierarchyResponse>>;
|
|
|
|
|
public getHierarchy_3(
|
|
|
|
|
public getHierarchy_4(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'events',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
@@ -749,7 +1096,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpEvent<HierarchyResponse>>;
|
|
|
|
|
public getHierarchy_3(
|
|
|
|
|
public getHierarchy_4(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe: any = 'body',
|
|
|
|
|
reportProgress: boolean = false,
|
|
|
|
@@ -958,7 +1305,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
* @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 getOrgByPersonName_4(
|
|
|
|
|
public getOrgByPersonName_5(
|
|
|
|
|
name: string,
|
|
|
|
|
minSharedWorks?: number,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
@@ -970,7 +1317,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<object>;
|
|
|
|
|
public getOrgByPersonName_4(
|
|
|
|
|
public getOrgByPersonName_5(
|
|
|
|
|
name: string,
|
|
|
|
|
minSharedWorks?: number,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
@@ -982,7 +1329,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpResponse<object>>;
|
|
|
|
|
public getOrgByPersonName_4(
|
|
|
|
|
public getOrgByPersonName_5(
|
|
|
|
|
name: string,
|
|
|
|
|
minSharedWorks?: number,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
@@ -994,7 +1341,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpEvent<object>>;
|
|
|
|
|
public getOrgByPersonName_4(
|
|
|
|
|
public getOrgByPersonName_5(
|
|
|
|
|
name: string,
|
|
|
|
|
minSharedWorks?: number,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
@@ -1008,7 +1355,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
): Observable<any> {
|
|
|
|
|
if (name === null || name === undefined) {
|
|
|
|
|
throw new Error(
|
|
|
|
|
'Required parameter name was null or undefined when calling getOrgByPersonName_4.',
|
|
|
|
|
'Required parameter name was null or undefined when calling getOrgByPersonName_5.',
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -1213,7 +1560,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
* @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 getOrgminerContent_5(
|
|
|
|
|
public getOrgminerContent_6(
|
|
|
|
|
orgUrl: string,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'body',
|
|
|
|
@@ -1224,7 +1571,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<OrgminerContent>;
|
|
|
|
|
public getOrgminerContent_5(
|
|
|
|
|
public getOrgminerContent_6(
|
|
|
|
|
orgUrl: string,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'response',
|
|
|
|
@@ -1235,7 +1582,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpResponse<OrgminerContent>>;
|
|
|
|
|
public getOrgminerContent_5(
|
|
|
|
|
public getOrgminerContent_6(
|
|
|
|
|
orgUrl: string,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'events',
|
|
|
|
@@ -1246,7 +1593,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpEvent<OrgminerContent>>;
|
|
|
|
|
public getOrgminerContent_5(
|
|
|
|
|
public getOrgminerContent_6(
|
|
|
|
|
orgUrl: string,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe: any = 'body',
|
|
|
|
@@ -1259,7 +1606,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
): Observable<any> {
|
|
|
|
|
if (orgUrl === null || orgUrl === undefined) {
|
|
|
|
|
throw new Error(
|
|
|
|
|
'Required parameter orgUrl was null or undefined when calling getOrgminerContent_5.',
|
|
|
|
|
'Required parameter orgUrl was null or undefined when calling getOrgminerContent_6.',
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -1329,8 +1676,123 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Saves the hierarchy of organizations.
|
|
|
|
|
* Saves the hierarchy of organizations (max. 3 suggestions per account and day).
|
|
|
|
|
* Reject Hierarchy Suggestion
|
|
|
|
|
* @endpoint post /api/orgminer/hierarchy-suggestions/{suggestion_id}/reject
|
|
|
|
|
* @param suggestionId
|
|
|
|
|
* @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 rejectHierarchySuggestion(
|
|
|
|
|
suggestionId: string,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'body',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<object>;
|
|
|
|
|
public rejectHierarchySuggestion(
|
|
|
|
|
suggestionId: string,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'response',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpResponse<object>>;
|
|
|
|
|
public rejectHierarchySuggestion(
|
|
|
|
|
suggestionId: string,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'events',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpEvent<object>>;
|
|
|
|
|
public rejectHierarchySuggestion(
|
|
|
|
|
suggestionId: string,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe: any = 'body',
|
|
|
|
|
reportProgress: boolean = false,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<any> {
|
|
|
|
|
if (suggestionId === null || suggestionId === undefined) {
|
|
|
|
|
throw new Error(
|
|
|
|
|
'Required parameter suggestionId was null or undefined when calling rejectHierarchySuggestion.',
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
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/hierarchy-suggestions/${this.configuration.encodeParam({ name: 'suggestionId', value: suggestionId, in: 'path', style: 'simple', explode: false, dataType: 'string', dataFormat: 'uuid' })}/reject`;
|
|
|
|
|
const { basePath, withCredentials } = this.configuration;
|
|
|
|
|
return this.httpClient.request<object>(
|
|
|
|
|
'post',
|
|
|
|
|
`${basePath}${localVarPath}`,
|
|
|
|
|
{
|
|
|
|
|
context: localVarHttpContext,
|
|
|
|
|
responseType: <any>responseType_,
|
|
|
|
|
...(withCredentials ? { withCredentials } : {}),
|
|
|
|
|
headers: localVarHeaders,
|
|
|
|
|
observe: observe,
|
|
|
|
|
...(localVarTransferCache !== undefined
|
|
|
|
|
? { transferCache: localVarTransferCache }
|
|
|
|
|
: {}),
|
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Submits a suggestion or, for managers, updates the active hierarchy.
|
|
|
|
|
* Users submit suggestions (max. 3 per account and day); managers update the active hierarchy.
|
|
|
|
|
* @endpoint post /api/orgminer/save-hierarchy
|
|
|
|
|
* @param requestBody
|
|
|
|
|
* @param secureFgpAcc
|
|
|
|
@@ -1338,7 +1800,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
* @param reportProgress flag to report request and response progress.
|
|
|
|
|
*/
|
|
|
|
|
public saveHierarchy(
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
requestBody: Array<object>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'body',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
@@ -1349,7 +1811,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
},
|
|
|
|
|
): Observable<SaveHierarchyResponse>;
|
|
|
|
|
public saveHierarchy(
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
requestBody: Array<object>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'response',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
@@ -1360,7 +1822,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpResponse<SaveHierarchyResponse>>;
|
|
|
|
|
public saveHierarchy(
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
requestBody: Array<object>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'events',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
@@ -1371,7 +1833,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpEvent<SaveHierarchyResponse>>;
|
|
|
|
|
public saveHierarchy(
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
requestBody: Array<object>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe: any = 'body',
|
|
|
|
|
reportProgress: boolean = false,
|
|
|
|
@@ -1457,16 +1919,16 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Saves the hierarchy of organizations.
|
|
|
|
|
* Saves the hierarchy of organizations (max. 3 suggestions per account and day).
|
|
|
|
|
* Submits a suggestion or, for managers, updates the active hierarchy.
|
|
|
|
|
* Users submit suggestions (max. 3 per account and day); managers update the active hierarchy.
|
|
|
|
|
* @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>,
|
|
|
|
|
public saveHierarchy_7(
|
|
|
|
|
requestBody: Array<object>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'body',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
@@ -1476,8 +1938,8 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<SaveHierarchyResponse>;
|
|
|
|
|
public saveHierarchy_6(
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
public saveHierarchy_7(
|
|
|
|
|
requestBody: Array<object>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'response',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
@@ -1487,8 +1949,8 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpResponse<SaveHierarchyResponse>>;
|
|
|
|
|
public saveHierarchy_6(
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
public saveHierarchy_7(
|
|
|
|
|
requestBody: Array<object>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'events',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
@@ -1498,8 +1960,8 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpEvent<SaveHierarchyResponse>>;
|
|
|
|
|
public saveHierarchy_6(
|
|
|
|
|
requestBody: Array<object | null>,
|
|
|
|
|
public saveHierarchy_7(
|
|
|
|
|
requestBody: Array<object>,
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe: any = 'body',
|
|
|
|
|
reportProgress: boolean = false,
|
|
|
|
@@ -1511,7 +1973,7 @@ export class OrgminerService extends BaseService {
|
|
|
|
|
): Observable<any> {
|
|
|
|
|
if (requestBody === null || requestBody === undefined) {
|
|
|
|
|
throw new Error(
|
|
|
|
|
'Required parameter requestBody was null or undefined when calling saveHierarchy_6.',
|
|
|
|
|
'Required parameter requestBody was null or undefined when calling saveHierarchy_7.',
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|