@servicelabsco/slabs-access-manager 2.0.12 → 2.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +2 -0
- package/CLAUDE.md +2 -0
- package/dist/access/controllers/bulk.upload.controller.d.ts +10 -1
- package/dist/access/controllers/bulk.upload.controller.js +50 -2
- package/dist/access/controllers/bulk.upload.controller.js.map +1 -1
- package/dist/access/controllers/developer.menu.controller.d.ts +5 -3
- package/dist/access/controllers/developer.menu.controller.js +7 -6
- package/dist/access/controllers/developer.menu.controller.js.map +1 -1
- package/dist/access/controllers/developer.report.controller.d.ts +88 -0
- package/dist/access/controllers/developer.report.controller.js +128 -0
- package/dist/access/controllers/developer.report.controller.js.map +1 -0
- package/dist/access/controllers/index.d.ts +1 -0
- package/dist/access/controllers/index.js +1 -0
- package/dist/access/controllers/index.js.map +1 -1
- package/dist/access/dtos/business.downloadable.report.dto.d.ts +4 -0
- package/dist/access/dtos/business.downloadable.report.dto.js +28 -0
- package/dist/access/dtos/business.downloadable.report.dto.js.map +1 -0
- package/dist/access/dtos/business.menu.layout.attributes.dto.d.ts +1 -0
- package/dist/access/dtos/business.menu.layout.attributes.dto.js.map +1 -1
- package/dist/access/dtos/developer.search.query.dto.d.ts +4 -0
- package/dist/access/dtos/developer.search.query.dto.js +24 -0
- package/dist/access/dtos/developer.search.query.dto.js.map +1 -0
- package/dist/access/dtos/downloadable.report.dto.d.ts +8 -0
- package/dist/access/dtos/downloadable.report.dto.js +54 -0
- package/dist/access/dtos/downloadable.report.dto.js.map +1 -0
- package/dist/access/dtos/index.d.ts +4 -0
- package/dist/access/dtos/index.js +4 -0
- package/dist/access/dtos/index.js.map +1 -1
- package/dist/access/dtos/report.sheet.dto.d.ts +9 -0
- package/dist/access/dtos/report.sheet.dto.js +59 -0
- package/dist/access/dtos/report.sheet.dto.js.map +1 -0
- package/dist/access/entities/access.country.entity.js.map +1 -1
- package/dist/access/entities/business.menu.layout.entity.js.map +1 -1
- package/dist/access/entities/business.ui.action.entity.js.map +1 -1
- package/dist/access/es6.classes.d.ts +23 -21
- package/dist/access/es6.classes.js +46 -36
- package/dist/access/es6.classes.js.map +1 -1
- package/dist/access/libraries/index.d.ts +1 -0
- package/dist/access/libraries/index.js +1 -0
- package/dist/access/libraries/index.js.map +1 -1
- package/dist/access/libraries/process.application.menu.js +6 -1
- package/dist/access/libraries/process.application.menu.js.map +1 -1
- package/dist/access/libraries/process.developer.menu.d.ts +8 -3
- package/dist/access/libraries/process.developer.menu.js +74 -17
- package/dist/access/libraries/process.developer.menu.js.map +1 -1
- package/dist/access/libraries/process.downloadable.report.d.ts +91 -0
- package/dist/access/libraries/process.downloadable.report.js +221 -0
- package/dist/access/libraries/process.downloadable.report.js.map +1 -0
- package/dist/access/services/developer.mode.access.service.d.ts +2 -0
- package/dist/access/services/developer.mode.access.service.js +25 -1
- package/dist/access/services/developer.mode.access.service.js.map +1 -1
- package/dist/accessUtility/controllers/bulk.definition.controller.d.ts +18 -1
- package/dist/accessUtility/controllers/bulk.definition.controller.js +107 -2
- package/dist/accessUtility/controllers/bulk.definition.controller.js.map +1 -1
- package/dist/accessUtility/dtos/add.bulk.upload.column.dto.d.ts +10 -0
- package/dist/accessUtility/dtos/add.bulk.upload.column.dto.js +66 -0
- package/dist/accessUtility/dtos/add.bulk.upload.column.dto.js.map +1 -0
- package/dist/accessUtility/dtos/add.bulk.upload.type.dto.d.ts +11 -0
- package/dist/accessUtility/dtos/add.bulk.upload.type.dto.js +68 -0
- package/dist/accessUtility/dtos/add.bulk.upload.type.dto.js.map +1 -0
- package/dist/accessUtility/dtos/bulk.upload.column.match.score.dto.d.ts +10 -0
- package/dist/accessUtility/dtos/bulk.upload.column.match.score.dto.js +4 -1
- package/dist/accessUtility/dtos/bulk.upload.column.match.score.dto.js.map +1 -1
- package/dist/accessUtility/dtos/index.d.ts +3 -0
- package/dist/accessUtility/dtos/index.js +3 -0
- package/dist/accessUtility/dtos/index.js.map +1 -1
- package/dist/accessUtility/dtos/match.bulk.upload.file.dto.d.ts +3 -0
- package/dist/accessUtility/dtos/match.bulk.upload.file.dto.js +24 -0
- package/dist/accessUtility/dtos/match.bulk.upload.file.dto.js.map +1 -0
- package/dist/accessUtility/es6.classes.d.ts +10 -4
- package/dist/accessUtility/es6.classes.js +16 -0
- package/dist/accessUtility/es6.classes.js.map +1 -1
- package/dist/accessUtility/jobs/analyse.bulk.upload.job.d.ts +3 -1
- package/dist/accessUtility/jobs/analyse.bulk.upload.job.js +6 -3
- package/dist/accessUtility/jobs/analyse.bulk.upload.job.js.map +1 -1
- package/dist/accessUtility/jobs/bulk.upload.column.match.job.d.ts +0 -1
- package/dist/accessUtility/jobs/bulk.upload.column.match.job.js +3 -14
- package/dist/accessUtility/jobs/bulk.upload.column.match.job.js.map +1 -1
- package/dist/accessUtility/libraries/analyse.bulk.upload.d.ts +3 -1
- package/dist/accessUtility/libraries/analyse.bulk.upload.js +5 -1
- package/dist/accessUtility/libraries/analyse.bulk.upload.js.map +1 -1
- package/dist/accessUtility/libraries/extract.bulk.upload.headers.d.ts +16 -0
- package/dist/accessUtility/libraries/extract.bulk.upload.headers.js +78 -0
- package/dist/accessUtility/libraries/extract.bulk.upload.headers.js.map +1 -0
- package/dist/accessUtility/libraries/flatten.excel.rich.text.d.ts +5 -0
- package/dist/accessUtility/libraries/flatten.excel.rich.text.js +33 -0
- package/dist/accessUtility/libraries/flatten.excel.rich.text.js.map +1 -0
- package/dist/accessUtility/libraries/index.d.ts +5 -0
- package/dist/accessUtility/libraries/index.js +5 -0
- package/dist/accessUtility/libraries/index.js.map +1 -1
- package/dist/accessUtility/libraries/load.xls.file.js +2 -0
- package/dist/accessUtility/libraries/load.xls.file.js.map +1 -1
- package/dist/accessUtility/libraries/match.bulk.upload.columns.d.ts +16 -0
- package/dist/accessUtility/libraries/match.bulk.upload.columns.js +82 -0
- package/dist/accessUtility/libraries/match.bulk.upload.columns.js.map +1 -0
- package/dist/accessUtility/libraries/process.bulk.upload.format.d.ts +24 -0
- package/dist/accessUtility/libraries/process.bulk.upload.format.js +167 -0
- package/dist/accessUtility/libraries/process.bulk.upload.format.js.map +1 -0
- package/dist/accessUtility/libraries/read.xls.file.d.ts +1 -0
- package/dist/accessUtility/libraries/read.xls.file.js +16 -7
- package/dist/accessUtility/libraries/read.xls.file.js.map +1 -1
- package/dist/accessUtility/libraries/score.bulk.upload.columns.d.ts +16 -0
- package/dist/accessUtility/libraries/score.bulk.upload.columns.js +57 -0
- package/dist/accessUtility/libraries/score.bulk.upload.columns.js.map +1 -0
- package/dist/auth.controller.d.ts +6 -1
- package/dist/auth.controller.js +22 -3
- package/dist/auth.controller.js.map +1 -1
- package/dist/development/controllers/development.report.controller.d.ts +82 -0
- package/dist/development/controllers/development.report.controller.js +89 -0
- package/dist/development/controllers/development.report.controller.js.map +1 -1
- package/dist/mcp/admin/tools/admin.tool.registry.js +16 -0
- package/dist/mcp/admin/tools/admin.tool.registry.js.map +1 -1
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.business.get.tool.d.ts +19 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.business.get.tool.js +24 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.business.get.tool.js.map +1 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.business.set.tool.d.ts +22 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.business.set.tool.js +26 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.business.set.tool.js.map +1 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.businesses.list.tool.d.ts +19 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.businesses.list.tool.js +25 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.businesses.list.tool.js.map +1 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.get.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.get.tool.js +23 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.get.tool.js.map +1 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.list.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.list.tool.js +24 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.list.tool.js.map +1 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.upsert.tool.d.ts +26 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.upsert.tool.js +50 -0
- package/dist/mcp/admin/tools/downloadable_report/downloadable.report.upsert.tool.js.map +1 -0
- package/dist/mcp/admin/tools/downloadable_report/index.d.ts +8 -0
- package/dist/mcp/admin/tools/downloadable_report/index.js +25 -0
- package/dist/mcp/admin/tools/downloadable_report/index.js.map +1 -0
- package/dist/mcp/admin/tools/downloadable_report/report.sheet.delete.tool.d.ts +19 -0
- package/dist/mcp/admin/tools/downloadable_report/report.sheet.delete.tool.js +24 -0
- package/dist/mcp/admin/tools/downloadable_report/report.sheet.delete.tool.js.map +1 -0
- package/dist/mcp/admin/tools/downloadable_report/report.sheet.upsert.tool.d.ts +30 -0
- package/dist/mcp/admin/tools/downloadable_report/report.sheet.upsert.tool.js +48 -0
- package/dist/mcp/admin/tools/downloadable_report/report.sheet.upsert.tool.js.map +1 -0
- package/dist/mcp/admin/tools/index.d.ts +1 -0
- package/dist/mcp/admin/tools/index.js +1 -0
- package/dist/mcp/admin/tools/index.js.map +1 -1
- package/dist/mcp/admin/tools/menu/menu.list.tool.js +4 -1
- package/dist/mcp/admin/tools/menu/menu.list.tool.js.map +1 -1
- package/dist/mcp/es6.classes.d.ts +9 -1
- package/dist/mcp/es6.classes.js +16 -0
- package/dist/mcp/es6.classes.js.map +1 -1
- package/package.json +2 -2
|
@@ -15,6 +15,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.DevelopmentReportController = void 0;
|
|
16
16
|
const common_1 = require("@nestjs/common");
|
|
17
17
|
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
18
|
+
const business_downloadable_report_dto_1 = require("../../access/dtos/business.downloadable.report.dto");
|
|
19
|
+
const business_param_dto_1 = require("../../access/dtos/business.param.dto");
|
|
20
|
+
const developer_search_query_dto_1 = require("../../access/dtos/developer.search.query.dto");
|
|
21
|
+
const downloadable_report_dto_1 = require("../../access/dtos/downloadable.report.dto");
|
|
22
|
+
const report_sheet_dto_1 = require("../../access/dtos/report.sheet.dto");
|
|
23
|
+
const process_downloadable_report_1 = require("../../access/libraries/process.downloadable.report");
|
|
18
24
|
const access_report_service_1 = require("../../access/services/access.report.service");
|
|
19
25
|
let DevelopmentReportController = class DevelopmentReportController {
|
|
20
26
|
constructor(accessReportService) {
|
|
@@ -30,6 +36,30 @@ let DevelopmentReportController = class DevelopmentReportController {
|
|
|
30
36
|
description: body.description ?? '',
|
|
31
37
|
});
|
|
32
38
|
}
|
|
39
|
+
async listDownloadable(query) {
|
|
40
|
+
return new process_downloadable_report_1.ProcessDownloadableReport().list(query.q);
|
|
41
|
+
}
|
|
42
|
+
async upsertDownloadable(body) {
|
|
43
|
+
return new process_downloadable_report_1.ProcessDownloadableReport().upsert(body);
|
|
44
|
+
}
|
|
45
|
+
async getDownloadable(params) {
|
|
46
|
+
return new process_downloadable_report_1.ProcessDownloadableReport().get(params.id);
|
|
47
|
+
}
|
|
48
|
+
async upsertSheet(params, body) {
|
|
49
|
+
return new process_downloadable_report_1.ProcessDownloadableReport().upsertSheet(params.id, body);
|
|
50
|
+
}
|
|
51
|
+
async removeSheet(params) {
|
|
52
|
+
return new process_downloadable_report_1.ProcessDownloadableReport().removeSheet(params.id, params.second_id);
|
|
53
|
+
}
|
|
54
|
+
async listBusinesses(params, query) {
|
|
55
|
+
return new process_downloadable_report_1.ProcessDownloadableReport().listBusinesses(params.id, query.q);
|
|
56
|
+
}
|
|
57
|
+
async getBusiness(params) {
|
|
58
|
+
return new process_downloadable_report_1.ProcessDownloadableReport().getBusiness(params.id, params.second_id);
|
|
59
|
+
}
|
|
60
|
+
async setBusiness(params, body) {
|
|
61
|
+
return new process_downloadable_report_1.ProcessDownloadableReport().setBusiness(params.id, params.second_id, body);
|
|
62
|
+
}
|
|
33
63
|
async resolveName(body) {
|
|
34
64
|
if (body?.name)
|
|
35
65
|
return body.name;
|
|
@@ -50,6 +80,65 @@ __decorate([
|
|
|
50
80
|
__metadata("design:paramtypes", [Object]),
|
|
51
81
|
__metadata("design:returntype", Promise)
|
|
52
82
|
], DevelopmentReportController.prototype, "upsert", null);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, common_1.Get)('downloadable/list'),
|
|
85
|
+
__param(0, (0, common_1.Query)()),
|
|
86
|
+
__metadata("design:type", Function),
|
|
87
|
+
__metadata("design:paramtypes", [developer_search_query_dto_1.DeveloperSearchQueryDto]),
|
|
88
|
+
__metadata("design:returntype", Promise)
|
|
89
|
+
], DevelopmentReportController.prototype, "listDownloadable", null);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, common_1.Post)('downloadable/upsert'),
|
|
92
|
+
__param(0, (0, common_1.Body)()),
|
|
93
|
+
__metadata("design:type", Function),
|
|
94
|
+
__metadata("design:paramtypes", [downloadable_report_dto_1.DownloadableReportDto]),
|
|
95
|
+
__metadata("design:returntype", Promise)
|
|
96
|
+
], DevelopmentReportController.prototype, "upsertDownloadable", null);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, common_1.Get)(':id/downloadable'),
|
|
99
|
+
__param(0, (0, common_1.Param)()),
|
|
100
|
+
__metadata("design:type", Function),
|
|
101
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
102
|
+
__metadata("design:returntype", Promise)
|
|
103
|
+
], DevelopmentReportController.prototype, "getDownloadable", null);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, common_1.Post)(':id/sheet/upsert'),
|
|
106
|
+
__param(0, (0, common_1.Param)()),
|
|
107
|
+
__param(1, (0, common_1.Body)()),
|
|
108
|
+
__metadata("design:type", Function),
|
|
109
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto, report_sheet_dto_1.ReportSheetDto]),
|
|
110
|
+
__metadata("design:returntype", Promise)
|
|
111
|
+
], DevelopmentReportController.prototype, "upsertSheet", null);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, common_1.Delete)(':id/sheet/:second_id'),
|
|
114
|
+
__param(0, (0, common_1.Param)()),
|
|
115
|
+
__metadata("design:type", Function),
|
|
116
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
117
|
+
__metadata("design:returntype", Promise)
|
|
118
|
+
], DevelopmentReportController.prototype, "removeSheet", null);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, common_1.Get)(':id/businesses'),
|
|
121
|
+
__param(0, (0, common_1.Param)()),
|
|
122
|
+
__param(1, (0, common_1.Query)()),
|
|
123
|
+
__metadata("design:type", Function),
|
|
124
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto, developer_search_query_dto_1.DeveloperSearchQueryDto]),
|
|
125
|
+
__metadata("design:returntype", Promise)
|
|
126
|
+
], DevelopmentReportController.prototype, "listBusinesses", null);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, common_1.Get)(':id/business/:second_id'),
|
|
129
|
+
__param(0, (0, common_1.Param)()),
|
|
130
|
+
__metadata("design:type", Function),
|
|
131
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto]),
|
|
132
|
+
__metadata("design:returntype", Promise)
|
|
133
|
+
], DevelopmentReportController.prototype, "getBusiness", null);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, common_1.Post)(':id/business/:second_id'),
|
|
136
|
+
__param(0, (0, common_1.Param)()),
|
|
137
|
+
__param(1, (0, common_1.Body)()),
|
|
138
|
+
__metadata("design:type", Function),
|
|
139
|
+
__metadata("design:paramtypes", [business_param_dto_1.BusinessParamDto, business_downloadable_report_dto_1.BusinessDownloadableReportDto]),
|
|
140
|
+
__metadata("design:returntype", Promise)
|
|
141
|
+
], DevelopmentReportController.prototype, "setBusiness", null);
|
|
53
142
|
exports.DevelopmentReportController = DevelopmentReportController = __decorate([
|
|
54
143
|
(0, common_1.Controller)('development/report'),
|
|
55
144
|
__metadata("design:paramtypes", [access_report_service_1.AccessReportService])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"development.report.controller.js","sourceRoot":"","sources":["../../../src/development/controllers/development.report.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"development.report.controller.js","sourceRoot":"","sources":["../../../src/development/controllers/development.report.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAmF;AACnF,oFAA0F;AAC1F,yGAAmG;AACnG,6EAAwE;AACxE,6FAAuF;AACvF,uFAAkF;AAClF,yEAAoE;AACpE,oGAA+F;AAC/F,uFAAkF;AAkB3E,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;IAMK,AAAN,KAAK,CAAC,gBAAgB,CAAU,KAA8B;QAC1D,OAAO,IAAI,uDAAyB,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACzD,CAAC;IAMK,AAAN,KAAK,CAAC,kBAAkB,CAAS,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CAAgB;;8DAElD;AAMK;IADL,IAAA,aAAI,EAAC,yBAAyB,CAAC;IACb,WAAA,IAAA,cAAK,GAAE,CAAA;IAA4B,WAAA,IAAA,aAAI,GAAE,CAAA;;qCAAzB,qCAAgB,EAAgB,gEAA6B;;8DAE/F;sCAjFQ,2BAA2B;IADvC,IAAA,mBAAU,EAAC,oBAAoB,CAAC;qCAEqB,2CAAmB;GAD5D,2BAA2B,CA8FvC"}
|
|
@@ -6,6 +6,14 @@ const child_menu_delete_tool_1 = require("./child_menu/child.menu.delete.tool");
|
|
|
6
6
|
const child_menu_get_tool_1 = require("./child_menu/child.menu.get.tool");
|
|
7
7
|
const child_menu_list_tool_1 = require("./child_menu/child.menu.list.tool");
|
|
8
8
|
const child_menu_update_tool_1 = require("./child_menu/child.menu.update.tool");
|
|
9
|
+
const downloadable_report_business_get_tool_1 = require("./downloadable_report/downloadable.report.business.get.tool");
|
|
10
|
+
const downloadable_report_business_set_tool_1 = require("./downloadable_report/downloadable.report.business.set.tool");
|
|
11
|
+
const downloadable_report_businesses_list_tool_1 = require("./downloadable_report/downloadable.report.businesses.list.tool");
|
|
12
|
+
const downloadable_report_get_tool_1 = require("./downloadable_report/downloadable.report.get.tool");
|
|
13
|
+
const downloadable_report_list_tool_1 = require("./downloadable_report/downloadable.report.list.tool");
|
|
14
|
+
const downloadable_report_upsert_tool_1 = require("./downloadable_report/downloadable.report.upsert.tool");
|
|
15
|
+
const report_sheet_delete_tool_1 = require("./downloadable_report/report.sheet.delete.tool");
|
|
16
|
+
const report_sheet_upsert_tool_1 = require("./downloadable_report/report.sheet.upsert.tool");
|
|
9
17
|
const listing_column_create_tool_1 = require("./listing_column/listing.column.create.tool");
|
|
10
18
|
const listing_column_delete_tool_1 = require("./listing_column/listing.column.delete.tool");
|
|
11
19
|
const listing_column_get_tool_1 = require("./listing_column/listing.column.get.tool");
|
|
@@ -172,6 +180,14 @@ class AdminToolRegistry {
|
|
|
172
180
|
new report_create_tool_1.ReportCreateTool(this.client),
|
|
173
181
|
new report_update_tool_1.ReportUpdateTool(this.client),
|
|
174
182
|
new report_delete_tool_1.ReportDeleteTool(this.client),
|
|
183
|
+
new downloadable_report_list_tool_1.DownloadableReportListTool(this.client),
|
|
184
|
+
new downloadable_report_get_tool_1.DownloadableReportGetTool(this.client),
|
|
185
|
+
new downloadable_report_upsert_tool_1.DownloadableReportUpsertTool(this.client),
|
|
186
|
+
new report_sheet_upsert_tool_1.ReportSheetUpsertTool(this.client),
|
|
187
|
+
new report_sheet_delete_tool_1.ReportSheetDeleteTool(this.client),
|
|
188
|
+
new downloadable_report_businesses_list_tool_1.DownloadableReportBusinessesListTool(this.client),
|
|
189
|
+
new downloadable_report_business_get_tool_1.DownloadableReportBusinessGetTool(this.client),
|
|
190
|
+
new downloadable_report_business_set_tool_1.DownloadableReportBusinessSetTool(this.client),
|
|
175
191
|
new form_script_list_tool_1.FormScriptListTool(this.client),
|
|
176
192
|
new form_script_get_tool_1.FormScriptGetTool(this.client),
|
|
177
193
|
new form_script_create_tool_1.FormScriptCreateTool(this.client),
|
|
@@ -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;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,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AAI,CAAC,MAAM,CAAC;YACpC,IAAI,uDAAwB,CAAC,IAAI,CAAC,MAAM,CAAC;YACzC,IAAI,4CAAmB,CAAC,IAAI,CAAC,MAAM,CAAC;YACpC,IAAI,oDAAuB,CAAC,IAAI,CAAC,MAAM,CAAC;YACxC,IAAI,sDAAwB,CAAC,IAAI,CAAC,MAAM,CAAC;YACzC,IAAI,oDAAuB,CAAC,IAAI,CAAC,MAAM,CAAC;YACxC,IAAI,uDAAwB,CAAC,IAAI,CAAC,MAAM,CAAC;YACzC,IAAI,2DAA0B,CAAC,IAAI,CAAC,MAAM,CAAC;SAC9C,CAAC;IACN,CAAC;CACJ;
|
|
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;AACtE,gFAA0E;AAC1E,uHAAgH;AAChH,uHAAgH;AAChH,6HAAsH;AACtH,qGAA+F;AAC/F,uGAAiG;AACjG,2GAAqG;AACrG,6FAAuF;AACvF,6FAAuF;AACvF,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,mFAA6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AI,CAAC,MAAM,CAAC;YACtC,IAAI,gDAAqB,CAAC,IAAI,CAAC,MAAM,CAAC;YACtC,IAAI,gDAAqB,CAAC,IAAI,CAAC,MAAM,CAAC;YACtC,IAAI,0CAAkB,CAAC,IAAI,CAAC,MAAM,CAAC;YACnC,IAAI,gDAAqB,CAAC,IAAI,CAAC,MAAM,CAAC;YACtC,IAAI,4CAAmB,CAAC,IAAI,CAAC,MAAM,CAAC;YACpC,IAAI,uDAAwB,CAAC,IAAI,CAAC,MAAM,CAAC;YACzC,IAAI,4CAAmB,CAAC,IAAI,CAAC,MAAM,CAAC;YACpC,IAAI,oDAAuB,CAAC,IAAI,CAAC,MAAM,CAAC;YACxC,IAAI,sDAAwB,CAAC,IAAI,CAAC,MAAM,CAAC;YACzC,IAAI,oDAAuB,CAAC,IAAI,CAAC,MAAM,CAAC;YACxC,IAAI,uDAAwB,CAAC,IAAI,CAAC,MAAM,CAAC;YACzC,IAAI,2DAA0B,CAAC,IAAI,CAAC,MAAM,CAAC;SAC9C,CAAC;IACN,CAAC;CACJ;AAxHD,8CAwHC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { McpToolResultInterface } from '../../../interfaces/mcp.tool.result.interface';
|
|
3
|
+
import { McpTool } from '../../../tools/mcp.tool';
|
|
4
|
+
type DownloadableReportBusinessGetInput = {
|
|
5
|
+
report_id: number;
|
|
6
|
+
business_id: number;
|
|
7
|
+
};
|
|
8
|
+
export declare class DownloadableReportBusinessGetTool extends McpTool<DownloadableReportBusinessGetInput> {
|
|
9
|
+
readonly name = "report_business_get";
|
|
10
|
+
readonly title = "Get downloadable report business access (admin)";
|
|
11
|
+
readonly description = "Whether a business can download the report (active, default emails); null when it was never enabled. Admin/development only.";
|
|
12
|
+
readonly inputSchema: {
|
|
13
|
+
report_id: z.ZodNumber;
|
|
14
|
+
business_id: z.ZodNumber;
|
|
15
|
+
};
|
|
16
|
+
protected readonly readOnly = true;
|
|
17
|
+
execute(args: DownloadableReportBusinessGetInput): Promise<McpToolResultInterface>;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DownloadableReportBusinessGetTool = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const mcp_tool_1 = require("../../../tools/mcp.tool");
|
|
6
|
+
const inputSchema = {
|
|
7
|
+
report_id: zod_1.z.number().int().positive().describe('Id of the downloadable report.'),
|
|
8
|
+
business_id: zod_1.z.number().int().positive().describe('Local business id.'),
|
|
9
|
+
};
|
|
10
|
+
class DownloadableReportBusinessGetTool extends mcp_tool_1.McpTool {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.name = 'report_business_get';
|
|
14
|
+
this.title = 'Get downloadable report business access (admin)';
|
|
15
|
+
this.description = 'Whether a business can download the report (active, default emails); null when it was never enabled. Admin/development only.';
|
|
16
|
+
this.inputSchema = inputSchema;
|
|
17
|
+
this.readOnly = true;
|
|
18
|
+
}
|
|
19
|
+
execute(args) {
|
|
20
|
+
return this.run(() => this.client.request({ method: 'GET', path: `development/report/${args.report_id}/business/${args.business_id}` }));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.DownloadableReportBusinessGetTool = DownloadableReportBusinessGetTool;
|
|
24
|
+
//# sourceMappingURL=downloadable.report.business.get.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"downloadable.report.business.get.tool.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/downloadable_report/downloadable.report.business.get.tool.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,sDAAkD;AAElD,MAAM,WAAW,GAAG;IAChB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IACjF,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;CAC1E,CAAC;AAOF,MAAa,iCAAkC,SAAQ,kBAA2C;IAAlG;;QACa,SAAI,GAAG,qBAAqB,CAAC;QAC7B,UAAK,GAAG,iDAAiD,CAAC;QAC1D,gBAAW,GAChB,8HAA8H,CAAC;QAC1H,gBAAW,GAAG,WAAW,CAAC;QAChB,aAAQ,GAAG,IAAI,CAAC;IAKvC,CAAC;IAHG,OAAO,CAAC,IAAwC;QAC5C,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,sBAAsB,IAAI,CAAC,SAAS,aAAa,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,CAAC;IAC7I,CAAC;CACJ;AAXD,8EAWC"}
|
|
@@ -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 DownloadableReportBusinessSetInput = {
|
|
5
|
+
report_id: number;
|
|
6
|
+
business_id: number;
|
|
7
|
+
active: boolean;
|
|
8
|
+
emails?: string[];
|
|
9
|
+
};
|
|
10
|
+
export declare class DownloadableReportBusinessSetTool extends McpTool<DownloadableReportBusinessSetInput> {
|
|
11
|
+
readonly name = "report_business_set";
|
|
12
|
+
readonly title = "Enable downloadable report for business (admin)";
|
|
13
|
+
readonly description = "Switch a downloadable report on or off for a business (utl_business_downloadable_reports), so it appears in that business's report downloads. Admin/development only.";
|
|
14
|
+
readonly inputSchema: {
|
|
15
|
+
report_id: z.ZodNumber;
|
|
16
|
+
business_id: z.ZodNumber;
|
|
17
|
+
active: z.ZodBoolean;
|
|
18
|
+
emails: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
};
|
|
20
|
+
execute(args: DownloadableReportBusinessSetInput): Promise<McpToolResultInterface>;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DownloadableReportBusinessSetTool = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const mcp_tool_1 = require("../../../tools/mcp.tool");
|
|
6
|
+
const inputSchema = {
|
|
7
|
+
report_id: zod_1.z.number().int().positive().describe('Id of the downloadable report.'),
|
|
8
|
+
business_id: zod_1.z.number().int().positive().describe('Local business id.'),
|
|
9
|
+
active: zod_1.z.boolean().describe('true lets the business users download the report; false hides it.'),
|
|
10
|
+
emails: zod_1.z.array(zod_1.z.string().email()).max(50).optional().describe('Default recipients of the generated file; replaces the stored list.'),
|
|
11
|
+
};
|
|
12
|
+
class DownloadableReportBusinessSetTool extends mcp_tool_1.McpTool {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.name = 'report_business_set';
|
|
16
|
+
this.title = 'Enable downloadable report for business (admin)';
|
|
17
|
+
this.description = "Switch a downloadable report on or off for a business (utl_business_downloadable_reports), so it appears in that business's report downloads. Admin/development only.";
|
|
18
|
+
this.inputSchema = inputSchema;
|
|
19
|
+
}
|
|
20
|
+
execute(args) {
|
|
21
|
+
const { report_id, business_id, ...body } = args;
|
|
22
|
+
return this.run(() => this.client.request({ method: 'POST', path: `development/report/${report_id}/business/${business_id}`, body }));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.DownloadableReportBusinessSetTool = DownloadableReportBusinessSetTool;
|
|
26
|
+
//# sourceMappingURL=downloadable.report.business.set.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"downloadable.report.business.set.tool.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/downloadable_report/downloadable.report.business.set.tool.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,sDAAkD;AAElD,MAAM,WAAW,GAAG;IAChB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IACjF,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IACvE,MAAM,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,mEAAmE,CAAC;IACjG,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qEAAqE,CAAC;CACzI,CAAC;AAOF,MAAa,iCAAkC,SAAQ,kBAA2C;IAAlG;;QACa,SAAI,GAAG,qBAAqB,CAAC;QAC7B,UAAK,GAAG,iDAAiD,CAAC;QAC1D,gBAAW,GAChB,uKAAuK,CAAC;QACnK,gBAAW,GAAG,WAAW,CAAC;IAOvC,CAAC;IALG,OAAO,CAAC,IAAwC;QAC5C,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,IAAI,CAAC;QAEjD,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,SAAS,aAAa,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAC1I,CAAC;CACJ;AAZD,8EAYC"}
|
package/dist/mcp/admin/tools/downloadable_report/downloadable.report.businesses.list.tool.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { McpToolResultInterface } from '../../../interfaces/mcp.tool.result.interface';
|
|
3
|
+
import { McpTool } from '../../../tools/mcp.tool';
|
|
4
|
+
type DownloadableReportBusinessesListInput = {
|
|
5
|
+
report_id: number;
|
|
6
|
+
q?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare class DownloadableReportBusinessesListTool extends McpTool<DownloadableReportBusinessesListInput> {
|
|
9
|
+
readonly name = "report_business_list";
|
|
10
|
+
readonly title = "List downloadable report businesses (admin)";
|
|
11
|
+
readonly description = "List the businesses a downloadable report was enabled for (name, identifier, active, emails, created_at), newest first. Admin/development only.";
|
|
12
|
+
readonly inputSchema: {
|
|
13
|
+
report_id: z.ZodNumber;
|
|
14
|
+
q: z.ZodOptional<z.ZodString>;
|
|
15
|
+
};
|
|
16
|
+
protected readonly readOnly = true;
|
|
17
|
+
execute(args: DownloadableReportBusinessesListInput): Promise<McpToolResultInterface>;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DownloadableReportBusinessesListTool = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const mcp_tool_1 = require("../../../tools/mcp.tool");
|
|
6
|
+
const inputSchema = {
|
|
7
|
+
report_id: zod_1.z.number().int().positive().describe('Id of the downloadable report.'),
|
|
8
|
+
q: zod_1.z.string().max(100).optional().describe('Partial match on business name, or the exact business identifier when numeric.'),
|
|
9
|
+
};
|
|
10
|
+
class DownloadableReportBusinessesListTool extends mcp_tool_1.McpTool {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.name = 'report_business_list';
|
|
14
|
+
this.title = 'List downloadable report businesses (admin)';
|
|
15
|
+
this.description = 'List the businesses a downloadable report was enabled for (name, identifier, active, emails, created_at), newest first. Admin/development only.';
|
|
16
|
+
this.inputSchema = inputSchema;
|
|
17
|
+
this.readOnly = true;
|
|
18
|
+
}
|
|
19
|
+
execute(args) {
|
|
20
|
+
const query = args.q ? `?${new URLSearchParams({ q: args.q }).toString()}` : '';
|
|
21
|
+
return this.run(() => this.client.request({ method: 'GET', path: `development/report/${args.report_id}/businesses${query}` }));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.DownloadableReportBusinessesListTool = DownloadableReportBusinessesListTool;
|
|
25
|
+
//# sourceMappingURL=downloadable.report.businesses.list.tool.js.map
|
package/dist/mcp/admin/tools/downloadable_report/downloadable.report.businesses.list.tool.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"downloadable.report.businesses.list.tool.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/downloadable_report/downloadable.report.businesses.list.tool.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,sDAAkD;AAElD,MAAM,WAAW,GAAG;IAChB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IACjF,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gFAAgF,CAAC;CAC/H,CAAC;AAOF,MAAa,oCAAqC,SAAQ,kBAA8C;IAAxG;;QACa,SAAI,GAAG,sBAAsB,CAAC;QAC9B,UAAK,GAAG,6CAA6C,CAAC;QACtD,gBAAW,GAChB,iJAAiJ,CAAC;QAC7I,gBAAW,GAAG,WAAW,CAAC;QAChB,aAAQ,GAAG,IAAI,CAAC;IAOvC,CAAC;IALG,OAAO,CAAC,IAA2C;QAC/C,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,eAAe,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAEhF,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,sBAAsB,IAAI,CAAC,SAAS,cAAc,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;IACnI,CAAC;CACJ;AAbD,oFAaC"}
|
|
@@ -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 DownloadableReportGetInput = {
|
|
5
|
+
id: number;
|
|
6
|
+
};
|
|
7
|
+
export declare class DownloadableReportGetTool extends McpTool<DownloadableReportGetInput> {
|
|
8
|
+
readonly name = "downloadable_report_get";
|
|
9
|
+
readonly title = "Get downloadable report (admin)";
|
|
10
|
+
readonly description = "Fetch a downloadable report: name, description, configurations (download form fields), attributes, pre script and every sheet with its SQL query and pre / post scripts. Admin/development only.";
|
|
11
|
+
readonly inputSchema: {
|
|
12
|
+
id: z.ZodNumber;
|
|
13
|
+
};
|
|
14
|
+
protected readonly readOnly = true;
|
|
15
|
+
execute(args: DownloadableReportGetInput): Promise<McpToolResultInterface>;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DownloadableReportGetTool = 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 downloadable report.'),
|
|
8
|
+
};
|
|
9
|
+
class DownloadableReportGetTool extends mcp_tool_1.McpTool {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.name = 'downloadable_report_get';
|
|
13
|
+
this.title = 'Get downloadable report (admin)';
|
|
14
|
+
this.description = 'Fetch a downloadable report: name, description, configurations (download form fields), attributes, pre script and every sheet with its SQL query and pre / post scripts. 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}/downloadable` }));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.DownloadableReportGetTool = DownloadableReportGetTool;
|
|
23
|
+
//# sourceMappingURL=downloadable.report.get.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"downloadable.report.get.tool.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/downloadable_report/downloadable.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,yBAA0B,SAAQ,kBAAmC;IAAlF;;QACa,SAAI,GAAG,yBAAyB,CAAC;QACjC,UAAK,GAAG,iCAAiC,CAAC;QAC1C,gBAAW,GAChB,kMAAkM,CAAC;QAC9L,gBAAW,GAAG,WAAW,CAAC;QAChB,aAAQ,GAAG,IAAI,CAAC;IAKvC,CAAC;IAHG,OAAO,CAAC,IAAgC;QACpC,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;IACtH,CAAC;CACJ;AAXD,8DAWC"}
|
|
@@ -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 DownloadableReportListInput = {
|
|
5
|
+
q?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare class DownloadableReportListTool extends McpTool<DownloadableReportListInput> {
|
|
8
|
+
readonly name = "downloadable_report_list";
|
|
9
|
+
readonly title = "List downloadable reports (admin)";
|
|
10
|
+
readonly description = "List sys reports marked is_downloadable, each with its sheets (id, name, priority, active). Optional q searches name/description. Admin/development only.";
|
|
11
|
+
readonly inputSchema: {
|
|
12
|
+
q: z.ZodOptional<z.ZodString>;
|
|
13
|
+
};
|
|
14
|
+
protected readonly readOnly = true;
|
|
15
|
+
execute(args: DownloadableReportListInput): Promise<McpToolResultInterface>;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DownloadableReportListTool = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const mcp_tool_1 = require("../../../tools/mcp.tool");
|
|
6
|
+
const inputSchema = {
|
|
7
|
+
q: zod_1.z.string().max(100).optional().describe('Case-insensitive partial match on report name or description.'),
|
|
8
|
+
};
|
|
9
|
+
class DownloadableReportListTool extends mcp_tool_1.McpTool {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.name = 'downloadable_report_list';
|
|
13
|
+
this.title = 'List downloadable reports (admin)';
|
|
14
|
+
this.description = 'List sys reports marked is_downloadable, each with its sheets (id, name, priority, active). Optional q searches name/description. Admin/development only.';
|
|
15
|
+
this.inputSchema = inputSchema;
|
|
16
|
+
this.readOnly = true;
|
|
17
|
+
}
|
|
18
|
+
execute(args) {
|
|
19
|
+
const query = args.q ? `?${new URLSearchParams({ q: args.q }).toString()}` : '';
|
|
20
|
+
return this.run(() => this.client.request({ method: 'GET', path: `development/report/downloadable/list${query}` }));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.DownloadableReportListTool = DownloadableReportListTool;
|
|
24
|
+
//# sourceMappingURL=downloadable.report.list.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"downloadable.report.list.tool.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/downloadable_report/downloadable.report.list.tool.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,sDAAkD;AAElD,MAAM,WAAW,GAAG;IAChB,CAAC,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+DAA+D,CAAC;CAC9G,CAAC;AAOF,MAAa,0BAA2B,SAAQ,kBAAoC;IAApF;;QACa,SAAI,GAAG,0BAA0B,CAAC;QAClC,UAAK,GAAG,mCAAmC,CAAC;QAC5C,gBAAW,GAChB,2JAA2J,CAAC;QACvJ,gBAAW,GAAG,WAAW,CAAC;QAChB,aAAQ,GAAG,IAAI,CAAC;IAOvC,CAAC;IALG,OAAO,CAAC,IAAiC;QACrC,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,eAAe,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAEhF,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,uCAAuC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;IACxH,CAAC;CACJ;AAbD,gEAaC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { McpToolResultInterface } from '../../../interfaces/mcp.tool.result.interface';
|
|
3
|
+
import { McpTool } from '../../../tools/mcp.tool';
|
|
4
|
+
type DownloadableReportUpsertInput = {
|
|
5
|
+
id?: number;
|
|
6
|
+
name?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
configurations?: Record<string, unknown>;
|
|
9
|
+
attributes?: Record<string, unknown>;
|
|
10
|
+
pre_script?: string | null;
|
|
11
|
+
};
|
|
12
|
+
export declare class DownloadableReportUpsertTool extends McpTool<DownloadableReportUpsertInput> {
|
|
13
|
+
readonly name = "downloadable_report_upsert";
|
|
14
|
+
readonly title = "Create or update downloadable report (admin)";
|
|
15
|
+
readonly description: string;
|
|
16
|
+
readonly inputSchema: {
|
|
17
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
name: z.ZodOptional<z.ZodString>;
|
|
19
|
+
description: z.ZodOptional<z.ZodString>;
|
|
20
|
+
configurations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
21
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
22
|
+
pre_script: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
};
|
|
24
|
+
execute(args: DownloadableReportUpsertInput): Promise<McpToolResultInterface>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DownloadableReportUpsertTool = 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
|
|
8
|
+
.number()
|
|
9
|
+
.int()
|
|
10
|
+
.positive()
|
|
11
|
+
.optional()
|
|
12
|
+
.describe('Report id to update. Omit to create, or to update the downloadable report with the same name.'),
|
|
13
|
+
name: zod_1.z
|
|
14
|
+
.string()
|
|
15
|
+
.max(200)
|
|
16
|
+
.optional()
|
|
17
|
+
.describe('Report slug, lowercase letters/digits with ".", "_" or "-", e.g. "vendor.master.data". Required when creating; must not belong to a non-downloadable (listing) report.'),
|
|
18
|
+
description: zod_1.z.string().max(1000).optional().describe('Description shown to end users.'),
|
|
19
|
+
configurations: zod_1.z
|
|
20
|
+
.record(zod_1.z.string(), zod_1.z.unknown())
|
|
21
|
+
.optional()
|
|
22
|
+
.describe('Download form fields keyed by param name; replaces the stored value. Each field: { type, label, required, ... }. ' +
|
|
23
|
+
'Types in use: "date_range", "radio_group" (with options [{ label, value }]), "reference_select" (with apiEndpoint, apiMethod). ' +
|
|
24
|
+
'Example: { "date_filter": { "type": "date_range", "label": "Date", "required": true } }.'),
|
|
25
|
+
attributes: zod_1.z
|
|
26
|
+
.record(zod_1.z.string(), zod_1.z.unknown())
|
|
27
|
+
.optional()
|
|
28
|
+
.describe('Report attributes merged into the stored ones, e.g. { "template_url": "...", "pagination_tiebreaker": "a.id" }.'),
|
|
29
|
+
pre_script: zod_1.z
|
|
30
|
+
.string()
|
|
31
|
+
.nullable()
|
|
32
|
+
.optional()
|
|
33
|
+
.describe('JavaScript run on the download params before the sheets (params are in `data`, e.g. data.injected_query = ...). Empty string or null removes it.'),
|
|
34
|
+
};
|
|
35
|
+
class DownloadableReportUpsertTool extends mcp_tool_1.McpTool {
|
|
36
|
+
constructor() {
|
|
37
|
+
super(...arguments);
|
|
38
|
+
this.name = 'downloadable_report_upsert';
|
|
39
|
+
this.title = 'Create or update downloadable report (admin)';
|
|
40
|
+
this.description = 'Create or update a sys report with is_downloadable = true, its download form (configurations) and pre script. With id, only the given fields change. ' +
|
|
41
|
+
'Add its sheets with report_sheet_upsert, ' +
|
|
42
|
+
'then enable it for a business with report_business_set. Admin/development only.';
|
|
43
|
+
this.inputSchema = inputSchema;
|
|
44
|
+
}
|
|
45
|
+
execute(args) {
|
|
46
|
+
return this.run(() => this.client.request({ method: 'POST', path: 'development/report/downloadable/upsert', body: args }));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.DownloadableReportUpsertTool = DownloadableReportUpsertTool;
|
|
50
|
+
//# sourceMappingURL=downloadable.report.upsert.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"downloadable.report.upsert.tool.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/downloadable_report/downloadable.report.upsert.tool.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,sDAAkD;AAElD,MAAM,WAAW,GAAG;IAChB,EAAE,EAAE,OAAC;SACA,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CAAC,+FAA+F,CAAC;IAC9G,IAAI,EAAE,OAAC;SACF,MAAM,EAAE;SACR,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,EAAE;SACV,QAAQ,CACL,wKAAwK,CAC3K;IACL,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IACxF,cAAc,EAAE,OAAC;SACZ,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC;SAC/B,QAAQ,EAAE;SACV,QAAQ,CACL,mHAAmH;QAC/G,iIAAiI;QACjI,0FAA0F,CACjG;IACL,UAAU,EAAE,OAAC;SACR,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC;SAC/B,QAAQ,EAAE;SACV,QAAQ,CAAC,iHAAiH,CAAC;IAChI,UAAU,EAAE,OAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CACL,kJAAkJ,CACrJ;CACR,CAAC;AAcF,MAAa,4BAA6B,SAAQ,kBAAsC;IAAxF;;QACa,SAAI,GAAG,4BAA4B,CAAC;QACpC,UAAK,GAAG,8CAA8C,CAAC;QACvD,gBAAW,GAChB,uJAAuJ;YACvJ,2CAA2C;YAC3C,iFAAiF,CAAC;QAC7E,gBAAW,GAAG,WAAW,CAAC;IAKvC,CAAC;IAHG,OAAO,CAAC,IAAmC;QACvC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,wCAAwC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAC/H,CAAC;CACJ;AAZD,oEAYC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './downloadable.report.business.get.tool';
|
|
2
|
+
export * from './downloadable.report.business.set.tool';
|
|
3
|
+
export * from './downloadable.report.businesses.list.tool';
|
|
4
|
+
export * from './downloadable.report.get.tool';
|
|
5
|
+
export * from './downloadable.report.list.tool';
|
|
6
|
+
export * from './downloadable.report.upsert.tool';
|
|
7
|
+
export * from './report.sheet.delete.tool';
|
|
8
|
+
export * from './report.sheet.upsert.tool';
|
|
@@ -0,0 +1,25 @@
|
|
|
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("./downloadable.report.business.get.tool"), exports);
|
|
18
|
+
__exportStar(require("./downloadable.report.business.set.tool"), exports);
|
|
19
|
+
__exportStar(require("./downloadable.report.businesses.list.tool"), exports);
|
|
20
|
+
__exportStar(require("./downloadable.report.get.tool"), exports);
|
|
21
|
+
__exportStar(require("./downloadable.report.list.tool"), exports);
|
|
22
|
+
__exportStar(require("./downloadable.report.upsert.tool"), exports);
|
|
23
|
+
__exportStar(require("./report.sheet.delete.tool"), exports);
|
|
24
|
+
__exportStar(require("./report.sheet.upsert.tool"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/downloadable_report/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,0EAAwD;AACxD,0EAAwD;AACxD,6EAA2D;AAC3D,iEAA+C;AAC/C,kEAAgD;AAChD,oEAAkD;AAClD,6DAA2C;AAC3C,6DAA2C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { McpToolResultInterface } from '../../../interfaces/mcp.tool.result.interface';
|
|
3
|
+
import { McpTool } from '../../../tools/mcp.tool';
|
|
4
|
+
type ReportSheetDeleteInput = {
|
|
5
|
+
report_id: number;
|
|
6
|
+
sheet_id: number;
|
|
7
|
+
};
|
|
8
|
+
export declare class ReportSheetDeleteTool extends McpTool<ReportSheetDeleteInput> {
|
|
9
|
+
readonly name = "report_sheet_delete";
|
|
10
|
+
readonly title = "Delete report sheet (admin)";
|
|
11
|
+
readonly description = "Soft-delete a sheet of a downloadable report so it is no longer in the downloaded file. Admin/development only.";
|
|
12
|
+
readonly inputSchema: {
|
|
13
|
+
report_id: z.ZodNumber;
|
|
14
|
+
sheet_id: z.ZodNumber;
|
|
15
|
+
};
|
|
16
|
+
protected readonly destructive = true;
|
|
17
|
+
execute(args: ReportSheetDeleteInput): Promise<McpToolResultInterface>;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReportSheetDeleteTool = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const mcp_tool_1 = require("../../../tools/mcp.tool");
|
|
6
|
+
const inputSchema = {
|
|
7
|
+
report_id: zod_1.z.number().int().positive().describe('Id of the downloadable report.'),
|
|
8
|
+
sheet_id: zod_1.z.number().int().positive().describe('Id of the sheet to remove.'),
|
|
9
|
+
};
|
|
10
|
+
class ReportSheetDeleteTool extends mcp_tool_1.McpTool {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.name = 'report_sheet_delete';
|
|
14
|
+
this.title = 'Delete report sheet (admin)';
|
|
15
|
+
this.description = 'Soft-delete a sheet of a downloadable report so it is no longer in the downloaded file. Admin/development only.';
|
|
16
|
+
this.inputSchema = inputSchema;
|
|
17
|
+
this.destructive = true;
|
|
18
|
+
}
|
|
19
|
+
execute(args) {
|
|
20
|
+
return this.run(() => this.client.request({ method: 'DELETE', path: `development/report/${args.report_id}/sheet/${args.sheet_id}` }));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.ReportSheetDeleteTool = ReportSheetDeleteTool;
|
|
24
|
+
//# sourceMappingURL=report.sheet.delete.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report.sheet.delete.tool.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/downloadable_report/report.sheet.delete.tool.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,sDAAkD;AAElD,MAAM,WAAW,GAAG;IAChB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IACjF,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;CAC/E,CAAC;AAOF,MAAa,qBAAsB,SAAQ,kBAA+B;IAA1E;;QACa,SAAI,GAAG,qBAAqB,CAAC;QAC7B,UAAK,GAAG,6BAA6B,CAAC;QACtC,gBAAW,GAAG,iHAAiH,CAAC;QAChI,gBAAW,GAAG,WAAW,CAAC;QAChB,gBAAW,GAAG,IAAI,CAAC;IAK1C,CAAC;IAHG,OAAO,CAAC,IAA4B;QAChC,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,sBAAsB,IAAI,CAAC,SAAS,UAAU,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;IAC1I,CAAC;CACJ;AAVD,sDAUC"}
|