@konplit-services/common 1.0.6 → 1.0.7
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/build/index.d.ts +1 -0
- package/build/index.js +2 -0
- package/build/swagger/config.d.ts +1 -1
- package/build/swagger/config.js +2 -2
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -32,5 +32,7 @@ __exportStar(require("./events"), exports);
|
|
|
32
32
|
__exportStar(require("./Schema/CFLESCHEMA"), exports);
|
|
33
33
|
//Email Service
|
|
34
34
|
__exportStar(require("./services"), exports);
|
|
35
|
+
//Email Service
|
|
36
|
+
__exportStar(require("./log-activities/actions"), exports);
|
|
35
37
|
//Swagger docs
|
|
36
38
|
__exportStar(require("./swagger/config"), exports);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Application } from "express";
|
|
2
|
-
export declare const configureSwagger: (app: Application) => void;
|
|
2
|
+
export declare const configureSwagger: (app: Application, paths: string) => void;
|
package/build/swagger/config.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.configureSwagger = void 0;
|
|
7
7
|
const swagger_jsdoc_1 = __importDefault(require("swagger-jsdoc"));
|
|
8
8
|
const swagger_ui_express_1 = __importDefault(require("swagger-ui-express"));
|
|
9
|
-
const configureSwagger = (app) => {
|
|
9
|
+
const configureSwagger = (app, paths) => {
|
|
10
10
|
const options = {
|
|
11
11
|
definition: {
|
|
12
12
|
openapi: "3.1.0",
|
|
@@ -44,7 +44,7 @@ const configureSwagger = (app) => {
|
|
|
44
44
|
bearerAuth: [],
|
|
45
45
|
},
|
|
46
46
|
],
|
|
47
|
-
apis: [
|
|
47
|
+
apis: [paths],
|
|
48
48
|
};
|
|
49
49
|
const swaggerSpec = (0, swagger_jsdoc_1.default)(options);
|
|
50
50
|
app.use("/api-docs", swagger_ui_express_1.default.serve, swagger_ui_express_1.default.setup(swaggerSpec));
|