@gus-eip/loggers 3.2.8 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,6 @@ export declare class CloudWatchLoggerService implements ILogger {
8
8
  createLogStream(logStreamName: string): Promise<any>;
9
9
  logToCloudWatch(type: string, logObject: any, logStreamName: string): Promise<void>;
10
10
  logStreamExists(logStreamName: string): Promise<boolean>;
11
- log(requestedId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, sourcePayload: any, destinationPayload: any, logMessage: any, brand: any, secondaryKey: string, logStreamName?: string, destinationObjectType?: string, destinationObjectId?: string, sourceObjectType?: string, sourceObjectId?: string): Promise<any>;
12
- error(requestedId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, sourcePayload: any, destinationPayload: any, errorMessage: any, brand: any, secondaryKey: string, destinationObjectType?: string, destinationObjectId?: string, logStreamName?: string): Promise<any>;
11
+ log(requestedId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, sourcePayload: any, destinationPayload: any, logMessage: any, brand: any, secondaryKey: string, logStreamName: string, destinationObjectType?: string, destinationObjectId?: string, sourceObjectType?: string, sourceObjectId?: string): Promise<any>;
12
+ error(requestedId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, sourcePayload: any, destinationPayload: any, errorMessage: any, brand: any, secondaryKey: string, logStreamName: string, destinationObjectType?: string, destinationObjectId?: string, sourceObjectType?: string, sourceObjectId?: string): Promise<any>;
13
13
  }
@@ -94,7 +94,7 @@ let CloudWatchLoggerService = class CloudWatchLoggerService {
94
94
  };
95
95
  await this.logToCloudWatch('info', logObject, logStreamName);
96
96
  }
97
- async error(requestedId, timestamp, component, source, destination, event, usecase, sourcePayload, destinationPayload, errorMessage, brand, secondaryKey, destinationObjectType, destinationObjectId, logStreamName) {
97
+ async error(requestedId, timestamp, component, source, destination, event, usecase, sourcePayload, destinationPayload, errorMessage, brand, secondaryKey, logStreamName, destinationObjectType, destinationObjectId, sourceObjectType, sourceObjectId) {
98
98
  const logObject = {
99
99
  requestedId,
100
100
  timestamp,
@@ -111,6 +111,8 @@ let CloudWatchLoggerService = class CloudWatchLoggerService {
111
111
  secondaryKey,
112
112
  destinationObjectType,
113
113
  destinationObjectId,
114
+ sourceObjectType,
115
+ sourceObjectId
114
116
  };
115
117
  await this.logToCloudWatch('error', logObject, logStreamName);
116
118
  }
package/dist/enum.d.ts CHANGED
@@ -34,7 +34,7 @@ export declare class LoggerEnum {
34
34
  DECLARATION: string;
35
35
  TEST_INFO: string;
36
36
  ADDITIONAL_SERVICES: string;
37
- ADDMISSION_RECOMMENDATION_LETTER: string;
37
+ ADMISSION_RECOMMENDATION_LETTER: string;
38
38
  REQUIRED_ESSAY_RESUME: string;
39
39
  HONESTY_STATEMENT: string;
40
40
  LEGAL_NOTICE: string;
package/dist/enum.js CHANGED
@@ -45,7 +45,7 @@ let LoggerEnum = class LoggerEnum {
45
45
  DECLARATION: 'SAVE_DECLARATION_DETAILS',
46
46
  TEST_INFO: 'SAVE_TEST_INFORMATION',
47
47
  ADDITIONAL_SERVICES: 'SAVE_ADDITIONAL_SERVICES_INFORMATION',
48
- ADDMISSION_RECOMMENDATION_LETTER: 'SAVE_ADDMISSION_RECOMMENDATION_LETTER_DETAILS',
48
+ ADMISSION_RECOMMENDATION_LETTER: 'SAVE_ADMISSION_RECOMMENDATION_LETTER_DETAILS',
49
49
  REQUIRED_ESSAY_RESUME: 'SAVE_REQUIRED_ESSAY_RESUME_DETAILS',
50
50
  HONESTY_STATEMENT: 'SAVE_HONESTY_STATEMENT_DETAILS',
51
51
  LEGAL_NOTICE: 'SAVE_LEGAL_NOTICE_DETAILS',
@@ -1,4 +1,4 @@
1
1
  export interface ILogger {
2
2
  log(requestedId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, sourcePayload: any, destinationPayload: any, logMessage: any, brand: any, secondaryKey: string, logStreamName: string, destinationObjectType?: string, destinationObjectId?: string, sourceObjectType?: string, sourceObjectId?: string): Promise<any>;
3
- error(requestedId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, sourcePayload: any, destinationPayload: any, errorMessage: any, brand: any, secondaryKey: string, logStreamName?: string, destinationObjectType?: string, destinationObjectId?: string, sourceObjectType?: string, sourceObjectId?: string): Promise<any>;
3
+ error(requestedId: string, timestamp: string, component: string, source: string, destination: string, event: string, usecase: string, sourcePayload: any, destinationPayload: any, errorMessage: any, brand: any, secondaryKey: string, logStreamName: string, destinationObjectType?: string, destinationObjectId?: string, sourceObjectType?: string, sourceObjectId?: string): Promise<any>;
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gus-eip/loggers",
3
- "version": "3.2.8",
3
+ "version": "3.3.0",
4
4
  "description": "@gus-eip/loggers is a package designed to provide logging functionality for your Node.js applications.",
5
5
  "author": "gus",
6
6
  "readmeFilename": "README.md",