@servicelabsco/slabs-access-manager 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/access/controllers/access.menu.controller.d.ts +11 -0
  2. package/dist/access/controllers/access.menu.controller.js +57 -0
  3. package/dist/access/controllers/access.menu.controller.js.map +1 -0
  4. package/dist/access/controllers/dashboard.controller.d.ts +11 -0
  5. package/dist/access/controllers/dashboard.controller.js +72 -0
  6. package/dist/access/controllers/dashboard.controller.js.map +1 -0
  7. package/dist/access/controllers/index.d.ts +2 -1
  8. package/dist/access/controllers/index.js +2 -1
  9. package/dist/access/controllers/index.js.map +1 -1
  10. package/dist/access/controllers/menu.controller.d.ts +1 -1
  11. package/dist/access/controllers/menu.controller.js +7 -7
  12. package/dist/access/controllers/menu.controller.js.map +1 -1
  13. package/dist/access/dtos/access.business.param.dto.d.ts +5 -0
  14. package/dist/access/dtos/access.business.param.dto.js +38 -0
  15. package/dist/access/dtos/access.business.param.dto.js.map +1 -0
  16. package/dist/access/dtos/business.param.dto.d.ts +5 -0
  17. package/dist/access/dtos/business.param.dto.js +38 -0
  18. package/dist/access/dtos/business.param.dto.js.map +1 -0
  19. package/dist/access/dtos/index.d.ts +2 -0
  20. package/dist/access/dtos/index.js +2 -0
  21. package/dist/access/dtos/index.js.map +1 -1
  22. package/dist/access/dtos/string.search.dto.d.ts +4 -0
  23. package/dist/access/dtos/string.search.dto.js +28 -0
  24. package/dist/access/dtos/string.search.dto.js.map +1 -0
  25. package/dist/access/entities/access.business.entity.d.ts +9 -0
  26. package/dist/access/entities/access.business.entity.js +46 -0
  27. package/dist/access/entities/access.business.entity.js.map +1 -0
  28. package/dist/access/entities/business.user.entity.d.ts +2 -2
  29. package/dist/access/entities/business.user.entity.js +3 -3
  30. package/dist/access/entities/business.user.entity.js.map +1 -1
  31. package/dist/access/entities/dashboard.entity.d.ts +4 -2
  32. package/dist/access/entities/dashboard.entity.js +9 -4
  33. package/dist/access/entities/dashboard.entity.js.map +1 -1
  34. package/dist/access/entities/index.d.ts +1 -1
  35. package/dist/access/entities/index.js +1 -1
  36. package/dist/access/entities/index.js.map +1 -1
  37. package/dist/access/entities/list.preference.entity.d.ts +2 -2
  38. package/dist/access/entities/list.preference.entity.js +3 -3
  39. package/dist/access/entities/list.preference.entity.js.map +1 -1
  40. package/dist/access/entities/user.role.entity.d.ts +2 -2
  41. package/dist/access/entities/user.role.entity.js +3 -3
  42. package/dist/access/entities/user.role.entity.js.map +1 -1
  43. package/dist/access/es6.classes.d.ts +10 -6
  44. package/dist/access/es6.classes.js +11 -5
  45. package/dist/access/es6.classes.js.map +1 -1
  46. package/dist/access/libraries/index.d.ts +1 -0
  47. package/dist/access/libraries/index.js +1 -0
  48. package/dist/access/libraries/index.js.map +1 -1
  49. package/dist/access/libraries/process.application.menu.d.ts +3 -1
  50. package/dist/access/libraries/process.application.menu.js +0 -5
  51. package/dist/access/libraries/process.application.menu.js.map +1 -1
  52. package/dist/access/libraries/process.dashboard.report.d.ts +9 -0
  53. package/dist/access/libraries/process.dashboard.report.js +37 -0
  54. package/dist/access/libraries/process.dashboard.report.js.map +1 -0
  55. package/dist/config/entity.constants.d.ts +2 -2
  56. package/dist/config/entity.constants.js +2 -2
  57. package/dist/config/entity.constants.js.map +1 -1
  58. package/package.json +1 -1
