@lenne.tech/nest-server 10.2.16 → 10.3.1
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/context.helper.d.ts +1 -0
- package/dist/core/common/inputs/combined-filter.input.js +0 -5
- package/dist/core/common/inputs/combined-filter.input.js.map +1 -1
- package/dist/core/common/inputs/filter.input.js +0 -5
- package/dist/core/common/inputs/filter.input.js.map +1 -1
- package/dist/core/common/inputs/single-filter.input.js +0 -10
- package/dist/core/common/inputs/single-filter.input.js.map +1 -1
- package/dist/core/common/inputs/sort.input.js +0 -5
- package/dist/core/common/inputs/sort.input.js.map +1 -1
- package/dist/core/common/models/core-persistence.model.js +0 -1
- package/dist/core/common/models/core-persistence.model.js.map +1 -1
- package/dist/core/modules/auth/core-auth.controller.js +0 -7
- package/dist/core/modules/auth/core-auth.controller.js.map +1 -1
- package/dist/core/modules/auth/core-auth.model.js +0 -6
- package/dist/core/modules/auth/core-auth.model.js.map +1 -1
- package/dist/core/modules/auth/core-auth.resolver.js +0 -7
- package/dist/core/modules/auth/core-auth.resolver.js.map +1 -1
- package/dist/core/modules/auth/inputs/core-auth-sign-in.input.js +0 -7
- package/dist/core/modules/auth/inputs/core-auth-sign-in.input.js.map +1 -1
- package/dist/core/modules/auth/inputs/core-auth-sign-up.input.js +0 -3
- package/dist/core/modules/auth/inputs/core-auth-sign-up.input.js.map +1 -1
- package/dist/core/modules/auth/strategies/jwt-refresh.strategy.d.ts +1 -0
- package/dist/core/modules/file/core-file-info.model.js +0 -14
- package/dist/core/modules/file/core-file-info.model.js.map +1 -1
- package/dist/core/modules/file/core-file.controller.js +0 -4
- package/dist/core/modules/file/core-file.controller.js.map +1 -1
- package/dist/core/modules/file/core-file.resolver.js +0 -7
- package/dist/core/modules/file/core-file.resolver.js.map +1 -1
- package/dist/core/modules/health-check/core-health-check-result.model.js +0 -7
- package/dist/core/modules/health-check/core-health-check-result.model.js.map +1 -1
- package/dist/core/modules/health-check/core-health-check.controller.js +0 -4
- package/dist/core/modules/health-check/core-health-check.controller.js.map +1 -1
- package/dist/core/modules/user/core-user.model.js +0 -15
- package/dist/core/modules/user/core-user.model.js.map +1 -1
- package/dist/core/modules/user/inputs/core-user-create.input.js +0 -4
- package/dist/core/modules/user/inputs/core-user-create.input.js.map +1 -1
- package/dist/core/modules/user/inputs/core-user.input.js +0 -6
- package/dist/core/modules/user/inputs/core-user.input.js.map +1 -1
- package/dist/server/common/models/persistence.model.js +0 -5
- package/dist/server/common/models/persistence.model.js.map +1 -1
- package/dist/server/modules/auth/auth.controller.js +0 -3
- package/dist/server/modules/auth/auth.controller.js.map +1 -1
- package/dist/server/modules/auth/auth.model.js +0 -4
- package/dist/server/modules/auth/auth.model.js.map +1 -1
- package/dist/server/modules/auth/auth.resolver.js +0 -5
- package/dist/server/modules/auth/auth.resolver.js.map +1 -1
- package/dist/server/modules/auth/inputs/auth-sign-in.input.js +0 -3
- package/dist/server/modules/auth/inputs/auth-sign-in.input.js.map +1 -1
- package/dist/server/modules/auth/inputs/auth-sign-up.input.js +0 -5
- package/dist/server/modules/auth/inputs/auth-sign-up.input.js.map +1 -1
- package/dist/server/modules/file/file-info.model.js +0 -3
- package/dist/server/modules/file/file-info.model.js.map +1 -1
- package/dist/server/modules/file/file.controller.js +0 -4
- package/dist/server/modules/file/file.controller.js.map +1 -1
- package/dist/server/modules/user/avatar.controller.js +0 -1
- package/dist/server/modules/user/avatar.controller.js.map +1 -1
- package/dist/server/modules/user/inputs/user-create.input.js +0 -3
- package/dist/server/modules/user/inputs/user-create.input.js.map +1 -1
- package/dist/server/modules/user/inputs/user.input.js +0 -3
- package/dist/server/modules/user/inputs/user.input.js.map +1 -1
- package/dist/server/modules/user/outputs/find-and-count-users-result.output.js +0 -5
- package/dist/server/modules/user/outputs/find-and-count-users-result.output.js.map +1 -1
- package/dist/server/modules/user/user.model.d.ts +0 -1
- package/dist/server/modules/user/user.model.js +0 -14
- package/dist/server/modules/user/user.model.js.map +1 -1
- package/dist/server/server.controller.js +0 -2
- package/dist/server/server.controller.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +44 -44
- package/src/core/common/inputs/combined-filter.input.ts +0 -5
- package/src/core/common/inputs/filter.input.ts +0 -5
- package/src/core/common/inputs/single-filter.input.ts +0 -10
- package/src/core/common/inputs/sort.input.ts +0 -5
- package/src/core/common/models/core-persistence.model.ts +0 -1
- package/src/core/modules/auth/core-auth.controller.ts +0 -7
- package/src/core/modules/auth/core-auth.model.ts +0 -6
- package/src/core/modules/auth/core-auth.resolver.ts +0 -7
- package/src/core/modules/auth/inputs/core-auth-sign-in.input.ts +0 -7
- package/src/core/modules/auth/inputs/core-auth-sign-up.input.ts +0 -3
- package/src/core/modules/file/core-file-info.model.ts +0 -10
- package/src/core/modules/file/core-file.controller.ts +0 -4
- package/src/core/modules/file/core-file.resolver.ts +0 -7
- package/src/core/modules/health-check/core-health-check-result.model.ts +0 -7
- package/src/core/modules/health-check/core-health-check.controller.ts +0 -4
- package/src/core/modules/user/core-user.model.ts +0 -15
- package/src/core/modules/user/inputs/core-user-create.input.ts +0 -4
- package/src/core/modules/user/inputs/core-user.input.ts +0 -6
- package/src/server/common/models/persistence.model.ts +0 -5
- package/src/server/modules/auth/auth.controller.ts +0 -3
- package/src/server/modules/auth/auth.model.ts +0 -4
- package/src/server/modules/auth/auth.resolver.ts +0 -5
- package/src/server/modules/auth/inputs/auth-sign-in.input.ts +0 -3
- package/src/server/modules/auth/inputs/auth-sign-up.input.ts +0 -5
- package/src/server/modules/file/file-info.model.ts +0 -3
- package/src/server/modules/file/file.controller.ts +0 -4
- package/src/server/modules/user/avatar.controller.ts +0 -1
- package/src/server/modules/user/inputs/user-create.input.ts +0 -3
- package/src/server/modules/user/inputs/user.input.ts +0 -3
- package/src/server/modules/user/outputs/find-and-count-users-result.output.ts +0 -5
- package/src/server/modules/user/user.model.ts +0 -15
- package/src/server/server.controller.ts +0 -2
|
@@ -15,8 +15,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.CoreFileResolver = void 0;
|
|
16
16
|
const graphql_1 = require("@nestjs/graphql");
|
|
17
17
|
const GraphQLUpload = require("graphql-upload/GraphQLUpload.js");
|
|
18
|
-
const roles_decorator_1 = require("../../common/decorators/roles.decorator");
|
|
19
|
-
const role_enum_1 = require("../../common/enums/role.enum");
|
|
20
18
|
const core_file_service_1 = require("./core-file.service");
|
|
21
19
|
const core_file_info_model_1 = require("./core-file-info.model");
|
|
22
20
|
let CoreFileResolver = class CoreFileResolver {
|
|
@@ -38,7 +36,6 @@ let CoreFileResolver = class CoreFileResolver {
|
|
|
38
36
|
};
|
|
39
37
|
exports.CoreFileResolver = CoreFileResolver;
|
|
40
38
|
__decorate([
|
|
41
|
-
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
42
39
|
(0, graphql_1.Query)(() => core_file_info_model_1.CoreFileInfo, { nullable: true }),
|
|
43
40
|
__param(0, (0, graphql_1.Args)({ name: 'filename', type: () => String })),
|
|
44
41
|
__metadata("design:type", Function),
|
|
@@ -46,7 +43,6 @@ __decorate([
|
|
|
46
43
|
__metadata("design:returntype", Promise)
|
|
47
44
|
], CoreFileResolver.prototype, "getFileInfo", null);
|
|
48
45
|
__decorate([
|
|
49
|
-
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
50
46
|
(0, graphql_1.Mutation)(() => core_file_info_model_1.CoreFileInfo),
|
|
51
47
|
__param(0, (0, graphql_1.Args)({ name: 'filename', type: () => String })),
|
|
52
48
|
__metadata("design:type", Function),
|
|
@@ -54,7 +50,6 @@ __decorate([
|
|
|
54
50
|
__metadata("design:returntype", Promise)
|
|
55
51
|
], CoreFileResolver.prototype, "deleteFile", null);
|
|
56
52
|
__decorate([
|
|
57
|
-
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
58
53
|
(0, graphql_1.Mutation)(() => core_file_info_model_1.CoreFileInfo),
|
|
59
54
|
__param(0, (0, graphql_1.Args)({ name: 'file', type: () => GraphQLUpload })),
|
|
60
55
|
__metadata("design:type", Function),
|
|
@@ -62,7 +57,6 @@ __decorate([
|
|
|
62
57
|
__metadata("design:returntype", Promise)
|
|
63
58
|
], CoreFileResolver.prototype, "uploadFile", null);
|
|
64
59
|
__decorate([
|
|
65
|
-
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
66
60
|
(0, graphql_1.Mutation)(() => [core_file_info_model_1.CoreFileInfo]),
|
|
67
61
|
__param(0, (0, graphql_1.Args)({ name: 'files', type: () => [GraphQLUpload] })),
|
|
68
62
|
__metadata("design:type", Function),
|
|
@@ -70,7 +64,6 @@ __decorate([
|
|
|
70
64
|
__metadata("design:returntype", Promise)
|
|
71
65
|
], CoreFileResolver.prototype, "uploadFiles", null);
|
|
72
66
|
exports.CoreFileResolver = CoreFileResolver = __decorate([
|
|
73
|
-
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.ADMIN),
|
|
74
67
|
(0, graphql_1.Resolver)(),
|
|
75
68
|
__metadata("design:paramtypes", [core_file_service_1.CoreFileService])
|
|
76
69
|
], CoreFileResolver);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-file.resolver.js","sourceRoot":"","sources":["../../../../src/core/modules/file/core-file.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAkE;AAClE,iEAAiE;AAEjE,
|
|
1
|
+
{"version":3,"file":"core-file.resolver.js","sourceRoot":"","sources":["../../../../src/core/modules/file/core-file.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAkE;AAClE,iEAAiE;AAEjE,2DAAsD;AACtD,iEAAsD;AAO/C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAI3B,YAA+B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAUzD,AA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AAA,cAAI,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,aAAa,CAAC,EAAE,CAAC,CAAA;;;;mDAEtE;2BA5CU,gBAAgB;IAD5B,IAAA,kBAAQ,GAAE;qCAKmC,mCAAe;GAJhD,gBAAgB,CA6C5B"}
|
|
@@ -11,8 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CoreHealthCheckResult = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
const restricted_decorator_1 = require("../../common/decorators/restricted.decorator");
|
|
15
|
-
const role_enum_1 = require("../../common/enums/role.enum");
|
|
16
14
|
const core_model_model_1 = require("../../common/models/core-model.model");
|
|
17
15
|
const json_scalar_1 = require("../../common/scalars/json.scalar");
|
|
18
16
|
let CoreHealthCheckResult = class CoreHealthCheckResult extends core_model_model_1.CoreModel {
|
|
@@ -26,12 +24,10 @@ let CoreHealthCheckResult = class CoreHealthCheckResult extends core_model_model
|
|
|
26
24
|
};
|
|
27
25
|
exports.CoreHealthCheckResult = CoreHealthCheckResult;
|
|
28
26
|
__decorate([
|
|
29
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
30
27
|
(0, graphql_1.Field)({ description: 'The overall status of the Health Check', nullable: false }),
|
|
31
28
|
__metadata("design:type", String)
|
|
32
29
|
], CoreHealthCheckResult.prototype, "status", void 0);
|
|
33
30
|
__decorate([
|
|
34
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
35
31
|
(0, graphql_1.Field)(type => json_scalar_1.JSON, {
|
|
36
32
|
description: 'The info object contains information of each health indicator which is of status “up”',
|
|
37
33
|
nullable: true,
|
|
@@ -39,7 +35,6 @@ __decorate([
|
|
|
39
35
|
__metadata("design:type", json_scalar_1.JSON)
|
|
40
36
|
], CoreHealthCheckResult.prototype, "info", void 0);
|
|
41
37
|
__decorate([
|
|
42
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
43
38
|
(0, graphql_1.Field)(type => json_scalar_1.JSON, {
|
|
44
39
|
description: 'The error object contains information of each health indicator which is of status “down”',
|
|
45
40
|
nullable: true,
|
|
@@ -47,7 +42,6 @@ __decorate([
|
|
|
47
42
|
__metadata("design:type", json_scalar_1.JSON)
|
|
48
43
|
], CoreHealthCheckResult.prototype, "error", void 0);
|
|
49
44
|
__decorate([
|
|
50
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
51
45
|
(0, graphql_1.Field)(type => json_scalar_1.JSON, {
|
|
52
46
|
description: 'The details object contains information of every health indicator',
|
|
53
47
|
nullable: false,
|
|
@@ -55,7 +49,6 @@ __decorate([
|
|
|
55
49
|
__metadata("design:type", json_scalar_1.JSON)
|
|
56
50
|
], CoreHealthCheckResult.prototype, "details", void 0);
|
|
57
51
|
exports.CoreHealthCheckResult = CoreHealthCheckResult = __decorate([
|
|
58
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
59
52
|
(0, graphql_1.ObjectType)({ description: 'Health check result' })
|
|
60
53
|
], CoreHealthCheckResult);
|
|
61
54
|
//# sourceMappingURL=core-health-check-result.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-health-check-result.model.js","sourceRoot":"","sources":["../../../../src/core/modules/health-check/core-health-check-result.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AAEpD,
|
|
1
|
+
{"version":3,"file":"core-health-check-result.model.js","sourceRoot":"","sources":["../../../../src/core/modules/health-check/core-health-check-result.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AAEpD,2EAAiE;AACjE,kEAAwD;AAMjD,IAAe,qBAAqB,GAApC,MAAe,qBAAsB,SAAQ,4BAAS;IAAtD;;QASL,WAAM,GAAqC,SAAS,CAAC;QASrD,SAAI,GAAS,SAAS,CAAC;QASvB,UAAK,GAAS,SAAS,CAAC;QASxB,YAAO,GAAS,SAAS,CAAC;IAC5B,CAAC;CAAA,CAAA;AArCqB,sDAAqB;AASzC;IADC,IAAA,eAAK,EAAC,EAAE,WAAW,EAAE,wCAAwC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;qDAC7B;AASrD;IAJC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAI,EAAE;QACnB,WAAW,EAAE,uFAAuF;QACpG,QAAQ,EAAE,IAAI;KACf,CAAC;8BACI,kBAAI;mDAAa;AASvB;IAJC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAI,EAAE;QACnB,WAAW,EAAE,0FAA0F;QACvG,QAAQ,EAAE,IAAI;KACf,CAAC;8BACK,kBAAI;oDAAa;AASxB;IAJC,IAAA,eAAK,EAAC,IAAI,CAAC,EAAE,CAAC,kBAAI,EAAE;QACnB,WAAW,EAAE,mEAAmE;QAChF,QAAQ,EAAE,KAAK;KAChB,CAAC;8BACO,kBAAI;sDAAa;gCApCN,qBAAqB;IAD1C,IAAA,oBAAU,EAAC,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;GAC7B,qBAAqB,CAqC1C"}
|
|
@@ -11,8 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CoreHealthCheckController = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
|
-
const roles_decorator_1 = require("../../common/decorators/roles.decorator");
|
|
15
|
-
const role_enum_1 = require("../../common/enums/role.enum");
|
|
16
14
|
const core_health_check_service_1 = require("./core-health-check.service");
|
|
17
15
|
let CoreHealthCheckController = class CoreHealthCheckController {
|
|
18
16
|
constructor(healthCheckService) {
|
|
@@ -24,14 +22,12 @@ let CoreHealthCheckController = class CoreHealthCheckController {
|
|
|
24
22
|
};
|
|
25
23
|
exports.CoreHealthCheckController = CoreHealthCheckController;
|
|
26
24
|
__decorate([
|
|
27
|
-
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
28
25
|
(0, common_1.Get)('health-check'),
|
|
29
26
|
__metadata("design:type", Function),
|
|
30
27
|
__metadata("design:paramtypes", []),
|
|
31
28
|
__metadata("design:returntype", Promise)
|
|
32
29
|
], CoreHealthCheckController.prototype, "healthCheck", null);
|
|
33
30
|
exports.CoreHealthCheckController = CoreHealthCheckController = __decorate([
|
|
34
|
-
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.ADMIN),
|
|
35
31
|
(0, common_1.Controller)(),
|
|
36
32
|
__metadata("design:paramtypes", [core_health_check_service_1.CoreHealthCheckService])
|
|
37
33
|
], CoreHealthCheckController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-health-check.controller.js","sourceRoot":"","sources":["../../../../src/core/modules/health-check/core-health-check.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAiD;AAEjD,
|
|
1
|
+
{"version":3,"file":"core-health-check.controller.js","sourceRoot":"","sources":["../../../../src/core/modules/health-check/core-health-check.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAiD;AAEjD,2EAAqE;AAO9D,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACpC,YAA+B,kBAA0C;QAA1C,uBAAkB,GAAlB,kBAAkB,CAAwB;IAAG,CAAC;IAWvE,AAAN,KAAK,CAAC,WAAW;QACf,OAAO,IAAI,CAAC,kBAAkB,CAAC,WAAW,EAAE,CAAC;IAC/C,CAAC;CACF,CAAA;AAfY,8DAAyB;AAY9B;IADL,IAAA,YAAG,EAAC,cAAc,CAAC;;;;4DAGnB;oCAdU,yBAAyB;IADrC,IAAA,mBAAU,GAAE;qCAEwC,kDAAsB;GAD9D,yBAAyB,CAerC"}
|
|
@@ -13,8 +13,6 @@ exports.CoreUserModel = void 0;
|
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
14
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
|
-
const restricted_decorator_1 = require("../../common/decorators/restricted.decorator");
|
|
17
|
-
const role_enum_1 = require("../../common/enums/role.enum");
|
|
18
16
|
const core_persistence_model_1 = require("../../common/models/core-persistence.model");
|
|
19
17
|
let CoreUserModel = class CoreUserModel extends core_persistence_model_1.CorePersistenceModel {
|
|
20
18
|
constructor() {
|
|
@@ -62,83 +60,70 @@ let CoreUserModel = class CoreUserModel extends core_persistence_model_1.CorePer
|
|
|
62
60
|
};
|
|
63
61
|
exports.CoreUserModel = CoreUserModel;
|
|
64
62
|
__decorate([
|
|
65
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
66
63
|
(0, graphql_1.Field)({ description: 'Email of the user', nullable: true }),
|
|
67
64
|
(0, class_validator_1.IsEmail)(),
|
|
68
65
|
(0, mongoose_1.Prop)({ lowercase: true, trim: true, unique: true }),
|
|
69
66
|
__metadata("design:type", String)
|
|
70
67
|
], CoreUserModel.prototype, "email", void 0);
|
|
71
68
|
__decorate([
|
|
72
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
73
69
|
(0, graphql_1.Field)({ description: 'First name of the user', nullable: true }),
|
|
74
70
|
(0, class_validator_1.IsOptional)(),
|
|
75
71
|
(0, mongoose_1.Prop)(),
|
|
76
72
|
__metadata("design:type", String)
|
|
77
73
|
], CoreUserModel.prototype, "firstName", void 0);
|
|
78
74
|
__decorate([
|
|
79
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
80
75
|
(0, graphql_1.Field)({ description: 'Last name of the user', nullable: true }),
|
|
81
76
|
(0, class_validator_1.IsOptional)(),
|
|
82
77
|
(0, mongoose_1.Prop)(),
|
|
83
78
|
__metadata("design:type", String)
|
|
84
79
|
], CoreUserModel.prototype, "lastName", void 0);
|
|
85
80
|
__decorate([
|
|
86
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_NO_ONE),
|
|
87
81
|
(0, mongoose_1.Prop)(),
|
|
88
82
|
__metadata("design:type", String)
|
|
89
83
|
], CoreUserModel.prototype, "password", void 0);
|
|
90
84
|
__decorate([
|
|
91
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
92
85
|
(0, graphql_1.Field)(type => [String], { description: 'Roles of the user', nullable: true }),
|
|
93
86
|
(0, class_validator_1.IsOptional)(),
|
|
94
87
|
(0, mongoose_1.Prop)([String]),
|
|
95
88
|
__metadata("design:type", Array)
|
|
96
89
|
], CoreUserModel.prototype, "roles", void 0);
|
|
97
90
|
__decorate([
|
|
98
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
99
91
|
(0, graphql_1.Field)({ description: 'Username of the user', nullable: true }),
|
|
100
92
|
(0, class_validator_1.IsOptional)(),
|
|
101
93
|
(0, mongoose_1.Prop)(),
|
|
102
94
|
__metadata("design:type", String)
|
|
103
95
|
], CoreUserModel.prototype, "username", void 0);
|
|
104
96
|
__decorate([
|
|
105
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_NO_ONE),
|
|
106
97
|
(0, class_validator_1.IsOptional)(),
|
|
107
98
|
(0, mongoose_1.Prop)(),
|
|
108
99
|
__metadata("design:type", String)
|
|
109
100
|
], CoreUserModel.prototype, "passwordResetToken", void 0);
|
|
110
101
|
__decorate([
|
|
111
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_NO_ONE),
|
|
112
102
|
(0, class_validator_1.IsOptional)(),
|
|
113
103
|
(0, mongoose_1.Prop)((0, mongoose_1.raw)({})),
|
|
114
104
|
__metadata("design:type", Object)
|
|
115
105
|
], CoreUserModel.prototype, "refreshTokens", void 0);
|
|
116
106
|
__decorate([
|
|
117
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_NO_ONE),
|
|
118
107
|
(0, class_validator_1.IsOptional)(),
|
|
119
108
|
(0, mongoose_1.Prop)((0, mongoose_1.raw)({})),
|
|
120
109
|
__metadata("design:type", Object)
|
|
121
110
|
], CoreUserModel.prototype, "tempTokens", void 0);
|
|
122
111
|
__decorate([
|
|
123
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_NO_ONE),
|
|
124
112
|
(0, class_validator_1.IsOptional)(),
|
|
125
113
|
(0, mongoose_1.Prop)(),
|
|
126
114
|
__metadata("design:type", String)
|
|
127
115
|
], CoreUserModel.prototype, "verificationToken", void 0);
|
|
128
116
|
__decorate([
|
|
129
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
130
117
|
(0, graphql_1.Field)(type => Boolean, { description: 'Verification state of the user', nullable: true }),
|
|
131
118
|
(0, mongoose_1.Prop)({ type: Boolean }),
|
|
132
119
|
__metadata("design:type", Boolean)
|
|
133
120
|
], CoreUserModel.prototype, "verified", void 0);
|
|
134
121
|
__decorate([
|
|
135
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
136
122
|
(0, graphql_1.Field)({ description: 'Verified date', nullable: true }),
|
|
137
123
|
(0, mongoose_1.Prop)(),
|
|
138
124
|
__metadata("design:type", Date)
|
|
139
125
|
], CoreUserModel.prototype, "verifiedAt", void 0);
|
|
140
126
|
exports.CoreUserModel = CoreUserModel = __decorate([
|
|
141
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
142
127
|
(0, graphql_1.ObjectType)({ description: 'User', isAbstract: true }),
|
|
143
128
|
(0, mongoose_1.Schema)({ timestamps: true })
|
|
144
129
|
], CoreUserModel);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-user.model.js","sourceRoot":"","sources":["../../../../src/core/modules/user/core-user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,+CAAuE;AACvE,qDAAsD;AAGtD,
|
|
1
|
+
{"version":3,"file":"core-user.model.js","sourceRoot":"","sources":["../../../../src/core/modules/user/core-user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,+CAAuE;AACvE,qDAAsD;AAGtD,uFAAkF;AAU3E,IAAe,aAAa,GAA5B,MAAe,aAAc,SAAQ,6CAAoB;IAAzD;;QAWL,UAAK,GAAW,SAAS,CAAC;QAQ1B,cAAS,GAAW,SAAS,CAAC;QAQ9B,aAAQ,GAAW,SAAS,CAAC;QAM7B,aAAQ,GAAW,SAAS,CAAC;QAQ7B,UAAK,GAAa,SAAS,CAAC;QAQ5B,aAAQ,GAAW,SAAS,CAAC;QAO7B,uBAAkB,GAAW,SAAS,CAAC;QASvC,kBAAa,GAAkC,SAAS,CAAC;QAQzD,eAAU,GAA6E,SAAS,CAAC;QAOjG,sBAAiB,GAAW,SAAS,CAAC;QAOtC,aAAQ,GAAY,SAAS,CAAC;QAO9B,eAAU,GAAS,SAAS,CAAC;IAkD/B,CAAC;IAzCQ,OAAO,CAAC,KAAwB;QACrC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC;QAClB,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACzC,OAAO,KAAK,CAAC;QACf,CAAC;QACD,OAAO,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAA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Aa;IAFlC,IAAA,oBAAU,EAAC,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;IACrD,IAAA,iBAAc,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GACf,aAAa,CAgJlC"}
|
|
@@ -12,8 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CoreUserCreateInput = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const restricted_decorator_1 = require("../../../common/decorators/restricted.decorator");
|
|
16
|
-
const role_enum_1 = require("../../../common/enums/role.enum");
|
|
17
15
|
const core_user_input_1 = require("./core-user.input");
|
|
18
16
|
let CoreUserCreateInput = class CoreUserCreateInput extends core_user_input_1.CoreUserInput {
|
|
19
17
|
constructor() {
|
|
@@ -23,13 +21,11 @@ let CoreUserCreateInput = class CoreUserCreateInput extends core_user_input_1.Co
|
|
|
23
21
|
};
|
|
24
22
|
exports.CoreUserCreateInput = CoreUserCreateInput;
|
|
25
23
|
__decorate([
|
|
26
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
27
24
|
(0, graphql_1.Field)({ description: 'Email of the user', nullable: false }),
|
|
28
25
|
(0, class_validator_1.IsEmail)(),
|
|
29
26
|
__metadata("design:type", String)
|
|
30
27
|
], CoreUserCreateInput.prototype, "email", void 0);
|
|
31
28
|
exports.CoreUserCreateInput = CoreUserCreateInput = __decorate([
|
|
32
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
33
29
|
(0, graphql_1.InputType)({ description: 'User input to create a new user', isAbstract: true })
|
|
34
30
|
], CoreUserCreateInput);
|
|
35
31
|
//# sourceMappingURL=core-user-create.input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-user-create.input.js","sourceRoot":"","sources":["../../../../../src/core/modules/user/inputs/core-user-create.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AACnD,qDAA0C;AAE1C,
|
|
1
|
+
{"version":3,"file":"core-user-create.input.js","sourceRoot":"","sources":["../../../../../src/core/modules/user/inputs/core-user-create.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AACnD,qDAA0C;AAE1C,uDAAkD;AAU3C,IAAe,mBAAmB,GAAlC,MAAe,mBAAoB,SAAQ,+BAAa;IAAxD;;QAGI,UAAK,GAAW,SAAS,CAAC;IACrC,CAAC;CAAA,CAAA;AAJqB,kDAAmB;AAG9B;IAFR,IAAA,eAAK,EAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC5D,IAAA,yBAAO,GAAE;;kDACyB;8BAHf,mBAAmB;IADxC,IAAA,mBAAS,EAAC,EAAE,WAAW,EAAE,iCAAiC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GAC1D,mBAAmB,CAIxC"}
|
|
@@ -29,20 +29,17 @@ let CoreUserInput = class CoreUserInput extends core_input_input_1.CoreInput {
|
|
|
29
29
|
};
|
|
30
30
|
exports.CoreUserInput = CoreUserInput;
|
|
31
31
|
__decorate([
|
|
32
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
33
32
|
(0, graphql_1.Field)({ description: 'Email of the user', nullable: true }),
|
|
34
33
|
(0, class_validator_1.IsOptional)(),
|
|
35
34
|
(0, class_validator_1.IsEmail)(),
|
|
36
35
|
__metadata("design:type", String)
|
|
37
36
|
], CoreUserInput.prototype, "email", void 0);
|
|
38
37
|
__decorate([
|
|
39
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
40
38
|
(0, graphql_1.Field)({ description: 'First name of the user', nullable: true }),
|
|
41
39
|
(0, class_validator_1.IsOptional)(),
|
|
42
40
|
__metadata("design:type", String)
|
|
43
41
|
], CoreUserInput.prototype, "firstName", void 0);
|
|
44
42
|
__decorate([
|
|
45
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
46
43
|
(0, graphql_1.Field)({ description: 'Last name of the user', nullable: true }),
|
|
47
44
|
(0, class_validator_1.IsOptional)(),
|
|
48
45
|
__metadata("design:type", String)
|
|
@@ -54,19 +51,16 @@ __decorate([
|
|
|
54
51
|
__metadata("design:type", Array)
|
|
55
52
|
], CoreUserInput.prototype, "roles", void 0);
|
|
56
53
|
__decorate([
|
|
57
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
58
54
|
(0, graphql_1.Field)({ description: 'Username / alias of the user', nullable: true }),
|
|
59
55
|
(0, class_validator_1.IsOptional)(),
|
|
60
56
|
__metadata("design:type", String)
|
|
61
57
|
], CoreUserInput.prototype, "username", void 0);
|
|
62
58
|
__decorate([
|
|
63
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
64
59
|
(0, graphql_1.Field)({ description: 'Password of the user', nullable: true }),
|
|
65
60
|
(0, class_validator_1.IsOptional)(),
|
|
66
61
|
__metadata("design:type", String)
|
|
67
62
|
], CoreUserInput.prototype, "password", void 0);
|
|
68
63
|
exports.CoreUserInput = CoreUserInput = __decorate([
|
|
69
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
70
64
|
(0, graphql_1.InputType)({ description: 'User input', isAbstract: true })
|
|
71
65
|
], CoreUserInput);
|
|
72
66
|
//# sourceMappingURL=core-user.input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-user.input.js","sourceRoot":"","sources":["../../../../../src/core/modules/user/inputs/core-user.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AACnD,qDAAsD;AAEtD,0FAA6E;AAC7E,+EAAsE;AACtE,+DAA2D;AAC3D,8EAAoE;
|
|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WAAW,EAAE,8BAA8B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACtE,IAAA,4BAAU,GAAE;;+CACiB;AAO9B;IAFC,IAAA,eAAK,EAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC9D,IAAA,4BAAU,GAAE;;+CACiB;wBA3CV,aAAa;IADlC,IAAA,mBAAS,EAAC,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GACrC,aAAa,CA4ClC"}
|
|
@@ -12,8 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.PersistenceModel = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
14
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
15
|
-
const restricted_decorator_1 = require("../../../core/common/decorators/restricted.decorator");
|
|
16
|
-
const role_enum_1 = require("../../../core/common/enums/role.enum");
|
|
17
15
|
const core_persistence_model_1 = require("../../../core/common/models/core-persistence.model");
|
|
18
16
|
const user_model_1 = require("../../modules/user/user.model");
|
|
19
17
|
const mongoose = require("mongoose");
|
|
@@ -34,7 +32,6 @@ let PersistenceModel = class PersistenceModel extends core_persistence_model_1.C
|
|
|
34
32
|
};
|
|
35
33
|
exports.PersistenceModel = PersistenceModel;
|
|
36
34
|
__decorate([
|
|
37
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.ADMIN),
|
|
38
35
|
(0, graphql_1.Field)(() => user_model_1.User, {
|
|
39
36
|
description: 'ID of the user who created the object',
|
|
40
37
|
nullable: true,
|
|
@@ -43,7 +40,6 @@ __decorate([
|
|
|
43
40
|
__metadata("design:type", Object)
|
|
44
41
|
], PersistenceModel.prototype, "createdBy", void 0);
|
|
45
42
|
__decorate([
|
|
46
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.ADMIN),
|
|
47
43
|
(0, graphql_1.Field)(() => user_model_1.User, {
|
|
48
44
|
description: 'ID of the user who updated the object',
|
|
49
45
|
nullable: true,
|
|
@@ -52,7 +48,6 @@ __decorate([
|
|
|
52
48
|
__metadata("design:type", Object)
|
|
53
49
|
], PersistenceModel.prototype, "updatedBy", void 0);
|
|
54
50
|
exports.PersistenceModel = PersistenceModel = __decorate([
|
|
55
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.ADMIN),
|
|
56
51
|
(0, graphql_1.ObjectType)({
|
|
57
52
|
description: 'Persistence model which will be saved in DB',
|
|
58
53
|
isAbstract: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persistence.model.js","sourceRoot":"","sources":["../../../../src/server/common/models/persistence.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,+CAAwC;AAGxC,+
|
|
1
|
+
{"version":3,"file":"persistence.model.js","sourceRoot":"","sources":["../../../../src/server/common/models/persistence.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,+CAAwC;AAGxC,+FAA0F;AAC1F,8DAAqD;AAErD,qCAAsC;AAW/B,IAAe,gBAAgB,GAA/B,MAAe,gBAAiB,SAAQ,6CAAoB;IAA5D;;QAeL,cAAS,GAA6B,SAAS,CAAC;QAYhD,cAAS,GAA6B,SAAS,CAAC;IAwBlD,CAAC;IAfU,IAAI;QACX,KAAK,CAAC,IAAI,EAAE,CAAC;QAEb,OAAO,IAAI,CAAC;IACd,CAAC;IAKQ,GAAG,CAAC,KAAK;QAChB,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAGjB,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AAnDqB,4CAAgB;AAepC;IALC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iBAAI,EAAE;QACjB,WAAW,EAAE,uCAAuC;QACpD,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,eAAI,EAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,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,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;;mDACZ;2BA3B5B,gBAAgB;IAJrC,IAAA,oBAAU,EAAC;QACV,WAAW,EAAE,6CAA6C;QAC1D,UAAU,EAAE,IAAI;KACjB,CAAC;GACoB,gBAAgB,CAmDrC"}
|
|
@@ -11,8 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AuthController = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
|
-
const roles_decorator_1 = require("../../../core/common/decorators/roles.decorator");
|
|
15
|
-
const role_enum_1 = require("../../../core/common/enums/role.enum");
|
|
16
14
|
const config_service_1 = require("../../../core/common/services/config.service");
|
|
17
15
|
const core_auth_controller_1 = require("../../../core/modules/auth/core-auth.controller");
|
|
18
16
|
const auth_service_1 = require("./auth.service");
|
|
@@ -25,7 +23,6 @@ let AuthController = class AuthController extends core_auth_controller_1.CoreAut
|
|
|
25
23
|
};
|
|
26
24
|
exports.AuthController = AuthController;
|
|
27
25
|
exports.AuthController = AuthController = __decorate([
|
|
28
|
-
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.ADMIN),
|
|
29
26
|
(0, common_1.Controller)('auth'),
|
|
30
27
|
__metadata("design:paramtypes", [auth_service_1.AuthService,
|
|
31
28
|
config_service_1.ConfigService])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../../../src/server/modules/auth/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAE5C,
|
|
1
|
+
{"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../../../src/server/modules/auth/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAE5C,iFAA6E;AAC7E,0FAAqF;AACrF,iDAA6C;AAGtC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,yCAAkB;IAIpD,YAC8B,WAAwB,EACxB,aAA4B;QAExD,KAAK,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;QAHN,gBAAW,GAAX,WAAW,CAAa;QACxB,kBAAa,GAAb,aAAa,CAAe;IAG1D,CAAC;CACF,CAAA;AAVY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,EAAC,MAAM,CAAC;qCAM0B,0BAAW;QACT,8BAAa;GAN/C,cAAc,CAU1B"}
|
|
@@ -11,8 +11,6 @@ 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 restricted_decorator_1 = require("../../../core/common/decorators/restricted.decorator");
|
|
15
|
-
const role_enum_1 = require("../../../core/common/enums/role.enum");
|
|
16
14
|
const model_helper_1 = require("../../../core/common/helpers/model.helper");
|
|
17
15
|
const core_auth_model_1 = require("../../../core/modules/auth/core-auth.model");
|
|
18
16
|
const user_model_1 = require("../user/user.model");
|
|
@@ -32,12 +30,10 @@ let Auth = class Auth extends core_auth_model_1.CoreAuthModel {
|
|
|
32
30
|
};
|
|
33
31
|
exports.Auth = Auth;
|
|
34
32
|
__decorate([
|
|
35
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
36
33
|
(0, graphql_1.Field)(() => user_model_1.User, { description: 'User who signed in' }),
|
|
37
34
|
__metadata("design:type", user_model_1.User)
|
|
38
35
|
], Auth.prototype, "user", void 0);
|
|
39
36
|
exports.Auth = Auth = __decorate([
|
|
40
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.ADMIN),
|
|
41
37
|
(0, graphql_1.ObjectType)({ description: 'Authentication data' })
|
|
42
38
|
], Auth);
|
|
43
39
|
//# sourceMappingURL=auth.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.model.js","sourceRoot":"","sources":["../../../../src/server/modules/auth/auth.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AAEpD
|
|
1
|
+
{"version":3,"file":"auth.model.js","sourceRoot":"","sources":["../../../../src/server/modules/auth/auth.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AAEpD,4EAAuE;AACvE,gFAA2E;AAC3E,mDAA0C;AAMnC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,+BAAa;IAAhC;;QASI,SAAI,GAAS,SAAS,CAAC;IAsBlC,CAAC;IAbU,IAAI;QACX,KAAK,CAAC,IAAI,EAAE,CAAC;QAEb,OAAO,IAAI,CAAC;IACd,CAAC;IAKQ,GAAG,CAAC,KAAK;QAChB,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;AA/BY,oBAAI;AASN;IADR,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,iBAAI,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;8BAC1C,iBAAI;kCAAa;eATrB,IAAI;IADhB,IAAA,oBAAU,EAAC,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;GACtC,IAAI,CA+BhB"}
|
|
@@ -15,8 +15,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.AuthResolver = void 0;
|
|
16
16
|
const graphql_1 = require("@nestjs/graphql");
|
|
17
17
|
const graphql_service_options_decorator_1 = require("../../../core/common/decorators/graphql-service-options.decorator");
|
|
18
|
-
const roles_decorator_1 = require("../../../core/common/decorators/roles.decorator");
|
|
19
|
-
const role_enum_1 = require("../../../core/common/enums/role.enum");
|
|
20
18
|
const config_service_1 = require("../../../core/common/services/config.service");
|
|
21
19
|
const core_auth_resolver_1 = require("../../../core/modules/auth/core-auth.resolver");
|
|
22
20
|
const auth_model_1 = require("./auth.model");
|
|
@@ -43,7 +41,6 @@ let AuthResolver = class AuthResolver extends core_auth_resolver_1.CoreAuthResol
|
|
|
43
41
|
};
|
|
44
42
|
exports.AuthResolver = AuthResolver;
|
|
45
43
|
__decorate([
|
|
46
|
-
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
47
44
|
(0, graphql_1.Mutation)(() => auth_model_1.Auth, { description: 'Sign in and get JWT token' }),
|
|
48
45
|
__param(0, (0, graphql_service_options_decorator_1.GraphQLServiceOptions)({ gqlPath: 'signIn.user' })),
|
|
49
46
|
__param(1, (0, graphql_1.Context)()),
|
|
@@ -53,7 +50,6 @@ __decorate([
|
|
|
53
50
|
__metadata("design:returntype", Promise)
|
|
54
51
|
], AuthResolver.prototype, "signIn", null);
|
|
55
52
|
__decorate([
|
|
56
|
-
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
57
53
|
(0, graphql_1.Mutation)(() => auth_model_1.Auth, {
|
|
58
54
|
description: 'Sign up user and get JWT token',
|
|
59
55
|
}),
|
|
@@ -65,7 +61,6 @@ __decorate([
|
|
|
65
61
|
__metadata("design:returntype", Promise)
|
|
66
62
|
], AuthResolver.prototype, "signUp", null);
|
|
67
63
|
exports.AuthResolver = AuthResolver = __decorate([
|
|
68
|
-
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.ADMIN),
|
|
69
64
|
(0, graphql_1.Resolver)(() => auth_model_1.Auth),
|
|
70
65
|
__metadata("design:paramtypes", [auth_service_1.AuthService,
|
|
71
66
|
config_service_1.ConfigService])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.resolver.js","sourceRoot":"","sources":["../../../../src/server/modules/auth/auth.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAoE;AAGpE,yHAA0G;
|
|
1
|
+
{"version":3,"file":"auth.resolver.js","sourceRoot":"","sources":["../../../../src/server/modules/auth/auth.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAoE;AAGpE,yHAA0G;AAE1G,iFAA6E;AAC7E,sFAAiF;AACjF,6CAAoC;AACpC,iDAA6C;AAC7C,oEAA8D;AAC9D,oEAA8D;AAMvD,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,qCAAgB;IAIhD,YAC8B,WAAwB,EACxB,aAA4B;QAExD,KAAK,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;QAHN,gBAAW,GAAX,WAAW,CAAa;QACxB,kBAAa,GAAb,aAAa,CAAe;IAG1D,CAAC;IAMc,AAAN,KAAK,CAAC,MAAM,CACgC,cAA8B,EACtE,GAA0B,EACtB,KAAsB;QAErC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE;YAClD,GAAG,cAAc;YACjB,SAAS,EAAE,oCAAe;SAC3B,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;IAQc,AAAN,KAAK,CAAC,MAAM,CACgC,cAA8B,EACtE,GAA0B,EACtB,KAAsB;QAErC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;QACpE,OAAO,IAAI,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC1C,CAAC;CACF,CAAA;AAzCY,oCAAY;AAeR;IADd,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,iBAAI,EAAE,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;IAEhE,WAAA,IAAA,yDAAqB,EAAC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,CAAA;IACjD,WAAA,IAAA,iBAAO,GAAE,CAAA;IACT,WAAA,IAAA,cAAI,EAAC,OAAO,CAAC,CAAA;;qDAAQ,oCAAe;;0CAOtC;AAQc;IAHd,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,iBAAI,EAAE;QACpB,WAAW,EAAE,gCAAgC;KAC9C,CAAC;IAEC,WAAA,IAAA,yDAAqB,EAAC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,CAAA;IACjD,WAAA,IAAA,iBAAO,GAAE,CAAA;IACT,WAAA,IAAA,cAAI,EAAC,OAAO,CAAC,CAAA;;qDAAQ,oCAAe;;0CAItC;uBAxCU,YAAY;IADxB,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;qCAMwB,0BAAW;QACT,8BAAa;GAN/C,YAAY,CAyCxB"}
|
|
@@ -8,14 +8,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.AuthSignInInput = void 0;
|
|
10
10
|
const graphql_1 = require("@nestjs/graphql");
|
|
11
|
-
const restricted_decorator_1 = require("../../../../core/common/decorators/restricted.decorator");
|
|
12
|
-
const role_enum_1 = require("../../../../core/common/enums/role.enum");
|
|
13
11
|
const core_auth_sign_in_input_1 = require("../../../../core/modules/auth/inputs/core-auth-sign-in.input");
|
|
14
12
|
let AuthSignInInput = class AuthSignInInput extends core_auth_sign_in_input_1.CoreAuthSignInInput {
|
|
15
13
|
};
|
|
16
14
|
exports.AuthSignInInput = AuthSignInInput;
|
|
17
15
|
exports.AuthSignInInput = AuthSignInInput = __decorate([
|
|
18
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.ADMIN),
|
|
19
16
|
(0, graphql_1.InputType)({ description: 'Sign-in input' })
|
|
20
17
|
], AuthSignInInput);
|
|
21
18
|
//# sourceMappingURL=auth-sign-in.input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-sign-in.input.js","sourceRoot":"","sources":["../../../../../src/server/modules/auth/inputs/auth-sign-in.input.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6CAA4C;AAE5C,
|
|
1
|
+
{"version":3,"file":"auth-sign-in.input.js","sourceRoot":"","sources":["../../../../../src/server/modules/auth/inputs/auth-sign-in.input.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6CAA4C;AAE5C,0GAAmG;AAM5F,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,6CAAmB;CAEvD,CAAA;AAFY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAS,EAAC,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;GAC/B,eAAe,CAE3B"}
|
|
@@ -11,8 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AuthSignUpInput = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
const restricted_decorator_1 = require("../../../../core/common/decorators/restricted.decorator");
|
|
15
|
-
const role_enum_1 = require("../../../../core/common/enums/role.enum");
|
|
16
14
|
const core_auth_sign_up_input_1 = require("../../../../core/modules/auth/inputs/core-auth-sign-up.input");
|
|
17
15
|
let AuthSignUpInput = class AuthSignUpInput extends core_auth_sign_up_input_1.CoreAuthSignUpInput {
|
|
18
16
|
constructor() {
|
|
@@ -23,17 +21,14 @@ let AuthSignUpInput = class AuthSignUpInput extends core_auth_sign_up_input_1.Co
|
|
|
23
21
|
};
|
|
24
22
|
exports.AuthSignUpInput = AuthSignUpInput;
|
|
25
23
|
__decorate([
|
|
26
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
27
24
|
(0, graphql_1.Field)({ description: 'firstName', nullable: true }),
|
|
28
25
|
__metadata("design:type", String)
|
|
29
26
|
], AuthSignUpInput.prototype, "firstName", void 0);
|
|
30
27
|
__decorate([
|
|
31
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
32
28
|
(0, graphql_1.Field)({ description: 'lastName', nullable: true }),
|
|
33
29
|
__metadata("design:type", String)
|
|
34
30
|
], AuthSignUpInput.prototype, "lastName", void 0);
|
|
35
31
|
exports.AuthSignUpInput = AuthSignUpInput = __decorate([
|
|
36
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.ADMIN),
|
|
37
32
|
(0, graphql_1.InputType)({ description: 'Sign-up input' })
|
|
38
33
|
], AuthSignUpInput);
|
|
39
34
|
//# sourceMappingURL=auth-sign-up.input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-sign-up.input.js","sourceRoot":"","sources":["../../../../../src/server/modules/auth/inputs/auth-sign-up.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AAEnD,
|
|
1
|
+
{"version":3,"file":"auth-sign-up.input.js","sourceRoot":"","sources":["../../../../../src/server/modules/auth/inputs/auth-sign-up.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AAEnD,0GAAmG;AAM5F,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,6CAAmB;IAAjD;;QAML,cAAS,GAAW,SAAS,CAAC;QAG9B,aAAQ,GAAW,SAAS,CAAC;IAC/B,CAAC;CAAA,CAAA;AAVY,0CAAe;AAM1B;IADC,IAAA,eAAK,EAAC,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACtB;AAG9B;IADC,IAAA,eAAK,EAAC,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACtB;0BATlB,eAAe;IAD3B,IAAA,mBAAS,EAAC,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;GAC/B,eAAe,CAU3B"}
|
|
@@ -9,14 +9,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.FileInfoSchema = exports.FileInfo = void 0;
|
|
10
10
|
const graphql_1 = require("@nestjs/graphql");
|
|
11
11
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
12
|
-
const restricted_decorator_1 = require("../../../core/common/decorators/restricted.decorator");
|
|
13
|
-
const role_enum_1 = require("../../../core/common/enums/role.enum");
|
|
14
12
|
const core_file_info_model_1 = require("../../../core/modules/file/core-file-info.model");
|
|
15
13
|
let FileInfo = class FileInfo extends core_file_info_model_1.CoreFileInfo {
|
|
16
14
|
};
|
|
17
15
|
exports.FileInfo = FileInfo;
|
|
18
16
|
exports.FileInfo = FileInfo = __decorate([
|
|
19
|
-
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.ADMIN),
|
|
20
17
|
(0, graphql_1.ObjectType)({ description: 'Information about file' }),
|
|
21
18
|
(0, mongoose_1.Schema)({ collection: 'fs.files' })
|
|
22
19
|
], FileInfo);
|
|
@@ -1 +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;AAE3E
|
|
1
|
+
{"version":3,"file":"file-info.model.js","sourceRoot":"","sources":["../../../../src/server/modules/file/file-info.model.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6CAA6C;AAC7C,+CAA2E;AAE3E,0FAA+E;AAOxE,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,mCAAY;CAAG,CAAA;AAAhC,4BAAQ;mBAAR,QAAQ;IAFpB,IAAA,oBAAU,EAAC,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACrD,IAAA,iBAAc,EAAC,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;GAC9B,QAAQ,CAAwB;AAKhC,QAAA,cAAc,GAAG,wBAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -57,7 +57,6 @@ let FileController = class FileController {
|
|
|
57
57
|
};
|
|
58
58
|
exports.FileController = FileController;
|
|
59
59
|
__decorate([
|
|
60
|
-
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.ADMIN),
|
|
61
60
|
(0, common_1.Post)('upload'),
|
|
62
61
|
(0, common_1.UseInterceptors)((0, platform_express_1.FileInterceptor)('file')),
|
|
63
62
|
__param(0, (0, common_1.UploadedFile)()),
|
|
@@ -66,7 +65,6 @@ __decorate([
|
|
|
66
65
|
__metadata("design:returntype", Object)
|
|
67
66
|
], FileController.prototype, "uploadFile", null);
|
|
68
67
|
__decorate([
|
|
69
|
-
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.ADMIN),
|
|
70
68
|
(0, common_1.Get)(':id'),
|
|
71
69
|
__param(0, (0, common_1.Param)('id')),
|
|
72
70
|
__param(1, (0, common_1.Res)()),
|
|
@@ -75,7 +73,6 @@ __decorate([
|
|
|
75
73
|
__metadata("design:returntype", Promise)
|
|
76
74
|
], FileController.prototype, "getFile", null);
|
|
77
75
|
__decorate([
|
|
78
|
-
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.ADMIN),
|
|
79
76
|
(0, common_1.Get)('info/:id'),
|
|
80
77
|
__param(0, (0, common_1.Param)('id')),
|
|
81
78
|
__metadata("design:type", Function),
|
|
@@ -83,7 +80,6 @@ __decorate([
|
|
|
83
80
|
__metadata("design:returntype", Promise)
|
|
84
81
|
], FileController.prototype, "getFileInfo", null);
|
|
85
82
|
__decorate([
|
|
86
|
-
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.ADMIN),
|
|
87
83
|
(0, common_1.Delete)(':id'),
|
|
88
84
|
__param(0, (0, common_1.Param)('id')),
|
|
89
85
|
__metadata("design:type", Function),
|
|
@@ -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,qFAAwE;AACxE,oEAAgE;AAChE,iDAA6C;AAOtC,IAAM,cAAc,GAApB,MAAM,cAAc;IAIzB,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"file.controller.js","sourceRoot":"","sources":["../../../../src/server/modules/file/file.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAWwB;AACxB,+DAA2D;AAE3D,qFAAwE;AACxE,oEAAgE;AAChE,iDAA6C;AAOtC,IAAM,cAAc,GAApB,MAAM,cAAc;IAIzB,YAA6B,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAOzD,UAAU,CAAiB,IAAyB;QAClD,OAAO,IAAI,CAAC;IACd,CAAC;IAMK,AAAN,KAAK,CAAC,OAAO,CAAc,EAAU,EAAS,GAAG;QAC/C,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,MAAM,IAAI,4BAAmB,CAAC,YAAY,CAAC,CAAC;QAC9C,CAAC;QAED,IAAI,IAAI,CAAC;QACT,IAAI,CAAC;YACH,IAAI,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QAChD,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACnB,CAAC;QAED,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,0BAAiB,CAAC,gBAAgB,CAAC,CAAC;QAChD,CAAC;QACD,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;Q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