@servicelabsco/slabs-access-manager 1.0.55 → 1.0.57

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 (64) hide show
  1. package/dist/access/controllers/dashboard.builder.controller.d.ts +5 -6
  2. package/dist/access/controllers/dashboard.builder.controller.js +7 -14
  3. package/dist/access/controllers/dashboard.builder.controller.js.map +1 -1
  4. package/dist/access/controllers/developer.mode.controller.d.ts +3 -3
  5. package/dist/access/controllers/developer.mode.controller.js +5 -5
  6. package/dist/access/controllers/developer.mode.controller.js.map +1 -1
  7. package/dist/access/controllers/form.script.controller.d.ts +7 -0
  8. package/dist/access/controllers/form.script.controller.js +40 -0
  9. package/dist/access/controllers/form.script.controller.js.map +1 -0
  10. package/dist/access/controllers/index.d.ts +1 -0
  11. package/dist/access/controllers/index.js +1 -0
  12. package/dist/access/controllers/index.js.map +1 -1
  13. package/dist/access/controllers/ui.action.controller.d.ts +3 -6
  14. package/dist/access/controllers/ui.action.controller.js +6 -16
  15. package/dist/access/controllers/ui.action.controller.js.map +1 -1
  16. package/dist/access/es6.classes.d.ts +4 -2
  17. package/dist/access/es6.classes.js +4 -0
  18. package/dist/access/es6.classes.js.map +1 -1
  19. package/dist/access/services/developer.mode.access.service.d.ts +7 -0
  20. package/dist/access/services/developer.mode.access.service.js +35 -0
  21. package/dist/access/services/developer.mode.access.service.js.map +1 -0
  22. package/dist/access/services/index.d.ts +1 -0
  23. package/dist/access/services/index.js +1 -0
  24. package/dist/access/services/index.js.map +1 -1
  25. package/dist/development/controllers/development.report.controller.d.ts +15 -0
  26. package/dist/development/controllers/development.report.controller.js +57 -0
  27. package/dist/development/controllers/development.report.controller.js.map +1 -0
  28. package/dist/development/controllers/index.d.ts +1 -0
  29. package/dist/development/controllers/index.js +1 -0
  30. package/dist/development/controllers/index.js.map +1 -1
  31. package/dist/development/development.module.js +2 -0
  32. package/dist/development/development.module.js.map +1 -1
  33. package/dist/development/es6.classes.d.ts +2 -1
  34. package/dist/development/es6.classes.js +2 -1
  35. package/dist/development/es6.classes.js.map +1 -1
  36. package/dist/development/registries/development.entity.registry.js +2 -0
  37. package/dist/development/registries/development.entity.registry.js.map +1 -1
  38. package/dist/login.service.d.ts +2 -8
  39. package/dist/login.service.js +9 -1
  40. package/dist/login.service.js.map +1 -1
  41. package/dist/mcp/admin/tools/admin.tool.registry.js +10 -0
  42. package/dist/mcp/admin/tools/admin.tool.registry.js.map +1 -1
  43. package/dist/mcp/admin/tools/index.d.ts +1 -0
  44. package/dist/mcp/admin/tools/index.js +1 -0
  45. package/dist/mcp/admin/tools/index.js.map +1 -1
  46. package/dist/mcp/admin/tools/report/index.d.ts +5 -0
  47. package/dist/mcp/admin/tools/report/index.js +22 -0
  48. package/dist/mcp/admin/tools/report/index.js.map +1 -0
  49. package/dist/mcp/admin/tools/report/report.create.tool.d.ts +20 -0
  50. package/dist/mcp/admin/tools/report/report.create.tool.js +24 -0
  51. package/dist/mcp/admin/tools/report/report.create.tool.js.map +1 -0
  52. package/dist/mcp/admin/tools/report/report.delete.tool.d.ts +17 -0
  53. package/dist/mcp/admin/tools/report/report.delete.tool.js +23 -0
  54. package/dist/mcp/admin/tools/report/report.delete.tool.js.map +1 -0
  55. package/dist/mcp/admin/tools/report/report.get.tool.d.ts +17 -0
  56. package/dist/mcp/admin/tools/report/report.get.tool.js +23 -0
  57. package/dist/mcp/admin/tools/report/report.get.tool.js.map +1 -0
  58. package/dist/mcp/admin/tools/report/report.list.tool.d.ts +23 -0
  59. package/dist/mcp/admin/tools/report/report.list.tool.js +37 -0
  60. package/dist/mcp/admin/tools/report/report.list.tool.js.map +1 -0
  61. package/dist/mcp/admin/tools/report/report.update.tool.d.ts +22 -0
  62. package/dist/mcp/admin/tools/report/report.update.tool.js +25 -0
  63. package/dist/mcp/admin/tools/report/report.update.tool.js.map +1 -0
  64. package/package.json +1 -1
