@lenne.tech/nest-server 11.7.3 → 11.9.0

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.
Files changed (96) hide show
  1. package/dist/config.env.js +3 -0
  2. package/dist/config.env.js.map +1 -1
  3. package/dist/core/common/interfaces/server-options.interface.d.ts +35 -0
  4. package/dist/core/modules/auth/guards/roles.guard.js +4 -3
  5. package/dist/core/modules/auth/guards/roles.guard.js.map +1 -1
  6. package/dist/core/modules/auth/services/core-auth.service.js +5 -4
  7. package/dist/core/modules/auth/services/core-auth.service.js.map +1 -1
  8. package/dist/core/modules/error-code/core-error-code.controller.d.ts +7 -0
  9. package/dist/core/modules/error-code/core-error-code.controller.js +45 -0
  10. package/dist/core/modules/error-code/core-error-code.controller.js.map +1 -0
  11. package/dist/core/modules/error-code/core-error-code.service.d.ts +16 -0
  12. package/dist/core/modules/error-code/core-error-code.service.js +65 -0
  13. package/dist/core/modules/error-code/core-error-code.service.js.map +1 -0
  14. package/dist/core/modules/error-code/error-code.module.d.ts +7 -0
  15. package/dist/core/modules/error-code/error-code.module.js +64 -0
  16. package/dist/core/modules/error-code/error-code.module.js.map +1 -0
  17. package/dist/core/modules/error-code/error-codes.d.ts +219 -0
  18. package/dist/core/modules/error-code/error-codes.js +204 -0
  19. package/dist/core/modules/error-code/error-codes.js.map +1 -0
  20. package/dist/core/modules/error-code/index.d.ts +5 -0
  21. package/dist/core/modules/error-code/index.js +22 -0
  22. package/dist/core/modules/error-code/index.js.map +1 -0
  23. package/dist/core/modules/error-code/interfaces/error-code.interfaces.d.ts +12 -0
  24. package/dist/core/modules/error-code/interfaces/error-code.interfaces.js +3 -0
  25. package/dist/core/modules/error-code/interfaces/error-code.interfaces.js.map +1 -0
  26. package/dist/core/modules/file/core-file.controller.d.ts +1 -0
  27. package/dist/core/modules/file/core-file.controller.js +22 -0
  28. package/dist/core/modules/file/core-file.controller.js.map +1 -1
  29. package/dist/core/modules/tus/core-tus.controller.d.ts +9 -0
  30. package/dist/core/modules/tus/core-tus.controller.js +85 -0
  31. package/dist/core/modules/tus/core-tus.controller.js.map +1 -0
  32. package/dist/core/modules/tus/core-tus.service.d.ts +30 -0
  33. package/dist/core/modules/tus/core-tus.service.js +284 -0
  34. package/dist/core/modules/tus/core-tus.service.js.map +1 -0
  35. package/dist/core/modules/tus/index.d.ts +4 -0
  36. package/dist/core/modules/tus/index.js +21 -0
  37. package/dist/core/modules/tus/index.js.map +1 -0
  38. package/dist/core/modules/tus/interfaces/tus-config.interface.d.ts +10 -0
  39. package/dist/core/modules/tus/interfaces/tus-config.interface.js +59 -0
  40. package/dist/core/modules/tus/interfaces/tus-config.interface.js.map +1 -0
  41. package/dist/core/modules/tus/tus.module.d.ts +21 -0
  42. package/dist/core/modules/tus/tus.module.js +99 -0
  43. package/dist/core/modules/tus/tus.module.js.map +1 -0
  44. package/dist/core.module.js +8 -0
  45. package/dist/core.module.js.map +1 -1
  46. package/dist/index.d.ts +2 -0
  47. package/dist/index.js +2 -0
  48. package/dist/index.js.map +1 -1
  49. package/dist/server/modules/error-code/error-code.controller.d.ts +8 -0
  50. package/dist/server/modules/error-code/error-code.controller.js +55 -0
  51. package/dist/server/modules/error-code/error-code.controller.js.map +1 -0
  52. package/dist/server/modules/error-code/error-code.service.d.ts +4 -0
  53. package/dist/server/modules/error-code/error-code.service.js +27 -0
  54. package/dist/server/modules/error-code/error-code.service.js.map +1 -0
  55. package/dist/server/modules/error-code/error-codes.d.ts +45 -0
  56. package/dist/server/modules/error-code/error-codes.js +24 -0
  57. package/dist/server/modules/error-code/error-codes.js.map +1 -0
  58. package/dist/server/modules/error-code/index.d.ts +3 -0
  59. package/dist/server/modules/error-code/index.js +20 -0
  60. package/dist/server/modules/error-code/index.js.map +1 -0
  61. package/dist/server/modules/file/file.controller.d.ts +5 -7
  62. package/dist/server/modules/file/file.controller.js +3 -31
  63. package/dist/server/modules/file/file.controller.js.map +1 -1
  64. package/dist/server/server.module.js +10 -1
  65. package/dist/server/server.module.js.map +1 -1
  66. package/dist/tsconfig.build.tsbuildinfo +1 -1
  67. package/package.json +5 -2
  68. package/src/config.env.ts +4 -0
  69. package/src/core/common/interfaces/server-options.interface.ts +243 -0
  70. package/src/core/modules/auth/guards/roles.guard.ts +5 -4
  71. package/src/core/modules/auth/services/core-auth.service.ts +5 -4
  72. package/src/core/modules/error-code/INTEGRATION-CHECKLIST.md +288 -0
  73. package/src/core/modules/error-code/core-error-code.controller.ts +54 -0
  74. package/src/core/modules/error-code/core-error-code.service.ts +135 -0
  75. package/src/core/modules/error-code/error-code.module.ts +119 -0
  76. package/src/core/modules/error-code/error-codes.ts +405 -0
  77. package/src/core/modules/error-code/index.ts +14 -0
  78. package/src/core/modules/error-code/interfaces/error-code.interfaces.ts +99 -0
  79. package/src/core/modules/file/README.md +165 -0
  80. package/src/core/modules/file/core-file.controller.ts +27 -1
  81. package/src/core/modules/tus/INTEGRATION-CHECKLIST.md +176 -0
  82. package/src/core/modules/tus/README.md +439 -0
  83. package/src/core/modules/tus/core-tus.controller.ts +88 -0
  84. package/src/core/modules/tus/core-tus.service.ts +424 -0
  85. package/src/core/modules/tus/index.ts +5 -0
  86. package/src/core/modules/tus/interfaces/tus-config.interface.ts +107 -0
  87. package/src/core/modules/tus/tus.module.ts +187 -0
  88. package/src/core.module.ts +16 -0
  89. package/src/index.ts +12 -0
  90. package/src/server/modules/error-code/README.md +131 -0
  91. package/src/server/modules/error-code/error-code.controller.ts +91 -0
  92. package/src/server/modules/error-code/error-code.service.ts +42 -0
  93. package/src/server/modules/error-code/error-codes.ts +65 -0
  94. package/src/server/modules/error-code/index.ts +8 -0
  95. package/src/server/modules/file/file.controller.ts +14 -34
  96. package/src/server/server.module.ts +15 -1
