@lenne.tech/nest-server 11.1.14 → 11.3.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 (77) hide show
  1. package/dist/core/common/decorators/unified-field.decorator.d.ts +2 -0
  2. package/dist/core/common/decorators/unified-field.decorator.js +26 -9
  3. package/dist/core/common/decorators/unified-field.decorator.js.map +1 -1
  4. package/dist/core/common/helpers/gridfs.helper.d.ts +42 -0
  5. package/dist/core/common/helpers/gridfs.helper.js +107 -0
  6. package/dist/core/common/helpers/gridfs.helper.js.map +1 -0
  7. package/dist/core/common/models/core-persistence.model.js +2 -2
  8. package/dist/core/common/models/core-persistence.model.js.map +1 -1
  9. package/dist/core/common/services/brevo.service.d.ts +1 -0
  10. package/dist/core/common/services/brevo.service.js +19 -18
  11. package/dist/core/common/services/brevo.service.js.map +1 -1
  12. package/dist/core/common/services/crud.service.js +1 -1
  13. package/dist/core/common/services/crud.service.js.map +1 -1
  14. package/dist/core/modules/file/core-file-info.model.js +41 -23
  15. package/dist/core/modules/file/core-file-info.model.js.map +1 -1
  16. package/dist/core/modules/file/core-file.controller.d.ts +2 -1
  17. package/dist/core/modules/file/core-file.controller.js +1 -1
  18. package/dist/core/modules/file/core-file.controller.js.map +1 -1
  19. package/dist/core/modules/file/core-file.service.d.ts +7 -7
  20. package/dist/core/modules/file/core-file.service.js +28 -51
  21. package/dist/core/modules/file/core-file.service.js.map +1 -1
  22. package/dist/core/modules/file/interfaces/file-upload.interface.d.ts +1 -1
  23. package/dist/core/modules/user/core-user.model.js +95 -54
  24. package/dist/core/modules/user/core-user.model.js.map +1 -1
  25. package/dist/core/modules/user/core-user.service.js +2 -3
  26. package/dist/core/modules/user/core-user.service.js.map +1 -1
  27. package/dist/index.d.ts +2 -0
  28. package/dist/index.js +1 -0
  29. package/dist/index.js.map +1 -1
  30. package/dist/main.js +22 -0
  31. package/dist/main.js.map +1 -1
  32. package/dist/server/common/models/persistence.model.js +13 -11
  33. package/dist/server/common/models/persistence.model.js.map +1 -1
  34. package/dist/server/modules/auth/auth.model.js +6 -2
  35. package/dist/server/modules/auth/auth.model.js.map +1 -1
  36. package/dist/server/modules/file/file-info.model.d.ts +7 -3
  37. package/dist/server/modules/file/file.controller.d.ts +6 -4
  38. package/dist/server/modules/file/file.controller.js +15 -4
  39. package/dist/server/modules/file/file.controller.js.map +1 -1
  40. package/dist/server/modules/file/file.resolver.js +1 -1
  41. package/dist/server/modules/file/file.resolver.js.map +1 -1
  42. package/dist/server/modules/file/multer-config.service.d.ts +0 -2
  43. package/dist/server/modules/file/multer-config.service.js +3 -22
  44. package/dist/server/modules/file/multer-config.service.js.map +1 -1
  45. package/dist/server/modules/user/user.controller.d.ts +19 -0
  46. package/dist/server/modules/user/user.controller.js +256 -0
  47. package/dist/server/modules/user/user.controller.js.map +1 -0
  48. package/dist/server/modules/user/user.model.d.ts +7 -3
  49. package/dist/server/modules/user/user.model.js +37 -24
  50. package/dist/server/modules/user/user.model.js.map +1 -1
  51. package/dist/server/modules/user/user.module.js +2 -1
  52. package/dist/server/modules/user/user.module.js.map +1 -1
  53. package/dist/tsconfig.build.tsbuildinfo +1 -1
  54. package/dist/types/graphql-upload.d.ts +25 -0
  55. package/package.json +41 -44
  56. package/src/core/common/decorators/unified-field.decorator.ts +49 -10
  57. package/src/core/common/helpers/gridfs.helper.ts +227 -0
  58. package/src/core/common/models/core-persistence.model.ts +3 -3
  59. package/src/core/common/services/brevo.service.ts +20 -18
  60. package/src/core/common/services/crud.service.ts +3 -3
  61. package/src/core/modules/file/core-file-info.model.ts +40 -22
  62. package/src/core/modules/file/core-file.controller.ts +3 -2
  63. package/src/core/modules/file/core-file.service.ts +49 -60
  64. package/src/core/modules/file/interfaces/file-upload.interface.ts +2 -1
  65. package/src/core/modules/user/core-user.model.ts +120 -78
  66. package/src/core/modules/user/core-user.service.ts +3 -3
  67. package/src/index.ts +1 -0
  68. package/src/main.ts +25 -0
  69. package/src/server/common/models/persistence.model.ts +15 -13
  70. package/src/server/modules/auth/auth.model.ts +7 -3
  71. package/src/server/modules/file/file.controller.ts +25 -7
  72. package/src/server/modules/file/file.resolver.ts +1 -2
  73. package/src/server/modules/file/multer-config.service.ts +6 -21
  74. package/src/server/modules/user/user.controller.ts +242 -0
  75. package/src/server/modules/user/user.model.ts +39 -26
  76. package/src/server/modules/user/user.module.ts +2 -1
  77. package/src/types/graphql-upload.d.ts +25 -0
