@hedhog/admin 0.0.95 → 0.0.96

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. package/dist/auth/auth.controller.d.ts.map +1 -1
  2. package/dist/auth/auth.controller.js +2 -0
  3. package/dist/auth/auth.controller.js.map +1 -1
  4. package/dist/auth/decorators/user.decorator.d.ts.map +1 -1
  5. package/dist/auth/decorators/user.decorator.js.map +1 -1
  6. package/dist/auth/dto/forget.dto.d.ts.map +1 -1
  7. package/dist/auth/dto/forget.dto.js.map +1 -1
  8. package/dist/auth/dto/otp.dto.d.ts.map +1 -1
  9. package/dist/auth/dto/otp.dto.js.map +1 -1
  10. package/dist/auth/guards/auth.guard.d.ts.map +1 -1
  11. package/dist/auth/guards/auth.guard.js +1 -0
  12. package/dist/auth/guards/auth.guard.js.map +1 -1
  13. package/dist/auth/types/user.type.d.ts.map +1 -1
  14. package/dist/locale/locale.controller.d.ts +1 -1
  15. package/dist/locale/locale.controller.d.ts.map +1 -1
  16. package/dist/locale/locale.controller.js +5 -3
  17. package/dist/locale/locale.controller.js.map +1 -1
  18. package/dist/menu/dto/create.dto.d.ts.map +1 -1
  19. package/dist/menu/dto/create.dto.js.map +1 -1
  20. package/dist/menu/dto/update.dto.js.map +1 -1
  21. package/dist/menu/menu.controller.d.ts +3 -3
  22. package/dist/menu/menu.controller.d.ts.map +1 -1
  23. package/dist/menu/menu.controller.js +7 -5
  24. package/dist/menu/menu.controller.js.map +1 -1
  25. package/dist/role/guards/role.guard.d.ts +1 -1
  26. package/dist/role/guards/role.guard.d.ts.map +1 -1
  27. package/dist/role/guards/role.guard.js +6 -3
  28. package/dist/role/guards/role.guard.js.map +1 -1
  29. package/dist/role/role.controller.d.ts +2 -2
  30. package/dist/role/role.controller.d.ts.map +1 -1
  31. package/dist/role/role.controller.js +5 -3
  32. package/dist/role/role.controller.js.map +1 -1
  33. package/dist/role/role.module.js +2 -2
  34. package/dist/role/role.module.js.map +1 -1
  35. package/dist/route/dto/create.dto.js.map +1 -1
  36. package/dist/route/route.controller.d.ts +3 -3
  37. package/dist/route/route.controller.d.ts.map +1 -1
  38. package/dist/route/route.controller.js +6 -4
  39. package/dist/route/route.controller.js.map +1 -1
  40. package/dist/screen/dto/create.dto.js.map +1 -1
  41. package/dist/screen/screen.controller.d.ts +2 -2
  42. package/dist/screen/screen.controller.d.ts.map +1 -1
  43. package/dist/screen/screen.controller.js +5 -3
  44. package/dist/screen/screen.controller.js.map +1 -1
  45. package/dist/setting/settings.controller.d.ts +3 -3
  46. package/dist/setting/settings.controller.d.ts.map +1 -1
  47. package/dist/setting/settings.controller.js +7 -5
  48. package/dist/setting/settings.controller.js.map +1 -1
  49. package/dist/setting/settings.service.d.ts +2 -2
  50. package/dist/setting/settings.service.d.ts.map +1 -1
  51. package/dist/setting/settings.service.js +4 -4
  52. package/dist/setting/settings.service.js.map +1 -1
  53. package/dist/setting/settings.service.spec.js +5 -5
  54. package/dist/setting/settings.service.spec.js.map +1 -1
  55. package/dist/user/user.controller.d.ts +2 -2
  56. package/dist/user/user.controller.d.ts.map +1 -1
  57. package/dist/user/user.controller.js +4 -2
  58. package/dist/user/user.controller.js.map +1 -1
  59. package/hedhog.yaml +1 -1
  60. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"auth.controller.d.ts","sourceRoot":"","sources":["../../src/auth/auth.controller.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAErD,qBACa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,WAAW;IAIjC,MAAM,CAAS,EAAE,EAAE,EAAE,EAAE,QAAQ;IAM/B,KAAK,CAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ;;;;;;IAM3C,GAAG,CAAS,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,MAAM;;;IAMnC,MAAM,CAAS,EAAE,KAAK,EAAE,EAAE,SAAS;CAG1C"}