package/dist/index.js CHANGED
@@ -128,6 +128,7 @@ __exportStar(require("./core/modules/auth/strategies/jwt-refresh.strategy"), exp
128
128
  __exportStar(require("./core/modules/auth/strategies/jwt.strategy"), exports);
129
129
  __exportStar(require("./core/modules/auth/tokens.decorator"), exports);
130
130
  __exportStar(require("./core/modules/better-auth"), exports);
131
+ __exportStar(require("./core/modules/error-code"), exports);
131
132
  __exportStar(require("./core/modules/file/core-file-info.model"), exports);
132
133
  __exportStar(require("./core/modules/file/core-file.controller"), exports);
133
134
  __exportStar(require("./core/modules/file/core-file.resolver"), exports);
@@ -140,6 +141,7 @@ __exportStar(require("./core/modules/health-check/core-health-check.module"), ex
140
141
  __exportStar(require("./core/modules/health-check/core-health-check.resolver"), exports);
141
142
  __exportStar(require("./core/modules/health-check/core-health-check.service"), exports);
142
143
  __exportStar(require("./core/modules/migrate"), exports);
144
+ __exportStar(require("./core/modules/tus"), exports);
143
145
  __exportStar(require("./core/modules/user/core-user.model"), exports);
144
146
  __exportStar(require("./core/modules/user/core-user.service"), exports);
145
147
  __exportStar(require("./core/modules/user/inputs/core-user-create.input"), 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,kFAAgE;AAChE,sFAAoE;AACpE,6FAA2E;AAC3E,kFAAgE;AAChE,0FAAwE;AACxE,+EAA6D;AAC7D,gFAA8D;AAC9D,2EAAyD;AACzD,kFAAgE;AAChE,mFAAiE;AACjE,+EAA6D;AAC7D,4EAA0D;AAC1D,wEAAsD;AACtD,gEAA8C;AAC9C,sEAAoD;AACpD,kFAAgE;AAChE,sEAAoD;AACpD,sEAAoD;AACpD,uEAAqD;AACrD,kEAAgD;AAChD,yEAAuD;AACvD,oEAAkD;AAClD,sEAAoD;AACpD,uEAAqD;AACrD,sEAAoD;AACpD,qEAAmD;AACnD,qEAAmD;AACnD,6EAA2D;AAC3D,oEAAkD;AAClD,uEAAqD;AACrD,qEAAmD;AACnD,6EAA2D;AAC3D,wEAAsD;AACtD,oEAAkD;AAClD,2EAAyD;AACzD,kEAA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AACrE,yFAAuE;AACvE,wFAAsE;AAMtE,yDAAuC;AAMvC,sEAAoD;AACpD,wEAAsD;AACtD,oFAAkE;AAClE,6EAA2D;AAC3D,qGAAmF;AAMnF,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAIA,gDAA8B;AAK9B,iEAA+C;AAC/C,qEAAmD;AACnD,kFAAgE;AAChE,kFAAgE;AAChE,sFAAoE;AACpE,6FAA2E;AAC3E,kFAAgE;AAChE,0FAAwE;AACxE,+EAA6D;AAC7D,gFAA8D;AAC9D,2EAAyD;AACzD,kFAAgE;AAChE,mFAAiE;AACjE,+EAA6D;AAC7D,4EAA0D;AAC1D,wEAAsD;AACtD,gEAA8C;AAC9C,sEAAoD;AACpD,kFAAgE;AAChE,sEAAoD;AACpD,sEAAoD;AACpD,uEAAqD;AACrD,kEAAgD;AAChD,yEAAuD;AACvD,oEAAkD;AAClD,sEAAoD;AACpD,uEAAqD;AACrD,sEAAoD;AACpD,qEAAmD;AACnD,qEAAmD;AACnD,6EAA2D;AAC3D,oEAAkD;AAClD,uEAAqD;AACrD,qEAAmD;AACnD,6EAA2D;AAC3D,wEAAsD;AACtD,oEAAkD;AAClD,2EAAyD;AACzD,kEAAgD;AAChD,wFAAsE;AACtE,wFAAsE;AACtE,4FAA0E;AAC1E,oGAAkF;AAClF,qGAAmF;AACnF,qFAAmE;AACnE,qFAAmE;AACnE,2FAAyE;AACzE,4FAA0E;AAC1E,sFAAoE;AACpE,oFAAkE;AAClE,qFAAmE;AACnE,qFAAmE;AACnE,wEAAsD;AACtD,8EAA4D;AAC5D,uEAAqD;AACrD,4EAA0D;AAC1D,0EAAwD;AACxD,2EAAyD;AACzD,mEAAiD;AACjD,8EAA4D;AAC5D,oEAAkD;AAClD,oEAAkD;AAClD,uEAAqD;AACrD,wEAAsD;AACtD,gFAA8D;AAC9D,sEAAoD;AACpD,uEAAqD;AACrD,yEAAuD;AACvD,2EAAyD;AACzD,wEAAsD;AACtD,0EAAwD;AACxD,yEAAuD;AACvD,kFAAgE;AAChE,iEAA+C;AAC/C,2EAAyD;AACzD,8DAA4C;AAC5C,+DAA6C;AAC7C,qEAAmD;AACnD,yEAAuD;AACvD,uEAAqD;AACrD,6EAA2D;AAC3D,wEAAsD;AACtD,2EAAyD;AACzD,0EAAwD;AACxD,4EAA0D;AAC1D,iFAA+D;AAC/D,+EAA6D;AAC7D,mEAAiD;AAMjD,+EAA6D;AAC7D,2EAAyD;AACzD,sEAAoD;AACpD,uEAAqD;AACrD,yEAAuD;AACvD,iGAA+E;AAC/E,yFAAuE;AACvE,yFAAuE;AACvE,gGAA8E;AAC9E,wEAAsD;AACtD,0FAAwE;AACxE,yEAAuD;AACvD,qFAAmE;AACnE,qFAAmE;AACnE,yFAAuE;AACvE,0FAAwE;AACxE,2FAAyE;AACzE,uFAAqE;AACrE,sFAAoE;AACpE,iFAA+D;AAC/D,gGAA8E;AAC9E,sFAAoE;AACpE,8EAA4D;AAC5D,uEAAqD;AAMrD,6DAA2C;AAM3C,4DAA0C;AAM1C,2EAAyD;AACzD,2EAAyD;AACzD,yEAAuD;AACvD,wEAAsD;AACtD,gGAA8E;AAC9E,uFAAqE;AAMrE,6FAA2E;AAC3E,2FAAyE;AACzE,uFAAqE;AACrE,yFAAuE;AACvE,wFAAsE;AAMtE,yDAAuC;AAMvC,qDAAmC;AAMnC,sEAAoD;AACpD,wEAAsD;AACtD,oFAAkE;AAClE,6EAA2D;AAC3D,qGAAmF;AAMnF,qDAAmC"}
@@ -0,0 +1,8 @@
1
+ import { IErrorTranslationResponse } from '../../../core/modules/error-code/interfaces/error-code.interfaces';
2
+ import { ErrorCodeService } from './error-code.service';
3
+ export declare class ErrorCodeController {
4
+ protected readonly errorCodeService: ErrorCodeService;
5
+ constructor(errorCodeService: ErrorCodeService);
6
+ getAllCodes(): string[];
7
+ getTranslations(locale: string): IErrorTranslationResponse;
8
+ }
@@ -0,0 +1,55 @@
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
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ErrorCodeController = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const roles_decorator_1 = require("../../../core/common/decorators/roles.decorator");
18
+ const role_enum_1 = require("../../../core/common/enums/role.enum");
19
+ const error_code_service_1 = require("./error-code.service");
20
+ let ErrorCodeController = class ErrorCodeController {
21
+ constructor(errorCodeService) {
22
+ this.errorCodeService = errorCodeService;
23
+ }
24
+ getAllCodes() {
25
+ return this.errorCodeService.getErrorCodes();
26
+ }
27
+ getTranslations(locale) {
28
+ if (!this.errorCodeService.isLocaleSupported(locale)) {
29
+ throw new common_1.NotFoundException(`Locale "${locale}" is not supported. ` +
30
+ `Supported locales: ${this.errorCodeService.getSupportedLocales().join(', ')}`);
31
+ }
32
+ return this.errorCodeService.getTranslations(locale);
33
+ }
34
+ };
35
+ exports.ErrorCodeController = ErrorCodeController;
36
+ __decorate([
37
+ (0, common_1.Get)('codes'),
38
+ (0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.S_EVERYONE),
39
+ __metadata("design:type", Function),
40
+ __metadata("design:paramtypes", []),
41
+ __metadata("design:returntype", Array)
42
+ ], ErrorCodeController.prototype, "getAllCodes", null);
43
+ __decorate([
44
+ (0, common_1.Get)(':locale'),
45
+ (0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.S_EVERYONE),
46
+ __param(0, (0, common_1.Param)('locale')),
47
+ __metadata("design:type", Function),
48
+ __metadata("design:paramtypes", [String]),
49
+ __metadata("design:returntype", Object)
50
+ ], ErrorCodeController.prototype, "getTranslations", null);
51
+ exports.ErrorCodeController = ErrorCodeController = __decorate([
52
+ (0, common_1.Controller)('api/i18n/errors'),
53
+ __metadata("design:paramtypes", [error_code_service_1.ErrorCodeService])
54
+ ], ErrorCodeController);
55
+ //# sourceMappingURL=error-code.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-code.controller.js","sourceRoot":"","sources":["../../../../src/server/modules/error-code/error-code.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA2E;AAE3E,qFAAwE;AACxE,oEAAgE;AAEhE,6DAAwD;AA4BjD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YAA+B,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAAG,CAAC;IAmBrE,WAAW;QACT,OAAO,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,CAAC;IAC/C,CAAC;IAyBD,eAAe,CAAkB,MAAc;QAC7C,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC;YACrD,MAAM,IAAI,0BAAiB,CACzB,WAAW,MAAM,sBAAsB;gBACrC,sBAAsB,IAAI,CAAC,gBAAgB,CAAC,mBAAmB,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACjF,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,MAAyB,CAAC,CAAC;IAC1E,CAAC;CACF,CAAA;AAzDY,kDAAmB;AAoB9B;IAFC,IAAA,YAAG,EAAC,OAAO,CAAC;IACZ,IAAA,uBAAK,EAAC,oBAAQ,CAAC,UAAU,CAAC;;;;sDAG1B;AAyBD;IAFC,IAAA,YAAG,EAAC,SAAS,CAAC;IACd,IAAA,uBAAK,EAAC,oBAAQ,CAAC,UAAU,CAAC;IACV,WAAA,IAAA,cAAK,EAAC,QAAQ,CAAC,CAAA;;;;0DAS/B;8BAxDU,mBAAmB;IAD/B,IAAA,mBAAU,EAAC,iBAAiB,CAAC;qCAEqB,qCAAgB;GADtD,mBAAmB,CAyD/B"}
@@ -0,0 +1,4 @@
1
+ import { CoreErrorCodeService } from '../../../core/modules/error-code/core-error-code.service';
2
+ export declare class ErrorCodeService extends CoreErrorCodeService {
3
+ constructor();
4
+ }
@@ -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
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ErrorCodeService = void 0;
13
+ const common_1 = require("@nestjs/common");
14
+ const core_error_code_service_1 = require("../../../core/modules/error-code/core-error-code.service");
15
+ const error_codes_1 = require("./error-codes");
16
+ let ErrorCodeService = class ErrorCodeService extends core_error_code_service_1.CoreErrorCodeService {
17
+ constructor() {
18
+ super();
19
+ this.registerErrorRegistry(error_codes_1.ServerErrors);
20
+ }
21
+ };
22
+ exports.ErrorCodeService = ErrorCodeService;
23
+ exports.ErrorCodeService = ErrorCodeService = __decorate([
24
+ (0, common_1.Injectable)(),
25
+ __metadata("design:paramtypes", [])
26
+ ], ErrorCodeService);
27
+ //# sourceMappingURL=error-code.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-code.service.js","sourceRoot":"","sources":["../../../../src/server/modules/error-code/error-code.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAE5C,sGAAgG;AAChG,+CAA6C;AAgCtC,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,8CAAoB;IACxD;QACE,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,qBAAqB,CAAC,0BAAY,CAAC,CAAC;IAC3C,CAAC;CACF,CAAA;AANY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;;GACA,gBAAgB,CAM5B"}
@@ -0,0 +1,45 @@
1
+ export declare const ServerErrors: {
2
+ readonly DEMO_ERROR: {
3
+ readonly code: "SRV_0001";
4
+ readonly message: "Demo error for testing";
5
+ readonly translations: {
6
+ readonly de: "Dies ist ein Demo-Fehler zu Testzwecken.";
7
+ readonly en: "This is a demo error for testing purposes.";
8
+ };
9
+ };
10
+ readonly FEATURE_NOT_AVAILABLE: {
11
+ readonly code: "SRV_0002";
12
+ readonly message: "Feature not available in this environment";
13
+ readonly translations: {
14
+ readonly de: "Diese Funktion ist in dieser Umgebung nicht verfügbar.";
15
+ readonly en: "This feature is not available in this environment.";
16
+ };
17
+ };
18
+ };
19
+ export declare const ErrorCode: {
20
+ USER_NOT_FOUND: string;
21
+ INVALID_PASSWORD: string;
22
+ INVALID_TOKEN: string;
23
+ TOKEN_EXPIRED: string;
24
+ REFRESH_TOKEN_REQUIRED: string;
25
+ USER_NOT_VERIFIED: string;
26
+ UNAUTHORIZED: string;
27
+ ACCESS_DENIED: string;
28
+ RESOURCE_FORBIDDEN: string;
29
+ EMAIL_ALREADY_EXISTS: string;
30
+ USERNAME_ALREADY_EXISTS: string;
31
+ VALIDATION_FAILED: string;
32
+ REQUIRED_FIELD_MISSING: string;
33
+ INVALID_FIELD_FORMAT: string;
34
+ RESOURCE_NOT_FOUND: string;
35
+ RESOURCE_ALREADY_EXISTS: string;
36
+ FILE_NOT_FOUND: string;
37
+ FILE_UPLOAD_FAILED: string;
38
+ FILE_TYPE_NOT_ALLOWED: string;
39
+ INTERNAL_ERROR: string;
40
+ SERVICE_UNAVAILABLE: string;
41
+ LEGACY_AUTH_DISABLED: string;
42
+ DEMO_ERROR: string;
43
+ FEATURE_NOT_AVAILABLE: string;
44
+ };
45
+ export type ServerErrorCodeKey = keyof typeof ErrorCode;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ErrorCode = exports.ServerErrors = void 0;
4
+ const error_codes_1 = require("../../../core/modules/error-code/error-codes");
5
+ exports.ServerErrors = {
6
+ DEMO_ERROR: {
7
+ code: 'SRV_0001',
8
+ message: 'Demo error for testing',
9
+ translations: {
10
+ de: 'Dies ist ein Demo-Fehler zu Testzwecken.',
11
+ en: 'This is a demo error for testing purposes.',
12
+ },
13
+ },
14
+ FEATURE_NOT_AVAILABLE: {
15
+ code: 'SRV_0002',
16
+ message: 'Feature not available in this environment',
17
+ translations: {
18
+ de: 'Diese Funktion ist in dieser Umgebung nicht verfügbar.',
19
+ en: 'This feature is not available in this environment.',
20
+ },
21
+ },
22
+ };
23
+ exports.ErrorCode = (0, error_codes_1.mergeErrorCodes)(exports.ServerErrors);
24
+ //# sourceMappingURL=error-codes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-codes.js","sourceRoot":"","sources":["../../../../src/server/modules/error-code/error-codes.ts"],"names":[],"mappings":";;;AAAA,8EAA+F;AAqBlF,QAAA,YAAY,GAAG;IAK1B,UAAU,EAAE;QACV,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,wBAAwB;QACjC,YAAY,EAAE;YACZ,EAAE,EAAE,0CAA0C;YAC9C,EAAE,EAAE,4CAA4C;SACjD;KACF;IAED,qBAAqB,EAAE;QACrB,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,2CAA2C;QACpD,YAAY,EAAE;YACZ,EAAE,EAAE,wDAAwD;YAC5D,EAAE,EAAE,oDAAoD;SACzD;KACF;CACgC,CAAC;AAgBvB,QAAA,SAAS,GAAG,IAAA,6BAAe,EAAC,oBAAY,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './error-code.controller';
2
+ export * from './error-code.service';
3
+ export * from './error-codes';
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./error-code.controller"), exports);
18
+ __exportStar(require("./error-code.service"), exports);
19
+ __exportStar(require("./error-codes"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/server/modules/error-code/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,0DAAwC;AAGxC,uDAAqC;AAGrC,gDAA8B"}
@@ -1,11 +1,9 @@
1
- import { Response } from 'express';
2
- import { CoreFileInfo } from '../../../core/modules/file/core-file-info.model';
1
+ import { CoreFileController } from '../../../core/modules/file/core-file.controller';
3
2
  import { FileService } from './file.service';
4
- export declare class FileController {
5
- private readonly fileService;
3
+ export declare class FileController extends CoreFileController {
4
+ protected readonly fileService: FileService;
6
5
  constructor(fileService: FileService);
7
6
  uploadFile(file: Express.Multer.File): Promise<any>;
8
- getFile(id: string, res: Response): Promise<Response<any, Record<string, any>>>;
9
- getFileInfo(id: string): Promise<CoreFileInfo>;
10
- deleteFile(id: string): Promise<CoreFileInfo>;
7
+ getFileInfo(id: string): Promise<import("../../..").CoreFileInfo>;
8
+ deleteFile(id: string): Promise<import("../../..").CoreFileInfo>;
11
9
  }
@@ -18,9 +18,11 @@ const platform_express_1 = require("@nestjs/platform-express");
18
18
  const stream_1 = require("stream");
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 core_file_controller_1 = require("../../../core/modules/file/core-file.controller");
21
22
  const file_service_1 = require("./file.service");
22
- let FileController = class FileController {
23
+ let FileController = class FileController extends core_file_controller_1.CoreFileController {
23
24
  constructor(fileService) {
25
+ super(fileService);
24
26
  this.fileService = fileService;
25
27
  }
26
28
  async uploadFile(file) {
@@ -35,27 +37,6 @@ let FileController = class FileController {
35
37
  };
36
38
  return await this.fileService.createFile(fileUpload);
37
39
  }
38
- async getFile(id, res) {
39
- if (!id) {
40
- throw new common_1.BadRequestException('Missing ID');
41
- }
42
- let file;
43
- try {
44
- file = await this.fileService.getFileInfo(id);
45
- }
46
- catch (e) {
47
- console.error(e);
48
- file = null;
49
- }
50
- if (!file) {
51
- throw new common_1.NotFoundException('File not found');
52
- }
53
- const filestream = await this.fileService.getFileStream(id);
54
- res.header('Content-Type', file.contentType || 'application/octet-stream');
55
- res.header('Content-Disposition', `attachment; filename=${file.filename}`);
56
- res.header('Cache-Control', 'max-age=31536000');
57
- return filestream.pipe(res);
58
- }
59
40
  async getFileInfo(id) {
60
41
  return await this.fileService.getFileInfo(id);
61
42
  }
@@ -76,15 +57,6 @@ __decorate([
76
57
  __metadata("design:paramtypes", [Object]),
77
58
  __metadata("design:returntype", Promise)
78
59
  ], FileController.prototype, "uploadFile", null);
79
- __decorate([
80
- (0, common_1.Get)(':id'),
81
- (0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.ADMIN),
82
- __param(0, (0, common_1.Param)('id')),
83
- __param(1, (0, common_1.Res)()),
84
- __metadata("design:type", Function),
85
- __metadata("design:paramtypes", [String, Object]),
86
- __metadata("design:returntype", Promise)
87
- ], FileController.prototype, "getFile", null);
88
60
  __decorate([
89
61
  (0, common_1.Get)('info/:id'),
90
62
  (0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.ADMIN),
@@ -1 +1 @@
1
- {"version":3,"file":"file.controller.js","sourceRoot":"","sources":["../../../../src/server/modules/file/file.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAWwB;AACxB,+DAA2D;AAE3D,mCAAkC;AAElC,qFAAwE;AACxE,oEAAgE;AAGhE,iDAA6C;AAOtC,IAAM,cAAc,GAApB,MAAM,cAAc;IAIzB,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAQnD,AAAN,KAAK,CAAC,UAAU,CAAiB,IAAyB;QACxD,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,4BAAmB,CAAC,kBAAkB,CAAC,CAAC;QACpD,CAAC;QAGD,MAAM,UAAU,GAAe;YAC7B,SAAS,EAAE,IAAI;YACf,gBAAgB,EAAE,GAAG,EAAE,CAAC,iBAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;YAClD,QAAQ,EAAE,IAAI,CAAC,YAAY;YAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC;QAGF,OAAO,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC;IAOK,AAAN,KAAK,CAAC,OAAO,CAAc,EAAU,EAAS,GAAa;QACzD,IAAI,CAAC,EAAE,EAA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,EAAC,IAAI,CAAC,CAAA;;;;gDAM5B;yBAnDU,cAAc;IAF1B,IAAA,mBAAU,EAAC,OAAO,CAAC;IACnB,IAAA,uBAAK,EAAC,oBAAQ,CAAC,KAAK,CAAC;qCAKiC,0BAAW;GAJrD,cAAc,CAoD1B"}
@@ -15,10 +15,14 @@ const any_scalar_1 = require("../core/common/scalars/any.scalar");
15
15
  const date_scalar_1 = require("../core/common/scalars/date.scalar");
16
16
  const json_scalar_1 = require("../core/common/scalars/json.scalar");
17
17
  const core_auth_service_1 = require("../core/modules/auth/services/core-auth.service");
18
+ const error_code_module_1 = require("../core/modules/error-code/error-code.module");
19
+ const tus_1 = require("../core/modules/tus");
18
20
  const cron_jobs_service_1 = require("./common/services/cron-jobs.service");
19
21
  const auth_controller_1 = require("./modules/auth/auth.controller");
20
22
  const auth_module_1 = require("./modules/auth/auth.module");
21
23
  const better_auth_module_1 = require("./modules/better-auth/better-auth.module");
24
+ const error_code_controller_1 = require("./modules/error-code/error-code.controller");
25
+ const error_code_service_1 = require("./modules/error-code/error-code.service");
22
26
  const file_module_1 = require("./modules/file/file.module");
23
27
  const server_controller_1 = require("./server.controller");
24
28
  let ServerModule = class ServerModule {
@@ -27,7 +31,7 @@ exports.ServerModule = ServerModule;
27
31
  exports.ServerModule = ServerModule = __decorate([
28
32
  (0, common_1.Module)({
29
33
  controllers: [server_controller_1.ServerController, auth_controller_1.AuthController],
30
- exports: [core_module_1.CoreModule, auth_module_1.AuthModule, better_auth_module_1.BetterAuthModule, file_module_1.FileModule],
34
+ exports: [core_module_1.CoreModule, auth_module_1.AuthModule, better_auth_module_1.BetterAuthModule, file_module_1.FileModule, tus_1.TusModule],
31
35
  imports: [
32
36
  core_module_1.CoreModule.forRoot(core_auth_service_1.CoreAuthService, auth_module_1.AuthModule.forRoot(config_env_1.default.jwt), config_env_1.default),
33
37
  schedule_1.ScheduleModule.forRoot(),
@@ -36,7 +40,12 @@ exports.ServerModule = ServerModule = __decorate([
36
40
  config: config_env_1.default.betterAuth,
37
41
  fallbackSecrets: [config_env_1.default.jwt?.secret, config_env_1.default.jwt?.refresh?.secret],
38
42
  }),
43
+ error_code_module_1.ErrorCodeModule.forRoot({
44
+ controller: error_code_controller_1.ErrorCodeController,
45
+ service: error_code_service_1.ErrorCodeService,
46
+ }),
39
47
  file_module_1.FileModule,
48
+ tus_1.TusModule.forRoot(),
40
49
  ],
41
50
  providers: [any_scalar_1.Any, cron_jobs_service_1.CronJobs, date_scalar_1.DateScalar, json_scalar_1.JSON],
42
51
  })
@@ -1 +1 @@
1
- {"version":3,"file":"server.module.js","sourceRoot":"","sources":["../../src/server/server.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,+CAAkD;AAElD,8CAAsC;AACtC,gDAA4C;AAC5C,kEAAwD;AACxD,oEAAgE;AAChE,oEAA0D;AAC1D,uFAAkF;AAClF,2EAA+D;AAC/D,oEAAgE;AAChE,4DAAwD;AACxD,iFAA4E;AAC5E,4DAAwD;AACxD,2DAAuD;AAyChD,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,oCAAY;uBAAZ,YAAY;IAjCxB,IAAA,eAAM,EAAC;QAEN,WAAW,EAAE,CAAC,oCAAgB,EAAE,gCAAc,CAAC;QAG/C,OAAO,EAAE,CAAC,wBAAU,EAAE,wBAAU,EAAE,qCAAgB,EAAE,wBAAU,CAAC;QAG/D,OAAO,EAAE;YAGP,wBAAU,CAAC,OAAO,CAAC,mCAAe,EAAE,wBAAU,CAAC,OAAO,CAAC,oBAAS,CAAC,GAAG,CAAC,EAAE,oBAAS,CAAC;YAGjF,yBAAc,CAAC,OAAO,EAAE;YAIxB,wBAAU,CAAC,OAAO,CAAC,oBAAS,CAAC,GAAG,CAAC;YAIjC,qCAAgB,CAAC,OAAO,CAAC;gBACvB,MAAM,EAAE,oBAAS,CAAC,UAAU;gBAC5B,eAAe,EAAE,CAAC,oBAAS,CAAC,GAAG,EAAE,MAAM,EAAE,oBAAS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