@process-engine/logging_api_contracts
Advanced tools
Comparing version 1.0.3-9ec612a7-b16 to 1.0.3-ea7f658b-b1
@@ -5,5 +5,7 @@ "use strict"; | ||
processModelId: ':process_model_id', | ||
processInstanceId: ':process_instance_id', | ||
}; | ||
const paths = { | ||
getLogForProcessModel: `/process_model/${params.processModelId}`, | ||
getLogForProcessInstance: `/process_model/${params.processInstanceId}`, | ||
}; | ||
@@ -10,0 +12,0 @@ exports.restSettings = { |
@@ -20,2 +20,14 @@ import { IIdentity } from '@essential-projects/iam_contracts'; | ||
/** | ||
* Retrieves the logs for a specific ProcessModel of a given Correlation. | ||
* @async | ||
* @param identity The identity of the requesting user. | ||
* @param processModelId The ID of the ProcessModel for which to retrieve | ||
* the logs. | ||
* @param processInstanceId The ID of the ProcessInstance for which to retrieve | ||
* the logs. | ||
* If not set, all logs will be returned. | ||
* @returns A list of log entries. | ||
*/ | ||
readLogForProcessInstance(identity: IIdentity, processModelId: string, processInstanceId: string): Promise<Array<LogEntry>>; | ||
/** | ||
* Writes a log entry for a specific ProcessModel of a Correlation. | ||
@@ -22,0 +34,0 @@ * @async |
@@ -18,2 +18,13 @@ import { LogEntry } from './log_entry'; | ||
/** | ||
* Retrieves the logs for a specific ProcessInstance. | ||
* @async | ||
* @param processModelId The ID of the ProcessModel for which to retrieve | ||
* the logs. | ||
* @async | ||
* @param processModelId The ID of the ProcessInstance for which to retrieve | ||
* the logs. | ||
* @returns A list of log entries. | ||
*/ | ||
readLogForProcessInstance(processModelId: string, processInstanceId: string): Promise<Array<LogEntry>>; | ||
/** | ||
* Writes a log entry for a specific ProcessModel of a Correlation. | ||
@@ -20,0 +31,0 @@ * @async |
@@ -10,2 +10,3 @@ /** | ||
processModelId: string; | ||
processInstanceId: string; | ||
}; | ||
@@ -17,3 +18,4 @@ /** | ||
getLogForProcessModel: string; | ||
getLogForProcessInstance: string; | ||
}; | ||
}; |
{ | ||
"name": "@process-engine/logging_api_contracts", | ||
"version": "1.0.3-9ec612a7-b16", | ||
"version": "1.0.3-ea7f658b-b1", | ||
"description": "the api-package for process-engine logging", | ||
@@ -5,0 +5,0 @@ "main": "dist/commonjs/index.js", |
@@ -24,2 +24,15 @@ import {IIdentity} from '@essential-projects/iam_contracts'; | ||
/** | ||
* Retrieves the logs for a specific ProcessModel of a given Correlation. | ||
* @async | ||
* @param identity The identity of the requesting user. | ||
* @param processModelId The ID of the ProcessModel for which to retrieve | ||
* the logs. | ||
* @param processInstanceId The ID of the ProcessInstance for which to retrieve | ||
* the logs. | ||
* If not set, all logs will be returned. | ||
* @returns A list of log entries. | ||
*/ | ||
readLogForProcessInstance(identity: IIdentity, processModelId: string, processInstanceId: string): Promise<Array<LogEntry>>; | ||
/** | ||
* Writes a log entry for a specific ProcessModel of a Correlation. | ||
@@ -26,0 +39,0 @@ * @async |
@@ -21,2 +21,14 @@ import {LogEntry} from './log_entry'; | ||
/** | ||
* Retrieves the logs for a specific ProcessInstance. | ||
* @async | ||
* @param processModelId The ID of the ProcessModel for which to retrieve | ||
* the logs. | ||
* @async | ||
* @param processModelId The ID of the ProcessInstance for which to retrieve | ||
* the logs. | ||
* @returns A list of log entries. | ||
*/ | ||
readLogForProcessInstance(processModelId: string, processInstanceId: string): Promise<Array<LogEntry>>; | ||
/** | ||
* Writes a log entry for a specific ProcessModel of a Correlation. | ||
@@ -23,0 +35,0 @@ * @async |
// tslint:disable:typedef | ||
const params = { | ||
processModelId: ':process_model_id', | ||
processInstanceId: ':process_instance_id', | ||
}; | ||
@@ -8,2 +9,3 @@ | ||
getLogForProcessModel: `/process_model/${params.processModelId}`, | ||
getLogForProcessInstance: `/process_model/${params.processInstanceId}`, | ||
}; | ||
@@ -10,0 +12,0 @@ |
Sorry, the diff of this file is not supported yet
33906
466