services and models regenerated
This commit is contained in:
@@ -191,6 +191,143 @@ export class OrgminerService extends BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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_1(
|
||||
suggestionId: string,
|
||||
requestBody: Array<object | null>,
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'body',
|
||||
reportProgress?: boolean,
|
||||
options?: {
|
||||
httpHeaderAccept?: 'application/json';
|
||||
context?: HttpContext;
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<SaveHierarchyResponse>;
|
||||
public acceptHierarchySuggestion_1(
|
||||
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_1(
|
||||
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_1(
|
||||
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_1.',
|
||||
);
|
||||
}
|
||||
if (requestBody === null || requestBody === undefined) {
|
||||
throw new Error(
|
||||
'Required parameter requestBody was null or undefined when calling acceptHierarchySuggestion_1.',
|
||||
);
|
||||
}
|
||||
|
||||
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
|
||||
@@ -477,7 +614,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 getClassifiedPagesAggs_1(
|
||||
public getClassifiedPagesAggs_2(
|
||||
orgUrl: string,
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'body',
|
||||
@@ -488,7 +625,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<Array<CategoryBucket>>;
|
||||
public getClassifiedPagesAggs_1(
|
||||
public getClassifiedPagesAggs_2(
|
||||
orgUrl: string,
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'response',
|
||||
@@ -499,7 +636,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpResponse<Array<CategoryBucket>>>;
|
||||
public getClassifiedPagesAggs_1(
|
||||
public getClassifiedPagesAggs_2(
|
||||
orgUrl: string,
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'events',
|
||||
@@ -510,7 +647,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpEvent<Array<CategoryBucket>>>;
|
||||
public getClassifiedPagesAggs_1(
|
||||
public getClassifiedPagesAggs_2(
|
||||
orgUrl: string,
|
||||
secureFgpAcc?: string,
|
||||
observe: any = 'body',
|
||||
@@ -523,7 +660,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 getClassifiedPagesAggs_1.',
|
||||
'Required parameter orgUrl was null or undefined when calling getClassifiedPagesAggs_2.',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -603,7 +740,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 getClassifiedPages_2(
|
||||
public getClassifiedPages_3(
|
||||
orgUrl: string,
|
||||
category?: string,
|
||||
page?: number,
|
||||
@@ -617,7 +754,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<ClassifiedPageResponse>;
|
||||
public getClassifiedPages_2(
|
||||
public getClassifiedPages_3(
|
||||
orgUrl: string,
|
||||
category?: string,
|
||||
page?: number,
|
||||
@@ -631,7 +768,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpResponse<ClassifiedPageResponse>>;
|
||||
public getClassifiedPages_2(
|
||||
public getClassifiedPages_3(
|
||||
orgUrl: string,
|
||||
category?: string,
|
||||
page?: number,
|
||||
@@ -645,7 +782,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpEvent<ClassifiedPageResponse>>;
|
||||
public getClassifiedPages_2(
|
||||
public getClassifiedPages_3(
|
||||
orgUrl: string,
|
||||
category?: string,
|
||||
page?: number,
|
||||
@@ -661,7 +798,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 getClassifiedPages_2.',
|
||||
'Required parameter orgUrl was null or undefined when calling getClassifiedPages_3.',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -961,7 +1098,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 getHierarchySuggestions_3(
|
||||
public getHierarchySuggestions_4(
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'body',
|
||||
reportProgress?: boolean,
|
||||
@@ -971,7 +1108,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<Array<HierarchySuggestion>>;
|
||||
public getHierarchySuggestions_3(
|
||||
public getHierarchySuggestions_4(
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'response',
|
||||
reportProgress?: boolean,
|
||||
@@ -981,7 +1118,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpResponse<Array<HierarchySuggestion>>>;
|
||||
public getHierarchySuggestions_3(
|
||||
public getHierarchySuggestions_4(
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'events',
|
||||
reportProgress?: boolean,
|
||||
@@ -991,7 +1128,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpEvent<Array<HierarchySuggestion>>>;
|
||||
public getHierarchySuggestions_3(
|
||||
public getHierarchySuggestions_4(
|
||||
secureFgpAcc?: string,
|
||||
observe: any = 'body',
|
||||
reportProgress: boolean = false,
|
||||
@@ -1066,7 +1203,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_4(
|
||||
public getHierarchy_5(
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'body',
|
||||
reportProgress?: boolean,
|
||||
@@ -1076,7 +1213,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HierarchyResponse>;
|
||||
public getHierarchy_4(
|
||||
public getHierarchy_5(
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'response',
|
||||
reportProgress?: boolean,
|
||||
@@ -1086,7 +1223,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpResponse<HierarchyResponse>>;
|
||||
public getHierarchy_4(
|
||||
public getHierarchy_5(
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'events',
|
||||
reportProgress?: boolean,
|
||||
@@ -1096,7 +1233,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpEvent<HierarchyResponse>>;
|
||||
public getHierarchy_4(
|
||||
public getHierarchy_5(
|
||||
secureFgpAcc?: string,
|
||||
observe: any = 'body',
|
||||
reportProgress: boolean = false,
|
||||
@@ -1163,6 +1300,214 @@ export class OrgminerService extends BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns hierarchy suggestions submitted by the current user.
|
||||
* @endpoint get /api/orgminer/my-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 getMyHierarchySuggestions(
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'body',
|
||||
reportProgress?: boolean,
|
||||
options?: {
|
||||
httpHeaderAccept?: 'application/json';
|
||||
context?: HttpContext;
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<Array<HierarchySuggestion>>;
|
||||
public getMyHierarchySuggestions(
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'response',
|
||||
reportProgress?: boolean,
|
||||
options?: {
|
||||
httpHeaderAccept?: 'application/json';
|
||||
context?: HttpContext;
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpResponse<Array<HierarchySuggestion>>>;
|
||||
public getMyHierarchySuggestions(
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'events',
|
||||
reportProgress?: boolean,
|
||||
options?: {
|
||||
httpHeaderAccept?: 'application/json';
|
||||
context?: HttpContext;
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpEvent<Array<HierarchySuggestion>>>;
|
||||
public getMyHierarchySuggestions(
|
||||
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/my-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 submitted by the current user.
|
||||
* @endpoint get /api/orgminer/my-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 getMyHierarchySuggestions_6(
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'body',
|
||||
reportProgress?: boolean,
|
||||
options?: {
|
||||
httpHeaderAccept?: 'application/json';
|
||||
context?: HttpContext;
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<Array<HierarchySuggestion>>;
|
||||
public getMyHierarchySuggestions_6(
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'response',
|
||||
reportProgress?: boolean,
|
||||
options?: {
|
||||
httpHeaderAccept?: 'application/json';
|
||||
context?: HttpContext;
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpResponse<Array<HierarchySuggestion>>>;
|
||||
public getMyHierarchySuggestions_6(
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'events',
|
||||
reportProgress?: boolean,
|
||||
options?: {
|
||||
httpHeaderAccept?: 'application/json';
|
||||
context?: HttpContext;
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpEvent<Array<HierarchySuggestion>>>;
|
||||
public getMyHierarchySuggestions_6(
|
||||
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/my-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 organization information for a given person name.
|
||||
* @endpoint get /api/orgminer/get-org-by-person-name
|
||||
@@ -1305,7 +1650,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_5(
|
||||
public getOrgByPersonName_7(
|
||||
name: string,
|
||||
minSharedWorks?: number,
|
||||
secureFgpAcc?: string,
|
||||
@@ -1317,7 +1662,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<object>;
|
||||
public getOrgByPersonName_5(
|
||||
public getOrgByPersonName_7(
|
||||
name: string,
|
||||
minSharedWorks?: number,
|
||||
secureFgpAcc?: string,
|
||||
@@ -1329,7 +1674,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpResponse<object>>;
|
||||
public getOrgByPersonName_5(
|
||||
public getOrgByPersonName_7(
|
||||
name: string,
|
||||
minSharedWorks?: number,
|
||||
secureFgpAcc?: string,
|
||||
@@ -1341,7 +1686,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpEvent<object>>;
|
||||
public getOrgByPersonName_5(
|
||||
public getOrgByPersonName_7(
|
||||
name: string,
|
||||
minSharedWorks?: number,
|
||||
secureFgpAcc?: string,
|
||||
@@ -1355,7 +1700,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_5.',
|
||||
'Required parameter name was null or undefined when calling getOrgByPersonName_7.',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1560,7 +1905,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_6(
|
||||
public getOrgminerContent_8(
|
||||
orgUrl: string,
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'body',
|
||||
@@ -1571,7 +1916,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<OrgminerContent>;
|
||||
public getOrgminerContent_6(
|
||||
public getOrgminerContent_8(
|
||||
orgUrl: string,
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'response',
|
||||
@@ -1582,7 +1927,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpResponse<OrgminerContent>>;
|
||||
public getOrgminerContent_6(
|
||||
public getOrgminerContent_8(
|
||||
orgUrl: string,
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'events',
|
||||
@@ -1593,7 +1938,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpEvent<OrgminerContent>>;
|
||||
public getOrgminerContent_6(
|
||||
public getOrgminerContent_8(
|
||||
orgUrl: string,
|
||||
secureFgpAcc?: string,
|
||||
observe: any = 'body',
|
||||
@@ -1606,7 +1951,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_6.',
|
||||
'Required parameter orgUrl was null or undefined when calling getOrgminerContent_8.',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1790,6 +2135,121 @@ export class OrgminerService extends BaseService {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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_9(
|
||||
suggestionId: string,
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'body',
|
||||
reportProgress?: boolean,
|
||||
options?: {
|
||||
httpHeaderAccept?: 'application/json';
|
||||
context?: HttpContext;
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<object>;
|
||||
public rejectHierarchySuggestion_9(
|
||||
suggestionId: string,
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'response',
|
||||
reportProgress?: boolean,
|
||||
options?: {
|
||||
httpHeaderAccept?: 'application/json';
|
||||
context?: HttpContext;
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpResponse<object>>;
|
||||
public rejectHierarchySuggestion_9(
|
||||
suggestionId: string,
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'events',
|
||||
reportProgress?: boolean,
|
||||
options?: {
|
||||
httpHeaderAccept?: 'application/json';
|
||||
context?: HttpContext;
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpEvent<object>>;
|
||||
public rejectHierarchySuggestion_9(
|
||||
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_9.',
|
||||
);
|
||||
}
|
||||
|
||||
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.
|
||||
@@ -1927,7 +2387,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 saveHierarchy_7(
|
||||
public saveHierarchy_10(
|
||||
requestBody: Array<object>,
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'body',
|
||||
@@ -1938,7 +2398,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<SaveHierarchyResponse>;
|
||||
public saveHierarchy_7(
|
||||
public saveHierarchy_10(
|
||||
requestBody: Array<object>,
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'response',
|
||||
@@ -1949,7 +2409,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpResponse<SaveHierarchyResponse>>;
|
||||
public saveHierarchy_7(
|
||||
public saveHierarchy_10(
|
||||
requestBody: Array<object>,
|
||||
secureFgpAcc?: string,
|
||||
observe?: 'events',
|
||||
@@ -1960,7 +2420,7 @@ export class OrgminerService extends BaseService {
|
||||
transferCache?: boolean;
|
||||
},
|
||||
): Observable<HttpEvent<SaveHierarchyResponse>>;
|
||||
public saveHierarchy_7(
|
||||
public saveHierarchy_10(
|
||||
requestBody: Array<object>,
|
||||
secureFgpAcc?: string,
|
||||
observe: any = 'body',
|
||||
@@ -1973,7 +2433,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_7.',
|
||||
'Required parameter requestBody was null or undefined when calling saveHierarchy_10.',
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,10 +9,9 @@
|
||||
*/
|
||||
import { HierarchyNode } from './hierarchyNode';
|
||||
|
||||
|
||||
export interface HierarchyResponse {
|
||||
hierarchy: Array<HierarchyNode>;
|
||||
can_edit?: boolean;
|
||||
can_suggest?: boolean;
|
||||
number_of_suggestion_slots?: number;
|
||||
export interface HierarchyResponse {
|
||||
hierarchy: Array<HierarchyNode>;
|
||||
can_edit?: boolean;
|
||||
can_suggest?: boolean;
|
||||
number_of_suggestion_slots?: number;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* Innovation Search Engine API
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
@@ -9,20 +9,18 @@
|
||||
*/
|
||||
import { HierarchyNode } from './hierarchyNode';
|
||||
|
||||
|
||||
export interface HierarchySuggestion {
|
||||
id: string;
|
||||
created_at: string;
|
||||
status: HierarchySuggestion.StatusEnum;
|
||||
hierarchy: Array<HierarchyNode>;
|
||||
export interface HierarchySuggestion {
|
||||
id: string;
|
||||
created_at: string;
|
||||
status: HierarchySuggestion.StatusEnum;
|
||||
active: boolean;
|
||||
hierarchy: Array<HierarchyNode>;
|
||||
}
|
||||
export namespace HierarchySuggestion {
|
||||
export const StatusEnum = {
|
||||
New: 'new',
|
||||
Accepted: 'accepted',
|
||||
Rejected: 'rejected'
|
||||
} as const;
|
||||
export type StatusEnum = typeof StatusEnum[keyof typeof StatusEnum];
|
||||
export const StatusEnum = {
|
||||
New: 'new',
|
||||
Accepted: 'accepted',
|
||||
Rejected: 'rejected',
|
||||
} as const;
|
||||
export type StatusEnum = (typeof StatusEnum)[keyof typeof StatusEnum];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user