@pxp-nd/core 1.2.74 → 1.2.75

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.
Files changed (67) hide show
  1. package/README.md +1 -1
  2. package/dist/PxpApp.d.ts +54 -54
  3. package/dist/PxpApp.js +283 -284
  4. package/dist/ScriptManager.d.ts +1 -1
  5. package/dist/ScriptManager.js +130 -130
  6. package/dist/database/script.d.ts +16 -16
  7. package/dist/database/script.js +143 -143
  8. package/dist/db.datasource.d.ts +2 -2
  9. package/dist/db.datasource.js +86 -86
  10. package/dist/entities/Log.d.ts +32 -32
  11. package/dist/entities/Log.js +95 -95
  12. package/dist/entities/ScriptVersion.d.ts +19 -19
  13. package/dist/entities/ScriptVersion.js +43 -43
  14. package/dist/index.d.ts +11 -11
  15. package/dist/index.js +28 -28
  16. package/dist/interfaces.d.ts +49 -49
  17. package/dist/interfaces.js +3 -3
  18. package/dist/lib/pxp/Controller.d.ts +51 -51
  19. package/dist/lib/pxp/Controller.js +377 -377
  20. package/dist/lib/pxp/ControllerInterface.d.ts +18 -18
  21. package/dist/lib/pxp/ControllerInterface.js +2 -2
  22. package/dist/lib/pxp/Decorators.d.ts +23 -23
  23. package/dist/lib/pxp/Decorators.js +123 -123
  24. package/dist/lib/pxp/ListParamInterface.d.ts +23 -23
  25. package/dist/lib/pxp/ListParamInterface.js +2 -2
  26. package/dist/lib/pxp/PxpError.d.ts +24 -24
  27. package/dist/lib/pxp/PxpError.js +57 -57
  28. package/dist/lib/pxp/RouteDefinition.d.ts +26 -26
  29. package/dist/lib/pxp/RouteDefinition.js +26 -26
  30. package/dist/lib/pxp/index.d.ts +20 -20
  31. package/dist/lib/pxp/index.js +33 -33
  32. package/dist/lib/pxp/loadControllers.d.ts +4 -4
  33. package/dist/lib/pxp/loadControllers.js +89 -89
  34. package/dist/lib/pxp/middlewares/ParseParams.d.ts +4 -4
  35. package/dist/lib/pxp/middlewares/ParseParams.js +71 -71
  36. package/dist/lib/pxp/middlewares/isReportMiddleware.d.ts +2 -2
  37. package/dist/lib/pxp/middlewares/isReportMiddleware.js +13 -13
  38. package/dist/lib/pxp/utils/Security.d.ts +23 -23
  39. package/dist/lib/pxp/utils/Security.js +79 -77
  40. package/dist/lib/pxp/utils/crypto.d.ts +3 -3
  41. package/dist/lib/pxp/utils/crypto.js +15 -15
  42. package/dist/lib/reports/fonts/Roboto-Regular-normal.d.ts +2 -2
  43. package/dist/lib/reports/fonts/Roboto-Regular-normal.js +4 -4
  44. package/dist/lib/reports/generated.d.ts +4 -4
  45. package/dist/lib/reports/generated.js +200 -200
  46. package/dist/lib/reports/helper.d.ts +8 -8
  47. package/dist/lib/reports/helper.js +49 -49
  48. package/dist/lib/reports/pdf.d.ts +3 -3
  49. package/dist/lib/reports/pdf.js +119 -119
  50. package/dist/lib/reports/report-routes.d.ts +3 -3
  51. package/dist/lib/reports/report-routes.js +24 -24
  52. package/dist/lib/reports/xlsx.d.ts +1 -1
  53. package/dist/lib/reports/xlsx.js +65 -65
  54. package/dist/sockets/basic-sockets.d.ts +5 -5
  55. package/dist/sockets/basic-sockets.js +38 -38
  56. package/dist/sockets/entities/UserIo.d.ts +6 -6
  57. package/dist/sockets/entities/UserIo.js +30 -30
  58. package/dist/sockets/entities/index.d.ts +5 -5
  59. package/dist/sockets/entities/index.js +9 -9
  60. package/dist/sockets/index.d.ts +2 -2
  61. package/dist/sockets/index.js +19 -19
  62. package/dist/sockets/pxp-io-server.d.ts +6 -6
  63. package/dist/sockets/pxp-io-server.js +50 -50
  64. package/dist/swaggerOptions.d.ts +16 -16
  65. package/dist/swaggerOptions.js +20 -20
  66. package/package.json +65 -65
  67. package/yalc.lock +9 -9