@@ -0,0 +1,11 @@
1
+ import { AccessManager, CacheService } from '@servicelabsco/nestjs-utility-services';
2
+ import { AccessBusinessParamDto } from '../dtos';
3
+ export declare class AccessMenuController {
4
+ private readonly cacheService;
5
+ private readonly accessManager;
6
+ constructor(cacheService: CacheService, accessManager: AccessManager);
7
+ get(params: AccessBusinessParamDto): Promise<{
8
+ modules: any[];
9
+ }>;
10
+ getMenuDetails(params: AccessBusinessParamDto): Promise<import("../entities").MenuEntity>;
11
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.AccessMenuController = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
18
+ const dtos_1 = require("../dtos");
19
+ const entities_1 = require("../entities");
20
+ const process_application_menu_1 = require("../libraries/process.application.menu");
21
+ const process_menu_details_1 = require("../libraries/process.menu.details");
22
+ let AccessMenuController = class AccessMenuController {
23
+ constructor(cacheService, accessManager) {
24
+ this.cacheService = cacheService;
25
+ this.accessManager = accessManager;
26
+ }
27
+ async get(params) {
28
+ const product = await entities_1.ProductEntity.first(params.id);
29
+ if (!product)
30
+ throw new nestjs_utility_services_1.OperationException(`No menu found for the given product`);
31
+ const auth = nestjs_utility_services_1.Auth.user();
32
+ return new process_application_menu_1.ProcessApplicationMenu(this.cacheService, this.accessManager, auth).process(params.id);
33
+ }
34
+ async getMenuDetails(params) {
35
+ return new process_menu_details_1.ProcessMenuDetails(this.accessManager).process(params.second_id);
36
+ }
37
+ };
38
+ __decorate([
39
+ (0, common_1.Get)(),
40
+ __param(0, (0, common_1.Param)()),
41
+ __metadata("design:type", Function),
42
+ __metadata("design:paramtypes", [dtos_1.AccessBusinessParamDto]),
43
+ __metadata("design:returntype", Promise)
44
+ ], AccessMenuController.prototype, "get", null);
45
+ __decorate([
46
+ (0, common_1.Get)(':second_id'),
47
+ __param(0, (0, common_1.Param)()),
48
+ __metadata("design:type", Function),
49
+ __metadata("design:paramtypes", [dtos_1.AccessBusinessParamDto]),
50
+ __metadata("design:returntype", Promise)
51
+ ], AccessMenuController.prototype, "getMenuDetails", null);
52
+ AccessMenuController = __decorate([
53
+ (0, common_1.Controller)('api/product/:id/menu'),
54
+ __metadata("design:paramtypes", [nestjs_utility_services_1.CacheService, nestjs_utility_services_1.AccessManager])
55
+ ], AccessMenuController);
56
+ exports.AccessMenuController = AccessMenuController;
57
+ //# sourceMappingURL=access.menu.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access.menu.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/access.menu.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwD;AACxD,oFAA+G;AAC/G,kCAAiD;AACjD,0CAA4C;AAC5C,oFAA+E;AAC/E,4EAAuE;AAGhE,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC7B,YAA6B,YAA0B,EAAmB,aAA4B;QAAzE,iBAAY,GAAZ,YAAY,CAAc;QAAmB,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAGpG,AAAN,KAAK,CAAC,GAAG,CAAU,MAA8B;QAC7C,MAAM,OAAO,GAAG,MAAM,wBAAa,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QACrD,IAAI,CAAC,OAAO;YAAE,MAAM,IAAI,4CAAkB,CAAC,qCAAqC,CAAC,CAAC;QAElF,MAAM,IAAI,GAAG,8BAAI,CAAC,IAAI,EAAE,CAAC;QAEzB,OAAO,IAAI,iDAAsB,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IACtG,CAAC;IAGK,AAAN,KAAK,CAAC,cAAc,CAAU,MAA8B;QACxD,OAAO,IAAI,yCAAkB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAChF,CAAC;CACJ,CAAA;AAbS;IADL,IAAA,YAAG,GAAE;IACK,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,6BAAsB;;+CAOhD;AAGK;IADL,IAAA,YAAG,EAAC,YAAY,CAAC;IACI,WAAA,IAAA,cAAK,GAAE,CAAA;;qCAAS,6BAAsB;;0DAE3D;AAhBQ,oBAAoB;IADhC,IAAA,mBAAU,EAAC,sBAAsB,CAAC;qCAEY,sCAAY,EAAkC,uCAAa;GAD7F,oBAAoB,CAiBhC;AAjBY,oDAAoB"}
@@ -0,0 +1,11 @@
1
+ import { AccessManager, SqlService } from '@servicelabsco/nestjs-utility-services';
2
+ import { StringSearchDto } from '../dtos/string.search.dto';
3
+ import { AccessBusinessParamDto } from '../dtos';
4
+ export declare class DashboardController {
5
+ private readonly sqlService;
6
+ private readonly accessManager;
7
+ constructor(sqlService: SqlService, accessManager: AccessManager);
8
+ getDashboards(params: AccessBusinessParamDto): Promise<any>;
9
+ getReports(params: AccessBusinessParamDto, body: StringSearchDto): Promise<any>;
10
+ getDashboardDetails(params: AccessBusinessParamDto): Promise<import("..").DashboardEntity>;
11
+ }
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.DashboardController = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
18
+ const string_search_dto_1 = require("../dtos/string.search.dto");
19
+ const process_dashboard_report_1 = require("../libraries/process.dashboard.report");
20
+ const dtos_1 = require("../dtos");
21
+ let DashboardController = class DashboardController {
22
+ constructor(sqlService, accessManager) {
23
+ this.sqlService = sqlService;
24
+ this.accessManager = accessManager;
25
+ }
26
+ async getDashboards(params) {
27
+ const user = nestjs_utility_services_1.Auth.user();
28
+ const businessId = user.auth_attributes?.business_id;
29
+ const sql = `select a.* from utl_dashboards a where a.deleted_at is null and a.product_id = ${params.id} and (a.business_id is null or a.business_id = ${businessId}) and (a.user_id is null or a.user_id = ${user.id})`;
30
+ return this.sqlService.sql(sql);
31
+ }
32
+ async getReports(params, body) {
33
+ const str = body.str;
34
+ const limit = body.limit || 10;
35
+ let sql = `select b.* from utl_dashboards a, utl_dashboard_components b where a.identifier = '${params.slug}' and a.id = b.dashboard_id and a.deleted_at is null and not EXISTS (select 1 from sys_report_details c where b.identifier = c.name and c.deleted_at is null)`;
36
+ if (str) {
37
+ sql = `${sql} and (b.name ilike '%${str}%')`;
38
+ }
39
+ return this.sqlService.sql(`${sql} order by b.name asc limit ${limit}`);
40
+ }
41
+ async getDashboardDetails(params) {
42
+ return new process_dashboard_report_1.ProcessDashboardReport(this.accessManager).process(params.slug);
43
+ }
44
+ };
45
+ __decorate([
46
+ (0, common_1.Get)(),
47
+ __param(0, (0, common_1.Param)()),
48
+ __metadata("design:type", Function),
49
+ __metadata("design:paramtypes", [dtos_1.AccessBusinessParamDto]),
50
+ __metadata("design:returntype", Promise)
51
+ ], DashboardController.prototype, "getDashboards", null);
52
+ __decorate([
53
+ (0, common_1.Post)(':slug/reports'),
54
+ __param(0, (0, common_1.Param)()),
55
+ __param(1, (0, common_1.Body)()),
56
+ __metadata("design:type", Function),
57
+ __metadata("design:paramtypes", [dtos_1.AccessBusinessParamDto, string_search_dto_1.StringSearchDto]),
58
+ __metadata("design:returntype", Promise)
59
+ ], DashboardController.prototype, "getReports", null);
60
+ __decorate([
61
+ (0, common_1.Get)(':slug'),
62
+ __param(0, (0, common_1.Param)()),
63
+ __metadata("design:type", Function),
64
+ __metadata("design:paramtypes", [dtos_1.AccessBusinessParamDto]),
65
+ __metadata("design:returntype", Promise)
66
+ ], DashboardController.prototype, "getDashboardDetails", null);
67
+ DashboardController = __decorate([
68
+ (0, common_1.Controller)('api/product/:id/dashboard'),
69
+ __metadata("design:paramtypes", [nestjs_utility_services_1.SqlService, nestjs_utility_services_1.AccessManager])
70
+ ], DashboardController);
71
+ exports.DashboardController = DashboardController;
72
+ //# sourceMappingURL=dashboard.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/dashboard.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,oFAAyF;AACzF,iEAA4D;AAC5D,oFAA+E;AAC/E,kCAAiD;AAG1C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC5B,YAA6B,UAAsB,EAAmB,aAA4B;QAArE,eAAU,GAAV,UAAU,CAAY;QAAmB,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAGhG,AAAN,KAAK,CAAC,aAAa,CAAU,MAA8B;QACvD,MAAM,IAAI,GAAG,8BAAI,CAAC,IAAI,EAAE,CAAC;QACzB,MAAM,UAAU,GAAG,IAAI,CAAC,eAAe,EAAE,WAAW,CAAC;QAErD,MAAM,GAAG,GAAG,kFAAkF,MAAM,CAAC,EAAE,mDAAmD,UAAU,2CAA2C,IAAI,CAAC,EAAE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from './dashboard.controller';
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./menu.controller"), exports);
17
+ __exportStar(require("./access.menu.controller"), exports);
18
+ __exportStar(require("./dashboard.controller"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,yDAAuC"}
@@ -1,5 +1,5 @@
1
1
  import { AccessManager, CacheService } from '@servicelabsco/nestjs-utility-services';
2
- export declare class MenuController {
2
+ export declare class AccessMenuController {
3
3
  private readonly cacheService;
4
4
  private readonly accessManager;
5
5
  constructor(cacheService: CacheService, accessManager: AccessManager);
@@ -12,13 +12,13 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
12
  return function (target, key) { decorator(target, key, paramIndex); }
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.MenuController = void 0;
15
+ exports.AccessMenuController = void 0;
16
16
  const common_1 = require("@nestjs/common");
17
17
  const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
18
18
  const entities_1 = require("../entities");
19
19
  const process_application_menu_1 = require("../libraries/process.application.menu");
20
20
  const process_menu_details_1 = require("../libraries/process.menu.details");
21
- let MenuController = class MenuController {
21
+ let AccessMenuController = class AccessMenuController {
22
22
  constructor(cacheService, accessManager) {
23
23
  this.cacheService = cacheService;
24
24
  this.accessManager = accessManager;
@@ -46,17 +46,17 @@ __decorate([
46
46
  __metadata("design:type", Function),
47
47
  __metadata("design:paramtypes", [Number]),
48
48
  __metadata("design:returntype", Promise)
49
- ], MenuController.prototype, "get", null);
49
+ ], AccessMenuController.prototype, "get", null);
50
50
  __decorate([
51
51
  (0, common_1.Get)('api/product/:id/menu/:menu_id'),
52
52
  __param(0, (0, common_1.Param)()),
53
53
  __metadata("design:type", Function),
54
54
  __metadata("design:paramtypes", [Object]),
55
55
  __metadata("design:returntype", Promise)
56
- ], MenuController.prototype, "getMenuDetails", null);
57
- MenuController = __decorate([
56
+ ], AccessMenuController.prototype, "getMenuDetails", null);
57
+ AccessMenuController = __decorate([
58
58
  (0, common_1.Controller)(),
59
59
  __metadata("design:paramtypes", [nestjs_utility_services_1.CacheService, nestjs_utility_services_1.AccessManager])
60
- ], MenuController);
61
- exports.MenuController = MenuController;
60
+ ], AccessMenuController);
61
+ exports.AccessMenuController = AccessMenuController;
62
62
  //# sourceMappingURL=menu.controller.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu.controller.js","sourceRoot":"","sources":["../../../src/access/controllers/menu.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwD;AACxD,oFAA+G;AAC/G,0CAA4C;AAC5C,oFAA+E;AAC/E,4EAAuE;AAGhE,IAAM,cAAc,GAApB,MAAM,cAAc;IACvB,YAA6B,YAA0B,EAAmB,aAA4B;QAAzE,iBAAY,GAAZ,YAAY,CAAc;QAAmB,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAGpG,AAAN,KAAK,CAAC,GAAG,CAAc,EAAU;QAC7B,IAAI,KAAK,CAAC,EAAE,CAAC;YAAE,MAAM,IAAI,4CAAkB,CAAC,wBAAwB,CAAC,CAAC;QAEtE,MAAM,OAAO,GAAG,MAAM,wBAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC9C,IAAI,CAAC,OAAO;YAAE,MAAM,IAAI,4CAAkB,CAAC,qCAAqC,CAAC,CAAC;QAElF,MAAM,IAAI,GAAG,8BAAI,CAAC,IAAI,EAA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(this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AccessBusinessParamDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class AccessBusinessParamDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsOptional)(),
19
+ (0, class_transformer_1.Type)(() => Number),
20
+ (0, class_validator_1.IsNumber)(),
21
+ (0, class_validator_1.IsPositive)(),
22
+ __metadata("design:type", Number)
23
+ ], AccessBusinessParamDto.prototype, "id", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_transformer_1.Type)(() => Number),
27
+ (0, class_validator_1.IsNumber)(),
28
+ (0, class_validator_1.IsPositive)(),
29
+ __metadata("design:type", Number)
30
+ ], AccessBusinessParamDto.prototype, "second_id", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsOptional)(),
33
+ (0, class_transformer_1.Expose)(),
34
+ (0, class_validator_1.Length)(3, 100),
35
+ __metadata("design:type", String)
36
+ ], AccessBusinessParamDto.prototype, "slug", void 0);
37
+ exports.AccessBusinessParamDto = AccessBusinessParamDto;
38
+ //# sourceMappingURL=access.business.param.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access.business.param.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/access.business.param.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAA2E;AAE3E,MAAa,sBAAsB;CAiBlC;AAhBG;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACD;AAEZ;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACM;AAEnB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAM,EAAC,CAAC,EAAE,GAAG,CAAC;;oDACD;AAhBlB,wDAiBC"}
@@ -0,0 +1,5 @@
1
+ export declare class BusinessParamDto {
2
+ id?: number;
3
+ second_id?: number;
4
+ slug?: string;
5
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.BusinessParamDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class BusinessParamDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsOptional)(),
19
+ (0, class_transformer_1.Type)(() => Number),
20
+ (0, class_validator_1.IsNumber)(),
21
+ (0, class_validator_1.IsPositive)(),
22
+ __metadata("design:type", Number)
23
+ ], BusinessParamDto.prototype, "id", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_transformer_1.Type)(() => Number),
27
+ (0, class_validator_1.IsNumber)(),
28
+ (0, class_validator_1.IsPositive)(),
29
+ __metadata("design:type", Number)
30
+ ], BusinessParamDto.prototype, "second_id", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsOptional)(),
33
+ (0, class_transformer_1.Expose)(),
34
+ (0, class_validator_1.Length)(3, 100),
35
+ __metadata("design:type", String)
36
+ ], BusinessParamDto.prototype, "slug", void 0);
37
+ exports.BusinessParamDto = BusinessParamDto;
38
+ //# sourceMappingURL=business.param.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"business.param.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/business.param.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAA2E;AAE3E,MAAa,gBAAgB;CAiB5B;AAhBG;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4CACD;AAEZ;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACM;AAEnB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAM,EAAC,CAAC,EAAE,GAAG,CAAC;;8CACD;AAhBlB,4CAiBC"}
@@ -1,3 +1,4 @@
1
+ export * from './access.business.param.dto';
1
2
  export * from './business.user.attributes.dto';
