exodus-framework 2.0.861 → 2.0.862
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.
- package/lib/models/Report.d.ts +15 -0
- package/lib/models/Report.d.ts.map +1 -0
- package/lib/models/Report.js +66 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +2 -1
- package/package.json +1 -1
@@ -0,0 +1,15 @@
|
|
1
|
+
import { CreationOptional } from 'sequelize';
|
2
|
+
import ServiceModel, { TEntityConnParams, TEntityParams } from '../app/classes/servicemodel';
|
3
|
+
export declare class Report extends ServiceModel<Report> {
|
4
|
+
uuid: CreationOptional<string>;
|
5
|
+
category: string;
|
6
|
+
status: 'PENDING' | 'COMPLETED';
|
7
|
+
origin: string;
|
8
|
+
action: string;
|
9
|
+
comments: string;
|
10
|
+
data: CreationOptional<Record<string, any>>;
|
11
|
+
params: CreationOptional<Record<string, any>>;
|
12
|
+
static getConnParams(): TEntityConnParams<Report>;
|
13
|
+
static getEntityParams(): TEntityParams<Report>;
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=Report.d.ts.map
|
@@ -0,0 +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"}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.Report = void 0;
|
7
|
+
var _sequelize = require("sequelize");
|
8
|
+
var _servicemodel = _interopRequireDefault(require("../app/classes/servicemodel"));
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
10
|
+
class Report extends _servicemodel.default {
|
11
|
+
static getConnParams() {
|
12
|
+
return {
|
13
|
+
tableName: 'reports',
|
14
|
+
indexes: [{
|
15
|
+
fields: ['category']
|
16
|
+
}, {
|
17
|
+
fields: ['origin']
|
18
|
+
}, {
|
19
|
+
fields: ['action']
|
20
|
+
}]
|
21
|
+
};
|
22
|
+
}
|
23
|
+
static getEntityParams() {
|
24
|
+
return {
|
25
|
+
uuid: {
|
26
|
+
type: _sequelize.DataTypes.UUID,
|
27
|
+
defaultValue: _sequelize.DataTypes.UUIDV4,
|
28
|
+
primaryKey: true,
|
29
|
+
allowNull: false,
|
30
|
+
autoIncrement: false
|
31
|
+
},
|
32
|
+
category: {
|
33
|
+
type: _sequelize.DataTypes.STRING(100),
|
34
|
+
allowNull: false
|
35
|
+
},
|
36
|
+
origin: {
|
37
|
+
type: _sequelize.DataTypes.STRING(100),
|
38
|
+
allowNull: false
|
39
|
+
},
|
40
|
+
action: {
|
41
|
+
type: _sequelize.DataTypes.STRING(100),
|
42
|
+
allowNull: false
|
43
|
+
},
|
44
|
+
comments: {
|
45
|
+
type: _sequelize.DataTypes.STRING(255),
|
46
|
+
allowNull: true
|
47
|
+
},
|
48
|
+
data: {
|
49
|
+
type: _sequelize.DataTypes.JSON,
|
50
|
+
defaultValue: {},
|
51
|
+
allowNull: true
|
52
|
+
},
|
53
|
+
params: {
|
54
|
+
type: _sequelize.DataTypes.JSON,
|
55
|
+
defaultValue: {},
|
56
|
+
allowNull: true
|
57
|
+
},
|
58
|
+
status: {
|
59
|
+
type: _sequelize.DataTypes.ENUM('PENDING', 'COMPLETED'),
|
60
|
+
allowNull: false,
|
61
|
+
defaultValue: 'PENDING'
|
62
|
+
}
|
63
|
+
};
|
64
|
+
}
|
65
|
+
}
|
66
|
+
exports.Report = Report;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAKlD,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AAEzB,eAAO,MAAM,YAAY,EAAE,kBAAkB,CAAC,KAAK,CAAC,EAA0B,CAAC"}
|
package/lib/models/index.js
CHANGED
@@ -31,6 +31,7 @@ Object.keys(_System).forEach(function (key) {
|
|
31
31
|
}
|
32
32
|
});
|
33
33
|
});
|
34
|
+
var _Report = require("./Report");
|
34
35
|
var _Application = require("./Application");
|
35
36
|
Object.keys(_Application).forEach(function (key) {
|
36
37
|
if (key === "default" || key === "__esModule") return;
|
@@ -67,4 +68,4 @@ Object.keys(_EnvConnection).forEach(function (key) {
|
|
67
68
|
}
|
68
69
|
});
|
69
70
|
});
|
70
|
-
const NativeModels = exports.NativeModels = [_Log.Log, _System.System];
|
71
|
+
const NativeModels = exports.NativeModels = [_Log.Log, _System.System, _Report.Report];
|