@@ -14,8 +14,12 @@ export declare class User extends CoreUserModel implements PersistenceModel {
14
14
  map(input: any): this;
15
15
  securityCheck(user: User, force?: boolean): this;
16
16
  }
17
- export declare const UserSchema: Schema<User, import("mongoose").Model<User, any, any, any, Document<unknown, any, User> & User & Required<{
17
+ export declare const UserSchema: Schema<User, import("mongoose").Model<User, any, any, any, Document<unknown, any, User, any, {}> & User & Required<{
18
18
  _id: import("mongoose").Types.ObjectId;
19
- }>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, User, Document<unknown, {}, import("mongoose").FlatRecord<User>> & import("mongoose").FlatRecord<User> & Required<{
19
+ }> & {
20
+ __v: number;
21
+ }, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, User, Document<unknown, {}, import("mongoose").FlatRecord<User>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<User> & Required<{
20
22
  _id: import("mongoose").Types.ObjectId;
21
- }>>;
23
+ }> & {
24
+ __v: number;
25
+ }>;
@@ -16,6 +16,7 @@ const class_validator_1 = require("class-validator");
16
16
  const mongoose_2 = require("mongoose");
17
17
  const restricted_decorator_1 = require("../../../core/common/decorators/restricted.decorator");
18
18
  const translatable_decorator_1 = require("../../../core/common/decorators/translatable.decorator");
19
+ const unified_field_decorator_1 = require("../../../core/common/decorators/unified-field.decorator");
19
20
  const role_enum_1 = require("../../../core/common/enums/role.enum");
20
21
  const core_user_model_1 = require("../../../core/modules/user/core-user.model");