@@ -0,0 +1,15 @@
1
+ import { ReportEntity } from '@servicelabsco/nestjs-utility-services';
2
+ import { AccessReportService } from '../../access/services/access.report.service';
3
+ type ReportUpsertBody = {
4
+ id?: number;
5
+ name?: string;
6
+ query: string;
7
+ description?: string;
8
+ };
9
+ export declare class DevelopmentReportController {
10
+ private readonly accessReportService;
11
+ constructor(accessReportService: AccessReportService);
12
+ upsert(body: ReportUpsertBody): Promise<ReportEntity>;
13
+ private resolveName;
14
+ }
15
+ export {};
@@ -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.DevelopmentReportController = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
18
+ const access_report_service_1 = require("../../access/services/access.report.service");
19
+ let DevelopmentReportController = class DevelopmentReportController {
20
+ constructor(accessReportService) {
21
+ this.accessReportService = accessReportService;
22
+ }
23
+ async upsert(body) {
24
+ const name = await this.resolveName(body);
25
+ if (!body?.query)
26
+ throw new nestjs_utility_services_1.OperationException('query is required');
27
+ return this.accessReportService.createReport({
28
+ name,
29
+ query: body.query,
30
+ description: body.description ?? '',
31
+ });
32
+ }
33
+ async resolveName(body) {
34
+ if (body?.name)
35
+ return body.name;
36
+ if (body?.id) {
37
+ const report = await nestjs_utility_services_1.ReportEntity.first(body.id);
38
+ if (!report)
39
+ throw new nestjs_utility_services_1.OperationException(`No report found with id ${body.id}`);
40
+ return report.name;
41
+ }
42
+ throw new nestjs_utility_services_1.OperationException('name or id is required');
43
+ }
44
+ };
45
+ exports.DevelopmentReportController = DevelopmentReportController;
46
+ __decorate([
47
+ (0, common_1.Post)('upsert'),
48
+ __param(0, (0, common_1.Body)()),
49
+ __metadata("design:type", Function),
50
+ __metadata("design:paramtypes", [Object]),
51
+ __metadata("design:returntype", Promise)
52
+ ], DevelopmentReportController.prototype, "upsert", null);
53
+ exports.DevelopmentReportController = DevelopmentReportController = __decorate([
54
+ (0, common_1.Controller)('development/report'),
55
+ __metadata("design:paramtypes", [access_report_service_1.AccessReportService])
56
+ ], DevelopmentReportController);
57
+ //# sourceMappingURL=development.report.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"development.report.controller.js","sourceRoot":"","sources":["../../../src/development/controllers/development.report.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAwD;AACxD,oFAA0F;AAC1F,uFAAkF;AAe3E,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IACpC,YAA6B,mBAAwC;QAAxC,wBAAmB,GAAnB,mBAAmB,CAAqB;IAAG,CAAC;IAOnE,AAAN,KAAK,CAAC,MAAM,CAAS,IAAsB;QACvC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAI,CAAC,IAAI,EAAE,KAAK;YAAE,MAAM,IAAI,4CAAkB,CAAC,mBAAmB,CAAC,CAAC;QAEpE,OAAO,IAAI,CAAC,mBAAmB,CAAC,YAAY,CAAC;YACzC,IAAI;YACJ,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,WAAW,EAAE,IAAI,CAAC,WAAW,IAAI,EAAE;SACtC,CAAC,CAAC;IACP,CAAC;IAEO,KAAK,CAAC,WAAW,CAAC,IAAsB;QAC5C,IAAI,IAAI,EAAE,IAAI;YAAE,OAAO,IAAI,CAAC,IAAI,CAAC;QAEjC,IAAI,IAAI,EAAE,EAAE,EAAE,CAAC;YACX,MAAM,MAAM,GAAG,MAAM,sCAAY,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACjD,IAAI,CAAC,MAAM;gBAAE,MAAM,IAAI,4CAAkB,CAAC,2BAA2B,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;YAChF,OAAO,MAAM,CAAC,IAAI,CAAC;QACvB,CAAC;QAED,MAAM,IAAI,4CAAkB,CAAC,wBAAwB,CAAC,CAAC;IAC3D,CAAC;CACJ,CAAA;AA9BY,kEAA2B;AAQ9B;IADL,IAAA,aAAI,EAAC,QAAQ,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA;;;;yDASnB;sCAjBQ,2BAA2B;IADvC,IAAA,mBAAU,EAAC,oBAAoB,CAAC;qCAEqB,2CAAmB;GAD5D,2BAA2B,CA8BvC"}
@@ -1 +1,2 @@
1
1
  export * from './development.crud.controller';
