exodus-framework 2.0.361 → 2.0.591

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 (79) hide show
  1. package/lib/app/app.d.ts +2 -3
  2. package/lib/app/app.d.ts.map +1 -1
  3. package/lib/app/app.js +24 -8
  4. package/lib/app/controller.d.ts +1 -1
  5. package/lib/app/controller.d.ts.map +1 -1
  6. package/lib/app/controller.js +2 -1
  7. package/lib/app/core.d.ts +3 -0
  8. package/lib/app/core.d.ts.map +1 -1
  9. package/lib/app/core.js +5 -0
  10. package/lib/app/index.d.ts +1 -0
  11. package/lib/app/index.d.ts.map +1 -1
  12. package/lib/app/index.js +9 -1
  13. package/lib/app/settings.d.ts +24 -0
  14. package/lib/app/settings.d.ts.map +1 -0
  15. package/lib/app/settings.js +130 -0
  16. package/lib/contracts/index.d.ts +1 -1
  17. package/lib/contracts/index.d.ts.map +1 -1
  18. package/lib/contracts/index.js +11 -11
  19. package/lib/contracts/messaging.d.ts +6 -0
  20. package/lib/contracts/messaging.d.ts.map +1 -1
  21. package/lib/contracts/messaging.js +1 -0
  22. package/lib/contracts/settings.d.ts +62 -0
  23. package/lib/contracts/settings.d.ts.map +1 -0
  24. package/lib/index.d.ts +0 -1
  25. package/lib/index.d.ts.map +1 -1
  26. package/lib/index.js +0 -12
  27. package/lib/middlewares/authentication.d.ts.map +1 -1
  28. package/lib/middlewares/authentication.js +9 -4
  29. package/lib/middlewares/file.js +3 -3
  30. package/lib/services/error.d.ts.map +1 -1
  31. package/lib/services/error.js +3 -10
  32. package/lib/services/express.d.ts.map +1 -1
  33. package/lib/services/express.js +12 -14
  34. package/lib/services/file.d.ts +3 -3
  35. package/lib/services/file.d.ts.map +1 -1
  36. package/lib/services/file.js +6 -6
  37. package/lib/services/rabitmq.d.ts.map +1 -1
  38. package/lib/services/rabitmq.js +2 -2
  39. package/lib/services/redis.js +3 -3
  40. package/lib/services/sequelize.d.ts.map +1 -1
  41. package/lib/services/sequelize.js +5 -5
  42. package/lib/services/task.d.ts +4 -4
  43. package/lib/services/task.d.ts.map +1 -1
  44. package/lib/services/task.js +15 -12
  45. package/lib/utils/database.d.ts.map +1 -1
  46. package/lib/utils/database.js +9 -9
  47. package/lib/utils/logger.d.ts.map +1 -1
  48. package/lib/utils/logger.js +13 -10
  49. package/package.json +3 -1
  50. package/lib/config/app.d.ts +0 -16
  51. package/lib/config/app.d.ts.map +0 -1
  52. package/lib/config/app.js +0 -25
  53. package/lib/config/auth.d.ts +0 -5
  54. package/lib/config/auth.d.ts.map +0 -1
  55. package/lib/config/auth.js +0 -11
  56. package/lib/config/cache.d.ts +0 -7
  57. package/lib/config/cache.d.ts.map +0 -1
  58. package/lib/config/cache.js +0 -12
  59. package/lib/config/db.d.ts +0 -13
  60. package/lib/config/db.d.ts.map +0 -1
  61. package/lib/config/db.js +0 -17
  62. package/lib/config/http.d.ts +0 -5
  63. package/lib/config/http.d.ts.map +0 -1
  64. package/lib/config/http.js +0 -10
  65. package/lib/config/index.d.ts +0 -9
  66. package/lib/config/index.d.ts.map +0 -1
  67. package/lib/config/index.js +0 -92
  68. package/lib/config/logger.d.ts +0 -7
  69. package/lib/config/logger.d.ts.map +0 -1
  70. package/lib/config/logger.js +0 -33
  71. package/lib/config/messaging.d.ts +0 -7
  72. package/lib/config/messaging.d.ts.map +0 -1
  73. package/lib/config/messaging.js +0 -12
  74. package/lib/config/task.d.ts +0 -6
  75. package/lib/config/task.d.ts.map +0 -1
  76. package/lib/config/task.js +0 -13
  77. package/lib/contracts/app.d.ts +0 -5
  78. package/lib/contracts/app.d.ts.map +0 -1
  79. /package/lib/contracts/{app.js → settings.js} +0 -0