2
3
  export * from './business.user.role.attributes.dto';
3
4
  export * from './child.menu.attributes.dto';
@@ -13,6 +14,7 @@ export * from './module.attributes.dto';
13
14
  export * from './module.menu.attributes.dto';
14
15
  export * from './product.attributes.dto';
15
16
  export * from './role.group.attributes.dto';
17
+ export * from './string.search.dto';
16
18
  export * from './ui.action.attributes.dto';
17
19
  export * from './ui.action.role.attributes.dto';
18
20
  export * from './user.role.attributes.dto';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./access.business.param.dto"), exports);
17
18
  __exportStar(require("./business.user.attributes.dto"), exports);
18
19
  __exportStar(require("./business.user.role.attributes.dto"), exports);
19
20
  __exportStar(require("./child.menu.attributes.dto"), exports);
@@ -29,6 +30,7 @@ __exportStar(require("./module.attributes.dto"), exports);
29
30
  __exportStar(require("./module.menu.attributes.dto"), exports);
30
31
  __exportStar(require("./product.attributes.dto"), exports);
31
32
  __exportStar(require("./role.group.attributes.dto"), exports);
33
+ __exportStar(require("./string.search.dto"), exports);
32
34
  __exportStar(require("./ui.action.attributes.dto"), exports);
33
35
  __exportStar(require("./ui.action.role.attributes.dto"), exports);
34
36
  __exportStar(require("./user.role.attributes.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,sEAAoD;AACpD,8DAA4C;AAC5C,iEAA+C;AAC/C,6DAA2C;AAC3C,uEAAqD;AACrD,8DAA4C;AAC5C,mEAAiD;AACjD,+DAA6C;AAC7C,wDAAsC;AACtC,6DAA2C;AAC3C,0DAAwC;AACxC,+DAA6C;AAC7C,2DAAyC;AACzC,8DAA4C;AAC5C,6DAA2C;AAC3C,kEAAgD;AAChD,6DAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,iEAA+C;AAC/C,sEAAoD;AACpD,8DAA4C;AAC5C,iEAA+C;AAC/C,6DAA2C;AAC3C,uEAAqD;AACrD,8DAA4C;AAC5C,mEAAiD;AACjD,+DAA6C;AAC7C,wDAAsC;AACtC,6DAA2C;AAC3C,0DAAwC;AACxC,+DAA6C;AAC7C,2DAAyC;AACzC,8DAA4C;AAC5C,sDAAoC;AACpC,6DAA2C;AAC3C,kEAAgD;AAChD,6DAA2C"}
@@ -0,0 +1,4 @@
1
+ export declare class StringSearchDto {
2
+ str: string;
3
+ limit?: number;
4
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.StringSearchDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class StringSearchDto {
16
+ }
17
+ __decorate([
18
+ (0, class_transformer_1.Expose)(),
19
+ (0, class_validator_1.IsOptional)(),
20
+ __metadata("design:type", String)
21
+ ], StringSearchDto.prototype, "str", void 0);
22
+ __decorate([
23
+ (0, class_transformer_1.Expose)(),
24
+ (0, class_validator_1.IsOptional)(),
25
+ __metadata("design:type", Number)
26
+ ], StringSearchDto.prototype, "limit", void 0);
27
+ exports.StringSearchDto = StringSearchDto;
28
+ //# sourceMappingURL=string.search.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"string.search.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/string.search.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA6C;AAE7C,MAAa,eAAe;CAQ3B;AAPG;IAAC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;4CACD;AAEZ;IAAC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;8CACE;AAPnB,0CAQC"}
@@ -0,0 +1,9 @@
1
+ import { CommonEntity, UserEntity } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class AccessBusinessEntity extends CommonEntity {
3
+ name: string;
4
+ owner_id: number;
5
+ identifier: number;
6
+ active: boolean;
7
+ meta_server_id: number;
8
+ owner: UserEntity;
9
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AccessBusinessEntity = void 0;
13
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
+ let AccessBusinessEntity = class AccessBusinessEntity extends nestjs_utility_services_1.CommonEntity {
16
+ };
17
+ __decorate([
18
+ (0, typeorm_1.Column)(),
19
+ __metadata("design:type", String)
20
+ ], AccessBusinessEntity.prototype, "name", void 0);
21
+ __decorate([
22
+ (0, typeorm_1.Column)(),
23
+ __metadata("design:type", Number)
24
+ ], AccessBusinessEntity.prototype, "owner_id", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)(),
27
+ __metadata("design:type", Number)
28
+ ], AccessBusinessEntity.prototype, "identifier", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)(),
31
+ __metadata("design:type", Boolean)
32
+ ], AccessBusinessEntity.prototype, "active", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)(),
35
+ __metadata("design:type", Number)
36
+ ], AccessBusinessEntity.prototype, "meta_server_id", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.ManyToOne)(() => nestjs_utility_services_1.UserEntity),
39
+ (0, typeorm_1.JoinColumn)({ name: 'owner_id' }),
40
+ __metadata("design:type", nestjs_utility_services_1.UserEntity)
41
+ ], AccessBusinessEntity.prototype, "owner", void 0);
42
+ AccessBusinessEntity = __decorate([
43
+ (0, typeorm_1.Entity)('bz_business_details')
44
+ ], AccessBusinessEntity);
45
+ exports.AccessBusinessEntity = AccessBusinessEntity;
46
+ //# sourceMappingURL=access.business.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"access.business.entity.js","sourceRoot":"","sources":["../../../src/access/entities/access.business.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAkF;AAClF,qCAAgE;AASzD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,sCAAY;CAkBrD,CAAA;AAjBG;IAAC,IAAA,gBAAM,GAAE;;kDACI;AAEb;IAAC,IAAA,gBAAM,GAAE;;sDACQ;AAEjB;IAAC,IAAA,gBAAM,GAAE;;wDACU;AAEnB;IAAC,IAAA,gBAAM,GAAE;;oDACO;AAEhB;IAAC,IAAA,gBAAM,GAAE;;4DACc;AAGvB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oCAAU,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;8BAAQ,oCAAU;mDAAC;AAjBxE,oBAAoB;IADhC,IAAA,gBAAM,EAAC,qBAAqB,CAAC;GACjB,oBAAoB,CAkBhC;AAlBY,oDAAoB"}
@@ -1,12 +1,12 @@
1
1
  import { CommonEntity, UserEntity } from '@servicelabsco/nestjs-utility-services';
2
2
  import { BusinessUserAttributesDto } from '../dtos/business.user.attributes.dto';
3
- import { BusinessEntity } from './business.entity';
3
+ import { AccessBusinessEntity } from './access.business.entity';
4
4
  export declare class BusinessUserEntity extends CommonEntity {
5
5
  business_id: number;
6
6
  user_id: number;
7
7
  product_id: number;
8
8
  active: boolean;
9
9
  attributes: BusinessUserAttributesDto;
10
- business: BusinessEntity;
10
+ business: AccessBusinessEntity;
11
11
  user: UserEntity;
12
12
  }
@@ -13,7 +13,7 @@ exports.BusinessUserEntity = void 0;
13
13
  const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
14
  const typeorm_1 = require("typeorm");
15
15
  const business_user_attributes_dto_1 = require("../dtos/business.user.attributes.dto");
16
- const business_entity_1 = require("./business.entity");
16
+ const access_business_entity_1 = require("./access.business.entity");
17
17
  let BusinessUserEntity = class BusinessUserEntity extends nestjs_utility_services_1.CommonEntity {
18
18
  };
