@hedhog/admin 0.0.93 → 0.0.94
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/menu/menu.controller.d.ts.map +1 -1
- package/dist/menu/menu.controller.js +0 -4
- package/dist/menu/menu.controller.js.map +1 -1
- package/dist/role/role.controller.d.ts.map +1 -1
- package/dist/role/role.controller.js +0 -4
- package/dist/role/role.controller.js.map +1 -1
- package/dist/route/route.controller.d.ts.map +1 -1
- package/dist/route/route.controller.js +0 -4
- package/dist/route/route.controller.js.map +1 -1
- package/dist/screen/screen.controller.d.ts.map +1 -1
- package/dist/screen/screen.controller.js +0 -4
- package/dist/screen/screen.controller.js.map +1 -1
- package/dist/setting/dto/setting-user.dto.d.ts +4 -0
- package/dist/setting/dto/setting-user.dto.d.ts.map +1 -0
- package/dist/{entities/role.entity.js → setting/dto/setting-user.dto.js} +8 -19
- package/dist/setting/dto/setting-user.dto.js.map +1 -0
- package/dist/setting/settings.controller.d.ts +7 -1
- package/dist/setting/settings.controller.d.ts.map +1 -1
- package/dist/setting/settings.controller.js +14 -12
- package/dist/setting/settings.controller.js.map +1 -1
- package/dist/setting/settings.service.d.ts +3 -1
- package/dist/setting/settings.service.d.ts.map +1 -1
- package/dist/setting/settings.service.js +8 -9
- package/dist/setting/settings.service.js.map +1 -1
- package/dist/user/user.controller.d.ts.map +1 -1
- package/dist/user/user.controller.js +0 -4
- package/dist/user/user.controller.js.map +1 -1
- package/hedhog.yaml +5 -1
- package/package.json +1 -1
- package/dist/entities/country.entity.d.ts +0 -6
- package/dist/entities/country.entity.d.ts.map +0 -1
- package/dist/entities/country.entity.js +0 -38
- package/dist/entities/country.entity.js.map +0 -1
- package/dist/entities/index.d.ts +0 -12
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/entities/index.js +0 -28
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/locale.entity.d.ts +0 -7
- package/dist/entities/locale.entity.d.ts.map +0 -1
- package/dist/entities/locale.entity.js +0 -44
- package/dist/entities/locale.entity.js.map +0 -1
- package/dist/entities/menu.entity.d.ts +0 -9
- package/dist/entities/menu.entity.d.ts.map +0 -1
- package/dist/entities/menu.entity.js +0 -57
- package/dist/entities/menu.entity.js.map +0 -1
- package/dist/entities/multifactor.entity.d.ts +0 -5
- package/dist/entities/multifactor.entity.d.ts.map +0 -1
- package/dist/entities/multifactor.entity.js +0 -30
- package/dist/entities/multifactor.entity.js.map +0 -1
- package/dist/entities/role.entity.d.ts +0 -5
- package/dist/entities/role.entity.d.ts.map +0 -1
- package/dist/entities/role.entity.js.map +0 -1
- package/dist/entities/route.entity.d.ts +0 -6
- package/dist/entities/route.entity.d.ts.map +0 -1
- package/dist/entities/route.entity.js +0 -36
- package/dist/entities/route.entity.js.map +0 -1
- package/dist/entities/screen.entity.d.ts +0 -6
- package/dist/entities/screen.entity.d.ts.map +0 -1
- package/dist/entities/screen.entity.js +0 -36
- package/dist/entities/screen.entity.js.map +0 -1
- package/dist/entities/setting-group.entity.d.ts +0 -6
- package/dist/entities/setting-group.entity.d.ts.map +0 -1
- package/dist/entities/setting-group.entity.js +0 -39
- package/dist/entities/setting-group.entity.js.map +0 -1
- package/dist/entities/setting.entity.d.ts +0 -8
- package/dist/entities/setting.entity.d.ts.map +0 -1
- package/dist/entities/setting.entity.js +0 -51
- package/dist/entities/setting.entity.js.map +0 -1
- package/dist/entities/translation.entity.d.ts +0 -8
- package/dist/entities/translation.entity.d.ts.map +0 -1
- package/dist/entities/translation.entity.js +0 -42
- package/dist/entities/translation.entity.js.map +0 -1
- package/dist/entities/user.entity.d.ts +0 -9
- package/dist/entities/user.entity.d.ts.map +0 -1
- package/dist/entities/user.entity.js +0 -51
- package/dist/entities/user.entity.js.map +0 -1
- package/src/entities/country.entity.ts +0 -19
- package/src/entities/index.ts +0 -11
- package/src/entities/locale.entity.ts +0 -24
- package/src/entities/menu.entity.ts +0 -35
- package/src/entities/multifactor.entity.ts +0 -12
- package/src/entities/role.entity.ts +0 -14
- package/src/entities/route.entity.ts +0 -17
- package/src/entities/screen.entity.ts +0 -17
- package/src/entities/setting-group.entity.ts +0 -20
- package/src/entities/setting.entity.ts +0 -30
- package/src/entities/translation.entity.ts +0 -21
- package/src/entities/user.entity.ts +0 -29
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"menu.controller.d.ts","sourceRoot":"","sources":["../../src/menu/menu.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;
|
1
|
+
{"version":3,"file":"menu.controller.d.ts","sourceRoot":"","sources":["../../src/menu/menu.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,qBACa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,WAAW;IAIrC,aAAa,CAAS,EAAE,EAAE,EAAE;;KAAA,EAAY,MAAM,KAAA;IAK9C,OAAO,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;IAKxD,SAAS,CACkB,MAAM,EAAE,MAAM,EAC/B,gBAAgB,KAAA,EACpB,MAAM,KAAA;IAMZ,WAAW,CACgB,MAAM,EAAE,MAAM,EAC/B,gBAAgB,KAAA,EACpB,MAAM,KAAA;IAMZ,WAAW,CACgB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,aAAa,CACc,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,IAAI,CAAgC,MAAM,EAAE,MAAM;IAKlD,MAAM,CAAS,IAAI,EAAE,SAAS;IAK9B,MAAM,CACqB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;IAK9B,WAAW,CAAS,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAGzD"}
|
@@ -20,9 +20,7 @@ const delete_dto_1 = require("../dto/delete.dto");
|
|
20
20
|
const update_dto_1 = require("./dto/update.dto");
|
21
21
|
const menu_service_1 = require("./menu.service");
|
22
22
|
const order_dto_1 = require("./dto/order.dto");
|
23
|
-
const auth_guard_1 = require("../auth/guards/auth.guard");
|
24
23
|
const user_decorator_1 = require("../auth/decorators/user.decorator");
|
25
|
-
const role_decorator_1 = require("../role/decorators/role.decorator");
|
26
24
|
const update_ids_dto_1 = require("../dto/update-ids.dto");
|
27
25
|
const locale_1 = require("../locale");
|
28
26
|
let MenuController = class MenuController {
|
@@ -154,8 +152,6 @@ __decorate([
|
|
154
152
|
__metadata("design:returntype", Promise)
|
155
153
|
], MenuController.prototype, "updateOrder", null);
|
156
154
|
exports.MenuController = MenuController = __decorate([
|
157
|
-
(0, role_decorator_1.Role)(),
|
158
|
-
(0, common_1.UseGuards)(auth_guard_1.AuthGuard),
|
159
155
|
(0, common_1.Controller)('menus'),
|
160
156
|
__param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => menu_service_1.MenuService))),
|
161
157
|
__metadata("design:paramtypes", [menu_service_1.MenuService])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"menu.controller.js","sourceRoot":"","sources":["../../src/menu/menu.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAYwB;AACxB,iDAA6C;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CAAC,CAAC,CAAA;qCACR,0BAAW;GAHhC,cAAc,CAgF1B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"role.controller.d.ts","sourceRoot":"","sources":["../../src/role/role.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;
|
1
|
+
{"version":3,"file":"role.controller.d.ts","sourceRoot":"","sources":["../../src/role/role.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,qBACa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,WAAW;IAIrC,QAAQ,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;IAKzD,SAAS,CACC,gBAAgB,KAAA,EACC,MAAM,EAAE,MAAM;IAMzC,SAAS,CACC,gBAAgB,KAAA,EACC,MAAM,EAAE,MAAM,EACnC,MAAM,KAAA;IAMZ,UAAU,CACA,gBAAgB,KAAA,EACC,MAAM,EAAE,MAAM;IAMzC,WAAW,CACD,gBAAgB,KAAA,EACC,MAAM,EAAE,MAAM,EACnC,MAAM,KAAA;IAMZ,WAAW,CACgB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,WAAW,CACgB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,YAAY,CACe,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,aAAa,CACc,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,IAAI,CAAgC,MAAM,EAAE,MAAM;IAKxD,MAAM,CAAS,IAAI,EAAE,SAAS;IAKxB,MAAM,CACqB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
|
@@ -19,8 +19,6 @@ const create_dto_1 = require("./dto/create.dto");
|
|
19
19
|
const delete_dto_1 = require("../dto/delete.dto");
|
20
20
|
const update_dto_1 = require("./dto/update.dto");
|
21
21
|
const role_service_1 = require("./role.service");
|
22
|
-
const role_decorator_1 = require("./decorators/role.decorator");
|
23
|
-
const auth_guard_1 = require("../auth/guards/auth.guard");
|
24
22
|
const update_ids_dto_1 = require("../dto/update-ids.dto");
|
25
23
|
const locale_1 = require("../locale");
|
26
24
|
let RoleController = class RoleController {
|
@@ -175,8 +173,6 @@ __decorate([
|
|
175
173
|
__metadata("design:returntype", Promise)
|
176
174
|
], RoleController.prototype, "delete", null);
|
177
175
|
exports.RoleController = RoleController = __decorate([
|
178
|
-
(0, role_decorator_1.Role)(),
|
179
|
-
(0, common_1.UseGuards)(auth_guard_1.AuthGuard),
|
180
176
|
(0, common_1.Controller)('roles'),
|
181
177
|
__param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => role_service_1.RoleService))),
|
182
178
|
__metadata("design:paramtypes", [role_service_1.RoleService])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"role.controller.js","sourceRoot":"","sources":["../../src/role/role.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAYwB;AACxB,iDAA6C;AAC7C,kDAA8C;AAC9C,iDAA6C;AAC7C,iDAA6C;AAC7C,
|
1
|
+
{"version":3,"file":"role.controller.js","sourceRoot":"","sources":["../../src/role/role.controller.ts"],"names":[],"mappings":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cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;;;;0CAExC;AAGD;IADC,IAAA,aAAI,GAAE;IACC,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;4CAE7B;AAGK;IADL,IAAA,cAAK,EAAC,SAAS,CAAC;IAEd,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;IAC7B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;4CAMxB;AAGK;IADL,IAAA,eAAM,GAAE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;4CAEnC;yBArGU,cAAc;IAD1B,IAAA,mBAAU,EAAC,OAAO,CAAC;IAGf,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC,CAAC,CAAA;qCACR,0BAAW;GAHhC,cAAc,CAsG1B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.controller.d.ts","sourceRoot":"","sources":["../../src/route/route.controller.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"route.controller.d.ts","sourceRoot":"","sources":["../../src/route/route.controller.ts"],"names":[],"mappings":"AAYA,OAAO,EAAc,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,qBACa,eAAe;IAGxB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,YAAY;IAIvC,SAAS,CAAe,gBAAgB,KAAA;IAKxC,YAAY,CAAiC,OAAO,EAAE,MAAM;IAK5D,MAAM,CAAS,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,SAAS;IAKzC,MAAM,CACsB,OAAO,EAAE,MAAM,EACvC,IAAI,EAAE,SAAS;IAMnB,MAAM,CAAS,IAAI,EAAE,SAAS;IAK9B,SAAS,CACmB,OAAO,EAAE,MAAM,EACjC,gBAAgB,EAAE,aAAa,EACnC,MAAM,KAAA;IAMZ,WAAW,CACiB,OAAO,EAAE,MAAM,EACvC,IAAI,EAAE,YAAY;IAMtB,WAAW,CACiB,OAAO,EAAE,MAAM,EACjC,gBAAgB,EAAE,aAAa,EACnC,MAAM,KAAA;IAMZ,aAAa,CACe,OAAO,EAAE,MAAM,EACvC,IAAI,EAAE,YAAY;CAI7B"}
|
@@ -14,8 +14,6 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
15
|
exports.RouteController = void 0;
|
16
16
|
const common_1 = require("@nestjs/common");
|
17
|
-
const role_decorator_1 = require("../role/decorators/role.decorator");
|
18
|
-
const auth_guard_1 = require("../auth/guards/auth.guard");
|
19
17
|
const pagination_1 = require("@hedhog/pagination");
|
20
18
|
const route_service_1 = require("./route.service");
|
21
19
|
const create_dto_1 = require("./dto/create.dto");
|
@@ -127,8 +125,6 @@ __decorate([
|
|
127
125
|
__metadata("design:returntype", Promise)
|
128
126
|
], RouteController.prototype, "updateScreens", null);
|
129
127
|
exports.RouteController = RouteController = __decorate([
|
130
|
-
(0, role_decorator_1.Role)(),
|
131
|
-
(0, common_1.UseGuards)(auth_guard_1.AuthGuard),
|
132
128
|
(0, common_1.Controller)('routes'),
|
133
129
|
__param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => route_service_1.RouteService))),
|
134
130
|
__metadata("design:paramtypes", [route_service_1.RouteService])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.controller.js","sourceRoot":"","sources":["../../src/route/route.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;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AK,EAAC,gBAAgB,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,SAAS,EAAE,qBAAY,CAAC,CAAA;IAC9B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,6BAAY;;kDAG3B;AAGK;IADL,IAAA,YAAG,EAAC,kBAAkB,CAAC;IAErB,WAAA,IAAA,cAAK,EAAC,SAAS,EAAE,qBAAY,CAAC,CAAA;IAC9B,WAAA,IAAA,uBAAU,GAAE,CAAA;IACZ,WAAA,IAAA,eAAM,GAAE,CAAA;;6CADuB,0BAAa;;kDAI9C;AAGK;IADL,IAAA,cAAK,EAAC,kBAAkB,CAAC;IAEvB,WAAA,IAAA,cAAK,EAAC,SAAS,EAAE,qBAAY,CAAC,CAAA;IAC9B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,6BAAY;;oDAG3B;0BAlEU,eAAe;IAD3B,IAAA,mBAAU,EAAC,QAAQ,CAAC;IAGhB,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC,CAAC,CAAA;qCACR,4BAAY;GAHlC,eAAe,CAmE3B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"screen.controller.d.ts","sourceRoot":"","sources":["../../src/screen/screen.controller.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"screen.controller.d.ts","sourceRoot":"","sources":["../../src/screen/screen.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,qBACa,gBAAgB;IAGzB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAIzC,UAAU,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;IAK3D,SAAS,CACoB,QAAQ,EAAE,MAAM,EACnC,gBAAgB,KAAA,EACpB,MAAM,KAAA;IAMZ,UAAU,CACmB,QAAQ,EAAE,MAAM,EACnC,gBAAgB,KAAA;IAM1B,WAAW,CACkB,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,YAAY;IAMtB,YAAY,CACiB,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,YAAY;IAMtB,IAAI,CAAkC,QAAQ,EAAE,MAAM;IAK5D,MAAM,CAAS,IAAI,EAAE,SAAS;IAKxB,MAAM,CACuB,QAAQ,EAAE,MAAM,EACzC,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
|
@@ -19,8 +19,6 @@ const create_dto_1 = require("./dto/create.dto");
|
|
19
19
|
const delete_dto_1 = require("../dto/delete.dto");
|
20
20
|
const update_dto_1 = require("./dto/update.dto");
|
21
21
|
const screen_service_1 = require("./screen.service");
|
22
|
-
const auth_guard_1 = require("../auth/guards/auth.guard");
|
23
|
-
const role_decorator_1 = require("../role/decorators/role.decorator");
|
24
22
|
const update_ids_dto_1 = require("../dto/update-ids.dto");
|
25
23
|
const locale_1 = require("../locale");
|
26
24
|
let ScreenController = class ScreenController {
|
@@ -130,8 +128,6 @@ __decorate([
|
|
130
128
|
__metadata("design:returntype", Promise)
|
131
129
|
], ScreenController.prototype, "delete", null);
|
132
130
|
exports.ScreenController = ScreenController = __decorate([
|
133
|
-
(0, role_decorator_1.Role)(),
|
134
|
-
(0, common_1.UseGuards)(auth_guard_1.AuthGuard),
|
135
131
|
(0, common_1.Controller)('screens'),
|
136
132
|
__param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => screen_service_1.ScreenService))),
|
137
133
|
__metadata("design:paramtypes", [screen_service_1.ScreenService])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"screen.controller.js","sourceRoot":"","sources":["../../src/screen/screen.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,
|
1
|
+
{"version":3,"file":"screen.controller.js","sourceRoot":"","sources":["../../src/screen/screen.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAWwB;AACxB,iDAA6C;AAC7C,kDAA8C;AAC9C,iDAA6C;AAC7C,qDAAiD;AACjD,0DAAqD;AACrD,sCAAmC;AAG5B,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAEmB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAC5C,CAAC;IAGE,AAAN,KAAK,CAAC,UAAU,CAAe,gBAAgB,EAAY,MAAM;QAC/D,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACjE,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CACoB,QAAgB,EACnC,gBAAgB,EACpB,MAAM;QAEhB,OAAO,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAC;IAC1E,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CACmB,QAAgB,EACnC,gBAAgB;QAE9B,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;IACnE,CAAC;IAGK,AAAN,KAAK,CAAC,WAAW,CACkB,QAAgB,EACzC,IAAkB;QAE1B,OAAO,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;IAGK,AAAN,KAAK,CAAC,YAAY,CACiB,QAAgB,EACzC,IAAkB;QAE1B,OAAO,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAGK,AAAN,KAAK,CAAC,IAAI,CAAkC,QAAgB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CAAA;IAC/B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,6BAAY;;oDAG3B;AAGK;IADL,IAAA,YAAG,EAAC,WAAW,CAAC;IACL,WAAA,IAAA,cAAK,EAAC,UAAU,EAAE,qBAAY,CAAC,CAAA;;;;4CAE1C;AAGD;IADC,IAAA,aAAI,GAAE;IACC,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;8CAE7B;AAGK;IADL,IAAA,cAAK,EAAC,WAAW,CAAC;IAEhB,WAAA,IAAA,cAAK,EAAC,UAAU,EAAE,qBAAY,CAAC,CAAA;IAC/B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;8CAMxB;AAGK;IADL,IAAA,eAAM,GAAE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;8CAEnC;2BApEU,gBAAgB;IAD5B,IAAA,mBAAU,EAAC,SAAS,CAAC;IAGjB,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC,CAAC,CAAA;qCACR,8BAAa;GAHpC,gBAAgB,CAqE5B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"setting-user.dto.d.ts","sourceRoot":"","sources":["../../../src/setting/dto/setting-user.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,cAAc;IAEzB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
@@ -9,24 +9,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.
|
13
|
-
const
|
14
|
-
|
15
|
-
}
|
16
|
-
exports.
|
17
|
-
__decorate([
|
18
|
-
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
19
|
-
__metadata("design:type", Number)
|
20
|
-
], Role.prototype, "id", void 0);
|
12
|
+
exports.SettingUserDTO = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
class SettingUserDTO {
|
15
|
+
}
|
16
|
+
exports.SettingUserDTO = SettingUserDTO;
|
21
17
|
__decorate([
|
22
|
-
(0,
|
23
|
-
unique: true,
|
24
|
-
}),
|
18
|
+
(0, class_validator_1.IsString)(),
|
25
19
|
__metadata("design:type", String)
|
26
|
-
],
|
27
|
-
|
28
|
-
(0, typeorm_1.Entity)({
|
29
|
-
name: 'roles',
|
30
|
-
})
|
31
|
-
], Role);
|
32
|
-
//# sourceMappingURL=role.entity.js.map
|
20
|
+
], SettingUserDTO.prototype, "value", void 0);
|
21
|
+
//# sourceMappingURL=setting-user.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"setting-user.dto.js","sourceRoot":"","sources":["../../../src/setting/dto/setting-user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2C;AAE3C,MAAa,cAAc;CAG1B;AAHD,wCAGC;AADC;IADC,IAAA,0BAAQ,GAAE;;6CACG"}
|
@@ -3,6 +3,7 @@ import { DeleteDTO } from '../dto/delete.dto';
|
|
3
3
|
import { UpdateDTO } from './dto/update.dto';
|
4
4
|
import { SettingsService } from './settings.service';
|
5
5
|
import { SettingsDTO } from './dto/settings.dto';
|
6
|
+
import { SettingUserDTO } from './dto/setting-user.dto';
|
6
7
|
export declare class SettingsController {
|
7
8
|
private readonly settingsService;
|
8
9
|
constructor(settingsService: SettingsService);
|
@@ -11,8 +12,13 @@ export declare class SettingsController {
|
|
11
12
|
getSettings(paginationParams: any, locale: any): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
|
12
13
|
show(settingId: number): Promise<any>;
|
13
14
|
create(data: CreateDTO): Promise<any>;
|
15
|
+
updateUserFromSlug(slug: string, { value }: SettingUserDTO, { id }: {
|
16
|
+
id: any;
|
17
|
+
}): Promise<any>;
|
14
18
|
updateFromSlug(slug: string, data: UpdateDTO): Promise<any>;
|
15
|
-
setManySettings(data: SettingsDTO): Promise<
|
19
|
+
setManySettings(data: SettingsDTO): Promise<{
|
20
|
+
success: boolean;
|
21
|
+
}>;
|
16
22
|
update(settingId: number, data: UpdateDTO): Promise<any>;
|
17
23
|
delete(data: DeleteDTO): Promise<any>;
|
18
24
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.controller.d.ts","sourceRoot":"","sources":["../../src/setting/settings.controller.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"settings.controller.d.ts","sourceRoot":"","sources":["../../src/setting/settings.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,qBACa,kBAAkB;IAG3B,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAAf,eAAe,EAAE,eAAe;IAI7C,mBAAmB,CACT,gBAAgB,KAAA,EACpB,MAAM,KAAA,EACD,IAAI,EAAE,MAAM;IAUvB,gBAAgB,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;IAKjE,WAAW,CAAe,gBAAgB,KAAA,EAAY,MAAM,KAAA;IAK5D,IAAI,CAAmC,SAAS,EAAE,MAAM;IAK9D,MAAM,CAAS,IAAI,EAAE,SAAS;IAKxB,kBAAkB,CACP,IAAI,EAAE,MAAM,EACnB,EAAE,KAAK,EAAE,EAAE,cAAc,EACzB,EAAE,EAAE,EAAE;;KAAA;IAMV,cAAc,CAAgB,IAAI,EAAE,MAAM,EAAU,IAAI,EAAE,SAAS;IAKnE,eAAe,CAAS,IAAI,EAAE,WAAW;;;IAKzC,MAAM,CACwB,SAAS,EAAE,MAAM,EAC3C,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
|
@@ -15,14 +15,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.SettingsController = void 0;
|
16
16
|
const pagination_1 = require("@hedhog/pagination");
|
17
17
|
const common_1 = require("@nestjs/common");
|
18
|
-
const auth_guard_1 = require("../auth/guards/auth.guard");
|
19
|
-
const role_decorator_1 = require("../role/decorators/role.decorator");
|
20
18
|
const create_dto_1 = require("./dto/create.dto");
|
21
19
|
const delete_dto_1 = require("../dto/delete.dto");
|
22
20
|
const update_dto_1 = require("./dto/update.dto");
|
23
21
|
const settings_service_1 = require("./settings.service");
|
24
22
|
const locale_1 = require("../locale");
|
25
23
|
const settings_dto_1 = require("./dto/settings.dto");
|
24
|
+
const user_decorator_1 = require("../auth/decorators/user.decorator");
|
25
|
+
const setting_user_dto_1 = require("./dto/setting-user.dto");
|
26
26
|
let SettingsController = class SettingsController {
|
27
27
|
constructor(settingsService) {
|
28
28
|
this.settingsService = settingsService;
|
@@ -42,6 +42,9 @@ let SettingsController = class SettingsController {
|
|
42
42
|
create(data) {
|
43
43
|
return this.settingsService.create(data);
|
44
44
|
}
|
45
|
+
async updateUserFromSlug(slug, { value }, { id }) {
|
46
|
+
return this.settingsService.setSettingUserValue(id, slug, value);
|
47
|
+
}
|
45
48
|
async updateFromSlug(slug, data) {
|
46
49
|
return this.settingsService.updateFromSlug(slug, data);
|
47
50
|
}
|
@@ -60,7 +63,6 @@ let SettingsController = class SettingsController {
|
|
60
63
|
};
|
61
64
|
exports.SettingsController = SettingsController;
|
62
65
|
__decorate([
|
63
|
-
(0, common_1.UseGuards)(auth_guard_1.AuthGuard),
|
64
66
|
(0, common_1.Get)('groups/:slug'),
|
65
67
|
__param(0, (0, pagination_1.Pagination)()),
|
66
68
|
__param(1, (0, locale_1.Locale)()),
|
@@ -70,7 +72,6 @@ __decorate([
|
|
70
72
|
__metadata("design:returntype", Promise)
|
71
73
|
], SettingsController.prototype, "getSettingFromGroup", null);
|
72
74
|
__decorate([
|
73
|
-
(0, common_1.UseGuards)(auth_guard_1.AuthGuard),
|
74
75
|
(0, common_1.Get)('groups'),
|
75
76
|
__param(0, (0, pagination_1.Pagination)()),
|
76
77
|
__param(1, (0, locale_1.Locale)()),
|
@@ -79,7 +80,6 @@ __decorate([
|
|
79
80
|
__metadata("design:returntype", Promise)
|
80
81
|
], SettingsController.prototype, "getSettingGroups", null);
|
81
82
|
__decorate([
|
82
|
-
(0, common_1.UseGuards)(auth_guard_1.AuthGuard),
|
83
83
|
(0, common_1.Get)(),
|
84
84
|
__param(0, (0, pagination_1.Pagination)()),
|
85
85
|
__param(1, (0, locale_1.Locale)()),
|
@@ -88,7 +88,6 @@ __decorate([
|
|
88
88
|
__metadata("design:returntype", Promise)
|
89
89
|
], SettingsController.prototype, "getSettings", null);
|
90
90
|
__decorate([
|
91
|
-
(0, common_1.UseGuards)(auth_guard_1.AuthGuard),
|
92
91
|
(0, common_1.Get)(':settingId'),
|
93
92
|
__param(0, (0, common_1.Param)('settingId', common_1.ParseIntPipe)),
|
94
93
|
__metadata("design:type", Function),
|
@@ -96,7 +95,6 @@ __decorate([
|
|
96
95
|
__metadata("design:returntype", Promise)
|
97
96
|
], SettingsController.prototype, "show", null);
|
98
97
|
__decorate([
|
99
|
-
(0, common_1.UseGuards)(auth_guard_1.AuthGuard),
|
100
98
|
(0, common_1.Post)(),
|
101
99
|
__param(0, (0, common_1.Body)()),
|
102
100
|
__metadata("design:type", Function),
|
@@ -104,7 +102,15 @@ __decorate([
|
|
104
102
|
__metadata("design:returntype", void 0)
|
105
103
|
], SettingsController.prototype, "create", null);
|
106
104
|
__decorate([
|
107
|
-
(0, common_1.
|
105
|
+
(0, common_1.Put)('users/:slug'),
|
106
|
+
__param(0, (0, common_1.Param)('slug')),
|
107
|
+
__param(1, (0, common_1.Body)()),
|
108
|
+
__param(2, (0, user_decorator_1.User)()),
|
109
|
+
__metadata("design:type", Function),
|
110
|
+
__metadata("design:paramtypes", [String, setting_user_dto_1.SettingUserDTO, Object]),
|
111
|
+
__metadata("design:returntype", Promise)
|
112
|
+
], SettingsController.prototype, "updateUserFromSlug", null);
|
113
|
+
__decorate([
|
108
114
|
(0, common_1.Put)(':slug'),
|
109
115
|
__param(0, (0, common_1.Param)('slug')),
|
110
116
|
__param(1, (0, common_1.Body)()),
|
@@ -113,7 +119,6 @@ __decorate([
|
|
113
119
|
__metadata("design:returntype", Promise)
|
114
120
|
], SettingsController.prototype, "updateFromSlug", null);
|
115
121
|
__decorate([
|
116
|
-
(0, common_1.UseGuards)(auth_guard_1.AuthGuard),
|
117
122
|
(0, common_1.Put)(),
|
118
123
|
__param(0, (0, common_1.Body)()),
|
119
124
|
__metadata("design:type", Function),
|
@@ -121,7 +126,6 @@ __decorate([
|
|
121
126
|
__metadata("design:returntype", Promise)
|
122
127
|
], SettingsController.prototype, "setManySettings", null);
|
123
128
|
__decorate([
|
124
|
-
(0, common_1.UseGuards)(auth_guard_1.AuthGuard),
|
125
129
|
(0, common_1.Patch)(':settingId'),
|
126
130
|
__param(0, (0, common_1.Param)('settingId', common_1.ParseIntPipe)),
|
127
131
|
__param(1, (0, common_1.Body)()),
|
@@ -130,7 +134,6 @@ __decorate([
|
|
130
134
|
__metadata("design:returntype", Promise)
|
131
135
|
], SettingsController.prototype, "update", null);
|
132
136
|
__decorate([
|
133
|
-
(0, common_1.UseGuards)(auth_guard_1.AuthGuard),
|
134
137
|
(0, common_1.Delete)(),
|
135
138
|
__param(0, (0, common_1.Body)()),
|
136
139
|
__metadata("design:type", Function),
|
@@ -138,7 +141,6 @@ __decorate([
|
|
138
141
|
__metadata("design:returntype", Promise)
|
139
142
|
], SettingsController.prototype, "delete", null);
|
140
143
|
exports.SettingsController = SettingsController = __decorate([
|
141
|
-
(0, role_decorator_1.Role)(),
|
142
144
|
(0, common_1.Controller)('settings'),
|
143
145
|
__param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => settings_service_1.SettingsService))),
|
144
146
|
__metadata("design:paramtypes", [settings_service_1.SettingsService])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.controller.js","sourceRoot":"","sources":["../../src/setting/settings.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,
|
1
|
+
{"version":3,"file":"settings.controller.js","sourceRoot":"","sources":["../../src/setting/settings.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAYwB;AACxB,iDAA6C;AAC7C,kDAA8C;AAC9C,iDAA6C;AAC7C,yDAAqD;AACrD,sCAAmC;AACnC,qDAAiD;AACjD,sEAAyD;AACzD,6DAAwD;AAGjD,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC7B,YAEmB,eAAgC;QAAhC,oBAAe,GAAf,eAAe,CAAiB;IAChD,CAAC;IAGE,AAAN,KAAK,CAAC,mBAAmB,CACT,gBAAgB,EACpB,MAAM,EACD,IAAY;QAE3B,OAAO,IAAI,CAAC,eAAe,CAAC,mBAAmB,CAC7C,MAAM,EACN,gBAAgB,EAChB,IAAI,CACL,CAAC;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,gBAAgB,CAAe,gBAAgB,EAAY,MAAM;QACrE,OAAO,IAAI,CAAC,eAAe,CAAC,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACzE,CAAC;IAGK,AAAN,KAAK,CAAC,WAAW,CAAe,gBAAgB,EAAY,MAAM;QAChE,OAAO,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACpE,CAAC;IAGK,AAAN,KAAK,CAAC,IAAI,CAAmC,SAAiB;QAC5D,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC7C,CAAC;IAGD,MAAM,CAAS,IAAe;QA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B,WAAA,IAAA,eAAM,GAAE,CAAA;;;;qDAE1D;AAGK;IADL,IAAA,YAAG,EAAC,YAAY,CAAC;IACN,WAAA,IAAA,cAAK,EAAC,WAAW,EAAE,qBAAY,CAAC,CAAA;;;;8CAE3C;AAGD;IADC,IAAA,aAAI,GAAE;IACC,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;gDAE7B;AAGK;IADL,IAAA,YAAG,EAAC,aAAa,CAAC;IAEhB,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IACb,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,qBAAI,GAAE,CAAA;;6CADY,iCAAc;;4DAIlC;AAGK;IADL,IAAA,YAAG,EAAC,OAAO,CAAC;IACS,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IAAgB,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;wDAExE;AAGK;IADL,IAAA,YAAG,GAAE;IACiB,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,0BAAW;;yDAE9C;AAGK;IADL,IAAA,cAAK,EAAC,YAAY,CAAC;IAEjB,WAAA,IAAA,cAAK,EAAC,WAAW,EAAE,qBAAY,CAAC,CAAA;IAChC,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;gDAMxB;AAGK;IADL,IAAA,eAAM,GAAE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;gDAEnC;6BAxEU,kBAAkB;IAD9B,IAAA,mBAAU,EAAC,UAAU,CAAC;IAGlB,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,kCAAe,CAAC,CAAC,CAAA;qCACR,kCAAe;GAHxC,kBAAkB,CAyE9B"}
|
@@ -8,7 +8,9 @@ export declare class SettingsService {
|
|
8
8
|
private readonly prismaService;
|
9
9
|
private readonly paginationService;
|
10
10
|
constructor(prismaService: PrismaService, paginationService: PaginationService);
|
11
|
-
setManySettings(data: SettingsDTO): Promise<
|
11
|
+
setManySettings(data: SettingsDTO): Promise<{
|
12
|
+
success: boolean;
|
13
|
+
}>;
|
12
14
|
getSettingFromGroup(locale: any, paginationParams: any, slug: string): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
|
13
15
|
getSettingGroups(locale: string, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
|
14
16
|
getSettings(locale: string, paginationParams: PaginationDTO): Promise<import("@hedhog/pagination").PaginatedResult<unknown>>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.service.d.ts","sourceRoot":"","sources":["../../src/setting/settings.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAO/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
1
|
+
{"version":3,"file":"settings.service.d.ts","sourceRoot":"","sources":["../../src/setting/settings.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAO/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,qBACa,eAAe;IAGxB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAE9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAFjB,aAAa,EAAE,aAAa,EAE5B,iBAAiB,EAAE,iBAAiB;IAGjD,eAAe,CAAC,IAAI,EAAE,WAAW;;;IAejC,mBAAmB,CAAC,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM;IAiEpE,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IAqChE,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa;IA0D3D,GAAG,CAAC,SAAS,EAAE,MAAM;IAMrB,MAAM,CAAC,EAAE,EAAE,SAAS;IAMpB,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE;IAOpD,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS;IAiB5C,MAAM,CAAC,EAAE,GAAG,EAAE,EAAE,SAAS;IAgBzB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IA0ChE,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE;CA4C/C"}
|
@@ -23,18 +23,17 @@ let SettingsService = class SettingsService {
|
|
23
23
|
this.paginationService = paginationService;
|
24
24
|
}
|
25
25
|
async setManySettings(data) {
|
26
|
-
const results = [];
|
27
26
|
for (const { slug, value } of data.settings) {
|
28
|
-
|
27
|
+
await this.prismaService.settings.updateMany({
|
29
28
|
where: {
|
30
29
|
slug,
|
31
30
|
},
|
32
31
|
data: {
|
33
32
|
value,
|
34
33
|
},
|
35
|
-
})
|
34
|
+
});
|
36
35
|
}
|
37
|
-
return
|
36
|
+
return { success: true };
|
38
37
|
}
|
39
38
|
async getSettingFromGroup(locale, paginationParams, slug) {
|
40
39
|
const fields = ['slug', 'value'];
|
@@ -207,18 +206,18 @@ let SettingsService = class SettingsService {
|
|
207
206
|
const setting = await this.prismaService.settings.findFirst({
|
208
207
|
where: {
|
209
208
|
slug,
|
210
|
-
|
209
|
+
user_override: true,
|
211
210
|
},
|
212
211
|
});
|
213
212
|
if (!setting) {
|
214
213
|
throw new common_1.BadRequestException(`Setting with slug ${slug} not found or user can not override.`);
|
215
214
|
}
|
216
|
-
return await this.prismaService.
|
215
|
+
return await this.prismaService.setting_users.upsert({
|
217
216
|
where: {
|
218
|
-
|
217
|
+
setting_id: setting.id,
|
219
218
|
},
|
220
219
|
create: {
|
221
|
-
|
220
|
+
setting_id: setting.id,
|
222
221
|
value,
|
223
222
|
user_id: user.id,
|
224
223
|
},
|
@@ -240,7 +239,7 @@ let SettingsService = class SettingsService {
|
|
240
239
|
value: true,
|
241
240
|
slug: true,
|
242
241
|
type: true,
|
243
|
-
|
242
|
+
user_override: true,
|
244
243
|
},
|
245
244
|
});
|
246
245
|
const slugUserOverride = settings.filter((setting) => setting.userOverride);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"settings.service.js","sourceRoot":"","sources":["../../src/setting/settings.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAsE;AACtE,2CAA+C;AAC/C,2CAKwB;AAIxB,yCAAiD;
|
1
|
+
{"version":3,"file":"settings.service.js","sourceRoot":"","sources":["../../src/setting/settings.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAsE;AACtE,2CAA+C;AAC/C,2CAKwB;AAIxB,yCAAiD;AAI1C,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAEmB,aAA4B,EAE5B,iBAAoC;QAFpC,kBAAa,GAAb,aAAa,CAAe;QAE5B,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,KAAK,CAAC,eAAe,CAAC,IAAiB;QACrC,KAAK,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,IAAI,CAA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OAAO,CAAC,EAAE,CAAC;iBAClD;aACF;YACD,MAAM,EAAE;gBACN,KAAK,EAAE,IAAI;gBACX,SAAS,EAAE,IAAI;aAChB;SACF,CAAC,CAAC;QAEH,QAAQ,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;YAClC,MAAM,WAAW,GAAG,YAAY,CAAC,IAAI,CACnC,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,SAAS,KAAK,OAAO,CAAC,EAAE,CACtD,CAAC;YACF,IAAI,WAAW,EAAE,CAAC;gBAChB,OAAO,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;YACpC,CAAC;YACD,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAA;AAjUY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,sBAAa,CAAC,CAAC,CAAA;IAEvC,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAiB,CAAC,CAAC,CAAA;qCADZ,sBAAa;QAET,8BAAiB;GAL5C,eAAe,CAiU3B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user.controller.d.ts","sourceRoot":"","sources":["../../src/user/user.controller.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"user.controller.d.ts","sourceRoot":"","sources":["../../src/user/user.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,qBACa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAAX,WAAW,EAAE,WAAW;IAIrC,QAAQ,CAAe,gBAAgB,KAAA;IAKvC,SAAS,CACkB,MAAM,EAAE,MAAM,EAC/B,gBAAgB,KAAA;IAM1B,WAAW,CACgB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,YAAY;IAMtB,IAAI,CAAgC,MAAM,EAAE,MAAM;IAKxD,MAAM,CAAS,IAAI,EAAE,SAAS;IAKxB,MAAM,CACqB,MAAM,EAAE,MAAM,EACrC,IAAI,EAAE,SAAS;IASnB,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
|
@@ -19,8 +19,6 @@ const create_dto_1 = require("./dto/create.dto");
|
|
19
19
|
const delete_dto_1 = require("../dto/delete.dto");
|
20
20
|
const update_dto_1 = require("./dto/update.dto");
|
21
21
|
const user_service_1 = require("./user.service");
|
22
|
-
const auth_guard_1 = require("../auth/guards/auth.guard");
|
23
|
-
const role_decorator_1 = require("../role/decorators/role.decorator");
|
24
22
|
const update_ids_dto_1 = require("../dto/update-ids.dto");
|
25
23
|
let UserController = class UserController {
|
26
24
|
constructor(userService) {
|
@@ -105,8 +103,6 @@ __decorate([
|
|
105
103
|
__metadata("design:returntype", Promise)
|
106
104
|
], UserController.prototype, "delete", null);
|
107
105
|
exports.UserController = UserController = __decorate([
|
108
|
-
(0, role_decorator_1.Role)(),
|
109
|
-
(0, common_1.UseGuards)(auth_guard_1.AuthGuard),
|
110
106
|
(0, common_1.Controller)('users'),
|
111
107
|
__param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => user_service_1.UserService))),
|
112
108
|
__metadata("design:paramtypes", [user_service_1.UserService])
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"user.controller.js","sourceRoot":"","sources":["../../src/user/user.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,
|
1
|
+
{"version":3,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AAA;AApDY,wCAAc;AAOnB;IADL,IAAA,YAAG,GAAE;IACU,WAAA,IAAA,uBAAU,GAAE,CAAA;;;;8CAE3B;AAGK;IADL,IAAA,YAAG,EAAC,eAAe,CAAC;IAElB,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;IAC7B,WAAA,IAAA,uBAAU,GAAE,CAAA;;;;+CAGd;AAGK;IADL,IAAA,cAAK,EAAC,eAAe,CAAC;IAEpB,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;IAC7B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,6BAAY;;iDAG3B;AAGK;IADL,IAAA,YAAG,EAAC,SAAS,CAAC;IACH,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;;;;0CAExC;AAGD;IADC,IAAA,aAAI,GAAE;IACC,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;4CAE7B;AAGK;IADL,IAAA,cAAK,EAAC,SAAS,CAAC;IAEd,WAAA,IAAA,cAAK,EAAC,QAAQ,EAAE,qBAAY,CAAC,CAAA;IAC7B,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;4CAMxB;AAGK;IADL,IAAA,eAAM,GAAE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;4CAEnC;yBAnDU,cAAc;IAD1B,IAAA,mBAAU,EAAC,OAAO,CAAC;IAGf,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC,CAAC,CAAA;qCACR,0BAAW;GAHhC,cAAc,CAoD1B"}
|
package/hedhog.yaml
CHANGED
@@ -100,6 +100,8 @@ data:
|
|
100
100
|
method: PUT
|
101
101
|
- url: /settings/:slug
|
102
102
|
method: PUT
|
103
|
+
- url: /settings/users/:slug
|
104
|
+
method: PUT
|
103
105
|
- url: /settings/:settingId
|
104
106
|
method: PATCH
|
105
107
|
- url: /settings
|
@@ -1181,6 +1183,7 @@ data:
|
|
1181
1183
|
en: The system default language, each user can have their own preferred language
|
1182
1184
|
pt: O idioma padrão do sistema, cada usuário pode ter o seu próprio idioma preferido
|
1183
1185
|
value: en
|
1186
|
+
user_override: true
|
1184
1187
|
- slug: timezone
|
1185
1188
|
type: string
|
1186
1189
|
name:
|
@@ -1190,6 +1193,7 @@ data:
|
|
1190
1193
|
en: The timezone to use
|
1191
1194
|
pt: O fuso horário a utilizar
|
1192
1195
|
value: UTC
|
1196
|
+
user_override: true
|
1193
1197
|
- slug: appearance
|
1194
1198
|
icon: palette
|
1195
1199
|
name:
|
@@ -1661,7 +1665,7 @@ tables:
|
|
1661
1665
|
- name: value
|
1662
1666
|
length: 1023
|
1663
1667
|
isNullable: true
|
1664
|
-
- name:
|
1668
|
+
- name: user_override
|
1665
1669
|
type: boolean
|
1666
1670
|
default: false
|
1667
1671
|
- type: created_at
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"country.entity.d.ts","sourceRoot":"","sources":["../../src/entities/country.entity.ts"],"names":[],"mappings":"AAEA,qBAGa,OAAO;IAIlB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAKb,IAAI,EAAE,MAAM,CAAC;CACd"}
|