package/lib/config/db.js DELETED
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.DatabaseConfig = void 0;
7
- const DatabaseConfig = exports.DatabaseConfig = {
8
- master: {
9
- database: process.env.MASTER_DB_NAME || 'common',
10
- dialect: process.env.MASTER_DB_DIALECT || 'mariadb',
11
- username: process.env.MASTER_DB_USER || 'root',
12
- password: process.env.MASTER_DB_PASS || ''
13
- },
14
- service: {
15
- database: process.env.SERVICE_DB_NAME || 'unknow'
16
- }
17
- };
@@ -1,5 +0,0 @@
1
- export declare const HttpConfig: {
2
- publicPath: string;
3
- formulation: string;
4
- };
5
- //# sourceMappingURL=http.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/config/http.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;CAGtB,CAAC"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.HttpConfig = void 0;
7
- const HttpConfig = exports.HttpConfig = {
8
- publicPath: '',
9
- formulation: process.env.RESPONSE_FORMULATION_TYPE || 'standart'
10
- };
@@ -1,9 +0,0 @@
1
- export * from './app';
2
- export * from './auth';
3
- export { default as CacheConfig } from './cache';
4
- export * from './db';
5
- export * from './http';
6
- export * from './logger';
7
- export { default as MessagingConfig } from './messaging';
8
- export { default as JobConfig } from './task';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAC,OAAO,IAAI,WAAW,EAAC,MAAM,SAAS,CAAC;AAC/C,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,OAAO,EAAC,OAAO,IAAI,eAAe,EAAC,MAAM,aAAa,CAAC;AACvD,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,QAAQ,CAAC"}
@@ -1,92 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _exportNames = {
7
- CacheConfig: true,
8
- MessagingConfig: true,
9
- JobConfig: true
10
- };
11
- Object.defineProperty(exports, "CacheConfig", {
12
- enumerable: true,
13
- get: function () {
14
- return _cache.default;
15
- }
16
- });
17
- Object.defineProperty(exports, "JobConfig", {
18
- enumerable: true,
19
- get: function () {
20
- return _task.default;
21
- }
22
- });
23
- Object.defineProperty(exports, "MessagingConfig", {
24
- enumerable: true,
25
- get: function () {
26
- return _messaging.default;
27
- }
28
- });
29
- var _app = require("./app");
30
- Object.keys(_app).forEach(function (key) {
31
- if (key === "default" || key === "__esModule") return;
32
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
33
- if (key in exports && exports[key] === _app[key]) return;
34
- Object.defineProperty(exports, key, {
35
- enumerable: true,
36
- get: function () {
37
- return _app[key];
38
- }
39
- });
40
- });
41
- var _auth = require("./auth");
42
- Object.keys(_auth).forEach(function (key) {
43
- if (key === "default" || key === "__esModule") return;
44
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
45
- if (key in exports && exports[key] === _auth[key]) return;
46
- Object.defineProperty(exports, key, {
47
- enumerable: true,
48
- get: function () {
49
- return _auth[key];
50
- }
51
- });
52
- });
53
- var _cache = _interopRequireDefault(require("./cache"));
54
- var _db = require("./db");
55
- Object.keys(_db).forEach(function (key) {
56
- if (key === "default" || key === "__esModule") return;
57
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
58
- if (key in exports && exports[key] === _db[key]) return;
59
- Object.defineProperty(exports, key, {
60
- enumerable: true,
61
- get: function () {
62
- return _db[key];
63
- }
64
- });
65
- });
66
- var _http = require("./http");
67
- Object.keys(_http).forEach(function (key) {
68
- if (key === "default" || key === "__esModule") return;
69
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
70
- if (key in exports && exports[key] === _http[key]) return;
71
- Object.defineProperty(exports, key, {
72
- enumerable: true,
73
- get: function () {
74
- return _http[key];
75
- }
76
- });
77
- });
78
- var _logger = require("./logger");
79
- Object.keys(_logger).forEach(function (key) {
80
- if (key === "default" || key === "__esModule") return;
81
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
82
- if (key in exports && exports[key] === _logger[key]) return;
83
- Object.defineProperty(exports, key, {
84
- enumerable: true,
85
- get: function () {
86
- return _logger[key];
87
- }
88
- });
89
- });
90
- var _messaging = _interopRequireDefault(require("./messaging"));
91
- var _task = _interopRequireDefault(require("./task"));
92
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -1,7 +0,0 @@
1
- export declare const LoggerConfig: {
2
- path: string;
3
- fileformat: string;
4
- level: string;
5
- console: boolean;
6
- };
7
- //# sourceMappingURL=logger.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/config/logger.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;CA+BxB,CAAC"}
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.LoggerConfig = void 0;
7
- var _dateFns = require("date-fns");
8
- var _path = _interopRequireDefault(require("path"));
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
- const LoggerConfig = exports.LoggerConfig = {
11
- /**
12
- * Diretório pardrão de logs
13
- * @date 24/03/2023 - 20:19:18
14
- *
15
- */
16
- path: _path.default.resolve(__dirname, '../../logs', (0, _dateFns.format)(new Date(), 'dd-MM-yyyy'), (0, _dateFns.format)(new Date(), 'HH_mm')),
17
- /**
18
- * Formato de saída dos arquivos de logs
19
- * @date 24/03/2023 - 20:19:18
20
- *
21
- */
22
- fileformat: '.json',
23
- /**
24
- * Nível do logger
25
- */
26
- level: process.env.LOGGER_LEVEL || 'info',
27
- /**
28
- * Transportar logs para o console do prompt
29
- * @date 24/03/2023 - 20:19:18
30
- *
31
- */
32
- console: !!parseInt(process.env.LOGGER_CONSOLE) || false
33
- };
@@ -1,7 +0,0 @@
1
- declare const MessagingConfig: {
2
- user: string;
3
- pass: string;
4
- host: string;
5
- };
6
- export default MessagingConfig;
7
- //# sourceMappingURL=messaging.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../src/config/messaging.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,eAAe;;;;CAIpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- const MessagingConfig = {
8
- user: process.env.MSG_USER || 'guest',
9
- pass: process.env.MSG_PASS || 'guest',
10
- host: process.env.MSG_HOST || 'localhost'
11
- };
12
- var _default = exports.default = MessagingConfig;
@@ -1,6 +0,0 @@
1
- declare const JobConfig: {
2
- schedulerPath: string;
3
- queuePath: string;
4
- };
5
- export default JobConfig;
6
- //# sourceMappingURL=task.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../src/config/task.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,SAAS;;;CAGd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _path = _interopRequireDefault(require("path"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
- const JobConfig = {
10
- schedulerPath: _path.default.resolve(__dirname, '../tasks/schedulers/'),
11
- queuePath: _path.default.resolve(__dirname, '../tasks/queue/')
12
- };
13
- var _default = exports.default = JobConfig;
@@ -1,5 +0,0 @@
1
- export type TApplicationCreationProps = {
2
- maxClusters: number;
3
- clustersRestarts: boolean;
4
- };
5
- //# sourceMappingURL=app.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/contracts/app.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC"}
File without changes