exodus-framework 2.0.864 → 2.0.866

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 +1 @@
1
- {"version":3,"file":"access.d.ts","sourceRoot":"","sources":["../../src/middlewares/access.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAM5C,cAAM,gBAAiB,SAAQ,cAAc;IAC3C,WAAW,UAAW,YAAY,EAAE,KAAG,cAAc,CAWnD;IAEF,SAAS,EAAE,cAAc,CA6EvB;CACH;AAED,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"access.d.ts","sourceRoot":"","sources":["../../src/middlewares/access.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAM5C,cAAM,gBAAiB,SAAQ,cAAc;IAC3C,WAAW,UAAW,YAAY,EAAE,KAAG,cAAc,CAWnD;IAEF,SAAS,EAAE,cAAc,CAsFvB;CACH;AAED,eAAe,gBAAgB,CAAC"}
@@ -28,6 +28,14 @@ class AccessMiddleware extends _controller.default {
28
28
  const tenantId = req.header('X-Exodus-Tenant-ID');
29
29
  const applicationId = req.header('X-Exodus-Application-ID');
30
30
  let isApplication = false;
31
+
32
+ //! Negar caso não haja um ou outro;
33
+ if (!account && !applicationId && !tenantId) {
34
+ throw new _app.HttpError({
35
+ message: 'Credênciais de autênticação não informadas',
36
+ statusCode: _http.EHttpResponseCode.informationUnauthorized
37
+ });
38
+ }
31
39
  const requestor = {
32
40
  database: '',
33
41
  id: account?.uuid,
@@ -5,9 +5,9 @@ export declare class Report extends ServiceModel<Report> {
5
5
  category: string;
6
6
  status: 'PENDING' | 'COMPLETED';
7
7
  origin: string;
8
- action: string;
9
- comments: string;
10
- data: CreationOptional<Record<string, any>>;
8
+ description: string;
9
+ file: string;
10
+ total: number;
11
11
  params: CreationOptional<Record<string, any>>;
12
12
  static getConnParams(): TEntityConnParams<Report>;
13
13
  static getEntityParams(): TEntityParams<Report>;
@@ -1 +1 @@
1
- {"version":3,"file":"Report.d.ts","sourceRoot":"","sources":["../../src/models/Report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAa,MAAM,WAAW,CAAC;AACxD,OAAO,YAAY,EAAE,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE7F,qBAAa,MAAO,SAAQ,YAAY,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,GAAG,WAAW,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IAC5C,MAAM,EAAE,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IAEtD,MAAM,CAAC,aAAa,IAAI,iBAAiB,CAAC,MAAM,CAAC;IAiBjD,MAAM,CAAC,eAAe,IAAI,aAAa,CAAC,MAAM,CAAC;CA0ChD"}
1
+ {"version":3,"file":"Report.d.ts","sourceRoot":"","sources":["../../src/models/Report.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAa,MAAM,WAAW,CAAC;AACxD,OAAO,YAAY,EAAE,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE7F,qBAAa,MAAO,SAAQ,YAAY,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,GAAG,WAAW,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IAEtD,MAAM,CAAC,aAAa,IAAI,iBAAiB,CAAC,MAAM,CAAC;IAiBjD,MAAM,CAAC,eAAe,IAAI,aAAa,CAAC,MAAM,CAAC;CAyChD"}
@@ -14,9 +14,9 @@ class Report extends _servicemodel.default {
14
14
  indexes: [{
15
15
  fields: ['category']
16
16
  }, {
17
- fields: ['origin']
17
+ fields: ['description']
18
18
  }, {
19
- fields: ['action']
19
+ fields: ['file']
20
20
  }]
21
21
  };
22
22
  }
@@ -37,17 +37,16 @@ class Report extends _servicemodel.default {
37
37
  type: _sequelize.DataTypes.STRING(100),
38
38
  allowNull: false
39
39
  },
40
- action: {
41
- type: _sequelize.DataTypes.STRING(100),
42
- allowNull: false
40
+ description: {
41
+ type: _sequelize.DataTypes.STRING(255),
42
+ allowNull: true
43
43
  },
44
- comments: {
44
+ file: {
45
45
  type: _sequelize.DataTypes.STRING(255),
46
46
  allowNull: true
47
47
  },
48
- data: {
49
- type: _sequelize.DataTypes.JSON,
50
- defaultValue: {},
48
+ total: {
49
+ type: _sequelize.DataTypes.INTEGER(),
51
50
  allowNull: true
52
51
  },
53
52
  params: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exodus-framework",
3
- "version": "2.0.864",
3
+ "version": "2.0.866",
4
4
  "description": "Exodus Framework",
5
5
  "author": "jhownpaixao",
6
6
  "license": "ISC",