21
22
  let User = class User extends core_user_model_1.CoreUserModel {
@@ -56,51 +57,63 @@ let User = class User extends core_user_model_1.CoreUserModel {
56
57
  };
57
58
  exports.User = User;
58
59
  __decorate([
59
- (0, graphql_1.Field)({ description: 'URL to avatar file of the user', nullable: true }),
60
- (0, mongoose_1.Prop)(),
61
- (0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
60
+ (0, unified_field_decorator_1.UnifiedField)({
61
+ description: 'URL to avatar file of the user',
62
+ isOptional: true,
63
+ mongoose: true,
64
+ roles: role_enum_1.RoleEnum.S_EVERYONE,
65
+ }),
62
66
  __metadata("design:type", String)
63
67
  ], User.prototype, "avatar", void 0);
64
68
  __decorate([
65
- (0, graphql_1.Field)(() => String, {
69
+ (0, unified_field_decorator_1.UnifiedField)({
66
70
  description: 'ID of the user who created the object',
67
- nullable: true,
71
+ isOptional: true,
72
+ mongoose: { ref: 'User', type: mongoose_2.Schema.Types.ObjectId },
73
+ roles: role_enum_1.RoleEnum.S_EVERYONE,
74
+ type: () => String,
68
75
  }),
69
- (0, mongoose_1.Prop)({ ref: 'User', type: mongoose_2.Schema.Types.ObjectId }),
70
- (0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
71
76
  __metadata("design:type", String)
72
77
  ], User.prototype, "createdBy", void 0);
73
78
  __decorate([
74
- (0, graphql_1.Field)({ description: 'Email of the user', nullable: true }),
75
- (0, class_validator_1.IsEmail)(),
76
- (0, mongoose_1.Prop)({ lowercase: true, trim: true, unique: true }),
77
- (0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
79
+ (0, unified_field_decorator_1.UnifiedField)({
80
+ description: 'Email of the user',
81
+ isOptional: true,
82
+ mongoose: { lowercase: true, trim: true, unique: true },
83
+ roles: role_enum_1.RoleEnum.S_EVERYONE,
84
+ validator: () => [(0, class_validator_1.IsEmail)()],
85
+ }),
78
86
  __metadata("design:type", String)
79
87
  ], User.prototype, "email", void 0);
80
88
  __decorate([
81
- (0, graphql_1.Field)(() => [String], { description: 'Roles of the user', nullable: true }),
82
- (0, class_validator_1.IsOptional)(),
83
- (0, mongoose_1.Prop)([String]),
84
- (0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
89
+ (0, unified_field_decorator_1.UnifiedField)({
90
+ description: 'Roles of the user',
91
+ isArray: true,
92
+ isOptional: true,
93
+ mongoose: [String],
94
+ roles: role_enum_1.RoleEnum.S_EVERYONE,
95
+ type: () => String,
96
+ }),
85
97
  __metadata("design:type", Array)
86
98
  ], User.prototype, "roles", void 0);
87
99
  __decorate([
88
- (0, graphql_1.Field)(() => String, {
100
+ (0, translatable_decorator_1.Translatable)(),
101
+ (0, unified_field_decorator_1.UnifiedField)({
89
102
  description: 'Job title of user',
90
- nullable: true,
103
+ isOptional: true,
104
+ mongoose: true,
105
+ roles: role_enum_1.RoleEnum.S_EVERYONE,
91
106
  }),
92
- (0, mongoose_1.Prop)(),
93
- (0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
94
- (0, translatable_decorator_1.Translatable)(),
95
107
  __metadata("design:type", String)
96
108
  ], User.prototype, "jobTitle", void 0);
97
109
  __decorate([
98
- (0, graphql_1.Field)(() => String, {
110
+ (0, unified_field_decorator_1.UnifiedField)({
99
111
  description: 'ID of the user who last updated the object',
100
- nullable: true,
112
+ isOptional: true,
113
+ mongoose: { ref: 'User', type: mongoose_2.Schema.Types.ObjectId },
114
+ roles: role_enum_1.RoleEnum.S_USER,
115
+ type: () => String,
101
116
  }),
102
- (0, mongoose_1.Prop)({ ref: 'User', type: mongoose_2.Schema.Types.ObjectId }),
103
- (0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_USER),
104
117
  __metadata("design:type", String)
105
118
  ], User.prototype, "updatedBy", void 0);
106
119
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../../../src/server/modules/user/user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AAC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;QACtD,KAAK,EAAE,oBAAQ,CAAC,MAAM;QACtB,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM;KACnB,CAAC;;uCAC4B;AAI9B;IAFC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;IAC/C,IAAA,iCAAU,EAAC,oBAAQ,CAAC,UAAU,CAAC;;2CAC0B;eAhF/C,IAAI;IAHhB,IAAA,iBAAc,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;IACpC,IAAA,oBAAU,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC;IACnC,IAAA,iCAAU,EAAC,oBAAQ,CAAC,KAAK,CAAC;GACd,IAAI,CAkIhB;AAEY,QAAA,UAAU,GAAG,wBAAa,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC"}
@@ -12,6 +12,7 @@ const mongoose_1 = require("@nestjs/mongoose");
12
12
  const graphql_subscriptions_1 = require("graphql-subscriptions");
13
13
  const config_service_1 = require("../../../core/common/services/config.service");
14
14
  const avatar_controller_1 = require("./avatar.controller");
15
+ const user_controller_1 = require("./user.controller");
15
16
  const user_model_1 = require("./user.model");
16
17
  const user_resolver_1 = require("./user.resolver");
17
18
  const user_service_1 = require("./user.service");
@@ -20,7 +21,7 @@ let UserModule = class UserModule {
20
21
  exports.UserModule = UserModule;
21
22
  exports.UserModule = UserModule = __decorate([
22
23
  (0, common_1.Module)({
23
- controllers: [avatar_controller_1.AvatarController],
24
+ controllers: [avatar_controller_1.AvatarController, user_controller_1.UserController],
24
25
  exports: [mongoose_1.MongooseModule, user_resolver_1.UserResolver, user_service_1.UserService, 'USER_CLASS'],
25
26
  imports: [mongoose_1.MongooseModule.forFeature([{ name: user_model_1.User.name, schema: user_model_1.UserSchema }])],
26
27
  providers: [
@@ -1 +1 @@
1
- {"version":3,"file":"user.module.js","sourceRoot":"","sources":["../../../../src/server/modules/user/user.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,+CAAkD;AAClD,iEAA+C;AAE/C,iFAA6E;AAC7E,2DAAuD;AACvD,6CAAgD;AAChD,mDAA+C;AAC/C,iDAA6C;AAuBtC,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IAlBtB,IAAA,eAAM,EAAC;QACN,WAAW,EAAE,CAAC,oCAAgB,CAAC;QAC/B,OAAO,EAAE,CAAC,yBAAc,EAAE,4BAAY,EAAE,0BAAW,EAAE,YAAY,CAAC;QAClE,OAAO,EAAE,CAAC,yBAAc,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,iBAAI,CAAC,IAAI,EAAE,MAAM,EAAE,uBAAU,EAAE,CAAC,CAAC,CAAC;QAC/E,SAAS,EAAE;YACT,4BAAY;YACZ,8BAAa;YACb,0BAAW;YACX;gBACE,OAAO,EAAE,YAAY;gBACrB,QAAQ,EAAE,iBAAI;aACf;YACD;gBACE,OAAO,EAAE,SAAS;gBAClB,QAAQ,EAAE,IAAI,8BAAM,EAAE;aACvB;SACF;KACF,CAAC;GACW,UAAU,CAAG"}
1
+ {"version":3,"file":"user.module.js","sourceRoot":"","sources":["../../../../src/server/modules/user/user.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,+CAAkD;AAClD,iEAA+C;AAE/C,iFAA6E;AAC7E,2DAAuD;AACvD,uDAAmD;AACnD,6CAAgD;AAChD,mDAA+C;AAC/C,iDAA6C;AAuBtC,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IAlBtB,IAAA,eAAM,EAAC;QACN,WAAW,EAAE,CAAC,oCAAgB,EAAE,gCAAc,CAAC;QAC/C,OAAO,EAAE,CAAC,yBAAc,EAAE,4BAAY,EAAE,0BAAW,EAAE,YAAY,CAAC;QAClE,OAAO,EAAE,CAAC,yBAAc,CAAC,UAAU,CAAC,CAAC,EAAE,IAAI,EAAE,iBAAI,CAAC,IAAI,EAAE,MAAM,EAAE,uBAAU,EAAE,CAAC,CAAC,CAAC;QAC/E,SAAS,EAAE;YACT,4BAAY;YACZ,8BAAa;YACb,0BAAW;YACX;gBACE,OAAO,EAAE,YAAY;gBACrB,QAAQ,EAAE,iBAAI;aACf;YACD;gBACE,OAAO,EAAE,SAAS;gBAClB,QAAQ,EAAE,IAAI,8BAAM,EAAE;aACvB;SACF;KACF,CAAC;GACW,UAAU,CAAG"}