@lenne.tech/nest-server 10.2.15 → 10.2.16
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/inputs/combined-filter.input.js +5 -0
- package/dist/core/common/inputs/combined-filter.input.js.map +1 -1
- package/dist/core/common/inputs/filter.input.js +5 -0
- package/dist/core/common/inputs/filter.input.js.map +1 -1
- package/dist/core/common/inputs/single-filter.input.js +10 -0
- package/dist/core/common/inputs/single-filter.input.js.map +1 -1
- package/dist/core/common/inputs/sort.input.js +5 -0
- package/dist/core/common/inputs/sort.input.js.map +1 -1
- package/dist/core/common/models/core-persistence.model.js +1 -0
- package/dist/core/common/models/core-persistence.model.js.map +1 -1
- package/dist/core/modules/auth/core-auth.controller.js +7 -0
- package/dist/core/modules/auth/core-auth.controller.js.map +1 -1
- package/dist/core/modules/auth/core-auth.model.js +6 -0
- package/dist/core/modules/auth/core-auth.model.js.map +1 -1
- package/dist/core/modules/auth/core-auth.resolver.js +7 -0
- package/dist/core/modules/auth/core-auth.resolver.js.map +1 -1
- package/dist/core/modules/auth/inputs/core-auth-sign-in.input.js +7 -0
- 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 +3 -0
- package/dist/core/modules/auth/inputs/core-auth-sign-up.input.js.map +1 -1
- package/dist/core/modules/file/core-file-info.model.js +14 -0
- package/dist/core/modules/file/core-file-info.model.js.map +1 -1
- package/dist/core/modules/file/core-file.controller.js +4 -0
- package/dist/core/modules/file/core-file.controller.js.map +1 -1
- package/dist/core/modules/file/core-file.resolver.js +7 -0
- package/dist/core/modules/file/core-file.resolver.js.map +1 -1
- package/dist/core/modules/health-check/core-health-check-result.model.js +7 -0
- 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 +4 -0
- package/dist/core/modules/health-check/core-health-check.controller.js.map +1 -1
- package/dist/core/modules/user/core-user.model.js +15 -0
- package/dist/core/modules/user/core-user.model.js.map +1 -1
- package/dist/core/modules/user/inputs/core-user-create.input.js +4 -0
- package/dist/core/modules/user/inputs/core-user-create.input.js.map +1 -1
- package/dist/core/modules/user/inputs/core-user.input.js +6 -0
- package/dist/core/modules/user/inputs/core-user.input.js.map +1 -1
- package/dist/server/common/models/persistence.model.js +5 -0
- package/dist/server/common/models/persistence.model.js.map +1 -1
- package/dist/server/modules/auth/auth.controller.js +3 -0
- package/dist/server/modules/auth/auth.controller.js.map +1 -1
- package/dist/server/modules/auth/auth.model.js +4 -0
- package/dist/server/modules/auth/auth.model.js.map +1 -1
- package/dist/server/modules/auth/auth.resolver.js +5 -0
- package/dist/server/modules/auth/auth.resolver.js.map +1 -1
- package/dist/server/modules/auth/inputs/auth-sign-in.input.js +3 -0
- 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 +5 -0
- package/dist/server/modules/auth/inputs/auth-sign-up.input.js.map +1 -1
- package/dist/server/modules/file/file-info.model.js +3 -0
- package/dist/server/modules/file/file-info.model.js.map +1 -1
- package/dist/server/modules/file/file.controller.js +4 -0
- package/dist/server/modules/file/file.controller.js.map +1 -1
- package/dist/server/modules/user/avatar.controller.js +1 -0
- package/dist/server/modules/user/avatar.controller.js.map +1 -1
- package/dist/server/modules/user/inputs/user-create.input.js +3 -0
- package/dist/server/modules/user/inputs/user-create.input.js.map +1 -1
- package/dist/server/modules/user/inputs/user.input.js +3 -0
- 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 +5 -0
- 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 +1 -0
- package/dist/server/modules/user/user.model.js +14 -0
- package/dist/server/modules/user/user.model.js.map +1 -1
- package/dist/server/server.controller.js +2 -0
- package/dist/server/server.controller.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/core/common/inputs/combined-filter.input.ts +5 -0
- package/src/core/common/inputs/filter.input.ts +5 -0
- package/src/core/common/inputs/single-filter.input.ts +10 -0
- package/src/core/common/inputs/sort.input.ts +5 -0
- package/src/core/common/models/core-persistence.model.ts +1 -0
- package/src/core/modules/auth/core-auth.controller.ts +7 -0
- package/src/core/modules/auth/core-auth.model.ts +6 -0
- package/src/core/modules/auth/core-auth.resolver.ts +7 -0
- package/src/core/modules/auth/inputs/core-auth-sign-in.input.ts +7 -0
- package/src/core/modules/auth/inputs/core-auth-sign-up.input.ts +3 -0
- package/src/core/modules/file/core-file-info.model.ts +10 -0
- package/src/core/modules/file/core-file.controller.ts +4 -0
- package/src/core/modules/file/core-file.resolver.ts +7 -0
- package/src/core/modules/health-check/core-health-check-result.model.ts +7 -0
- package/src/core/modules/health-check/core-health-check.controller.ts +4 -0
- package/src/core/modules/user/core-user.model.ts +15 -0
- package/src/core/modules/user/inputs/core-user-create.input.ts +4 -0
- package/src/core/modules/user/inputs/core-user.input.ts +6 -0
- package/src/server/common/models/persistence.model.ts +5 -0
- package/src/server/modules/auth/auth.controller.ts +3 -0
- package/src/server/modules/auth/auth.model.ts +4 -0
- package/src/server/modules/auth/auth.resolver.ts +5 -0
- package/src/server/modules/auth/inputs/auth-sign-in.input.ts +3 -0
- package/src/server/modules/auth/inputs/auth-sign-up.input.ts +5 -0
- package/src/server/modules/file/file-info.model.ts +3 -0
- package/src/server/modules/file/file.controller.ts +4 -0
- package/src/server/modules/user/avatar.controller.ts +1 -0
- package/src/server/modules/user/inputs/user-create.input.ts +3 -0
- package/src/server/modules/user/inputs/user.input.ts +3 -0
- package/src/server/modules/user/outputs/find-and-count-users-result.output.ts +5 -0
- package/src/server/modules/user/user.model.ts +15 -0
- package/src/server/server.controller.ts +2 -0
|
@@ -45,6 +45,7 @@ __decorate([
|
|
|
45
45
|
__metadata("design:returntype", Promise)
|
|
46
46
|
], AvatarController.prototype, "uploadFile", null);
|
|
47
47
|
exports.AvatarController = AvatarController = __decorate([
|
|
48
|
+
(0, roles_decorator_1.Roles)(role_enum_1.RoleEnum.ADMIN),
|
|
48
49
|
(0, controller_decorator_1.Controller)('avatar'),
|
|
49
50
|
__metadata("design:paramtypes", [user_service_1.UserService])
|
|
50
51
|
], AvatarController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.controller.js","sourceRoot":"","sources":["../../../../src/server/modules/user/avatar.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAqE;AACrE,8FAAiF;AACjF,+DAA2D;AAE3D,oDAA4C;AAC5C,mGAAqF;AACrF,qFAAwE;AACxE,oEAAgE;AAChE,0EAAuF;AACvF,6CAAoC;AACpC,iDAA6C;
|
|
1
|
+
{"version":3,"file":"avatar.controller.js","sourceRoot":"","sources":["../../../../src/server/modules/user/avatar.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAqE;AACrE,8FAAiF;AACjF,+DAA2D;AAE3D,oDAA4C;AAC5C,mGAAqF;AACrF,qFAAwE;AACxE,oEAAgE;AAChE,0EAAuF;AACvF,6CAAoC;AACpC,iDAA6C;AAOtC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAI3B,YAA+B,YAAyB;QAAzB,iBAAY,GAAZ,YAAY,CAAa;IAAG,CAAC;IAe5D,UAAU,CAAiB,IAAyB,EAAiB,IAAU;QAC7E,OAAO,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACjD,CAAC;CACF,CAAA;AAtBY,4CAAgB;AAmB3B;IAVC,IAAA,uBAAK,EAAC,oBAAQ,CAAC,MAAM,CAAC;IACtB,IAAA,aAAI,EAAC,QAAQ,CAAC;IACd,IAAA,wBAAe,EACd,IAAA,kCAAe,EACb,MAAM,EACN,IAAA,yCAA2B,EAAC;QAC1B,WAAW,EAAE,GAAG,oBAAS,CAAC,YAAY,CAAC,IAAI,UAAU;KACtD,CAAC,CACH,CACF;IACW,WAAA,IAAA,qBAAY,GAAE,CAAA;IAA6B,WAAA,IAAA,oCAAW,GAAE,CAAA;;6CAAO,iBAAI;;kDAE9E;2BArBU,gBAAgB;IAF5B,IAAA,uBAAK,EAAC,oBAAQ,CAAC,KAAK,CAAC;IACrB,IAAA,iCAAU,EAAC,QAAQ,CAAC;qCAK0B,0BAAW;GAJ7C,gBAAgB,CAsB5B"}
|
|
@@ -8,11 +8,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.UserCreateInput = 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");
|
|
11
13
|
const core_user_create_input_1 = require("../../../../core/modules/user/inputs/core-user-create.input");
|
|
12
14
|
let UserCreateInput = class UserCreateInput extends core_user_create_input_1.CoreUserCreateInput {
|
|
13
15
|
};
|
|
14
16
|
exports.UserCreateInput = UserCreateInput;
|
|
15
17
|
exports.UserCreateInput = UserCreateInput = __decorate([
|
|
18
|
+
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.ADMIN),
|
|
16
19
|
(0, graphql_1.InputType)({ description: 'User input to create a new user' })
|
|
17
20
|
], UserCreateInput);
|
|
18
21
|
//# sourceMappingURL=user-create.input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-create.input.js","sourceRoot":"","sources":["../../../../../src/server/modules/user/inputs/user-create.input.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6CAA4C;AAE5C,wGAAkG;
|
|
1
|
+
{"version":3,"file":"user-create.input.js","sourceRoot":"","sources":["../../../../../src/server/modules/user/inputs/user-create.input.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6CAA4C;AAE5C,kGAAqF;AACrF,uEAAmE;AACnE,wGAAkG;AAO3F,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,4CAAmB;CAEvD,CAAA;AAFY,0CAAe;0BAAf,eAAe;IAF3B,IAAA,iCAAU,EAAC,oBAAQ,CAAC,KAAK,CAAC;IAC1B,IAAA,mBAAS,EAAC,EAAE,WAAW,EAAE,iCAAiC,EAAE,CAAC;GACjD,eAAe,CAE3B"}
|
|
@@ -8,11 +8,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.UserInput = 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");
|
|
11
13
|
const core_user_input_1 = require("../../../../core/modules/user/inputs/core-user.input");
|
|
12
14
|
let UserInput = class UserInput extends core_user_input_1.CoreUserInput {
|
|
13
15
|
};
|
|
14
16
|
exports.UserInput = UserInput;
|
|
15
17
|
exports.UserInput = UserInput = __decorate([
|
|
18
|
+
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.ADMIN),
|
|
16
19
|
(0, graphql_1.InputType)({ description: 'User input' })
|
|
17
20
|
], UserInput);
|
|
18
21
|
//# sourceMappingURL=user.input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.input.js","sourceRoot":"","sources":["../../../../../src/server/modules/user/inputs/user.input.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6CAA4C;AAE5C,0FAAqF;
|
|
1
|
+
{"version":3,"file":"user.input.js","sourceRoot":"","sources":["../../../../../src/server/modules/user/inputs/user.input.ts"],"names":[],"mappings":";;;;;;;;;AAAA,6CAA4C;AAE5C,kGAAqF;AACrF,uEAAmE;AACnE,0FAAqF;AAO9E,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,+BAAa;CAE3C,CAAA;AAFY,8BAAS;oBAAT,SAAS;IAFrB,IAAA,iCAAU,EAAC,oBAAQ,CAAC,KAAK,CAAC;IAC1B,IAAA,mBAAS,EAAC,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC;GAC5B,SAAS,CAErB"}
|
|
@@ -11,19 +11,24 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.FindAndCountUsersResult = 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");
|
|
14
16
|
const user_model_1 = require("../user.model");
|
|
15
17
|
let FindAndCountUsersResult = class FindAndCountUsersResult {
|
|
16
18
|
};
|
|
17
19
|
exports.FindAndCountUsersResult = FindAndCountUsersResult;
|
|
18
20
|
__decorate([
|
|
21
|
+
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
19
22
|
(0, graphql_1.Field)(() => [user_model_1.User], { description: 'Found users' }),
|
|
20
23
|
__metadata("design:type", Array)
|
|
21
24
|
], FindAndCountUsersResult.prototype, "items", void 0);
|
|
22
25
|
__decorate([
|
|
26
|
+
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
23
27
|
(0, graphql_1.Field)({ description: 'Total count (skip/offset and limit/take are ignored in the count)' }),
|
|
24
28
|
__metadata("design:type", Number)
|
|
25
29
|
], FindAndCountUsersResult.prototype, "totalCount", void 0);
|
|
26
30
|
exports.FindAndCountUsersResult = FindAndCountUsersResult = __decorate([
|
|
31
|
+
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.ADMIN),
|
|
27
32
|
(0, graphql_1.ObjectType)({ description: 'Result of find and count' })
|
|
28
33
|
], FindAndCountUsersResult);
|
|
29
34
|
//# sourceMappingURL=find-and-count-users-result.output.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-and-count-users-result.output.js","sourceRoot":"","sources":["../../../../../src/server/modules/user/outputs/find-and-count-users-result.output.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AAEpD,8CAAqC;
|
|
1
|
+
{"version":3,"file":"find-and-count-users-result.output.js","sourceRoot":"","sources":["../../../../../src/server/modules/user/outputs/find-and-count-users-result.output.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AAEpD,kGAAqF;AACrF,uEAAmE;AACnE,8CAAqC;AAI9B,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;CAQnC,CAAA;AARY,0DAAuB;AAGlC;IAFC,IAAA,iCAAU,EAAC,oBAAQ,CAAC,UAAU,CAAC;IAC/B,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,iBAAI,CAAC,EAAE,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;;sDACtC;AAId;IAFC,IAAA,iCAAU,EAAC,oBAAQ,CAAC,UAAU,CAAC;IAC/B,IAAA,eAAK,EAAC,EAAE,WAAW,EAAE,mEAAmE,EAAE,CAAC;;2DACzE;kCAPR,uBAAuB;IAFnC,IAAA,iCAAU,EAAC,oBAAQ,CAAC,KAAK,CAAC;IAC1B,IAAA,oBAAU,EAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;GAC3C,uBAAuB,CAQnC"}
|
|
@@ -12,7 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.UserSchema = exports.User = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
14
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
15
16
|
const mongoose_2 = require("mongoose");
|
|
17
|
+
const restricted_decorator_1 = require("../../../core/common/decorators/restricted.decorator");
|
|
16
18
|
const role_enum_1 = require("../../../core/common/enums/role.enum");
|
|
17
19
|
const core_user_model_1 = require("../../../core/modules/user/core-user.model");
|
|
18
20
|
let User = class User extends core_user_model_1.CoreUserModel {
|
|
@@ -20,6 +22,7 @@ let User = class User extends core_user_model_1.CoreUserModel {
|
|
|
20
22
|
super(...arguments);
|
|
21
23
|
this.avatar = undefined;
|
|
22
24
|
this.createdBy = undefined;
|
|
25
|
+
this.roles = undefined;
|
|
23
26
|
this.updatedBy = undefined;
|
|
24
27
|
}
|
|
25
28
|
init() {
|
|
@@ -51,11 +54,13 @@ let User = class User extends core_user_model_1.CoreUserModel {
|
|
|
51
54
|
};
|
|
52
55
|
exports.User = User;
|
|
53
56
|
__decorate([
|
|
57
|
+
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
54
58
|
(0, graphql_1.Field)({ description: 'URL to avatar file of the user', nullable: true }),
|
|
55
59
|
(0, mongoose_1.Prop)(),
|
|
56
60
|
__metadata("design:type", String)
|
|
57
61
|
], User.prototype, "avatar", void 0);
|
|
58
62
|
__decorate([
|
|
63
|
+
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
59
64
|
(0, graphql_1.Field)(() => String, {
|
|
60
65
|
description: 'ID of the user who created the object',
|
|
61
66
|
nullable: true,
|
|
@@ -64,6 +69,14 @@ __decorate([
|
|
|
64
69
|
__metadata("design:type", String)
|
|
65
70
|
], User.prototype, "createdBy", void 0);
|
|
66
71
|
__decorate([
|
|
72
|
+
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_EVERYONE),
|
|
73
|
+
(0, graphql_1.Field)(type => [String], { description: 'Roles of the user', nullable: true }),
|
|
74
|
+
(0, class_validator_1.IsOptional)(),
|
|
75
|
+
(0, mongoose_1.Prop)([String]),
|
|
76
|
+
__metadata("design:type", Array)
|
|
77
|
+
], User.prototype, "roles", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.S_USER),
|
|
67
80
|
(0, graphql_1.Field)(() => String, {
|
|
68
81
|
description: 'ID of the user who last updated the object',
|
|
69
82
|
nullable: true,
|
|
@@ -72,6 +85,7 @@ __decorate([
|
|
|
72
85
|
__metadata("design:type", String)
|
|
73
86
|
], User.prototype, "updatedBy", void 0);
|
|
74
87
|
exports.User = User = __decorate([
|
|
88
|
+
(0, restricted_decorator_1.Restricted)(role_enum_1.RoleEnum.ADMIN),
|
|
75
89
|
(0, graphql_1.ObjectType)({ description: 'User' }),
|
|
76
90
|
(0, mongoose_1.Schema)({ timestamps: true })
|
|
77
91
|
], User);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../../../src/server/modules/user/user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,+CAAiF;AACjF,uCAA4C;AAE5C,oEAAgE;AAChE,gFAA2E;
|
|
1
|
+
{"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../../../src/server/modules/user/user.model.ts"],"names":[],"mappings":"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"}
|
|
@@ -27,6 +27,7 @@ let ServerController = class ServerController {
|
|
|
27
27
|
};
|
|
28
28
|
exports.ServerController = ServerController;
|
|
29
29
|
__decorate([
|
|
30
|
+
(0, __1.Roles)(__1.RoleEnum.S_EVERYONE),
|
|
30
31
|
(0, common_1.Get)(),
|
|
31
32
|
(0, common_1.Render)('index'),
|
|
32
33
|
__metadata("design:type", Function),
|
|
@@ -41,6 +42,7 @@ __decorate([
|
|
|
41
42
|
__metadata("design:returntype", void 0)
|
|
42
43
|
], ServerController.prototype, "config", null);
|
|
43
44
|
exports.ServerController = ServerController = __decorate([
|
|
45
|
+
(0, __1.Roles)(__1.RoleEnum.ADMIN),
|
|
44
46
|
(0, common_1.Controller)(),
|
|
45
47
|
__metadata("design:paramtypes", [__1.ConfigService])
|
|
46
48
|
], ServerController);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.controller.js","sourceRoot":"","sources":["../../src/server/server.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyD;AAEzD,0BAAoD;
|
|
1
|
+
{"version":3,"file":"server.controller.js","sourceRoot":"","sources":["../../src/server/server.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyD;AAEzD,0BAAoD;AAI7C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAAsB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAKtD,IAAI;QACF,OAAO;YACL,GAAG,EAAE,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,KAAK,CAAC;SAClD,CAAC;IACJ,CAAC;IAID,MAAM;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAC9E,CAAC;CACF,CAAA;AAjBY,4CAAgB;AAM3B;IAHC,IAAA,SAAK,EAAC,YAAQ,CAAC,UAAU,CAAC;IAC1B,IAAA,YAAG,GAAE;IACL,IAAA,eAAM,EAAC,OAAO,CAAC;;;;4CAKf;AAID;IAFC,IAAA,YAAG,EAAC,QAAQ,CAAC;IACb,IAAA,SAAK,EAAC,YAAQ,CAAC,KAAK,CAAC;;;;8CAGrB;2BAhBU,gBAAgB;IAF5B,IAAA,SAAK,EAAC,YAAQ,CAAC,KAAK,CAAC;IACrB,IAAA,mBAAU,GAAE;qCAE0B,iBAAa;GADvC,gBAAgB,CAiB5B"}
|