@optimiser/common 1.0.365 → 1.0.367

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.
Files changed (69) hide show
  1. package/dist/aws/awsservices.d.ts +39 -39
  2. package/dist/aws/awsservices.js +398 -398
  3. package/dist/constants.d.ts +35 -35
  4. package/dist/constants.js +36 -36
  5. package/dist/enums/databasetype.enum.d.ts +7 -7
  6. package/dist/enums/databasetype.enum.js +11 -11
  7. package/dist/enums/log.enum.d.ts +22 -22
  8. package/dist/enums/log.enum.js +26 -26
  9. package/dist/index.d.ts +25 -25
  10. package/dist/index.js +69 -61
  11. package/dist/lib/activity.d.ts +1 -1
  12. package/dist/lib/activity.js +44 -44
  13. package/dist/lib/calculatedbsize.d.ts +15 -15
  14. package/dist/lib/calculatedbsize.js +75 -75
  15. package/dist/lib/connection.d.ts +116 -116
  16. package/dist/lib/connection.js +595 -595
  17. package/dist/lib/convertfilesize.d.ts +2 -2
  18. package/dist/lib/convertfilesize.js +15 -15
  19. package/dist/lib/countrycode.d.ts +2 -2
  20. package/dist/lib/countrycode.js +255 -255
  21. package/dist/lib/event.d.ts +26 -26
  22. package/dist/lib/event.js +252 -248
  23. package/dist/lib/helper.d.ts +94 -93
  24. package/dist/lib/helper.js +1016 -1009
  25. package/dist/lib/memoryserverclient.d.ts +40 -40
  26. package/dist/lib/memoryserverclient.js +256 -252
  27. package/dist/lib/operautilitycommon.d.ts +65 -65
  28. package/dist/lib/operautilitycommon.js +620 -620
  29. package/dist/lib/redis.d.ts +21 -21
  30. package/dist/lib/redis.js +46 -46
  31. package/dist/lib/socketidfromredis.d.ts +3 -3
  32. package/dist/lib/socketidfromredis.js +5 -5
  33. package/dist/lib/taskutils.d.ts +40 -40
  34. package/dist/lib/taskutils.js +656 -656
  35. package/dist/lib/utility.d.ts +300 -298
  36. package/dist/lib/utility.js +5626 -5621
  37. package/dist/lib/validateRequest.d.ts +3 -3
  38. package/dist/lib/validateRequest.js +13 -13
  39. package/dist/logs/auditlog.d.ts +25 -25
  40. package/dist/logs/auditlog.js +1033 -1029
  41. package/dist/logs/checklogtable.d.ts +3 -3
  42. package/dist/logs/checklogtable.js +67 -67
  43. package/dist/logs/log.table.d.ts +7 -7
  44. package/dist/logs/log.table.js +127 -127
  45. package/dist/modals/connection.modal.d.ts +32 -32
  46. package/dist/modals/connection.modal.js +2 -2
  47. package/dist/modals/globalNotification.modal.d.ts +8 -8
  48. package/dist/modals/globalNotification.modal.js +2 -2
  49. package/dist/modals/log.modal.d.ts +64 -64
  50. package/dist/modals/log.modal.js +2 -2
  51. package/dist/modals/mail.modal.d.ts +6 -6
  52. package/dist/modals/mail.modal.js +2 -2
  53. package/dist/modals/notificationData.modal.d.ts +29 -29
  54. package/dist/modals/notificationData.modal.js +2 -2
  55. package/dist/modals/redisconfig.modal.d.ts +6 -6
  56. package/dist/modals/redisconfig.modal.js +2 -2
  57. package/dist/modals/sqsconfig.modal.d.ts +8 -8
  58. package/dist/modals/sqsconfig.modal.js +2 -2
  59. package/dist/modals/utility.modal.d.ts +17 -17
  60. package/dist/modals/utility.modal.js +2 -2
  61. package/dist/utility/crypto.d.ts +4 -4
  62. package/dist/utility/crypto.js +43 -43
  63. package/dist/utility/errorHandler.d.ts +30 -30
  64. package/dist/utility/errorHandler.js +24 -24
  65. package/dist/utility/errorHandlerForServices.d.ts +22 -22
  66. package/dist/utility/errorHandlerForServices.js +19 -19
  67. package/dist/utility/mail.d.ts +21 -21
  68. package/dist/utility/mail.js +91 -87
  69. package/package.json +3 -3