2
+ export * from './development.report.controller';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./development.crud.controller"), exports);
18
+ __exportStar(require("./development.report.controller"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAAA,kEAA+C"}
@@ -11,12 +11,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.DevelopmentModule = void 0;
13
13
  const common_1 = require("@nestjs/common");
14
+ const access_module_1 = require("../access/access.module");
14
15
  const es6_classes_1 = __importDefault(require("./es6.classes"));
15
16
  let DevelopmentModule = class DevelopmentModule {
16
17
  };
17
18
  exports.DevelopmentModule = DevelopmentModule;
18
19
  exports.DevelopmentModule = DevelopmentModule = __decorate([
19
20
  (0, common_1.Module)({
21
+ imports: [access_module_1.AccessModule],
20
22
  controllers: es6_classes_1.default.controllers,
21
23
  providers: [...es6_classes_1.default.services, ...es6_classes_1.default.registries],
22
24
  exports: [...es6_classes_1.default.services, ...es6_classes_1.default.registries],
@@ -1 +1 @@
1
- {"version":3,"file":"development.module.js","sourceRoot":"","sources":["../../src/development/development.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAwC;AACxC,gEAAuC;AAYhC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,8CAAiB;4BAAjB,iBAAiB;IAL7B,IAAA,eAAM,EAAC;QACJ,WAAW,EAAE,qBAAU,CAAC,WAAW;QACnC,SAAS,EAAE,CAAC,GAAG,qBAAU,CAAC,QAAQ,EAAE,GAAG,qBAAU,CAAC,UAAU,CAAC;QAC7D,OAAO,EAAE,CAAC,GAAG,qBAAU,CAAC,QAAQ,EAAE,GAAG,qBAAU,CAAC,UAAU,CAAC;KAC9D,CAAC;GACW,iBAAiB,CAAG"}
1
+ {"version":3,"file":"development.module.js","sourceRoot":"","sources":["../../src/development/development.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAwC;AACxC,2DAAuD;AACvD,gEAAuC;AAahC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,8CAAiB;4BAAjB,iBAAiB;IAN7B,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,4BAAY,CAAC;QACvB,WAAW,EAAE,qBAAU,CAAC,WAAW;QACnC,SAAS,EAAE,CAAC,GAAG,qBAAU,CAAC,QAAQ,EAAE,GAAG,qBAAU,CAAC,UAAU,CAAC;QAC7D,OAAO,EAAE,CAAC,GAAG,qBAAU,CAAC,QAAQ,EAAE,GAAG,qBAAU,CAAC,UAAU,CAAC;KAC9D,CAAC;GACW,iBAAiB,CAAG"}
@@ -1,9 +1,10 @@
1
1
  import { DevelopmentCrudController } from './controllers/development.crud.controller';
2
+ import { DevelopmentReportController } from './controllers/development.report.controller';
2
3
  import { DevelopmentMiddleware } from './middlewares/development.middleware';
3
4
  import { DevelopmentEntityRegistry } from './registries/development.entity.registry';
4
5
  import { DevelopmentCrudService } from './services/development.crud.service';
5
6
  declare const es6Classes: {
6
- controllers: (typeof DevelopmentCrudController)[];
7
+ controllers: (typeof DevelopmentCrudController | typeof DevelopmentReportController)[];
7
8
  interfaces: any[];
8
9
  middlewares: (typeof DevelopmentMiddleware)[];
9
10
  registries: (typeof DevelopmentEntityRegistry)[];
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const development_crud_controller_1 = require("./controllers/development.crud.controller");
4
+ const development_report_controller_1 = require("./controllers/development.report.controller");
4
5
  const development_middleware_1 = require("./middlewares/development.middleware");
5
6
  const development_entity_registry_1 = require("./registries/development.entity.registry");
6
7
  const development_crud_service_1 = require("./services/development.crud.service");
7
8
  const es6Classes = {
8
- controllers: [development_crud_controller_1.DevelopmentCrudController],
9
+ controllers: [development_crud_controller_1.DevelopmentCrudController, development_report_controller_1.DevelopmentReportController],
9
10
  interfaces: [],
10
11
  middlewares: [development_middleware_1.DevelopmentMiddleware],
11
12
  registries: [development_entity_registry_1.DevelopmentEntityRegistry],
@@ -1 +1 @@
1
- {"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/development/es6.classes.ts"],"names":[],"mappings":";;AAAA,2FAAsF;AACtF,iFAA6E;AAC7E,0FAAqF;AACrF,kFAA6E;AAE7E,MAAM,UAAU,GAAG;IACf,WAAW,EAAE,CAAC,uDAAyB,CAAC;IACxC,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,CAAC,8CAAqB,CAAC;IACpC,UAAU,EAAE,CAAC,uDAAyB,CAAC;IACvC,QAAQ,EAAE,CAAC,iDAAsB,CAAC;CACrC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/development/es6.classes.ts"],"names":[],"mappings":";;AAAA,2FAAsF;AACtF,+FAA0F;AAC1F,iFAA6E;AAC7E,0FAAqF;AACrF,kFAA6E;AAE7E,MAAM,UAAU,GAAG;IACf,WAAW,EAAE,CAAC,uDAAyB,EAAE,2DAA2B,CAAC;IACrE,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,CAAC,8CAAqB,CAAC;IACpC,UAAU,EAAE,CAAC,uDAAyB,CAAC;IACvC,QAAQ,EAAE,CAAC,iDAAsB,CAAC;CACrC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
@@ -8,6 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.DevelopmentEntityRegistry = void 0;
10
10
  const common_1 = require("@nestjs/common");
11
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
11
12
  const child_menu_entity_1 = require("../../access/entities/child.menu.entity");
12
13
  const listing_column_entity_1 = require("../../access/entities/listing.column.entity");
13
14
  const listing_page_entity_1 = require("../../access/entities/listing.page.entity");
@@ -33,6 +34,7 @@ let DevelopmentEntityRegistry = class DevelopmentEntityRegistry {
33
34
  child_menu: child_menu_entity_1.ChildMenuEntity,
34
35
  ui_action: ui_action_entity_1.UiActionEntity,
35
36
  ui_action_role: ui_action_role_entity_1.UiActionRoleEntity,
37
+ report: nestjs_utility_services_1.ReportEntity,
36
38
  };
37
39
  }
38
40
  resolve(slug) {
@@ -1 +1 @@
1
- {"version":3,"file":"development.entity.registry.js","sourceRoot":"","sources":["../../../src/development/registries/development.entity.registry.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAE5C,+EAA0E;AAC1E,uFAAkF;AAClF,mFAA8E;AAC9E,+FAA0F;AAC1F,iFAA4E;AAC5E,mEAA+D;AAC/D,6EAAwE;AACxE,uEAAmE;AACnE,iFAA4E;AAC5E,6EAAwE;AACxE,uFAAiF;AAQ1E,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAA/B;QACc,aAAQ,GAAwC;YAC7D,IAAI,EAAE,wBAAU;YAChB,MAAM,EAAE,4BAAY;YACpB,WAAW,EAAE,qCAAgB;YAC7B,SAAS,EAAE,iCAAc;YACzB,cAAc,EAAE,qCAAgB;YAChC,kBAAkB,EAAE,mDAAuB;YAC3C,YAAY,EAAE,uCAAiB;YAC/B,cAAc,EAAE,2CAAmB;YACnC,UAAU,EAAE,mCAAe;YAC3B,SAAS,EAAE,iCAAc;YACzB,cAAc,EAAE,0CAAkB;SACrC,CAAC;IASN,CAAC;IAPG,OAAO,CAAC,IAAY;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,KAAK;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;CACJ,CAAA;AAtBY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,mBAAU,GAAE;GACA,yBAAyB,CAsBrC"}
1
+ {"version":3,"file":"development.entity.registry.js","sourceRoot":"","sources":["../../../src/development/registries/development.entity.registry.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAoF;AACpF,+EAA0E;AAC1E,uFAAkF;AAClF,mFAA8E;AAC9E,+FAA0F;AAC1F,iFAA4E;AAC5E,mEAA+D;AAC/D,6EAAwE;AACxE,uEAAmE;AACnE,iFAA4E;AAC5E,6EAAwE;AACxE,uFAAiF;AAQ1E,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAA/B;QACc,aAAQ,GAAwC;YAC7D,IAAI,EAAE,wBAAU;YAChB,MAAM,EAAE,4BAAY;YACpB,WAAW,EAAE,qCAAgB;YAC7B,SAAS,EAAE,iCAAc;YACzB,cAAc,EAAE,qCAAgB;YAChC,kBAAkB,EAAE,mDAAuB;YAC3C,YAAY,EAAE,uCAAiB;YAC/B,cAAc,EAAE,2CAAmB;YACnC,UAAU,EAAE,mCAAe;YAC3B,SAAS,EAAE,iCAAc;YACzB,cAAc,EAAE,0CAAkB;YAClC,MAAM,EAAE,sCAAY;SACvB,CAAC;IASN,CAAC;IAPG,OAAO,CAAC,IAAY;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,KAAK;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;CACJ,CAAA;AAvBY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,mBAAU,GAAE;GACA,yBAAyB,CAuBrC"}
@@ -5,18 +5,12 @@ export declare class LoginService {
5
5
  constructor(internalServerConnectService: InternalServerConnectService);
6
6
  validateToken(token: string): Promise<{
7
7
  id: number;
8
- auth_attributes: {
9
- business_id: number;
10
- product_id: any;
11
- };
8
+ auth_attributes: Record<string, any>;
12
9
  }>;
13
10
  private getLocalData;
14
11
  private waitForLocalData;
15
12
  generateBusinessCredentials(user: FinnotoUserEntity, data: any): Promise<{
16
13
  id: number;
17
- auth_attributes: {
18
- business_id: number;
19
- product_id: any;
20
- };
14
+ auth_attributes: Record<string, any>;
21
15
  }>;
22
16
  }
@@ -53,7 +53,15 @@ let LoginService = class LoginService {
53
53
  const business = await access_business_entity_1.AccessBusinessEntity.findOne({ where: { meta_server_id: data.business_id } });
54
54
  if (!business)
55
55
  throw new nestjs_utility_services_1.OperationException(`Could not locate business in this given instance`);
56
- return { id: user.id, auth_attributes: { business_id: business.id, product_id: data.product_id } };
56
+ const auth_attributes = {
57
+ business_id: business.id,
58
+ product_id: data.product_id,
59
+ };
60
+ const impersonatingUserId = data?.attributes?.impersonating_user_id;
61
+ if (impersonatingUserId) {
62
+ auth_attributes.impersonating_user_id = impersonatingUserId;
63
+ }
64
+ return { id: user.id, auth_attributes };
57
65
  }
58
66
  };
59
67
  exports.LoginService = LoginService;
@@ -1 +1 @@
1
- {"version":3,"file":"login.service.js","sourceRoot":"","sources":["../src/login.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAA2H;AAC3H,qFAAgF;AAChF,+EAA0E;AAGnE,IAAM,YAAY,GAAlB,MAAM,YAAY;IACrB,YAA6B,4BAA0D;QAA1D,iCAA4B,GAA5B,4BAA4B,CAA8B;IAAG,CAAC;IAE3F,KAAK,CAAC,aAAa,CAAC,KAAa;QAC7B,MAAM,GAAG,GAAG;YACR,KAAK;SACR,CAAC;QACF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,MAAM,EAAE,gBAAgB,EAAE,GAAG,CAAC,CAAC;QAE7F,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAEzC,MAAM,IAAI,GAAQ,QAAQ,CAAC,IAAI,CAAC;QAEhC,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC;YACjB,IAAI,IAAI,CAAC,OAAO;gBAAE,MAAM,IAAI,4CAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC7D,MAAM,IAAI,4CAAkB,CAAC,sBAAsB,CAAC,CAAC;QACzD,CAAC;QAED,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAC9C,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAE1B,OAAO,IAAI,CAAC,2BAA2B,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACxD,CAAC;IAEO,KAAK,CAAC,YAAY,CAAC,IAAS,EAAE,CAAS;QA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AAO,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,eAAe,EAAE,CAAC;IAC5C,CAAC;CACJ,CAAA;AA9DY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;qCAEkD,sDAA4B;GAD9E,YAAY,CA8DxB"}
@@ -46,6 +46,11 @@ const module_menu_delete_tool_1 = require("./module_menu/module.menu.delete.tool
46
46
  const module_menu_get_tool_1 = require("./module_menu/module.menu.get.tool");
47
47
  const module_menu_list_tool_1 = require("./module_menu/module.menu.list.tool");
48
48
  const module_menu_update_tool_1 = require("./module_menu/module.menu.update.tool");
49
+ const report_create_tool_1 = require("./report/report.create.tool");
50
+ const report_delete_tool_1 = require("./report/report.delete.tool");
51
+ const report_get_tool_1 = require("./report/report.get.tool");
52
+ const report_list_tool_1 = require("./report/report.list.tool");
53
+ const report_update_tool_1 = require("./report/report.update.tool");
49
54
  const ui_action_create_tool_1 = require("./ui_action/ui.action.create.tool");
50
55
  const ui_action_delete_tool_1 = require("./ui_action/ui.action.delete.tool");
51
56
  const ui_action_get_tool_1 = require("./ui_action/ui.action.get.tool");
@@ -117,6 +122,11 @@ class AdminToolRegistry {
117
122
  new ui_action_role_create_tool_1.UiActionRoleCreateTool(this.client),
118
123
  new ui_action_role_update_tool_1.UiActionRoleUpdateTool(this.client),
119
124
  new ui_action_role_delete_tool_1.UiActionRoleDeleteTool(this.client),
125
+ new report_list_tool_1.ReportListTool(this.client),
126
+ new report_get_tool_1.ReportGetTool(this.client),
127
+ new report_create_tool_1.ReportCreateTool(this.client),
128
+ new report_update_tool_1.ReportUpdateTool(this.client),
129
+ new report_delete_tool_1.ReportDeleteTool(this.client),
120
130
  ];
121
131
  }
122
132
  }
@@ -1 +1 @@
1
- {"version":3,"file":"admin.tool.registry.js","sourceRoot":"","sources":["../../../../src/mcp/admin/tools/admin.tool.registry.ts"],"names":[],"mappings":";;;AAEA,gFAA0E;AAC1E,gFAA0E;AAC1E,0EAAoE;AACpE,4EAAsE;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+ {"version":3,"file":"admin.tool.registry.js","sourceRoot":"","sources":["../../../../src/mcp/admin/tools/admin.tool.registry.ts"],"names":[],"mappings":";;;AAEA,gFAA0E;AAC1E,gFAA0E;AAC1E,0EAAoE;AACpE,4EAAsE;AACtE,gFAA0E;AAC1E,4FAAsF;AACtF,4FAAsF;AACtF,sFAAgF;AAChF,wFAAkF;AAClF,4FAAsF;AACtF,sFAAgF;AAChF,sFAAgF;AAChF,gFAA0E;AAC1E,kFAA4E;AAC5E,sFAAgF;AAChF,wGAAkG;AAClG,wGAAkG;AAClG,kGAA4F;AAC5F,oGAA8F;AAC9F,wGAAkG;AAClG,8DAAyD;AACzD,8DAAyD;AACzD,wDAAmD;AACnD,0DAAqD;AACrD,8DAAyD;AACzD,6EAAuE;AACvE,6EAAuE;AACvE,uEAAiE;AACjE,yEAAmE;AACnE,6EAAuE;AACvE,4FAAqF;AACrF,4FAAqF;AACrF,sFAA+E;AAC/E,wFAAiF;AACjF,4FAAqF;AACrF,oEAA+D;AAC/D,oEAA+D;AAC/D,8DAAyD;AACzD,gEAA2D;AAC3D,oEAA+D;AAC/D,mFAA6E;AAC7E,mFAA6E;AAC7E,6EAAuE;AACvE,+EAAyE;AACzE,mFAA6E;AAC7E,oEAA+D;AAC/D,oEAA+D;AAC/D,8DAAyD;AACzD,gEAA2D;AAC3D,oEAA+D;AAC/D,6EAAuE;AACvE,6EAAuE;AACvE,uEAAiE;AACjE,yEAAmE;AACnE,6EAAuE;AACvE,4FAAqF;AACrF,4FAAqF;AACrF,sFAA+E;AAC/E,wFAAiF;AACjF,4FAAqF;AAMrF,MAAa,iBAAiB;IAC1B,YAA6B,MAAsB;QAAtB,WAAM,GAAN,MAAM,CAAgB;IAAG,CAAC;IAEvD,KAAK;QACD,OAAO;YACH,IAAI,6BAAY,CAAC,IAAI,CAAC,MAAM,CAAC;YAC7B,IAAI,2BAAW,CAAC,IAAI,CAAC,MAAM,CAAC;YAC5B,IAAI,iCAAc,CAAC,IAAI,CAAC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AAC,IAAI,CAAC,MAAM,CAAC;YACpC,IAAI,mDAAsB,CAAC,IAAI,CAAC,MAAM,CAAC;YACvC,IAAI,mDAAsB,CAAC,IAAI,CAAC,MAAM,CAAC;YACvC,IAAI,mDAAsB,CAAC,IAAI,CAAC,MAAM,CAAC;YACvC,IAAI,iCAAc,CAAC,IAAI,CAAC,MAAM,CAAC;YAC/B,IAAI,+BAAa,CAAC,IAAI,CAAC,MAAM,CAAC;YAC9B,IAAI,qCAAgB,CAAC,IAAI,CAAC,MAAM,CAAC;YACjC,IAAI,qCAAgB,CAAC,IAAI,CAAC,MAAM,CAAC;YACjC,IAAI,qCAAgB,CAAC,IAAI,CAAC,MAAM,CAAC;SACpC,CAAC;IACN,CAAC;CACJ;AAnED,8CAmEC"}
@@ -7,6 +7,7 @@ export * from './menu_role';
7
7
  export * from './menu_ui_action';
8
8
  export * from './module';
9
9
  export * from './module_menu';
10
+ export * from './report';
10
11
  export * from './ui_action';
11
12
  export * from './ui_action_role';
12
13
  export * from './admin.tool.registry';
@@ -23,6 +23,7 @@ __exportStar(require("./menu_role"), exports);
23
23
  __exportStar(require("./menu_ui_action"), exports);
24
24
  __exportStar(require("./module"), exports);
25
25
  __exportStar(require("./module_menu"), exports);
26
+ __exportStar(require("./report"), exports);
26
27
  __exportStar(require("./ui_action"), exports);
27
28
  __exportStar(require("./ui_action_role"), exports);
28
29
  __exportStar(require("./admin.tool.registry"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mcp/admin/tools/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAAA,mDAAiC;AAAA,iDAA+B;AAAA,uDAAqC;AAAA,yCAAuB;AAAA,8CAA4B;AAAA,mDAAiC;AAAA,2CAAyB;AAAA,gDAA8B;AAAA,8CAA4B;AAAA,mDAAiC;AAAA,wDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mcp/admin/tools/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAAA,mDAAiC;AAAA,iDAA+B;AAAA,uDAAqC;AAAA,yCAAuB;AAAA,8CAA4B;AAAA,mDAAiC;AAAA,2CAAyB;AAAA,gDAA8B;AAAA,2CAAyB;AAAA,8CAA4B;AAAA,mDAAiC;AAAA,wDAAqC"}
@@ -0,0 +1,5 @@
1
+ export * from './report.create.tool';
2
+ export * from './report.delete.tool';
3
+ export * from './report.get.tool';
4
+ export * from './report.list.tool';
5
+ export * from './report.update.tool';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./report.create.tool"), exports);
18
+ __exportStar(require("./report.delete.tool"), exports);
19
+ __exportStar(require("./report.get.tool"), exports);
20
+ __exportStar(require("./report.list.tool"), exports);
21
+ __exportStar(require("./report.update.tool"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/report/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AAAA,uDAAqC;AAAA,oDAAkC;AAAA,qDAAmC;AAAA,uDAAoC"}
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import { McpToolResultInterface } from '../../../interfaces/mcp.tool.result.interface';
3
+ import { McpTool } from '../../../tools/mcp.tool';
4
+ type ReportCreateInput = {
5
+ name: string;
6
+ query: string;
7
+ description?: string;
8
+ };
9
+ export declare class ReportCreateTool extends McpTool<ReportCreateInput> {
10
+ readonly name = "report_create";
11
+ readonly title = "Create or update report by name (admin)";
12
+ readonly description = "Create a sys report and its query script, or update an existing one when name matches (upsert by name; same semantics as DashboardReportController.createReport). Admin/development only.";
13
+ readonly inputSchema: {
14
+ name: z.ZodString;
15
+ query: z.ZodString;
16
+ description: z.ZodOptional<z.ZodString>;
17
+ };
18
+ execute(args: ReportCreateInput): Promise<McpToolResultInterface>;
19
+ }
20
+ export {};
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReportCreateTool = void 0;
4
+ const zod_1 = require("zod");
5
+ const mcp_tool_1 = require("../../../tools/mcp.tool");
6
+ const inputSchema = {
7
+ name: zod_1.z.string().describe('Report name/slug — existing name updates in place; new name creates a row.'),
8
+ query: zod_1.z.string().describe('SQL query body stored on the linked system_script row.'),
9
+ description: zod_1.z.string().optional().describe('Human-readable report description.'),
10
+ };
11
+ class ReportCreateTool extends mcp_tool_1.McpTool {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.name = 'report_create';
15
+ this.title = 'Create or update report by name (admin)';
16
+ this.description = 'Create a sys report and its query script, or update an existing one when name matches (upsert by name; same semantics as DashboardReportController.createReport). Admin/development only.';
17
+ this.inputSchema = inputSchema;
18
+ }
19
+ execute(args) {
20
+ return this.run(() => this.client.request({ method: 'POST', path: 'development/report/upsert', body: args }));
21
+ }
22
+ }
23
+ exports.ReportCreateTool = ReportCreateTool;
24
+ //# sourceMappingURL=report.create.tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report.create.tool.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/report/report.create.tool.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,sDAAkD;AAElD,MAAM,WAAW,GAAG;IAChB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4EAA4E,CAAC;IACvG,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wDAAwD,CAAC;IACpF,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;CACpF,CAAC;AAYF,MAAa,gBAAiB,SAAQ,kBAA0B;IAAhE;;QACa,SAAI,GAAG,eAAe,CAAC;QACvB,UAAK,GAAG,yCAAyC,CAAC;QAClD,gBAAW,GAChB,2LAA2L,CAAC;QACvL,gBAAW,GAAG,WAAW,CAAC;IAOvC,CAAC;IALG,OAAO,CAAC,IAAuB;QAC3B,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CACjB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,2BAA2B,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CACzF,CAAC;IACN,CAAC;CACJ;AAZD,4CAYC"}
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ import { McpToolResultInterface } from '../../../interfaces/mcp.tool.result.interface';
3
+ import { McpTool } from '../../../tools/mcp.tool';
4
+ type ReportDeleteInput = {
5
+ id: number;
6
+ };
7
+ export declare class ReportDeleteTool extends McpTool<ReportDeleteInput> {
8
+ readonly name = "report_delete";
9
+ readonly title = "Delete report (admin)";
10
+ readonly description = "Soft-delete a sys report record by id (sets deleted_at). Admin/development only.";
11
+ readonly inputSchema: {
12
+ id: z.ZodNumber;
13
+ };
14
+ protected readonly destructive = true;
15
+ execute(args: ReportDeleteInput): Promise<McpToolResultInterface>;
16
+ }
17
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReportDeleteTool = void 0;
4
+ const zod_1 = require("zod");
5
+ const mcp_tool_1 = require("../../../tools/mcp.tool");
6
+ const inputSchema = {
7
+ id: zod_1.z.number().int().positive().describe('Id of the report row to soft-delete.'),
8
+ };
9
+ class ReportDeleteTool extends mcp_tool_1.McpTool {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.name = 'report_delete';
13
+ this.title = 'Delete report (admin)';
14
+ this.description = 'Soft-delete a sys report record by id (sets deleted_at). Admin/development only.';
15
+ this.inputSchema = inputSchema;
16
+ this.destructive = true;
17
+ }
18
+ execute(args) {
19
+ return this.run(() => this.client.request({ method: 'DELETE', path: `development/report/${args.id}` }));
20
+ }
21
+ }
22
+ exports.ReportDeleteTool = ReportDeleteTool;
23
+ //# sourceMappingURL=report.delete.tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report.delete.tool.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/report/report.delete.tool.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,sDAAkD;AAElD,MAAM,WAAW,GAAG;IAChB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;CACnF,CAAC;AAOF,MAAa,gBAAiB,SAAQ,kBAA0B;IAAhE;;QACa,SAAI,GAAG,eAAe,CAAC;QACvB,UAAK,GAAG,uBAAuB,CAAC;QAChC,gBAAW,GAAG,kFAAkF,CAAC;QACjG,gBAAW,GAAG,WAAW,CAAC;QAChB,gBAAW,GAAG,IAAI,CAAC;IAK1C,CAAC;IAHG,OAAO,CAAC,IAAuB;QAC3B,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,sBAAsB,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IAC5G,CAAC;CACJ;AAVD,4CAUC"}
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ import { McpToolResultInterface } from '../../../interfaces/mcp.tool.result.interface';
3
+ import { McpTool } from '../../../tools/mcp.tool';
4
+ type ReportGetInput = {
5
+ id: number;
6
+ };
7
+ export declare class ReportGetTool extends McpTool<ReportGetInput> {
8
+ readonly name = "report_get";
9
+ readonly title = "Get report (admin)";
10
+ readonly description = "Fetch a single sys report record by id (admin/development only).";
11
+ readonly inputSchema: {
12
+ id: z.ZodNumber;
13
+ };
14
+ protected readonly readOnly = true;
15
+ execute(args: ReportGetInput): Promise<McpToolResultInterface>;
16
+ }
17
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReportGetTool = void 0;
4
+ const zod_1 = require("zod");
5
+ const mcp_tool_1 = require("../../../tools/mcp.tool");
6
+ const inputSchema = {
7
+ id: zod_1.z.number().int().positive().describe('Id of the report row to fetch.'),
8
+ };
9
+ class ReportGetTool extends mcp_tool_1.McpTool {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.name = 'report_get';
13
+ this.title = 'Get report (admin)';
14
+ this.description = 'Fetch a single sys report record by id (admin/development only).';
15
+ this.inputSchema = inputSchema;
16
+ this.readOnly = true;
17
+ }
18
+ execute(args) {
19
+ return this.run(() => this.client.request({ method: 'GET', path: `development/report/${args.id}` }));
20
+ }
21
+ }
22
+ exports.ReportGetTool = ReportGetTool;
23
+ //# sourceMappingURL=report.get.tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report.get.tool.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/report/report.get.tool.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,sDAAkD;AAElD,MAAM,WAAW,GAAG;IAChB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;CAC7E,CAAC;AAOF,MAAa,aAAc,SAAQ,kBAAuB;IAA1D;;QACa,SAAI,GAAG,YAAY,CAAC;QACpB,UAAK,GAAG,oBAAoB,CAAC;QAC7B,gBAAW,GAAG,kEAAkE,CAAC;QACjF,gBAAW,GAAG,WAAW,CAAC;QAChB,aAAQ,GAAG,IAAI,CAAC;IAKvC,CAAC;IAHG,OAAO,CAAC,IAAoB;QACxB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,sBAAsB,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IACzG,CAAC;CACJ;AAVD,sCAUC"}
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ import { McpToolResultInterface } from '../../../interfaces/mcp.tool.result.interface';
3
+ import { McpTool } from '../../../tools/mcp.tool';
4
+ type ReportListInput = {
5
+ limit?: number;
6
+ offset?: number;
7
+ order?: string;
8
+ filter?: Record<string, unknown>;
9
+ };
10
+ export declare class ReportListTool extends McpTool<ReportListInput> {
11
+ readonly name = "report_list";
12
+ readonly title = "List reports (admin)";
13
+ readonly description = "List sys report records with paging, ordering, and column-equality filters (admin/development only).";
14
+ readonly inputSchema: {
15
+ limit: z.ZodOptional<z.ZodNumber>;
16
+ offset: z.ZodOptional<z.ZodNumber>;
17
+ order: z.ZodOptional<z.ZodString>;
18
+ filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
19
+ };
20
+ protected readonly readOnly = true;
21
+ execute(args: ReportListInput): Promise<McpToolResultInterface>;
22
+ }
23
+ export {};
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReportListTool = void 0;
4
+ const zod_1 = require("zod");
5
+ const mcp_tool_1 = require("../../../tools/mcp.tool");
6
+ const inputSchema = {
7
+ limit: zod_1.z.number().int().min(0).optional().describe('Max rows to return (default 50).'),
8
+ offset: zod_1.z.number().int().min(0).optional().describe('Rows to skip (default 0).'),
9
+ order: zod_1.z.string().optional().describe('Order as "column" or "column:asc|desc", e.g. "id:desc".'),
10
+ filter: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe('Column equality filters, e.g. { "name": "expense.summary" }.'),
11
+ };
12
+ class ReportListTool extends mcp_tool_1.McpTool {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.name = 'report_list';
16
+ this.title = 'List reports (admin)';
17
+ this.description = 'List sys report records with paging, ordering, and column-equality filters (admin/development only).';
18
+ this.inputSchema = inputSchema;
19
+ this.readOnly = true;
20
+ }
21
+ execute(args) {
22
+ const params = new URLSearchParams();
23
+ if (args.limit !== undefined)
24
+ params.set('limit', String(args.limit));
25
+ if (args.offset !== undefined)
26
+ params.set('offset', String(args.offset));
27
+ if (args.order)
28
+ params.set('order', args.order);
29
+ if (args.filter)
30
+ params.set('filter', JSON.stringify(args.filter));
31
+ const query = params.toString();
32
+ const path = `development/report${query ? `?${query}` : ''}`;
33
+ return this.run(() => this.client.request({ method: 'GET', path }));
34
+ }
35
+ }
36
+ exports.ReportListTool = ReportListTool;
37
+ //# sourceMappingURL=report.list.tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report.list.tool.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/report/report.list.tool.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,sDAAkD;AAElD,MAAM,WAAW,GAAG;IAChB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kCAAkC,CAAC;IACtF,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAChF,KAAK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,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACxE,CAAC;CACJ;AAnBD,wCAmBC"}
@@ -0,0 +1,22 @@
1
+ import { z } from 'zod';
2
+ import { McpToolResultInterface } from '../../../interfaces/mcp.tool.result.interface';
3
+ import { McpTool } from '../../../tools/mcp.tool';
4
+ type ReportUpdateInput = {
5
+ id?: number;
6
+ name?: string;
7
+ query: string;
8
+ description?: string;
9
+ };
10
+ export declare class ReportUpdateTool extends McpTool<ReportUpdateInput> {
11
+ readonly name = "report_update";
12
+ readonly title = "Update report (admin)";
13
+ readonly description = "Update a sys report description and SQL query (upsert by name; same semantics as DashboardReportController.createReport). Admin/development only.";
14
+ readonly inputSchema: {
15
+ id: z.ZodOptional<z.ZodNumber>;
16
+ name: z.ZodOptional<z.ZodString>;
17
+ query: z.ZodString;
18
+ description: z.ZodOptional<z.ZodString>;
19
+ };
20
+ execute(args: ReportUpdateInput): Promise<McpToolResultInterface>;
21
+ }
22
+ export {};
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ReportUpdateTool = void 0;
4
+ const zod_1 = require("zod");
5
+ const mcp_tool_1 = require("../../../tools/mcp.tool");
6
+ const inputSchema = {
7
+ id: zod_1.z.number().int().positive().optional().describe('Report id to update (resolves name from the row).'),
8
+ name: zod_1.z.string().optional().describe('Report name when updating by slug instead of id.'),
9
+ query: zod_1.z.string().describe('Replacement SQL query body.'),
10
+ description: zod_1.z.string().optional().describe('Updated description.'),
11
+ };
12
+ class ReportUpdateTool extends mcp_tool_1.McpTool {
13
+ constructor() {
14
+ super(...arguments);
15
+ this.name = 'report_update';
16
+ this.title = 'Update report (admin)';
17
+ this.description = 'Update a sys report description and SQL query (upsert by name; same semantics as DashboardReportController.createReport). Admin/development only.';
18
+ this.inputSchema = inputSchema;
19
+ }
20
+ execute(args) {
21
+ return this.run(() => this.client.request({ method: 'POST', path: 'development/report/upsert', body: args }));
22
+ }
23
+ }
24
+ exports.ReportUpdateTool = ReportUpdateTool;
25
+ //# sourceMappingURL=report.update.tool.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report.update.tool.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/report/report.update.tool.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,sDAAkD;AAElD,MAAM,WAAW,GAAG;IAChB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mDAAmD,CAAC;IACxG,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kDAAkD,CAAC;IACxF,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IACzD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;CACtE,CAAC;AAaF,MAAa,gBAAiB,SAAQ,kBAA0B;IAAhE;;QACa,SAAI,GAAG,eAAe,CAAC;QACvB,UAAK,GAAG,uBAAuB,CAAC;QAChC,gBAAW,GAChB,mJAAmJ,CAAC;QAC/I,gBAAW,GAAG,WAAW,CAAC;IAOvC,CAAC;IALG,OAAO,CAAC,IAAuB;QAC3B,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CACjB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,2BAA2B,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CACzF,CAAC;IACN,CAAC;CACJ;AAZD,4CAYC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@servicelabsco/slabs-access-manager",
3
- "version": "1.0.55",
3
+ "version": "1.0.57",
4
4
  "description": "Support for application level menus and dashboards",
5
5
  "author": "Hemant Kumar Sah <hemantanshu@gmail.com>",
6
6
  "license": "MIT",