exodus-framework 2.0.865 → 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,
|
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,
|
package/lib/models/Report.d.ts
CHANGED
@@ -7,6 +7,7 @@ export declare class Report extends ServiceModel<Report> {
|
|
7
7
|
origin: string;
|
8
8
|
description: string;
|
9
9
|
file: string;
|
10
|
+
total: number;
|
10
11
|
params: CreationOptional<Record<string, any>>;
|
11
12
|
static getConnParams(): TEntityConnParams<Report>;
|
12
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,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,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;
|
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"}
|
package/lib/models/Report.js
CHANGED
@@ -45,6 +45,10 @@ class Report extends _servicemodel.default {
|
|
45
45
|
type: _sequelize.DataTypes.STRING(255),
|
46
46
|
allowNull: true
|
47
47
|
},
|
48
|
+
total: {
|
49
|
+
type: _sequelize.DataTypes.INTEGER(),
|
50
|
+
allowNull: true
|
51
|
+
},
|
48
52
|
params: {
|
49
53
|
type: _sequelize.DataTypes.JSON,
|
50
54
|
defaultValue: {},
|