@@ -1,3 +1,3 @@
1
- import { Request, NextFunction, Response } from "express";
2
- declare const validateRequest: (req: Request, res: Response, next: NextFunction) => void;
3
- export { validateRequest };
1
+ import { Request, NextFunction, Response } from "express";
2
+ declare const validateRequest: (req: Request, res: Response, next: NextFunction) => void;
3
+ export { validateRequest };
@@ -1,13 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateRequest = void 0;
4
- var express_validator_1 = require("express-validator");
5
- var validateRequest = function (req, res, next) {
6
- var errors = express_validator_1.validationResult(req);
7
- var errorArray = errors.array().map(function (err) { return { message: err.msg, field: err.param }; });
8
- if (errorArray.length > 0) {
9
- throw errorArray;
10
- }
11
- next();
12
- };
13
- exports.validateRequest = validateRequest;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateRequest = void 0;
4
+ var express_validator_1 = require("express-validator");
5
+ var validateRequest = function (req, res, next) {
6
+ var errors = (0, express_validator_1.validationResult)(req);
7
+ var errorArray = errors.array().map(function (err) { return { message: err.msg, field: err.param }; });
8
+ if (errorArray.length > 0) {
9
+ throw errorArray;
10
+ }
11
+ next();
12
+ };
13
+ exports.validateRequest = validateRequest;
@@ -1,25 +1,25 @@
1
- import { LogObject, Express, logDetails } from '../modals/log.modal';
2
- import { Sequelize } from 'sequelize/types';
3
- /**
4
- *
5
- *
6
- *
7
- * Created By : Ansh
8
- * Parameter Required :
9
- * logobj(log object)
10
- {
11
- "EventType":"<TypeOfChange>", Default value: Required value can't be empty type string "Create/Delete/Update"
12
- "Module":"<ModuleChanged>", Default value: Required value can't be empty type string "Account/Contact/Pipeline"
13
- "OldValue":"<OldValueObject>", Default value: Required value can't be empty type Object
14
- "NewValue":"<NewValue>", Default value: Required value can't be empty type object
15
- }
16
- * keysToDisplay if you want to display only certain keys in logs object rather than the entire object in a collection
17
- * req Request (For db refrerence)
18
- * @param {Request (For Database Reference)} req
19
- * @param { Log object } logObject
20
- * @param {if you want to display only certain keys in logs object rather than the entire object in a collection } keysToDisplay
21
- * @param { Connection to logs database }
22
- */
23
- declare const generateLog: (req: Express.Request, logObject: LogObject, keysToDisplay: never[] | undefined, logsDbConnetion: Sequelize) => Promise<void>;
24
- declare const createSessionLogs: (req: Express.Request, logDetails: logDetails, sequelize: Sequelize) => Promise<unknown>;
25
- export { generateLog, createSessionLogs };
1
+ import { LogObject, Express, logDetails } from '../modals/log.modal';
2
+ import { Sequelize } from 'sequelize/types';
3
+ /**
4
+ *
5
+ *
6
+ *
7
+ * Created By : Ansh
8
+ * Parameter Required :
9
+ * logobj(log object)
10
+ {
11
+ "EventType":"<TypeOfChange>", Default value: Required value can't be empty type string "Create/Delete/Update"
12
+ "Module":"<ModuleChanged>", Default value: Required value can't be empty type string "Account/Contact/Pipeline"
13
+ "OldValue":"<OldValueObject>", Default value: Required value can't be empty type Object
14
+ "NewValue":"<NewValue>", Default value: Required value can't be empty type object
15
+ }
16
+ * keysToDisplay if you want to display only certain keys in logs object rather than the entire object in a collection
17
+ * req Request (For db refrerence)
18
+ * @param {Request (For Database Reference)} req
19
+ * @param { Log object } logObject
20
+ * @param {if you want to display only certain keys in logs object rather than the entire object in a collection } keysToDisplay
21
+ * @param { Connection to logs database }
22
+ */
23
+ declare const generateLog: (req: Express.Request, logObject: LogObject, keysToDisplay: never[] | undefined, logsDbConnetion: Sequelize) => Promise<void>;
24
+ declare const createSessionLogs: (req: Express.Request, logDetails: logDetails, sequelize: Sequelize) => Promise<unknown>;
25
+ export { generateLog, createSessionLogs };