AAE-42151 [FE - Studio Admin] Improve types for Integration Contexts (#11633)

This commit is contained in:
Tomasz Nastaly
2026-02-11 10:36:59 +01:00
committed by GitHub
parent 10ae06b755
commit 30afd2d863
2 changed files with 40 additions and 4 deletions
@@ -41,11 +41,47 @@ export interface ServiceTaskQueryCloudRequestModel {
startedDate?: Date;
}
export interface ServiceTaskIntegrationContextCloudModel extends ServiceTaskQueryCloudRequestModel {
errorDate?: Date;
errorClassName?: string;
export interface ServiceTaskIntegrationContextCloudModel {
id?: 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;
errorClassName?: 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 {
@@ -60,7 +60,7 @@ export class ServiceTaskListCloudService extends BaseCloudService {
getServiceTaskStatus(appName: string, serviceTaskId: string): Observable<ServiceTaskIntegrationContextCloudModel> {
if (appName) {
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 {
return throwError('Appname not configured');
}