@@ -1,86 +1,86 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.createConnections = void 0;
7
- const path_1 = __importDefault(require("path"));
8
- const fs_1 = __importDefault(require("fs"));
9
- const config = {
10
- name: 'default',
11
- synchronize: false,
12
- logging: false,
13
- entities: [
14
- 'dist/modules/**/entity/*.js',
15
- 'dist/modules/**/entities/*.js',
16
- 'node_modules/@pxp-nd/core/**/entities/*.js'
17
- // 'node_modules/@pxp-nd/entities/**/entity/*.js'
18
- ],
19
- migrations: ['src/migration/**/*.ts'],
20
- subscribers: [
21
- 'dist/modules/**/subscribers/*.js',
22
- // 'node_modules/@pxp-nd/core/**/subscribers/*.js'
23
- ],
24
- cli: {
25
- entitiesDir: 'src/modules',
26
- migrationsDir: 'src/migration',
27
- subscribersDir: 'src/subscriber'
28
- }
29
- };
30
- const setConfig = (connection) => {
31
- const subscribers = connection.subscribers || [];
32
- if (connection.hasOwnProperty('entities')) {
33
- const entities = [
34
- ...config.entities,
35
- ...Object.keys(connection.entities).map((e) => connection.entities[e]),
36
- ];
37
- return Object.assign(Object.assign(Object.assign({}, config), connection), { entities, subscribers: [...subscribers, ...config.subscribers] });
38
- }
39
- return Object.assign(Object.assign({}, config), connection);
40
- };
41
- const createConnections = (connections) => {
42
- if (Array.isArray(connections)) {
43
- return connections.map(cnn => setConfig(cnn));
44
- }
45
- else {
46
- return setConfig(connections);
47
- }
48
- };
49
- exports.createConnections = createConnections;
50
- const createCommonControllers = (entities) => {
51
- const pathModules = path_1.default.join(process.cwd(), 'dist', 'modules', 'common');
52
- const pathEntities = path_1.default.join(pathModules, 'entity');
53
- const pathControllers = path_1.default.join(pathModules, 'controllers');
54
- const pathCommonEntities = path_1.default.join(process.cwd(), 'node_modules', '@pxp-nd', 'common', 'dist', 'entities');
55
- const pathCommonControllers = path_1.default.join(process.cwd(), 'node_modules', '@pxp-nd', 'common', 'dist', 'controllers');
56
- if (!fs_1.default.existsSync(pathEntities)) {
57
- fs_1.default.mkdirSync(pathEntities, { recursive: true });
58
- }
59
- if (!fs_1.default.existsSync(pathControllers)) {
60
- fs_1.default.mkdirSync(pathControllers, { recursive: true });
61
- }
62
- fs_1.default.readdir(pathCommonEntities, (err, files) => {
63
- if (!err) {
64
- files.forEach(file => {
65
- if (!file.includes('index') && file.includes('.js')) {
66
- fs_1.default.copyFile(path_1.default.join(pathCommonEntities, file), path_1.default.join(pathEntities, file), (err) => {
67
- if (err)
68
- console.log(err);
69
- });
70
- }
71
- });
72
- }
73
- });
74
- fs_1.default.readdir(pathCommonControllers, (err, files) => {
75
- if (!err) {
76
- files.forEach(file => {
77
- if (!file.includes('index') && file.includes('.js')) {
78
- fs_1.default.copyFile(path_1.default.join(pathCommonControllers, file), path_1.default.join(pathControllers, file), (err) => {
79
- if (err)
80
- console.log(err);
81
- });
82
- }
83
- });
84
- }
85
- });
86
- };
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.createConnections = void 0;
7
+ const path_1 = __importDefault(require("path"));
8
+ const fs_1 = __importDefault(require("fs"));
9
+ const config = {
10
+ name: 'default',
11
+ synchronize: false,
12
+ logging: false,
13
+ entities: [
14
+ 'dist/modules/**/entity/*.js',
15
+ 'dist/modules/**/entities/*.js',
16
+ 'node_modules/@pxp-nd/core/**/entities/*.js'
17
+ // 'node_modules/@pxp-nd/entities/**/entity/*.js'
18
+ ],
19
+ migrations: ['src/migration/**/*.ts'],
20
+ subscribers: [
21
+ 'dist/modules/**/subscribers/*.js',
22
+ // 'node_modules/@pxp-nd/core/**/subscribers/*.js'
23
+ ],
24
+ cli: {
25
+ entitiesDir: 'src/modules',
26
+ migrationsDir: 'src/migration',
27
+ subscribersDir: 'src/subscriber'
28
+ }
29
+ };
30
+ const setConfig = (connection) => {
31
+ const subscribers = connection.subscribers || [];
32
+ if (connection.hasOwnProperty('entities')) {
33
+ const entities = [
34
+ ...config.entities,
35
+ ...Object.keys(connection.entities).map((e) => connection.entities[e]),
36
+ ];
37
+ return Object.assign(Object.assign(Object.assign({}, config), connection), { entities, subscribers: [...subscribers, ...config.subscribers] });
38
+ }
39
+ return Object.assign(Object.assign({}, config), connection);
40
+ };
41
+ const createConnections = (connections) => {
42
+ if (Array.isArray(connections)) {
43
+ return connections.map(cnn => setConfig(cnn));
44
+ }
45
+ else {
46
+ return setConfig(connections);
47
+ }
48
+ };
49
+ exports.createConnections = createConnections;
50
+ const createCommonControllers = (entities) => {
51
+ const pathModules = path_1.default.join(process.cwd(), 'dist', 'modules', 'common');
52
+ const pathEntities = path_1.default.join(pathModules, 'entity');
53
+ const pathControllers = path_1.default.join(pathModules, 'controllers');
54
+ const pathCommonEntities = path_1.default.join(process.cwd(), 'node_modules', '@pxp-nd', 'common', 'dist', 'entities');
55
+ const pathCommonControllers = path_1.default.join(process.cwd(), 'node_modules', '@pxp-nd', 'common', 'dist', 'controllers');
56
+ if (!fs_1.default.existsSync(pathEntities)) {
57
+ fs_1.default.mkdirSync(pathEntities, { recursive: true });
58
+ }
59
+ if (!fs_1.default.existsSync(pathControllers)) {
60
+ fs_1.default.mkdirSync(pathControllers, { recursive: true });
61
+ }
62
+ fs_1.default.readdir(pathCommonEntities, (err, files) => {
63
+ if (!err) {
64
+ files.forEach(file => {
65
+ if (!file.includes('index') && file.includes('.js')) {
66
+ fs_1.default.copyFile(path_1.default.join(pathCommonEntities, file), path_1.default.join(pathEntities, file), (err) => {
67
+ if (err)
68
+ console.log(err);
69
+ });
70
+ }
71
+ });
72
+ }
73
+ });
74
+ fs_1.default.readdir(pathCommonControllers, (err, files) => {
75
+ if (!err) {
76
+ files.forEach(file => {
77
+ if (!file.includes('index') && file.includes('.js')) {
78
+ fs_1.default.copyFile(path_1.default.join(pathCommonControllers, file), path_1.default.join(pathControllers, file), (err) => {
79
+ if (err)
80
+ console.log(err);
81
+ });
82
+ }
83
+ });
84
+ }
85
+ });
86
+ };
@@ -1,32 +1,32 @@
1
- /**
2
- * Kplian Ltda 2020
3
- *
4
- * MIT
5
- *
6
- * long description for the file
7
- *
8
- * @summary short description for the file
9
- * @author No author
10
- *
11
- * Created at : 2020-09-17 18:55:38
12
- * Last modified : 2020-09-18 13:48:03
13
- */
14
- import { BaseEntity } from 'typeorm';
15
- export default class Log extends BaseEntity {
16
- logId: number;
17
- username: string;
18
- macaddres: string;
19
- ip: string;
20
- logType: string;
21
- description: string;
22
- procedure: string;
23
- transaction: string;
24
- query: string;
25
- request: string;
26
- response: string;
27
- logDate: Date;
28
- execTime: number;
29
- errorCode: string;
30
- shortRequest: string;
31
- shortResponse: string;
32
- }
1
+ /**
2
+ * Kplian Ltda 2020
3
+ *
4
+ * MIT
5
+ *
6
+ * long description for the file
7
+ *
8
+ * @summary short description for the file
9
+ * @author No author
10
+ *
11
+ * Created at : 2020-09-17 18:55:38
12
+ * Last modified : 2020-09-18 13:48:03
13
+ */
14
+ import { BaseEntity } from 'typeorm';
15
+ export default class Log extends BaseEntity {
16
+ logId: number;
17
+ username: string;
18
+ macaddres: string;
19
+ ip: string;
20
+ logType: string;
21
+ description: string;
22
+ procedure: string;
23
+ transaction: string;
24
+ query: string;
25
+ request: string;
26
+ response: string;
27
+ logDate: Date;
28
+ execTime: number;
29
+ errorCode: string;
30
+ shortRequest: string;
31
+ shortResponse: string;
32
+ }
@@ -1,95 +1,95 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- /**
13
- * Kplian Ltda 2020
14
- *
15
- * MIT
16
- *
17
- * long description for the file
18
- *
19
- * @summary short description for the file
20
- * @author No author
21
- *
22
- * Created at : 2020-09-17 18:55:38
23
- * Last modified : 2020-09-18 13:48:03
24
- */
25
- const typeorm_1 = require("typeorm");
26
- let Log = class Log extends typeorm_1.BaseEntity {
27
- };
28
- __decorate([
29
- typeorm_1.PrimaryGeneratedColumn({ name: 'log_id' }),
30
- __metadata("design:type", Number)
31
- ], Log.prototype, "logId", void 0);
32
- __decorate([
33
- typeorm_1.Column({ name: 'username', type: 'varchar', length: 150, nullable: false }),
34
- __metadata("design:type", String)
35
- ], Log.prototype, "username", void 0);
36
- __decorate([
37
- typeorm_1.Column({ name: 'macaddress', type: 'varchar', length: 150, nullable: true }),
38
- __metadata("design:type", String)
39
- ], Log.prototype, "macaddres", void 0);
40
- __decorate([
41
- typeorm_1.Column({ name: 'ip', type: 'varchar', length: 100, nullable: true }),
42
- __metadata("design:type", String)
43
- ], Log.prototype, "ip", void 0);
44
- __decorate([
45
- typeorm_1.Column({ name: 'log_type', type: 'varchar', length: 50, nullable: false }),
46
- __metadata("design:type", String)
47
- ], Log.prototype, "logType", void 0);
48
- __decorate([
49
- typeorm_1.Column({ name: 'description', type: 'varchar', nullable: true }),
50
- __metadata("design:type", String)
51
- ], Log.prototype, "description", void 0);
52
- __decorate([
53
- typeorm_1.Column({ name: 'procedure', type: 'varchar', length: 250, nullable: true }),
54
- __metadata("design:type", String)
55
- ], Log.prototype, "procedure", void 0);
56
- __decorate([
57
- typeorm_1.Column({ name: 'transaction', type: 'varchar', length: 250, nullable: true }),
58
- __metadata("design:type", String)
59
- ], Log.prototype, "transaction", void 0);
60
- __decorate([
61
- typeorm_1.Column({ name: 'query', type: 'text', nullable: true }),
62
- __metadata("design:type", String)
63
- ], Log.prototype, "query", void 0);
64
- __decorate([
65
- typeorm_1.Column({ name: 'request', type: 'text', nullable: true }),
66
- __metadata("design:type", String)
67
- ], Log.prototype, "request", void 0);
68
- __decorate([
69
- typeorm_1.Column({ name: 'response', type: 'text', nullable: true }),
70
- __metadata("design:type", String)
71
- ], Log.prototype, "response", void 0);
72
- __decorate([
73
- typeorm_1.CreateDateColumn({ name: 'log_date' }),
74
- __metadata("design:type", Date)
75
- ], Log.prototype, "logDate", void 0);
76
- __decorate([
77
- typeorm_1.Column({ name: 'exec_time', nullable: true }),
78
- __metadata("design:type", Number)
79
- ], Log.prototype, "execTime", void 0);
80
- __decorate([
81
- typeorm_1.Column({ name: 'error_code', type: 'varchar', length: 100, nullable: true }),
82
- __metadata("design:type", String)
83
- ], Log.prototype, "errorCode", void 0);
84
- __decorate([
85
- typeorm_1.Column({ name: 'short_request', type: 'varchar', length: 150, nullable: true }),
86
- __metadata("design:type", String)
87
- ], Log.prototype, "shortRequest", void 0);
88
- __decorate([
89
- typeorm_1.Column({ name: 'short_response', type: 'varchar', length: 150, nullable: true }),
90
- __metadata("design:type", String)
91
- ], Log.prototype, "shortResponse", void 0);
92
- Log = __decorate([
93
- typeorm_1.Entity({ name: 'tsec_log' })
94
- ], Log);
95
- exports.default = Log;
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ /**
13
+ * Kplian Ltda 2020
14
+ *
15
+ * MIT
16
+ *
17
+ * long description for the file
18
+ *
19
+ * @summary short description for the file
20
+ * @author No author
21
+ *
22
+ * Created at : 2020-09-17 18:55:38
23
+ * Last modified : 2020-09-18 13:48:03
24
+ */
25
+ const typeorm_1 = require("typeorm");
26
+ let Log = class Log extends typeorm_1.BaseEntity {
27
+ };
28
+ __decorate([
29
+ typeorm_1.PrimaryGeneratedColumn({ name: 'log_id' }),
30
+ __metadata("design:type", Number)
31
+ ], Log.prototype, "logId", void 0);
32
+ __decorate([
33
+ typeorm_1.Column({ name: 'username', type: 'varchar', length: 150, nullable: false }),
34
+ __metadata("design:type", String)
35
+ ], Log.prototype, "username", void 0);
36
+ __decorate([
37
+ typeorm_1.Column({ name: 'macaddress', type: 'varchar', length: 150, nullable: true }),
38
+ __metadata("design:type", String)
39
+ ], Log.prototype, "macaddres", void 0);
40
+ __decorate([
41
+ typeorm_1.Column({ name: 'ip', type: 'varchar', length: 100, nullable: true }),
42
+ __metadata("design:type", String)
43
+ ], Log.prototype, "ip", void 0);
44
+ __decorate([
45
+ typeorm_1.Column({ name: 'log_type', type: 'varchar', length: 50, nullable: false }),
46
+ __metadata("design:type", String)
47
+ ], Log.prototype, "logType", void 0);
48
+ __decorate([
49
+ typeorm_1.Column({ name: 'description', type: 'varchar', nullable: true }),
50
+ __metadata("design:type", String)
51
+ ], Log.prototype, "description", void 0);
52
+ __decorate([
53
+ typeorm_1.Column({ name: 'procedure', type: 'varchar', length: 250, nullable: true }),
54
+ __metadata("design:type", String)
55
+ ], Log.prototype, "procedure", void 0);
56
+ __decorate([
57
+ typeorm_1.Column({ name: 'transaction', type: 'varchar', length: 250, nullable: true }),
58
+ __metadata("design:type", String)
59
+ ], Log.prototype, "transaction", void 0);
60
+ __decorate([
61
+ typeorm_1.Column({ name: 'query', type: 'text', nullable: true }),
62
+ __metadata("design:type", String)
63
+ ], Log.prototype, "query", void 0);
64
+ __decorate([
65
+ typeorm_1.Column({ name: 'request', type: 'text', nullable: true }),
66
+ __metadata("design:type", String)
67
+ ], Log.prototype, "request", void 0);
68
+ __decorate([
69
+ typeorm_1.Column({ name: 'response', type: 'text', nullable: true }),
70
+ __metadata("design:type", String)
71
+ ], Log.prototype, "response", void 0);
72
+ __decorate([
73
+ typeorm_1.CreateDateColumn({ name: 'log_date' }),
74
+ __metadata("design:type", Date)
75
+ ], Log.prototype, "logDate", void 0);
76
+ __decorate([
77
+ typeorm_1.Column({ name: 'exec_time', nullable: true }),
78
+ __metadata("design:type", Number)
79
+ ], Log.prototype, "execTime", void 0);
80
+ __decorate([
81
+ typeorm_1.Column({ name: 'error_code', type: 'varchar', length: 100, nullable: true }),
82
+ __metadata("design:type", String)
83
+ ], Log.prototype, "errorCode", void 0);
84
+ __decorate([
85
+ typeorm_1.Column({ name: 'short_request', type: 'varchar', length: 150, nullable: true }),
86
+ __metadata("design:type", String)
87
+ ], Log.prototype, "shortRequest", void 0);
88
+ __decorate([
89
+ typeorm_1.Column({ name: 'short_response', type: 'varchar', length: 150, nullable: true }),
90
+ __metadata("design:type", String)
91
+ ], Log.prototype, "shortResponse", void 0);
92
+ Log = __decorate([
93
+ typeorm_1.Entity({ name: 'tsec_log' })
94
+ ], Log);
95
+ exports.default = Log;
@@ -1,19 +1,19 @@
1
- /**
2
- * Kplian Ltda 2020
3
- *
4
- * MIT
5
- *
6
- * ScriptVersion
7
- *
8
- * @summary short description for the file
9
- * @author No author
10
- *
11
- * Created at : 2020-09-17 18:55:38
12
- * Last modified : 2020-10-20 17:39:39
13
- */
14
- import { BaseEntity } from 'typeorm';
15
- export default class ScriptVersion extends BaseEntity {
16
- scriptVersionId: number;
17
- execDate: Date;
18
- scriptCode: string;
19
- }
1
+ /**
2
+ * Kplian Ltda 2020
3
+ *
4
+ * MIT
5
+ *
6
+ * ScriptVersion
7
+ *
8
+ * @summary short description for the file
9
+ * @author No author
10
+ *
11
+ * Created at : 2020-09-17 18:55:38
12
+ * Last modified : 2020-10-20 17:39:39
13
+ */
14
+ import { BaseEntity } from 'typeorm';
15
+ export default class ScriptVersion extends BaseEntity {
16
+ scriptVersionId: number;
17
+ execDate: Date;
18
+ scriptCode: string;
19
+ }
@@ -1,43 +1,43 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- /**
13
- * Kplian Ltda 2020
14
- *
15
- * MIT
16
- *
17
- * ScriptVersion
18
- *
19
- * @summary short description for the file
20
- * @author No author
21
- *
22
- * Created at : 2020-09-17 18:55:38
23
- * Last modified : 2020-10-20 17:39:39
24
- */
25
- const typeorm_1 = require("typeorm");
26
- let ScriptVersion = class ScriptVersion extends typeorm_1.BaseEntity {
27
- };
28
- __decorate([
29
- typeorm_1.PrimaryGeneratedColumn({ name: 'script_version_id' }),
30
- __metadata("design:type", Number)
31
- ], ScriptVersion.prototype, "scriptVersionId", void 0);
32
- __decorate([
33
- typeorm_1.CreateDateColumn({ name: 'exec_date' }),
34
- __metadata("design:type", Date)
35
- ], ScriptVersion.prototype, "execDate", void 0);
36
- __decorate([
37
- typeorm_1.Column({ name: 'script_code', type: 'varchar', length: 200, nullable: false, unique: true }),
38
- __metadata("design:type", String)
39
- ], ScriptVersion.prototype, "scriptCode", void 0);
40
- ScriptVersion = __decorate([
41
- typeorm_1.Entity({ name: 'tsec_script_version' })
42
- ], ScriptVersion);
43
- exports.default = ScriptVersion;
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ /**
13
+ * Kplian Ltda 2020
14
+ *
15
+ * MIT
16
+ *
17
+ * ScriptVersion
18
+ *
19
+ * @summary short description for the file
20
+ * @author No author
21
+ *
22
+ * Created at : 2020-09-17 18:55:38
23
+ * Last modified : 2020-10-20 17:39:39
24
+ */
25
+ const typeorm_1 = require("typeorm");
26
+ let ScriptVersion = class ScriptVersion extends typeorm_1.BaseEntity {
27
+ };
28
+ __decorate([
29
+ typeorm_1.PrimaryGeneratedColumn({ name: 'script_version_id' }),
30
+ __metadata("design:type", Number)
31
+ ], ScriptVersion.prototype, "scriptVersionId", void 0);
32
+ __decorate([
33
+ typeorm_1.CreateDateColumn({ name: 'exec_date' }),
34
+ __metadata("design:type", Date)
35
+ ], ScriptVersion.prototype, "execDate", void 0);
36
+ __decorate([
37
+ typeorm_1.Column({ name: 'script_code', type: 'varchar', length: 200, nullable: false, unique: true }),
38
+ __metadata("design:type", String)
39
+ ], ScriptVersion.prototype, "scriptCode", void 0);
40
+ ScriptVersion = __decorate([
41
+ typeorm_1.Entity({ name: 'tsec_script_version' })
42
+ ], ScriptVersion);
43
+ exports.default = ScriptVersion;
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- export { PxpApp } from './PxpApp';
2
- export * from './interfaces';
3
- export * from './sockets';
4
- export { Controller } from './lib/pxp/Controller';
5
- export { createConnections } from './db.datasource';
6
- export * from './lib/pxp/ControllerInterface';
7
- export * from './lib/pxp/Decorators';
8
- export * from './lib/pxp/ListParamInterface';
9
- export * from './lib/pxp/PxpError';
10
- export * from './lib/pxp/RouteDefinition';
11
- export * from './lib/pxp/utils/Security';
1
+ export { PxpApp } from './PxpApp';
2
+ export * from './interfaces';
3
+ export * from './sockets';
4
+ export { Controller } from './lib/pxp/Controller';
5
+ export { createConnections } from './db.datasource';
6
+ export * from './lib/pxp/ControllerInterface';
7
+ export * from './lib/pxp/Decorators';
8
+ export * from './lib/pxp/ListParamInterface';
9
+ export * from './lib/pxp/PxpError';
10
+ export * from './lib/pxp/RouteDefinition';
11
+ export * from './lib/pxp/utils/Security';
package/dist/index.js CHANGED
@@ -1,28 +1,28 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.createConnections = exports.Controller = exports.PxpApp = void 0;
14
- // export { __, PxpError, errorMiddleware } from './lib/pxp/PxpError';
15
- var PxpApp_1 = require("./PxpApp");
16
- Object.defineProperty(exports, "PxpApp", { enumerable: true, get: function () { return PxpApp_1.PxpApp; } });
17
- __exportStar(require("./interfaces"), exports);
18
- __exportStar(require("./sockets"), exports);
19
- var Controller_1 = require("./lib/pxp/Controller");
20
- Object.defineProperty(exports, "Controller", { enumerable: true, get: function () { return Controller_1.Controller; } });
21
- var db_datasource_1 = require("./db.datasource");
22
- Object.defineProperty(exports, "createConnections", { enumerable: true, get: function () { return db_datasource_1.createConnections; } });
23
- __exportStar(require("./lib/pxp/ControllerInterface"), exports);
24
- __exportStar(require("./lib/pxp/Decorators"), exports);
25
- __exportStar(require("./lib/pxp/ListParamInterface"), exports);
26
- __exportStar(require("./lib/pxp/PxpError"), exports);
27
- __exportStar(require("./lib/pxp/RouteDefinition"), exports);
28
- __exportStar(require("./lib/pxp/utils/Security"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.createConnections = exports.Controller = exports.PxpApp = void 0;
14
+ // export { __, PxpError, errorMiddleware } from './lib/pxp/PxpError';
15
+ var PxpApp_1 = require("./PxpApp");
16
+ Object.defineProperty(exports, "PxpApp", { enumerable: true, get: function () { return PxpApp_1.PxpApp; } });
17
+ __exportStar(require("./interfaces"), exports);
18
+ __exportStar(require("./sockets"), exports);
19
+ var Controller_1 = require("./lib/pxp/Controller");
20
+ Object.defineProperty(exports, "Controller", { enumerable: true, get: function () { return Controller_1.Controller; } });
21
+ var db_datasource_1 = require("./db.datasource");
22
+ Object.defineProperty(exports, "createConnections", { enumerable: true, get: function () { return db_datasource_1.createConnections; } });
23
+ __exportStar(require("./lib/pxp/ControllerInterface"), exports);
24
+ __exportStar(require("./lib/pxp/Decorators"), exports);
25
+ __exportStar(require("./lib/pxp/ListParamInterface"), exports);
26
+ __exportStar(require("./lib/pxp/PxpError"), exports);
27
+ __exportStar(require("./lib/pxp/RouteDefinition"), exports);
28
+ __exportStar(require("./lib/pxp/utils/Security"), exports);