@gus-eip/loggers 3.3.0 → 3.3.2
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.
- package/dist/cloudwatch.logger.d.ts +2 -2
- package/dist/cloudwatch.logger.js +5 -3
- package/dist/enum.d.ts +10 -0
- package/dist/enum.js +10 -0
- package/dist/interface.d.ts +2 -2
- package/package.json +1 -1
@@ -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, logStreamName: string, destinationObjectType?: string, destinationObjectId?: string, sourceObjectType?: string, sourceObjectId?: 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, destinationResponse?: any): 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, destinationResponse?: any): Promise<any>;
|
13
13
|
}
|
@@ -72,7 +72,7 @@ let CloudWatchLoggerService = class CloudWatchLoggerService {
|
|
72
72
|
throw error;
|
73
73
|
}
|
74
74
|
}
|
75
|
-
async log(requestedId, timestamp, component, source, destination, event, usecase, sourcePayload, destinationPayload, logMessage, brand, secondaryKey, logStreamName, destinationObjectType, destinationObjectId, sourceObjectType, sourceObjectId) {
|
75
|
+
async log(requestedId, timestamp, component, source, destination, event, usecase, sourcePayload, destinationPayload, logMessage, brand, secondaryKey, logStreamName, destinationObjectType, destinationObjectId, sourceObjectType, sourceObjectId, destinationResponse) {
|
76
76
|
const logObject = {
|
77
77
|
requestedId,
|
78
78
|
timestamp,
|
@@ -91,10 +91,11 @@ let CloudWatchLoggerService = class CloudWatchLoggerService {
|
|
91
91
|
destinationObjectId,
|
92
92
|
sourceObjectType,
|
93
93
|
sourceObjectId,
|
94
|
+
destinationResponse
|
94
95
|
};
|
95
96
|
await this.logToCloudWatch('info', logObject, logStreamName);
|
96
97
|
}
|
97
|
-
async error(requestedId, timestamp, component, source, destination, event, usecase, sourcePayload, destinationPayload, errorMessage, brand, secondaryKey, logStreamName, destinationObjectType, destinationObjectId, sourceObjectType, sourceObjectId) {
|
98
|
+
async error(requestedId, timestamp, component, source, destination, event, usecase, sourcePayload, destinationPayload, errorMessage, brand, secondaryKey, logStreamName, destinationObjectType, destinationObjectId, sourceObjectType, sourceObjectId, destinationResponse) {
|
98
99
|
const logObject = {
|
99
100
|
requestedId,
|
100
101
|
timestamp,
|
@@ -112,7 +113,8 @@ let CloudWatchLoggerService = class CloudWatchLoggerService {
|
|
112
113
|
destinationObjectType,
|
113
114
|
destinationObjectId,
|
114
115
|
sourceObjectType,
|
115
|
-
sourceObjectId
|
116
|
+
sourceObjectId,
|
117
|
+
destinationResponse
|
116
118
|
};
|
117
119
|
await this.logToCloudWatch('error', logObject, logStreamName);
|
118
120
|
}
|
package/dist/enum.d.ts
CHANGED
@@ -18,9 +18,13 @@ export declare class LoggerEnum {
|
|
18
18
|
UPDATE_APPLICATION_COMPLETED: string;
|
19
19
|
CREATED_OPPORTUNITYTEAMMEMBER: string;
|
20
20
|
CREATED_OPPORTUNITYLINEITEM: string;
|
21
|
+
SYNC_APPLICATION_DETAILS: string;
|
22
|
+
SYNC_APPLICATION_STATUS_UPDATE: string;
|
23
|
+
SYNC_APPLICATION_DOCUMENT: string;
|
21
24
|
};
|
22
25
|
UseCase: {
|
23
26
|
PROGRAM_INFO: string;
|
27
|
+
BASIC_INFO_STUDENT_INFO: string;
|
24
28
|
BASIC_DETAILS_STUDENT_INFO: string;
|
25
29
|
ADDITIONAL_INFO: string;
|
26
30
|
ACADEMIC_INFO: string;
|
@@ -47,5 +51,11 @@ export declare class LoggerEnum {
|
|
47
51
|
OAP_HANDLERS: string;
|
48
52
|
GUS_EIP_SERVICE: string;
|
49
53
|
SALESFORCE: string;
|
54
|
+
GUS_SALESFORCE: string;
|
55
|
+
HZU_EDUCATIONCLOUD: string;
|
56
|
+
GUS_SALESFORCE_EVENTS_LISTENER: string;
|
57
|
+
GUS_SALESFORCE_OUTBOUND_SNS_TOPIC: string;
|
58
|
+
GUS_SALESFORCE_HZU_EDUCATIONCLOUD_INTEGRATION_QUEUE: string;
|
59
|
+
GUS_SALESFORCE_HZU_EDUCATIONCLOUD_INTEGRATION_HANDLER: string;
|
50
60
|
};
|
51
61
|
}
|
package/dist/enum.js
CHANGED
@@ -29,9 +29,13 @@ let LoggerEnum = class LoggerEnum {
|
|
29
29
|
UPDATE_APPLICATION_COMPLETED: 'UPDATE_APPLICATION_COMPLETED',
|
30
30
|
CREATED_OPPORTUNITYTEAMMEMBER: 'CREATED_OPPORTUNITYTEAMMEMBER',
|
31
31
|
CREATED_OPPORTUNITYLINEITEM: 'CREATED_OPPORTUNITYLINEITEM',
|
32
|
+
SYNC_APPLICATION_DETAILS: 'SYNC_APPLICATION_DETAILS',
|
33
|
+
SYNC_APPLICATION_STATUS_UPDATE: 'SYNC_APPLICATION_STATUS_UPDATE',
|
34
|
+
SYNC_APPLICATION_DOCUMENT: 'SYNC_APPLICATION_DOCUMENT'
|
32
35
|
};
|
33
36
|
this.UseCase = {
|
34
37
|
PROGRAM_INFO: 'SAVE_PROGRAMME_DETAILS',
|
38
|
+
BASIC_INFO_STUDENT_INFO: 'SAVE_BASIC_DETAILS',
|
35
39
|
BASIC_DETAILS_STUDENT_INFO: 'SAVE_BASIC_DETAILS',
|
36
40
|
ADDITIONAL_INFO: 'SAVE_ADDITIONAL_INFORMATION',
|
37
41
|
ACADEMIC_INFO: 'SAVE_ACADEMIC_INFORMATION',
|
@@ -58,6 +62,12 @@ let LoggerEnum = class LoggerEnum {
|
|
58
62
|
OAP_HANDLERS: 'OAP-HANDLERS',
|
59
63
|
GUS_EIP_SERVICE: 'GUS-EIP-SERVICE',
|
60
64
|
SALESFORCE: 'SALESFORCE',
|
65
|
+
GUS_SALESFORCE: "GUS_SALESFORCE",
|
66
|
+
HZU_EDUCATIONCLOUD: "HZU_EDUCATIONCLOUD",
|
67
|
+
GUS_SALESFORCE_EVENTS_LISTENER: "GUS_SALESFORCE_EVENTS_LISTENER",
|
68
|
+
GUS_SALESFORCE_OUTBOUND_SNS_TOPIC: "GUS_SALESFORCE_OUTBOUND_SNS_TOPIC",
|
69
|
+
GUS_SALESFORCE_HZU_EDUCATIONCLOUD_INTEGRATION_QUEUE: "GUS_SALESFORCE_HZU_EDUCATIONCLOUD_INTEGRATION_QUEUE",
|
70
|
+
GUS_SALESFORCE_HZU_EDUCATIONCLOUD_INTEGRATION_HANDLER: "GUS_SALESFORCE_HZU_EDUCATIONCLOUD_INTEGRATION_HANDLER"
|
61
71
|
};
|
62
72
|
}
|
63
73
|
};
|
package/dist/interface.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
export interface ILogger {
|
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>;
|
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, destinationResponse?: any): 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, destinationResponse?: any): Promise<any>;
|
4
4
|
}
|
package/package.json
CHANGED