@servicelabsco/slabs-access-manager 2.0.1 → 2.0.3
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/CODEBASE-REVIEW.md +129 -0
- package/dist/access/commands/index.js.map +1 -1
- package/dist/access/controllers/index.js.map +1 -1
- package/dist/access/dtos/index.js.map +1 -1
- package/dist/access/entities/index.js.map +1 -1
- package/dist/access/enums/index.js.map +1 -1
- package/dist/access/es6.classes.d.ts +8 -10
- package/dist/access/es6.classes.js +4 -6
- package/dist/access/es6.classes.js.map +1 -1
- package/dist/access/index.d.ts +1 -1
- package/dist/access/index.js +1 -1
- package/dist/access/index.js.map +1 -1
- package/dist/access/jobs/index.js.map +1 -1
- package/dist/access/libraries/assert.safe.sql.fragment.d.ts +6 -0
- package/dist/access/libraries/assert.safe.sql.fragment.js +19 -0
- package/dist/access/libraries/assert.safe.sql.fragment.js.map +1 -0
- package/dist/access/libraries/index.d.ts +2 -1
- package/dist/access/libraries/index.js +2 -1
- package/dist/access/libraries/index.js.map +1 -1
- package/dist/access/libraries/process.dashboard.report.data.js +5 -1
- package/dist/access/libraries/process.dashboard.report.data.js.map +1 -1
- package/dist/access/libraries/process.db.find.d.ts +3 -0
- package/dist/access/libraries/process.db.find.js +30 -16
- package/dist/access/libraries/process.db.find.js.map +1 -1
- package/dist/access/libraries/process.report.data.js +8 -2
- package/dist/access/libraries/process.report.data.js.map +1 -1
- package/dist/access/libraries/resolve.client.ip.d.ts +3 -0
- package/dist/access/libraries/resolve.client.ip.js +11 -0
- package/dist/access/libraries/resolve.client.ip.js.map +1 -0
- package/dist/access/middlewares/external.access.middleware.js +2 -1
- package/dist/access/middlewares/external.access.middleware.js.map +1 -1
- package/dist/access/middlewares/index.js.map +1 -1
- package/dist/access/middlewares/mcp.access.middleware.js +2 -1
- package/dist/access/middlewares/mcp.access.middleware.js.map +1 -1
- package/dist/access/middlewares/mcp.rate.limit.middleware.js +3 -2
- package/dist/access/middlewares/mcp.rate.limit.middleware.js.map +1 -1
- package/dist/access/services/business.preference.service.d.ts +0 -1
- package/dist/access/services/business.preference.service.js +1 -1
- package/dist/access/services/business.preference.service.js.map +1 -1
- package/dist/access/services/business.script.service.d.ts +0 -1
- package/dist/access/services/business.script.service.js +1 -1
- package/dist/access/services/business.script.service.js.map +1 -1
- package/dist/access/services/index.d.ts +0 -1
- package/dist/access/services/index.js +0 -1
- package/dist/access/services/index.js.map +1 -1
- package/dist/access/services/notification.service.d.ts +0 -1
- package/dist/access/services/notification.service.js +1 -1
- package/dist/access/services/notification.service.js.map +1 -1
- package/dist/access/services/slabs.service.d.ts +0 -1
- package/dist/access/services/slabs.service.js +1 -1
- package/dist/access/services/slabs.service.js.map +1 -1
- package/dist/access/services/slack.service.d.ts +0 -1
- package/dist/access/services/slack.service.js +1 -1
- package/dist/access/services/slack.service.js.map +1 -1
- package/dist/access/services/whatsapp.service.d.ts +0 -1
- package/dist/access/services/whatsapp.service.js +1 -1
- package/dist/access/services/whatsapp.service.js.map +1 -1
- package/dist/access/subscribers/index.js.map +1 -1
- package/dist/accessUtility/controllers/index.js.map +1 -1
- package/dist/accessUtility/dtos/index.js.map +1 -1
- package/dist/accessUtility/entities/index.js.map +1 -1
- package/dist/accessUtility/enums/index.js.map +1 -1
- package/dist/accessUtility/es6.classes.d.ts +2 -4
- package/dist/accessUtility/es6.classes.js +0 -4
- package/dist/accessUtility/es6.classes.js.map +1 -1
- package/dist/accessUtility/index.d.ts +2 -2
- package/dist/accessUtility/index.js +2 -2
- package/dist/accessUtility/index.js.map +1 -1
- package/dist/accessUtility/interfaces/index.js.map +1 -1
- package/dist/accessUtility/jobs/index.js.map +1 -1
- package/dist/accessUtility/libraries/index.js.map +1 -1
- package/dist/accessUtility/services/file.upload.service.d.ts +0 -1
- package/dist/accessUtility/services/file.upload.service.js +1 -1
- package/dist/accessUtility/services/file.upload.service.js.map +1 -1
- package/dist/accessUtility/services/google.drive.service.d.ts +1 -1
- package/dist/accessUtility/services/google.drive.service.js +3 -3
- package/dist/accessUtility/services/google.drive.service.js.map +1 -1
- package/dist/accessUtility/services/index.js.map +1 -1
- package/dist/accessUtility/subscribers/index.js.map +1 -1
- package/dist/accessWorkflow/controllers/index.js.map +1 -1
- package/dist/accessWorkflow/dtos/index.js.map +1 -1
- package/dist/accessWorkflow/entities/index.js.map +1 -1
- package/dist/accessWorkflow/enums/index.js.map +1 -1
- package/dist/accessWorkflow/es6.classes.d.ts +1 -2
- package/dist/accessWorkflow/es6.classes.js +1 -2
- package/dist/accessWorkflow/es6.classes.js.map +1 -1
- package/dist/accessWorkflow/index.d.ts +1 -1
- package/dist/accessWorkflow/index.js +1 -1
- package/dist/accessWorkflow/index.js.map +1 -1
- package/dist/accessWorkflow/jobs/index.js.map +1 -1
- package/dist/accessWorkflow/libraries/index.js.map +1 -1
- package/dist/accessWorkflow/services/index.js.map +1 -1
- package/dist/accessWorkflow/subscribers/index.js.map +1 -1
- package/dist/app.controller.d.ts +0 -2
- package/dist/app.controller.js +10 -29
- package/dist/app.controller.js.map +1 -1
- package/dist/app.service.d.ts +0 -5
- package/dist/app.service.js +1 -20
- package/dist/app.service.js.map +1 -1
- package/dist/development/commands/index.js.map +1 -1
- package/dist/development/controllers/index.js.map +1 -1
- package/dist/development/dtos/index.js.map +1 -1
- package/dist/development/es6.classes.d.ts +3 -0
- package/dist/development/es6.classes.js +3 -0
- package/dist/development/es6.classes.js.map +1 -1
- package/dist/development/gates/index.js.map +1 -1
- package/dist/development/index.d.ts +1 -1
- package/dist/development/index.js +1 -1
- package/dist/development/index.js.map +1 -1
- package/dist/development/interfaces/index.js.map +1 -1
- package/dist/development/middlewares/development.middleware.js +2 -3
- package/dist/development/middlewares/development.middleware.js.map +1 -1
- package/dist/development/middlewares/index.js.map +1 -1
- package/dist/development/registries/development.entity.registry.d.ts +2 -0
- package/dist/development/registries/development.entity.registry.js +17 -0
- package/dist/development/registries/development.entity.registry.js.map +1 -1
- package/dist/development/registries/index.js.map +1 -1
- package/dist/development/services/development.crud.service.d.ts +1 -0
- package/dist/development/services/development.crud.service.js +8 -0
- package/dist/development/services/development.crud.service.js.map +1 -1
- package/dist/development/services/index.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/admin/index.js.map +1 -1
- package/dist/mcp/admin/tools/admin.tool.registry.js +60 -0
- package/dist/mcp/admin/tools/admin.tool.registry.js.map +1 -1
- package/dist/mcp/admin/tools/business_feature/business.feature.create.tool.d.ts +22 -0
- package/dist/mcp/admin/tools/business_feature/business.feature.create.tool.js +25 -0
- package/dist/mcp/admin/tools/business_feature/business.feature.create.tool.js.map +1 -0
- package/dist/mcp/admin/tools/business_feature/business.feature.delete.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/business_feature/business.feature.delete.tool.js +23 -0
- package/dist/mcp/admin/tools/business_feature/business.feature.delete.tool.js.map +1 -0
- package/dist/mcp/admin/tools/business_feature/business.feature.get.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/business_feature/business.feature.get.tool.js +23 -0
- package/dist/mcp/admin/tools/business_feature/business.feature.get.tool.js.map +1 -0
- package/dist/mcp/admin/tools/business_feature/business.feature.list.tool.d.ts +23 -0
- package/dist/mcp/admin/tools/business_feature/business.feature.list.tool.js +37 -0
- package/dist/mcp/admin/tools/business_feature/business.feature.list.tool.js.map +1 -0
- package/dist/mcp/admin/tools/business_feature/business.feature.update.tool.d.ts +24 -0
- package/dist/mcp/admin/tools/business_feature/business.feature.update.tool.js +27 -0
- package/dist/mcp/admin/tools/business_feature/business.feature.update.tool.js.map +1 -0
- package/dist/mcp/admin/tools/business_feature/index.d.ts +5 -0
- package/dist/mcp/admin/tools/business_feature/index.js +22 -0
- package/dist/mcp/admin/tools/business_feature/index.js.map +1 -0
- package/dist/mcp/admin/tools/catalog/index.js.map +1 -1
- package/dist/mcp/admin/tools/child_menu/index.js.map +1 -1
- package/dist/mcp/admin/tools/feature/feature.create.tool.d.ts +22 -0
- package/dist/mcp/admin/tools/feature/feature.create.tool.js +25 -0
- package/dist/mcp/admin/tools/feature/feature.create.tool.js.map +1 -0
- package/dist/mcp/admin/tools/feature/feature.delete.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/feature/feature.delete.tool.js +23 -0
- package/dist/mcp/admin/tools/feature/feature.delete.tool.js.map +1 -0
- package/dist/mcp/admin/tools/feature/feature.get.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/feature/feature.get.tool.js +23 -0
- package/dist/mcp/admin/tools/feature/feature.get.tool.js.map +1 -0
- package/dist/mcp/admin/tools/feature/feature.list.tool.d.ts +23 -0
- package/dist/mcp/admin/tools/feature/feature.list.tool.js +37 -0
- package/dist/mcp/admin/tools/feature/feature.list.tool.js.map +1 -0
- package/dist/mcp/admin/tools/feature/feature.update.tool.d.ts +24 -0
- package/dist/mcp/admin/tools/feature/feature.update.tool.js +27 -0
- package/dist/mcp/admin/tools/feature/feature.update.tool.js.map +1 -0
- package/dist/mcp/admin/tools/feature/index.d.ts +5 -0
- package/dist/mcp/admin/tools/feature/index.js +22 -0
- package/dist/mcp/admin/tools/feature/index.js.map +1 -0
- package/dist/mcp/admin/tools/feature_menu/feature.menu.create.tool.d.ts +20 -0
- package/dist/mcp/admin/tools/feature_menu/feature.menu.create.tool.js +24 -0
- package/dist/mcp/admin/tools/feature_menu/feature.menu.create.tool.js.map +1 -0
- package/dist/mcp/admin/tools/feature_menu/feature.menu.delete.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/feature_menu/feature.menu.delete.tool.js +23 -0
- package/dist/mcp/admin/tools/feature_menu/feature.menu.delete.tool.js.map +1 -0
- package/dist/mcp/admin/tools/feature_menu/feature.menu.get.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/feature_menu/feature.menu.get.tool.js +23 -0
- package/dist/mcp/admin/tools/feature_menu/feature.menu.get.tool.js.map +1 -0
- package/dist/mcp/admin/tools/feature_menu/feature.menu.list.tool.d.ts +23 -0
- package/dist/mcp/admin/tools/feature_menu/feature.menu.list.tool.js +37 -0
- package/dist/mcp/admin/tools/feature_menu/feature.menu.list.tool.js.map +1 -0
- package/dist/mcp/admin/tools/feature_menu/feature.menu.update.tool.d.ts +22 -0
- package/dist/mcp/admin/tools/feature_menu/feature.menu.update.tool.js +26 -0
- package/dist/mcp/admin/tools/feature_menu/feature.menu.update.tool.js.map +1 -0
- package/dist/mcp/admin/tools/feature_menu/index.d.ts +5 -0
- package/dist/mcp/admin/tools/feature_menu/index.js +22 -0
- package/dist/mcp/admin/tools/feature_menu/index.js.map +1 -0
- package/dist/mcp/admin/tools/form_script/index.js.map +1 -1
- package/dist/mcp/admin/tools/group_role/group.role.create.tool.d.ts +20 -0
- package/dist/mcp/admin/tools/group_role/group.role.create.tool.js +24 -0
- package/dist/mcp/admin/tools/group_role/group.role.create.tool.js.map +1 -0
- package/dist/mcp/admin/tools/group_role/group.role.delete.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/group_role/group.role.delete.tool.js +23 -0
- package/dist/mcp/admin/tools/group_role/group.role.delete.tool.js.map +1 -0
- package/dist/mcp/admin/tools/group_role/group.role.get.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/group_role/group.role.get.tool.js +23 -0
- package/dist/mcp/admin/tools/group_role/group.role.get.tool.js.map +1 -0
- package/dist/mcp/admin/tools/group_role/group.role.list.tool.d.ts +23 -0
- package/dist/mcp/admin/tools/group_role/group.role.list.tool.js +37 -0
- package/dist/mcp/admin/tools/group_role/group.role.list.tool.js.map +1 -0
- package/dist/mcp/admin/tools/group_role/group.role.update.tool.d.ts +22 -0
- package/dist/mcp/admin/tools/group_role/group.role.update.tool.js +26 -0
- package/dist/mcp/admin/tools/group_role/group.role.update.tool.js.map +1 -0
- package/dist/mcp/admin/tools/group_role/index.d.ts +5 -0
- package/dist/mcp/admin/tools/group_role/index.js +22 -0
- package/dist/mcp/admin/tools/group_role/index.js.map +1 -0
- package/dist/mcp/admin/tools/index.d.ts +7 -1
- package/dist/mcp/admin/tools/index.js +7 -1
- package/dist/mcp/admin/tools/index.js.map +1 -1
- package/dist/mcp/admin/tools/listing_column/index.js.map +1 -1
- package/dist/mcp/admin/tools/listing_page/index.js.map +1 -1
- package/dist/mcp/admin/tools/listing_preference/index.js.map +1 -1
- package/dist/mcp/admin/tools/menu/index.js.map +1 -1
- package/dist/mcp/admin/tools/menu_role/index.js.map +1 -1
- package/dist/mcp/admin/tools/menu_ui_action/index.js.map +1 -1
- package/dist/mcp/admin/tools/module/index.js.map +1 -1
- package/dist/mcp/admin/tools/module_menu/index.js.map +1 -1
- package/dist/mcp/admin/tools/report/index.js.map +1 -1
- package/dist/mcp/admin/tools/role/index.d.ts +5 -0
- package/dist/mcp/admin/tools/role/index.js +22 -0
- package/dist/mcp/admin/tools/role/index.js.map +1 -0
- package/dist/mcp/admin/tools/role/role.create.tool.d.ts +24 -0
- package/dist/mcp/admin/tools/role/role.create.tool.js +26 -0
- package/dist/mcp/admin/tools/role/role.create.tool.js.map +1 -0
- package/dist/mcp/admin/tools/role/role.delete.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/role/role.delete.tool.js +23 -0
- package/dist/mcp/admin/tools/role/role.delete.tool.js.map +1 -0
- package/dist/mcp/admin/tools/role/role.get.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/role/role.get.tool.js +23 -0
- package/dist/mcp/admin/tools/role/role.get.tool.js.map +1 -0
- package/dist/mcp/admin/tools/role/role.list.tool.d.ts +23 -0
- package/dist/mcp/admin/tools/role/role.list.tool.js +37 -0
- package/dist/mcp/admin/tools/role/role.list.tool.js.map +1 -0
- package/dist/mcp/admin/tools/role/role.update.tool.d.ts +26 -0
- package/dist/mcp/admin/tools/role/role.update.tool.js +28 -0
- package/dist/mcp/admin/tools/role/role.update.tool.js.map +1 -0
- package/dist/mcp/admin/tools/role_group/index.d.ts +5 -0
- package/dist/mcp/admin/tools/role_group/index.js +22 -0
- package/dist/mcp/admin/tools/role_group/index.js.map +1 -0
- package/dist/mcp/admin/tools/role_group/role.group.create.tool.d.ts +22 -0
- package/dist/mcp/admin/tools/role_group/role.group.create.tool.js +25 -0
- package/dist/mcp/admin/tools/role_group/role.group.create.tool.js.map +1 -0
- package/dist/mcp/admin/tools/role_group/role.group.delete.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/role_group/role.group.delete.tool.js +23 -0
- package/dist/mcp/admin/tools/role_group/role.group.delete.tool.js.map +1 -0
- package/dist/mcp/admin/tools/role_group/role.group.get.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/role_group/role.group.get.tool.js +23 -0
- package/dist/mcp/admin/tools/role_group/role.group.get.tool.js.map +1 -0
- package/dist/mcp/admin/tools/role_group/role.group.list.tool.d.ts +23 -0
- package/dist/mcp/admin/tools/role_group/role.group.list.tool.js +37 -0
- package/dist/mcp/admin/tools/role_group/role.group.list.tool.js.map +1 -0
- package/dist/mcp/admin/tools/role_group/role.group.update.tool.d.ts +24 -0
- package/dist/mcp/admin/tools/role_group/role.group.update.tool.js +27 -0
- package/dist/mcp/admin/tools/role_group/role.group.update.tool.js.map +1 -0
- package/dist/mcp/admin/tools/ui_action/index.js.map +1 -1
- package/dist/mcp/admin/tools/ui_action_role/index.js.map +1 -1
- package/dist/mcp/auth/index.js.map +1 -1
- package/dist/mcp/catalog/index.js.map +1 -1
- package/dist/mcp/client/index.js.map +1 -1
- package/dist/mcp/es6.classes.d.ts +36 -1
- package/dist/mcp/es6.classes.js +65 -0
- package/dist/mcp/es6.classes.js.map +1 -1
- package/dist/mcp/http/index.js.map +1 -1
- package/dist/mcp/index.d.ts +2 -2
- package/dist/mcp/index.js +2 -2
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/interfaces/index.js.map +1 -1
- package/dist/mcp/logging/index.js.map +1 -1
- package/dist/mcp/mentities/index.js.map +1 -1
- package/dist/mcp/tools/index.js.map +1 -1
- package/package.json +6 -3
- package/dist/access/services/es6.jobs.service.d.ts +0 -94
- package/dist/access/services/es6.jobs.service.js +0 -209
- package/dist/access/services/es6.jobs.service.js.map +0 -1
- package/dist/access/services/es6.service.d.ts +0 -18
- package/dist/access/services/es6.service.js +0 -57
- package/dist/access/services/es6.service.js.map +0 -1
- package/dist/access/services/load.entity.service.d.ts +0 -4
- package/dist/access/services/load.entity.service.js +0 -30
- package/dist/access/services/load.entity.service.js.map +0 -1
- package/dist/accessUtility/services/es6.jobs.service.d.ts +0 -30
- package/dist/accessUtility/services/es6.jobs.service.js +0 -81
- package/dist/accessUtility/services/es6.jobs.service.js.map +0 -1
- package/dist/accessUtility/services/es6.service.d.ts +0 -8
- package/dist/accessUtility/services/es6.service.js +0 -37
- package/dist/accessUtility/services/es6.service.js.map +0 -1
- package/dist/accessWorkflow/services/es6.jobs.service.d.ts +0 -32
- package/dist/accessWorkflow/services/es6.jobs.service.js +0 -85
- package/dist/accessWorkflow/services/es6.jobs.service.js.map +0 -1
- package/dist/config/entity.constants.d.ts +0 -301
- package/dist/config/entity.constants.js +0 -303
- package/dist/config/entity.constants.js.map +0 -1
package/dist/app.controller.js
CHANGED
|
@@ -22,7 +22,6 @@ const slabs_service_1 = require("./access/services/slabs.service");
|
|
|
22
22
|
const analyse_bulk_upload_job_1 = require("./accessUtility/jobs/analyse.bulk.upload.job");
|
|
23
23
|
const file_upload_service_1 = require("./accessUtility/services/file.upload.service");
|
|
24
24
|
const app_service_1 = require("./app.service");
|
|
25
|
-
const webhook_log_entity_1 = require("./access/entities/webhook.log.entity");
|
|
26
25
|
let AppController = class AppController {
|
|
27
26
|
constructor(appService, queueService, propertyService, refreshPropertyCacheJob, analyseBulkUploadJob, notificationService, slabsService, evaluateEmailRuleJob, fileUploadService, pdfService, overridingScriptService) {
|
|
28
27
|
this.appService = appService;
|
|
@@ -54,11 +53,11 @@ let AppController = class AppController {
|
|
|
54
53
|
}
|
|
55
54
|
async cleanQueue() {
|
|
56
55
|
const queue = this.queueService.getQueueInstance();
|
|
57
|
-
queue.clean(0, 0, 'delayed');
|
|
58
|
-
queue.clean(0, 0, 'wait');
|
|
59
|
-
queue.clean(0, 0, 'active');
|
|
60
|
-
queue.clean(0, 0, 'completed');
|
|
61
|
-
queue.clean(0, 0, 'failed');
|
|
56
|
+
await queue.clean(0, 0, 'delayed');
|
|
57
|
+
await queue.clean(0, 0, 'wait');
|
|
58
|
+
await queue.clean(0, 0, 'active');
|
|
59
|
+
await queue.clean(0, 0, 'completed');
|
|
60
|
+
await queue.clean(0, 0, 'failed');
|
|
62
61
|
}
|
|
63
62
|
async getQueueDetails(id) {
|
|
64
63
|
return this.queueService.getJobDetails(id);
|
|
@@ -68,12 +67,6 @@ let AppController = class AppController {
|
|
|
68
67
|
const jobStats = await this.queueService.getQueueStats();
|
|
69
68
|
return { runningStats, jobStats };
|
|
70
69
|
}
|
|
71
|
-
async set() { }
|
|
72
|
-
async sets() {
|
|
73
|
-
const r = webhook_log_entity_1.WebhookLogEntity.create();
|
|
74
|
-
r.payload = {};
|
|
75
|
-
await r.save();
|
|
76
|
-
}
|
|
77
70
|
};
|
|
78
71
|
exports.AppController = AppController;
|
|
79
72
|
__decorate([
|
|
@@ -95,48 +88,36 @@ __decorate([
|
|
|
95
88
|
__metadata("design:returntype", Promise)
|
|
96
89
|
], AppController.prototype, "auth", null);
|
|
97
90
|
__decorate([
|
|
98
|
-
(0, common_1.Get)('failed-jobs'),
|
|
91
|
+
(0, common_1.Get)('internal/failed-jobs'),
|
|
99
92
|
__metadata("design:type", Function),
|
|
100
93
|
__metadata("design:paramtypes", []),
|
|
101
94
|
__metadata("design:returntype", Promise)
|
|
102
95
|
], AppController.prototype, "getFailedJobs", null);
|
|
103
96
|
__decorate([
|
|
104
|
-
(0, common_1.Get)('refresh-cache'),
|
|
97
|
+
(0, common_1.Get)('internal/refresh-cache'),
|
|
105
98
|
__metadata("design:type", Function),
|
|
106
99
|
__metadata("design:paramtypes", []),
|
|
107
100
|
__metadata("design:returntype", Promise)
|
|
108
101
|
], AppController.prototype, "refreshCache", null);
|
|
109
102
|
__decorate([
|
|
110
|
-
(0, common_1.
|
|
103
|
+
(0, common_1.Post)('internal/clean-jobs'),
|
|
111
104
|
__metadata("design:type", Function),
|
|
112
105
|
__metadata("design:paramtypes", []),
|
|
113
106
|
__metadata("design:returntype", Promise)
|
|
114
107
|
], AppController.prototype, "cleanQueue", null);
|
|
115
108
|
__decorate([
|
|
116
|
-
(0, common_1.Get)('queue/:id'),
|
|
109
|
+
(0, common_1.Get)('internal/queue/:id'),
|
|
117
110
|
__param(0, (0, common_1.Param)('id')),
|
|
118
111
|
__metadata("design:type", Function),
|
|
119
112
|
__metadata("design:paramtypes", [String]),
|
|
120
113
|
__metadata("design:returntype", Promise)
|
|
121
114
|
], AppController.prototype, "getQueueDetails", null);
|
|
122
115
|
__decorate([
|
|
123
|
-
(0, common_1.Get)('queue'),
|
|
116
|
+
(0, common_1.Get)('internal/queue'),
|
|
124
117
|
__metadata("design:type", Function),
|
|
125
118
|
__metadata("design:paramtypes", []),
|
|
126
119
|
__metadata("design:returntype", Promise)
|
|
127
120
|
], AppController.prototype, "getQueue", null);
|
|
128
|
-
__decorate([
|
|
129
|
-
(0, common_1.Get)('set'),
|
|
130
|
-
__metadata("design:type", Function),
|
|
131
|
-
__metadata("design:paramtypes", []),
|
|
132
|
-
__metadata("design:returntype", Promise)
|
|
133
|
-
], AppController.prototype, "set", null);
|
|
134
|
-
__decorate([
|
|
135
|
-
(0, common_1.Post)('sets'),
|
|
136
|
-
__metadata("design:type", Function),
|
|
137
|
-
__metadata("design:paramtypes", []),
|
|
138
|
-
__metadata("design:returntype", Promise)
|
|
139
|
-
], AppController.prototype, "sets", null);
|
|
140
121
|
exports.AppController = AppController = __decorate([
|
|
141
122
|
(0, common_1.Controller)(),
|
|
142
123
|
__metadata("design:paramtypes", [app_service_1.AppService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.controller.js","sourceRoot":"","sources":["../src/app.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA8D;AAC9D,oFA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kDAG3B;AAUK;IADL,IAAA,YAAG,EAAC,wBAAwB,CAAC;;;;iDAG7B;AAWK;IADL,IAAA,aAAI,EAAC,qBAAqB,CAAC;;;;+CAS3B;AASK;IADL,IAAA,YAAG,EAAC,oBAAoB,CAAC;IACH,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;oDAEjC;AAWK;IADL,IAAA,YAAG,EAAC,gBAAgB,CAAC;;;;6CAMrB;wBAjHQ,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAGwB,wBAAU;QACR,sCAAY;QACP,yCAAe;QACT,iDAAuB;QACxB,8CAAoB;QACrB,0CAAmB;QAC1B,4BAAY;QACJ,8CAAoB;QACvB,uCAAiB;QACxB,oCAAU;QACG,mDAAuB;GAZ9D,aAAa,CAkHzB"}
|
package/dist/app.service.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { LocalPropertyService, QueueService } from '@servicelabsco/nestjs-utility-services';
|
|
2
1
|
export declare class AppService {
|
|
3
|
-
private readonly localPropertyService;
|
|
4
|
-
private readonly queueService;
|
|
5
|
-
constructor(localPropertyService: LocalPropertyService, queueService: QueueService);
|
|
6
|
-
setEntities(): void;
|
|
7
2
|
getHello(): {
|
|
8
3
|
hello: string;
|
|
9
4
|
};
|
package/dist/app.service.js
CHANGED
|
@@ -5,35 +5,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
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
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
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
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
9
|
exports.AppService = void 0;
|
|
13
10
|
const common_1 = require("@nestjs/common");
|
|
14
|
-
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
15
|
-
const entityConstants = require("./config/entity.constants");
|
|
16
11
|
let AppService = class AppService {
|
|
17
|
-
constructor(localPropertyService, queueService) {
|
|
18
|
-
this.localPropertyService = localPropertyService;
|
|
19
|
-
this.queueService = queueService;
|
|
20
|
-
this.setEntities();
|
|
21
|
-
}
|
|
22
|
-
setEntities() {
|
|
23
|
-
const existingEntities = this.localPropertyService.get('entities');
|
|
24
|
-
this.localPropertyService.set('entities', {
|
|
25
|
-
...existingEntities,
|
|
26
|
-
...entityConstants,
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
12
|
getHello() {
|
|
30
13
|
return { hello: 'sla world' };
|
|
31
14
|
}
|
|
32
15
|
};
|
|
33
16
|
exports.AppService = AppService;
|
|
34
17
|
exports.AppService = AppService = __decorate([
|
|
35
|
-
(0, common_1.Injectable)()
|
|
36
|
-
__metadata("design:paramtypes", [nestjs_utility_services_1.LocalPropertyService,
|
|
37
|
-
nestjs_utility_services_1.QueueService])
|
|
18
|
+
(0, common_1.Injectable)()
|
|
38
19
|
], AppService);
|
|
39
20
|
//# sourceMappingURL=app.service.js.map
|
package/dist/app.service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.service.js","sourceRoot":"","sources":["../src/app.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.service.js","sourceRoot":"","sources":["../src/app.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAUrC,IAAM,UAAU,GAAhB,MAAM,UAAU;IAKnB,QAAQ;QACJ,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;IAClC,CAAC;CACJ,CAAA;AARY,gCAAU;qBAAV,UAAU;IADtB,IAAA,mBAAU,GAAE;GACA,UAAU,CAQtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,oEAAkD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,mEAAiD;AACjD,gEAA8C;AAC9C,uEAAqD;AACrD,kEAAgD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,kEAAgD;AAChD,yEAAuD"}
|
|
@@ -14,10 +14,13 @@ declare const es6Classes: {
|
|
|
14
14
|
commands: (typeof DevelopmentFormScriptCommand)[];
|
|
15
15
|
controllers: (typeof DevelopmentCatalogController | typeof DevelopmentCrudController | typeof DevelopmentFormScriptController | typeof DevelopmentReportController)[];
|
|
16
16
|
dtos: (typeof ColumnCatalogAttributesDto | typeof MaterialViewCatalogAttributesDto)[];
|
|
17
|
+
entities: any[];
|
|
17
18
|
gates: (typeof ReportingCatalogGate)[];
|
|
18
19
|
interfaces: any[];
|
|
20
|
+
jobs: any[];
|
|
19
21
|
middlewares: (typeof DevelopmentMiddleware)[];
|
|
20
22
|
registries: (typeof DevelopmentEntityRegistry)[];
|
|
21
23
|
services: (typeof DevelopmentCrudService | typeof AdminReportViewService)[];
|
|
24
|
+
subscribers: any[];
|
|
22
25
|
};
|
|
23
26
|
export default es6Classes;
|
|
@@ -16,11 +16,14 @@ const es6Classes = {
|
|
|
16
16
|
commands: [development_form_script_command_1.DevelopmentFormScriptCommand],
|
|
17
17
|
controllers: [development_catalog_controller_1.DevelopmentCatalogController, development_crud_controller_1.DevelopmentCrudController, development_form_script_controller_1.DevelopmentFormScriptController, development_report_controller_1.DevelopmentReportController],
|
|
18
18
|
dtos: [column_catalog_attributes_dto_1.ColumnCatalogAttributesDto, material_view_catalog_attributes_dto_1.MaterialViewCatalogAttributesDto],
|
|
19
|
+
entities: [],
|
|
19
20
|
gates: [reporting_catalog_gate_1.ReportingCatalogGate],
|
|
20
21
|
interfaces: [],
|
|
22
|
+
jobs: [],
|
|
21
23
|
middlewares: [development_middleware_1.DevelopmentMiddleware],
|
|
22
24
|
registries: [development_entity_registry_1.DevelopmentEntityRegistry],
|
|
23
25
|
services: [admin_report_view_service_1.AdminReportViewService, development_crud_service_1.DevelopmentCrudService],
|
|
26
|
+
subscribers: [],
|
|
24
27
|
};
|
|
25
28
|
exports.default = es6Classes;
|
|
26
29
|
//# sourceMappingURL=es6.classes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/development/es6.classes.ts"],"names":[],"mappings":";;AAAA,gGAA0F;AAC1F,iGAA4F;AAC5F,2FAAsF;AACtF,yGAAmG;AACnG,+FAA0F;AAC1F,wFAAkF;AAClF,sGAA+F;AAC/F,2EAAsE;AACtE,iFAA6E;AAC7E,0FAAqF;AACrF,oFAA8E;AAC9E,kFAA6E;AAE7E,MAAM,UAAU,GAAG;IACf,QAAQ,EAAE,CAAC,8DAA4B,CAAC;IACxC,WAAW,EAAE,CAAC,6DAA4B,EAAE,uDAAyB,EAAE,oEAA+B,EAAE,2DAA2B,CAAC;IACpI,IAAI,EAAE,CAAC,0DAA0B,EAAE,uEAAgC,CAAC;IACpE,KAAK,EAAE,CAAC,6CAAoB,CAAC;IAC7B,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,CAAC,8CAAqB,CAAC;IACpC,UAAU,EAAE,CAAC,uDAAyB,CAAC;IACvC,QAAQ,EAAE,CAAC,kDAAsB,EAAE,iDAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/development/es6.classes.ts"],"names":[],"mappings":";;AAAA,gGAA0F;AAC1F,iGAA4F;AAC5F,2FAAsF;AACtF,yGAAmG;AACnG,+FAA0F;AAC1F,wFAAkF;AAClF,sGAA+F;AAC/F,2EAAsE;AACtE,iFAA6E;AAC7E,0FAAqF;AACrF,oFAA8E;AAC9E,kFAA6E;AAE7E,MAAM,UAAU,GAAG;IACf,QAAQ,EAAE,CAAC,8DAA4B,CAAC;IACxC,WAAW,EAAE,CAAC,6DAA4B,EAAE,uDAAyB,EAAE,oEAA+B,EAAE,2DAA2B,CAAC;IACpI,IAAI,EAAE,CAAC,0DAA0B,EAAE,uEAAgC,CAAC;IACpE,QAAQ,EAAE,EAAE;IACZ,KAAK,EAAE,CAAC,6CAAoB,CAAC;IAC7B,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,EAAE;IACR,WAAW,EAAE,CAAC,8CAAqB,CAAC;IACpC,UAAU,EAAE,CAAC,uDAAyB,CAAC;IACvC,QAAQ,EAAE,CAAC,kDAAsB,EAAE,iDAAsB,CAAC;IAC1D,WAAW,EAAE,EAAE;CAClB,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/gates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/gates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,2DAAyC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from './commands';
|
|
2
2
|
export * from './controllers';
|
|
3
|
+
export * from './development.module';
|
|
3
4
|
export * from './dtos';
|
|
4
5
|
export * from './gates';
|
|
5
6
|
export * from './interfaces';
|
|
6
7
|
export * from './middlewares';
|
|
7
8
|
export * from './registries';
|
|
8
9
|
export * from './services';
|
|
9
|
-
export * from './development.module';
|
|
@@ -16,11 +16,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./commands"), exports);
|
|
18
18
|
__exportStar(require("./controllers"), exports);
|
|
19
|
+
__exportStar(require("./development.module"), exports);
|
|
19
20
|
__exportStar(require("./dtos"), exports);
|
|
20
21
|
__exportStar(require("./gates"), exports);
|
|
21
22
|
__exportStar(require("./interfaces"), exports);
|
|
22
23
|
__exportStar(require("./middlewares"), exports);
|
|
23
24
|
__exportStar(require("./registries"), exports);
|
|
24
25
|
__exportStar(require("./services"), exports);
|
|
25
|
-
__exportStar(require("./development.module"), exports);
|
|
26
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/development/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/development/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,6CAA2B;AAC3B,gDAA8B;AAC9B,uDAAqC;AACrC,yCAAuB;AACvB,0CAAwB;AACxB,+CAA6B;AAC7B,gDAA8B;AAC9B,+CAA6B;AAC7B,6CAA2B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,qEAAmD"}
|
|
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.DevelopmentMiddleware = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
11
|
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
12
|
+
const resolve_client_ip_1 = require("../../access/libraries/resolve.client.ip");
|
|
12
13
|
let DevelopmentMiddleware = class DevelopmentMiddleware {
|
|
13
14
|
constructor() {
|
|
14
15
|
this.loopbackIps = ['127.0.0.1', '::1', '::ffff:127.0.0.1'];
|
|
@@ -41,9 +42,7 @@ let DevelopmentMiddleware = class DevelopmentMiddleware {
|
|
|
41
42
|
throw new nestjs_utility_services_1.AccessException('IP not allowed for development API.');
|
|
42
43
|
}
|
|
43
44
|
clientIp(req) {
|
|
44
|
-
|
|
45
|
-
const first = Array.isArray(forwarded) ? forwarded[0] : (forwarded || '').split(',')[0];
|
|
46
|
-
return (first || req.ip || req.socket?.remoteAddress || '').trim();
|
|
45
|
+
return new resolve_client_ip_1.ResolveClientIp().process(req) || '';
|
|
47
46
|
}
|
|
48
47
|
};
|
|
49
48
|
exports.DevelopmentMiddleware = DevelopmentMiddleware;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"development.middleware.js","sourceRoot":"","sources":["../../../src/development/middlewares/development.middleware.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4D;AAC5D,oFAA+E;
|
|
1
|
+
{"version":3,"file":"development.middleware.js","sourceRoot":"","sources":["../../../src/development/middlewares/development.middleware.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4D;AAC5D,oFAA+E;AAC/E,gFAA2E;AAepE,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAA3B;QACc,gBAAW,GAAG,CAAC,WAAW,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC;IAuC5E,CAAC;IArCG,GAAG,CAAC,GAAQ,EAAE,GAAQ,EAAE,IAAgB;QACpC,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,KAAK,MAAM,E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IAEO,QAAQ,CAAC,GAAQ;QAIrB,OAAO,IAAI,mCAAe,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACpD,CAAC;CACJ,CAAA;AAxCY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;GACA,qBAAqB,CAwCjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/middlewares/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/middlewares/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,2DAAyC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { CommonEntity } from '@servicelabsco/nestjs-utility-services';
|
|
2
2
|
export declare class DevelopmentEntityRegistry {
|
|
3
3
|
private readonly entities;
|
|
4
|
+
private readonly protectedIdCeiling;
|
|
4
5
|
resolve(slug: string): typeof CommonEntity | undefined;
|
|
5
6
|
slugs(): string[];
|
|
7
|
+
protectedCeiling(slug: string): number | undefined;
|
|
6
8
|
}
|
|
@@ -9,8 +9,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
9
9
|
exports.DevelopmentEntityRegistry = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
11
|
const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
|
|
12
|
+
const business_feature_entity_1 = require("../../access/entities/business.feature.entity");
|
|
12
13
|
const child_menu_entity_1 = require("../../access/entities/child.menu.entity");
|
|
14
|
+
const feature_entity_1 = require("../../access/entities/feature.entity");
|
|
15
|
+
const feature_menu_entity_1 = require("../../access/entities/feature.menu.entity");
|
|
13
16
|
const form_script_entity_1 = require("../../access/entities/form.script.entity");
|
|
17
|
+
const group_role_entity_1 = require("../../access/entities/group.role.entity");
|
|
14
18
|
const listing_column_entity_1 = require("../../access/entities/listing.column.entity");
|
|
15
19
|
const listing_page_entity_1 = require("../../access/entities/listing.page.entity");
|
|
16
20
|
const listing_preference_entity_1 = require("../../access/entities/listing.preference.entity");
|
|
@@ -19,6 +23,7 @@ const menu_entity_1 = require("../../access/entities/menu.entity");
|
|
|
19
23
|
const menu_role_entity_1 = require("../../access/entities/menu.role.entity");
|
|
20
24
|
const module_entity_1 = require("../../access/entities/module.entity");
|
|
21
25
|
const module_menu_entity_1 = require("../../access/entities/module.menu.entity");
|
|
26
|
+
const role_group_entity_1 = require("../../access/entities/role.group.entity");
|
|
22
27
|
const ui_action_entity_1 = require("../../access/entities/ui.action.entity");
|
|
23
28
|
const ui_action_role_entity_1 = require("../../access/entities/ui.action.role.entity");
|
|
24
29
|
let DevelopmentEntityRegistry = class DevelopmentEntityRegistry {
|
|
@@ -37,6 +42,15 @@ let DevelopmentEntityRegistry = class DevelopmentEntityRegistry {
|
|
|
37
42
|
ui_action_role: ui_action_role_entity_1.UiActionRoleEntity,
|
|
38
43
|
report: nestjs_utility_services_1.ReportEntity,
|
|
39
44
|
form_script: form_script_entity_1.FormScriptEntity,
|
|
45
|
+
role: nestjs_utility_services_1.RoleEntity,
|
|
46
|
+
role_group: role_group_entity_1.RoleGroupEntity,
|
|
47
|
+
group_role: group_role_entity_1.GroupRoleEntity,
|
|
48
|
+
feature: feature_entity_1.FeatureEntity,
|
|
49
|
+
business_feature: business_feature_entity_1.BusinessFeatureEntity,
|
|
50
|
+
feature_menu: feature_menu_entity_1.FeatureMenuEntity,
|
|
51
|
+
};
|
|
52
|
+
this.protectedIdCeiling = {
|
|
53
|
+
role: 100,
|
|
40
54
|
};
|
|
41
55
|
}
|
|
42
56
|
resolve(slug) {
|
|
@@ -45,6 +59,9 @@ let DevelopmentEntityRegistry = class DevelopmentEntityRegistry {
|
|
|
45
59
|
slugs() {
|
|
46
60
|
return Object.keys(this.entities);
|
|
47
61
|
}
|
|
62
|
+
protectedCeiling(slug) {
|
|
63
|
+
return this.protectedIdCeiling[slug];
|
|
64
|
+
}
|
|
48
65
|
};
|
|
49
66
|
exports.DevelopmentEntityRegistry = DevelopmentEntityRegistry;
|
|
50
67
|
exports.DevelopmentEntityRegistry = DevelopmentEntityRegistry = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"development.entity.registry.js","sourceRoot":"","sources":["../../../src/development/registries/development.entity.registry.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"development.entity.registry.js","sourceRoot":"","sources":["../../../src/development/registries/development.entity.registry.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAgG;AAChG,2FAAsF;AACtF,+EAA0E;AAC1E,yEAAqE;AACrE,mFAA8E;AAC9E,iFAA4E;AAC5E,+EAA0E;AAC1E,uFAAkF;AAClF,mFAA8E;AAC9E,+FAA0F;AAC1F,iFAA4E;AAC5E,mEAA+D;AAC/D,6EAAwE;AACxE,uEAAmE;AACnE,iFAA4E;AAC5E,+EAA0E;AAC1E,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;YACpB,WAAW,EAAE,qCAAgB;YAC7B,IAAI,EAAE,oCAAU;YAChB,UAAU,EAAE,mCAAe;YAC3B,UAAU,EAAE,mCAAe;YAC3B,OAAO,EAAE,8BAAa;YACtB,gBAAgB,EAAE,+CAAqB;YACvC,YAAY,EAAE,uCAAiB;SAClC,CAAC;QAUe,uBAAkB,GAA2B;YAC1D,IAAI,EAAE,GAAG;SACZ,CAAC;IAkBN,CAAC;IAhBG,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;IAOD,gBAAgB,CAAC,IAAY;QACzB,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;CACJ,CAAA;AAnDY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,mBAAU,GAAE;GACA,yBAAyB,CAmDrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/registries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/registries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,gEAA8C"}
|
|
@@ -44,6 +44,7 @@ let DevelopmentCrudService = class DevelopmentCrudService {
|
|
|
44
44
|
}
|
|
45
45
|
async update(slug, id, body) {
|
|
46
46
|
const entityClass = this.entityClass(slug);
|
|
47
|
+
this.assertWritableId(slug, id);
|
|
47
48
|
const entity = await entityClass.findOne({ where: { id } });
|
|
48
49
|
if (!entity)
|
|
49
50
|
throw new nestjs_utility_services_1.OperationException(`No ${slug} found with id ${id}.`);
|
|
@@ -52,12 +53,19 @@ let DevelopmentCrudService = class DevelopmentCrudService {
|
|
|
52
53
|
}
|
|
53
54
|
async remove(slug, id) {
|
|
54
55
|
const entityClass = this.entityClass(slug);
|
|
56
|
+
this.assertWritableId(slug, id);
|
|
55
57
|
const entity = await entityClass.findOne({ where: { id } });
|
|
56
58
|
if (!entity)
|
|
57
59
|
throw new nestjs_utility_services_1.OperationException(`No ${slug} found with id ${id}.`);
|
|
58
60
|
await entity.softDelete();
|
|
59
61
|
return { success: true, id };
|
|
60
62
|
}
|
|
63
|
+
assertWritableId(slug, id) {
|
|
64
|
+
const ceiling = this.registry.protectedCeiling(slug);
|
|
65
|
+
if (ceiling === undefined || id > ceiling)
|
|
66
|
+
return;
|
|
67
|
+
throw new nestjs_utility_services_1.OperationException(`${slug} id ${id} is a reserved platform row (ids up to ${ceiling}) and cannot be modified.`);
|
|
68
|
+
}
|
|
61
69
|
entityClass(slug) {
|
|
62
70
|
const entityClass = this.registry.resolve(slug);
|
|
63
71
|
if (!entityClass)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"development.crud.service.js","sourceRoot":"","sources":["../../../src/development/services/development.crud.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAA4E;AAC5E,qCAAqC;AAErC,2FAAsF;AAOtF,MAAM,sBAAsB,GAAG,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;AASrG,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAC/B,YACqB,UAAsB,EACtB,QAAmC;QADnC,eAAU,GAAV,UAAU,CAAY;QACtB,aAAQ,GAAR,QAAQ,CAA2B;IACrD,CAAC;IAQJ,KAAK,CAAC,IAAI,CAAC,IAAY,EAAE,QAAuC,EAAE;QAC9D,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,KAAK,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;QAE/E,OAAQ,WAAmB,CAAC,IAAI,CAAC;YAC7B,KAAK;YACL,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC;YACzC,IAAI,EAAE,IAAI,CAAC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MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC;IACtE,CAAC;CACJ,CAAA;
|
|
1
|
+
{"version":3,"file":"development.crud.service.js","sourceRoot":"","sources":["../../../src/development/services/development.crud.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,oFAA4E;AAC5E,qCAAqC;AAErC,2FAAsF;AAOtF,MAAM,sBAAsB,GAAG,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;AASrG,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAC/B,YACqB,UAAsB,EACtB,QAAmC;QADnC,eAAU,GAAV,UAAU,CAAY;QACtB,aAAQ,GAAR,QAAQ,CAA2B;IACrD,CAAC;IAQJ,KAAK,CAAC,IAAI,CAAC,IAAY,EAAE,QAAuC,EAAE;QAC9D,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAC3C,MAAM,KAAK,GAAG,IAAI,CAAC,cAAc,CAAC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;QAE/E,OAAQ,WAAmB,CAAC,IAAI,CAAC;YAC7B,KAAK;YACL,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC;YACzC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;YACzC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC;SACnD,CAAC,CAAC;IACP,CAAC;IASD,KAAK,CAAC,GAAG,CAAC,IAAY,EAAE,EAAU;QAC9B,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CA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ACtE,MAAM,MAAM,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QAC7E,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC;IACtE,CAAC;CACJ,CAAA;AAhKY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;qCAGwB,oBAAU;QACZ,uDAAyB;GAH/C,sBAAsB,CAgKlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,8DAA4C;AAC5C,6DAA2C"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./access"), exports);
|
|
18
18
|
__exportStar(require("./accessUtility"), exports);
|
|
19
|
-
__exportStar(require("./accessUtility"), exports);
|
|
20
19
|
__exportStar(require("./accessWorkflow"), exports);
|
|
21
20
|
__exportStar(require("./development"), exports);
|
|
22
21
|
__exportStar(require("./mcp"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,2CAAyB;AACzB,kDAAgC;AAChC,mDAAiC;AACjC,gDAA8B;AAC9B,wCAAsB;AACtB,kDAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/mcp/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/mcp/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,0CAAwB"}
|
|
@@ -76,6 +76,36 @@ const admin_view_register_tool_1 = require("./catalog/admin.view.register.tool")
|
|
|
76
76
|
const admin_view_sample_tool_1 = require("./catalog/admin.view.sample.tool");
|
|
77
77
|
const admin_view_update_tool_1 = require("./catalog/admin.view.update.tool");
|
|
78
78
|
const admin_views_list_tool_1 = require("./catalog/admin.views.list.tool");
|
|
79
|
+
const role_create_tool_1 = require("./role/role.create.tool");
|
|
80
|
+
const role_delete_tool_1 = require("./role/role.delete.tool");
|
|
81
|
+
const role_get_tool_1 = require("./role/role.get.tool");
|
|
82
|
+
const role_list_tool_1 = require("./role/role.list.tool");
|
|
83
|
+
const role_update_tool_1 = require("./role/role.update.tool");
|
|
84
|
+
const role_group_create_tool_1 = require("./role_group/role.group.create.tool");
|
|
85
|
+
const role_group_delete_tool_1 = require("./role_group/role.group.delete.tool");
|
|
86
|
+
const role_group_get_tool_1 = require("./role_group/role.group.get.tool");
|
|
87
|
+
const role_group_list_tool_1 = require("./role_group/role.group.list.tool");
|
|
88
|
+
const role_group_update_tool_1 = require("./role_group/role.group.update.tool");
|
|
89
|
+
const group_role_create_tool_1 = require("./group_role/group.role.create.tool");
|
|
90
|
+
const group_role_delete_tool_1 = require("./group_role/group.role.delete.tool");
|
|
91
|
+
const group_role_get_tool_1 = require("./group_role/group.role.get.tool");
|
|
92
|
+
const group_role_list_tool_1 = require("./group_role/group.role.list.tool");
|
|
93
|
+
const group_role_update_tool_1 = require("./group_role/group.role.update.tool");
|
|
94
|
+
const feature_create_tool_1 = require("./feature/feature.create.tool");
|
|
95
|
+
const feature_delete_tool_1 = require("./feature/feature.delete.tool");
|
|
96
|
+
const feature_get_tool_1 = require("./feature/feature.get.tool");
|
|
97
|
+
const feature_list_tool_1 = require("./feature/feature.list.tool");
|
|
98
|
+
const feature_update_tool_1 = require("./feature/feature.update.tool");
|
|
99
|
+
const business_feature_create_tool_1 = require("./business_feature/business.feature.create.tool");
|
|
100
|
+
const business_feature_delete_tool_1 = require("./business_feature/business.feature.delete.tool");
|
|
101
|
+
const business_feature_get_tool_1 = require("./business_feature/business.feature.get.tool");
|
|
102
|
+
const business_feature_list_tool_1 = require("./business_feature/business.feature.list.tool");
|
|
103
|
+
const business_feature_update_tool_1 = require("./business_feature/business.feature.update.tool");
|
|
104
|
+
const feature_menu_create_tool_1 = require("./feature_menu/feature.menu.create.tool");
|
|
105
|
+
const feature_menu_delete_tool_1 = require("./feature_menu/feature.menu.delete.tool");
|
|
106
|
+
const feature_menu_get_tool_1 = require("./feature_menu/feature.menu.get.tool");
|
|
107
|
+
const feature_menu_list_tool_1 = require("./feature_menu/feature.menu.list.tool");
|
|
108
|
+
const feature_menu_update_tool_1 = require("./feature_menu/feature.menu.update.tool");
|
|
79
109
|
class AdminToolRegistry {
|
|
80
110
|
constructor(client) {
|
|
81
111
|
this.client = client;
|
|
@@ -147,6 +177,36 @@ class AdminToolRegistry {
|
|
|
147
177
|
new form_script_create_tool_1.FormScriptCreateTool(this.client),
|
|
148
178
|
new form_script_update_tool_1.FormScriptUpdateTool(this.client),
|
|
149
179
|
new form_script_delete_tool_1.FormScriptDeleteTool(this.client),
|
|
180
|
+
new role_list_tool_1.RoleListTool(this.client),
|
|
181
|
+
new role_get_tool_1.RoleGetTool(this.client),
|
|
182
|
+
new role_create_tool_1.RoleCreateTool(this.client),
|
|
183
|
+
new role_update_tool_1.RoleUpdateTool(this.client),
|
|
184
|
+
new role_delete_tool_1.RoleDeleteTool(this.client),
|
|
185
|
+
new role_group_list_tool_1.RoleGroupListTool(this.client),
|
|
186
|
+
new role_group_get_tool_1.RoleGroupGetTool(this.client),
|
|
187
|
+
new role_group_create_tool_1.RoleGroupCreateTool(this.client),
|
|
188
|
+
new role_group_update_tool_1.RoleGroupUpdateTool(this.client),
|
|
189
|
+
new role_group_delete_tool_1.RoleGroupDeleteTool(this.client),
|
|
190
|
+
new group_role_list_tool_1.GroupRoleListTool(this.client),
|
|
191
|
+
new group_role_get_tool_1.GroupRoleGetTool(this.client),
|
|
192
|
+
new group_role_create_tool_1.GroupRoleCreateTool(this.client),
|
|
193
|
+
new group_role_update_tool_1.GroupRoleUpdateTool(this.client),
|
|
194
|
+
new group_role_delete_tool_1.GroupRoleDeleteTool(this.client),
|
|
195
|
+
new feature_list_tool_1.FeatureListTool(this.client),
|
|
196
|
+
new feature_get_tool_1.FeatureGetTool(this.client),
|
|
197
|
+
new feature_create_tool_1.FeatureCreateTool(this.client),
|
|
198
|
+
new feature_update_tool_1.FeatureUpdateTool(this.client),
|
|
199
|
+
new feature_delete_tool_1.FeatureDeleteTool(this.client),
|
|
200
|
+
new business_feature_list_tool_1.BusinessFeatureListTool(this.client),
|
|
201
|
+
new business_feature_get_tool_1.BusinessFeatureGetTool(this.client),
|
|
202
|
+
new business_feature_create_tool_1.BusinessFeatureCreateTool(this.client),
|
|
203
|
+
new business_feature_update_tool_1.BusinessFeatureUpdateTool(this.client),
|
|
204
|
+
new business_feature_delete_tool_1.BusinessFeatureDeleteTool(this.client),
|
|
205
|
+
new feature_menu_list_tool_1.FeatureMenuListTool(this.client),
|
|
206
|
+
new feature_menu_get_tool_1.FeatureMenuGetTool(this.client),
|
|
207
|
+
new feature_menu_create_tool_1.FeatureMenuCreateTool(this.client),
|
|
208
|
+
new feature_menu_update_tool_1.FeatureMenuUpdateTool(this.client),
|
|
209
|
+
new feature_menu_delete_tool_1.FeatureMenuDeleteTool(this.client),
|
|
150
210
|
new admin_views_list_tool_1.AdminViewsListTool(this.client),
|
|
151
211
|
new admin_view_register_tool_1.AdminViewRegisterTool(this.client),
|
|
152
212
|
new admin_view_update_tool_1.AdminViewUpdateTool(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,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;AACrF,mFAA6E;AAC7E,mFAA6E;AAC7E,6EAAuE;AACvE,+EAAyE;AACzE,mFAA6E;AAC7E,uFAAiF;AACjF,qFAA+E;AAC/E,6FAAsF;AACtF,yFAAkF;AAClF,qFAA+E;AAC/E,yFAAkF;AAClF,iFAA2E;AAC3E,6EAAuE;AACvE,6EAAuE;AACvE,2EAAqE;
|
|
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,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;AACrF,mFAA6E;AAC7E,mFAA6E;AAC7E,6EAAuE;AACvE,+EAAyE;AACzE,mFAA6E;AAC7E,uFAAiF;AACjF,qFAA+E;AAC/E,6FAAsF;AACtF,yFAAkF;AAClF,qFAA+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AAC;YAClC,IAAI,oDAAuB,CAAC,IAAI,CAAC,MAAM,CAAC;YACxC,IAAI,kDAAsB,CAAC,IAAI,CAAC,MAAM,CAAC;YACvC,IAAI,wDAAyB,CAAC,IAAI,CAAC,MAAM,CAAC;YAC1C,IAAI,wDAAyB,CAAC,IAAI,CAAC,MAAM,CAAC;YAC1C,IAAI,wDAAyB,CAAC,IAAI,CAAC,MAAM,CAAC;YAC1C,IAAI,4CAAmB,CAAC,IAAI,CAAC,MAAM,CAAC;YACpC,IAAI,0CAAkB,CAAC,IAAI,CAAC,MAAM,CAAC;YACnC,IAAI,gDAAqB,CAAC,IAAI,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;AAhHD,8CAgHC"}
|
|
@@ -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 BusinessFeatureCreateInput = {
|
|
5
|
+
business_id: number;
|
|
6
|
+
feature_id: number;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
attributes?: Record<string, unknown>;
|
|
9
|
+
};
|
|
10
|
+
export declare class BusinessFeatureCreateTool extends McpTool<BusinessFeatureCreateInput> {
|
|
11
|
+
readonly name = "business_feature_create";
|
|
12
|
+
readonly title = "Create business feature (admin)";
|
|
13
|
+
readonly description = "Create a business feature record directly in the database (admin/development only). Returns the created row.";
|
|
14
|
+
readonly inputSchema: {
|
|
15
|
+
business_id: z.ZodNumber;
|
|
16
|
+
feature_id: z.ZodNumber;
|
|
17
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
19
|
+
};
|
|
20
|
+
execute(args: BusinessFeatureCreateInput): Promise<McpToolResultInterface>;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BusinessFeatureCreateTool = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const mcp_tool_1 = require("../../../tools/mcp.tool");
|
|
6
|
+
const inputSchema = {
|
|
7
|
+
business_id: zod_1.z.number().int().positive().describe('Business the feature is enabled for (FK utl_business_features.business_id).'),
|
|
8
|
+
feature_id: zod_1.z.number().int().positive().describe('Feature being enabled (FK utl_feature_details.id).'),
|
|
9
|
+
active: zod_1.z.boolean().optional().describe('Whether the feature is currently enabled for the business.'),
|
|
10
|
+
attributes: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe('Arbitrary JSON attributes (json column).'),
|
|
11
|
+
};
|
|
12
|
+
class BusinessFeatureCreateTool extends mcp_tool_1.McpTool {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.name = 'business_feature_create';
|
|
16
|
+
this.title = 'Create business feature (admin)';
|
|
17
|
+
this.description = 'Create a business feature record directly in the database (admin/development only). Returns the created row.';
|
|
18
|
+
this.inputSchema = inputSchema;
|
|
19
|
+
}
|
|
20
|
+
execute(args) {
|
|
21
|
+
return this.run(() => this.client.request({ method: 'POST', path: 'development/business_feature', body: args }));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.BusinessFeatureCreateTool = BusinessFeatureCreateTool;
|
|
25
|
+
//# sourceMappingURL=business.feature.create.tool.js.map
|