exodus-framework 2.0.0 → 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 (202) 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/lib/app/index.d.ts +7 -0
  11. package/lib/app/index.d.ts.map +1 -0
  12. package/lib/app/index.js +60 -0
  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 +2 -2
  23. package/lib/contracts/index.d.ts.map +1 -0
  24. package/{build/@types → lib/contracts}/index.js +22 -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/lib/controllers/api/index.d.ts +2 -0
  41. package/{build → lib}/controllers/api/index.d.ts.map +1 -1
  42. package/lib/controllers/api/index.js +13 -0
  43. package/{build → lib}/index.d.ts +3 -1
  44. package/lib/index.d.ts.map +1 -0
  45. package/{build → lib}/index.js +15 -5
  46. package/{build → lib}/middlewares/access.d.ts +2 -2
  47. package/lib/middlewares/access.d.ts.map +1 -0
  48. package/{build → lib}/middlewares/access.js +1 -1
  49. package/{build → lib}/middlewares/authentication.d.ts +1 -1
  50. package/{build → lib}/middlewares/authentication.d.ts.map +1 -1
  51. package/{build → lib}/middlewares/authentication.js +9 -4
  52. package/{build → lib}/middlewares/file.d.ts +1 -1
  53. package/{build → lib}/middlewares/file.d.ts.map +1 -1
  54. package/{build → lib}/middlewares/file.js +3 -3
  55. package/lib/middlewares/index.d.ts +4 -0
  56. package/lib/middlewares/index.d.ts.map +1 -0
  57. package/lib/middlewares/index.js +27 -0
  58. package/lib/models/index.d.ts +2 -0
  59. package/lib/models/index.d.ts.map +1 -0
  60. package/{build/controllers/api → lib/models}/index.js +4 -4
  61. package/{build → lib}/services/error.d.ts +1 -1
  62. package/{build → lib}/services/error.d.ts.map +1 -1
  63. package/{build → lib}/services/error.js +4 -10
  64. package/{build → lib}/services/express.d.ts +3 -3
  65. package/lib/services/express.d.ts.map +1 -0
  66. package/{build → lib}/services/express.js +12 -14
  67. package/lib/services/file.d.ts +13 -0
  68. package/lib/services/file.d.ts.map +1 -0
  69. package/{build → lib}/services/file.js +17 -6
  70. package/lib/services/index.d.ts +9 -0
  71. package/lib/services/index.d.ts.map +1 -0
  72. package/lib/services/index.js +80 -0
  73. package/{build → lib}/services/rabitmq.d.ts +3 -3
  74. package/lib/services/rabitmq.d.ts.map +1 -0
  75. package/{build → lib}/services/rabitmq.js +2 -2
  76. package/{build → lib}/services/redis.d.ts +2 -2
  77. package/lib/services/redis.d.ts.map +1 -0
  78. package/{build → lib}/services/redis.js +3 -3
  79. package/{build → lib}/services/sequelize.d.ts +3 -2
  80. package/lib/services/sequelize.d.ts.map +1 -0
  81. package/{build → lib}/services/sequelize.js +10 -8
  82. package/{build → lib}/services/socket.d.ts +3 -3
  83. package/lib/services/socket.d.ts.map +1 -0
  84. package/{build → lib}/services/task.d.ts +5 -5
  85. package/lib/services/task.d.ts.map +1 -0
  86. package/{build → lib}/services/task.js +15 -12
  87. package/{build → lib}/utils/api.d.ts +2 -2
  88. package/{build → lib}/utils/api.d.ts.map +1 -1
  89. package/lib/utils/database.d.ts.map +1 -0
  90. package/{build → lib}/utils/database.js +9 -9
  91. package/lib/utils/index.d.ts +6 -0
  92. package/lib/utils/index.d.ts.map +1 -0
  93. package/{build → lib}/utils/index.js +22 -22
  94. package/lib/utils/logger.d.ts.map +1 -0
  95. package/lib/utils/logger.js +48 -0
  96. package/{build → lib}/utils/session.d.ts +1 -1
  97. package/package.json +12 -9
  98. package/build/@types/app.d.ts +0 -5
  99. package/build/@types/app.d.ts.map +0 -1
  100. package/build/@types/console.d.ts.map +0 -1
  101. package/build/@types/entity.d.ts.map +0 -1
  102. package/build/@types/http.d.ts.map +0 -1
  103. package/build/@types/index.d.ts.map +0 -1
  104. package/build/@types/messaging.d.ts.map +0 -1
  105. package/build/@types/service.d.ts.map +0 -1
  106. package/build/@types/session.d.ts.map +0 -1
  107. package/build/@types/singleton.d.ts.map +0 -1
  108. package/build/@types/socket.d.ts.map +0 -1
  109. package/build/app/app.d.ts.map +0 -1
  110. package/build/app/app.js +0 -68
  111. package/build/app/controller.d.ts.map +0 -1
  112. package/build/app/core.d.ts +0 -7
  113. package/build/app/core.d.ts.map +0 -1
  114. package/build/app/index.d.ts +0 -8
  115. package/build/app/index.d.ts.map +0 -1
  116. package/build/app/index.js +0 -70
  117. package/build/config/app.d.ts +0 -16
  118. package/build/config/app.d.ts.map +0 -1
  119. package/build/config/app.js +0 -25
  120. package/build/config/auth.d.ts +0 -5
  121. package/build/config/auth.d.ts.map +0 -1
  122. package/build/config/auth.js +0 -11
  123. package/build/config/cache.d.ts +0 -7
  124. package/build/config/cache.d.ts.map +0 -1
  125. package/build/config/cache.js +0 -12
  126. package/build/config/db.d.ts +0 -13
  127. package/build/config/db.d.ts.map +0 -1
  128. package/build/config/db.js +0 -17
  129. package/build/config/http.d.ts +0 -5
  130. package/build/config/http.d.ts.map +0 -1
  131. package/build/config/http.js +0 -10
  132. package/build/config/index.d.ts +0 -9
  133. package/build/config/index.d.ts.map +0 -1
  134. package/build/config/index.js +0 -93
  135. package/build/config/logger.d.ts +0 -7
  136. package/build/config/logger.d.ts.map +0 -1
  137. package/build/config/logger.js +0 -33
  138. package/build/config/messaging.d.ts +0 -7
  139. package/build/config/messaging.d.ts.map +0 -1
  140. package/build/config/messaging.js +0 -12
  141. package/build/config/task.d.ts +0 -6
  142. package/build/config/task.d.ts.map +0 -1
  143. package/build/config/task.js +0 -13
  144. package/build/controllers/api/index.d.ts +0 -2
  145. package/build/index.d.ts.map +0 -1
  146. package/build/middlewares/access.d.ts.map +0 -1
  147. package/build/middlewares/index.d.ts +0 -4
  148. package/build/middlewares/index.d.ts.map +0 -1
  149. package/build/middlewares/index.js +0 -38
  150. package/build/models/index.d.ts +0 -5
  151. package/build/models/index.d.ts.map +0 -1
  152. package/build/models/index.js +0 -14
  153. package/build/server.d.ts +0 -2
  154. package/build/server.d.ts.map +0 -1
  155. package/build/server.js +0 -33
  156. package/build/services/express.d.ts.map +0 -1
  157. package/build/services/file.d.ts +0 -12
  158. package/build/services/file.d.ts.map +0 -1
  159. package/build/services/index.d.ts +0 -9
  160. package/build/services/index.d.ts.map +0 -1
  161. package/build/services/index.js +0 -93
  162. package/build/services/rabitmq.d.ts.map +0 -1
  163. package/build/services/redis.d.ts.map +0 -1
  164. package/build/services/sequelize.d.ts.map +0 -1
  165. package/build/services/socket.d.ts.map +0 -1
  166. package/build/services/task.d.ts.map +0 -1
  167. package/build/utils/database.d.ts.map +0 -1
  168. package/build/utils/index.d.ts +0 -6
  169. package/build/utils/index.d.ts.map +0 -1
  170. package/build/utils/logger.d.ts.map +0 -1
  171. package/build/utils/logger.js +0 -45
  172. /package/{build → lib}/app/service.d.ts +0 -0
  173. /package/{build → lib}/app/service.d.ts.map +0 -0
  174. /package/{build → lib}/app/service.js +0 -0
  175. /package/{build → lib}/app/singleton.js +0 -0
  176. /package/{build/@types → lib/contracts}/console.d.ts +0 -0
  177. /package/{build/@types → lib/contracts}/console.js +0 -0
  178. /package/{build/@types → lib/contracts}/entity.js +0 -0
  179. /package/{build/@types → lib/contracts}/http.d.ts +0 -0
  180. /package/{build/@types → lib/contracts}/http.js +0 -0
  181. /package/{build/@types → lib/contracts}/service.d.ts +0 -0
  182. /package/{build/@types → lib/contracts}/service.js +0 -0
  183. /package/{build/@types → lib/contracts}/session.js +0 -0
  184. /package/{build/@types/app.js → lib/contracts/settings.js} +0 -0
  185. /package/{build/@types → lib/contracts}/singleton.js +0 -0
  186. /package/{build/@types → lib/contracts}/socket.js +0 -0
  187. /package/{build → lib}/controllers/index.d.ts +0 -0
  188. /package/{build → lib}/controllers/index.d.ts.map +0 -0
  189. /package/{build → lib}/controllers/index.js +0 -0
  190. /package/{build/@types → lib}/express.d.js +0 -0
  191. /package/{build → lib}/models/Connection.d.ts +0 -0
  192. /package/{build → lib}/models/Connection.d.ts.map +0 -0
  193. /package/{build → lib}/models/Connection.js +0 -0
  194. /package/{build → lib}/services/socket.js +0 -0
  195. /package/{build → lib}/utils/api.js +0 -0
  196. /package/{build → lib}/utils/database.d.ts +0 -0
  197. /package/{build → lib}/utils/date.d.ts +0 -0
  198. /package/{build → lib}/utils/date.d.ts.map +0 -0
  199. /package/{build → lib}/utils/date.js +0 -0
  200. /package/{build → lib}/utils/logger.d.ts +0 -0
  201. /package/{build → lib}/utils/session.d.ts.map +0 -0
  202. /package/{build → lib}/utils/session.js +0 -0
