exodus-framework 2.0.9982 → 2.0.9984

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.
@@ -1,4 +1,9 @@
1
- import { CreateOptions } from 'sequelize';
2
- import { Log } from '../models';
3
- export type DBLogData = Omit<CreateOptions<Log>, 'happenedAt'>;
1
+ export type DBLogData = {
2
+ category: string;
3
+ origin: string;
4
+ action: string;
5
+ comments?: string;
6
+ data?: Record<string, any>;
7
+ params?: Record<string, any>;
8
+ };
4
9
  //# sourceMappingURL=log.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/contracts/log.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAEhC,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/contracts/log.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC9B,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { DBLogData } from '../contracts/log';
2
- declare class LogService {
2
+ import Service from '../app/classes/service';
3
+ declare class LogService extends Service {
3
4
  register(tenantId: string, data: DBLogData): Promise<boolean>;
4
5
  }
5
6
  export default LogService;
@@ -1 +1 @@
1
- {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/services/log.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAI7C,cAAM,UAAU;IACD,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;CAcxD;AAED,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/services/log.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG7C,OAAO,OAAO,MAAM,wBAAwB,CAAC;AAC7C,cAAM,UAAW,SAAQ,OAAO;IACjB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;CAcxD;AAED,eAAe,UAAU,CAAC"}
@@ -8,8 +8,9 @@ var _dateFns = require("date-fns");
8
8
  var _app = require("../app");
9
9
  var _Log = require("../models/Log");
10
10
  var _database = _interopRequireDefault(require("./database"));
11
+ var _service = _interopRequireDefault(require("../app/classes/service"));
11
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
- class LogService {
13
+ class LogService extends _service.default {
13
14
  async register(tenantId, data) {
14
15
  try {
15
16
  const eLog = await _database.default.getService().getEntity(_Log.Log, tenantId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodus-framework",
3
- "version": "2.0.9982",
3
+ "version": "2.0.9984",
4
4
  "description": "Exodus Framework",
5
5
  "author": "jhownpaixao",
6
6
  "license": "ISC",