@lenne.tech/nest-server 8.6.11 → 8.6.14
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/helpers/db.helper.d.ts +1 -1
- package/dist/core/common/helpers/db.helper.js +6 -2
- package/dist/core/common/helpers/db.helper.js.map +1 -1
- package/dist/core/common/interfaces/server-options.interface.d.ts +1 -1
- package/dist/core/common/interfaces/service-options.interface.d.ts +1 -1
- package/dist/core/common/types/field-selection.type.d.ts +1 -1
- 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/auth/core-auth.model.js.map +1 -1
- 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 +58 -22
- package/dist/core/modules/file/core-file.service.js.map +1 -1
- package/dist/core/modules/user/core-user.model.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/common/models/persistence.model.js.map +1 -1
- package/dist/server/modules/auth/auth.model.js +2 -1
- package/dist/server/modules/auth/auth.model.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/helpers/db.helper.ts +7 -3
- package/src/core/common/interfaces/server-options.interface.ts +1 -1
- package/src/core/common/interfaces/service-options.interface.ts +1 -1
- package/src/core/common/types/field-selection.type.ts +6 -1
- package/src/core/common/types/maybe-promise.type.ts +4 -0
- package/src/core/modules/auth/core-auth.model.ts +2 -1
- 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 +80 -27
- package/src/core/modules/user/core-user.model.ts +2 -1
- package/src/index.ts +4 -1
- package/src/server/common/models/persistence.model.ts +2 -1
- package/src/server/modules/auth/auth.model.ts +2 -2
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-user.model.js","sourceRoot":"","sources":["../../../../src/core/modules/user/core-user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CA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-constructor.type';
|
|
49
49
|
export * from './core/common/types/field-selection.type';
|
|
50
50
|
export * from './core/common/types/ids.type';
|
|
51
|
+
export * from './core/common/types/maybe-promise.type';
|
|
51
52
|
export * from './core/common/types/plain-input.type';
|
|
52
53
|
export * from './core/common/types/require-only-one.type';
|
|
53
54
|
export * from './core/common/types/required-at-least-one.type';
|
|
@@ -66,8 +67,10 @@ export * from './core/modules/auth/core-auth.resolver';
|
|
|
66
67
|
export * from './core/modules/auth/jwt.strategy';
|
|
67
68
|
export * from './core/modules/file/interfaces/file-service-options.interface';
|
|
68
69
|
export * from './core/modules/file/interfaces/file-upload.interface';
|
|
70
|
+
export * from './core/modules/file/core-file.controller';
|
|
71
|
+
export * from './core/modules/file/core-file.resolver';
|
|
69
72
|
export * from './core/modules/file/core-file.service';
|
|
70
|
-
export * from './core/modules/file/file-info.
|
|
73
|
+
export * from './core/modules/file/core-file-info.model';
|
|
71
74
|
export * from './core/modules/user/inputs/core-user.input';
|
|
72
75
|
export * from './core/modules/user/inputs/core-user-create.input';
|
|
73
76
|
export * from './core/modules/user/core-user.model';
|
package/dist/index.js
CHANGED
|
@@ -64,6 +64,7 @@ __exportStar(require("./core/common/services/template.service"), exports);
|
|
|
64
64
|
__exportStar(require("./core/common/types/core-model-constructor.type"), exports);
|
|
65
65
|
__exportStar(require("./core/common/types/field-selection.type"), exports);
|
|
66
66
|
__exportStar(require("./core/common/types/ids.type"), exports);
|
|
67
|
+
__exportStar(require("./core/common/types/maybe-promise.type"), exports);
|
|
67
68
|
__exportStar(require("./core/common/types/plain-input.type"), exports);
|
|
68
69
|
__exportStar(require("./core/common/types/require-only-one.type"), exports);
|
|
69
70
|
__exportStar(require("./core/common/types/required-at-least-one.type"), exports);
|
|
@@ -82,8 +83,10 @@ __exportStar(require("./core/modules/auth/core-auth.resolver"), exports);
|
|
|
82
83
|
__exportStar(require("./core/modules/auth/jwt.strategy"), exports);
|
|
83
84
|
__exportStar(require("./core/modules/file/interfaces/file-service-options.interface"), exports);
|
|
84
85
|
__exportStar(require("./core/modules/file/interfaces/file-upload.interface"), exports);
|
|
86
|
+
__exportStar(require("./core/modules/file/core-file.controller"), exports);
|
|
87
|
+
__exportStar(require("./core/modules/file/core-file.resolver"), exports);
|
|
85
88
|
__exportStar(require("./core/modules/file/core-file.service"), exports);
|
|
86
|
-
__exportStar(require("./core/modules/file/file-info.
|
|
89
|
+
__exportStar(require("./core/modules/file/core-file-info.model"), exports);
|
|
87
90
|
__exportStar(require("./core/modules/user/inputs/core-user.input"), exports);
|
|
88
91
|
__exportStar(require("./core/modules/user/inputs/core-user-create.input"), exports);
|
|
89
92
|
__exportStar(require("./core/modules/user/core-user.model"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,gDAA8B;AAK9B,iEAA+C;AAC/C,qEAAmD;AACnD,kFAAgE;AAChE,+EAA6D;AAC7D,gFAA8D;AAC9D,2EAAyD;AACzD,+EAA6D;AAC7D,4EAA0D;AAC1D,wEAAsD;AACtD,gEAA8C;AAC9C,sEAAoD;AACpD,sEAAoD;AACpD,uEAAqD;AACrD,kEAAgD;AAChD,oEAAkD;AAClD,sEAAoD;AACpD,uEAAqD;AACrD,qEAAmD;AACnD,qEAAmD;AACnD,uEAAqD;AACrD,6EAA2D;AAC3D,wEAAsD;AACtD,oEAAkD;AAClD,2EAAyD;AACzD,kEAAgD;AAChD,wFAAsE;AACtE,4FAA0E;AAC1E,qFAAmE;AACnE,2FAAyE;AACzE,4FAA0E;AAC1E,sFAAoE;AACpE,oFAAkE;AAClE,qFAAmE;AACnE,wEAAsD;AACtD,8EAA4D;AAC5D,uEAAqD;AACrD,4EAA0D;AAC1D,mEAAiD;AACjD,oEAAkD;AAClD,oEAAkD;AAClD,wEAAsD;AACtD,sEAAoD;AACpD,uEAAqD;AACrD,yEAAuD;AACvD,wEAAsD;AACtD,0EAAwD;AACxD,kFAAgE;AAChE,2EAAyD;AACzD,+DAA6C;AAC7C,uEAAqD;AACrD,4EAA0D;AAC1D,iFAA+D;AAC/D,+EAA6D;AAM7D,wEAAsD;AACtD,yEAAuD;AACvD,qFAAmE;AACnE,qFAAmE;AACnE,0FAAwE;AACxE,uFAAqE;AACrE,iFAA+D;AAC/D,sFAAoE;AACpE,sEAAoD;AACpD,uEAAqD;AACrD,yEAAuD;AACvD,mEAAiD;AAMjD,gGAA8E;AAC9E,uFAAqE;AACrE,wEAAsD;AACtD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,gDAA8B;AAK9B,iEAA+C;AAC/C,qEAAmD;AACnD,kFAAgE;AAChE,+EAA6D;AAC7D,gFAA8D;AAC9D,2EAAyD;AACzD,+EAA6D;AAC7D,4EAA0D;AAC1D,wEAAsD;AACtD,gEAA8C;AAC9C,sEAAoD;AACpD,sEAAoD;AACpD,uEAAqD;AACrD,kEAAgD;AAChD,oEAAkD;AAClD,sEAAoD;AACpD,uEAAqD;AACrD,qEAAmD;AACnD,qEAAmD;AACnD,uEAAqD;AACrD,6EAA2D;AAC3D,wEAAsD;AACtD,oEAAkD;AAClD,2EAAyD;AACzD,kEAAgD;AAChD,wFAAsE;AACtE,4FAA0E;AAC1E,qFAAmE;AACnE,2FAAyE;AACzE,4FAA0E;AAC1E,sFAAoE;AACpE,oFAAkE;AAClE,qFAAmE;AACnE,wEAAsD;AACtD,8EAA4D;AAC5D,uEAAqD;AACrD,4EAA0D;AAC1D,mEAAiD;AACjD,oEAAkD;AAClD,oEAAkD;AAClD,wEAAsD;AACtD,sEAAoD;AACpD,uEAAqD;AACrD,yEAAuD;AACvD,wEAAsD;AACtD,0EAAwD;AACxD,kFAAgE;AAChE,2EAAyD;AACzD,+DAA6C;AAC7C,yEAAuD;AACvD,uEAAqD;AACrD,4EAA0D;AAC1D,iFAA+D;AAC/D,+EAA6D;AAM7D,wEAAsD;AACtD,yEAAuD;AACvD,qFAAmE;AACnE,qFAAmE;AACnE,0FAAwE;AACxE,uFAAqE;AACrE,iFAA+D;AAC/D,sFAAoE;AACpE,sEAAoD;AACpD,uEAAqD;AACrD,yEAAuD;AACvD,mEAAiD;AAMjD,gGAA8E;AAC9E,uFAAqE;AACrE,2EAAyD;AACzD,yEAAuD;AACvD,wEAAsD;AACtD,2EAAyD;AAMzD,6EAA2D;AAC3D,oFAAkE;AAClE,sEAAoD;AACpD,wEAAsD;AAMtD,qDAAmC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persistence.model.js","sourceRoot":"","sources":["../../../../src/server/common/models/persistence.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAqC;AACrC,+CAAwC;AACxC,6CAAoD;AACpD,+FAA0F;AAC1F,8DAAqD;AAWrD,IAAsB,gBAAgB,GAAtC,MAAsB,gBAAiB,SAAQ,6CAAoB;IAAnE;;QAeE,cAAS,GAA6B,SAAS,CAAC;QAYhD,cAAS,GAA6B,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"persistence.model.js","sourceRoot":"","sources":["../../../../src/server/common/models/persistence.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAqC;AACrC,+CAAwC;AACxC,6CAAoD;AACpD,+FAA0F;AAC1F,8DAAqD;AAWrD,IAAsB,gBAAgB,GAAtC,MAAsB,gBAAiB,SAAQ,6CAAoB;IAAnE;;QAeE,cAAS,GAA6B,SAAS,CAAC;QAYhD,cAAS,GAA6B,SAAS,CAAC;IAwBlD,CAAC;IAfC,IAAI;QACF,KAAK,CAAC,IAAI,EAAE,CAAC;QAEb,OAAO,IAAI,CAAC;IACd,CAAC;IAKD,GAAG,CAAC,KAAK;QACP,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAGjB,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AApCC;IALC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iBAAI,EAAE;QACjB,WAAW,EAAE,uCAAuC;QACpD,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;;mDACZ;AAYhD;IALC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iBAAI,EAAE;QACjB,WAAW,EAAE,uCAAuC;QACpD,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;;mDACZ;AA3B5B,gBAAgB;IAJrC,IAAA,oBAAU,EAAC;QACV,WAAW,EAAE,6CAA6C;QAC1D,UAAU,EAAE,IAAI;KACjB,CAAC;GACoB,gBAAgB,CAmDrC;AAnDqB,4CAAgB"}
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Auth = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
+
const model_helper_1 = require("../../../core/common/helpers/model.helper");
|
|
14
15
|
const core_auth_model_1 = require("../../../core/modules/auth/core-auth.model");
|
|
15
16
|
const user_model_1 = require("../user/user.model");
|
|
16
17
|
let Auth = class Auth extends core_auth_model_1.CoreAuthModel {
|
|
@@ -24,7 +25,7 @@ let Auth = class Auth extends core_auth_model_1.CoreAuthModel {
|
|
|
24
25
|
}
|
|
25
26
|
map(input) {
|
|
26
27
|
super.map(input);
|
|
27
|
-
return this;
|
|
28
|
+
return (0, model_helper_1.mapClasses)(input, { user: user_model_1.User }, this);
|
|
28
29
|
}
|
|
29
30
|
};
|
|
30
31
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.model.js","sourceRoot":"","sources":["../../../../src/server/modules/auth/auth.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,gFAA2E;AAC3E,mDAA0C;AAM1C,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,+BAAa;IAAvC;;QASE,SAAI,GAAS,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.model.js","sourceRoot":"","sources":["../../../../src/server/modules/auth/auth.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,4EAAuE;AACvE,gFAA2E;AAC3E,mDAA0C;AAM1C,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,+BAAa;IAAvC;;QASE,SAAI,GAAS,SAAS,CAAC;IAsBzB,CAAC;IAbC,IAAI;QACF,KAAK,CAAC,IAAI,EAAE,CAAC;QAEb,OAAO,IAAI,CAAC;IACd,CAAC;IAKD,GAAG,CAAC,KAAK;QACP,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACjB,OAAO,IAAA,yBAAU,EAAC,KAAK,EAAE,EAAE,IAAI,EAAE,iBAAI,EAAE,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;CACF,CAAA;AAtBC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iBAAI,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;8BACnD,iBAAI;kCAAa;AATZ,IAAI;IADhB,IAAA,oBAAU,EAAC,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;GACtC,IAAI,CA+BhB;AA/BY,oBAAI"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/helpers" />
|
|
9
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
10
|
+
/// <reference types="mongoose/types/indizes" />
|
|
11
|
+
/// <reference types="mongoose/types/models" />
|
|
12
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
13
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
14
|
+
/// <reference types="mongoose/types/populate" />
|
|
15
|
+
/// <reference types="mongoose/types/query" />
|
|
16
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
17
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
18
|
+
/// <reference types="mongoose/types/session" />
|
|
19
|
+
/// <reference types="mongoose/types/types" />
|
|
20
|
+
/// <reference types="mongoose/types/utility" />
|
|
21
|
+
/// <reference types="mongoose/types/validation" />
|
|
22
|
+
/// <reference types="mongoose" />
|
|
23
|
+
import { CoreFileInfo } from '../../../core/modules/file/core-file-info.model';
|
|
24
|
+
export declare class FileInfo extends CoreFileInfo {
|
|
25
|
+
}
|
|
26
|
+
export declare const FileInfoSchema: import("mongoose").Schema<FileInfo, import("mongoose").Model<FileInfo, any, any, any>, {}, {}, any>;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.FileInfoSchema = exports.FileInfo = void 0;
|
|
10
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
11
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
12
|
+
const core_file_info_model_1 = require("../../../core/modules/file/core-file-info.model");
|
|
13
|
+
let FileInfo = class FileInfo extends core_file_info_model_1.CoreFileInfo {
|
|
14
|
+
};
|
|
15
|
+
FileInfo = __decorate([
|
|
16
|
+
(0, graphql_1.ObjectType)({ description: 'Information about file' }),
|
|
17
|
+
(0, mongoose_1.Schema)({ collection: 'fs.files' })
|
|
18
|
+
], FileInfo);
|
|
19
|
+
exports.FileInfo = FileInfo;
|
|
20
|
+
exports.FileInfoSchema = mongoose_1.SchemaFactory.createForClass(FileInfo);
|
|
21
|
+
//# sourceMappingURL=file-info.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-info.model.js","sourceRoot":"","sources":["../../../../src/server/modules/file/file-info.model.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6CAA6C;AAC7C,+CAA2E;AAC3E,0FAA+E;AAO/E,IAAa,QAAQ,GAArB,MAAa,QAAS,SAAQ,mCAAY;CAAG,CAAA;AAAhC,QAAQ;IAFpB,IAAA,oBAAU,EAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACrD,IAAA,iBAAc,EAAC,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;GAC9B,QAAQ,CAAwB;AAAhC,4BAAQ;AAKR,QAAA,cAAc,GAAG,wBAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CoreFileController } from '../../../core/modules/file/core-file.controller';
|
|
2
2
|
import { FileService } from './file.service';
|
|
3
|
-
export declare class FileController {
|
|
3
|
+
export declare class FileController extends CoreFileController {
|
|
4
4
|
protected fileService: FileService;
|
|
5
5
|
constructor(fileService: FileService);
|
|
6
6
|
uploadFiles(files: any, fields: any): void;
|
|
7
|
-
getFile(filename: string, res: any, user: User): Promise<any>;
|
|
8
7
|
}
|
|
@@ -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":";;;;;;;;;;;;;;;AAAA,6CAAk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
|
|
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"}
|