@builder6/server 0.13.0 → 0.13.2
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/dist/app.controller.d.ts +0 -1
- package/dist/app.controller.js +0 -12
- package/dist/app.controller.js.map +1 -1
- package/dist/bootstrap.js +27 -3
- package/dist/bootstrap.js.map +1 -1
- package/package.json +14 -14
package/dist/app.controller.d.ts
CHANGED
package/dist/app.controller.js
CHANGED
|
@@ -5,24 +5,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
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
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
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
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
9
|
exports.AppController = void 0;
|
|
13
10
|
const common_1 = require("@nestjs/common");
|
|
14
11
|
let AppController = class AppController {
|
|
15
|
-
async getRoot() {
|
|
16
|
-
return `Welcome to Builder6 API: <a href="/api/v6">/api/v6</a>`;
|
|
17
|
-
}
|
|
18
12
|
};
|
|
19
13
|
exports.AppController = AppController;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, common_1.Get)(''),
|
|
22
|
-
__metadata("design:type", Function),
|
|
23
|
-
__metadata("design:paramtypes", []),
|
|
24
|
-
__metadata("design:returntype", Promise)
|
|
25
|
-
], AppController.prototype, "getRoot", null);
|
|
26
14
|
exports.AppController = AppController = __decorate([
|
|
27
15
|
(0, common_1.Controller)('/')
|
|
28
16
|
], AppController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../src/app.controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../src/app.controller.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAMwB;AAGjB,IAAM,aAAa,GAAnB,MAAM,aAAa;CACzB,CAAA;AADY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,EAAC,GAAG,CAAC;GACH,aAAa,CACzB"}
|
package/dist/bootstrap.js
CHANGED
|
@@ -35,12 +35,29 @@ async function bootstrap() {
|
|
|
35
35
|
}));
|
|
36
36
|
const swaggerConfig = new swagger_1.DocumentBuilder()
|
|
37
37
|
.setTitle('Builder6 API')
|
|
38
|
-
.setDescription('The Builder6
|
|
38
|
+
.setDescription('The Builder6 is a comprehensive low-code platform designed to facilitate a wide range of functionalities and integrations.')
|
|
39
|
+
.addTag('Auth', 'Manage authentication and authorization processes.')
|
|
40
|
+
.addTag('Users', 'Access to user profile and avatar. ')
|
|
41
|
+
.addTag('Records', 'Access and manage records. Admin privileges required.')
|
|
42
|
+
.addTag('Files', 'Upload, download, and manage files.')
|
|
43
|
+
.addTag('Rooms', 'Facilitate real-time collaboration and interaction in virtual rooms.')
|
|
44
|
+
.addTag('Tables', 'Organize and manage structured data with flexible database-like features')
|
|
45
|
+
.addTag('Pages', 'Create and manage micro pages.')
|
|
46
|
+
.addTag('Services', 'Create and manage micro services, Admin privileges required.')
|
|
47
|
+
.addTag('Email', 'Manage email configurations and communications. Admin privileges required.')
|
|
48
|
+
.addTag('Office', 'Access and manage office-related resources. Admin privileges required.')
|
|
49
|
+
.addTag('Microsoft365', 'Integrate and manage Microsoft365 services, Admin privileges required.')
|
|
50
|
+
.addTag('Oidc', 'Implement OpenID Connect for secure user authentication.')
|
|
39
51
|
.setVersion(project.version)
|
|
40
52
|
.addBearerAuth()
|
|
41
53
|
.build();
|
|
42
54
|
const documentFactory = () => swagger_1.SwaggerModule.createDocument(app, swaggerConfig);
|
|
43
|
-
swagger_1.SwaggerModule.setup('api/v6', app, documentFactory
|
|
55
|
+
swagger_1.SwaggerModule.setup('api/v6', app, documentFactory, {
|
|
56
|
+
explorer: true,
|
|
57
|
+
swaggerOptions: {
|
|
58
|
+
docExpansion: 'none',
|
|
59
|
+
},
|
|
60
|
+
});
|
|
44
61
|
app.useStaticAssets((0, path_1.join)(__dirname, '..', 'public'));
|
|
45
62
|
app.setViewEngine('hbs');
|
|
46
63
|
app.use(cookieParser());
|
|
@@ -49,7 +66,14 @@ async function bootstrap() {
|
|
|
49
66
|
app.use(compression());
|
|
50
67
|
if (process.env.B6_PROXY_TARGET) {
|
|
51
68
|
const server = app.getHttpAdapter().getInstance();
|
|
52
|
-
server.use((0, http_proxy_middleware_1.createProxyMiddleware)({
|
|
69
|
+
server.use('/', (0, http_proxy_middleware_1.createProxyMiddleware)({
|
|
70
|
+
pathFilter: (path) => {
|
|
71
|
+
return (!path.match('^/api/v6') &&
|
|
72
|
+
!path.match('^/b6/') &&
|
|
73
|
+
!path.match('^/automation') &&
|
|
74
|
+
!path.match('^/v7') &&
|
|
75
|
+
!path.match('^/v2/c/'));
|
|
76
|
+
},
|
|
53
77
|
target: process.env.B6_PROXY_TARGET,
|
|
54
78
|
changeOrigin: true,
|
|
55
79
|
toProxy: true,
|
package/dist/bootstrap.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../src/bootstrap.ts"],"names":[],"mappings":";;AAwBA,
|
|
1
|
+
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../src/bootstrap.ts"],"names":[],"mappings":";;AAwBA,8BAsHC;AA9ID,uCAA2C;AAC3C,6CAAyC;AACzC,+BAA4B;AAE5B,6CAAiE;AACjE,8CAA8C;AAC9C,2CAA2C;AAC3C,qCAA2C;AAC3C,qDAAgD;AAChD,6CAAqC;AAErC,2CAA2C;AAC3C,iEAO+B;AAE/B,2CAA2C;AAC3C,2EAAsE;AAE/D,KAAK,UAAU,SAAS;IAC7B,MAAM,GAAG,GAAG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AC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC;oBAC3B,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC;oBACnB,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CACvB,CAAC;YACJ,CAAC;YACD,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe;YACnC,YAAY,EAAE,IAAI;YAClB,OAAO,EAAE,IAAI;YACb,EAAE,EAAE,IAAI;YACR,EAAE,EAAE;gBACF,QAAQ,EAAE,sCAAc;aACzB;YACD,eAAe,EAAE,IAAI;YACrB,YAAY,EAAE,IAAI;YAClB,MAAM,EAAE,OAAO;YACf,OAAO,EAAE;gBACP,8CAAsB;gBACtB,oCAAY;gBACZ,2CAAmB;gBACnB,yCAAiB;aAClB;SACF,CAAC,CACH,CAAC;IACJ,CAAC;IAED,MAAM,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,IAAI,CAAC,CAAC;AAChD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builder6/server",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "AGPL-3.0-only",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@builder6/cli": "0.13.
|
|
30
|
-
"@builder6/core": "0.13.
|
|
31
|
-
"@builder6/email": "0.13.
|
|
32
|
-
"@builder6/files": "0.13.
|
|
33
|
-
"@builder6/moleculer": "0.13.
|
|
34
|
-
"@builder6/pages": "0.13.
|
|
35
|
-
"@builder6/query-mongodb": "0.13.
|
|
36
|
-
"@builder6/rooms": "0.13.
|
|
37
|
-
"@builder6/services": "0.13.
|
|
38
|
-
"@builder6/sharepoint": "0.13.
|
|
39
|
-
"@builder6/steedos": "0.13.
|
|
40
|
-
"@builder6/tables": "0.13.
|
|
29
|
+
"@builder6/cli": "0.13.2",
|
|
30
|
+
"@builder6/core": "0.13.2",
|
|
31
|
+
"@builder6/email": "0.13.2",
|
|
32
|
+
"@builder6/files": "0.13.2",
|
|
33
|
+
"@builder6/moleculer": "0.13.2",
|
|
34
|
+
"@builder6/pages": "0.13.2",
|
|
35
|
+
"@builder6/query-mongodb": "0.13.2",
|
|
36
|
+
"@builder6/rooms": "0.13.2",
|
|
37
|
+
"@builder6/services": "0.13.2",
|
|
38
|
+
"@builder6/sharepoint": "0.13.2",
|
|
39
|
+
"@builder6/steedos": "0.13.2",
|
|
40
|
+
"@builder6/tables": "0.13.2",
|
|
41
41
|
"@nestjs/common": "^10.0.0",
|
|
42
42
|
"@nestjs/config": "^3.3.0",
|
|
43
43
|
"@nestjs/core": "^9.0.0",
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
"publishConfig": {
|
|
125
125
|
"access": "public"
|
|
126
126
|
},
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "51f569ac25c649ca961a859581d2bf1b23ffa8f3"
|
|
128
128
|
}
|