@platform-x/hep-notification-client 1.3.0 → 1.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/README.md +7 -7
- package/dist/jest-setup.js +28 -0
- package/dist/jest-setup.js.map +1 -0
- package/dist/src/common/controllers/common_controller.js +72 -0
- package/dist/src/common/controllers/common_controller.js.map +1 -0
- package/dist/src/common/controllers/index.js +29 -0
- package/dist/src/common/controllers/index.js.map +1 -0
- package/dist/src/common/middleware/commonMiddleware.js +141 -0
- package/dist/src/common/middleware/commonMiddleware.js.map +1 -0
- package/dist/src/common/service/requestService.js +79 -1
- package/dist/src/common/service/requestService.js.map +1 -0
- package/dist/src/common/service/twilioService.js +3 -11
- package/dist/src/common/service/twilioService.js.map +1 -0
- package/dist/src/common/util/commonUtil.js +119 -1
- package/dist/src/common/util/commonUtil.js.map +1 -0
- package/dist/src/common/util/constants.js +18 -0
- package/dist/src/common/util/constants.js.map +1 -0
- package/dist/src/common/util/errorHandler.js +4 -6
- package/dist/src/common/util/errorHandler.js.map +1 -0
- package/dist/src/common/util/httpCodes.js +26 -0
- package/dist/src/common/util/httpCodes.js.map +1 -0
- package/dist/src/common/util/logger.js +1 -1
- package/dist/src/common/util/logger.js.map +1 -0
- package/dist/src/common/util/requestTracer.js +18 -1
- package/dist/src/common/util/requestTracer.js.map +1 -0
- package/dist/src/common/util/solrConnector.js.map +1 -0
- package/dist/src/config/index.js +49 -4
- package/dist/src/config/index.js.map +1 -0
- package/dist/src/platform-x/app.js +35 -0
- package/dist/src/platform-x/app.js.map +1 -0
- package/dist/src/platform-x/constants/index.js +2 -14
- package/dist/src/platform-x/constants/index.js.map +1 -0
- package/dist/src/platform-x/constants/style.js +98 -98
- package/dist/src/platform-x/constants/style.js.map +1 -0
- package/dist/src/platform-x/controllers/cronController.js +399 -0
- package/dist/src/platform-x/controllers/cronController.js.map +1 -0
- package/dist/src/platform-x/controllers/fileUploadController.js +76 -0
- package/dist/src/platform-x/controllers/fileUploadController.js.map +1 -0
- package/dist/src/platform-x/controllers/graphRESTControllers.js +183 -0
- package/dist/src/platform-x/controllers/graphRESTControllers.js.map +1 -0
- package/dist/src/platform-x/controllers/index.js +30 -0
- package/dist/src/platform-x/controllers/index.js.map +1 -0
- package/dist/src/platform-x/controllers/siteDomainController.js +74 -0
- package/dist/src/platform-x/controllers/siteDomainController.js.map +1 -0
- package/dist/src/platform-x/dataSource/emailDataSource.js.map +1 -0
- package/dist/src/platform-x/database/connection.js +3 -6
- package/dist/src/platform-x/database/connection.js.map +1 -0
- package/dist/src/platform-x/database/dao/formBuilder.dao.js +1 -1
- package/dist/src/platform-x/database/dao/formBuilder.dao.js.map +1 -0
- package/dist/src/platform-x/database/dao/siteDomain.dao.js +73 -0
- package/dist/src/platform-x/database/dao/siteDomain.dao.js.map +1 -0
- package/dist/src/platform-x/database/index.js.map +1 -0
- package/dist/src/platform-x/{interface/interface.js → database/interfaces/site_domain.interface.js} +1 -1
- package/dist/src/platform-x/database/interfaces/site_domain.interface.js.map +1 -0
- package/dist/src/platform-x/database/models/formBuilder.model.js.map +1 -0
- package/dist/src/platform-x/database/models/site_domains.model.js +51 -0
- package/dist/src/platform-x/database/models/site_domains.model.js.map +1 -0
- package/dist/src/platform-x/routes/index.js +19 -0
- package/dist/src/platform-x/routes/index.js.map +1 -0
- package/dist/src/platform-x/services/cron.services.js +117 -0
- package/dist/src/platform-x/services/cron.services.js.map +1 -0
- package/dist/src/platform-x/util/emailHandler.js +53 -137
- package/dist/src/platform-x/util/emailHandler.js.map +1 -0
- package/dist/src/platform-x/util/emailTemplate.js +63 -60
- package/dist/src/platform-x/util/emailTemplate.js.map +1 -0
- package/dist/src/platform-x/util/solr-data-source/SolrHttpDataSource.js +2 -0
- package/dist/src/platform-x/util/solr-data-source/SolrHttpDataSource.js.map +1 -0
- package/dist/src/server.js +38 -0
- package/dist/src/server.js.map +1 -0
- package/dist/swagger.json +247 -0
- package/dist/test/controllers/common_controller.spec.js +79 -0
- package/dist/test/controllers/common_controller.spec.js.map +1 -0
- package/dist/test/middleware/commonMiddleware.spec.js +88 -0
- package/dist/test/middleware/commonMiddleware.spec.js.map +1 -0
- package/dist/test/platform-x/controllers/graphRESTControllers.spec.js +195 -0
- package/dist/test/platform-x/controllers/graphRESTControllers.spec.js.map +1 -0
- package/dist/test/platform-x/datasource/emailDataSource.spec.js +81 -0
- package/dist/test/platform-x/datasource/emailDataSource.spec.js.map +1 -0
- package/dist/test/platform-x/util/emailHandler.spec.js +474 -0
- package/dist/test/platform-x/util/emailHandler.spec.js.map +1 -0
- package/dist/test/platform-x/util/solr-data-source/SolrHttpDataSource.spec.js +80 -0
- package/dist/test/platform-x/util/solr-data-source/SolrHttpDataSource.spec.js.map +1 -0
- package/dist/test/services/requestService.spec.js +108 -0
- package/dist/test/services/requestService.spec.js.map +1 -0
- package/dist/test/services/requestServiceGet.spec.js +43 -0
- package/dist/test/services/requestServiceGet.spec.js.map +1 -0
- package/dist/test/src/common/service/twilioService.spec.js +65 -0
- package/dist/test/src/common/service/twilioService.spec.js.map +1 -0
- package/dist/test/util/commonUtil.spec.js +110 -0
- package/dist/test/util/commonUtil.spec.js.map +1 -0
- package/dist/test/util/logger.spec.js +51 -0
- package/dist/test/util/logger.spec.js.map +1 -0
- package/dist/test/util/requestTracer.spec.js +64 -0
- package/dist/test/util/requestTracer.spec.js.map +1 -0
- package/dist/test/util/solrconnector.spec.js +145 -0
- package/dist/test/util/solrconnector.spec.js.map +1 -0
- package/package.json +66 -62
- package/postman_collection/HEP_Environment.postman_environment.json +44 -44
- package/postman_collection/hep-notification.postman_collection.json +55 -55
- package/reports/output.jtl +1 -1
- package/reports/scripts/jmeter_sendgrid.js +34 -34
- package/reports/scripts/newman_sendgrid.js +40 -40
- package/reports/scripts/sendgrid.js +40 -40
- package/reports/scripts/trivy_sendgrid.js +40 -40
- package/src/common/service/requestService.ts +87 -0
- package/{dist/src/common/service/secretKeyManager.services.js → src/common/service/secretKeyManager.services.ts} +1 -2
- package/src/common/service/twilioService.ts +58 -0
- package/src/common/util/commonUtil.ts +39 -0
- package/src/common/util/errorHandler.ts +120 -0
- package/src/common/util/logger.ts +215 -0
- package/src/common/util/requestTracer.ts +10 -0
- package/src/common/util/solrConnector.ts +319 -0
- package/src/config/index.ts +35 -0
- package/src/index.ts +34 -0
- package/src/platform-x/constants/index.ts +20 -0
- package/src/platform-x/constants/style.ts +99 -0
- package/src/platform-x/dataSource/emailDataSource.ts +34 -0
- package/src/platform-x/database/connection.ts +47 -0
- package/src/platform-x/database/dao/formBuilder.dao.ts +33 -0
- package/src/platform-x/database/index.ts +7 -0
- package/src/platform-x/database/models/formBuilder.model.ts +23 -0
- package/src/platform-x/util/emailHandler.ts +580 -0
- package/src/platform-x/util/emailTemplate.ts +66 -0
- package/src/platform-x/util/solr-data-source/SolrHttpDataSource.ts +97 -0
- package/{dist → src}/templates/orderPlaced.ejs +172 -172
- package/{dist → src}/templates/orderPlaced.html +189 -189
- package/tsconfig.json +73 -0
- package/dist/src/common/service/requestService.d.ts +0 -26
- package/dist/src/common/service/secretKeyManager.services.d.ts +0 -0
- package/dist/src/common/service/twilioService.d.ts +0 -19
- package/dist/src/common/util/commonUtil.d.ts +0 -22
- package/dist/src/common/util/errorHandler.d.ts +0 -44
- package/dist/src/common/util/logger.d.ts +0 -68
- package/dist/src/common/util/requestTracer.d.ts +0 -2
- package/dist/src/common/util/secretKeyManager.d.ts +0 -7
- package/dist/src/common/util/secretKeyManager.js +0 -58
- package/dist/src/common/util/solrConnector.d.ts +0 -35
- package/dist/src/config/index.d.ts +0 -30
- package/dist/src/index.d.ts +0 -5
- package/dist/src/index.js +0 -20
- package/dist/src/platform-x/constants/index.d.ts +0 -18
- package/dist/src/platform-x/constants/style.d.ts +0 -1
- package/dist/src/platform-x/dataSource/emailDataSource.d.ts +0 -5
- package/dist/src/platform-x/database/connection.d.ts +0 -8
- package/dist/src/platform-x/database/dao/formBuilder.dao.d.ts +0 -9
- package/dist/src/platform-x/database/index.d.ts +0 -7
- package/dist/src/platform-x/database/models/formBuilder.model.d.ts +0 -34
- package/dist/src/platform-x/interface/interface.d.ts +0 -4
- package/dist/src/platform-x/util/emailHandler.d.ts +0 -62
- package/dist/src/platform-x/util/emailTemplate.d.ts +0 -4
- package/dist/src/platform-x/util/solr-data-source/SolrHttpDataSource.d.ts +0 -26
package/package.json
CHANGED
|
@@ -1,62 +1,66 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@platform-x/hep-notification-client",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "@platform-x/hep-notification-client",
|
|
5
|
-
"main": "dist/src/index.js",
|
|
6
|
-
"types": "dist/src/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"@types/
|
|
17
|
-
"@types/
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"@
|
|
26
|
-
"@
|
|
27
|
-
"@
|
|
28
|
-
"@types/
|
|
29
|
-
"@types/
|
|
30
|
-
"@types/
|
|
31
|
-
"@types/
|
|
32
|
-
"@types/
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
}
|
|
62
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@platform-x/hep-notification-client",
|
|
3
|
+
"version": "1.3.2",
|
|
4
|
+
"description": "@platform-x/hep-notification-client",
|
|
5
|
+
"main": "dist/src/index.js",
|
|
6
|
+
"types": "dist/src/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"devstart": "npm run build && tsc-watch --onSuccess \"node ./dist/src/index.js\"",
|
|
9
|
+
"start": "node ./dist/src/index.js",
|
|
10
|
+
"build": "tsc && npm run copy-static",
|
|
11
|
+
"copy-static": "xcopy src\\templates dist\\templates /E /I /Y"
|
|
12
|
+
},
|
|
13
|
+
"author": "",
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@types/ejs": "^3.1.5",
|
|
17
|
+
"@types/jsdom": "^21.1.7",
|
|
18
|
+
"@types/node": "^22.15.3",
|
|
19
|
+
"@types/uuid": "^10.0.0",
|
|
20
|
+
"ts-node": "^10.9.2",
|
|
21
|
+
"tsc-watch": "^7.2.0",
|
|
22
|
+
"typescript": "^5.8.3"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@alloc/quick-lru": "^5.2.0",
|
|
26
|
+
"@sendgrid/helpers": "7.7.0",
|
|
27
|
+
"@sendgrid/mail": "^7.6.0",
|
|
28
|
+
"@types/bunyan": "^1.8.6",
|
|
29
|
+
"@types/bunyan-format": "^0.2.3",
|
|
30
|
+
"@types/cls-hooked": "^4.3.3",
|
|
31
|
+
"@types/dompurify": "^3.0.5",
|
|
32
|
+
"@types/express": "^4.17.12",
|
|
33
|
+
"@types/lodash": "^4.14.171",
|
|
34
|
+
"@types/node": "^15.12.2",
|
|
35
|
+
"@types/twilio": "^3.19.2",
|
|
36
|
+
"apollo-datasource": "^3.3.2",
|
|
37
|
+
"apollo-server-caching": "^3.3.0",
|
|
38
|
+
"axios": "0.21.4",
|
|
39
|
+
"bunyan": "^1.8.15",
|
|
40
|
+
"bunyan-format": "^0.2.1",
|
|
41
|
+
"cls-hooked": "^4.2.2",
|
|
42
|
+
"dataloader": "^2.0.0",
|
|
43
|
+
"dompurify": "^3.2.4",
|
|
44
|
+
"dotenv": "^10.0.0",
|
|
45
|
+
"ejs": "^3.1.10",
|
|
46
|
+
"express": "^4.17.1",
|
|
47
|
+
"fs": "^0.0.1-security",
|
|
48
|
+
"hep-secret-access": "^1.3.4",
|
|
49
|
+
"jsdom": "^26.1.0",
|
|
50
|
+
"lodash": "4.17.21",
|
|
51
|
+
"moment": "2.29.4",
|
|
52
|
+
"moment-timezone": "0.5.34",
|
|
53
|
+
"mongodb": "5.9.2",
|
|
54
|
+
"mongoose": "7.0.3",
|
|
55
|
+
"mysql2": "2.3.3",
|
|
56
|
+
"node-html-parser": "^5.4.2",
|
|
57
|
+
"request-ip": "2.1.3",
|
|
58
|
+
"solr-client": "0.10.0-rc6",
|
|
59
|
+
"twilio": "^5.3.6",
|
|
60
|
+
"uuid": "^8.3.2"
|
|
61
|
+
},
|
|
62
|
+
"private": false,
|
|
63
|
+
"publishConfig": {
|
|
64
|
+
"access": "public"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "e77aba62-34ba-47a9-acac-2dd708bbe87a",
|
|
3
|
-
"name": "HEP_Environment",
|
|
4
|
-
"values": [
|
|
5
|
-
{
|
|
6
|
-
"key": "devUrl",
|
|
7
|
-
"value": "https://platx-api-dev.fanuep.com/",
|
|
8
|
-
"type": "default",
|
|
9
|
-
"enabled": true
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"key": "local_reg_url",
|
|
13
|
-
"value": "http://localhost:8090/",
|
|
14
|
-
"type": "default",
|
|
15
|
-
"enabled": true
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"key": "local_delivery_url",
|
|
19
|
-
"value": "http://localhost:8099/",
|
|
20
|
-
"type": "default",
|
|
21
|
-
"enabled": true
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"key": "local_gateway_url",
|
|
25
|
-
"value": "http://localhost:8091/",
|
|
26
|
-
"type": "default",
|
|
27
|
-
"enabled": true
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"key": "dev_reg_url",
|
|
31
|
-
"value": "https://platx-prelem-regs-dev.fanuep.com/",
|
|
32
|
-
"type": "default",
|
|
33
|
-
"enabled": true
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"key": "local_notification_url",
|
|
37
|
-
"value": "http://localhost:8099/",
|
|
38
|
-
"type": "default",
|
|
39
|
-
"enabled": true
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
"_postman_variable_scope": "environment",
|
|
43
|
-
"_postman_exported_at": "2022-11-18T06:40:59.828Z",
|
|
44
|
-
"_postman_exported_using": "Postman/9.19.0"
|
|
1
|
+
{
|
|
2
|
+
"id": "e77aba62-34ba-47a9-acac-2dd708bbe87a",
|
|
3
|
+
"name": "HEP_Environment",
|
|
4
|
+
"values": [
|
|
5
|
+
{
|
|
6
|
+
"key": "devUrl",
|
|
7
|
+
"value": "https://platx-api-dev.fanuep.com/",
|
|
8
|
+
"type": "default",
|
|
9
|
+
"enabled": true
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"key": "local_reg_url",
|
|
13
|
+
"value": "http://localhost:8090/",
|
|
14
|
+
"type": "default",
|
|
15
|
+
"enabled": true
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"key": "local_delivery_url",
|
|
19
|
+
"value": "http://localhost:8099/",
|
|
20
|
+
"type": "default",
|
|
21
|
+
"enabled": true
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"key": "local_gateway_url",
|
|
25
|
+
"value": "http://localhost:8091/",
|
|
26
|
+
"type": "default",
|
|
27
|
+
"enabled": true
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"key": "dev_reg_url",
|
|
31
|
+
"value": "https://platx-prelem-regs-dev.fanuep.com/",
|
|
32
|
+
"type": "default",
|
|
33
|
+
"enabled": true
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"key": "local_notification_url",
|
|
37
|
+
"value": "http://localhost:8099/",
|
|
38
|
+
"type": "default",
|
|
39
|
+
"enabled": true
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"_postman_variable_scope": "environment",
|
|
43
|
+
"_postman_exported_at": "2022-11-18T06:40:59.828Z",
|
|
44
|
+
"_postman_exported_using": "Postman/9.19.0"
|
|
45
45
|
}
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"info": {
|
|
3
|
-
"_postman_id": "84173df2-abc7-4295-9cb7-95c70c4c04c7",
|
|
4
|
-
"name": "hep-notification",
|
|
5
|
-
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
6
|
-
},
|
|
7
|
-
"item": [
|
|
8
|
-
{
|
|
9
|
-
"name": "publish notification",
|
|
10
|
-
"request": {
|
|
11
|
-
"auth": {
|
|
12
|
-
"type": "basic",
|
|
13
|
-
"basic": [
|
|
14
|
-
{
|
|
15
|
-
"key": "username",
|
|
16
|
-
"value": "dinesh",
|
|
17
|
-
"type": "string"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"key": "password",
|
|
21
|
-
"value": "1234567890",
|
|
22
|
-
"type": "string"
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"method": "POST",
|
|
27
|
-
"header": [],
|
|
28
|
-
"body": {
|
|
29
|
-
"mode": "raw",
|
|
30
|
-
"raw": "{\n \"pageTitle\": \"Vod Publish Mail Testing\",\n \"userName\": \"Kapil Patel\",\n \"dateTime\": \"2022-04-26T05:09:40Z\",\n \"timezoneOffset\": \"Asia/Calcutta\",\n \"emailTo\": \"s_sunil@hcl.com\",\n \"eventPageUrl\": \"https://platx-dev.com\",\n \"event\": \"published\",\n \"contentType\": \"Vod\"\n}",
|
|
31
|
-
"options": {
|
|
32
|
-
"raw": {
|
|
33
|
-
"language": "json"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"url": {
|
|
38
|
-
"raw": "{{local_notification_url}}platform-x/api/v1/web/en/notifications/send-email/publishunpublishemail",
|
|
39
|
-
"host": [
|
|
40
|
-
"{{local_notification_url}}platform-x"
|
|
41
|
-
],
|
|
42
|
-
"path": [
|
|
43
|
-
"api",
|
|
44
|
-
"v1",
|
|
45
|
-
"web",
|
|
46
|
-
"en",
|
|
47
|
-
"notifications",
|
|
48
|
-
"send-email",
|
|
49
|
-
"publishunpublishemail"
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"response": []
|
|
54
|
-
}
|
|
55
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"_postman_id": "84173df2-abc7-4295-9cb7-95c70c4c04c7",
|
|
4
|
+
"name": "hep-notification",
|
|
5
|
+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
6
|
+
},
|
|
7
|
+
"item": [
|
|
8
|
+
{
|
|
9
|
+
"name": "publish notification",
|
|
10
|
+
"request": {
|
|
11
|
+
"auth": {
|
|
12
|
+
"type": "basic",
|
|
13
|
+
"basic": [
|
|
14
|
+
{
|
|
15
|
+
"key": "username",
|
|
16
|
+
"value": "dinesh",
|
|
17
|
+
"type": "string"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"key": "password",
|
|
21
|
+
"value": "1234567890",
|
|
22
|
+
"type": "string"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
"method": "POST",
|
|
27
|
+
"header": [],
|
|
28
|
+
"body": {
|
|
29
|
+
"mode": "raw",
|
|
30
|
+
"raw": "{\n \"pageTitle\": \"Vod Publish Mail Testing\",\n \"userName\": \"Kapil Patel\",\n \"dateTime\": \"2022-04-26T05:09:40Z\",\n \"timezoneOffset\": \"Asia/Calcutta\",\n \"emailTo\": \"s_sunil@hcl.com\",\n \"eventPageUrl\": \"https://platx-dev.com\",\n \"event\": \"published\",\n \"contentType\": \"Vod\"\n}",
|
|
31
|
+
"options": {
|
|
32
|
+
"raw": {
|
|
33
|
+
"language": "json"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"url": {
|
|
38
|
+
"raw": "{{local_notification_url}}platform-x/api/v1/web/en/notifications/send-email/publishunpublishemail",
|
|
39
|
+
"host": [
|
|
40
|
+
"{{local_notification_url}}platform-x"
|
|
41
|
+
],
|
|
42
|
+
"path": [
|
|
43
|
+
"api",
|
|
44
|
+
"v1",
|
|
45
|
+
"web",
|
|
46
|
+
"en",
|
|
47
|
+
"notifications",
|
|
48
|
+
"send-email",
|
|
49
|
+
"publishunpublishemail"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"response": []
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
56
|
}
|
package/reports/output.jtl
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
This is test file
|
|
1
|
+
This is test file
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
#! /usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const sgMail = require('@sendgrid/mail');
|
|
4
|
-
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
|
|
5
|
-
|
|
6
|
-
const fs = require('fs'),
|
|
7
|
-
filename = 'api_qa_jmeter.zip',
|
|
8
|
-
fileType = 'application/zip',
|
|
9
|
-
data = fs.readFileSync(filename);
|
|
10
|
-
const msg = {
|
|
11
|
-
to: 'HEP_Team@hcl.com',
|
|
12
|
-
from: 'hepteamhcl@gmail.com',
|
|
13
|
-
subject: 'auto generated test report for performance testing ',
|
|
14
|
-
text: 'Build Artifact Testing',
|
|
15
|
-
html: '<p>Hi Team,<br> Please find below the auto generated load testing report by Jmeter </br> <br> Thanks </br> <br> DevOps Team </br> </p>',
|
|
16
|
-
attachments: [
|
|
17
|
-
{
|
|
18
|
-
content: data.toString('base64'),
|
|
19
|
-
filename: filename,
|
|
20
|
-
type: fileType,
|
|
21
|
-
disposition: 'attachment',
|
|
22
|
-
},
|
|
23
|
-
// {
|
|
24
|
-
// content: data2.toString('base64'),
|
|
25
|
-
// filename: filename2,
|
|
26
|
-
// type: fileType2,
|
|
27
|
-
// disposition: 'attachment',
|
|
28
|
-
// },
|
|
29
|
-
],
|
|
30
|
-
};
|
|
31
|
-
sgMail
|
|
32
|
-
.send(msg)
|
|
33
|
-
.then(() => console.log('Mail sent successfully'))
|
|
34
|
-
.catch((error) => console.error(error.toString()));
|
|
1
|
+
#! /usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const sgMail = require('@sendgrid/mail');
|
|
4
|
+
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
|
|
5
|
+
|
|
6
|
+
const fs = require('fs'),
|
|
7
|
+
filename = 'api_qa_jmeter.zip',
|
|
8
|
+
fileType = 'application/zip',
|
|
9
|
+
data = fs.readFileSync(filename);
|
|
10
|
+
const msg = {
|
|
11
|
+
to: 'HEP_Team@hcl.com',
|
|
12
|
+
from: 'hepteamhcl@gmail.com',
|
|
13
|
+
subject: 'auto generated test report for performance testing ',
|
|
14
|
+
text: 'Build Artifact Testing',
|
|
15
|
+
html: '<p>Hi Team,<br> Please find below the auto generated load testing report by Jmeter </br> <br> Thanks </br> <br> DevOps Team </br> </p>',
|
|
16
|
+
attachments: [
|
|
17
|
+
{
|
|
18
|
+
content: data.toString('base64'),
|
|
19
|
+
filename: filename,
|
|
20
|
+
type: fileType,
|
|
21
|
+
disposition: 'attachment',
|
|
22
|
+
},
|
|
23
|
+
// {
|
|
24
|
+
// content: data2.toString('base64'),
|
|
25
|
+
// filename: filename2,
|
|
26
|
+
// type: fileType2,
|
|
27
|
+
// disposition: 'attachment',
|
|
28
|
+
// },
|
|
29
|
+
],
|
|
30
|
+
};
|
|
31
|
+
sgMail
|
|
32
|
+
.send(msg)
|
|
33
|
+
.then(() => console.log('Mail sent successfully'))
|
|
34
|
+
.catch((error) => console.error(error.toString()));
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
#! /usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const sgMail = require('@sendgrid/mail');
|
|
4
|
-
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
|
|
5
|
-
|
|
6
|
-
const fs = require('fs'),
|
|
7
|
-
filename = 'api_qa_newman.zip',
|
|
8
|
-
fileType = 'application/zip',
|
|
9
|
-
data = fs.readFileSync(filename);
|
|
10
|
-
|
|
11
|
-
// const filename2 = 'sonarsast.html',
|
|
12
|
-
// fileType2 = 'application/html',
|
|
13
|
-
// data2 = fs.readFileSync( filename2);
|
|
14
|
-
|
|
15
|
-
const msg = {
|
|
16
|
-
to: 'HEP_Team@hcl.com',
|
|
17
|
-
from: 'hepteamhcl@gmail.com',
|
|
18
|
-
subject: 'Auto generated Test Reports for API Testing',
|
|
19
|
-
text: 'Build Artifact Testing',
|
|
20
|
-
html: '<p>Hi Team,<br> Please find below the auto generated test reports for api testing </br> <br> Thanks </br> <br> DevOps Team </br> </p>',
|
|
21
|
-
attachments: [
|
|
22
|
-
{
|
|
23
|
-
content: data.toString('base64'),
|
|
24
|
-
filename: filename,
|
|
25
|
-
type: fileType,
|
|
26
|
-
disposition: 'attachment',
|
|
27
|
-
},
|
|
28
|
-
// {
|
|
29
|
-
// content: data2.toString('base64'),
|
|
30
|
-
// filename: filename2,
|
|
31
|
-
// type: fileType2,
|
|
32
|
-
// disposition: 'attachment',
|
|
33
|
-
// },
|
|
34
|
-
],
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
sgMail
|
|
38
|
-
.send(msg)
|
|
39
|
-
.then(() => console.log('Mail sent successfully'))
|
|
40
|
-
.catch(error => console.error(error.toString()));
|
|
1
|
+
#! /usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const sgMail = require('@sendgrid/mail');
|
|
4
|
+
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
|
|
5
|
+
|
|
6
|
+
const fs = require('fs'),
|
|
7
|
+
filename = 'api_qa_newman.zip',
|
|
8
|
+
fileType = 'application/zip',
|
|
9
|
+
data = fs.readFileSync(filename);
|
|
10
|
+
|
|
11
|
+
// const filename2 = 'sonarsast.html',
|
|
12
|
+
// fileType2 = 'application/html',
|
|
13
|
+
// data2 = fs.readFileSync( filename2);
|
|
14
|
+
|
|
15
|
+
const msg = {
|
|
16
|
+
to: 'HEP_Team@hcl.com',
|
|
17
|
+
from: 'hepteamhcl@gmail.com',
|
|
18
|
+
subject: 'Auto generated Test Reports for API Testing',
|
|
19
|
+
text: 'Build Artifact Testing',
|
|
20
|
+
html: '<p>Hi Team,<br> Please find below the auto generated test reports for api testing </br> <br> Thanks </br> <br> DevOps Team </br> </p>',
|
|
21
|
+
attachments: [
|
|
22
|
+
{
|
|
23
|
+
content: data.toString('base64'),
|
|
24
|
+
filename: filename,
|
|
25
|
+
type: fileType,
|
|
26
|
+
disposition: 'attachment',
|
|
27
|
+
},
|
|
28
|
+
// {
|
|
29
|
+
// content: data2.toString('base64'),
|
|
30
|
+
// filename: filename2,
|
|
31
|
+
// type: fileType2,
|
|
32
|
+
// disposition: 'attachment',
|
|
33
|
+
// },
|
|
34
|
+
],
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
sgMail
|
|
38
|
+
.send(msg)
|
|
39
|
+
.then(() => console.log('Mail sent successfully'))
|
|
40
|
+
.catch(error => console.error(error.toString()));
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
#! /usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const sgMail = require('@sendgrid/mail');
|
|
4
|
-
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
|
|
5
|
-
|
|
6
|
-
const fs = require('fs'),
|
|
7
|
-
filename = 'sonarsast.html',
|
|
8
|
-
fileType = 'application/html',
|
|
9
|
-
data = fs.readFileSync(filename);
|
|
10
|
-
|
|
11
|
-
// const filename2 = 'sonarsast.html',
|
|
12
|
-
// fileType2 = 'application/html',
|
|
13
|
-
// data2 = fs.readFileSync( filename2);
|
|
14
|
-
|
|
15
|
-
const msg = {
|
|
16
|
-
to: 'HEP_Team@hcl.com',
|
|
17
|
-
from: 'hepteamhcl@gmail.com',
|
|
18
|
-
subject: 'Auto generated Test Reports for API Testing',
|
|
19
|
-
text: 'Build Artifact Testing',
|
|
20
|
-
html: '<p>Hi Team,<br> Please find below the auto generated test reports for api testing </br> <br> Thanks </br> <br> DevOps Team </br> </p>',
|
|
21
|
-
attachments: [
|
|
22
|
-
{
|
|
23
|
-
content: data.toString('base64'),
|
|
24
|
-
filename: filename,
|
|
25
|
-
type: fileType,
|
|
26
|
-
disposition: 'attachment',
|
|
27
|
-
},
|
|
28
|
-
// {
|
|
29
|
-
// content: data2.toString('base64'),
|
|
30
|
-
// filename: filename2,
|
|
31
|
-
// type: fileType2,
|
|
32
|
-
// disposition: 'attachment',
|
|
33
|
-
// },
|
|
34
|
-
],
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
sgMail
|
|
38
|
-
.send(msg)
|
|
39
|
-
.then(() => console.log('Mail sent successfully'))
|
|
40
|
-
.catch(error => console.error(error.toString()));
|
|
1
|
+
#! /usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const sgMail = require('@sendgrid/mail');
|
|
4
|
+
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
|
|
5
|
+
|
|
6
|
+
const fs = require('fs'),
|
|
7
|
+
filename = 'sonarsast.html',
|
|
8
|
+
fileType = 'application/html',
|
|
9
|
+
data = fs.readFileSync(filename);
|
|
10
|
+
|
|
11
|
+
// const filename2 = 'sonarsast.html',
|
|
12
|
+
// fileType2 = 'application/html',
|
|
13
|
+
// data2 = fs.readFileSync( filename2);
|
|
14
|
+
|
|
15
|
+
const msg = {
|
|
16
|
+
to: 'HEP_Team@hcl.com',
|
|
17
|
+
from: 'hepteamhcl@gmail.com',
|
|
18
|
+
subject: 'Auto generated Test Reports for API Testing',
|
|
19
|
+
text: 'Build Artifact Testing',
|
|
20
|
+
html: '<p>Hi Team,<br> Please find below the auto generated test reports for api testing </br> <br> Thanks </br> <br> DevOps Team </br> </p>',
|
|
21
|
+
attachments: [
|
|
22
|
+
{
|
|
23
|
+
content: data.toString('base64'),
|
|
24
|
+
filename: filename,
|
|
25
|
+
type: fileType,
|
|
26
|
+
disposition: 'attachment',
|
|
27
|
+
},
|
|
28
|
+
// {
|
|
29
|
+
// content: data2.toString('base64'),
|
|
30
|
+
// filename: filename2,
|
|
31
|
+
// type: fileType2,
|
|
32
|
+
// disposition: 'attachment',
|
|
33
|
+
// },
|
|
34
|
+
],
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
sgMail
|
|
38
|
+
.send(msg)
|
|
39
|
+
.then(() => console.log('Mail sent successfully'))
|
|
40
|
+
.catch(error => console.error(error.toString()));
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
#! /usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const sgMail = require('@sendgrid/mail');
|
|
4
|
-
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
|
|
5
|
-
|
|
6
|
-
const fs = require('fs'),
|
|
7
|
-
filename = 'api_qa_trivy.zip',
|
|
8
|
-
fileType = 'application/zip',
|
|
9
|
-
data = fs.readFileSync(filename);
|
|
10
|
-
|
|
11
|
-
// const filename2 = 'sonarsast.html',
|
|
12
|
-
// fileType2 = 'application/html',
|
|
13
|
-
// data2 = fs.readFileSync( filename2);
|
|
14
|
-
|
|
15
|
-
const msg = {
|
|
16
|
-
to: 'HEP_Team@hcl.com',
|
|
17
|
-
from: 'hepteamhcl@gmail.com',
|
|
18
|
-
subject: 'auto generated vulnerability scanner report ',
|
|
19
|
-
text: 'Build Artifact Testing',
|
|
20
|
-
html: '<p>Hi Team,<br> Please find below the auto generated vulnerability scan report by trivy </br> <br> Thanks </br> <br> DevOps Team </br> </p>',
|
|
21
|
-
attachments: [
|
|
22
|
-
{
|
|
23
|
-
content: data.toString('base64'),
|
|
24
|
-
filename: filename,
|
|
25
|
-
type: fileType,
|
|
26
|
-
disposition: 'attachment',
|
|
27
|
-
},
|
|
28
|
-
// {
|
|
29
|
-
// content: data2.toString('base64'),
|
|
30
|
-
// filename: filename2,
|
|
31
|
-
// type: fileType2,
|
|
32
|
-
// disposition: 'attachment',
|
|
33
|
-
// },
|
|
34
|
-
],
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
sgMail
|
|
38
|
-
.send(msg)
|
|
39
|
-
.then(() => console.log('Mail sent successfully'))
|
|
40
|
-
.catch(error => console.error(error.toString()));
|
|
1
|
+
#! /usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const sgMail = require('@sendgrid/mail');
|
|
4
|
+
sgMail.setApiKey(process.env.SENDGRID_API_KEY);
|
|
5
|
+
|
|
6
|
+
const fs = require('fs'),
|
|
7
|
+
filename = 'api_qa_trivy.zip',
|
|
8
|
+
fileType = 'application/zip',
|
|
9
|
+
data = fs.readFileSync(filename);
|
|
10
|
+
|
|
11
|
+
// const filename2 = 'sonarsast.html',
|
|
12
|
+
// fileType2 = 'application/html',
|
|
13
|
+
// data2 = fs.readFileSync( filename2);
|
|
14
|
+
|
|
15
|
+
const msg = {
|
|
16
|
+
to: 'HEP_Team@hcl.com',
|
|
17
|
+
from: 'hepteamhcl@gmail.com',
|
|
18
|
+
subject: 'auto generated vulnerability scanner report ',
|
|
19
|
+
text: 'Build Artifact Testing',
|
|
20
|
+
html: '<p>Hi Team,<br> Please find below the auto generated vulnerability scan report by trivy </br> <br> Thanks </br> <br> DevOps Team </br> </p>',
|
|
21
|
+
attachments: [
|
|
22
|
+
{
|
|
23
|
+
content: data.toString('base64'),
|
|
24
|
+
filename: filename,
|
|
25
|
+
type: fileType,
|
|
26
|
+
disposition: 'attachment',
|
|
27
|
+
},
|
|
28
|
+
// {
|
|
29
|
+
// content: data2.toString('base64'),
|
|
30
|
+
// filename: filename2,
|
|
31
|
+
// type: fileType2,
|
|
32
|
+
// disposition: 'attachment',
|
|
33
|
+
// },
|
|
34
|
+
],
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
sgMail
|
|
38
|
+
.send(msg)
|
|
39
|
+
.then(() => console.log('Mail sent successfully'))
|
|
40
|
+
.catch(error => console.error(error.toString()));
|