mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[ACS-8001] content enrichment menu component
This commit is contained in:
committed by
Mykyta Maliarchuk
parent
548592b329
commit
a1cbcfca33
@@ -45,21 +45,24 @@ export class PredictionsApi extends BaseApi {
|
||||
*
|
||||
* @param predictionId The identifier of a prediction.
|
||||
* @param reviewStatus New status to apply for prediction. Can be either 'confirmed' or 'rejected'.
|
||||
* @returns Promise<void>
|
||||
* @returns Promise<{}>
|
||||
*/
|
||||
reviewPrediction(predictionId: string, reviewStatus: ReviewStatus): Promise<void> {
|
||||
throwIfNotDefined(predictionId, 'predictionId');
|
||||
throwIfNotDefined(reviewStatus, 'reviewStatus');
|
||||
|
||||
const pathParams = {
|
||||
predictionId,
|
||||
reviewStatus
|
||||
predictionId
|
||||
};
|
||||
|
||||
const queryParams = {
|
||||
reviewStatus
|
||||
}
|
||||
|
||||
return this.post({
|
||||
path: '/predictions/{predictionId}/review',
|
||||
pathParams,
|
||||
returnType: Promise<void>
|
||||
queryParams
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user