mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
AAE-42151 [FE - Studio Admin] Improve types for Integration Contexts (#11633)
This commit is contained in:
+39
-3
@@ -41,11 +41,47 @@ export interface ServiceTaskQueryCloudRequestModel {
|
|||||||
startedDate?: Date;
|
startedDate?: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ServiceTaskIntegrationContextCloudModel extends ServiceTaskQueryCloudRequestModel {
|
export interface ServiceTaskIntegrationContextCloudModel {
|
||||||
errorDate?: Date;
|
id?: string;
|
||||||
errorClassName?: string;
|
status?: string;
|
||||||
|
appName?: string;
|
||||||
|
appVersion?: string;
|
||||||
|
serviceName?: string;
|
||||||
|
serviceFullName?: string;
|
||||||
|
serviceVersion?: string;
|
||||||
|
serviceType?: string;
|
||||||
|
processDefinitionId?: string;
|
||||||
|
processDefinitionKey?: string;
|
||||||
|
processDefinitionVersion?: number;
|
||||||
|
processInstanceId?: string;
|
||||||
|
parentProcessInstanceId?: string;
|
||||||
|
rootProcessInstanceId?: string;
|
||||||
|
executionId?: string;
|
||||||
|
connectorType?: string;
|
||||||
|
clientId?: string;
|
||||||
|
clientName?: string;
|
||||||
|
clientType?: string;
|
||||||
|
businessKey?: string;
|
||||||
|
inBoundVariables?: Record<string, any>;
|
||||||
|
outBoundVariables?: Record<string, any>;
|
||||||
|
requestDate?: string;
|
||||||
|
resultDate?: string;
|
||||||
|
errorDate?: string;
|
||||||
errorCode?: string;
|
errorCode?: string;
|
||||||
|
errorClassName?: string;
|
||||||
errorMessage?: string;
|
errorMessage?: string;
|
||||||
|
stackTraceElements?: ServiceTaskStackTraceElement[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ServiceTaskStackTraceElement {
|
||||||
|
classLoaderName?: string;
|
||||||
|
moduleName?: string;
|
||||||
|
moduleVersion?: string;
|
||||||
|
methodName?: string;
|
||||||
|
fileName?: string;
|
||||||
|
lineNumber?: number;
|
||||||
|
className?: string;
|
||||||
|
nativeMethod?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StackTraceElement {
|
export interface StackTraceElement {
|
||||||
|
|||||||
+1
-1
@@ -60,7 +60,7 @@ export class ServiceTaskListCloudService extends BaseCloudService {
|
|||||||
getServiceTaskStatus(appName: string, serviceTaskId: string): Observable<ServiceTaskIntegrationContextCloudModel> {
|
getServiceTaskStatus(appName: string, serviceTaskId: string): Observable<ServiceTaskIntegrationContextCloudModel> {
|
||||||
if (appName) {
|
if (appName) {
|
||||||
const queryUrl = `${this.getBasePath(appName)}/query/admin/v1/service-tasks/${serviceTaskId}/integration-context`;
|
const queryUrl = `${this.getBasePath(appName)}/query/admin/v1/service-tasks/${serviceTaskId}/integration-context`;
|
||||||
return this.get(queryUrl).pipe(map((response: any) => response.entry));
|
return this.get<{ entry: ServiceTaskIntegrationContextCloudModel }>(queryUrl).pipe(map((response) => response.entry));
|
||||||
} else {
|
} else {
|
||||||
return throwError('Appname not configured');
|
return throwError('Appname not configured');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user