exodus-framework 2.0.3 → 2.0.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.
Files changed (188) hide show
  1. package/{build → lib}/app/app.d.ts +3 -4
  2. package/lib/app/app.d.ts.map +1 -0
  3. package/lib/app/app.js +84 -0
  4. package/{build → lib}/app/controller.d.ts +2 -2
  5. package/lib/app/controller.d.ts.map +1 -0
  6. package/{build → lib}/app/controller.js +2 -1
  7. package/lib/app/core.d.ts +10 -0
  8. package/lib/app/core.d.ts.map +1 -0
  9. package/{build → lib}/app/core.js +5 -0
  10. package/{build → lib}/app/index.d.ts +1 -0
  11. package/lib/app/index.d.ts.map +1 -0
  12. package/{build → 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/{build → lib}/app/singleton.d.ts +1 -1
  17. package/{build → lib}/app/singleton.d.ts.map +1 -1
  18. package/lib/contracts/console.d.ts.map +1 -0
  19. package/{build/@types → lib/contracts}/entity.d.ts +2 -1
  20. package/lib/contracts/entity.d.ts.map +1 -0
  21. package/lib/contracts/http.d.ts.map +1 -0
  22. package/{build/@types → lib/contracts}/index.d.ts +1 -1
  23. package/lib/contracts/index.d.ts.map +1 -0
  24. package/{build/@types → lib/contracts}/index.js +11 -11
  25. package/{build/@types → lib/contracts}/messaging.d.ts +6 -0
  26. package/lib/contracts/messaging.d.ts.map +1 -0
  27. package/{build/@types → lib/contracts}/messaging.js +1 -0
  28. package/lib/contracts/service.d.ts.map +1 -0
  29. package/{build/@types → lib/contracts}/session.d.ts +0 -1
  30. package/lib/contracts/session.d.ts.map +1 -0
  31. package/lib/contracts/settings.d.ts +62 -0
  32. package/lib/contracts/settings.d.ts.map +1 -0
  33. package/{build/@types → lib/contracts}/singleton.d.ts +1 -1
  34. package/lib/contracts/singleton.d.ts.map +1 -0
  35. package/{build/@types → lib/contracts}/socket.d.ts +1 -1
  36. package/lib/contracts/socket.d.ts.map +1 -0
  37. package/{build → lib}/controllers/api/file.d.ts +1 -1
  38. package/{build → lib}/controllers/api/file.d.ts.map +1 -1
  39. package/{build → lib}/controllers/api/file.js +1 -1
  40. package/{build → lib}/controllers/api/index.d.ts.map +1 -1
  41. package/{build → lib}/index.d.ts +1 -2
  42. package/lib/index.d.ts.map +1 -0
  43. package/{build → lib}/index.js +4 -16
  44. package/{build → lib}/middlewares/access.d.ts +2 -2
  45. package/lib/middlewares/access.d.ts.map +1 -0
  46. package/{build → lib}/middlewares/access.js +1 -1
  47. package/{build → lib}/middlewares/authentication.d.ts +1 -1
  48. package/{build → lib}/middlewares/authentication.d.ts.map +1 -1
  49. package/{build → lib}/middlewares/authentication.js +9 -4
  50. package/{build → lib}/middlewares/file.d.ts +1 -1
  51. package/{build → lib}/middlewares/file.d.ts.map +1 -1
  52. package/{build → lib}/middlewares/file.js +3 -3
  53. package/lib/middlewares/index.d.ts.map +1 -0
  54. package/{build → lib}/services/error.d.ts +1 -1
  55. package/{build → lib}/services/error.d.ts.map +1 -1
  56. package/{build → lib}/services/error.js +4 -10
  57. package/{build → lib}/services/express.d.ts +3 -3
  58. package/lib/services/express.d.ts.map +1 -0
  59. package/{build → lib}/services/express.js +12 -14
  60. package/lib/services/file.d.ts +13 -0
  61. package/lib/services/file.d.ts.map +1 -0
  62. package/{build → lib}/services/file.js +17 -6
  63. package/lib/services/index.d.ts.map +1 -0
  64. package/{build → lib}/services/rabitmq.d.ts +3 -3
  65. package/lib/services/rabitmq.d.ts.map +1 -0
  66. package/{build → lib}/services/rabitmq.js +2 -2
  67. package/{build → lib}/services/redis.d.ts +2 -2
  68. package/lib/services/redis.d.ts.map +1 -0
  69. package/{build → lib}/services/redis.js +3 -3
  70. package/{build → lib}/services/sequelize.d.ts +2 -2
  71. package/lib/services/sequelize.d.ts.map +1 -0
  72. package/{build → lib}/services/sequelize.js +6 -6
  73. package/{build → lib}/services/socket.d.ts +3 -3
  74. package/lib/services/socket.d.ts.map +1 -0
  75. package/{build → lib}/services/task.d.ts +5 -5
  76. package/lib/services/task.d.ts.map +1 -0
  77. package/{build → lib}/services/task.js +15 -12
  78. package/{build → lib}/utils/api.d.ts +2 -2
  79. package/{build → lib}/utils/api.d.ts.map +1 -1
  80. package/lib/utils/database.d.ts.map +1 -0
  81. package/{build → lib}/utils/database.js +9 -9
  82. package/lib/utils/index.d.ts.map +1 -0
  83. package/lib/utils/logger.d.ts.map +1 -0
  84. package/lib/utils/logger.js +48 -0
  85. package/package.json +7 -6
  86. package/build/@types/app.d.ts +0 -5
  87. package/build/@types/app.d.ts.map +0 -1
  88. package/build/@types/console.d.ts.map +0 -1
  89. package/build/@types/entity.d.ts.map +0 -1
  90. package/build/@types/http.d.ts.map +0 -1
  91. package/build/@types/index.d.ts.map +0 -1
  92. package/build/@types/messaging.d.ts.map +0 -1
  93. package/build/@types/service.d.ts.map +0 -1
  94. package/build/@types/session.d.ts.map +0 -1
  95. package/build/@types/singleton.d.ts.map +0 -1
  96. package/build/@types/socket.d.ts.map +0 -1
  97. package/build/app/app.d.ts.map +0 -1
  98. package/build/app/app.js +0 -68
  99. package/build/app/controller.d.ts.map +0 -1
  100. package/build/app/core.d.ts +0 -7
  101. package/build/app/core.d.ts.map +0 -1
  102. package/build/app/index.d.ts.map +0 -1
  103. package/build/config/app.d.ts +0 -16
  104. package/build/config/app.d.ts.map +0 -1
  105. package/build/config/app.js +0 -25
  106. package/build/config/auth.d.ts +0 -5
  107. package/build/config/auth.d.ts.map +0 -1
  108. package/build/config/auth.js +0 -11
  109. package/build/config/cache.d.ts +0 -7
  110. package/build/config/cache.d.ts.map +0 -1
  111. package/build/config/cache.js +0 -12
  112. package/build/config/db.d.ts +0 -13
  113. package/build/config/db.d.ts.map +0 -1
  114. package/build/config/db.js +0 -17
  115. package/build/config/http.d.ts +0 -5
  116. package/build/config/http.d.ts.map +0 -1
  117. package/build/config/http.js +0 -10
  118. package/build/config/index.d.ts +0 -9
  119. package/build/config/index.d.ts.map +0 -1
  120. package/build/config/index.js +0 -92
  121. package/build/config/logger.d.ts +0 -7
  122. package/build/config/logger.d.ts.map +0 -1
  123. package/build/config/logger.js +0 -33
  124. package/build/config/messaging.d.ts +0 -7
  125. package/build/config/messaging.d.ts.map +0 -1
  126. package/build/config/messaging.js +0 -12
  127. package/build/config/task.d.ts +0 -6
  128. package/build/config/task.d.ts.map +0 -1
  129. package/build/config/task.js +0 -13
  130. package/build/index.d.ts.map +0 -1
  131. package/build/middlewares/access.d.ts.map +0 -1
  132. package/build/middlewares/index.d.ts.map +0 -1
  133. package/build/services/express.d.ts.map +0 -1
  134. package/build/services/file.d.ts +0 -12
  135. package/build/services/file.d.ts.map +0 -1
  136. package/build/services/index.d.ts.map +0 -1
  137. package/build/services/rabitmq.d.ts.map +0 -1
  138. package/build/services/redis.d.ts.map +0 -1
  139. package/build/services/sequelize.d.ts.map +0 -1
  140. package/build/services/socket.d.ts.map +0 -1
  141. package/build/services/task.d.ts.map +0 -1
  142. package/build/utils/database.d.ts.map +0 -1
  143. package/build/utils/index.d.ts.map +0 -1
  144. package/build/utils/logger.d.ts.map +0 -1
  145. package/build/utils/logger.js +0 -45
  146. /package/{build → lib}/app/service.d.ts +0 -0
  147. /package/{build → lib}/app/service.d.ts.map +0 -0
  148. /package/{build → lib}/app/service.js +0 -0
  149. /package/{build → lib}/app/singleton.js +0 -0
  150. /package/{build/@types → lib/contracts}/console.d.ts +0 -0
  151. /package/{build/@types → lib/contracts}/console.js +0 -0
  152. /package/{build/@types → lib/contracts}/entity.js +0 -0
  153. /package/{build/@types → lib/contracts}/http.d.ts +0 -0
  154. /package/{build/@types → lib/contracts}/http.js +0 -0
  155. /package/{build/@types → lib/contracts}/service.d.ts +0 -0
  156. /package/{build/@types → lib/contracts}/service.js +0 -0
  157. /package/{build/@types → lib/contracts}/session.js +0 -0
  158. /package/{build/@types/app.js → lib/contracts/settings.js} +0 -0
  159. /package/{build/@types → lib/contracts}/singleton.js +0 -0
  160. /package/{build/@types → lib/contracts}/socket.js +0 -0
  161. /package/{build → lib}/controllers/api/index.d.ts +0 -0
  162. /package/{build → lib}/controllers/api/index.js +0 -0
  163. /package/{build → lib}/controllers/index.d.ts +0 -0
  164. /package/{build → lib}/controllers/index.d.ts.map +0 -0
  165. /package/{build → lib}/controllers/index.js +0 -0
  166. /package/{build/@types → lib}/express.d.js +0 -0
  167. /package/{build → lib}/middlewares/index.d.ts +0 -0
  168. /package/{build → lib}/middlewares/index.js +0 -0
  169. /package/{build → lib}/models/Connection.d.ts +0 -0
  170. /package/{build → lib}/models/Connection.d.ts.map +0 -0
  171. /package/{build → lib}/models/Connection.js +0 -0
  172. /package/{build → lib}/models/index.d.ts +0 -0
  173. /package/{build → lib}/models/index.d.ts.map +0 -0
  174. /package/{build → lib}/models/index.js +0 -0
  175. /package/{build → lib}/services/index.d.ts +0 -0
  176. /package/{build → lib}/services/index.js +0 -0
  177. /package/{build → lib}/services/socket.js +0 -0
  178. /package/{build → lib}/utils/api.js +0 -0
  179. /package/{build → lib}/utils/database.d.ts +0 -0
  180. /package/{build → lib}/utils/date.d.ts +0 -0
  181. /package/{build → lib}/utils/date.d.ts.map +0 -0
  182. /package/{build → lib}/utils/date.js +0 -0
  183. /package/{build → lib}/utils/index.d.ts +0 -0
  184. /package/{build → lib}/utils/index.js +0 -0
  185. /package/{build → lib}/utils/logger.d.ts +0 -0
  186. /package/{build → lib}/utils/session.d.ts +0 -0
  187. /package/{build → lib}/utils/session.d.ts.map +0 -0
  188. /package/{build → lib}/utils/session.js +0 -0
@@ -4,24 +4,29 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.TaskSchedulingService = exports.TaskQueueService = exports.SchedulingTask = exports.QueueTask = void 0;
7
- var _service = _interopRequireDefault(require("../app/service"));
8
- var _singleton = _interopRequireDefault(require("../app/singleton"));
9
- var _task = _interopRequireDefault(require("../config/task"));
10
7
  var _bullmq = require("bullmq");
11
8
  var _fs = require("fs");
12
9
  var _nodeSchedule = require("node-schedule");
13
- var _cache = _interopRequireDefault(require("../config/cache"));
10
+ var _service = _interopRequireDefault(require("../app/service"));
11
+ var _singleton = _interopRequireDefault(require("../app/singleton"));
14
12
  var _error = require("./error");
13
+ var _app = require("../app");
15
14
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
15
  //* Base
17
- class TaskServiceBase extends _service.default {}
16
+ class TaskServiceBase extends _service.default {
17
+ jobsPath;
18
+ setTaskPath(path) {
19
+ this.jobsPath = path;
20
+ }
21
+ }
18
22
 
19
23
  //* Scheduler
20
24
  class TaskSchedulingService extends TaskServiceBase {
21
- jobsPath;
22
25
  jobs;
23
26
  async init() {
24
- this.jobsPath = _task.default.schedulerPath;
27
+ if (!this.jobsPath) {
28
+ return this.log('Tasks file path not found!', 'danger');
29
+ }
25
30
  this.jobs = [];
26
31
  this.log('Initializing jobs...', 'info');
27
32
  await this.importAllJobs();
@@ -69,16 +74,14 @@ class SchedulingTask extends _singleton.default {
69
74
  //* Queue
70
75
  exports.SchedulingTask = SchedulingTask;
71
76
  class TaskQueueService extends TaskServiceBase {
72
- jobsPath;
73
77
  jobs;
74
78
  connection;
75
79
  async init() {
76
- this.jobsPath = _task.default.queuePath;
77
80
  this.jobs = [];
78
81
  this.connection = {
79
- host: _cache.default.host,
80
- port: Number(_cache.default.port),
81
- password: _cache.default.password
82
+ host: _app.Core.settings.getCache().host,
83
+ port: Number(_app.Core.settings.getCache().port),
84
+ password: _app.Core.settings.getCache().password
82
85
  };
83
86
  this.log('Initializing jobs...', 'info');
84
87
 
@@ -1,6 +1,6 @@
1
- import Core from '@app/core';
1
+ import Core from '../app/core';
2
2
  import { AxiosHeaders, AxiosInstance, Method } from 'axios';
3
- import { IApiResponse } from '../@types/http';
3
+ import { IApiResponse } from '../contracts/http';
4
4
  declare abstract class Api extends Core {
5
5
  axios: AxiosInstance;
6
6
  abstract host: string;
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","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AM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,GAAG,EACV,MAAM,CAAC,EAAE,GAAG,EACZ,OAAO,CAAC,EAAE,YAAY;IAgBxB,SAAS,CAAC,oBAAoB;CAI/B;AAED,eAAe,GAAG,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"database.d.ts","sourceRoot":"","sources":["../../src/utils/database.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAItC,eAAO,MAAM,SAAS,WAYpB,CAAC;AAEH,eAAO,MAAM,QAAQ,WAYnB,CAAC"}
@@ -4,15 +4,15 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.serviceDB = exports.masterDB = void 0;
7
- var _db = require("../config/db");
8
7
  var _sequelize = require("sequelize");
9
8
  var _logger = _interopRequireDefault(require("./logger"));
9
+ var _app = require("../app");
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const serviceDB = exports.serviceDB = new _sequelize.Sequelize({
12
- database: _db.DatabaseConfig.service.database,
13
- dialect: _db.DatabaseConfig.master.dialect,
14
- username: _db.DatabaseConfig.master.username,
15
- password: _db.DatabaseConfig.master.password,
12
+ database: _app.Core.settings.getDatabase().service.database,
13
+ dialect: _app.Core.settings.getDatabase().master.dialect,
14
+ username: _app.Core.settings.getDatabase().master.username,
15
+ password: _app.Core.settings.getDatabase().master.password,
16
16
  define: {
17
17
  timestamps: true
18
18
  },
@@ -22,10 +22,10 @@ const serviceDB = exports.serviceDB = new _sequelize.Sequelize({
22
22
  }
23
23
  });
24
24
  const masterDB = exports.masterDB = new _sequelize.Sequelize({
25
- database: _db.DatabaseConfig.master.database,
26
- dialect: _db.DatabaseConfig.master.dialect,
27
- username: _db.DatabaseConfig.master.username,
28
- password: _db.DatabaseConfig.master.password,
25
+ database: _app.Core.settings.getDatabase().master.database,
26
+ dialect: _app.Core.settings.getDatabase().master.dialect,
27
+ username: _app.Core.settings.getDatabase().master.username,
28
+ password: _app.Core.settings.getDatabase().master.password,
29
29
  define: {
30
30
  timestamps: true
31
31
  },
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,OAAO,CAAC;AACvC,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,cAAc,WAAW,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM,oCA4CX,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _fs = require("fs");
8
+ var _path = _interopRequireDefault(require("path"));
9
+ var _pino = _interopRequireDefault(require("pino"));
10
+ var _pinoMultiStream = require("pino-multi-stream");
11
+ var _app = require("../app");
12
+ var _dateFns = require("date-fns");
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ const logger = () => {
15
+ const basePath = _path.default.resolve(_app.Core.settings.getLogger().path, (0, _dateFns.format)(new Date(), 'dd-MM-yyyy'), (0, _dateFns.format)(new Date(), 'HH_mm'));
16
+ (0, _fs.mkdirSync)(basePath, {
17
+ recursive: true
18
+ });
19
+ const streams = [{
20
+ level: 'error',
21
+ stream: (0, _fs.createWriteStream)(basePath + '/error' + _app.Core.settings.getLogger().fileformat)
22
+ }, {
23
+ level: 'info',
24
+ stream: (0, _fs.createWriteStream)(basePath + '/info' + _app.Core.settings.getLogger().fileformat)
25
+ }, {
26
+ level: 'fatal',
27
+ stream: (0, _fs.createWriteStream)(basePath + '/fatal' + _app.Core.settings.getLogger().fileformat)
28
+ }, {
29
+ level: 'warn',
30
+ stream: (0, _fs.createWriteStream)(basePath + '/warn' + _app.Core.settings.getLogger().fileformat)
31
+ }, {
32
+ level: 'silent',
33
+ stream: (0, _fs.createWriteStream)(basePath + '/silent' + _app.Core.settings.getLogger().fileformat)
34
+ }, {
35
+ level: 'trace',
36
+ stream: (0, _fs.createWriteStream)(basePath + '/trace' + _app.Core.settings.getLogger().fileformat)
37
+ }];
38
+ _app.Core.settings.getLogger().console ?? streams.push({
39
+ stream: process.stdout
40
+ });
41
+ return (0, _pino.default)({
42
+ name: 'exodus',
43
+ level: _app.Core.settings.getLogger().level,
44
+ // this MUST be set at the lowest level of the
45
+ timestamp: () => `,"time":"${new Date().toJSON()}"`
46
+ }, (0, _pinoMultiStream.multistream)(streams));
47
+ };
48
+ var _default = exports.default = logger;
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "exodus-framework",
3
- "version": "2.0.03",
3
+ "version": "2.0.6",
4
4
  "description": "Exodus Framework",
5
5
  "author": "jhownpaixao",
6
6
  "license": "ISC",
7
- "main": "build/index.js",
8
- "types": "build/index.d.ts",
7
+ "main": "lib/index.js",
8
+ "types": "lib/index.d.ts",
9
9
  "files": [
10
- "build"
10
+ "lib"
11
11
  ],
12
12
  "scripts": {
13
13
  "test": "vitest",
14
- "build": "rimraf ./build && npm run build:types && babel src --extensions \".js,.ts\" --out-dir build --copy-files --no-copy-ignored",
14
+ "build": "rimraf ./lib && npm run build:types && babel src --extensions \".js,.ts\" --out-dir lib --copy-files --no-copy-ignored",
15
15
  "build:types": "tsc --emitDeclarationOnly",
16
16
  "dev": "ts-node-dev -r tsconfig-paths/register --respawn --transpile-only --ignore-watch node_modules src/server.ts",
17
17
  "start": "node build/server.js",
@@ -34,6 +34,7 @@
34
34
  "express-async-errors": "^2.0.0",
35
35
  "express-jwt": "^8.4.1",
36
36
  "fs": "^0.0.1-security",
37
+ "lodash": "^4.17.21",
37
38
  "mariadb": "^3.3.1",
38
39
  "multer": "^1.4.5-lts.1",
39
40
  "mysql2": "^3.11.0",
@@ -56,9 +57,9 @@
56
57
  "@types/amqplib": "^0.10.5",
57
58
  "@types/cors": "^2.8.17",
58
59
  "@types/express": "^4.17.21",
60
+ "@types/lodash": "^4.17.7",
59
61
  "@types/multer": "^1.4.12",
60
62
  "@types/node": "^22.5.0",
61
- "@types/node-jose": "^1.1.13",
62
63
  "@types/node-schedule": "^2.1.7",
63
64
  "@types/pino-multi-stream": "^5.1.6",
64
65
  "@types/redis": "^4.0.11",
@@ -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/@types/app.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,OAAO,CAAC;CAC3B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"console.d.ts","sourceRoot":"","sources":["../../src/@types/console.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GACpB,MAAM,GACN,QAAQ,GACR,SAAS,GACT,SAAS,GACT,UAAU,GACV,SAAS,GACT,QAAQ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../src/@types/entity.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,KAAK,EACL,YAAY,EACb,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AACF,MAAM,MAAM,WAAW,CAAC,CAAC,SA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;IAC9B,oBAAoB,MAAM;IAG1B,WAAW,MAAM;IACjB,gBAAgB,MAAM;IACtB,kBAAkB,MAAM;IACxB,wBAAwB,MAAM;IAC9B,cAAc,MAAM;IACpB,uBAAuB,MAAM;IAC7B,kBAAkB,MAAM;CACzB;AACD,oBAAY,iBAAiB;IAC3B,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AACD,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,CAAC,EAAE,CAAC;CACX;AAED,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,MAAM,YAAY,CAAC,IAAI,GAAG,GAAG,EAAE,KAAK,GAAG,GAAG,IAAI,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/@types/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AAEzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../src/@types/messaging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAElD,oBAAY,eAAe;IACzB,IAAI,sBAAsB;IAG1B,cAAc,2BAA2B;IAGzC,kBAAkB,+BAA+B;IACjD,uBAAuB,qCAAqC;CAC7D;AAGD,MAAM,MAAM,oBAAoB,GAAG;IACjC,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE;QACtB,IAAI,EAAE,GAAG,CAAC;KACX,CAAC;IACF,CAAC,eAAe,CAAC,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC3C,CAAC,eAAe,CAAC,kBAAkB,CAAC,EAAE,YAAY,CAAC;IACnD,CAAC,eAAe,CAAC,uBAAuB,CAAC,EAAE;QACzC,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,MAAM,oBAAoB,GAAG,GAAG,IAAI,CAC/E,IAAI,EAAE,oBAAoB,CAAC,CAAC,CAAC,EAC7B,GAAG,EAAE,MAAM,IAAI,KACZ,IAAI,CAAC;AAEV,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC5C,MAAM,CAAC,MAAM,oBAAoB,EAAE,sBAAsB,CAAC,CAC3D,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/@types/service.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/@types/session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,QAAQ,CAAC;CACnB;AACD,MAAM,MAAM,YAAY,GAAG,eAAe,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"singleton.d.ts","sourceRoot":"","sources":["../../src/@types/singleton.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gBAAgB,CAAC;AAEvC,KAAK,kBAAkB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,UAAU,GAAG,GAAG,KAAK,GAAG,CAAC;CAAE,CAAC,MAAM,CAAC,CAAC,CAAC;AACjG,KAAK,cAAc,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC;AACxD,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,SAAS,IAAI,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;IAAE,QAAQ,CAAC,CAAA;CAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../../src/@types/socket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,oBAAY,YAAY;IACtB,IAAI,6BAA6B;IACjC,KAAK,8BAA8B;CACpC;AAED,KAAK,kBAAkB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC3C,KAAK,kBAAkB,GAAG,CAAC,MAAM,CAAC,CAAC;AAGnC,MAAM,MAAM,mBAAmB,GAAG;IAChC,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC;IACxC,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,kBAAkB,CAAC;CAC1C,CAAC;AACF,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,GAAG,CAAC,CAAC;AAExF,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,mBAAmB,IAAI,CACtE,MAAM,EAAE,OAAO,EACf,KAAK,EAAE,MAAM,KACV,kBAAkB,CAAC,CAAC,CAAC,CAAC;AAE3B,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,MAAM,mBAAmB,IAAI,CAEpE,OAAO,EAAE,aAAa,EACtB,GAAG,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAC5B,IAAI,CAAC;AAEV,MAAM,MAAM,gBAAgB,GAAG,OAAO,CACpC,MAAM,CAAC,MAAM,mBAAmB,EAAE,kBAAkB,CAAC,MAAM,mBAAmB,CAAC,CAAC,CACjF,CAAC;AAEF,MAAM,MAAM,6BAA6B,CAAC,CAAC,SAAS,MAAM,mBAAmB,GAAG,GAAG,IAAI,CACrF,MAAM,EAAE,OAAO,EACf,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,KACzB,IAAI,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/app/app.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,IAAI,MAAM,QAAQ,CAAC;AAS1B,cAAM,MAAO,SAAQ,IAAI;IACvB,OAAO,CAAC,QAAQ,CAAa;IAC7B,OAAO,CAAC,KAAK,CAA4B;gBAG7B,KAAK,EAAE,yBAAyB;IAKtC,KAAK;IASL,UAAU;IAIV,WAAW;IAIX,cAAc;IAgBpB,wBAAwB,CAAC,OAAO,EAAE,QAAQ;IAGpC,YAAY;CAKnB;AACD,eAAe,MAAM,CAAC"}
package/build/app/app.js DELETED
@@ -1,68 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _app = require("../config/app");
8
- var _cluster = _interopRequireDefault(require("cluster"));
9
- var _core = _interopRequireDefault(require("./core"));
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- /**
12
- * Classe da aplicação principal
13
- * Responsável por inicializar todos os recursos usados por este micro-serviço
14
- *
15
- * @class Application
16
- * @extends {Core}
17
- */
18
- class Exodus extends _core.default {
19
- services;
20
- props;
21
-
22
- //* Initialization
23
- constructor(props) {
24
- super();
25
- this.props = props;
26
- this.services = [];
27
- }
28
- async start() {
29
- if (_cluster.default.isPrimary) {
30
- this.initMaster();
31
- } else {
32
- await this.initCluster();
33
- }
34
- }
35
-
36
- //* Cluster Managment
37
- async initMaster() {
38
- this.log(`✨ Starting ${_app.AppConfig.description} · Clusters: ${_app.AppConfig.clusters}`);
39
- this.createClusters();
40
- }
41
- async initCluster() {
42
- this.log(`📊 Cluster ${_cluster.default.worker.id} started · PID ${_cluster.default.worker.process.pid}`);
43
- this.initServices();
44
- }
45
- async createClusters() {
46
- for (let i = 0; i < this.props.maxClusters; i++) {
47
- _cluster.default.fork();
48
- }
49
- _cluster.default.on('exit', (worker, _code, _signal) => {
50
- this.log(`Cluester ${worker.process.pid} foi encerrado`, 'warning');
51
- if (this.props.clustersRestarts) {
52
- this.log(`Reiniciando cluster`, 'warning');
53
- _cluster.default.fork();
54
- }
55
- });
56
- }
57
-
58
- //* Service Managment
59
- registerSingletonService(service) {
60
- this.services.push(service);
61
- }
62
- async initServices() {
63
- for (const service of this.services) {
64
- await service.init();
65
- }
66
- }
67
- }
68
- var _default = exports.default = Exodus;
@@ -1 +0,0 @@
1
- {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../src/app/controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC5F,OAAO,IAAI,MAAM,QAAQ,CAAC;AAS1B,uBAAe,cAAe,SAAQ,IAAI;;IAexC,SAAS,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,YAAY,GAAG,IAAI;IAIhG,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;CAG7C;AAUD,8BAAsB,gBAAiB,SAAQ,IAAI;;IAKjD,SAAS,CAAC,gBAAgB,CAAC,CAAC,SAAS,MAAM,mBAAmB,EAAE,EAAE,EAAE,kBAAkB,CAAC,CAAC,CAAC,SAC1E,aAAa,QAAQ,mBAAmB,CAAC,CAAC,CAAC;IAM1D,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM;CAGpC;AACD,qBAAa,aAAc,SAAQ,IAAI;IACrC,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,KAAK,EAAE,MAAM,mBAAmB,CAAC;gBAE/B,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB;IAM7D,IAAI,CAAC,CAAC,SAAS,MAAM,mBAAmB,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAInF,QAAQ;IAGR,SAAS;IAIT,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,GAAG;CAGjC;AAED,8BAAsB,mBAAoB,SAAQ,IAAI;;IAKpD,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM;CAGpC;AAED,eAAe,cAAc,CAAC"}
@@ -1,7 +0,0 @@
1
- import { TLoggerLevel } from '../@types/console';
2
- declare abstract class Core {
3
- constructor();
4
- log(msg: string, level?: TLoggerLevel): void;
5
- }
6
- export default Core;
7
- //# sourceMappingURL=core.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/app/core.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAWjD,uBAAe,IAAI;;IAKV,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,GAAE,YAAuB;CA0CvD;AAED,eAAe,IAAI,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,MAAM,EAAC,MAAM,OAAO,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,OAAO,IAAI,OAAO,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,aAAa,CAAC"}
@@ -1,16 +0,0 @@
1
- import 'dotenv/config';
2
- export declare const AppConfig: {
3
- appId: string;
4
- port: string;
5
- host: string;
6
- description: string;
7
- clusters: string | number;
8
- filePaths: {
9
- temporary: string;
10
- image: string;
11
- audio: string;
12
- document: string;
13
- video: string;
14
- };
15
- };
16
- //# sourceMappingURL=app.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/config/app.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AAIvB,eAAO,MAAM,SAAS;;;;;;;;;;;;;CAerB,CAAC"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.AppConfig = void 0;
7
- require("dotenv/config");
8
- var _os = _interopRequireDefault(require("os"));
9
- var _path = _interopRequireDefault(require("path"));
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
- const AppConfig = exports.AppConfig = {
12
- appId: process.env.APP_ID,
13
- port: process.env.APP_PORT,
14
- host: process.env.APP_URL || 'http://localhost',
15
- description: process.env.APP_DESCRIPTION || '',
16
- clusters: process.env.APP_CLUESTERS || _os.default.cpus().length,
17
- /* File */
18
- filePaths: {
19
- temporary: _path.default.resolve(__dirname, '..', '..', 'public', 'tmp'),
20
- image: _path.default.resolve(__dirname, '..', '..', 'public', 'images'),
21
- audio: _path.default.resolve(__dirname, '..', '..', 'public', 'audios'),
22
- document: _path.default.resolve(__dirname, '..', '..', 'public', 'documents'),
23
- video: _path.default.resolve(__dirname, '..', '..', 'public', 'videos')
24
- }
25
- };
@@ -1,5 +0,0 @@
1
- export declare const AuthConfig: {
2
- host: string;
3
- issuer: string;
4
- };
5
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/config/auth.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;CAItB,CAAC"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.AuthConfig = void 0;
7
- const AuthConfig = exports.AuthConfig = {
8
- host: process.env.APP_SESSION_URL,
9
- /* APPAuthID:APPAuthPort/SECURITY_JWT_ISSUER */
10
- issuer: `exodus.session.hub:4000/${process.env.SECURITY_JWT_ISSUER}`
11
- };
@@ -1,7 +0,0 @@
1
- declare const CacheConfig: {
2
- host: string;
3
- port: string | number;
4
- password: string;
5
- };
6
- export default CacheConfig;
7
- //# sourceMappingURL=cache.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/config/cache.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;CAIhB,CAAC;AAEF,eAAe,WAAW,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 CacheConfig = {
8
- host: process.env.CACHE_HOST || 'localhost',
9
- port: process.env.CACHE_PORT || 6379,
10
- password: process.env.CACHE_USER || 'eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81'
11
- };
12
- var _default = exports.default = CacheConfig;
@@ -1,13 +0,0 @@
1
- import { Dialect } from 'sequelize';
2
- export declare const DatabaseConfig: {
3
- master: {
4
- database: string;
5
- dialect: Dialect;
6
- username: string;
7
- password: string;
8
- };
9
- service: {
10
- database: string;
11
- };
12
- };
13
- //# sourceMappingURL=db.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/config/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,eAAO,MAAM,cAAc;;;;;;;;;;CAU1B,CAAC"}
@@ -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"}