19
19
  __decorate([
@@ -37,9 +37,9 @@ __decorate([
37
37
  __metadata("design:type", business_user_attributes_dto_1.BusinessUserAttributesDto)
38
38
  ], BusinessUserEntity.prototype, "attributes", void 0);
39
39
  __decorate([
40
- (0, typeorm_1.ManyToOne)(() => business_entity_1.BusinessEntity),
40
+ (0, typeorm_1.ManyToOne)(() => access_business_entity_1.AccessBusinessEntity),
41
41
  (0, typeorm_1.JoinColumn)({ name: 'business_id' }),
42
- __metadata("design:type", business_entity_1.BusinessEntity)
42
+ __metadata("design:type", access_business_entity_1.AccessBusinessEntity)
43
43
  ], BusinessUserEntity.prototype, "business", void 0);
44
44
  __decorate([
45
45
  (0, typeorm_1.ManyToOne)(() => nestjs_utility_services_1.UserEntity),
@@ -1 +1 @@
1
- {"version":3,"file":"business.user.entity.js","sourceRoot":"","sources":["../../../src/access/entities/business.user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAkF;AAClF,qCAAgE;AAChE,uFAAiF;AACjF,uDAAmD;AAS5C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,sCAAY;CAmBnD,CAAA;AAlBG;IAAC,IAAA,gBAAM,GAAE;;uDACW;AAEpB;IAAC,IAAA,gBAAM,GAAE;;mDACO;AAEhB;IAAC,IAAA,gBAAM,GAAE;;sDACU;AAEnB;IAAC,IAAA,gBAAM,GAAE;;kDACO;AAEhB;IAAC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,wDAAyB;sDAAC;AAGtC;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAc,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,gCAAc;oDAAC;AAC/F;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oCAAU,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAAO,oCAAU;gDAAC;AAlBtE,kBAAkB;IAD9B,IAAA,gBAAM,EAAC,mBAAmB,CAAC;GACf,kBAAkB,CAmB9B;AAnBY,gDAAkB"}
1
+ {"version":3,"file":"business.user.entity.js","sourceRoot":"","sources":["../../../src/access/entities/business.user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAkF;AAClF,qCAAgE;AAChE,uFAAiF;AACjF,qEAAgE;AASzD,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,sCAAY;CAmBnD,CAAA;AAlBG;IAAC,IAAA,gBAAM,GAAE;;uDACW;AAEpB;IAAC,IAAA,gBAAM,GAAE;;mDACO;AAEhB;IAAC,IAAA,gBAAM,GAAE;;sDACU;AAEnB;IAAC,IAAA,gBAAM,GAAE;;kDACO;AAEhB;IAAC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,wDAAyB;sDAAC;AAGtC;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;oDAAC;AAC3G;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oCAAU,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAAO,oCAAU;gDAAC;AAlBtE,kBAAkB;IAD9B,IAAA,gBAAM,EAAC,mBAAmB,CAAC;GACf,kBAAkB,CAmB9B;AAnBY,gDAAkB"}
@@ -1,6 +1,7 @@
1
1
  import { CommonEntity, UserEntity } from '@servicelabsco/nestjs-utility-services';
2
2
  import { DashboardAttributesDto } from '../dtos/dashboard.attributes.dto';
3
- import { BusinessEntity } from './business.entity';
3
+ import { AccessBusinessEntity } from './access.business.entity';
4
+ import { DashboardComponentEntity } from './dashboard.component.entity';
4
5
  import { ProductEntity } from './product.entity';
5
6
  export declare class DashboardEntity extends CommonEntity {
6
7
  business_id: number;
@@ -11,7 +12,8 @@ export declare class DashboardEntity extends CommonEntity {
11
12
  description: string;
12
13
  active: boolean;
13
14
  attributes: DashboardAttributesDto;
14
- business: BusinessEntity;
15
+ business: AccessBusinessEntity;
15
16
  product: ProductEntity;
16
17
  alias: UserEntity;
18
+ components: DashboardComponentEntity[];
17
19
  }
@@ -10,10 +10,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DashboardEntity = void 0;
13
- const typeorm_1 = require("typeorm");
14
13
  const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
+ const typeorm_1 = require("typeorm");
15
15
  const dashboard_attributes_dto_1 = require("../dtos/dashboard.attributes.dto");
16
- const business_entity_1 = require("./business.entity");
16
+ const access_business_entity_1 = require("./access.business.entity");
17
+ const dashboard_component_entity_1 = require("./dashboard.component.entity");
17
18
  const product_entity_1 = require("./product.entity");
18
19
  let DashboardEntity = class DashboardEntity extends nestjs_utility_services_1.CommonEntity {
19
20
  };
@@ -50,9 +51,9 @@ __decorate([
50
51
  __metadata("design:type", dashboard_attributes_dto_1.DashboardAttributesDto)
51
52
  ], DashboardEntity.prototype, "attributes", void 0);
52
53
  __decorate([
53
- (0, typeorm_1.ManyToOne)(() => business_entity_1.BusinessEntity),
54
+ (0, typeorm_1.ManyToOne)(() => access_business_entity_1.AccessBusinessEntity),
54
55
  (0, typeorm_1.JoinColumn)({ name: 'business_id' }),
55
- __metadata("design:type", business_entity_1.BusinessEntity)
56
+ __metadata("design:type", access_business_entity_1.AccessBusinessEntity)
56
57
  ], DashboardEntity.prototype, "business", void 0);
57
58
  __decorate([
58
59
  (0, typeorm_1.ManyToOne)(() => product_entity_1.ProductEntity),
@@ -64,6 +65,10 @@ __decorate([
64
65
  (0, typeorm_1.JoinColumn)({ name: 'alias_id' }),
65
66
  __metadata("design:type", nestjs_utility_services_1.UserEntity)
66
67
  ], DashboardEntity.prototype, "alias", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.OneToMany)(() => dashboard_component_entity_1.DashboardComponentEntity, (components) => components.dashboard),
70
+ __metadata("design:type", Array)
71
+ ], DashboardEntity.prototype, "components", void 0);
67
72
  DashboardEntity = __decorate([
68
73
  (0, typeorm_1.Entity)('utl_dashboards')
69
74
  ], DashboardEntity);
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard.entity.js","sourceRoot":"","sources":["../../../src/access/entities/dashboard.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,oFAAkF;AAClF,+EAA0E;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G;IAAC,IAAA,gBAAM,GAAE;;oDACW;AAEpB;IAAC,IAAA,gBAAM,GAAE;;mDACU;AAEnB;IAAC,IAAA,gBAAM,GAAE;;gDACO;AAEhB;IAAC,IAAA,gBAAM,GAAE;;6CACI;AAEb;IAAC,IAAA,gBAAM,GAAE;;mDACU;AAEnB;IAAC,IAAA,gBAAM,GAAE;;oDACW;AAEpB;IAAC,IAAA,gBAAM,GAAE;;+CACO;AAEhB;IAAC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,iDAAsB;mDAAC;AAGnC;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;iDAAC;AAE3G;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAAU,8BAAa;gDAAC;AAE3F;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oCAAU,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;8BAAQ,oCAAU;8CAAC;AAEjF;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qDAAwB,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC;;mDAAwC;AAhC/G,eAAe;IAD3B,IAAA,gBAAM,EAAC,gBAAgB,CAAC;GACZ,eAAe,CAiC3B;AAjCY,0CAAe"}
@@ -1,4 +1,4 @@
1
- export * from './business.entity';
1
+ export * from './access.business.entity';
2
2
  export * from './business.user.entity';
3
3
  export * from './business.user.role.entity';
4
4
  export * from './child.menu.entity';
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./business.entity"), exports);
17
+ __exportStar(require("./access.business.entity"), exports);
18
18
  __exportStar(require("./business.user.entity"), exports);
19
19
  __exportStar(require("./business.user.role.entity"), exports);
20
20
  __exportStar(require("./child.menu.entity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,yDAAuC;AACvC,8DAA4C;AAC5C,sDAAoC;AACpC,yDAAuC;AACvC,+DAA6C;AAC7C,qDAAmC;AACnC,sDAAoC;AACpC,2DAAyC;AACzC,uDAAqC;AACrC,gDAA8B;AAC9B,qDAAmC;AACnC,kDAAgC;AAChC,uDAAqC;AACrC,mDAAiC;AACjC,sDAAoC;AACpC,qDAAmC;AACnC,0DAAwC;AACxC,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,yDAAuC;AACvC,8DAA4C;AAC5C,sDAAoC;AACpC,yDAAuC;AACvC,+DAA6C;AAC7C,qDAAmC;AACnC,sDAAoC;AACpC,2DAAyC;AACzC,uDAAqC;AACrC,gDAA8B;AAC9B,qDAAmC;AACnC,kDAAgC;AAChC,uDAAqC;AACrC,mDAAiC;AACjC,sDAAoC;AACpC,qDAAmC;AACnC,0DAAwC;AACxC,qDAAmC"}
@@ -1,6 +1,6 @@
1
1
  import { CommonEntity, UserEntity } from '@servicelabsco/nestjs-utility-services';
2
2
  import { ListPreferenceAttributesDto } from '../dtos/list.preference.attributes.dto';
3
- import { BusinessEntity } from './business.entity';
3
+ import { AccessBusinessEntity } from './access.business.entity';
4
4
  import { MenuEntity } from './menu.entity';
5
5
  import { ProductEntity } from './product.entity';
6
6
  export declare class ListPreferenceEntity extends CommonEntity {
@@ -12,7 +12,7 @@ export declare class ListPreferenceEntity extends CommonEntity {
12
12
  column_definition: any;
13
13
  query_definition: any;
14
14
  attributes: ListPreferenceAttributesDto;
15
- business: BusinessEntity;
15
+ business: AccessBusinessEntity;
16
16
  menu: MenuEntity;
17
17
  product: ProductEntity;
18
18
  user: UserEntity;
@@ -13,7 +13,7 @@ exports.ListPreferenceEntity = void 0;
13
13
  const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
14
  const typeorm_1 = require("typeorm");
15
15
  const list_preference_attributes_dto_1 = require("../dtos/list.preference.attributes.dto");
16
- const business_entity_1 = require("./business.entity");
16
+ const access_business_entity_1 = require("./access.business.entity");
17
17
  const menu_entity_1 = require("./menu.entity");
18
18
  const product_entity_1 = require("./product.entity");
19
19
  let ListPreferenceEntity = class ListPreferenceEntity extends nestjs_utility_services_1.CommonEntity {
@@ -51,9 +51,9 @@ __decorate([
51
51
  __metadata("design:type", list_preference_attributes_dto_1.ListPreferenceAttributesDto)
52
52
  ], ListPreferenceEntity.prototype, "attributes", void 0);
53
53
  __decorate([
54
- (0, typeorm_1.ManyToOne)(() => business_entity_1.BusinessEntity),
54
+ (0, typeorm_1.ManyToOne)(() => access_business_entity_1.AccessBusinessEntity),
55
55
  (0, typeorm_1.JoinColumn)({ name: 'business_id' }),
56
- __metadata("design:type", business_entity_1.BusinessEntity)
56
+ __metadata("design:type", access_business_entity_1.AccessBusinessEntity)
57
57
  ], ListPreferenceEntity.prototype, "business", void 0);
58
58
  __decorate([
59
59
  (0, typeorm_1.ManyToOne)(() => menu_entity_1.MenuEntity),
@@ -1 +1 @@
1
- {"version":3,"file":"list.preference.entity.js","sourceRoot":"","sources":["../../../src/access/entities/list.preference.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAkF;AAClF,qCAAgE;AAChE,2FAAqF;AACrF,uDAAmD;AACnD,+CAA2C;AAC3C,qDAAiD;AAS1C,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,sCAAY;CAgCrD,CAAA;AA/BG;IAAC,IAAA,gBAAM,GAAE;;yDACW;AAEpB;IAAC,IAAA,gBAAM,GAAE;;qDACO;AAEhB;IAAC,IAAA,gBAAM,GAAE;;wDACU;AAEnB;IAAC,IAAA,gBAAM,GAAE;;qDACO;AAEhB;IAAC,IAAA,gBAAM,GAAE;;kDACI;AAEb;IAAC,IAAA,gBAAM,EAAC,MAAM,CAAC;;+DACQ;AAEvB;IAAC,IAAA,gBAAM,EAAC,MAAM,CAAC;;8DACO;AAEtB;IAAC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,4DAA2B;wDAAC;AAGxC;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gCAAc,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,gCAAc;sDAAC;AAC/F;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAAO,wBAAU;kDAAC;AAE/E;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,8BAAa,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAAU,8BAAa;qDAAC;AAE3F;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oCAAU,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAAO,oCAAU;kDAAC;AA/BtE,oBAAoB;IADhC,IAAA,gBAAM,EAAC,sBAAsB,CAAC;GAClB,oBAAoB,CAgChC;AAhCY,oDAAoB"}
1
+ {"version":3,"file":"list.preference.entity.js","sourceRoot":"","sources":["../../../src/access/entities/list.preference.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAAkF;AAClF,qCAAgE;AAChE,2FAAqF;AACrF,qEAAgE;AACh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2
  import { UserRoleAttributesDto } from '../dtos/user.role.attributes.dto';
3
- import { BusinessEntity } from './business.entity';
3
+ import { AccessBusinessEntity } from './access.business.entity';
4
4
  export declare class UserRoleEntity extends CommonEntity {
5
5
  business_id: number;
6
6
  user_id: number;
@@ -8,7 +8,7 @@ export declare class UserRoleEntity extends CommonEntity {
8
8
  source_type: string;
9
9
  source_id: number;
10
10
  attributes: UserRoleAttributesDto;
11
- business: BusinessEntity;
11
+ business: AccessBusinessEntity;
12
12
  user: UserEntity;
13
13
  role: RoleEntity;
14
14
  }
@@ -13,7 +13,7 @@ exports.UserRoleEntity = void 0;
13
13
  const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
14
14
  const typeorm_1 = require("typeorm");
15
15
  const user_role_attributes_dto_1 = require("../dtos/user.role.attributes.dto");
16
- const business_entity_1 = require("./business.entity");
16
+ const access_business_entity_1 = require("./access.business.entity");
17
17
  let UserRoleEntity = class UserRoleEntity extends nestjs_utility_services_1.CommonEntity {
18
18
  };
19
19
  __decorate([
@@ -41,9 +41,9 @@ __decorate([
41
41
  __metadata("design:type", user_role_attributes_dto_1.UserRoleAttributesDto)
42
42
  ], UserRoleEntity.prototype, "attributes", void 0);
43
43
  __decorate([
44
- (0, typeorm_1.ManyToOne)(() => business_entity_1.BusinessEntity),
44
+ (0, typeorm_1.ManyToOne)(() => access_business_entity_1.AccessBusinessEntity),
45
45
  (0, typeorm_1.JoinColumn)({ name: 'business_id' }),
46
- __metadata("design:type", business_entity_1.BusinessEntity)
46
+ __metadata("design:type", access_business_entity_1.AccessBusinessEntity)
47
47
  ], UserRoleEntity.prototype, "business", void 0);
48
48
  __decorate([
49
49
  (0, typeorm_1.ManyToOne)(() => nestjs_utility_services_1.UserEntity),
@@ -1 +1 @@
1
- {"version":3,"file":"user.role.entity.js","sourceRoot":"","sources":["../../../src/access/entities/user.role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oFAA8F;AAC9F,qCAAgE;AAChE,+EAAy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,gBAAM,GAAE;;mDACW;AAEpB;IAAC,IAAA,gBAAM,GAAE;;iDACS;AAElB;IAAC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,gDAAqB;kDAAC;AAGlC;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;gDAAC;AAE3G;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oCAAU,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAAO,oCAAU;4CAAC;AAE/E;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oCAAU,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAAO,oCAAU;4CAAC;AAxBtE,cAAc;IAD1B,IAAA,gBAAM,EAAC,eAAe,CAAC;GACX,cAAc,CAyB1B;AAzBY,wCAAc"}
@@ -1,6 +1,9 @@
1
- import { MenuController } from './controllers/menu.controller';
1
+ import { AccessMenuController } from './controllers/access.menu.controller';
2
+ import { DashboardController } from './controllers/dashboard.controller';
3
+ import { AccessBusinessParamDto } from './dtos/access.business.param.dto';
2
4
  import { BusinessUserAttributesDto } from './dtos/business.user.attributes.dto';
3
- import { BusinessEntity } from './entities/business.entity';
5
+ import { StringSearchDto } from './dtos/string.search.dto';
6
+ import { AccessBusinessEntity } from './entities/access.business.entity';
4
7
  import { BusinessUserEntity } from './entities/business.user.entity';
5
8
  import { BusinessUserRoleEntity } from './entities/business.user.role.entity';
6
9
  import { ChildMenuEntity } from './entities/child.menu.entity';
@@ -33,6 +36,7 @@ import { UiActionRoleJob } from './jobs/ui.action.role.job';
33
36
  import { UserRoleJob } from './jobs/user.role.job';
34
37
  import { ProcessApplicationMenu } from './libraries/process.application.menu';
35
38
  import { ProcessBusinessUserRoleUpdate } from './libraries/process.business.user.role.update';
39
+ import { ProcessDashboardReport } from './libraries/process.dashboard.report';
36
40
  import { ProcessGroupRoleUpdate } from './libraries/process.group.role.update';
37
41
  import { ProcessMenuDetails } from './libraries/process.menu.details';
38
42
  import { Es6JobsService } from './services/es6.jobs.service';
@@ -56,11 +60,11 @@ import { UiActionRoleSubscriber } from './subscribers/ui.action.role.subscriber'
56
60
  import { UiActionSubscriber } from './subscribers/ui.action.subscriber';
57
61
  import { UserRoleSubscriber } from './subscribers/user.role.subscriber';
58
62
  declare const es6Classes: {
59
- controllers: (typeof MenuController)[];
60
- dtos: (typeof BusinessUserAttributesDto)[];
61
- entities: (typeof BusinessEntity | typeof BusinessUserEntity | typeof ProductEntity | typeof BusinessUserRoleEntity | typeof MenuEntity | typeof ChildMenuEntity | typeof DashboardComponentEntity | typeof GroupRoleEntity | typeof MenuActionEntity | typeof MenuRoleEntity | typeof ModuleMenuEntity | typeof UiActionRoleEntity | typeof UserRoleEntity)[];
63
+ controllers: (typeof AccessMenuController | typeof DashboardController)[];
64
+ dtos: (typeof BusinessUserAttributesDto | typeof AccessBusinessParamDto | typeof StringSearchDto)[];
65
+ entities: (typeof AccessBusinessEntity | typeof BusinessUserEntity | typeof ProductEntity | typeof BusinessUserRoleEntity | typeof MenuEntity | typeof ChildMenuEntity | typeof DashboardComponentEntity | typeof GroupRoleEntity | typeof MenuActionEntity | typeof MenuRoleEntity | typeof ModuleMenuEntity | typeof UiActionRoleEntity | typeof UserRoleEntity)[];
62
66
  jobs: (typeof BusinessUserJob | typeof BusinessUserRoleJob | typeof ChildMenuJob | typeof CustomReportJob | typeof DashboardComponentJob | typeof DashboardJob | typeof GroupRoleJob | typeof ListPreferenceJob | typeof MenuActionJob | typeof MenuJob | typeof MenuRoleJob | typeof ModuleJob | typeof ModuleMenuJob | typeof ProductJob | typeof RoleGroupJob | typeof UiActionJob | typeof UiActionRoleJob | typeof UserRoleJob)[];
63
- libraries: (typeof ProcessApplicationMenu | typeof ProcessMenuDetails | typeof ProcessBusinessUserRoleUpdate | typeof ProcessGroupRoleUpdate)[];
67
+ libraries: (typeof ProcessApplicationMenu | typeof ProcessMenuDetails | typeof ProcessDashboardReport | typeof ProcessBusinessUserRoleUpdate | typeof ProcessGroupRoleUpdate)[];
64
68
  services: (typeof Es6JobsService | typeof LoadEntityService)[];
65
69
  subscribers: (typeof BusinessUserRoleSubscriber | typeof BusinessUserSubscriber | typeof ChildMenuSubscriber | typeof CustomReportSubscriber | typeof DashboardComponentSubscriber | typeof DashboardSubscriber | typeof GroupRoleSubscriber | typeof ListPreferenceSubscriber | typeof MenuActionSubscriber | typeof MenuRoleSubscriber | typeof MenuSubscriber | typeof ModuleMenuSubscriber | typeof ModuleSubscriber | typeof ProductSubscriber | typeof RoleGroupSubscriber | typeof UiActionRoleSubscriber | typeof UiActionSubscriber | typeof UserRoleSubscriber)[];
66
70
  };
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const menu_controller_1 = require("./controllers/menu.controller");
3
+ const access_menu_controller_1 = require("./controllers/access.menu.controller");
4
+ const dashboard_controller_1 = require("./controllers/dashboard.controller");
5
+ const access_business_param_dto_1 = require("./dtos/access.business.param.dto");
4
6
  const business_user_attributes_dto_1 = require("./dtos/business.user.attributes.dto");
5
7
  const business_user_role_attributes_dto_1 = require("./dtos/business.user.role.attributes.dto");
6
8
  const child_menu_attributes_dto_1 = require("./dtos/child.menu.attributes.dto");
@@ -16,10 +18,11 @@ const module_attributes_dto_1 = require("./dtos/module.attributes.dto");
16
18
  const module_menu_attributes_dto_1 = require("./dtos/module.menu.attributes.dto");
17
19
  const product_attributes_dto_1 = require("./dtos/product.attributes.dto");
18
20
  const role_group_attributes_dto_1 = require("./dtos/role.group.attributes.dto");
21
+ const string_search_dto_1 = require("./dtos/string.search.dto");
19
22
  const ui_action_attributes_dto_1 = require("./dtos/ui.action.attributes.dto");
20
23
  const ui_action_role_attributes_dto_1 = require("./dtos/ui.action.role.attributes.dto");
21
24
  const user_role_attributes_dto_1 = require("./dtos/user.role.attributes.dto");
22
- const business_entity_1 = require("./entities/business.entity");
25
+ const access_business_entity_1 = require("./entities/access.business.entity");
23
26
  const business_user_entity_1 = require("./entities/business.user.entity");
24
27
  const business_user_role_entity_1 = require("./entities/business.user.role.entity");
25
28
  const child_menu_entity_1 = require("./entities/child.menu.entity");
@@ -58,6 +61,7 @@ const ui_action_role_job_1 = require("./jobs/ui.action.role.job");
58
61
  const user_role_job_1 = require("./jobs/user.role.job");
59
62
  const process_application_menu_1 = require("./libraries/process.application.menu");
60
63
  const process_business_user_role_update_1 = require("./libraries/process.business.user.role.update");
64
+ const process_dashboard_report_1 = require("./libraries/process.dashboard.report");
61
65
  const process_group_role_update_1 = require("./libraries/process.group.role.update");
62
66
  const process_menu_details_1 = require("./libraries/process.menu.details");
63
67
  const es6_jobs_service_1 = require("./services/es6.jobs.service");
@@ -81,8 +85,9 @@ const ui_action_role_subscriber_1 = require("./subscribers/ui.action.role.subscr
81
85
  const ui_action_subscriber_1 = require("./subscribers/ui.action.subscriber");
82
86
  const user_role_subscriber_1 = require("./subscribers/user.role.subscriber");
83
87
  const es6Classes = {
84
- controllers: [menu_controller_1.MenuController],
88
+ controllers: [access_menu_controller_1.AccessMenuController, dashboard_controller_1.DashboardController],
85
89
  dtos: [
90
+ access_business_param_dto_1.AccessBusinessParamDto,
86
91
  business_user_attributes_dto_1.BusinessUserAttributesDto,
87
92
  business_user_role_attributes_dto_1.BusinessUserRoleAttributesDto,
88
93
  child_menu_attributes_dto_1.ChildMenuAttributesDto,
@@ -98,12 +103,13 @@ const es6Classes = {
98
103
  module_menu_attributes_dto_1.ModuleMenuAttributesDto,
99
104
  product_attributes_dto_1.ProductAttributesDto,
100
105
  role_group_attributes_dto_1.RoleGroupAttributesDto,
106
+ string_search_dto_1.StringSearchDto,
101
107
  ui_action_attributes_dto_1.UiActionAttributesDto,
102
108
  ui_action_role_attributes_dto_1.UiActionRoleAttributesDto,
103
109
  user_role_attributes_dto_1.UserRoleAttributesDto,
104
110
  ],
105
111
  entities: [
106
- business_entity_1.BusinessEntity,
112
+ access_business_entity_1.AccessBusinessEntity,
107
113
  business_user_entity_1.BusinessUserEntity,
108
114
  business_user_role_entity_1.BusinessUserRoleEntity,
109
115
  child_menu_entity_1.ChildMenuEntity,
@@ -143,7 +149,7 @@ const es6Classes = {
143
149
  ui_action_role_job_1.UiActionRoleJob,
144
150
  user_role_job_1.UserRoleJob,
145
151
  ],
146
- libraries: [process_application_menu_1.ProcessApplicationMenu, process_business_user_role_update_1.ProcessBusinessUserRoleUpdate, process_group_role_update_1.ProcessGroupRoleUpdate, process_menu_details_1.ProcessMenuDetails],
152
+ libraries: [process_application_menu_1.ProcessApplicationMenu, process_business_user_role_update_1.ProcessBusinessUserRoleUpdate, process_dashboard_report_1.ProcessDashboardReport, process_group_role_update_1.ProcessGroupRoleUpdate, process_menu_details_1.ProcessMenuDetails],
147
153
  services: [es6_jobs_service_1.Es6JobsService, load_entity_service_1.LoadEntityService],
148
154
  subscribers: [
149
155
  business_user_role_subscriber_1.BusinessUserRoleSubscriber,
@@ -1 +1 @@
1
- {"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/access/es6.classes.ts"],"names":[],"mappings":";;AAAA,mEAA+D;AAC/D,sFAAgF;AAChF,gGAAyF;AACzF,gFAA0E;AAC1E,sFAAgF;AAChF,8EAAyE;AACzE,kGAA4F;AAC5F,gFAA0E;AAC1E,0FAAoF;AACpF,kFAA4E;AAC5E,oEAA+D;AAC/D,8EAAwE;AACxE,wEAAmE;AACnE,kFAA4E;AAC5E,0EAAqE;AACrE,gFAA0E;AAC1E,8EAAwE;AACxE,wFAAiF;AACjF,8EAAwE;AACxE,gEAA4D;AAC5D,0EAAqE;AACrE,oFAA8E;AAC9E,oEAA+D;AAC/D,0EAAqE;AACrE,sFAAiF;AACjF,kEAA8D;AAC9D,oEAA+D;AAC/D,8EAAyE;AACzE,sEAAiE;AACjE,w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6CAAoB;QACpB,qCAAgB;QAChB,wBAAU;QACV,iCAAc;QACd,4BAAY;QACZ,qCAAgB;QAChB,8BAAa;QACb,mCAAe;QACf,iCAAc;QACd,0CAAkB;QAClB,iCAAc;KACjB;IACD,IAAI,EAAE;QACF,mCAAe;QACf,4CAAmB;QACnB,6BAAY;QACZ,mCAAe;QACf,+CAAqB;QACrB,4BAAY;QACZ,6BAAY;QACZ,uCAAiB;QACjB,+BAAa;QACb,kBAAO;QACP,2BAAW;QACX,sBAAS;QACT,+BAAa;QACb,wBAAU;QACV,6BAAY;QACZ,2BAAW;QACX,oCAAe;QACf,2BAAW;KACd;IACD,SAAS,EAAE,CAAC,iDAAsB,EAAE,iEAA6B,EAAE,kDAAsB,EAAE,yCAAkB,CAAC;IAC9G,QAAQ,EAAE,CAAC,iCAAc,EAAE,uCAAiB,CAAC;IAC7C,WAAW,EAAE;QACT,0DAA0B;QAC1B,iDAAsB;QACtB,2CAAmB;QACnB,iDAAsB;QACtB,6DAA4B;QAC5B,0CAAmB;QACnB,2CAAmB;QACnB,qDAAwB;QACxB,6CAAoB;QACpB,yCAAkB;QAClB,gCAAc;QACd,6CAAoB;QACpB,oCAAgB;QAChB,sCAAiB;QACjB,2CAAmB;QACnB,kDAAsB;QACtB,yCAAkB;QAClB,yCAAkB;KACrB;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/access/es6.classes.ts"],"names":[],"mappings":";;AAAA,iFAA4E;AAC5E,6EAAyE;AACzE,gFAA0E;AAC1E,sFAAgF;AAChF,gGAAyF;AACzF,gFAA0E;AAC1E,sFAAgF;AAChF,8EAAyE;AACzE,kGAA4F;AAC5F,gFAA0E;AAC1E,0FAAoF;AACpF,kFAA4E;AAC5E,oEAA+D;AAC/D,8EAAwE;AACxE,wEAAmE;AACnE,kFAA4E;AAC5E,0EAAqE;AACrE,gFAA0E;AAC1E,gEAA2D;AAC3D,8EAAwE;AAC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AAmB;QACnB,oDAAuB;QACvB,6CAAoB;QACpB,kDAAsB;QACtB,mCAAe;QACf,gDAAqB;QACrB,yDAAyB;QACzB,gDAAqB;KACxB;IACD,QAAQ,EAAE;QACN,6CAAoB;QACpB,yCAAkB;QAClB,kDAAsB;QACtB,mCAAe;QACf,yCAAkB;QAClB,qDAAwB;QACxB,kCAAe;QACf,mCAAe;QACf,6CAAoB;QACpB,qCAAgB;QAChB,wBAAU;QACV,iCAAc;QACd,4BAAY;QACZ,qCAAgB;QAChB,8BAAa;QACb,mCAAe;QACf,iCAAc;QACd,0CAAkB;QAClB,iCAAc;KACjB;IACD,IAAI,EAAE;QACF,mCAAe;QACf,4CAAmB;QACnB,6BAAY;QACZ,mCAAe;QACf,+CAAqB;QACrB,4BAAY;QACZ,6BAAY;QACZ,uCAAiB;QACjB,+BAAa;QACb,kBAAO;QACP,2BAAW;QACX,sBAAS;QACT,+BAAa;QACb,wBAAU;QACV,6BAAY;QACZ,2BAAW;QACX,oCAAe;QACf,2BAAW;KACd;IACD,SAAS,EAAE,CAAC,iDAAsB,EAAE,iEAA6B,EAAE,iDAAsB,EAAE,kDAAsB,EAAE,yCAAkB,CAAC;IACtI,QAAQ,EAAE,CAAC,iCAAc,EAAE,uCAAiB,CAAC;IAC7C,WAAW,EAAE;QACT,0DAA0B;QAC1B,iDAAsB;QACtB,2CAAmB;QACnB,iDAAsB;QACtB,6DAA4B;QAC5B,0CAAmB;QACnB,2CAAmB;QACnB,qDAAwB;QACxB,6CAAoB;QACpB,yCAAkB;QAClB,gCAAc;QACd,6CAAoB;QACpB,oCAAgB;QAChB,sCAAiB;QACjB,2CAAmB;QACnB,kDAAsB;QACtB,yCAAkB;QAClB,yCAAkB;KACrB;CACJ,CAAC;AAEF,kBAAe,UAAU,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from './process.application.menu';
2
2
  export * from './process.business.user.role.update';
3
+ export * from './process.dashboard.report';
3
4
  export * from './process.group.role.update';
4
5
  export * from './process.menu.details';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./process.application.menu"), exports);
18
18
  __exportStar(require("./process.business.user.role.update"), exports);
19
+ __exportStar(require("./process.dashboard.report"), exports);
19
20
  __exportStar(require("./process.group.role.update"), exports);
20
21
  __exportStar(require("./process.menu.details"), exports);
21
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/libraries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,sEAAoD;AACpD,8DAA4C;AAC5C,yDAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/libraries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,sEAAoD;AACpD,6DAA2C;AAC3C,8DAA4C;AAC5C,yDAAuC"}
@@ -6,7 +6,9 @@ export declare class ProcessApplicationMenu {
6
6
  private cacheKey;
7
7
  private menuIds;
8
8
  constructor(cacheService: CacheService, accessManager: AccessManager, user: UserAccessDto);
9
- process(id: number): Promise<any>;
9
+ process(id: number): Promise<{
10
+ modules: any[];
11
+ }>;
10
12
  private getDataFromDB;
11
13
  private loadModules;
12
14
  private getModuleMenus;
@@ -14,16 +14,11 @@ class ProcessApplicationMenu {
14
14
  this.menuIds = [];
15
15
  }
16
16
  async process(id) {
17
- this.cacheKey = `slabs.menu.${this.user.id}.details`;
18
- const cacheData = await this.cacheService.get(this.cacheKey);
19
- if (cacheData)
20
- return cacheData;
21
17
  const menus = await this.getDataFromDB(id);
22
18
  await this.cacheService.set(this.cacheKey, menus, (0, date_fns_1.addMinutes)(new Date(), 30));
23
19
  return menus;
24
20
  }
25
21
  async getDataFromDB(id) {
26
- global.console.log('fetching menu from db');
27
22
  const modules = await this.loadModules(id);
28
23
  const data = [];
29
24
  modules.forEach((module) => {
@@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,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACxD,CAAC;CACJ;AAvHD,wDAuHC"}
1
+ {"version":3,"file":"process.application.menu.js","sourceRoot":"","sources":["../../../src/access/libraries/process.application.menu.ts"],"names":[],"mappings":";;;AAAA,oFAAiI;AACjI,uCAAsC;AACtC,qEAAgE;AAEhE,6DAAyD;AACzD,uEAAkE;AAElE,MAAa,sBAAsB;IAK/B,YAA6B,YAA0B,EAAmB,aAA4B,EAAmB,IAAmB;QAA/G,iBAAY,GAAZ,YAAY,CAAc;QAAmB,kBAAa,GAAb,aAAa,CAAe;QAAmB,SAAI,GAAJ,IAAI,CAAe;QAFpI,YAAO,GAAa,EAAE,CAAC;IAEgH,CAAC;IAOhJ,KAAK,CAAC,OAAO,CAAC,EAAU;QAMpB,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;QAC3C,MAAM,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAA,qBAAU,EAAC,IAAI,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;QAE9E,OAAO,KAAK,CAAC;IACjB,CAAC;IAEO,KAAK,CAAC,aAAa,CAAC,EAAU;QAClC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QAC3C,MAAM,IAAI,GAAG,EAAE,CAAC;QAEhB,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;YACvB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;gBAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;QACH,OAAO;YACH,OAAO,EAAE,IAAI;SAChB,CAAC;IACN,CAAC;IAQO,KAAK,CAAC,WAAW,CAAC,EAAU;QAChC,MAAM,OAAO,GAAG,MAAM,4BAAY,CAAC,IAAI,CAAC;YACpC,KAA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AAC;YAE3G,IAAI,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;gBAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;gBAC/E,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAG3B,MAAM,UAAU,GAAG,MAAM,mCAAe,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;YAEtG,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;gBAC7B,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;oBAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,qCAAW,CAAC,gBAAgB,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;YACtH,CAAC,CAAC,CAAC;SACN;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IASO,KAAK,CAAC,aAAa,CAAC,IAAgB;QACxC,MAAM,KAAK,GAAG,MAAM,wCAAc,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;QACzE,IAAI,CAAC,KAAK,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAE/B,OAAO,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC;IACxD,CAAC;CACJ;AArHD,wDAqHC"}
@@ -0,0 +1,9 @@
1
+ import { AccessManager } from '@servicelabsco/nestjs-utility-services';
2
+ import { DashboardEntity } from '../entities';
3
+ export declare class ProcessDashboardReport {
4
+ private readonly accessManager;
5
+ constructor(accessManager: AccessManager);
6
+ process(identifier: string): Promise<DashboardEntity>;
7
+ private getReports;
8
+ private hasReportAccess;
9
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProcessDashboardReport = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ const entities_1 = require("../entities");
6
+ class ProcessDashboardReport {
7
+ constructor(accessManager) {
8
+ this.accessManager = accessManager;
9
+ }
10
+ async process(identifier) {
11
+ const dashboard = await entities_1.DashboardEntity.findOne({ where: { identifier } });
12
+ if (!dashboard)
13
+ throw new nestjs_utility_services_1.AccessManager();
14
+ dashboard.components = await this.getReports(dashboard);
15
+ return dashboard;
16
+ }
17
+ async getReports(dashboard) {
18
+ const reports = await entities_1.DashboardComponentEntity.find({ where: { dashboard_id: dashboard.id, active: true } });
19
+ const r = [];
20
+ for (const report of reports) {
21
+ const hasAccess = await this.hasReportAccess(report.identfier);
22
+ if (hasAccess)
23
+ r.push(report);
24
+ }
25
+ return r;
26
+ }
27
+ async hasReportAccess(identifier) {
28
+ const report = await nestjs_utility_services_1.ReportEntity.findOne({ where: { name: identifier }, relations: ['report_roles'] });
29
+ if (!report)
30
+ return false;
31
+ if (!report.report_roles.length)
32
+ return true;
33
+ return this.accessManager.hasRoleAssignments(report.report_roles);
34
+ }
35
+ }
36
+ exports.ProcessDashboardReport = ProcessDashboardReport;
37
+ //# sourceMappingURL=process.dashboard.report.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"process.dashboard.report.js","sourceRoot":"","sources":["../../../src/access/libraries/process.dashboard.report.ts"],"names":[],"mappings":";;;AAAA,oFAAqF;AACrF,0CAAwE;AACxE,MAAa,sBAAsB;IAC/B,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAE7D,KAAK,CAAC,OAAO,CAAC,UAAkB;QAC5B,MAAM,SAAS,GAAG,MAAM,0BAAe,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;QAE3E,IAAI,CAAC,SAAS;YAAE,MAAM,IAAI,uCAAa,EAAE,CAAC;QAC1C,SAAS,CAAC,UAAU,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;QAExD,OAAO,SAAS,CAAC;IACrB,CAAC;IAEO,KAAK,CAAC,UAAU,CAAC,SAA0B;QAC/C,MAAM,OAAO,GAAG,MAAM,mCAAwB,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QAE7G,MAAM,CAAC,GAA+B,EAAE,CAAC;QAEzC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;YAC1B,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAE/D,IAAI,SAAS;gBAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SACjC;QAED,OAAO,CAAC,CAAC;IACb,CAAC;IAEO,KAAK,CAAC,eAAe,CAAC,UAAkB;QAC5C,MAAM,MAAM,GAAG,MAAM,sCAAY,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QAExG,IAAI,CAAC,MAAM;YAAE,OAAO,KAAK,CAAC;QAC1B,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAE7C,OAAO,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACtE,CAAC;CACJ;AAlCD,wDAkCC"}
@@ -1,4 +1,4 @@
1
- import { BusinessEntity } from '../access/entities/business.entity';
1
+ import { AccessBusinessEntity } from '../access/entities/access.business.entity';
2
2
  import { BusinessUserEntity } from '../access/entities/business.user.entity';
3
3
  import { BusinessUserRoleEntity } from '../access/entities/business.user.role.entity';
4
4
  import { ChildMenuEntity } from '../access/entities/child.menu.entity';
@@ -18,7 +18,7 @@ import { UiActionEntity } from '../access/entities/ui.action.entity';
18
18
  import { UiActionRoleEntity } from '../access/entities/ui.action.role.entity';
19
19
  import { UserRoleEntity } from '../access/entities/user.role.entity';
20
20
  declare const entityConstants: {
21
- d6d2e31a0f603594295feb7db9d3d8d9: typeof BusinessEntity;
21
+ '65e0e6d5c92cbba596ecaf851b586389': typeof AccessBusinessEntity;
22
22
  f140008ee5cd24094504c17ec2bdb681: typeof BusinessUserEntity;
23
23
  db2456e356ed67bad6d4d1b02760663e: typeof BusinessUserRoleEntity;
24
24
  '70d7e2ccf454713ab4774a37daf4188d': typeof ChildMenuEntity;
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const business_entity_1 = require("../access/entities/business.entity");
2
+ const access_business_entity_1 = require("../access/entities/access.business.entity");
3
3
  const business_user_entity_1 = require("../access/entities/business.user.entity");
4
4
  const business_user_role_entity_1 = require("../access/entities/business.user.role.entity");
5
5
  const child_menu_entity_1 = require("../access/entities/child.menu.entity");
@@ -19,7 +19,7 @@ const ui_action_entity_1 = require("../access/entities/ui.action.entity");
19
19
  const ui_action_role_entity_1 = require("../access/entities/ui.action.role.entity");
20
20
  const user_role_entity_1 = require("../access/entities/user.role.entity");
21
21
  const entityConstants = {
22
- d6d2e31a0f603594295feb7db9d3d8d9: business_entity_1.BusinessEntity,
22
+ '65e0e6d5c92cbba596ecaf851b586389': access_business_entity_1.AccessBusinessEntity,
23
23
  f140008ee5cd24094504c17ec2bdb681: business_user_entity_1.BusinessUserEntity,
24
24
  db2456e356ed67bad6d4d1b02760663e: business_user_role_entity_1.BusinessUserRoleEntity,
25
25
  '70d7e2ccf454713ab4774a37daf4188d': child_menu_entity_1.ChildMenuEntity,
@@ -1 +1 @@
1
- {"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA,wEAAoE;AACpE,kFAA6E;AAC7E,4FAAsF;AACtF,4EAAuE;AACvE,kFAA6E;AAC7E,8FAAyF;AACzF,0EAAsE;AACtE,4EAAuE;AACvE,sFAAiF;AACjF,8EAAyE;AACzE,gEAA4D;AAC5D,0EAAqE;AACrE,oEAAgE;AAChE,8EAAyE;AACzE,sEAAkE;AAClE,4EAAuE;AACvE,0EAAqE;AACrE,oFAA8E;AAC9E,0EAAqE;AAErE,MAAM,eAAe,GAAG;IACpB,gCAAgC,EAAE,gCAAc;IAChD,gCAAgC,EAAE,yCAAkB;IACpD,gCAAgC,EAAE,kDAAsB;IACxD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,yCAAkB;IACtD,kCAAkC,EAAE,qDAAwB;IAC5D,gCAAgC,EAAE,kCAAe;IACjD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,qCAAgB;IACpD,kCAAkC,EAAE,wBAAU;IAC9C,kCAAkC,EAAE,iCAAc;IAClD,kCAAkC,EAAE,4BAAY;IAChD,kCAAkC,EAAE,qCAAgB;IACpD,kCAAkC,EAAE,8BAAa;IACjD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,iCAAc;IAClD,kCAAkC,EAAE,0CAAkB;IACtD,kCAAkC,EAAE,iCAAc;CACrD,CAAC;AAEF,iBAAS,eAAe,CAAC"}
1
+ {"version":3,"file":"entity.constants.js","sourceRoot":"","sources":["../../src/config/entity.constants.ts"],"names":[],"mappings":";AAAA,sFAAiF;AACjF,kFAA6E;AAC7E,4FAAsF;AACtF,4EAAuE;AACvE,kFAA6E;AAC7E,8FAAyF;AACzF,0EAAsE;AACtE,4EAAuE;AACvE,sFAAiF;AACjF,8EAAyE;AACzE,gEAA4D;AAC5D,0EAAqE;AACrE,oEAAgE;AAChE,8EAAyE;AACzE,sEAAkE;AAClE,4EAAuE;AACvE,0EAAqE;AACrE,oFAA8E;AAC9E,0EAAqE;AAErE,MAAM,eAAe,GAAG;IACpB,kCAAkC,EAAE,6CAAoB;IACxD,gCAAgC,EAAE,yCAAkB;IACpD,gCAAgC,EAAE,kDAAsB;IACxD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,yCAAkB;IACtD,kCAAkC,EAAE,qDAAwB;IAC5D,gCAAgC,EAAE,kCAAe;IACjD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,6CAAoB;IACxD,kCAAkC,EAAE,qCAAgB;IACpD,kCAAkC,EAAE,wBAAU;IAC9C,kCAAkC,EAAE,iCAAc;IAClD,kCAAkC,EAAE,4BAAY;IAChD,kCAAkC,EAAE,qCAAgB;IACpD,kCAAkC,EAAE,8BAAa;IACjD,kCAAkC,EAAE,mCAAe;IACnD,kCAAkC,EAAE,iCAAc;IAClD,kCAAkC,EAAE,0CAAkB;IACtD,kCAAkC,EAAE,iCAAc;CACrD,CAAC;AAEF,iBAAS,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicelabsco/slabs-access-manager",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Support for application level menus and dashboards",
5
5
  "author": "Hemant Kumar Sah <hemantanshu@gmail.com>",
6
6
  "license": "MIT",