@lenne.tech/nest-server 8.6.12 → 8.6.13
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/core/common/types/maybe-promise.type.d.ts +1 -0
- package/dist/core/common/types/maybe-promise.type.js +3 -0
- package/dist/core/common/types/maybe-promise.type.js.map +1 -0
- package/dist/core/modules/file/{file-info.output.d.ts → core-file-info.model.d.ts} +4 -3
- package/dist/core/modules/file/{file-info.output.js → core-file-info.model.js} +35 -20
- package/dist/core/modules/file/core-file-info.model.js.map +1 -0
- package/dist/core/modules/file/core-file.controller.d.ts +7 -0
- package/dist/core/modules/file/core-file.controller.js +52 -0
- package/dist/core/modules/file/core-file.controller.js.map +1 -0
- package/dist/core/modules/file/core-file.resolver.d.ts +10 -0
- package/dist/core/modules/file/core-file.resolver.js +70 -0
- package/dist/core/modules/file/core-file.resolver.js.map +1 -0
- package/dist/core/modules/file/core-file.service.d.ts +20 -15
- package/dist/core/modules/file/core-file.service.js +59 -22
- package/dist/core/modules/file/core-file.service.js.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/server/modules/file/file-info.model.d.ts +26 -0
- package/dist/server/modules/file/file-info.model.js +21 -0
- package/dist/server/modules/file/file-info.model.js.map +1 -0
- package/dist/server/modules/file/file.controller.d.ts +2 -3
- package/dist/server/modules/file/file.controller.js +4 -26
- package/dist/server/modules/file/file.controller.js.map +1 -1
- package/dist/server/modules/file/file.module.d.ts +2 -0
- package/dist/server/modules/file/file.module.js +27 -0
- package/dist/server/modules/file/file.module.js.map +1 -0
- package/dist/server/modules/file/file.resolver.d.ts +3 -4
- package/dist/server/modules/file/file.resolver.js +4 -5
- package/dist/server/modules/file/file.resolver.js.map +1 -1
- package/dist/server/modules/file/file.service.js +1 -1
- package/dist/server/modules/file/file.service.js.map +1 -1
- package/dist/server/server.module.js +4 -6
- package/dist/server/server.module.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/core/common/types/maybe-promise.type.ts +4 -0
- package/src/core/modules/file/core-file-info.model.ts +40 -0
- package/src/core/modules/file/core-file.controller.ts +34 -0
- package/src/core/modules/file/core-file.resolver.ts +56 -0
- package/src/core/modules/file/core-file.service.ts +81 -27
- package/src/index.ts +4 -1
- package/src/server/modules/file/file-info.model.ts +15 -0
- package/src/server/modules/file/file.controller.ts +7 -36
- package/src/server/modules/file/file.module.ts +17 -0
- package/src/server/modules/file/file.resolver.ts +1 -4
- package/src/server/modules/file/file.service.ts +4 -1
- package/src/server/server.module.ts +6 -8
- package/dist/core/modules/file/file-info.output.js.map +0 -1
- package/src/core/modules/file/file-info.output.ts +0 -26
|
@@ -17,32 +17,19 @@ const common_1 = require("@nestjs/common");
|
|
|
17
17
|
const platform_express_1 = require("@nestjs/platform-express");
|
|
18
18
|
const multer_1 = require("multer");
|
|
19
19
|
const config_env_1 = require("../../../config.env");
|
|
20
|
-
const rest_user_decorator_1 = require("../../../core/common/decorators/rest-user.decorator");
|
|
21
20
|
const roles_decorator_1 = require("../../../core/common/decorators/roles.decorator");
|
|
22
21
|
const role_enum_1 = require("../../../core/common/enums/role.enum");
|
|
23
22
|
const file_helper_1 = require("../../../core/common/helpers/file.helper");
|
|
24
|
-
const
|
|
23
|
+
const core_file_controller_1 = require("../../../core/modules/file/core-file.controller");
|
|
25
24
|
const file_service_1 = require("./file.service");
|
|
26
|
-
let FileController = class FileController {
|
|
25
|
+
let FileController = class FileController extends core_file_controller_1.CoreFileController {
|
|
27
26
|
constructor(fileService) {
|
|
27
|
+
super(fileService);
|
|
28
28
|
this.fileService = fileService;
|
|
29
29
|
}
|
|
30
30
|
uploadFiles(files, fields) {
|
|
31
31
|
console.log('Saved file info', JSON.stringify({ files, fields }, null, 2));
|
|
32
32
|
}
|
|
33
|
-
async getFile(filename, res, user) {
|
|
34
|
-
if (!filename) {
|
|
35
|
-
throw new common_1.BadRequestException('Missing filename for download');
|
|
36
|
-
}
|
|
37
|
-
const file = await this.fileService.getFileInfoByName(filename);
|
|
38
|
-
if (!file) {
|
|
39
|
-
throw new common_1.NotFoundException('File not found');
|
|
40
|
-
}
|
|
41
|
-
const filestream = await this.fileService.getFileStream(file.id);
|
|
42
|
-
res.header('Content-Type', file.contentType);
|
|
43
|
-
res.header('Content-Disposition', 'attachment; filename=' + file.filename);
|
|
44
|
-
return filestream.pipe(res);
|
|
45
|
-
}
|
|
46
33
|
};
|
|
47
34
|
__decorate([
|
|
48
35
|
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.ADMIN),
|
|
@@ -59,17 +46,8 @@ __decorate([
|
|
|
59
46
|
__metadata("design:paramtypes", [Object, Object]),
|
|
60
47
|
__metadata("design:returntype", void 0)
|
|
61
48
|
], FileController.prototype, "uploadFiles", null);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.ADMIN),
|
|
64
|
-
(0, common_1.Get)(':filename'),
|
|
65
|
-
__param(0, (0, common_1.Param)('filename')),
|
|
66
|
-
__param(1, (0, common_1.Res)()),
|
|
67
|
-
__param(2, (0, rest_user_decorator_1.RESTUser)()),
|
|
68
|
-
__metadata("design:type", Function),
|
|
69
|
-
__metadata("design:paramtypes", [String, Object, user_model_1.User]),
|
|
70
|
-
__metadata("design:returntype", Promise)
|
|
71
|
-
], FileController.prototype, "getFile", null);
|
|
72
49
|
FileController = __decorate([
|
|
50
|
+
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.S_USER),
|
|
73
51
|
(0, common_1.Controller)('files'),
|
|
74
52
|
__metadata("design:paramtypes", [file_service_1.FileService])
|
|
75
53
|
], FileController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.controller.js","sourceRoot":"","sources":["../../../../src/server/modules/file/file.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"file.controller.js","sourceRoot":"","sources":["../../../../src/server/modules/file/file.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwF;AACxF,+DAA4D;AAC5D,mCAAqC;AACrC,oDAA4C;AAC5C,qFAAwE;AACxE,oEAAgE;AAChE,0EAAgF;AAChF,0FAAqF;AACrF,iDAA6C;AAO7C,IAAa,cAAc,GAA3B,MAAa,cAAe,SAAQ,yCAAkB;IAIpD,YAAsB,WAAwB;QAC5C,KAAK,CAAC,WAAW,CAAC,CAAC;QADC,gBAAW,GAAX,WAAW,CAAa;IAE9C,CAAC;IAsBD,WAAW,CAAkB,KAAK,EAAU,MAAW;QACrD,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAC7E,CAAC;CACF,CAAA;AAHC;IAjBC,IAAA,uBAAK,EAAC,oBAAQ,CAAC,KAAK,CAAC;IACrB,IAAA,aAAI,EAAC,QAAQ,CAAC;IACd,IAAA,wBAAe,EACd,IAAA,mCAAgB,EAAC,OAAO,EAAE,IAAI,EAAE;QAG9B,OAAO,EAAE,IAAA,oBAAW,EAAC;YAInB,WAAW,EAAE,oBAAS,CAAC,YAAY,CAAC,IAAI;YAGxC,QAAQ,EAAE,IAAA,kCAAoB,GAAE;SACjC,CAAC;KACH,CAAC,CACH;IACY,WAAA,IAAA,sBAAa,GAAE,CAAA;IAAS,WAAA,IAAA,aAAI,GAAE,CAAA;;;;iDAE1C;AA9BU,cAAc;IAF1B,IAAA,uBAAK,EAAC,oBAAQ,CAAC,MAAM,CAAC;IACtB,IAAA,mBAAU,EAAC,OAAO,CAAC;qCAKiB,0BAAW;GAJnC,cAAc,CA+B1B;AA/BY,wCAAc"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.FileModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
12
|
+
const file_info_model_1 = require("./file-info.model");
|
|
13
|
+
const file_controller_1 = require("./file.controller");
|
|
14
|
+
const file_resolver_1 = require("./file.resolver");
|
|
15
|
+
const file_service_1 = require("./file.service");
|
|
16
|
+
let FileModule = class FileModule {
|
|
17
|
+
};
|
|
18
|
+
FileModule = __decorate([
|
|
19
|
+
(0, common_1.Module)({
|
|
20
|
+
imports: [mongoose_1.MongooseModule.forFeature([{ name: file_info_model_1.FileInfo.name, schema: file_info_model_1.FileInfoSchema }])],
|
|
21
|
+
controllers: [file_controller_1.FileController],
|
|
22
|
+
providers: [file_service_1.FileService, file_resolver_1.FileResolver],
|
|
23
|
+
exports: [mongoose_1.MongooseModule, file_service_1.FileService],
|
|
24
|
+
})
|
|
25
|
+
], FileModule);
|
|
26
|
+
exports.FileModule = FileModule;
|
|
27
|
+
//# sourceMappingURL=file.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.module.js","sourceRoot":"","sources":["../../../../src/server/modules/file/file.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,+CAAkD;AAClD,uDAA6D;AAC7D,uDAAmD;AACnD,mDAA+C;AAC/C,iDAA6C;AAW7C,IAAa,UAAU,GAAvB,MAAa,UAAU;CAAG,CAAA;AAAb,UAAU;IANtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,yBAAc,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,0BAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,gCAAc,EAAE,CAAC,CAAC,CAAC;QACvF,WAAW,EAAE,CAAC,gCAAc,CAAC;QAC7B,SAAS,EAAE,CAAC,0BAAW,EAAE,4BAAY,CAAC;QACtC,OAAO,EAAE,CAAC,yBAAc,EAAE,0BAAW,CAAC;KACvC,CAAC;GACW,UAAU,CAAG;AAAb,gCAAU"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { FileInfo } from '../../../core/modules/file/file-info.output';
|
|
2
1
|
import { FileUpload } from '../../../core/modules/file/interfaces/file-upload.interface';
|
|
3
2
|
import { FileService } from './file.service';
|
|
4
3
|
export declare class FileResolver {
|
|
5
4
|
protected readonly fileService: FileService;
|
|
6
5
|
constructor(fileService: FileService);
|
|
7
|
-
getFileInfo(filename: string): Promise<
|
|
8
|
-
deleteFile(filename: string): Promise<
|
|
9
|
-
uploadFile(file: FileUpload): Promise<
|
|
6
|
+
getFileInfo(filename: string): Promise<import("../../..").CoreFileInfo>;
|
|
7
|
+
deleteFile(filename: string): Promise<import("../../..").CoreFileInfo>;
|
|
8
|
+
uploadFile(file: FileUpload): Promise<import("../../..").CoreFileInfo>;
|
|
10
9
|
uploadFiles(files: FileUpload[]): Promise<boolean>;
|
|
11
10
|
}
|
|
@@ -18,7 +18,7 @@ const fs_1 = require("fs");
|
|
|
18
18
|
const GraphQLUpload = require("graphql-upload/GraphQLUpload.js");
|
|
19
19
|
const roles_decorator_1 = require("../../../core/common/decorators/roles.decorator");
|
|
20
20
|
const role_enum_1 = require("../../../core/common/enums/role.enum");
|
|
21
|
-
const
|
|
21
|
+
const file_info_model_1 = require("./file-info.model");
|
|
22
22
|
const file_service_1 = require("./file.service");
|
|
23
23
|
let FileResolver = class FileResolver {
|
|
24
24
|
constructor(fileService) {
|
|
@@ -31,7 +31,6 @@ let FileResolver = class FileResolver {
|
|
|
31
31
|
return await this.fileService.deleteFileByName(filename);
|
|
32
32
|
}
|
|
33
33
|
async uploadFile(file) {
|
|
34
|
-
const { filename, mimetype, encoding, createReadStream } = file;
|
|
35
34
|
return await this.fileService.createFile(file);
|
|
36
35
|
}
|
|
37
36
|
async uploadFiles(files) {
|
|
@@ -49,7 +48,7 @@ let FileResolver = class FileResolver {
|
|
|
49
48
|
};
|
|
50
49
|
__decorate([
|
|
51
50
|
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.ADMIN),
|
|
52
|
-
(0, graphql_1.Query)(() =>
|
|
51
|
+
(0, graphql_1.Query)(() => file_info_model_1.FileInfo, { nullable: true }),
|
|
53
52
|
__param(0, (0, graphql_1.Args)({ name: 'filename', type: () => String })),
|
|
54
53
|
__metadata("design:type", Function),
|
|
55
54
|
__metadata("design:paramtypes", [String]),
|
|
@@ -57,7 +56,7 @@ __decorate([
|
|
|
57
56
|
], FileResolver.prototype, "getFileInfo", null);
|
|
58
57
|
__decorate([
|
|
59
58
|
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.ADMIN),
|
|
60
|
-
(0, graphql_1.Mutation)(() =>
|
|
59
|
+
(0, graphql_1.Mutation)(() => file_info_model_1.FileInfo),
|
|
61
60
|
__param(0, (0, graphql_1.Args)({ name: 'filename', type: () => String })),
|
|
62
61
|
__metadata("design:type", Function),
|
|
63
62
|
__metadata("design:paramtypes", [String]),
|
|
@@ -65,7 +64,7 @@ __decorate([
|
|
|
65
64
|
], FileResolver.prototype, "deleteFile", null);
|
|
66
65
|
__decorate([
|
|
67
66
|
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.ADMIN),
|
|
68
|
-
(0, graphql_1.Mutation)(() =>
|
|
67
|
+
(0, graphql_1.Mutation)(() => file_info_model_1.FileInfo),
|
|
69
68
|
__param(0, (0, graphql_1.Args)({ name: 'file', type: () => GraphQLUpload })),
|
|
70
69
|
__metadata("design:type", Function),
|
|
71
70
|
__metadata("design:paramtypes", [Object]),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.resolver.js","sourceRoot":"","sources":["../../../../src/server/modules/file/file.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAkE;AAClE,2BAAuC;AACvC,iEAAiE;AACjE,qFAAwE;AACxE,oEAAgE;
|
|
1
|
+
{"version":3,"file":"file.resolver.js","sourceRoot":"","sources":["../../../../src/server/modules/file/file.resolver.ts"],"names":[],"mappings":"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"}
|
|
@@ -19,7 +19,7 @@ const mongoose_2 = require("mongoose");
|
|
|
19
19
|
const core_file_service_1 = require("../../../core/modules/file/core-file.service");
|
|
20
20
|
let FileService = class FileService extends core_file_service_1.CoreFileService {
|
|
21
21
|
constructor(connection) {
|
|
22
|
-
super(connection, '
|
|
22
|
+
super(connection, 'fs');
|
|
23
23
|
this.connection = connection;
|
|
24
24
|
}
|
|
25
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.service.js","sourceRoot":"","sources":["../../../../src/server/modules/file/file.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAAoD;AACpD,uCAAsC;AACtC,oFAA+E;
|
|
1
|
+
{"version":3,"file":"file.service.js","sourceRoot":"","sources":["../../../../src/server/modules/file/file.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+CAAoD;AACpD,uCAAsC;AACtC,oFAA+E;AAM/E,IAAa,WAAW,GAAxB,MAAa,WAAY,SAAQ,mCAAe;IAC9C,YAAmD,UAAsB;QACvE,KAAK,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QADyB,eAAU,GAAV,UAAU,CAAY;IAEzE,CAAC;CACF,CAAA;AAJY,WAAW;IADvB,IAAA,mBAAU,GAAE;IAEE,WAAA,IAAA,2BAAgB,GAAE,CAAA;qCAAgC,qBAAU;GAD9D,WAAW,CAIvB;AAJY,kCAAW"}
|
|
@@ -12,9 +12,7 @@ const config_env_1 = require("../config.env");
|
|
|
12
12
|
const core_module_1 = require("../core.module");
|
|
13
13
|
const core_auth_service_1 = require("../core/modules/auth/services/core-auth.service");
|
|
14
14
|
const auth_module_1 = require("./modules/auth/auth.module");
|
|
15
|
-
const
|
|
16
|
-
const file_resolver_1 = require("./modules/file/file.resolver");
|
|
17
|
-
const file_service_1 = require("./modules/file/file.service");
|
|
15
|
+
const file_module_1 = require("./modules/file/file.module");
|
|
18
16
|
const server_controller_1 = require("./server.controller");
|
|
19
17
|
let ServerModule = class ServerModule {
|
|
20
18
|
};
|
|
@@ -23,10 +21,10 @@ ServerModule = __decorate([
|
|
|
23
21
|
imports: [
|
|
24
22
|
core_module_1.CoreModule.forRoot(core_auth_service_1.CoreAuthService, auth_module_1.AuthModule.forRoot(config_env_1.default.jwt), config_env_1.default),
|
|
25
23
|
auth_module_1.AuthModule.forRoot(config_env_1.default.jwt),
|
|
24
|
+
file_module_1.FileModule,
|
|
26
25
|
],
|
|
27
|
-
controllers: [
|
|
28
|
-
|
|
29
|
-
exports: [core_module_1.CoreModule, auth_module_1.AuthModule],
|
|
26
|
+
controllers: [server_controller_1.ServerController],
|
|
27
|
+
exports: [core_module_1.CoreModule, auth_module_1.AuthModule, file_module_1.FileModule],
|
|
30
28
|
})
|
|
31
29
|
], ServerModule);
|
|
32
30
|
exports.ServerModule = ServerModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.module.js","sourceRoot":"","sources":["../../src/server/server.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,8CAAsC;AACtC,gDAA4C;AAC5C,uFAAkF;AAClF,4DAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"server.module.js","sourceRoot":"","sources":["../../src/server/server.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,8CAAsC;AACtC,gDAA4C;AAC5C,uFAAkF;AAClF,4DAAwD;AACxD,4DAAwD;AACxD,2DAAuD;AA4BvD,IAAa,YAAY,GAAzB,MAAa,YAAY;CAAG,CAAA;AAAf,YAAY;IApBxB,IAAA,eAAM,EAAC;QAEN,OAAO,EAAE;YAEP,wBAAU,CAAC,OAAO,CAAC,mCAAe,EAAE,wBAAU,CAAC,OAAO,CAAC,oBAAS,CAAC,GAAG,CAAC,EAAE,oBAAS,CAAC;YAIjF,wBAAU,CAAC,OAAO,CAAC,oBAAS,CAAC,GAAG,CAAC;YAGjC,wBAAU;SACX;QAGD,WAAW,EAAE,CAAC,oCAAgB,CAAC;QAG/B,OAAO,EAAE,CAAC,wBAAU,EAAE,wBAAU,EAAE,wBAAU,CAAC;KAC9C,CAAC;GACW,YAAY,CAAG;AAAf,oCAAY"}
|