@servicelabsco/slabs-access-manager 1.0.57 → 1.0.59
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/dist/access/controllers/form.script.controller.d.ts +42 -2
- package/dist/access/controllers/form.script.controller.js +56 -5
- package/dist/access/controllers/form.script.controller.js.map +1 -1
- package/dist/access/dtos/add.form.script.dto.d.ts +14 -0
- package/dist/access/dtos/add.form.script.dto.js +79 -0
- package/dist/access/dtos/add.form.script.dto.js.map +1 -0
- package/dist/access/dtos/form.script.attributes.dto.d.ts +3 -0
- package/dist/access/dtos/form.script.attributes.dto.js +8 -0
- package/dist/access/dtos/form.script.attributes.dto.js.map +1 -0
- package/dist/access/dtos/form.script.list.filter.dto.d.ts +4 -0
- package/dist/access/dtos/form.script.list.filter.dto.js +25 -0
- package/dist/access/dtos/form.script.list.filter.dto.js.map +1 -0
- package/dist/access/dtos/index.d.ts +3 -0
- package/dist/access/dtos/index.js +3 -0
- package/dist/access/dtos/index.js.map +1 -1
- package/dist/access/entities/form.script.entity.d.ts +18 -0
- package/dist/access/entities/form.script.entity.js +78 -0
- package/dist/access/entities/form.script.entity.js.map +1 -0
- package/dist/access/entities/index.d.ts +1 -0
- package/dist/access/entities/index.js +1 -0
- package/dist/access/entities/index.js.map +1 -1
- package/dist/access/es6.classes.d.ts +10 -6
- package/dist/access/es6.classes.js +18 -2
- package/dist/access/es6.classes.js.map +1 -1
- package/dist/access/jobs/form.script.job.d.ts +7 -0
- package/dist/access/jobs/form.script.job.js +29 -0
- package/dist/access/jobs/form.script.job.js.map +1 -0
- package/dist/access/jobs/index.d.ts +1 -0
- package/dist/access/jobs/index.js +1 -0
- package/dist/access/jobs/index.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.form.script.list.d.ts +21 -0
- package/dist/access/libraries/process.form.script.list.js +55 -0
- package/dist/access/libraries/process.form.script.list.js.map +1 -0
- package/dist/access/services/es6.jobs.service.d.ts +3 -1
- package/dist/access/services/es6.jobs.service.js +5 -1
- package/dist/access/services/es6.jobs.service.js.map +1 -1
- package/dist/access/services/form.script.service.d.ts +85 -0
- package/dist/access/services/form.script.service.js +121 -0
- package/dist/access/services/form.script.service.js.map +1 -0
- package/dist/access/services/index.d.ts +1 -0
- package/dist/access/services/index.js +1 -0
- package/dist/access/services/index.js.map +1 -1
- package/dist/access/subscribers/form.script.subscriber.d.ts +12 -0
- package/dist/access/subscribers/form.script.subscriber.js +40 -0
- package/dist/access/subscribers/form.script.subscriber.js.map +1 -0
- package/dist/access/subscribers/index.d.ts +1 -0
- package/dist/access/subscribers/index.js +1 -0
- package/dist/access/subscribers/index.js.map +1 -1
- package/dist/accessWorkflow/libraries/handle.approval.user.approval.js +7 -4
- package/dist/accessWorkflow/libraries/handle.approval.user.approval.js.map +1 -1
- package/dist/accessWorkflow/libraries/handle.approval.user.rejection.js +7 -4
- package/dist/accessWorkflow/libraries/handle.approval.user.rejection.js.map +1 -1
- package/dist/app.module.js +2 -0
- package/dist/app.module.js.map +1 -1
- package/dist/config/entity.constants.d.ts +2 -0
- package/dist/config/entity.constants.js +2 -0
- package/dist/config/entity.constants.js.map +1 -1
- package/dist/config/source.hash.d.ts +1 -0
- package/dist/config/source.hash.js +1 -0
- package/dist/config/source.hash.js.map +1 -1
- package/dist/development/commands/development.form.script.command.d.ts +12 -0
- package/dist/development/commands/development.form.script.command.js +134 -0
- package/dist/development/commands/development.form.script.command.js.map +1 -0
- package/dist/development/commands/index.d.ts +1 -0
- package/dist/development/commands/index.js +18 -0
- package/dist/development/commands/index.js.map +1 -0
- package/dist/development/controllers/development.form.script.controller.d.ts +37 -0
- package/dist/development/controllers/development.form.script.controller.js +48 -0
- package/dist/development/controllers/development.form.script.controller.js.map +1 -0
- package/dist/development/controllers/index.d.ts +1 -0
- package/dist/development/controllers/index.js +1 -0
- package/dist/development/controllers/index.js.map +1 -1
- package/dist/development/development.module.js +1 -1
- package/dist/development/development.module.js.map +1 -1
- package/dist/development/es6.classes.d.ts +4 -1
- package/dist/development/es6.classes.js +4 -1
- package/dist/development/es6.classes.js.map +1 -1
- package/dist/development/index.d.ts +1 -0
- package/dist/development/index.js +1 -0
- package/dist/development/index.js.map +1 -1
- package/dist/development/registries/development.entity.registry.js +2 -0
- package/dist/development/registries/development.entity.registry.js.map +1 -1
- package/dist/mcp/admin/tools/admin.tool.registry.js +10 -0
- package/dist/mcp/admin/tools/admin.tool.registry.js.map +1 -1
- package/dist/mcp/admin/tools/form_script/form.script.create.tool.d.ts +34 -0
- package/dist/mcp/admin/tools/form_script/form.script.create.tool.js +37 -0
- package/dist/mcp/admin/tools/form_script/form.script.create.tool.js.map +1 -0
- package/dist/mcp/admin/tools/form_script/form.script.delete.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/form_script/form.script.delete.tool.js +23 -0
- package/dist/mcp/admin/tools/form_script/form.script.delete.tool.js.map +1 -0
- package/dist/mcp/admin/tools/form_script/form.script.get.tool.d.ts +17 -0
- package/dist/mcp/admin/tools/form_script/form.script.get.tool.js +23 -0
- package/dist/mcp/admin/tools/form_script/form.script.get.tool.js.map +1 -0
- package/dist/mcp/admin/tools/form_script/form.script.list.tool.d.ts +23 -0
- package/dist/mcp/admin/tools/form_script/form.script.list.tool.js +40 -0
- package/dist/mcp/admin/tools/form_script/form.script.list.tool.js.map +1 -0
- package/dist/mcp/admin/tools/form_script/form.script.update.tool.d.ts +36 -0
- package/dist/mcp/admin/tools/form_script/form.script.update.tool.js +38 -0
- package/dist/mcp/admin/tools/form_script/form.script.update.tool.js.map +1 -0
- package/dist/mcp/admin/tools/form_script/index.d.ts +5 -0
- package/dist/mcp/admin/tools/form_script/index.js +22 -0
- package/dist/mcp/admin/tools/form_script/index.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/es6.classes.d.ts +6 -1
- package/dist/mcp/es6.classes.js +10 -0
- package/dist/mcp/es6.classes.js.map +1 -1
- package/dist/migrations/1785487007042-CreateFormScriptTable.d.ts +5 -0
- package/dist/migrations/1785487007042-CreateFormScriptTable.js +26 -0
- package/dist/migrations/1785487007042-CreateFormScriptTable.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
var DevelopmentFormScriptCommand_1;
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.DevelopmentFormScriptCommand = void 0;
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const nestjs_command_1 = require("nestjs-command");
|
|
19
|
+
const form_script_service_1 = require("../../access/services/form.script.service");
|
|
20
|
+
const development_crud_service_1 = require("../services/development.crud.service");
|
|
21
|
+
const SLUG = 'form_script';
|
|
22
|
+
let DevelopmentFormScriptCommand = DevelopmentFormScriptCommand_1 = class DevelopmentFormScriptCommand {
|
|
23
|
+
constructor(crudService, formScriptService) {
|
|
24
|
+
this.crudService = crudService;
|
|
25
|
+
this.formScriptService = formScriptService;
|
|
26
|
+
this.logger = new common_1.Logger(DevelopmentFormScriptCommand_1.name);
|
|
27
|
+
}
|
|
28
|
+
async list(limit, offset, filter) {
|
|
29
|
+
const rows = await this.crudService.list(SLUG, {
|
|
30
|
+
limit,
|
|
31
|
+
offset,
|
|
32
|
+
filter,
|
|
33
|
+
});
|
|
34
|
+
this.logger.log(JSON.stringify(rows, null, 2));
|
|
35
|
+
}
|
|
36
|
+
async get(id) {
|
|
37
|
+
const row = await this.formScriptService.getWithScript(id);
|
|
38
|
+
this.logger.log(JSON.stringify(row, null, 2));
|
|
39
|
+
}
|
|
40
|
+
async upsert(body) {
|
|
41
|
+
const payload = JSON.parse(body);
|
|
42
|
+
const row = await this.formScriptService.upsert(payload);
|
|
43
|
+
this.logger.log(JSON.stringify(row, null, 2));
|
|
44
|
+
}
|
|
45
|
+
async delete(id) {
|
|
46
|
+
const result = await this.crudService.remove(SLUG, id);
|
|
47
|
+
this.logger.log(JSON.stringify(result, null, 2));
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
exports.DevelopmentFormScriptCommand = DevelopmentFormScriptCommand;
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, nestjs_command_1.Command)({
|
|
53
|
+
command: 'dev:form-script:list',
|
|
54
|
+
describe: 'List form_script rows (development CRUD)',
|
|
55
|
+
}),
|
|
56
|
+
__param(0, (0, nestjs_command_1.Option)({
|
|
57
|
+
name: 'limit',
|
|
58
|
+
describe: 'Max rows (default 50)',
|
|
59
|
+
type: 'number',
|
|
60
|
+
alias: 'l',
|
|
61
|
+
required: false,
|
|
62
|
+
})),
|
|
63
|
+
__param(1, (0, nestjs_command_1.Option)({
|
|
64
|
+
name: 'offset',
|
|
65
|
+
describe: 'Rows to skip (default 0)',
|
|
66
|
+
type: 'number',
|
|
67
|
+
alias: 'o',
|
|
68
|
+
required: false,
|
|
69
|
+
})),
|
|
70
|
+
__param(2, (0, nestjs_command_1.Option)({
|
|
71
|
+
name: 'filter',
|
|
72
|
+
describe: 'JSON column-equality filter, e.g. {"business_id":4,"identifier":"expense.create"}',
|
|
73
|
+
type: 'string',
|
|
74
|
+
alias: 'f',
|
|
75
|
+
required: false,
|
|
76
|
+
})),
|
|
77
|
+
__metadata("design:type", Function),
|
|
78
|
+
__metadata("design:paramtypes", [Number, Number, String]),
|
|
79
|
+
__metadata("design:returntype", Promise)
|
|
80
|
+
], DevelopmentFormScriptCommand.prototype, "list", null);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, nestjs_command_1.Command)({
|
|
83
|
+
command: 'dev:form-script:get',
|
|
84
|
+
describe: 'Get a form_script row with script body',
|
|
85
|
+
}),
|
|
86
|
+
__param(0, (0, nestjs_command_1.Option)({
|
|
87
|
+
name: 'id',
|
|
88
|
+
describe: 'Form script id',
|
|
89
|
+
type: 'number',
|
|
90
|
+
alias: 'i',
|
|
91
|
+
required: true,
|
|
92
|
+
})),
|
|
93
|
+
__metadata("design:type", Function),
|
|
94
|
+
__metadata("design:paramtypes", [Number]),
|
|
95
|
+
__metadata("design:returntype", Promise)
|
|
96
|
+
], DevelopmentFormScriptCommand.prototype, "get", null);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, nestjs_command_1.Command)({
|
|
99
|
+
command: 'dev:form-script:upsert',
|
|
100
|
+
describe: 'Create or update a form_script row and its script body',
|
|
101
|
+
}),
|
|
102
|
+
__param(0, (0, nestjs_command_1.Option)({
|
|
103
|
+
name: 'body',
|
|
104
|
+
describe: 'Full upsert JSON (business_id, name, identifier, script required; id optional for update)',
|
|
105
|
+
type: 'string',
|
|
106
|
+
alias: 'b',
|
|
107
|
+
required: true,
|
|
108
|
+
})),
|
|
109
|
+
__metadata("design:type", Function),
|
|
110
|
+
__metadata("design:paramtypes", [String]),
|
|
111
|
+
__metadata("design:returntype", Promise)
|
|
112
|
+
], DevelopmentFormScriptCommand.prototype, "upsert", null);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, nestjs_command_1.Command)({
|
|
115
|
+
command: 'dev:form-script:delete',
|
|
116
|
+
describe: 'Soft-delete a form_script row by id',
|
|
117
|
+
}),
|
|
118
|
+
__param(0, (0, nestjs_command_1.Option)({
|
|
119
|
+
name: 'id',
|
|
120
|
+
describe: 'Form script id',
|
|
121
|
+
type: 'number',
|
|
122
|
+
alias: 'i',
|
|
123
|
+
required: true,
|
|
124
|
+
})),
|
|
125
|
+
__metadata("design:type", Function),
|
|
126
|
+
__metadata("design:paramtypes", [Number]),
|
|
127
|
+
__metadata("design:returntype", Promise)
|
|
128
|
+
], DevelopmentFormScriptCommand.prototype, "delete", null);
|
|
129
|
+
exports.DevelopmentFormScriptCommand = DevelopmentFormScriptCommand = DevelopmentFormScriptCommand_1 = __decorate([
|
|
130
|
+
(0, common_1.Injectable)(),
|
|
131
|
+
__metadata("design:paramtypes", [development_crud_service_1.DevelopmentCrudService,
|
|
132
|
+
form_script_service_1.FormScriptService])
|
|
133
|
+
], DevelopmentFormScriptCommand);
|
|
134
|
+
//# sourceMappingURL=development.form.script.command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"development.form.script.command.js","sourceRoot":"","sources":["../../../src/development/commands/development.form.script.command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,mDAAiD;AACjD,mFAA8E;AAC9E,mFAA8E;AAE9E,MAAM,IAAI,GAAG,aAAa,CAAC;AAOpB,IAAM,4BAA4B,oCAAlC,MAAM,4BAA4B;IAGrC,YACqB,WAAmC,EACnC,iBAAoC;QADpC,gBAAW,GAAX,WAAW,CAAwB;QACnC,sBAAiB,GAAjB,iBAAiB,CAAmB;QAJxC,WAAM,GAAG,IAAI,eAAM,CAAC,8BAA4B,CAAC,IAAI,CAAC,CAAC;IAKrE,CAAC;IAME,AAAN,KAAK,CAAC,IAAI,CAQN,KAAc,EAQd,MAAe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EAAE,IAAI;QACV,QAAQ,EAAE,gBAAgB;QAC1B,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,GAAG;QACV,QAAQ,EAAE,IAAI;KACjB,CAAC,CAAA;;;;0DAKL;uCAnGQ,4BAA4B;IADxC,IAAA,mBAAU,GAAE;qCAKyB,iDAAsB;QAChB,uCAAiB;GALhD,4BAA4B,CAoGxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './development.form.script.command';
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./development.form.script.command"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oEAAiD"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { FormScriptService, FormScriptUpsertBody } from '../../access/services/form.script.service';
|
|
2
|
+
export declare class DevelopmentFormScriptController {
|
|
3
|
+
private readonly formScriptService;
|
|
4
|
+
constructor(formScriptService: FormScriptService);
|
|
5
|
+
upsert(body: FormScriptUpsertBody): Promise<{
|
|
6
|
+
id: number;
|
|
7
|
+
business_id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
identifier: string;
|
|
10
|
+
columns: string;
|
|
11
|
+
activity_type_id: number;
|
|
12
|
+
priority: number;
|
|
13
|
+
script_id: number;
|
|
14
|
+
active: boolean;
|
|
15
|
+
description: string;
|
|
16
|
+
attributes: import("../..").FormScriptAttributesDto;
|
|
17
|
+
script: string;
|
|
18
|
+
created_at: Date;
|
|
19
|
+
updated_at: Date;
|
|
20
|
+
}>;
|
|
21
|
+
getFull(id: string): Promise<{
|
|
22
|
+
id: number;
|
|
23
|
+
business_id: number;
|
|
24
|
+
name: string;
|
|
25
|
+
identifier: string;
|
|
26
|
+
columns: string;
|
|
27
|
+
activity_type_id: number;
|
|
28
|
+
priority: number;
|
|
29
|
+
script_id: number;
|
|
30
|
+
active: boolean;
|
|
31
|
+
description: string;
|
|
32
|
+
attributes: import("../..").FormScriptAttributesDto;
|
|
33
|
+
script: string;
|
|
34
|
+
created_at: Date;
|
|
35
|
+
updated_at: Date;
|
|
36
|
+
}>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.DevelopmentFormScriptController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const form_script_service_1 = require("../../access/services/form.script.service");
|
|
18
|
+
let DevelopmentFormScriptController = class DevelopmentFormScriptController {
|
|
19
|
+
constructor(formScriptService) {
|
|
20
|
+
this.formScriptService = formScriptService;
|
|
21
|
+
}
|
|
22
|
+
async upsert(body) {
|
|
23
|
+
return this.formScriptService.upsert(body);
|
|
24
|
+
}
|
|
25
|
+
async getFull(id) {
|
|
26
|
+
return this.formScriptService.getWithScript(parseInt(id, 10));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.DevelopmentFormScriptController = DevelopmentFormScriptController;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, common_1.Post)('upsert'),
|
|
32
|
+
__param(0, (0, common_1.Body)()),
|
|
33
|
+
__metadata("design:type", Function),
|
|
34
|
+
__metadata("design:paramtypes", [Object]),
|
|
35
|
+
__metadata("design:returntype", Promise)
|
|
36
|
+
], DevelopmentFormScriptController.prototype, "upsert", null);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, common_1.Get)(':id/full'),
|
|
39
|
+
__param(0, (0, common_1.Param)('id')),
|
|
40
|
+
__metadata("design:type", Function),
|
|
41
|
+
__metadata("design:paramtypes", [String]),
|
|
42
|
+
__metadata("design:returntype", Promise)
|
|
43
|
+
], DevelopmentFormScriptController.prototype, "getFull", null);
|
|
44
|
+
exports.DevelopmentFormScriptController = DevelopmentFormScriptController = __decorate([
|
|
45
|
+
(0, common_1.Controller)('development/form_script'),
|
|
46
|
+
__metadata("design:paramtypes", [form_script_service_1.FormScriptService])
|
|
47
|
+
], DevelopmentFormScriptController);
|
|
48
|
+
//# sourceMappingURL=development.form.script.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"development.form.script.controller.js","sourceRoot":"","sources":["../../../src/development/controllers/development.form.script.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoE;AACpE,mFAAoG;AAO7F,IAAM,+BAA+B,GAArC,MAAM,+BAA+B;IACxC,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAAG,CAAC;IAM/D,AAAN,KAAK,CAAC,MAAM,CAAS,IAA0B;QAC3C,OAAO,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IAMK,AAAN,KAAK,CAAC,OAAO,CAAc,EAAU;QACjC,OAAO,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IAClE,CAAC;CACJ,CAAA;AAlBY,0EAA+B;AAOlC;IADL,IAAA,aAAI,EAAC,QAAQ,CAAC;IACD,WAAA,IAAA,aAAI,GAAE,CAAA;;;;6DAEnB;AAMK;IADL,IAAA,YAAG,EAAC,UAAU,CAAC;IACD,WAAA,IAAA,cAAK,EAAC,IAAI,CAAC,CAAA;;;;8DAEzB;0CAjBQ,+BAA+B;IAD3C,IAAA,mBAAU,EAAC,yBAAyB,CAAC;qCAEc,uCAAiB;GADxD,+BAA+B,CAkB3C"}
|
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./development.crud.controller"), exports);
|
|
18
|
+
__exportStar(require("./development.form.script.controller"), exports);
|
|
18
19
|
__exportStar(require("./development.report.controller"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAAA,kEAA+C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAAA,uEAAqD;AAAA,kEAA+C"}
|
|
@@ -20,7 +20,7 @@ exports.DevelopmentModule = DevelopmentModule = __decorate([
|
|
|
20
20
|
(0, common_1.Module)({
|
|
21
21
|
imports: [access_module_1.AccessModule],
|
|
22
22
|
controllers: es6_classes_1.default.controllers,
|
|
23
|
-
providers: [...es6_classes_1.default.services, ...es6_classes_1.default.registries],
|
|
23
|
+
providers: [...es6_classes_1.default.services, ...es6_classes_1.default.registries, ...es6_classes_1.default.commands],
|
|
24
24
|
exports: [...es6_classes_1.default.services, ...es6_classes_1.default.registries],
|
|
25
25
|
})
|
|
26
26
|
], DevelopmentModule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"development.module.js","sourceRoot":"","sources":["../../src/development/development.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAwC;AACxC,2DAAuD;AACvD,gEAAuC;AAahC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,8CAAiB;4BAAjB,iBAAiB;IAN7B,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,4BAAY,CAAC;QACvB,WAAW,EAAE,qBAAU,CAAC,WAAW;QACnC,SAAS,EAAE,CAAC,GAAG,qBAAU,CAAC,QAAQ,EAAE,GAAG,qBAAU,CAAC,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"development.module.js","sourceRoot":"","sources":["../../src/development/development.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAwC;AACxC,2DAAuD;AACvD,gEAAuC;AAahC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,8CAAiB;4BAAjB,iBAAiB;IAN7B,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,4BAAY,CAAC;QACvB,WAAW,EAAE,qBAAU,CAAC,WAAW;QACnC,SAAS,EAAE,CAAC,GAAG,qBAAU,CAAC,QAAQ,EAAE,GAAG,qBAAU,CAAC,UAAU,EAAE,GAAG,qBAAU,CAAC,QAAQ,CAAC;QACrF,OAAO,EAAE,CAAC,GAAG,qBAAU,CAAC,QAAQ,EAAE,GAAG,qBAAU,CAAC,UAAU,CAAC;KAC9D,CAAC;GACW,iBAAiB,CAAG"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { DevelopmentCrudController } from './controllers/development.crud.controller';
|
|
2
|
+
import { DevelopmentFormScriptController } from './controllers/development.form.script.controller';
|
|
2
3
|
import { DevelopmentReportController } from './controllers/development.report.controller';
|
|
4
|
+
import { DevelopmentFormScriptCommand } from './commands/development.form.script.command';
|
|
3
5
|
import { DevelopmentMiddleware } from './middlewares/development.middleware';
|
|
4
6
|
import { DevelopmentEntityRegistry } from './registries/development.entity.registry';
|
|
5
7
|
import { DevelopmentCrudService } from './services/development.crud.service';
|
|
6
8
|
declare const es6Classes: {
|
|
7
|
-
|
|
9
|
+
commands: (typeof DevelopmentFormScriptCommand)[];
|
|
10
|
+
controllers: (typeof DevelopmentCrudController | typeof DevelopmentFormScriptController | typeof DevelopmentReportController)[];
|
|
8
11
|
interfaces: any[];
|
|
9
12
|
middlewares: (typeof DevelopmentMiddleware)[];
|
|
10
13
|
registries: (typeof DevelopmentEntityRegistry)[];
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const development_crud_controller_1 = require("./controllers/development.crud.controller");
|
|
4
|
+
const development_form_script_controller_1 = require("./controllers/development.form.script.controller");
|
|
4
5
|
const development_report_controller_1 = require("./controllers/development.report.controller");
|
|
6
|
+
const development_form_script_command_1 = require("./commands/development.form.script.command");
|
|
5
7
|
const development_middleware_1 = require("./middlewares/development.middleware");
|
|
6
8
|
const development_entity_registry_1 = require("./registries/development.entity.registry");
|
|
7
9
|
const development_crud_service_1 = require("./services/development.crud.service");
|
|
8
10
|
const es6Classes = {
|
|
9
|
-
|
|
11
|
+
commands: [development_form_script_command_1.DevelopmentFormScriptCommand],
|
|
12
|
+
controllers: [development_crud_controller_1.DevelopmentCrudController, development_report_controller_1.DevelopmentReportController, development_form_script_controller_1.DevelopmentFormScriptController],
|
|
10
13
|
interfaces: [],
|
|
11
14
|
middlewares: [development_middleware_1.DevelopmentMiddleware],
|
|
12
15
|
registries: [development_entity_registry_1.DevelopmentEntityRegistry],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/development/es6.classes.ts"],"names":[],"mappings":";;AAAA,2FAAsF;AACtF,+FAA0F;AAC1F,iFAA6E;AAC7E,0FAAqF;AACrF,kFAA6E;AAE7E,MAAM,UAAU,GAAG;IACf,WAAW,EAAE,CAAC,uDAAyB,EAAE,2DAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"es6.classes.js","sourceRoot":"","sources":["../../src/development/es6.classes.ts"],"names":[],"mappings":";;AAAA,2FAAsF;AACtF,yGAAmG;AACnG,+FAA0F;AAC1F,gGAA0F;AAC1F,iFAA6E;AAC7E,0FAAqF;AACrF,kFAA6E;AAE7E,MAAM,UAAU,GAAG;IACf,QAAQ,EAAE,CAAC,8DAA4B,CAAC;IACxC,WAAW,EAAE,CAAC,uDAAyB,EAAE,2DAA2B,EAAE,oEAA+B,CAAC;IACtG,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,CAAC,8CAAqB,CAAC;IACpC,UAAU,EAAE,CAAC,uDAAyB,CAAC;IACvC,QAAQ,EAAE,CAAC,iDAAsB,CAAC;CACrC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./commands"), exports);
|
|
17
18
|
__exportStar(require("./controllers"), exports);
|
|
18
19
|
__exportStar(require("./interfaces"), exports);
|
|
19
20
|
__exportStar(require("./middlewares"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/development/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAAA,+CAA6B;AAAA,gDAA8B;AAAA,+CAA6B;AAAA,6CAA2B;AAAA,uDAAoC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/development/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAAA,gDAA8B;AAAA,+CAA6B;AAAA,gDAA8B;AAAA,+CAA6B;AAAA,6CAA2B;AAAA,uDAAoC"}
|
|
@@ -10,6 +10,7 @@ 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
12
|
const child_menu_entity_1 = require("../../access/entities/child.menu.entity");
|
|
13
|
+
const form_script_entity_1 = require("../../access/entities/form.script.entity");
|
|
13
14
|
const listing_column_entity_1 = require("../../access/entities/listing.column.entity");
|
|
14
15
|
const listing_page_entity_1 = require("../../access/entities/listing.page.entity");
|
|
15
16
|
const listing_preference_entity_1 = require("../../access/entities/listing.preference.entity");
|
|
@@ -35,6 +36,7 @@ let DevelopmentEntityRegistry = class DevelopmentEntityRegistry {
|
|
|
35
36
|
ui_action: ui_action_entity_1.UiActionEntity,
|
|
36
37
|
ui_action_role: ui_action_role_entity_1.UiActionRoleEntity,
|
|
37
38
|
report: nestjs_utility_services_1.ReportEntity,
|
|
39
|
+
form_script: form_script_entity_1.FormScriptEntity,
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
resolve(slug) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"development.entity.registry.js","sourceRoot":"","sources":["../../../src/development/registries/development.entity.registry.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAoF;AACpF,+EAA0E;AAC1E,uFAAkF;AAClF,mFAA8E;AAC9E,+FAA0F;AAC1F,iFAA4E;AAC5E,mEAA+D;AAC/D,6EAAwE;AACxE,uEAAmE;AACnE,iFAA4E;AAC5E,6EAAwE;AACxE,uFAAiF;AAQ1E,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAA/B;QACc,aAAQ,GAAwC;YAC7D,IAAI,EAAE,wBAAU;YAChB,MAAM,EAAE,4BAAY;YACpB,WAAW,EAAE,qCAAgB;YAC7B,SAAS,EAAE,iCAAc;YACzB,cAAc,EAAE,qCAAgB;YAChC,kBAAkB,EAAE,mDAAuB;YAC3C,YAAY,EAAE,uCAAiB;YAC/B,cAAc,EAAE,2CAAmB;YACnC,UAAU,EAAE,mCAAe;YAC3B,SAAS,EAAE,iCAAc;YACzB,cAAc,EAAE,0CAAkB;YAClC,MAAM,EAAE,sCAAY;
|
|
1
|
+
{"version":3,"file":"development.entity.registry.js","sourceRoot":"","sources":["../../../src/development/registries/development.entity.registry.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAC5C,oFAAoF;AACpF,+EAA0E;AAC1E,iFAA4E;AAC5E,uFAAkF;AAClF,mFAA8E;AAC9E,+FAA0F;AAC1F,iFAA4E;AAC5E,mEAA+D;AAC/D,6EAAwE;AACxE,uEAAmE;AACnE,iFAA4E;AAC5E,6EAAwE;AACxE,uFAAiF;AAQ1E,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAA/B;QACc,aAAQ,GAAwC;YAC7D,IAAI,EAAE,wBAAU;YAChB,MAAM,EAAE,4BAAY;YACpB,WAAW,EAAE,qCAAgB;YAC7B,SAAS,EAAE,iCAAc;YACzB,cAAc,EAAE,qCAAgB;YAChC,kBAAkB,EAAE,mDAAuB;YAC3C,YAAY,EAAE,uCAAiB;YAC/B,cAAc,EAAE,2CAAmB;YACnC,UAAU,EAAE,mCAAe;YAC3B,SAAS,EAAE,iCAAc;YACzB,cAAc,EAAE,0CAAkB;YAClC,MAAM,EAAE,sCAAY;YACpB,WAAW,EAAE,qCAAgB;SAChC,CAAC;IASN,CAAC;IAPG,OAAO,CAAC,IAAY;QAChB,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,KAAK;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;CACJ,CAAA;AAxBY,8DAAyB;oCAAzB,yBAAyB;IADrC,IAAA,mBAAU,GAAE;GACA,yBAAyB,CAwBrC"}
|
|
@@ -61,6 +61,11 @@ const ui_action_role_delete_tool_1 = require("./ui_action_role/ui.action.role.de
|
|
|
61
61
|
const ui_action_role_get_tool_1 = require("./ui_action_role/ui.action.role.get.tool");
|
|
62
62
|
const ui_action_role_list_tool_1 = require("./ui_action_role/ui.action.role.list.tool");
|
|
63
63
|
const ui_action_role_update_tool_1 = require("./ui_action_role/ui.action.role.update.tool");
|
|
64
|
+
const form_script_create_tool_1 = require("./form_script/form.script.create.tool");
|
|
65
|
+
const form_script_delete_tool_1 = require("./form_script/form.script.delete.tool");
|
|
66
|
+
const form_script_get_tool_1 = require("./form_script/form.script.get.tool");
|
|
67
|
+
const form_script_list_tool_1 = require("./form_script/form.script.list.tool");
|
|
68
|
+
const form_script_update_tool_1 = require("./form_script/form.script.update.tool");
|
|
64
69
|
class AdminToolRegistry {
|
|
65
70
|
constructor(client) {
|
|
66
71
|
this.client = client;
|
|
@@ -127,6 +132,11 @@ class AdminToolRegistry {
|
|
|
127
132
|
new report_create_tool_1.ReportCreateTool(this.client),
|
|
128
133
|
new report_update_tool_1.ReportUpdateTool(this.client),
|
|
129
134
|
new report_delete_tool_1.ReportDeleteTool(this.client),
|
|
135
|
+
new form_script_list_tool_1.FormScriptListTool(this.client),
|
|
136
|
+
new form_script_get_tool_1.FormScriptGetTool(this.client),
|
|
137
|
+
new form_script_create_tool_1.FormScriptCreateTool(this.client),
|
|
138
|
+
new form_script_update_tool_1.FormScriptUpdateTool(this.client),
|
|
139
|
+
new form_script_delete_tool_1.FormScriptDeleteTool(this.client),
|
|
130
140
|
];
|
|
131
141
|
}
|
|
132
142
|
}
|
|
@@ -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;
|
|
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,mFAA6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AI,CAAC,MAAM,CAAC;YACjC,IAAI,oCAAe,CAAC,IAAI,CAAC,MAAM,CAAC;YAChC,IAAI,0CAAkB,CAAC,IAAI,CAAC,MAAM,CAAC;YACnC,IAAI,0CAAkB,CAAC,IAAI,CAAC,MAAM,CAAC;YACnC,IAAI,0CAAkB,CAAC,IAAI,CAAC,MAAM,CAAC;YACnC,IAAI,+CAAoB,CAAC,IAAI,CAAC,MAAM,CAAC;YACrC,IAAI,6CAAmB,CAAC,IAAI,CAAC,MAAM,CAAC;YACpC,IAAI,mDAAsB,CAAC,IAAI,CAAC,MAAM,CAAC;YACvC,IAAI,mDAAsB,CAAC,IAAI,CAAC,MAAM,CAAC;YACvC,IAAI,mDAAsB,CAAC,IAAI,CAAC,MAAM,CAAC;YACvC,IAAI,iCAAc,CAAC,IAAI,CAAC,MAAM,CAAC;YAC/B,IAAI,+BAAa,CAAC,IAAI,CAAC,MAAM,CAAC;YAC9B,IAAI,qCAAgB,CAAC,IAAI,CAAC,MAAM,CAAC;YACjC,IAAI,qCAAgB,CAAC,IAAI,CAAC,MAAM,CAAC;YACjC,IAAI,qCAAgB,CAAC,IAAI,CAAC,MAAM,CAAC;YACjC,IAAI,0CAAkB,CAAC,IAAI,CAAC,MAAM,CAAC;YACnC,IAAI,wCAAiB,CAAC,IAAI,CAAC,MAAM,CAAC;YAClC,IAAI,8CAAoB,CAAC,IAAI,CAAC,MAAM,CAAC;YACrC,IAAI,8CAAoB,CAAC,IAAI,CAAC,MAAM,CAAC;YACrC,IAAI,8CAAoB,CAAC,IAAI,CAAC,MAAM,CAAC;SACxC,CAAC;IACN,CAAC;CACJ;AAxED,8CAwEC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { McpToolResultInterface } from '../../../interfaces/mcp.tool.result.interface';
|
|
3
|
+
import { McpTool } from '../../../tools/mcp.tool';
|
|
4
|
+
type FormScriptCreateInput = {
|
|
5
|
+
business_id?: number | null;
|
|
6
|
+
name: string;
|
|
7
|
+
identifier: string;
|
|
8
|
+
script: string;
|
|
9
|
+
priority: number;
|
|
10
|
+
columns?: string;
|
|
11
|
+
activity_type_id?: number;
|
|
12
|
+
active?: boolean;
|
|
13
|
+
description?: string;
|
|
14
|
+
attributes?: Record<string, unknown>;
|
|
15
|
+
};
|
|
16
|
+
export declare class FormScriptCreateTool extends McpTool<FormScriptCreateInput> {
|
|
17
|
+
readonly name = "form_script_create";
|
|
18
|
+
readonly title = "Create form script (admin)";
|
|
19
|
+
readonly description = "Create a form_script record and its linked system_script body (admin/development only). Returns the row with script text.";
|
|
20
|
+
readonly inputSchema: {
|
|
21
|
+
business_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
identifier: z.ZodString;
|
|
24
|
+
script: z.ZodString;
|
|
25
|
+
priority: z.ZodNumber;
|
|
26
|
+
columns: z.ZodOptional<z.ZodString>;
|
|
27
|
+
activity_type_id: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
description: z.ZodOptional<z.ZodString>;
|
|
30
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
31
|
+
};
|
|
32
|
+
execute(args: FormScriptCreateInput): Promise<McpToolResultInterface>;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormScriptCreateTool = 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
|
|
8
|
+
.number()
|
|
9
|
+
.int()
|
|
10
|
+
.positive()
|
|
11
|
+
.nullable()
|
|
12
|
+
.optional()
|
|
13
|
+
.describe('Business id when scoped to one business; omit or null for a global script.'),
|
|
14
|
+
name: zod_1.z.string().describe('Internal script name (lifecycle slot, e.g. on_load).'),
|
|
15
|
+
identifier: zod_1.z.string().describe('Ui action name this script is keyed to.'),
|
|
16
|
+
script: zod_1.z.string().describe('Executable script body stored on the linked system_script row.'),
|
|
17
|
+
priority: zod_1.z.number().int().describe('Execution order (lower runs first).'),
|
|
18
|
+
columns: zod_1.z.string().optional().describe('Comma-separated column names this script applies to.'),
|
|
19
|
+
activity_type_id: zod_1.z.number().int().positive().optional().describe('Lookup value for activity type (FK activity_type_id).'),
|
|
20
|
+
active: zod_1.z.boolean().optional().describe('Whether the script is active.'),
|
|
21
|
+
description: zod_1.z.string().optional().describe('Human-readable description.'),
|
|
22
|
+
attributes: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional().describe('Arbitrary JSON attributes.'),
|
|
23
|
+
};
|
|
24
|
+
class FormScriptCreateTool extends mcp_tool_1.McpTool {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
this.name = 'form_script_create';
|
|
28
|
+
this.title = 'Create form script (admin)';
|
|
29
|
+
this.description = 'Create a form_script record and its linked system_script body (admin/development only). Returns the row with script text.';
|
|
30
|
+
this.inputSchema = inputSchema;
|
|
31
|
+
}
|
|
32
|
+
execute(args) {
|
|
33
|
+
return this.run(() => this.client.request({ method: 'POST', path: 'development/form_script/upsert', body: args }));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.FormScriptCreateTool = FormScriptCreateTool;
|
|
37
|
+
//# sourceMappingURL=form.script.create.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.script.create.tool.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/form_script/form.script.create.tool.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,sDAAkD;AAElD,MAAM,WAAW,GAAG;IAChB,WAAW,EAAE,OAAC;SACT,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAA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C,GAAG,CAAC,GAAG,EAAE,CACjB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gCAAgC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAC9F,CAAC;IACN,CAAC;CACJ;AAZD,oDAYC"}
|
|
@@ -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 FormScriptDeleteInput = {
|
|
5
|
+
id: number;
|
|
6
|
+
};
|
|
7
|
+
export declare class FormScriptDeleteTool extends McpTool<FormScriptDeleteInput> {
|
|
8
|
+
readonly name = "form_script_delete";
|
|
9
|
+
readonly title = "Delete form script (admin)";
|
|
10
|
+
readonly description = "Soft-delete a form_script record by id (sets deleted_at). Admin/development only.";
|
|
11
|
+
readonly inputSchema: {
|
|
12
|
+
id: z.ZodNumber;
|
|
13
|
+
};
|
|
14
|
+
protected readonly destructive = true;
|
|
15
|
+
execute(args: FormScriptDeleteInput): Promise<McpToolResultInterface>;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormScriptDeleteTool = 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 form_script row to soft-delete.'),
|
|
8
|
+
};
|
|
9
|
+
class FormScriptDeleteTool extends mcp_tool_1.McpTool {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.name = 'form_script_delete';
|
|
13
|
+
this.title = 'Delete form script (admin)';
|
|
14
|
+
this.description = 'Soft-delete a form_script record by id (sets deleted_at). Admin/development only.';
|
|
15
|
+
this.inputSchema = inputSchema;
|
|
16
|
+
this.destructive = true;
|
|
17
|
+
}
|
|
18
|
+
execute(args) {
|
|
19
|
+
return this.run(() => this.client.request({ method: 'DELETE', path: `development/form_script/${args.id}` }));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.FormScriptDeleteTool = FormScriptDeleteTool;
|
|
23
|
+
//# sourceMappingURL=form.script.delete.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.script.delete.tool.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/form_script/form.script.delete.tool.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,sDAAkD;AAElD,MAAM,WAAW,GAAG;IAChB,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;CACxF,CAAC;AAOF,MAAa,oBAAqB,SAAQ,kBAA8B;IAAxE;;QACa,SAAI,GAAG,oBAAoB,CAAC;QAC5B,UAAK,GAAG,4BAA4B,CAAC;QACrC,gBAAW,GAAG,mFAAmF,CAAC;QAClG,gBAAW,GAAG,WAAW,CAAC;QAChB,gBAAW,GAAG,IAAI,CAAC;IAK1C,CAAC;IAHG,OAAO,CAAC,IAA2B;QAC/B,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,2BAA2B,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IACjH,CAAC;CACJ;AAVD,oDAUC"}
|
|
@@ -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 FormScriptGetInput = {
|
|
5
|
+
id: number;
|
|
6
|
+
};
|
|
7
|
+
export declare class FormScriptGetTool extends McpTool<FormScriptGetInput> {
|
|
8
|
+
readonly name = "form_script_get";
|
|
9
|
+
readonly title = "Get form script (admin)";
|
|
10
|
+
readonly description = "Fetch a form_script record with its linked script body (admin/development only).";
|
|
11
|
+
readonly inputSchema: {
|
|
12
|
+
id: z.ZodNumber;
|
|
13
|
+
};
|
|
14
|
+
protected readonly readOnly = true;
|
|
15
|
+
execute(args: FormScriptGetInput): Promise<McpToolResultInterface>;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormScriptGetTool = 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 form_script row to fetch.'),
|
|
8
|
+
};
|
|
9
|
+
class FormScriptGetTool extends mcp_tool_1.McpTool {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.name = 'form_script_get';
|
|
13
|
+
this.title = 'Get form script (admin)';
|
|
14
|
+
this.description = 'Fetch a form_script record with its linked script body (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/form_script/${args.id}/full` }));
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.FormScriptGetTool = FormScriptGetTool;
|
|
23
|
+
//# sourceMappingURL=form.script.get.tool.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.script.get.tool.js","sourceRoot":"","sources":["../../../../../src/mcp/admin/tools/form_script/form.script.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,qCAAqC,CAAC;CAClF,CAAC;AAOF,MAAa,iBAAkB,SAAQ,kBAA2B;IAAlE;;QACa,SAAI,GAAG,iBAAiB,CAAC;QACzB,UAAK,GAAG,yBAAyB,CAAC;QAClC,gBAAW,GAAG,kFAAkF,CAAC;QACjG,gBAAW,GAAG,WAAW,CAAC;QAChB,aAAQ,GAAG,IAAI,CAAC;IAKvC,CAAC;IAHG,OAAO,CAAC,IAAwB;QAC5B,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,2BAA2B,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IACnH,CAAC;CACJ;AAVD,8CAUC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { McpToolResultInterface } from '../../../interfaces/mcp.tool.result.interface';
|
|
3
|
+
import { McpTool } from '../../../tools/mcp.tool';
|
|
4
|
+
type FormScriptListInput = {
|
|
5
|
+
limit?: number;
|
|
6
|
+
offset?: number;
|
|
7
|
+
order?: string;
|
|
8
|
+
filter?: Record<string, unknown>;
|
|
9
|
+
};
|
|
10
|
+
export declare class FormScriptListTool extends McpTool<FormScriptListInput> {
|
|
11
|
+
readonly name = "form_script_list";
|
|
12
|
+
readonly title = "List form scripts (admin)";
|
|
13
|
+
readonly description = "List form_script records with paging, ordering, and column-equality filters (admin/development only).";
|
|
14
|
+
readonly inputSchema: {
|
|
15
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
order: z.ZodOptional<z.ZodString>;
|
|
18
|
+
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
19
|
+
};
|
|
20
|
+
protected readonly readOnly = true;
|
|
21
|
+
execute(args: FormScriptListInput): Promise<McpToolResultInterface>;
|
|
22
|
+
}
|
|
23
|
+
export {};
|