exodus-framework 2.0.57 → 2.0.59

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.
@@ -3,6 +3,7 @@ export declare enum EMessagingQueue {
3
3
  test = "exodus.queue.test",
4
4
  accountCreated = "exodus.account.created",
5
5
  environmentCreated = "exodus.environment.created",
6
+ environmentDeleted = "exodus.environment.deleted",
6
7
  environmentUpdatedToken = "exodus.environment.updated.token"
7
8
  }
8
9
  export type TMessageQueueDataMap = {
@@ -16,6 +17,10 @@ export type TMessageQueueDataMap = {
16
17
  oldToken: string;
17
18
  newToken: string;
18
19
  };
20
+ [EMessagingQueue.environmentDeleted]: {
21
+ uuid: string;
22
+ token: string;
23
+ };
19
24
  };
20
25
  export type TMessagingQueueHandler<K extends keyof TMessageQueueDataMap = any> = (data: TMessageQueueDataMap[K], ack: () => void) => void;
21
26
  export type TMessagingQueueEventList = Partial<Record<keyof TMessageQueueDataMap, TMessagingQueueHandler>>;
@@ -1 +1 @@
1
- {"version":3,"file":"messaging.d.ts","sourceRoot":"","sources":["../../src/contracts/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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,MAAM,IAAI,KACZ,IAAI,CAAC;AAEV,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC5C,MAAM,CAAC,MAAM,oBAAoB,EAAE,sBAAsB,CAAC,CAC3D,CAAC"}
@@ -8,6 +8,7 @@ let EMessagingQueue = exports.EMessagingQueue = /*#__PURE__*/function (EMessagin
8
8
  EMessagingQueue["test"] = "exodus.queue.test";
9
9
  EMessagingQueue["accountCreated"] = "exodus.account.created";
10
10
  EMessagingQueue["environmentCreated"] = "exodus.environment.created";
11
+ EMessagingQueue["environmentDeleted"] = "exodus.environment.deleted";
11
12
  EMessagingQueue["environmentUpdatedToken"] = "exodus.environment.updated.token";
12
13
  return EMessagingQueue;
13
14
  }({}); // Mapeamento de tópicos para tipos
@@ -10,7 +10,6 @@ var _cors = _interopRequireDefault(require("cors"));
10
10
  var _express = _interopRequireDefault(require("express"));
11
11
  require("express-async-errors");
12
12
  var http = _interopRequireWildcard(require("http"));
13
- var _path = _interopRequireDefault(require("path"));
14
13
  var _pinoHttp = _interopRequireDefault(require("pino-http"));
15
14
  var _http2 = require("../contracts/http");
16
15
  var _error = require("./error");
@@ -29,7 +28,7 @@ class ExpressService extends _service.default {
29
28
  logger: (0, _logger.default)()
30
29
  });
31
30
  this.server = http.createServer(expss);
32
- expss.use('/public', _express.default.static(_path.default.join(__dirname, '../../public')));
31
+ expss.use('/public', _express.default.static(_app.Core.settings.getHttp().publicPath));
33
32
  expss.use(pino);
34
33
  expss.use(this.responseTypeMiddleware.bind(this));
35
34
  expss.use(_express.default.json());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodus-framework",
3
- "version": "2.0.57",
3
+ "version": "2.0.59",
4
4
  "description": "Exodus Framework",
5
5
  "author": "jhownpaixao",
6
6
  "license": "ISC",