exodus-framework 2.0.696 → 2.0.699

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/settings.d.ts.map +1 -1
  2. package/lib/contracts/messaging.d.ts +28 -1
  3. package/lib/contracts/messaging.d.ts.map +1 -1
  4. package/lib/contracts/security.d.ts +11 -0
  5. package/lib/contracts/security.d.ts.map +1 -0
  6. package/lib/contracts/settings.d.ts +6 -0
  7. package/lib/contracts/settings.d.ts.map +1 -1
  8. package/lib/controllers/messaging/database.d.ts +9 -0
  9. package/lib/controllers/messaging/database.d.ts.map +1 -0
  10. package/lib/controllers/messaging/environment.d.ts +10 -0
  11. package/lib/controllers/messaging/environment.d.ts.map +1 -0
  12. package/lib/middlewares/access.d.ts.map +1 -1
  13. package/lib/middlewares/authentication.d.ts +1 -1
  14. package/lib/middlewares/authentication.d.ts.map +1 -1
  15. package/lib/models/Application.d.ts +13 -0
  16. package/lib/models/Application.d.ts.map +1 -0
  17. package/lib/models/Connection.d.ts +1 -0
  18. package/lib/models/Connection.d.ts.map +1 -1
  19. package/lib/models/EnvConnection.d.ts +9 -0
  20. package/lib/models/EnvConnection.d.ts.map +1 -0
  21. package/lib/models/index.d.ts +4 -0
  22. package/lib/models/index.d.ts.map +1 -1
  23. package/lib/routes/index.d.ts +2 -0
  24. package/lib/routes/index.d.ts.map +1 -0
  25. package/lib/routes/messaging/index.d.ts +4 -0
  26. package/lib/routes/messaging/index.d.ts.map +1 -0
  27. package/lib/services/rabitmq.d.ts.map +1 -1
  28. package/lib/services/security.d.ts +29 -0
  29. package/lib/services/security.d.ts.map +1 -0
  30. package/lib/services/sequelize.d.ts.map +1 -1
  31. package/lib/utils/index.d.ts +1 -0
  32. package/lib/utils/index.d.ts.map +1 -1
  33. package/package.json +3 -1
  34. package/lib/app/app.js +0 -84
  35. package/lib/app/controller.js +0 -95
  36. package/lib/app/core.js +0 -66
  37. package/lib/app/index.js +0 -60
  38. package/lib/app/service.js +0 -24
  39. package/lib/app/settings.js +0 -130
  40. package/lib/app/singleton.js +0 -29
  41. package/lib/contracts/console.js +0 -5
  42. package/lib/contracts/entity.js +0 -5
  43. package/lib/contracts/http.js +0 -50
  44. package/lib/contracts/index.js +0 -104
  45. package/lib/contracts/messaging.js +0 -14
  46. package/lib/contracts/service.js +0 -5
  47. package/lib/contracts/session.js +0 -5
  48. package/lib/contracts/settings.js +0 -5
  49. package/lib/contracts/singleton.js +0 -5
  50. package/lib/contracts/socket.js +0 -11
  51. package/lib/contracts/tenant.d.ts +0 -1
  52. package/lib/contracts/tenant.d.ts.map +0 -1
  53. package/lib/contracts/tenant.js +0 -1
  54. package/lib/controllers/api/file.js +0 -24
  55. package/lib/controllers/api/index.js +0 -13
  56. package/lib/controllers/index.js +0 -16
  57. package/lib/express.d.js +0 -5
  58. package/lib/index.js +0 -92
  59. package/lib/middlewares/access.js +0 -35
  60. package/lib/middlewares/authentication.js +0 -27
  61. package/lib/middlewares/file.js +0 -41
  62. package/lib/middlewares/index.js +0 -27
  63. package/lib/models/Connection.js +0 -50
  64. package/lib/models/index.js +0 -16
  65. package/lib/services/error.js +0 -49
  66. package/lib/services/express.js +0 -140
  67. package/lib/services/file.js +0 -65
  68. package/lib/services/index.js +0 -80
  69. package/lib/services/rabitmq.js +0 -87
  70. package/lib/services/redis.js +0 -60
  71. package/lib/services/sequelize.js +0 -238
  72. package/lib/services/socket.js +0 -56
  73. package/lib/services/task.js +0 -162
  74. package/lib/utils/api.js +0 -50
  75. package/lib/utils/database.js +0 -36
  76. package/lib/utils/date.js +0 -28
  77. package/lib/utils/index.js +0 -60
  78. package/lib/utils/logger.js +0 -55
  79. package/lib/utils/session.js +0 -23
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SessionAPI = void 0;
7
- var _app = require("../app");
8
- var _api = _interopRequireDefault(require("./api"));
9
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
- class SessionAPI extends _api.default {
11
- host = process.env.APP_SESSION_URL;
12
- headers = {
13
- 'X-Exodus-App-Sec': this.getLogicalSecurityId(),
14
- 'X-Exodus-Core-Version': _app.Exodus.getVersion()
15
- };
16
- validateStatus(status) {
17
- return status < 400;
18
- }
19
- async getCertificate() {
20
- return this.request(this.host + '/api/v1/session/certificate', 'get');
21
- }
22
- }
23
- exports.SessionAPI = SessionAPI;