1
+ {"version":3,"file":"auth.controller.d.ts","sourceRoot":"","sources":["../../src/auth/auth.controller.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAErD,qBACa,cAAc;IAGvB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,WAAW;IAKjC,MAAM,CAAS,EAAE,EAAE,EAAE,EAAE,QAAQ;IAM/B,KAAK,CAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,QAAQ;;;;;;IAM3C,GAAG,CAAS,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,MAAM;;;IAMnC,MAAM,CAAS,EAAE,KAAK,EAAE,EAAE,SAAS;CAG1C"}
@@ -14,6 +14,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.AuthController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
+ const role_decorator_1 = require("../role/decorators/role.decorator");
17
18
  const auth_service_1 = require("./auth.service");
18
19
  const public_decorator_1 = require("./decorators/public.decorator");
19
20
  const user_decorator_1 = require("./decorators/user.decorator");
@@ -39,6 +40,7 @@ let AuthController = class AuthController {
39
40
  };
40
41
  exports.AuthController = AuthController;
41
42
  __decorate([
43
+ (0, role_decorator_1.Role)(),
42
44
  (0, common_1.Get)('verify'),
43
45
  __param(0, (0, user_decorator_1.User)()),
44
46
  __metadata("design:type", Function),
@@ -1 +1 @@
1
- {"version":3,"file":"auth.controller.js","sourceRoot":"","sources":["../../src/auth/auth.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAOwB;AACxB,iDAA6C;AAC7C,oEAAuD;AACvD,gEAAmD;AACnD,iDAA6C;AAC7C,+CAA2C;AAC3C,2CAAuC;AAIhC,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAEmB,OAAoB;QAApB,YAAO,GAAP,OAAO,CAAa;IACpC,CAAC;IAGE,AAAN,KAAK,CAAC,MAAM,CAAS,EAAE,EAAE,EAAY;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACjC,CAAC;IAIK,AAAN,KAAK,CAAC,KAAK,CAAS,EAAE,KAAK,EAAE,QAAQ,EAAY;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;IACjD,CAAC;IAIK,AAAN,KAAK,CAAC,GAAG,CAAS,EAAE,KAAK,EAAE,IAAI,EAAU;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3C,CAAC;IAIK,AAAN,KAAK,CAAC,MAAM,CAAS,EAAE,KAAK,EAAa;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACxC,CAAC;CACF,CAAA;AA5BY,wCAAc;AAOnB;IADL,IAAA,YAAG,EAAC,QAAQ,CAAC;IACA,WAAA,IAAA,qBAAI,GAAE,CAAA;;;;4CAEnB;AAIK;IAFL,IAAA,yBAAM,GAAE;IACR,IAAA,aAAI,EAAC,OAAO,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA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CAAC;IAC3C,CAAC;IAIK,AAAN,KAAK,CAAC,MAAM,CAAS,EAAE,KAAK,EAAa;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IACxC,CAAC;CACF,CAAA;AA7BY,wCAAc;AAQnB;IAFL,IAAA,qBAAI,GAAE;IACN,IAAA,YAAG,EAAC,QAAQ,CAAC;IACA,WAAA,IAAA,qBAAI,GAAE,CAAA;;;;4CAEnB;AAIK;IAFL,IAAA,yBAAM,GAAE;IACR,IAAA,aAAI,EAAC,OAAO,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAsB,oBAAQ;;2CAEhD;AAIK;IAFL,IAAA,yBAAM,GAAE;IACR,IAAA,aAAI,EAAC,KAAK,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAkB,gBAAM;;yCAExC;AAIK;IAFL,IAAA,yBAAM,GAAE;IACR,IAAA,aAAI,EAAC,QAAQ,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAY,sBAAS;;4CAExC;yBA5BU,cAAc;IAD1B,IAAA,mBAAU,EAAC,MAAM,CAAC;IAGd,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC,CAAC,CAAA;qCACZ,0BAAW;GAH5B,cAAc,CA6B1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"user.decorator.d.ts","sourceRoot":"","sources":["../../../src/auth/decorators/user.decorator.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,yLAUhB,CAAC"}
1
+ {"version":3,"file":"user.decorator.d.ts","sourceRoot":"","sources":["../../../src/auth/decorators/user.decorator.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI,yLAUhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"user.decorator.js","sourceRoot":"","sources":["../../../src/auth/decorators/user.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAA+F;AAElF,QAAA,IAAI,GAAG,IAAA,6BAAoB,EACtC,CAAC,QAAuB,IAAI,EAAE,GAAqB,EAAE,EAAE;IACrD,MAAM,OAAO,GAAG,GAAG,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC;IAEhD,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QACxC,MAAM,IAAI,8BAAqB,CAAC,2BAA2B,CAAC,CAAC;IAC/D,CAAC;IAED,OAAO,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC9D,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"user.decorator.js","sourceRoot":"","sources":["../../../src/auth/decorators/user.decorator.ts"],"names":[],"mappings":";;;AAAA,2CAIwB;AAEX,QAAA,IAAI,GAAG,IAAA,6BAAoB,EACtC,CAAC,QAAuB,IAAI,EAAE,GAAqB,EAAE,EAAE;IACrD,MAAM,OAAO,GAAG,GAAG,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC;IAEhD,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QACxC,MAAM,IAAI,8BAAqB,CAAC,2BAA2B,CAAC,CAAC;IAC/D,CAAC;IAED,OAAO,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC9D,CAAC,CACF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"forget.dto.d.ts","sourceRoot":"","sources":["../../../src/auth/dto/forget.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IAGpB,KAAK,EAAE,MAAM,CAAC;CAEf"}
1
+ {"version":3,"file":"forget.dto.d.ts","sourceRoot":"","sources":["../../../src/auth/dto/forget.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IAEpB,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1 +1 @@
1
- {"version":3,"file":"forget.dto.js","sourceRoot":"","sources":["../../../src/auth/dto/forget.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0C;AAE1C,MAAa,SAAS;CAKrB;AALD,8BAKC;AAFC;IADC,IAAA,yBAAO,GAAE;;wCACI"}
1
+ {"version":3,"file":"forget.dto.js","sourceRoot":"","sources":["../../../src/auth/dto/forget.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0C;AAE1C,MAAa,SAAS;CAGrB;AAHD,8BAGC;AADC;IADC,IAAA,yBAAO,GAAE;;wCACI"}
@@ -1 +1 @@
1
- {"version":3,"file":"otp.dto.d.ts","sourceRoot":"","sources":["../../../src/auth/dto/otp.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,MAAM;IAKjB,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;CAEf"}
1
+ {"version":3,"file":"otp.dto.d.ts","sourceRoot":"","sources":["../../../src/auth/dto/otp.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,MAAM;IAIjB,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;CACf"}
@@ -1 +1 @@
1
- {"version":3,"file":"otp.dto.js","sourceRoot":"","sources":["../../../src/auth/dto/otp.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyD;AAEzD,MAAa,MAAM;CAUlB;AAVD,wBAUC;AALC;IAHC,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,MAAM,CAAC;IACX,IAAA,uBAAK,GAAE;;oCACK;AAGb;IADC,IAAA,uBAAK,GAAE;;qCACM"}
1
+ {"version":3,"file":"otp.dto.js","sourceRoot":"","sources":["../../../src/auth/dto/otp.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyD;AAEzD,MAAa,MAAM;CAQlB;AARD,wBAQC;AAJC;IAHC,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,qBAAG,EAAC,MAAM,CAAC;IACX,IAAA,uBAAK,GAAE;;oCACK;AAGb;IADC,IAAA,uBAAK,GAAE;;qCACM"}
@@ -1 +1 @@
1
- {"version":3,"file":"auth.guard.d.ts","sourceRoot":"","sources":["../../../src/auth/guards/auth.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAGjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,qBACa,SAAU,YAAW,WAAW;IAEzC,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,SAAS;gBADT,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,SAAS;IAGxB,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IA0B9D,OAAO,CAAC,sBAAsB;CAK/B"}
1
+ {"version":3,"file":"auth.guard.d.ts","sourceRoot":"","sources":["../../../src/auth/guards/auth.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAGjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,qBACa,SAAU,YAAW,WAAW;IAEzC,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,SAAS;gBADT,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,SAAS;IAGxB,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IA4B9D,OAAO,CAAC,sBAAsB;CAK/B"}
@@ -20,6 +20,7 @@ let AuthGuard = class AuthGuard {
20
20
  this.reflector = reflector;
21
21
  }
22
22
  async canActivate(context) {
23
+ console.log('AuthGuard');
23
24
  const isPublic = this.reflector.getAllAndOverride(public_decorator_1.IS_PUBLIC_KEY, [
24
25
  context.getHandler(),
25
26
  context.getClass(),
@@ -1 +1 @@
1
- {"version":3,"file":"auth.guard.js","sourceRoot":"","sources":["../../../src/auth/guards/auth.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAKwB;AACxB,uCAAyC;AAEzC,kDAA8C;AAC9C,qEAA+D;AAGxD,IAAM,SAAS,GAAf,MAAM,SAAS;IACpB,YACU,IAAiB,EACjB,SAAoB;QADpB,SAAI,GAAJ,IAAI,CAAa;QACjB,cAAS,GAAT,SAAS,CAAW;IAC3B,CAAC;IAEJ,KAAK,CAAC,WAAW,CAAC,OAAyB;QACzC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAU,gCAAa,EAAE;YACxE,OAAO,CAAC,UAAU,EAAE;YACpB,OAAO,CAAC,QAAQ,EAAE;SACnB,CAAC,CAAC;QAEH,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,OAAO,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC;QACpD,MAAM,KAAK,GAAG,IAAI,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;QAEnD,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,MAAM,IAAI,8BAAqB,EAAE,CAAC;QACpC,CAAC;QACD,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAEnD,OAAO,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC;QAC5B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,8BAAqB,CA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C;YACX,MAAM,IAAI,8BAAqB,EAAE,CAAC;QACpC,CAAC;QACD,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAEnD,OAAO,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC;QAC5B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,IAAI,8BAAqB,CAAC,KAAK,CAAC,CAAC;QACzC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEO,sBAAsB,CAAC,OAAgB;;QAC7C,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,MAAA,MAAA,OAAO,CAAC,OAAO,CAAC,aAAa,0CAAE,KAAK,CAAC,GAAG,CAAC,mCAAI,EAAE,CAAC;QAEtE,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IAC/C,CAAC;CACF,CAAA;AAvCY,8BAAS;oBAAT,SAAS;IADrB,IAAA,mBAAU,GAAE;qCAGK,0BAAW;QACN,gBAAS;GAHnB,SAAS,CAuCrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"user.type.d.ts","sourceRoot":"","sources":["../../../src/auth/types/user.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAA"}
1
+ {"version":3,"file":"user.type.d.ts","sourceRoot":"","sources":["../../../src/auth/types/user.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { CreateDTO } from './dto/create.dto';
2
2
  import { DeleteDTO } from './dto/delete.dto';
3
+ import { SetEnabledDTO } from './dto/set-enabled.dto';
3
4
  import { UpdateDTO } from './dto/update.dto';
4
5
  import { LocaleService } from './locale.service';
5
- import { SetEnabledDTO } from './dto/set-enabled.dto';
6
6
  export declare class LocaleController {
7
7
  private readonly localeService;
8
8
  constructor(localeService: LocaleService);
@@ -1 +1 @@
1
- {"version":3,"file":"locale.controller.d.ts","sourceRoot":"","sources":["../../src/locale/locale.controller.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,qBACa,gBAAgB;IAGzB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAKzC,UAAU,CAAe,gBAAgB,KAAA,EAAY,MAAM,EAAE,MAAM;IAMnE,eAAe,CACE,UAAU,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM;IAMjC,GAAG,CAAe,gBAAgB,KAAA,EAAY,MAAM,EAAE,MAAM;IAK5D,OAAO,CAA4B,EAAE,EAAE,MAAM;IAKnD,MAAM,CAAS,IAAI,EAAE,SAAS;IAKxB,UAAU,CAAS,EAAE,KAAK,EAAE,EAAE,aAAa;IAK3C,MAAM,CAA4B,EAAE,EAAE,MAAM,EAAU,IAAI,EAAE,SAAS;IAQrE,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
1
+ {"version":3,"file":"locale.controller.d.ts","sourceRoot":"","sources":["../../src/locale/locale.controller.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,qBAEa,gBAAgB;IAGzB,OAAO,CAAC,QAAQ,CAAC,aAAa;gBAAb,aAAa,EAAE,aAAa;IAKzC,UAAU,CAAe,gBAAgB,KAAA,EAAY,MAAM,EAAE,MAAM;IAMnE,eAAe,CACE,UAAU,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM;IAMjC,GAAG,CAAe,gBAAgB,KAAA,EAAY,MAAM,EAAE,MAAM;IAK5D,OAAO,CAA4B,EAAE,EAAE,MAAM;IAKnD,MAAM,CAAS,IAAI,EAAE,SAAS;IAKxB,UAAU,CAAS,EAAE,KAAK,EAAE,EAAE,aAAa;IAK3C,MAAM,CAA4B,EAAE,EAAE,MAAM,EAAU,IAAI,EAAE,SAAS;IAQrE,MAAM,CAAS,IAAI,EAAE,SAAS;CAGrC"}
@@ -15,13 +15,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.LocaleController = void 0;
16
16
  const pagination_1 = require("@hedhog/pagination");
17
17
  const common_1 = require("@nestjs/common");
18
+ const public_decorator_1 = require("../auth/decorators/public.decorator");
19
+ const role_decorator_1 = require("../role/decorators/role.decorator");
18
20
  const create_dto_1 = require("./dto/create.dto");
19
21
  const delete_dto_1 = require("./dto/delete.dto");
22
+ const set_enabled_dto_1 = require("./dto/set-enabled.dto");
20
23
  const update_dto_1 = require("./dto/update.dto");
21
- const locale_service_1 = require("./locale.service");
22
24
  const locale_decorator_1 = require("./locale.decorator");
23
- const public_decorator_1 = require("../auth/decorators/public.decorator");
24
- const set_enabled_dto_1 = require("./dto/set-enabled.dto");
25
+ const locale_service_1 = require("./locale.service");
25
26
  let LocaleController = class LocaleController {
26
27
  constructor(localeService) {
27
28
  this.localeService = localeService;
@@ -118,6 +119,7 @@ __decorate([
118
119
  __metadata("design:returntype", Promise)
119
120
  ], LocaleController.prototype, "delete", null);
120
121
  exports.LocaleController = LocaleController = __decorate([
122
+ (0, role_decorator_1.Role)(),
121
123
  (0, common_1.Controller)('locales'),
122
124
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => locale_service_1.LocaleService))),
123
125
  __metadata("design:paramtypes", [locale_service_1.LocaleService])
@@ -1 +1 @@
1
- {"version":3,"file":"locale.controller.js","sourceRoot":"","sources":["../../src/locale/locale.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAYwB;AACxB,iDAA6C;AAC7C,iDAA6C;AAC7C,iDAA6C;AAC7C,qDAAiD;AACjD,yDAA4C;AAC5C,0EAA6D;AAC7D,2DAAsD;AAG/C,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAEmB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAC5C,CAAC;IAIE,AAAN,KAAK,CAAC,UAAU,CAAe,gBAAgB,EAAY,MAAc;QACvE,OAAO,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACjE,CAAC;IAIK,AAAN,KAAK,CAAC,eAAe,CACE,UAAkB,EACnB,SAAiB;QAErC,OAAO,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IACnE,CAAC;IAGK,AAAN,KAAK,CAAC,GAAG,CAAe,gBAAgB,EAAY,MAAc;QAChE,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC1D,CAAC;IAGK,AAAN,KAA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AAA,IAAA,yBAAM,GAAE,CAAA;;;;2CAElD;AAGK;IADL,IAAA,YAAG,EAAC,KAAK,CAAC;IACI,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;;;;+CAEvC;AAGD;IADC,IAAA,aAAI,GAAE;IACC,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;8CAE7B;AAGK;IADL,IAAA,YAAG,GAAE;IACY,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAY,+BAAa;;kDAEhD;AAGK;IADL,IAAA,cAAK,EAAC,KAAK,CAAC;IACC,WAAA,IAAA,cAAK,EAAC,IAAI,EAAE,qBAAY,CAAC,CAAA;IAAc,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAO,sBAAS;;8CAK1E;AAGK;IADL,IAAA,eAAM,GAAE;IACK,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAO,sBAAS;;8CAEnC;2BApDU,gBAAgB;IAF5B,IAAA,qBAAI,GAAE;IACN,IAAA,mBAAU,EAAC,SAAS,CAAC;IAGjB,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC,CAAC,CAAA;qCACR,8BAAa;GAHpC,gBAAgB,CAqD5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../src/menu/dto/create.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,SAAS;IAGpB,IAAI,EAAE,MAAM,CAAC;IAIb,GAAG,EAAE,MAAM,CAAC;IAKZ,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"create.dto.d.ts","sourceRoot":"","sources":["../../../src/menu/dto/create.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IAGpB,IAAI,EAAE,MAAM,CAAC;IAIb,GAAG,EAAE,MAAM,CAAC;IAKZ,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,IAAI,CAAC,EAAE,MAAM,CAAC;IAKd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../src/menu/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qDAA+E;AAE/E,MAAa,SAAS;CAsBrB;AAtBD,8BAsBC;AAnBC;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACnD,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;;uCACpC;AAIb;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IAClD,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,sBAAsB,EAAE,CAAC;;sCACpC;AAKZ;IAHC,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IAC/C,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,4BAAU,GAAE;;wCACE;AAIf;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACpD,IAAA,4BAAU,GAAE;;uCACC;AAKd;IAHC,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IAChD,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,4BAAU,GAAE;;yCACG"}
1
+ {"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../src/menu/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+E;AAE/E,MAAa,SAAS;CAsBrB;AAtBD,8BAsBC;AAnBC;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACnD,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;;uCACpC;AAIb;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IAClD,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,sBAAsB,EAAE,CAAC;;sCACpC;AAKZ;IAHC,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IAC/C,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,4BAAU,GAAE;;wCACE;AAIf;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACpD,IAAA,4BAAU,GAAE;;uCACC;AAKd;IAHC,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IAChD,IAAA,qBAAG,EAAC,CAAC,CAAC;IACN,IAAA,4BAAU,GAAE;;yCACG"}
@@ -1 +1 @@
1
- {"version":3,"file":"update.dto.js","sourceRoot":"","sources":["../../../src/menu/dto/update.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAE1E,MAAa,SAAS;CAgBrB;AAhBD,8BAgBC;AAbC;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACnD,IAAA,4BAAU,GAAE;;uCACC;AAId;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IAClD,IAAA,4BAAU,GAAE;;sCACA;AAIb;IAFC,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IAC/C,IAAA,4BAAU,GAAE;;wCACE;AAIf;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACpD,IAAA,4BAAU,GAAE;;uCACC"}
1
+ {"version":3,"file":"update.dto.js","sourceRoot":"","sources":["../../../src/menu/dto/update.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAE9D,MAAa,SAAS;CAgBrB;AAhBD,8BAgBC;AAbC;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACnD,IAAA,4BAAU,GAAE;;uCACC;AAId;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IAClD,IAAA,4BAAU,GAAE;;sCACA;AAIb;IAFC,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,2BAA2B,EAAE,CAAC;IAC/C,IAAA,4BAAU,GAAE;;wCACE;AAIf;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACpD,IAAA,4BAAU,GAAE;;uCACC"}
@@ -1,9 +1,9 @@
1
- import { CreateDTO } from './dto/create.dto';
2
1
  import { DeleteDTO } from '../dto/delete.dto';
2
+ import { UpdateIdsDTO } from '../dto/update-ids.dto';
3
+ import { CreateDTO } from './dto/create.dto';
4
+ import { OrderDTO } from './dto/order.dto';
3
5
  import { UpdateDTO } from './dto/update.dto';
4
6
  import { MenuService } from './menu.service';
5
- import { OrderDTO } from './dto/order.dto';
6
- import { UpdateIdsDTO } from '../dto/update-ids.dto';
7
7
  export declare class MenuController {
8
8
  private readonly menuService;
9
9
  constructor(menuService: MenuService);
@@ -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;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAG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;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"}
@@ -15,14 +15,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.MenuController = void 0;
16
16
  const pagination_1 = require("@hedhog/pagination");
17
17
  const common_1 = require("@nestjs/common");
18
- const create_dto_1 = require("./dto/create.dto");
19
- const delete_dto_1 = require("../dto/delete.dto");
20
- const update_dto_1 = require("./dto/update.dto");
21
- const menu_service_1 = require("./menu.service");
22
- const order_dto_1 = require("./dto/order.dto");
23
18
  const user_decorator_1 = require("../auth/decorators/user.decorator");
19
+ const delete_dto_1 = require("../dto/delete.dto");
24
20
  const update_ids_dto_1 = require("../dto/update-ids.dto");
25
21
  const locale_1 = require("../locale");
22
+ const role_decorator_1 = require("../role/decorators/role.decorator");
23
+ const create_dto_1 = require("./dto/create.dto");
24
+ const order_dto_1 = require("./dto/order.dto");
25
+ const update_dto_1 = require("./dto/update.dto");
26
+ const menu_service_1 = require("./menu.service");
26
27
  let MenuController = class MenuController {
27
28
  constructor(menuService) {
28
29
  this.menuService = menuService;
@@ -152,6 +153,7 @@ __decorate([
152
153
  __metadata("design:returntype", Promise)
153
154
  ], MenuController.prototype, "updateOrder", null);
154
155
  exports.MenuController = MenuController = __decorate([
156
+ (0, role_decorator_1.Role)(),
155
157
  (0, common_1.Controller)('menus'),
156
158
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => menu_service_1.MenuService))),
157
159
  __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;AAC7C,kDAA8C;AAC9C,iDAA6C;AAC7C,iDAA6C;AAC7C,+CAA2C;AAC3C,sEAAyD;AACzD,0DAAqD;AACrD,sCAAmC;AAG5B,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAEmB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IACxC,CAAC;IAGE,AAAN,KAAK,CAAC,aAAa,CAAS,EAAE,EAAE,EAAE,EAAY,MAAM;QAClD,OAAO,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACpD,CAAC;IAGK,AAAN,KAAK,CAAC,OAAO,CAAe,gBAAgB,EAAY,MAAM;QAC5D,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC5D,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CACkB,MAAc,EAC/B,gBAAgB,EACpB,MAAM;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACtE,CAAC;IAGK,AAAN,KAAK,CAAC,WAAW,CACgB,MAAc,EAC/B,gBAAgB,EACpB,MAAM;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,EAAE,MAAM,EA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,IAAA,aAAI,GAAE,CAAA;;qCAAO,oBAAQ;;iDAEvC;yBA/EU,cAAc;IAF1B,IAAA,qBAAI,GAAE;IACN,IAAA,mBAAU,EAAC,OAAO,CAAC;IAGf,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC,CAAC,CAAA;qCACR,0BAAW;GAHhC,cAAc,CAgF1B"}
@@ -1,6 +1,6 @@
1
+ import { PrismaService } from '@hedhog/prisma';
1
2
  import { CanActivate, ExecutionContext } from '@nestjs/common';
2
3
  import { Reflector } from '@nestjs/core';
3
- import { PrismaService } from '@hedhog/prisma';
4
4
  export declare class RoleGuard implements CanActivate {
5
5
  private reflector;
6
6
  private readonly prisma;
@@ -1 +1 @@
1
- {"version":3,"file":"role.guard.d.ts","sourceRoot":"","sources":["../../../src/role/guards/role.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAMjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAG/C,qBACa,SAAU,YAAW,WAAW;IAEzC,OAAO,CAAC,SAAS;IAEjB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAFf,SAAS,EAAE,SAAS,EAEX,MAAM,EAAE,aAAa;IAGlC,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IA6F9D,OAAO,CAAC,sBAAsB;CAI/B"}
1
+ {"version":3,"file":"role.guard.d.ts","sourceRoot":"","sources":["../../../src/role/guards/role.guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EACL,WAAW,EACX,gBAAgB,EAMjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzC,qBACa,SAAU,YAAW,WAAW;IAEzC,OAAO,CAAC,SAAS;IAEjB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAFf,SAAS,EAAE,SAAS,EAEX,MAAM,EAAE,aAAa;IAGlC,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IAmG9D,OAAO,CAAC,sBAAsB;CAI/B"}
@@ -13,12 +13,12 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.RoleGuard = void 0;
16
+ const prisma_1 = require("@hedhog/prisma");
16
17
  const common_1 = require("@nestjs/common");
17
- const core_1 = require("@nestjs/core");
18
18
  const constants_1 = require("@nestjs/common/constants");
19
- const role_decorator_1 = require("../decorators/role.decorator");
20
- const prisma_1 = require("@hedhog/prisma");
19
+ const core_1 = require("@nestjs/core");
21
20
  const public_decorator_1 = require("../../auth/decorators/public.decorator");
21
+ const role_decorator_1 = require("../decorators/role.decorator");
22
22
  let RoleGuard = class RoleGuard {
23
23
  constructor(reflector, prisma) {
24
24
  this.reflector = reflector;
@@ -26,10 +26,12 @@ let RoleGuard = class RoleGuard {
26
26
  }
27
27
  async canActivate(context) {
28
28
  var _a, _b;
29
+ console.log('RoleGuard');
29
30
  const isPublic = this.reflector.getAllAndOverride(public_decorator_1.IS_PUBLIC_KEY, [
30
31
  context.getHandler(),
31
32
  context.getClass(),
32
33
  ]);
34
+ console.log('isPublic', isPublic);
33
35
  if (isPublic) {
34
36
  return true;
35
37
  }
@@ -37,6 +39,7 @@ let RoleGuard = class RoleGuard {
37
39
  context.getHandler(),
38
40
  context.getClass(),
39
41
  ]);
42
+ console.log('withRole', withRole);
40
43
  if (!withRole) {
41
44
  return true;
42
45
  }
@@ -1 +1 @@
1
- {"version":3,"file":"role.guard.js","sourceRoot":"","sources":["../../../src/role/guards/role.guard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AAExB,uCAA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CACxB;6BACF;yBACF;qBACF;iBACF;aACF;SACF,CAAC,CAAC;QAEH,OAAO,KAAK,KAAK,CAAC,CAAC;IACrB,CAAC;IAEO,sBAAsB,CAAC,OAAgB;;QAC7C,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,MAAA,MAAA,OAAO,CAAC,OAAO,CAAC,aAAa,0CAAE,KAAK,CAAC,GAAG,CAAC,mCAAI,EAAE,CAAC;QACtE,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;IAC/C,CAAC;CACF,CAAA;AA9GY,8BAAS;oBAAT,SAAS;IADrB,IAAA,mBAAU,GAAE;IAIR,WAAA,IAAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,sBAAa,CAAC,CAAC,CAAA;qCADrB,gBAAS;QAEH,sBAAa;GAJ7B,SAAS,CA8GrB"}
@@ -1,8 +1,8 @@
1
- import { CreateDTO } from './dto/create.dto';
2
1
  import { DeleteDTO } from '../dto/delete.dto';
2
+ import { UpdateIdsDTO } from '../dto/update-ids.dto';
3
+ import { CreateDTO } from './dto/create.dto';
3
4
  import { UpdateDTO } from './dto/update.dto';
4
5
  import { RoleService } from './role.service';
5
- import { UpdateIdsDTO } from '../dto/update-ids.dto';
6
6
  export declare class RoleController {
7
7
  private readonly roleService;
8
8
  constructor(roleService: RoleService);
@@ -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;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAGrD,qB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C,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"}
@@ -15,12 +15,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.RoleController = void 0;
16
16
  const pagination_1 = require("@hedhog/pagination");
17
17
  const common_1 = require("@nestjs/common");
18
- const create_dto_1 = require("./dto/create.dto");
19
18
  const delete_dto_1 = require("../dto/delete.dto");
20
- const update_dto_1 = require("./dto/update.dto");
21
- const role_service_1 = require("./role.service");
22
19
  const update_ids_dto_1 = require("../dto/update-ids.dto");
23
20
  const locale_1 = require("../locale");
21
+ const role_decorator_1 = require("../role/decorators/role.decorator");
22
+ const create_dto_1 = require("./dto/create.dto");
23
+ const update_dto_1 = require("./dto/update.dto");
24
+ const role_service_1 = require("./role.service");
24
25
  let RoleController = class RoleController {
25
26
  constructor(roleService) {
26
27
  this.roleService = roleService;
@@ -173,6 +174,7 @@ __decorate([
173
174
  __metadata("design:returntype", Promise)
174
175
  ], RoleController.prototype, "delete", null);
175
176
  exports.RoleController = RoleController = __decorate([
177
+ (0, role_decorator_1.Role)(),
176
178
  (0, common_1.Controller)('roles'),
177
179
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => role_service_1.RoleService))),
178
180
  __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,0DAAqD;AACrD,sCAAmC;AAG5B,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAEmB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IACxC,CAAC;IAGE,AAAN,KAAK,CAAC,QAAQ,CAAe,gBAAgB,EAAY,MAAM;QAC7D,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC7D,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CACC,gBAAgB,EACC,MAAc;QAE7C,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC9D,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CACC,gBAAgB,EACC,MAAc,EACnC,MAAM;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACtE,CAAC;IAGK,AAAN,KAAK,CAAC,UAAU,CACA,gBAAgB,EACC,MAAc;QAE7C,OAAO,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC/D,CAAC;IAGK,AAAN,KAAK,CAAC,WAAW,CACD,gBAAgB,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AA;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;IAF1B,IAAA,qBAAI,GAAE;IACN,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"}
@@ -7,14 +7,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.RoleModule = void 0;
10
- const auth_module_1 = require("../auth/auth.module");
11
10
  const pagination_1 = require("@hedhog/pagination");
12
11
  const prisma_1 = require("@hedhog/prisma");
13
12
  const common_1 = require("@nestjs/common");
14
13
  const core_1 = require("@nestjs/core");
14
+ const auth_module_1 = require("../auth/auth.module");
15
+ const role_guard_1 = require("./guards/role.guard");
15
16
  const role_controller_1 = require("./role.controller");
16
17
  const role_service_1 = require("./role.service");
17
- const role_guard_1 = require("./guards/role.guard");
18
18
  let RoleModule = class RoleModule {
19
19
  };
20
20
  exports.RoleModule = RoleModule;
@@ -1 +1 @@
1
- {"version":3,"file":"role.module.js","sourceRoot":"","sources":["../../src/role/role.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,qDAAiD;AACjD,mDAAsD;AACtD,2CAA8C;AAC9C,2CAAoD;AACpD,uCAAyC;AACzC,uDAAmD;AACnD,iDAA6C;AAC7C,oDAAgD;AAkBzC,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IAhBtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,6BAAgB,CAAC;SACnC;QACD,WAAW,EAAE,CAAC,gCAAc,CAAC;QAC7B,SAAS,EAAE;YACT,0BAAW;YACX;gBACE,OAAO,EAAE,gBAAS;gBAClB,QAAQ,EAAE,sBAAS;aACpB;SACF;QACD,OAAO,EAAE,CAAC,0BAAW,CAAC;KACvB,CAAC;GACW,UAAU,CAAG"}
1
+ {"version":3,"file":"role.module.js","sourceRoot":"","sources":["../../src/role/role.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,mDAAsD;AACtD,2CAA8C;AAC9C,2CAAoD;AACpD,uCAAyC;AACzC,qDAAiD;AACjD,oDAAgD;AAChD,uDAAmD;AACnD,iDAA6C;AAkBtC,IAAM,UAAU,GAAhB,MAAM,UAAU;CAAG,CAAA;AAAb,gCAAU;qBAAV,UAAU;IAhBtB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;YAC5B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,qBAAY,CAAC;YAC9B,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,6BAAgB,CAAC;SACnC;QACD,WAAW,EAAE,CAAC,gCAAc,CAAC;QAC7B,SAAS,EAAE;YACT,0BAAW;YACX;gBACE,OAAO,EAAE,gBAAS;gBAClB,QAAQ,EAAE,sBAAS;aACpB;SACF;QACD,OAAO,EAAE,CAAC,0BAAW,CAAC;KACvB,CAAC;GACW,UAAU,CAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../src/route/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyD;AAGzD,MAAa,SAAS;CASrB;AATD,8BASC;AAPC;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;;sCAC7C;AAMZ;IAJC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IACrD,IAAA,sBAAI,EAAC,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE;QAClE,OAAO,EAAE,yCAAyC;KACnD,CAAC;;yCACiB"}
1
+ {"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../src/route/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiD;AAGjD,MAAa,SAAS;CASrB;AATD,8BASC;AAPC;IADC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;;sCAC7C;AAMZ;IAJC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,8BAA8B,EAAE,CAAC;IACrD,IAAA,sBAAI,EAAC,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE;QAClE,OAAO,EAAE,yCAAyC;KACnD,CAAC;;yCACiB"}
@@ -1,9 +1,9 @@
1
1
  import { PaginationDTO } from '@hedhog/pagination';
2
- import { RouteService } from './route.service';
3
- import { CreateDTO } from './dto/create.dto';
4
- import { UpdateDTO } from './dto/update.dto';
5
2
  import { DeleteDTO } from '../dto/delete.dto';
6
3
  import { UpdateIdsDTO } from '../dto/update-ids.dto';
4
+ import { CreateDTO } from './dto/create.dto';
5
+ import { UpdateDTO } from './dto/update.dto';
6
+ import { RouteService } from './route.service';
7
7
  export declare class RouteController {
8
8
  private readonly routeService;
9
9
  constructor(routeService: RouteService);
@@ -1 +1 @@
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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,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"}
@@ -13,14 +13,15 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.RouteController = void 0;
16
- const common_1 = require("@nestjs/common");
17
16
  const pagination_1 = require("@hedhog/pagination");
18
- const route_service_1 = require("./route.service");
19
- const create_dto_1 = require("./dto/create.dto");
20
- const update_dto_1 = require("./dto/update.dto");
17
+ const common_1 = require("@nestjs/common");
21
18
  const delete_dto_1 = require("../dto/delete.dto");
22
19
  const update_ids_dto_1 = require("../dto/update-ids.dto");
23
20
  const locale_1 = require("../locale");
21
+ const role_decorator_1 = require("../role/decorators/role.decorator");
22
+ const create_dto_1 = require("./dto/create.dto");
23
+ const update_dto_1 = require("./dto/update.dto");
24
+ const route_service_1 = require("./route.service");
24
25
  let RouteController = class RouteController {
25
26
  constructor(routeService) {
26
27
  this.routeService = routeService;
@@ -125,6 +126,7 @@ __decorate([
125
126
  __metadata("design:returntype", Promise)
126
127
  ], RouteController.prototype, "updateScreens", null);
127
128
  exports.RouteController = RouteController = __decorate([
129
+ (0, role_decorator_1.Role)(),
128
130
  (0, common_1.Controller)('routes'),
129
131
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => route_service_1.RouteService))),
130
132
  __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":";;;;;;;;;;;;;;;AAAA,2CAWwB;AACxB,mDAA+D;AAC/D,mDAA+C;AAC/C,iDAA6C;AAC7C,iDAA6C;AAC7C,kDAA8C;AAC9C,0DAAqD;AACrD,sCAAmC;AAG5B,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAEmB,YAA0B;QAA1B,iBAAY,GAAZ,YAAY,CAAc;IAC1C,CAAC;IAGE,AAAN,KAAK,CAAC,SAAS,CAAe,gBAAgB;QAC5C,OAAO,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACvD,CAAC;IAGK,AAAN,KAAK,CAAC,YAAY,CAAiC,OAAe;QAChE,OAAO,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC;IAGK,AAAN,KAAK,CAAC,MAAM,CAAS,EAAE,GAAG,EAAE,MAAM,EAAa;QAC7C,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,CAAC;IACnD,CAAC;IAGK,AAAN,KAAK,CAAC,MAAM,CACsB,OAAe,EACvC,IAAe;QAEvB,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IACzD,CAAC;IAGK,AAAN,KAAK,CAAC,MAAM,CAAS,IAAe;QAClC,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAGK,AAAN,KA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;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;IAF3B,IAAA,qBAAI,GAAE;IACN,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":"create.dto.js","sourceRoot":"","sources":["../../../src/screen/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,MAAa,SAAS;CAgBrB;AAhBD,8BAgBC;AAbC;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACnD,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;;uCACpC;AAIb;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACnD,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;;uCACpC;AAIb;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;IACxD,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;;8CAClC;AAIpB;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACpD,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;;uCACxC"}
1
+ {"version":3,"file":"create.dto.js","sourceRoot":"","sources":["../../../src/screen/dto/create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,SAAS;CAgBrB;AAhBD,8BAgBC;AAbC;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACnD,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;;uCACpC;AAIb;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;IACnD,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;;uCACpC;AAIb;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;IACxD,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;;8CAClC;AAIpB;IAFC,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,6BAA6B,EAAE,CAAC;IACpD,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC;;uCACxC"}
@@ -1,8 +1,8 @@
1
- import { CreateDTO } from './dto/create.dto';
2
1
  import { DeleteDTO } from '../dto/delete.dto';
2
+ import { UpdateIdsDTO } from '../dto/update-ids.dto';
3
+ import { CreateDTO } from './dto/create.dto';
3
4
  import { UpdateDTO } from './dto/update.dto';
4
5
  import { ScreenService } from './screen.service';
5
- import { UpdateIdsDTO } from '../dto/update-ids.dto';
6
6
  export declare class ScreenController {
7
7
  private readonly screenService;
8
8
  constructor(screenService: ScreenService);
@@ -1 +1 @@
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,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;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"}
@@ -15,12 +15,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.ScreenController = void 0;
16
16
  const pagination_1 = require("@hedhog/pagination");
17
17
  const common_1 = require("@nestjs/common");
18
- const create_dto_1 = require("./dto/create.dto");
19
18
  const delete_dto_1 = require("../dto/delete.dto");
20
- const update_dto_1 = require("./dto/update.dto");
21
- const screen_service_1 = require("./screen.service");
22
19
  const update_ids_dto_1 = require("../dto/update-ids.dto");
23
20
  const locale_1 = require("../locale");
21
+ const role_decorator_1 = require("../role/decorators/role.decorator");
22
+ const create_dto_1 = require("./dto/create.dto");
23
+ const update_dto_1 = require("./dto/update.dto");
24
+ const screen_service_1 = require("./screen.service");
24
25
  let ScreenController = class ScreenController {
25
26
  constructor(screenService) {
26
27
  this.screenService = screenService;
@@ -128,6 +129,7 @@ __decorate([
128
129
  __metadata("design:returntype", Promise)
129
130
  ], ScreenController.prototype, "delete", null);
130
131
  exports.ScreenController = ScreenController = __decorate([
132
+ (0, role_decorator_1.Role)(),
131
133
  (0, common_1.Controller)('screens'),
132
134
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => screen_service_1.ScreenService))),
133
135
  __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,2CAWwB;AACxB,iDAA6C;AAC7C,kDAA8C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ateDTO } from './dto/create.dto';
3
+ import { SettingUserDTO } from './dto/setting-user.dto';
4
+ import { SettingsDTO } from './dto/settings.dto';
3
5
  import { UpdateDTO } from './dto/update.dto';
4
6
  import { SettingsService } from './settings.service';
5
- import { SettingsDTO } from './dto/settings.dto';
6
- import { SettingUserDTO } from './dto/setting-user.dto';
7
7
  export declare class SettingsController {
8
8
  private readonly settingsService;
9
9
  constructor(settingsService: SettingsService);
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"settings.controller.d.ts","sourceRoot":"","sources":["../../src/setting/settings.controller.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,qBAEa,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,15 @@ 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 create_dto_1 = require("./dto/create.dto");
18
+ const user_decorator_1 = require("../auth/decorators/user.decorator");
19
19
  const delete_dto_1 = require("../dto/delete.dto");
20
- const update_dto_1 = require("./dto/update.dto");
21
- const settings_service_1 = require("./settings.service");
22
20
  const locale_1 = require("../locale");
23
- const settings_dto_1 = require("./dto/settings.dto");
24
- const user_decorator_1 = require("../auth/decorators/user.decorator");
21
+ const role_decorator_1 = require("../role/decorators/role.decorator");
22
+ const create_dto_1 = require("./dto/create.dto");
25
23
  const setting_user_dto_1 = require("./dto/setting-user.dto");
24
+ const settings_dto_1 = require("./dto/settings.dto");
25
+ const update_dto_1 = require("./dto/update.dto");
26
+ const settings_service_1 = require("./settings.service");
26
27
  let SettingsController = class SettingsController {
27
28
  constructor(settingsService) {
28
29
  this.settingsService = settingsService;
@@ -141,6 +142,7 @@ __decorate([
141
142
  __metadata("design:returntype", Promise)
142
143
  ], SettingsController.prototype, "delete", null);
143
144
  exports.SettingsController = SettingsController = __decorate([
145
+ (0, role_decorator_1.Role)(),
144
146
  (0, common_1.Controller)('settings'),
145
147
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => settings_service_1.SettingsService))),
146
148
  __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,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,I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AE9C;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"}
1
+ {"version":3,"file":"settings.controller.js","sourceRoot":"","sources":["../../src/setting/settings.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mDAAgD;AAChD,2CAYwB;AACxB,sEAAyD;AACzD,kDAA8C;AAC9C,sCAAmC;AACnC,sEAAyD;AACzD,iDAA6C;AAC7C,6DAAwD;AACxD,qDAAiD;AACjD,iDAA6C;AAC7C,yDAAqD;AAI9C,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,C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AAA,eAAM,EAAC,IAAA,mBAAU,EAAC,GAAG,EAAE,CAAC,kCAAe,CAAC,CAAC,CAAA;qCACR,kCAAe;GAHxC,kBAAkB,CAyE9B"}
@@ -1,9 +1,9 @@
1
1
  import { PaginationDTO, PaginationService } from '@hedhog/pagination';
2
2
  import { PrismaService } from '@hedhog/prisma';
3
- import { CreateDTO } from './dto/create.dto';
4
3
  import { DeleteDTO } from '../dto/delete.dto';
5
- import { UpdateDTO } from './dto/update.dto';
4
+ import { CreateDTO } from './dto/create.dto';
6
5
  import { SettingsDTO } from './dto/settings.dto';
6
+ import { UpdateDTO } from './dto/update.dto';
7
7
  export declare class SettingsService {
8
8
  private readonly prismaService;
9
9
  private readonly paginationService;
@@ -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;AAGjD,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,M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AM,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;IAkDhE,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE;CA6C/C"}
@@ -15,8 +15,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.SettingsService = void 0;
16
16
  const pagination_1 = require("@hedhog/pagination");
17
17
  const prisma_1 = require("@hedhog/prisma");
18
- const common_1 = require("@nestjs/common");
19
18
  const utils_1 = require("@hedhog/utils");
19
+ const common_1 = require("@nestjs/common");
20
20
  let SettingsService = class SettingsService {
21
21
  constructor(prismaService, paginationService) {
22
22
  this.prismaService = prismaService;
@@ -39,7 +39,7 @@ let SettingsService = class SettingsService {
39
39
  const fields = ['slug', 'value'];
40
40
  paginationParams.pageSize = 100;
41
41
  const OR = this.prismaService.createInsensitiveSearch(fields, paginationParams);
42
- let result = await this.paginationService.paginate(this.prismaService.settings, paginationParams, {
42
+ const result = await this.paginationService.paginate(this.prismaService.settings, paginationParams, {
43
43
  where: {
44
44
  AND: {
45
45
  setting_groups: {
@@ -87,7 +87,7 @@ let SettingsService = class SettingsService {
87
87
  const fields = ['slug', 'icon'];
88
88
  paginationParams.pageSize = 100;
89
89
  const OR = this.prismaService.createInsensitiveSearch(fields, paginationParams);
90
- let result = await this.paginationService.paginate(this.prismaService.setting_groups, paginationParams, {
90
+ const result = await this.paginationService.paginate(this.prismaService.setting_groups, paginationParams, {
91
91
  where: {
92
92
  OR,
93
93
  },
@@ -110,7 +110,7 @@ let SettingsService = class SettingsService {
110
110
  async getSettings(locale, paginationParams) {
111
111
  const fields = ['slug', 'value'];
112
112
  const OR = this.prismaService.createInsensitiveSearch(fields, paginationParams);
113
- let result = await this.paginationService.paginate(this.prismaService.settings, paginationParams, {
113
+ const result = await this.paginationService.paginate(this.prismaService.settings, paginationParams, {
114
114
  where: {
115
115
  OR,
116
116
  },
@@ -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;AAK1C,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,CAAC,QAAQ,EAAE,CAAC;YAC5C,MAAM,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC;gBAC3C,KAAK,EAAE;oBACL,IAAI;iBACL;gBACD,IAAI,EAAE;oBACJ,KAAK;iBACN;aACF,CAAC,CAAC;QACL,CAAC;QAED,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,MAAW,EAAE,gBAAqB,EAAE,IAAY;QACxE,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAEjC,gBAAgB,CAAC,QAAQ,GAAG,GAAG,CAAC;QAEhC,MAAM,E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D;aACF;YACD,MAAM,EAAE;gBACN,KAAK,EAAE,IAAI;gBACX,UAAU,EAAE,IAAI;aACjB;SACF,CAAC,CAAC;QAEH,MAAM,IAAI,GAAwB,EAAE,CAAC;QAErC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC3B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC;QACrC,CAAC,CAAC,CAAC;QAEH,YAAY,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC/B,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,OAAO,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC;gBAClE,OAAO,CAAC,KAAK,CAAC;QAClB,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AA1UY,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,CA0U3B"}
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const testing_1 = require("@nestjs/testing");
4
- const settings_service_1 = require("./settings.service");
5
- const prisma_1 = require("@hedhog/prisma");
6
3
  const pagination_1 = require("@hedhog/pagination");
4
+ const prisma_1 = require("@hedhog/prisma");
7
5
  const common_1 = require("@nestjs/common");
6
+ const testing_1 = require("@nestjs/testing");
7
+ const settings_service_1 = require("./settings.service");
8
8
  describe('SettingsService', () => {
9
9
  let service;
10
10
  let prismaService;
11
- let paginationService;
11
+ // let paginationService: PaginationService;
12
12
  beforeEach(async () => {
13
13
  const module = await testing_1.Test.createTestingModule({
14
14
  providers: [
@@ -35,7 +35,7 @@ describe('SettingsService', () => {
35
35
  }).compile();
36
36
  service = module.get(settings_service_1.SettingsService);
37
37
  prismaService = module.get(prisma_1.PrismaService);
38
- paginationService = module.get(pagination_1.PaginationService);
38
+ // paginationService = module.get<PaginationService>(PaginationService);
39
39
  });
40
40
  it('should be defined', () => {
41
41
  expect(service).toBeDefined();
@@ -1 +1 @@
1
- {"version":3,"file":"settings.service.spec.js","sourceRoot":"","sources":["../../src/setting/settings.service.spec.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AACtD,yDAAqD;AACrD,2CAA+C;AAC/C,mDAI4B;AAC5B,2CAAqD;AAKrD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,IAAI,OAAwB,CAAC;IAC7B,IAAI,aAA4B,CAAC;IACjC,IAAI,iBAAoC,CAAC;IAEzC,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,MAAM,GAAkB,MAAM,cAAI,CAAC,mBAAmB,CAAC;YAC3D,SAAS,EAAE;gBACT,kCAAe;gBACf;oBACE,OAAO,EAAE,sBAAa;oBACtB,QAAQ,EAAE;wBACR,QAAQ,EAAE;4BACR,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE;4BACrB,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE;4BACjB,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE;4BACjB,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE;yBACtB;wBACD,uBAAuB,EAAE,IAAI,CAAC,EAAE,EAAE;qBACnC;iBACF;gBACD;oBACE,OAAO,EAAE,8BAAiB;oBAC1B,QAAQ,EAAE;wBACR,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE;qBACpB;iBACF;aACF;SACF,CAAC,CAAC,OAAO,EAAE,CAAC;QAEb,OAAO,GAAG,MAAM,CAAC,GAAG,CAAkB,kCAAe,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,CAAC,QAAQ,EAAE,YAAY,CAAC;iBAC3C,iBAAiB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;YAEnC,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAEhC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,oBAAoB,CAAC;gBAC7D,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,SAAS,CAAC,GAAG,EAAE,EAAE;aACrC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"settings.service.spec.js","sourceRoot":"","sources":["../../src/setting/settings.service.spec.ts"],"names":[],"mappings":";;AAAA,mDAAuD;AACvD,2CAA+C;AAC/C,2CAAqD;AACrD,6CAAsD;AAGtD,yDAAqD;AAErD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,IAAI,OAAwB,CAAC;IAC7B,IAAI,aAA4B,CAAC;IACjC,4CAA4C;IAE5C,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,MAAM,GAAkB,MAAM,cAAI,CAAC,mBAAmB,CAAC;YAC3D,SAAS,EAAE;gBACT,kCAAe;gBACf;oBACE,OAAO,EAAE,sBAAa;oBACtB,QAAQ,EAAE;wBACR,QAAQ,EAAE;4BACR,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE;4BACrB,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE;4BACjB,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE;4BACjB,UAAU,EAAE,IAAI,CAAC,EAAE,EAAE;yBACtB;wBACD,uBAAuB,EAAE,IAAI,CAAC,EAAE,EAAE;qBACnC;iBACF;gBACD;oBACE,OAAO,EAAE,8BAAiB;oBAC1B,QAAQ,EAAE;wBACR,QAAQ,EAAE,IAAI,CAAC,EAAE,EAAE;qBACpB;iBACF;aACF;SACF,C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IAAI;iBACD,KAAK,CAAC,aAAa,CAAC,QAAQ,EAAE,YAAY,CAAC;iBAC3C,iBAAiB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;YAEnC,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAEhC,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,oBAAoB,CAAC;gBAC7D,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,SAAS,CAAC,GAAG,EAAE,EAAE;aACrC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
- import { CreateDTO } from './dto/create.dto';
2
1
  import { DeleteDTO } from '../dto/delete.dto';
2
+ import { UpdateIdsDTO } from '../dto/update-ids.dto';
3
+ import { CreateDTO } from './dto/create.dto';
3
4
  import { UpdateDTO } from './dto/update.dto';
4
5
  import { UserService } from './user.service';
5
- import { UpdateIdsDTO } from '../dto/update-ids.dto';
6
6
  export declare class UserController {
7
7
  private readonly userService;
8
8
  constructor(userService: UserService);
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"user.controller.d.ts","sourceRoot":"","sources":["../../src/user/user.controller.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,qBAEa,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"}
@@ -15,11 +15,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.UserController = void 0;
16
16
  const pagination_1 = require("@hedhog/pagination");
17
17
  const common_1 = require("@nestjs/common");
18
- const create_dto_1 = require("./dto/create.dto");
19
18
  const delete_dto_1 = require("../dto/delete.dto");
19
+ const update_ids_dto_1 = require("../dto/update-ids.dto");
20
+ const role_decorator_1 = require("../role/decorators/role.decorator");
21
+ const create_dto_1 = require("./dto/create.dto");
20
22
  const update_dto_1 = require("./dto/update.dto");
21
23
  const user_service_1 = require("./user.service");
22
- const update_ids_dto_1 = require("../dto/update-ids.dto");
23
24
  let UserController = class UserController {
24
25
  constructor(userService) {
25
26
  this.userService = userService;
@@ -103,6 +104,7 @@ __decorate([
103
104
  __metadata("design:returntype", Promise)
104
105
  ], UserController.prototype, "delete", null);
105
106
  exports.UserController = UserController = __decorate([
107
+ (0, role_decorator_1.Role)(),
106
108
  (0, common_1.Controller)('users'),
107
109
  __param(0, (0, common_1.Inject)((0, common_1.forwardRef)(() => user_service_1.UserService))),
108
110
  __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,2CAWwB;AACxB,iDAA6C;AAC7C,kDAA8C;AAC9C,iDAA6C;AAC7C,iDAA6C;AAC7C,0DAAqD;AAG9C,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAEmB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IACxC,CAAC;IAGE,AAAN,KAAK,CAAC,QAAQ,CAAe,gBAAgB;QAC3C,OAAO,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IACrD,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CACkB,MAAc,EAC/B,gBAAgB;QAE9B,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAC9D,CAAC;IAGK,AAAN,KAAK,CAAC,WAAW,CACgB,MAAc,EACrC,IAAkB;QAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC;IAGK,AAAN,KAAK,CAAC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IAF1B,IAAA,qBAAI,GAAE;IACN,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
@@ -1,4 +1,3 @@
1
- # yaml-language-server: $schema=../../hedhog.schema.json
2
1
  data:
3
2
  routes:
4
3
  - url: /auth/verify
@@ -1661,6 +1660,7 @@ tables:
1661
1660
  type: enum
1662
1661
  enum:
1663
1662
  - string
1663
+ - array
1664
1664
  - number
1665
1665
  - boolean
1666
1666
  - json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedhog/admin",
3
- "version": "0.0.95",
3
+ "version": "0.0.96",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "scripts": {