@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.
- package/README.md +1 -1
- package/dist/PxpApp.d.ts +54 -54
- package/dist/PxpApp.js +283 -305
- package/dist/ScriptManager.d.ts +1 -1
- package/dist/ScriptManager.js +130 -130
- package/dist/database/script.d.ts +16 -16
- package/dist/database/script.js +143 -143
- package/dist/db.datasource.d.ts +2 -2
- package/dist/db.datasource.js +86 -86
- package/dist/entities/Log.d.ts +32 -32
- package/dist/entities/Log.js +95 -95
- package/dist/entities/ScriptVersion.d.ts +19 -19
- package/dist/entities/ScriptVersion.js +43 -43
- package/dist/index.d.ts +11 -11
- package/dist/index.js +28 -28
- package/dist/interfaces.d.ts +49 -49
- package/dist/interfaces.js +3 -3
- package/dist/lib/pxp/Controller.d.ts +51 -51
- package/dist/lib/pxp/Controller.js +377 -377
- package/dist/lib/pxp/ControllerInterface.d.ts +18 -18
- package/dist/lib/pxp/ControllerInterface.js +2 -2
- package/dist/lib/pxp/Decorators.d.ts +23 -23
- package/dist/lib/pxp/Decorators.js +123 -123
- package/dist/lib/pxp/ListParamInterface.d.ts +23 -23
- package/dist/lib/pxp/ListParamInterface.js +2 -2
- package/dist/lib/pxp/PxpError.d.ts +24 -24
- package/dist/lib/pxp/PxpError.js +57 -57
- package/dist/lib/pxp/RouteDefinition.d.ts +26 -26
- package/dist/lib/pxp/RouteDefinition.js +26 -26
- package/dist/lib/pxp/index.d.ts +20 -20
- package/dist/lib/pxp/index.js +33 -33
- package/dist/lib/pxp/loadControllers.d.ts +4 -4
- package/dist/lib/pxp/loadControllers.js +89 -89
- package/dist/lib/pxp/middlewares/ParseParams.d.ts +4 -4
- package/dist/lib/pxp/middlewares/ParseParams.js +71 -71
- package/dist/lib/pxp/middlewares/isReportMiddleware.d.ts +2 -2
- package/dist/lib/pxp/middlewares/isReportMiddleware.js +13 -13
- package/dist/lib/pxp/utils/Security.d.ts +23 -23
- package/dist/lib/pxp/utils/Security.js +79 -77
- package/dist/lib/pxp/utils/crypto.d.ts +3 -3
- package/dist/lib/pxp/utils/crypto.js +15 -15
- package/dist/lib/reports/fonts/Roboto-Regular-normal.d.ts +2 -2
- package/dist/lib/reports/fonts/Roboto-Regular-normal.js +4 -4
- package/dist/lib/reports/generated.d.ts +4 -4
- package/dist/lib/reports/generated.js +200 -200
- package/dist/lib/reports/helper.d.ts +8 -8
- package/dist/lib/reports/helper.js +49 -49
- package/dist/lib/reports/pdf.d.ts +3 -3
- package/dist/lib/reports/pdf.js +119 -119
- package/dist/lib/reports/report-routes.d.ts +3 -3
- package/dist/lib/reports/report-routes.js +24 -24
- package/dist/lib/reports/xlsx.d.ts +1 -1
- package/dist/lib/reports/xlsx.js +65 -65
- package/dist/sockets/basic-sockets.d.ts +5 -5
- package/dist/sockets/basic-sockets.js +38 -38
- package/dist/sockets/entities/UserIo.d.ts +6 -6
- package/dist/sockets/entities/UserIo.js +30 -30
- package/dist/sockets/entities/index.d.ts +5 -5
- package/dist/sockets/entities/index.js +9 -9
- package/dist/sockets/index.d.ts +2 -2
- package/dist/sockets/index.js +19 -19
- package/dist/sockets/pxp-io-server.d.ts +6 -6
- package/dist/sockets/pxp-io-server.js +50 -50
- package/dist/swaggerOptions.d.ts +16 -16
- package/dist/swaggerOptions.js +20 -20
- package/package.json +65 -65
- package/yalc.lock +9 -9
package/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# PXP-ND core
|
|
1
|
+
# PXP-ND core
|
|
2
2
|
- Core module for pxp-nd
|
package/dist/PxpApp.d.ts
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Kplian Ltda 2020
|
|
3
|
-
*
|
|
4
|
-
* MIT
|
|
5
|
-
*
|
|
6
|
-
* Main pxp-nd file.
|
|
7
|
-
*
|
|
8
|
-
* @summary Handles all requests for pxp-ui or pxp-nd.
|
|
9
|
-
* @author Jaime Rivera
|
|
10
|
-
*
|
|
11
|
-
* Created at : 2020-06-13 18:09:48
|
|
12
|
-
* Last modified : 2020-09-20 18:24:45
|
|
13
|
-
*/
|
|
14
|
-
import 'reflect-metadata';
|
|
15
|
-
import express from 'express';
|
|
16
|
-
import socketIO from 'socket.io';
|
|
17
|
-
import { ControllerInterface as Controller } from './lib/pxp';
|
|
18
|
-
import { IConfigPxpApp } from './interfaces';
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* */
|
|
22
|
-
declare class PxpApp {
|
|
23
|
-
app: express.Application;
|
|
24
|
-
controllers: Controller[];
|
|
25
|
-
private configAuth;
|
|
26
|
-
Report: any;
|
|
27
|
-
ReportGroup: any;
|
|
28
|
-
private _httpServer;
|
|
29
|
-
io: socketIO.Server;
|
|
30
|
-
private static _instance;
|
|
31
|
-
sockets: any;
|
|
32
|
-
config: IConfigPxpApp;
|
|
33
|
-
constructor(config: IConfigPxpApp);
|
|
34
|
-
static get instance(): PxpApp;
|
|
35
|
-
set ConfigAuth(authOptions: any);
|
|
36
|
-
private initializeSwagger;
|
|
37
|
-
loadControllers(): Promise<void>;
|
|
38
|
-
private loadIOserver;
|
|
39
|
-
listen(): void;
|
|
40
|
-
getServer(): express.Application;
|
|
41
|
-
private getDurationInMilliseconds;
|
|
42
|
-
initializeMiddlewares(): void;
|
|
43
|
-
initializeAuthentication(configAuth: any): Promise<void>;
|
|
44
|
-
initializeErrorHandling(): void;
|
|
45
|
-
private initializePassport;
|
|
46
|
-
private configCors;
|
|
47
|
-
private initializeSession;
|
|
48
|
-
private initializeRoutes;
|
|
49
|
-
private showRoutes;
|
|
50
|
-
connectDatabase(): Promise<void>;
|
|
51
|
-
run(): Promise<void>;
|
|
52
|
-
private folderModulesCreate;
|
|
53
|
-
}
|
|
54
|
-
export { PxpApp };
|
|
1
|
+
/**
|
|
2
|
+
* Kplian Ltda 2020
|
|
3
|
+
*
|
|
4
|
+
* MIT
|
|
5
|
+
*
|
|
6
|
+
* Main pxp-nd file.
|
|
7
|
+
*
|
|
8
|
+
* @summary Handles all requests for pxp-ui or pxp-nd.
|
|
9
|
+
* @author Jaime Rivera
|
|
10
|
+
*
|
|
11
|
+
* Created at : 2020-06-13 18:09:48
|
|
12
|
+
* Last modified : 2020-09-20 18:24:45
|
|
13
|
+
*/
|
|
14
|
+
import 'reflect-metadata';
|
|
15
|
+
import express from 'express';
|
|
16
|
+
import socketIO from 'socket.io';
|
|
17
|
+
import { ControllerInterface as Controller } from './lib/pxp';
|
|
18
|
+
import { IConfigPxpApp } from './interfaces';
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* */
|
|
22
|
+
declare class PxpApp {
|
|
23
|
+
app: express.Application;
|
|
24
|
+
controllers: Controller[];
|
|
25
|
+
private configAuth;
|
|
26
|
+
Report: any;
|
|
27
|
+
ReportGroup: any;
|
|
28
|
+
private _httpServer;
|
|
29
|
+
io: socketIO.Server;
|
|
30
|
+
private static _instance;
|
|
31
|
+
sockets: any;
|
|
32
|
+
config: IConfigPxpApp;
|
|
33
|
+
constructor(config: IConfigPxpApp);
|
|
34
|
+
static get instance(): PxpApp;
|
|
35
|
+
set ConfigAuth(authOptions: any);
|
|
36
|
+
private initializeSwagger;
|
|
37
|
+
loadControllers(): Promise<void>;
|
|
38
|
+
private loadIOserver;
|
|
39
|
+
listen(): void;
|
|
40
|
+
getServer(): express.Application;
|
|
41
|
+
private getDurationInMilliseconds;
|
|
42
|
+
initializeMiddlewares(): void;
|
|
43
|
+
initializeAuthentication(configAuth: any): Promise<void>;
|
|
44
|
+
initializeErrorHandling(): void;
|
|
45
|
+
private initializePassport;
|
|
46
|
+
private configCors;
|
|
47
|
+
private initializeSession;
|
|
48
|
+
private initializeRoutes;
|
|
49
|
+
private showRoutes;
|
|
50
|
+
connectDatabase(): Promise<void>;
|
|
51
|
+
run(): Promise<void>;
|
|
52
|
+
private folderModulesCreate;
|
|
53
|
+
}
|
|
54
|
+
export { PxpApp };
|