@@ -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;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,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,8 +0,0 @@
1
- import Exodus from './app';
2
- export * from './app';
3
- export * from './controller';
4
- export * from './core';
5
- export * from './service';
6
- export * from './singleton';
7
- export default Exodus;
8
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,OAAO,CAAC;AAE3B,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAE5B,eAAe,MAAM,CAAC"}
@@ -1,70 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _exportNames = {};
7
- exports.default = void 0;
8
- var _app = _interopRequireWildcard(require("./app"));
9
- Object.keys(_app).forEach(function (key) {
10
- if (key === "default" || key === "__esModule") return;
11
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
12
- if (key in exports && exports[key] === _app[key]) return;
13
- Object.defineProperty(exports, key, {
14
- enumerable: true,
15
- get: function () {
16
- return _app[key];
17
- }
18
- });
19
- });
20
- var _controller = require("./controller");
21
- Object.keys(_controller).forEach(function (key) {
22
- if (key === "default" || key === "__esModule") return;
23
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
24
- if (key in exports && exports[key] === _controller[key]) return;
25
- Object.defineProperty(exports, key, {
26
- enumerable: true,
27
- get: function () {
28
- return _controller[key];
29
- }
30
- });
31
- });
32
- var _core = require("./core");
33
- Object.keys(_core).forEach(function (key) {
34
- if (key === "default" || key === "__esModule") return;
35
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
36
- if (key in exports && exports[key] === _core[key]) return;
37
- Object.defineProperty(exports, key, {
38
- enumerable: true,
39
- get: function () {
40
- return _core[key];
41
- }
42
- });
43
- });
44
- var _service = require("./service");
45
- Object.keys(_service).forEach(function (key) {
46
- if (key === "default" || key === "__esModule") return;
47
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
48
- if (key in exports && exports[key] === _service[key]) return;
49
- Object.defineProperty(exports, key, {
50
- enumerable: true,
51
- get: function () {
52
- return _service[key];
53
- }
54
- });
55
- });
56
- var _singleton = require("./singleton");
57
- Object.keys(_singleton).forEach(function (key) {
58
- if (key === "default" || key === "__esModule") return;
59
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
60
- if (key in exports && exports[key] === _singleton[key]) return;
61
- Object.defineProperty(exports, key, {
62
- enumerable: true,
63
- get: function () {
64
- return _singleton[key];
65
- }
66
- });
67
- });
68
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
69
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
70
- var _default = exports.default = _app.default;
@@ -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 * from './cache';
4
- export * from './db';
5
- export * from './http';
6
- export * from './logger';
7
- export * from './messaging';
8
- export * 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,cAAc,SAAS,CAAC;AACxB,cAAc,MAAM,CAAC;AACrB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
@@ -1,93 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _app = require("./app");
7
- Object.keys(_app).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _app[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _app[key];
14
- }
15
- });
16
- });
17
- var _auth = require("./auth");
18
- Object.keys(_auth).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _auth[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _auth[key];
25
- }
26
- });
27
- });
28
- var _cache = require("./cache");
29
- Object.keys(_cache).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _cache[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function () {
35
- return _cache[key];
36
- }
37
- });
38
- });
39
- var _db = require("./db");
40
- Object.keys(_db).forEach(function (key) {
41
- if (key === "default" || key === "__esModule") return;
42
- if (key in exports && exports[key] === _db[key]) return;
43
- Object.defineProperty(exports, key, {
44
- enumerable: true,
45
- get: function () {
46
- return _db[key];
47
- }
48
- });
49
- });
50
- var _http = require("./http");
51
- Object.keys(_http).forEach(function (key) {
52
- if (key === "default" || key === "__esModule") return;
53
- if (key in exports && exports[key] === _http[key]) return;
54
- Object.defineProperty(exports, key, {
55
- enumerable: true,
56
- get: function () {
57
- return _http[key];
58
- }
59
- });
60
- });
61
- var _logger = require("./logger");
62
- Object.keys(_logger).forEach(function (key) {
63
- if (key === "default" || key === "__esModule") return;
64
- if (key in exports && exports[key] === _logger[key]) return;
65
- Object.defineProperty(exports, key, {
66
- enumerable: true,
67
- get: function () {
68
- return _logger[key];
69
- }
70
- });
71
- });
72
- var _messaging = require("./messaging");
73
- Object.keys(_messaging).forEach(function (key) {
74
- if (key === "default" || key === "__esModule") return;
75
- if (key in exports && exports[key] === _messaging[key]) return;
76
- Object.defineProperty(exports, key, {
77
- enumerable: true,
78
- get: function () {
79
- return _messaging[key];
80
- }
81
- });
82
- });
83
- var _task = require("./task");
84
- Object.keys(_task).forEach(function (key) {
85
- if (key === "default" || key === "__esModule") return;
86
- if (key in exports && exports[key] === _task[key]) return;
87
- Object.defineProperty(exports, key, {
88
- enumerable: true,
89
- get: function () {
90
- return _task[key];
91
- }
92
- });
93
- });
@@ -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,2 +0,0 @@
1
- export * from './file';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"access.d.ts","sourceRoot":"","sources":["../../src/middlewares/access.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,cAAM,gBAAiB,SAAQ,cAAc;IAC3C,WAAW,UAAW,YAAY,EAAE,KAAG,cAAc,CAWnD;CACH;AAED,eAAe,gBAAgB,CAAC"}
@@ -1,4 +0,0 @@
1
- export * from './access';
2
- export * from './authentication';
3
- export * from './file';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/middlewares/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC"}
@@ -1,38 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _access = require("./access");
7
- Object.keys(_access).forEach(function (key) {
8
- if (key === "default" || key === "__esModule") return;
9
- if (key in exports && exports[key] === _access[key]) return;
10
- Object.defineProperty(exports, key, {
11
- enumerable: true,
12
- get: function () {
13
- return _access[key];
14
- }
15
- });
16
- });
17
- var _authentication = require("./authentication");
18
- Object.keys(_authentication).forEach(function (key) {
19
- if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _authentication[key]) return;
21
- Object.defineProperty(exports, key, {
22
- enumerable: true,
23
- get: function () {
24
- return _authentication[key];
25
- }
26
- });
27
- });
28
- var _file = require("./file");
29
- Object.keys(_file).forEach(function (key) {
30
- if (key === "default" || key === "__esModule") return;
31
- if (key in exports && exports[key] === _file[key]) return;
32
- Object.defineProperty(exports, key, {
33
- enumerable: true,
34
- get: function () {
35
- return _file[key];
36
- }
37
- });
38
- });
@@ -1,5 +0,0 @@
1
- import { ModelStatic } from 'sequelize';
2
- import { Connection } from './Connection';
3
- export declare const Models: ModelStatic<any>[];
4
- export { Connection };
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,eAAO,MAAM,MAAM,EAAE,WAAW,CAAC,GAAG,CAAC,EAAiB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,CAAC"}