@pxp-nd/core 1.2.72 → 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 -305
  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,19 +1,19 @@
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
- var __importDefault = (this && this.__importDefault) || function (mod) {
13
- return (mod && mod.__esModule) ? mod : { "default": mod };
14
- };
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.PxpSocketServer = void 0;
17
- var pxp_io_server_1 = require("./pxp-io-server");
18
- Object.defineProperty(exports, "PxpSocketServer", { enumerable: true, get: function () { return __importDefault(pxp_io_server_1).default; } });
19
- __exportStar(require("./entities"), 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
+ var __importDefault = (this && this.__importDefault) || function (mod) {
13
+ return (mod && mod.__esModule) ? mod : { "default": mod };
14
+ };
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PxpSocketServer = void 0;
17
+ var pxp_io_server_1 = require("./pxp-io-server");
18
+ Object.defineProperty(exports, "PxpSocketServer", { enumerable: true, get: function () { return __importDefault(pxp_io_server_1).default; } });
19
+ __exportStar(require("./entities"), exports);
@@ -1,6 +1,6 @@
1
- import { Server } from 'socket.io';
2
- export default class PxpIOServer {
3
- io: Server;
4
- constructor(server: any, sockets?: any);
5
- private listenSockets;
6
- }
1
+ import { Server } from 'socket.io';
2
+ export default class PxpIOServer {
3
+ io: Server;
4
+ constructor(server: any, sockets?: any);
5
+ private listenSockets;
6
+ }
@@ -1,50 +1,50 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- const socket_io_1 = require("socket.io");
23
- const mainSockets = __importStar(require("./basic-sockets"));
24
- class PxpIOServer {
25
- constructor(server, sockets) {
26
- this.io = new socket_io_1.Server(server, { cors: {
27
- origin: '*',
28
- } });
29
- this.listenSockets(sockets);
30
- }
31
- listenSockets(sockets = {}) {
32
- console.log('listen connections');
33
- this.io.on('connection', client => {
34
- // console.log('Cliente connected:', client.id);
35
- //connect client
36
- mainSockets.connectClient(client, this.io);
37
- // user configuration
38
- // sockets.userConfig( client, this.io );
39
- // message
40
- // sockets.message( client, this.io );
41
- // disconnect client
42
- mainSockets.disconnect(client, this.io);
43
- Object.keys(sockets).forEach(key => {
44
- // console.log('on socket:', key);
45
- sockets[key](client, this.io);
46
- });
47
- });
48
- }
49
- }
50
- exports.default = PxpIOServer;
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ const socket_io_1 = require("socket.io");
23
+ const mainSockets = __importStar(require("./basic-sockets"));
24
+ class PxpIOServer {
25
+ constructor(server, sockets) {
26
+ this.io = new socket_io_1.Server(server, { cors: {
27
+ origin: '*',
28
+ } });
29
+ this.listenSockets(sockets);
30
+ }
31
+ listenSockets(sockets = {}) {
32
+ console.log('listen connections');
33
+ this.io.on('connection', client => {
34
+ // console.log('Cliente connected:', client.id);
35
+ //connect client
36
+ mainSockets.connectClient(client, this.io);
37
+ // user configuration
38
+ // sockets.userConfig( client, this.io );
39
+ // message
40
+ // sockets.message( client, this.io );
41
+ // disconnect client
42
+ mainSockets.disconnect(client, this.io);
43
+ Object.keys(sockets).forEach(key => {
44
+ // console.log('on socket:', key);
45
+ sockets[key](client, this.io);
46
+ });
47
+ });
48
+ }
49
+ }
50
+ exports.default = PxpIOServer;
@@ -1,16 +1,16 @@
1
- declare const options: {
2
- swaggerDefinition: {
3
- openapi: string;
4
- info: {
5
- title: string;
6
- version: string;
7
- description: string;
8
- };
9
- servers: {
10
- url: string;
11
- description: string;
12
- }[];
13
- };
14
- apis: string[];
15
- };
16
- export default options;
1
+ declare const options: {
2
+ swaggerDefinition: {
3
+ openapi: string;
4
+ info: {
5
+ title: string;
6
+ version: string;
7
+ description: string;
8
+ };
9
+ servers: {
10
+ url: string;
11
+ description: string;
12
+ }[];
13
+ };
14
+ apis: string[];
15
+ };
16
+ export default options;
@@ -1,20 +1,20 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const options = {
4
- "swaggerDefinition": {
5
- "openapi": "3.0.0",
6
- "info": {
7
- "title": "PXP ND API",
8
- "version": "1.1.0",
9
- "description": "This is a REST API application made with Express."
10
- },
11
- "servers": [
12
- {
13
- "url": "http://localhost:" + (process.env.PORT || 3200),
14
- "description": "Api"
15
- }
16
- ]
17
- },
18
- "apis": ["./src/routes/*.ts"]
19
- };
20
- exports.default = options;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const options = {
4
+ "swaggerDefinition": {
5
+ "openapi": "3.0.0",
6
+ "info": {
7
+ "title": "PXP ND API",
8
+ "version": "1.1.0",
9
+ "description": "This is a REST API application made with Express."
10
+ },
11
+ "servers": [
12
+ {
13
+ "url": "http://localhost:" + (process.env.PORT || 3200),
14
+ "description": "Api"
15
+ }
16
+ ]
17
+ },
18
+ "apis": ["./src/routes/*.ts"]
19
+ };
20
+ exports.default = options;
package/package.json CHANGED
@@ -1,65 +1,65 @@
1
- {
2
- "name": "@pxp-nd/core",
3
- "version": "1.2.72",
4
- "description": "Contains main files for pxp-nd",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "prepublish": "tsc",
8
- "scripts": {
9
- "build": "rimraf ./dist && tsc",
10
- "build-dev": "npm run build && npm run dev:publish",
11
- "dev:publish": "yalc publish",
12
- "prod:publish": "npm publish",
13
- "start": "npm run build && node dist/index.js",
14
- "dev": "tsc-watch --target es2017 --outDir ./dist --onSuccess \"node .\"",
15
- "test": "echo \"Error: no test specified\" && exit 1"
16
- },
17
- "keywords": [
18
- "pxp-nd"
19
- ],
20
- "author": "Kplian",
21
- "license": "ISC",
22
- "devDependencies": {
23
- "@types/adm-zip": "^0.4.34",
24
- "@types/chalk": "^2.2.0",
25
- "@types/cors": "^2.8.10",
26
- "@types/crypto-js": "^4.0.1",
27
- "@types/express": "^4.17.11",
28
- "@types/express-fileupload": "^1.1.6",
29
- "@types/express-session": "^1.17.3",
30
- "@types/figlet": "^1.5.1",
31
- "@types/joi": "^17.2.3",
32
- "@types/lodash": "^4.14.170",
33
- "@types/node": "^15.3.1",
34
- "@types/passport": "^1.0.6",
35
- "@types/socket.io": "^3.0.2",
36
- "@types/swagger-jsdoc": "^6.0.1",
37
- "@types/swagger-ui-express": "^4.1.3",
38
- "rimraf": "^3.0.2",
39
- "tsc-watch": "^4.2.9",
40
- "typescript": "^4.2.4"
41
- },
42
- "dependencies": {
43
- "adm-zip": "^0.5.5",
44
- "chalk": "^1.1.3",
45
- "class-validator": "^0.13.1",
46
- "cors": "^2.8.5",
47
- "express": "^4.17.1",
48
- "express-fileupload": "^1.2.1",
49
- "express-session": "^1.17.2",
50
- "figlet": "^1.5.0",
51
- "joi": "^17.4.1",
52
- "jspdf": "^2.3.1",
53
- "jspdf-autotable": "^3.5.14",
54
- "lodash": "^4.17.21",
55
- "moment": "^2.29.1",
56
- "passport": "^0.4.1",
57
- "socket.io": "^4.2.0",
58
- "swagger-jsdoc": "^6.1.0",
59
- "swagger-ui-express": "^4.1.6",
60
- "typeorm": "^0.2.32",
61
- "typeorm-store": "^2.0.0",
62
- "xlsx": "^0.17.0"
63
- },
64
- "peerDependencies": {}
65
- }
1
+ {
2
+ "name": "@pxp-nd/core",
3
+ "version": "1.2.75",
4
+ "description": "Contains main files for pxp-nd",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "prepublish": "tsc",
8
+ "scripts": {
9
+ "build": "rimraf ./dist && tsc",
10
+ "build-dev": "npm run build && npm run dev:publish",
11
+ "dev:publish": "yalc publish",
12
+ "prod:publish": "npm publish",
13
+ "start": "npm run build && node dist/index.js",
14
+ "dev": "tsc-watch --target es2017 --outDir ./dist --onSuccess \"node .\"",
15
+ "test": "echo \"Error: no test specified\" && exit 1"
16
+ },
17
+ "keywords": [
18
+ "pxp-nd"
19
+ ],
20
+ "author": "Kplian",
21
+ "license": "ISC",
22
+ "devDependencies": {
23
+ "@types/adm-zip": "^0.4.34",
24
+ "@types/chalk": "^2.2.0",
25
+ "@types/cors": "^2.8.10",
26
+ "@types/crypto-js": "^4.0.1",
27
+ "@types/express": "^4.17.11",
28
+ "@types/express-fileupload": "^1.1.6",
29
+ "@types/express-session": "^1.17.3",
30
+ "@types/figlet": "^1.5.1",
31
+ "@types/joi": "^17.2.3",
32
+ "@types/lodash": "^4.14.170",
33
+ "@types/node": "^15.3.1",
34
+ "@types/passport": "^1.0.6",
35
+ "@types/socket.io": "^3.0.2",
36
+ "@types/swagger-jsdoc": "^6.0.1",
37
+ "@types/swagger-ui-express": "^4.1.3",
38
+ "rimraf": "^3.0.2",
39
+ "tsc-watch": "^4.2.9",
40
+ "typescript": "^4.2.4"
41
+ },
42
+ "dependencies": {
43
+ "adm-zip": "^0.5.5",
44
+ "chalk": "^1.1.3",
45
+ "class-validator": "^0.13.1",
46
+ "cors": "^2.8.5",
47
+ "express": "^4.17.1",
48
+ "express-fileupload": "^1.2.1",
49
+ "express-session": "^1.17.2",
50
+ "figlet": "^1.5.0",
51
+ "joi": "^17.4.1",
52
+ "jspdf": "^2.3.1",
53
+ "jspdf-autotable": "^3.5.14",
54
+ "lodash": "^4.17.21",
55
+ "moment": "^2.29.1",
56
+ "passport": "^0.4.1",
57
+ "socket.io": "^4.2.0",
58
+ "swagger-jsdoc": "^6.1.0",
59
+ "swagger-ui-express": "^4.1.6",
60
+ "typeorm": "^0.2.32",
61
+ "typeorm-store": "^2.0.0",
62
+ "xlsx": "^0.17.0"
63
+ },
64
+ "peerDependencies": {}
65
+ }
package/yalc.lock CHANGED
@@ -1,10 +1,10 @@
1
- {
2
- "version": "v1",
3
- "packages": {
4
- "@pxp-nd/auth": {
5
- "signature": "c8114cdb0b6ff484731ec780c5ae951e",
6
- "file": true,
7
- "replaced": "^1.0.0"
8
- }
9
- }
1
+ {
2
+ "version": "v1",
3
+ "packages": {
4
+ "@pxp-nd/auth": {
5
+ "signature": "c8114cdb0b6ff484731ec780c5ae951e",
6
+ "file": true,
7
+ "replaced": "^1.0.0"
8
+ }
9
+ }
10
10
  }