@process-engine/logging_api_contracts
Advanced tools
Comparing version 0.1.4 to 0.1.5-04ceb650-b8
@@ -5,7 +5,5 @@ "use strict"; | ||
processModelId: ':process_model_id', | ||
correlationId: ':correlation_id', | ||
}; | ||
const paths = { | ||
getLogForCorrelation: `/correlation/${params.correlationId}`, | ||
getLogForProcessModel: `/correlation/${params.correlationId}/process_model/${params.processModelId}`, | ||
getLogForProcessModel: `/process_model/${params.processModelId}`, | ||
}; | ||
@@ -12,0 +10,0 @@ exports.restSettings = { |
@@ -13,4 +13,2 @@ import { IIdentity } from '@essential-projects/iam_contracts'; | ||
* @param identity The identity of the requesting user. | ||
* @param correlationId The ID of the Correlation for which to retrieve | ||
* the logs. | ||
* @param processModelId The ID of ProcessModel for which to retrieve | ||
@@ -21,3 +19,3 @@ * the logs. | ||
*/ | ||
readLogForProcessModel(identity: IIdentity, correlationId: string, processModelId: string): Promise<Array<LogEntry>>; | ||
readLogForProcessModel(identity: IIdentity, processModelId: string): Promise<Array<LogEntry>>; | ||
/** | ||
@@ -24,0 +22,0 @@ * Writes a log entry for a specific ProcessModel of a Correlation. |
@@ -9,6 +9,4 @@ import { LogEntry } from './log_entry'; | ||
/** | ||
* Retrieves the logs for a specific ProcessModel of a given Correlation. | ||
* Retrieves the logs for a specific ProcessModel. | ||
* @async | ||
* @param correlationId The ID of the Correlation for which to retrieve | ||
* the logs. | ||
* @param processModelId The ID of ProcessModel for which to retrieve | ||
@@ -19,5 +17,5 @@ * the logs. | ||
*/ | ||
readLogForProcessModel(correlationId: string, processModelId: string): Promise<Array<LogEntry>>; | ||
readLogForProcessModel(processModelId: string): Promise<Array<LogEntry>>; | ||
/** | ||
* Writes a log entry for a specific ProcessModel of a Correlation. | ||
* Writes a log entry for a specific ProcessModel. | ||
* @async | ||
@@ -24,0 +22,0 @@ * @param correlationId The ID of the Correlation to which the |
@@ -7,8 +7,6 @@ /** | ||
processModelId: string; | ||
correlationId: string; | ||
}; | ||
paths: { | ||
getLogForCorrelation: string; | ||
getLogForProcessModel: string; | ||
}; | ||
}; |
{ | ||
"name": "@process-engine/logging_api_contracts", | ||
"version": "0.1.4", | ||
"version": "0.1.5-04ceb650-b8", | ||
"description": "the api-package for process-engine logging", | ||
@@ -5,0 +5,0 @@ "main": "dist/commonjs/index.js", |
@@ -16,4 +16,2 @@ import {IIdentity} from '@essential-projects/iam_contracts'; | ||
* @param identity The identity of the requesting user. | ||
* @param correlationId The ID of the Correlation for which to retrieve | ||
* the logs. | ||
* @param processModelId The ID of ProcessModel for which to retrieve | ||
@@ -24,3 +22,3 @@ * the logs. | ||
*/ | ||
readLogForProcessModel(identity: IIdentity, correlationId: string, processModelId: string): Promise<Array<LogEntry>>; | ||
readLogForProcessModel(identity: IIdentity, processModelId: string): Promise<Array<LogEntry>>; | ||
@@ -27,0 +25,0 @@ /** |
@@ -11,6 +11,4 @@ import {LogEntry} from './log_entry'; | ||
/** | ||
* Retrieves the logs for a specific ProcessModel of a given Correlation. | ||
* Retrieves the logs for a specific ProcessModel. | ||
* @async | ||
* @param correlationId The ID of the Correlation for which to retrieve | ||
* the logs. | ||
* @param processModelId The ID of ProcessModel for which to retrieve | ||
@@ -21,6 +19,6 @@ * the logs. | ||
*/ | ||
readLogForProcessModel(correlationId: string, processModelId: string): Promise<Array<LogEntry>>; | ||
readLogForProcessModel(processModelId: string): Promise<Array<LogEntry>>; | ||
/** | ||
* Writes a log entry for a specific ProcessModel of a Correlation. | ||
* Writes a log entry for a specific ProcessModel. | ||
* @async | ||
@@ -27,0 +25,0 @@ * @param correlationId The ID of the Correlation to which the |
// tslint:disable:typedef | ||
const params = { | ||
processModelId: ':process_model_id', | ||
correlationId: ':correlation_id', | ||
}; | ||
const paths = { | ||
getLogForCorrelation: `/correlation/${params.correlationId}`, | ||
getLogForProcessModel: `/correlation/${params.correlationId}/process_model/${params.processModelId}`, | ||
getLogForProcessModel: `/process_model/${params.processModelId}`, | ||
}; | ||
@@ -11,0 +9,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27359
394