agilite
Advanced tools
Comparing version 6.7.3 to 6.7.4
@@ -96,7 +96,8 @@ 'use strict' | ||
initLogProcess (profileKey = '', logProcessId = null) { | ||
initLogProcess (profileKey = '', data = {}, logProcessId = null) { | ||
let config = { | ||
url: `${this.apiServerUrl}/${Enums.MODULE_KEY_BATCH_LOGGING}/initLogProcess`, | ||
method: Enums.METHOD_POST, | ||
headers: {} | ||
headers: {}, | ||
data | ||
} | ||
@@ -123,11 +124,12 @@ | ||
completeLogProcess (logProcessId = '') { | ||
completeLogProcess (logProcessId = '', data = {}) { | ||
let config = { | ||
url: `${this.apiServerUrl}/${Enums.MODULE_KEY_BATCH_LOGGING}/completeLogProcess`, | ||
method: Enums.METHOD_POST, | ||
headers: {} | ||
headers: {}, | ||
data | ||
} | ||
if (logProcessId !== undefined && logProcessId !== null) { | ||
config.headers['log-process-id'] = logProcessId | ||
config.headers[Enums.HEADER_LOG_PROCESS_ID] = logProcessId | ||
} | ||
@@ -146,11 +148,12 @@ | ||
createLogEntry (logProcessId = '') { | ||
createLogEntry (logProcessId = '', data = {}) { | ||
let config = { | ||
url: `${this.apiServerUrl}/${Enums.MODULE_KEY_BATCH_LOGGING}/createLogEntry`, | ||
method: Enums.METHOD_POST, | ||
headers: {} | ||
headers: {}, | ||
data | ||
} | ||
if (logProcessId !== undefined && logProcessId !== null) { | ||
config.headers['log-process-id'] = logProcessId | ||
config.headers[Enums.HEADER_LOG_PROCESS_ID] = logProcessId | ||
} | ||
@@ -176,3 +179,3 @@ | ||
config.headers['log-process-id'] = logProcessId | ||
config.headers[Enums.HEADER_LOG_PROCESS_ID] = logProcessId | ||
@@ -179,0 +182,0 @@ if (qry !== undefined && qry !== null) { |
{ | ||
"name": "agilite", | ||
"license": "MIT", | ||
"version": "6.7.3", | ||
"version": "6.7.4", | ||
"description": "A NodeJS module that provides seamless interactions with Agilit-e APIs", | ||
@@ -6,0 +6,0 @@ "homepage": "https://agilite.io", |
325547
7141