@gus-eip/loggers 3.8.5 → 3.8.6

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/README.md CHANGED
@@ -1,67 +1,67 @@
1
- # @gus-eip/loggers
2
-
3
- ## Overview
4
-
5
- `@gus-eip/loggers` is a package designed to provide logging functionality for your Node.js applications. It offers integration with various logging services, including CloudWatchLogger.
6
-
7
- ## Installation
8
-
9
- You can install the package via npm:
10
-
11
- ```bash
12
- npm install @gus-eip/loggers
13
- ```
14
-
15
- ## Usage
16
-
17
- To use the logger module in your application, follow these steps:
18
-
19
- 1. Import `LoggerModule` from `@gus-eip/loggers` inside your module.
20
-
21
- ```javascript
22
- import { LoggerModule } from '@gus-eip/loggers';
23
- ```
24
-
25
- 2. Configure `LoggerModule` in your module by calling the `forRoot` method.
26
-
27
- ```javascript
28
- LoggerModule.forRoot({
29
- region: process.env.REGION,
30
- logGroupName: process.env.LOGGER_LOG_GROUP_NAME,
31
- options: 'CloudWatchLogger',
32
- }),
33
- ```
34
-
35
- Ensure you provide the necessary environment variables (`REGION` and `LOGGER_LOG_GROUP_NAME`) for configuration.
36
-
37
- ## Configuration Options
38
-
39
- - `region`: The AWS region where your CloudWatch logs are located.
40
- - `logGroupName`: The name of the log group where logs will be sent.
41
- - `options`: The options for the logger. Currently, only `'CloudWatchLogger'` is supported.
42
-
43
- ## Example
44
-
45
- ```javascript
46
- import { Module } from '@nestjs/common';
47
- import { LoggerModule } from '@gus-eip/loggers';
48
-
49
- @Module({
50
- imports: [
51
- LoggerModule.forRoot({
52
- region: process.env.REGION,
53
- logGroupName: process.env.LOGGER_LOG_GROUP_NAME,
54
- options: 'CloudWatchLogger',
55
- }),
56
- ],
57
- })
58
- export class AppModule {}
59
- ```
60
-
61
- ## License
62
-
63
- This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
64
-
65
- ---
66
-
1
+ # @gus-eip/loggers
2
+
3
+ ## Overview
4
+
5
+ `@gus-eip/loggers` is a package designed to provide logging functionality for your Node.js applications. It offers integration with various logging services, including CloudWatchLogger.
6
+
7
+ ## Installation
8
+
9
+ You can install the package via npm:
10
+
11
+ ```bash
12
+ npm install @gus-eip/loggers
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ To use the logger module in your application, follow these steps:
18
+
19
+ 1. Import `LoggerModule` from `@gus-eip/loggers` inside your module.
20
+
21
+ ```javascript
22
+ import { LoggerModule } from '@gus-eip/loggers';
23
+ ```
24
+
25
+ 2. Configure `LoggerModule` in your module by calling the `forRoot` method.
26
+
27
+ ```javascript
28
+ LoggerModule.forRoot({
29
+ region: process.env.REGION,
30
+ logGroupName: process.env.LOGGER_LOG_GROUP_NAME,
31
+ options: 'CloudWatchLogger',
32
+ }),
33
+ ```
34
+
35
+ Ensure you provide the necessary environment variables (`REGION` and `LOGGER_LOG_GROUP_NAME`) for configuration.
36
+
37
+ ## Configuration Options
38
+
39
+ - `region`: The AWS region where your CloudWatch logs are located.
40
+ - `logGroupName`: The name of the log group where logs will be sent.
41
+ - `options`: The options for the logger. Currently, only `'CloudWatchLogger'` is supported.
42
+
43
+ ## Example
44
+
45
+ ```javascript
46
+ import { Module } from '@nestjs/common';
47
+ import { LoggerModule } from '@gus-eip/loggers';
48
+
49
+ @Module({
50
+ imports: [
51
+ LoggerModule.forRoot({
52
+ region: process.env.REGION,
53
+ logGroupName: process.env.LOGGER_LOG_GROUP_NAME,
54
+ options: 'CloudWatchLogger',
55
+ }),
56
+ ],
57
+ })
58
+ export class AppModule {}
59
+ ```
60
+
61
+ ## License
62
+
63
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
64
+
65
+ ---
66
+
67
67
  Feel free to customize this README according to your specific package features, usage guidelines, and licensing terms.
@@ -285,8 +285,8 @@ let CloudWatchLoggerService = class CloudWatchLoggerService {
285
285
  }
286
286
  }
287
287
  };
288
- exports.CloudWatchLoggerService = CloudWatchLoggerService;
289
- exports.CloudWatchLoggerService = CloudWatchLoggerService = __decorate([
288
+ CloudWatchLoggerService = __decorate([
290
289
  (0, common_1.Injectable)(),
291
290
  __metadata("design:paramtypes", [String, String, String, Boolean])
292
291
  ], CloudWatchLoggerService);
292
+ exports.CloudWatchLoggerService = CloudWatchLoggerService;
package/dist/enum.d.ts CHANGED
@@ -327,6 +327,33 @@ export declare class LoggerEnum {
327
327
  GET_DOCUMENT_STATUS_INITIATED: string;
328
328
  GET_DOCUMENT_STATUS_COMPLETED: string;
329
329
  PUBLISH_REJECT_DOCUMENT_EVENT_INITIATED: string;
330
+ SURVEY_CREATION_INITIATED: string;
331
+ SURVEY_CREATION_COMPLETED: string;
332
+ SURVEY_CREATION_FAILED: string;
333
+ STUD_APPLICATION_INITIATED: string;
334
+ FETCH_PERSON_ACCOUNT_COMPLETED: string;
335
+ OPPORTUNITY_REQUIRED_FIELD_MISSING: string;
336
+ CREATE_OPPORTUNITY_ACTIVE_LEAD_INITIATED: string;
337
+ CREATE_OPPORTUNITY_ACTIVE_LEAD_COMPLETED: string;
338
+ LEAD_CREATION_INITIATED: string;
339
+ LEAD_CREATION_COMPLETED: string;
340
+ REQUIRED_OBJECTS_CREATE_APPLICATION: string;
341
+ DOCUMENT_UPLOAD_COMPLETED: string;
342
+ DOCUMENT_UPLOAD_INITIATED: string;
343
+ CONTENT_CONTENT_DOCUMENT_BY_ID: string;
344
+ CONTENT_DOCUMENT_LINK_BY_LINKED_ENTITY_ID: string;
345
+ CONTENT_DOCUMENT_LINK_BY_LINKED_ENTITY_ID_COMPLETED: string;
346
+ CONTENT_VERSION_BY_CONTENT_DOCUMENT_ID: string;
347
+ CONTENT_VERSION_BY_ID: string;
348
+ OPPORTUNITY_BY_APPLICATIONID_INITIATED: string;
349
+ OPPORTUNITY_BY_APPLICATIONID_COMPLETED: string;
350
+ OPPORTUNITY_BY_OPPID_INITIATED: string;
351
+ OPPORTUNITY_BY_OPPID_COMPLETED: string;
352
+ GET_APPLICATION_DETAILS_BY_OPPID: string;
353
+ GET_OPPORTUNITY_INITIATED: string;
354
+ GET_OPPORTUNITY_COMPLETED: string;
355
+ GET_OPPORTUNITY_FAILED: string;
356
+ UPDATE_OPPORTUNITY: string;
330
357
  };
331
358
  UseCase: {
332
359
  PROGRAM_INFO: string;
@@ -395,6 +422,8 @@ export declare class LoggerEnum {
395
422
  LIST_AUTH_CREDS: string;
396
423
  OCR_RESULT_PROCESSING: string;
397
424
  OCR_REQUEST_PROCESSING: string;
425
+ SYNC_GUS_TO_HZU: string;
426
+ GUS_SALESFORCE_OPERATION: string;
398
427
  };
399
428
  Component: {
400
429
  OAP_FRONTEND: string;
package/dist/enum.js CHANGED
@@ -337,7 +337,34 @@ let LoggerEnum = class LoggerEnum {
337
337
  GET_EDU_HISTORY_COMPLETED: 'GET_EDU_HISTORY_COMPLETED',
338
338
  GET_DOCUMENT_STATUS_INITIATED: 'GET_DOCUMENT_STATUS_INITIATED',
339
339
  GET_DOCUMENT_STATUS_COMPLETED: 'GET_DOCUMENT_STATUS_COMPLETED',
340
- PUBLISH_REJECT_DOCUMENT_EVENT_INITIATED: 'PUBLISH_REJECT_DOCUMENT_EVENT_INITIATED'
340
+ PUBLISH_REJECT_DOCUMENT_EVENT_INITIATED: 'PUBLISH_REJECT_DOCUMENT_EVENT_INITIATED',
341
+ SURVEY_CREATION_INITIATED: 'SURVEY_CREATION_INITIATED',
342
+ SURVEY_CREATION_COMPLETED: 'SURVEY_CREATION_COMPLETED',
343
+ SURVEY_CREATION_FAILED: 'SURVEY_CREATION_FAILED',
344
+ STUD_APPLICATION_INITIATED: 'STUD_APPLICATION_INITIATED',
345
+ FETCH_PERSON_ACCOUNT_COMPLETED: 'FETCH_PERSON_ACCOUNT_COMPLETED',
346
+ OPPORTUNITY_REQUIRED_FIELD_MISSING: 'OPPORTUNITY_REQUIRED_FIELD_MISSING',
347
+ CREATE_OPPORTUNITY_ACTIVE_LEAD_INITIATED: 'CREATE_OPPORTUNITY_ACTIVE_LEAD_INITIATED',
348
+ CREATE_OPPORTUNITY_ACTIVE_LEAD_COMPLETED: 'CREATE_OPPORTUNITY_ACTIVE_LEAD_COMPLETED',
349
+ LEAD_CREATION_INITIATED: 'LEAD_CREATION_INITIATED',
350
+ LEAD_CREATION_COMPLETED: 'LEAD_CREATION_COMPLETED',
351
+ REQUIRED_OBJECTS_CREATE_APPLICATION: 'REQUIRED_OBJECTS_CREATE_APPLICATION',
352
+ DOCUMENT_UPLOAD_COMPLETED: 'DOCUMENT_UPLOAD_COMPLETED',
353
+ DOCUMENT_UPLOAD_INITIATED: 'DOCUMENT_UPLOAD_INITIATED',
354
+ CONTENT_CONTENT_DOCUMENT_BY_ID: 'CONTENT_CONTENT_DOCUMENT_BY_ID',
355
+ CONTENT_DOCUMENT_LINK_BY_LINKED_ENTITY_ID: 'CONTENT_DOCUMENT_LINK_BY_LINKED_ENTITY_ID',
356
+ CONTENT_DOCUMENT_LINK_BY_LINKED_ENTITY_ID_COMPLETED: 'CONTENT_DOCUMENT_LINK_BY_LINKED_ENTITY_ID_COMPLETED',
357
+ CONTENT_VERSION_BY_CONTENT_DOCUMENT_ID: 'CONTENT_VERSION_BY_CONTENT_DOCUMENT_ID',
358
+ CONTENT_VERSION_BY_ID: 'CONTENT_VERSION_BY_ID',
359
+ OPPORTUNITY_BY_APPLICATIONID_INITIATED: 'OPPORTUNITY_BY_APPLICATIONID_INITIATED',
360
+ OPPORTUNITY_BY_APPLICATIONID_COMPLETED: 'OPPORTUNITY_BY_APPLICATIONID_COMPLETED',
361
+ OPPORTUNITY_BY_OPPID_INITIATED: 'OPPORTUNITY_BY_OPPID_INITIATED',
362
+ OPPORTUNITY_BY_OPPID_COMPLETED: 'OPPORTUNITY_BY_OPPID_COMPLETED',
363
+ GET_APPLICATION_DETAILS_BY_OPPID: 'GET_APPLICATION_DETAILS_BY_OPPID',
364
+ GET_OPPORTUNITY_INITIATED: 'GET_OPPORTUNITY_INITIATED',
365
+ GET_OPPORTUNITY_COMPLETED: 'GET_OPPORTUNITY_COMPLETED',
366
+ GET_OPPORTUNITY_FAILED: 'GET_OPPORTUNITY_FAILED',
367
+ UPDATE_OPPORTUNITY: 'UPDATE_OPPORTUNITY'
341
368
  };
342
369
  this.UseCase = {
343
370
  PROGRAM_INFO: 'SAVE_PROGRAMME_DETAILS',
@@ -406,6 +433,8 @@ let LoggerEnum = class LoggerEnum {
406
433
  LIST_AUTH_CREDS: 'LIST_AUTH_CREDS',
407
434
  OCR_RESULT_PROCESSING: 'OCR_RESULT_PROCESSING',
408
435
  OCR_REQUEST_PROCESSING: 'OCR_REQUEST_PROCESSING',
436
+ SYNC_GUS_TO_HZU: 'SYNC_GUS_TO_HZU',
437
+ GUS_SALESFORCE_OPERATION: 'GUS_SALESFORCE_OPERATION'
409
438
  };
410
439
  this.Component = {
411
440
  OAP_FRONTEND: 'OAP-FRONTEND',
@@ -458,7 +487,7 @@ let LoggerEnum = class LoggerEnum {
458
487
  };
459
488
  }
460
489
  };
461
- exports.LoggerEnum = LoggerEnum;
462
- exports.LoggerEnum = LoggerEnum = __decorate([
490
+ LoggerEnum = __decorate([
463
491
  (0, common_1.Injectable)()
464
492
  ], LoggerEnum);
493
+ exports.LoggerEnum = LoggerEnum;
package/dist/module.js CHANGED
@@ -28,7 +28,7 @@ let LoggerModule = LoggerModule_1 = class LoggerModule {
28
28
  };
29
29
  }
30
30
  };
31
- exports.LoggerModule = LoggerModule;
32
- exports.LoggerModule = LoggerModule = LoggerModule_1 = __decorate([
31
+ LoggerModule = LoggerModule_1 = __decorate([
33
32
  (0, common_1.Module)({})
34
33
  ], LoggerModule);
34
+ exports.LoggerModule = LoggerModule;
package/package.json CHANGED
@@ -1,78 +1,78 @@
1
- {
2
- "name": "@gus-eip/loggers",
3
- "version": "3.8.5",
4
- "description": "@gus-eip/loggers is a package designed to provide logging functionality for your Node.js applications.",
5
- "author": "gus",
6
- "readmeFilename": "README.md",
7
- "main": "dist/index.js",
8
- "files": [
9
- "dist/**/*",
10
- "*.md"
11
- ],
12
- "scripts": {
13
- "start:dev": "tsc -w",
14
- "build": "tsc",
15
- "prepare": "npm run build",
16
- "format": "prettier --write \"src/**/*.ts\"",
17
- "lint": "tslint -p tsconfig.json -c tslint.json",
18
- "test": "node --experimental-vm-modules ./node_modules/.bin/jest",
19
- "test:watch": "jest --watch",
20
- "test:cov": "jest --coverage",
21
- "test:e2e": "jest --config ./test/jest-e2e.json"
22
- },
23
- "keywords": [
24
- "nestjs",
25
- "nodejs",
26
- "javascript",
27
- "typescript",
28
- "eip-loggers"
29
- ],
30
- "publishConfig": {
31
- "access": "public"
32
- },
33
- "dependencies": {
34
- "aws-sdk": "^2.1590.0",
35
- "axios": "^1.7.4"
36
- },
37
- "devDependencies": {
38
- "@nestjs/common": "^10.0.2",
39
- "@nestjs/core": "^10.0.2",
40
- "@nestjs/platform-express": "^10.0.2",
41
- "@nestjs/testing": "10.0.2",
42
- "@types/express": "4.17.17",
43
- "@types/jest": "29.5.2",
44
- "@types/lodash": "^4.17.7",
45
- "@types/node": "20.3.1",
46
- "@types/supertest": "2.0.12",
47
- "@typescript-eslint/eslint-plugin": "^5.60.0",
48
- "@typescript-eslint/parser": "^5.60.0",
49
- "eslint": "^8.43.0",
50
- "eslint-config-prettier": "^8.8.0",
51
- "eslint-plugin-prettier": "^4.2.1",
52
- "jest": "29.5.0",
53
- "prettier": "2.8.8",
54
- "reflect-metadata": "^0.1.13",
55
- "rxjs": "^7.8.1",
56
- "supertest": "6.3.3",
57
- "ts-jest": "29.1.0",
58
- "ts-node": "10.9.1",
59
- "tsc-watch": "6.0.4",
60
- "tsconfig-paths": "4.2.0",
61
- "tslint": "5.20.1",
62
- "typescript": "^5.5.4"
63
- },
64
- "jest": {
65
- "moduleFileExtensions": [
66
- "js",
67
- "json",
68
- "ts"
69
- ],
70
- "rootDir": "src",
71
- "testRegex": ".spec.ts$",
72
- "transform": {
73
- "^.+\\.(t|j)s$": "ts-jest"
74
- },
75
- "coverageDirectory": "../coverage",
76
- "testEnvironment": "node"
77
- }
78
- }
1
+ {
2
+ "name": "@gus-eip/loggers",
3
+ "version": "3.8.6",
4
+ "description": "@gus-eip/loggers is a package designed to provide logging functionality for your Node.js applications.",
5
+ "author": "gus",
6
+ "readmeFilename": "README.md",
7
+ "main": "dist/index.js",
8
+ "files": [
9
+ "dist/**/*",
10
+ "*.md"
11
+ ],
12
+ "scripts": {
13
+ "start:dev": "tsc -w",
14
+ "build": "tsc",
15
+ "prepare": "npm run build",
16
+ "format": "prettier --write \"src/**/*.ts\"",
17
+ "lint": "tslint -p tsconfig.json -c tslint.json",
18
+ "test": "node --experimental-vm-modules ./node_modules/.bin/jest",
19
+ "test:watch": "jest --watch",
20
+ "test:cov": "jest --coverage",
21
+ "test:e2e": "jest --config ./test/jest-e2e.json"
22
+ },
23
+ "keywords": [
24
+ "nestjs",
25
+ "nodejs",
26
+ "javascript",
27
+ "typescript",
28
+ "eip-loggers"
29
+ ],
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "dependencies": {
34
+ "aws-sdk": "^2.1590.0",
35
+ "axios": "^1.7.4"
36
+ },
37
+ "devDependencies": {
38
+ "@nestjs/common": "^10.0.2",
39
+ "@nestjs/core": "^10.0.2",
40
+ "@nestjs/platform-express": "^10.0.2",
41
+ "@nestjs/testing": "10.0.2",
42
+ "@types/express": "4.17.17",
43
+ "@types/jest": "29.5.2",
44
+ "@types/lodash": "^4.17.7",
45
+ "@types/node": "20.3.1",
46
+ "@types/supertest": "2.0.12",
47
+ "@typescript-eslint/eslint-plugin": "^5.60.0",
48
+ "@typescript-eslint/parser": "^5.60.0",
49
+ "eslint": "^8.43.0",
50
+ "eslint-config-prettier": "^8.8.0",
51
+ "eslint-plugin-prettier": "^4.2.1",
52
+ "jest": "29.5.0",
53
+ "prettier": "2.8.8",
54
+ "reflect-metadata": "^0.1.13",
55
+ "rxjs": "^7.8.1",
56
+ "supertest": "6.3.3",
57
+ "ts-jest": "29.1.0",
58
+ "ts-node": "10.9.1",
59
+ "tsc-watch": "6.0.4",
60
+ "tsconfig-paths": "4.2.0",
61
+ "tslint": "5.20.1",
62
+ "typescript": "^5.5.4"
63
+ },
64
+ "jest": {
65
+ "moduleFileExtensions": [
66
+ "js",
67
+ "json",
68
+ "ts"
69
+ ],
70
+ "rootDir": "src",
71
+ "testRegex": ".spec.ts$",
72
+ "transform": {
73
+ "^.+\\.(t|j)s$": "ts-jest"
74
+ },
75
+ "coverageDirectory": "../coverage",
76
+ "testEnvironment": "node"
77
+ }
78
+ }