complexqa_frontend_core 2.8.1 → 2.9.1
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/package.json +1 -1
- package/src/api/index.js +12 -0
- package/src/api/mcp_testing/mcp_call_api.js +51 -1
- package/src/api/mcp_testing/mcp_call_expected_output_value_api.js +16 -0
- package/src/api/mcp_testing/mcp_call_expected_text_content_api.js +16 -0
- package/src/api/mcp_testing/mcp_call_run_api.js +64 -0
- package/src/api/mcp_testing/mcp_call_run_item_api.js +16 -0
- package/src/api/mcp_testing/mcp_call_run_job_api.js +16 -0
- package/src/api/mcp_testing/mcp_call_run_result_api.js +16 -0
- package/src/index.js +6 -0
- package/src/types/element_translate/typeMcpCall.i18n.js +40 -1
- package/src/types/element_translate/typeMcpCallExpectedOutputValue.i18n.js +107 -0
- package/src/types/element_translate/typeMcpCallExpectedTextContent.i18n.js +54 -0
- package/src/types/element_translate/typeMcpCallRun.i18n.js +95 -0
- package/src/types/element_translate/typeMcpCallRunItem.i18n.js +42 -0
- package/src/types/element_translate/typeMcpCallRunJob.i18n.js +115 -0
- package/src/types/element_translate/typeMcpCallRunResult.i18n.js +99 -0
- package/src/types/family_mcp_testing/typeMcpCall.js +12 -1
- package/src/types/family_mcp_testing/typeMcpCallExpectedOutputValue.js +80 -0
- package/src/types/family_mcp_testing/typeMcpCallExpectedTextContent.js +68 -0
- package/src/types/family_mcp_testing/typeMcpCallRun.js +85 -0
- package/src/types/family_mcp_testing/typeMcpCallRunItem.js +69 -0
- package/src/types/family_mcp_testing/typeMcpCallRunJob.js +86 -0
- package/src/types/family_mcp_testing/typeMcpCallRunResult.js +83 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Переводы для typeMcpCallRunJob. Локали en, ru, tt, kk.
|
|
3
|
+
*
|
|
4
|
+
* @see typeMcpCallRunJob
|
|
5
|
+
*/
|
|
6
|
+
export const typeMcpCallRunJob_i18n = {
|
|
7
|
+
attribute_name_translate_matrix: {
|
|
8
|
+
en: {
|
|
9
|
+
mcp_call_run_job_id: 'ID',
|
|
10
|
+
mcp_call_run_id: 'Run ID',
|
|
11
|
+
mcp_call_id: 'Call ID',
|
|
12
|
+
mcp_server_id: 'MCP Server ID',
|
|
13
|
+
team_id: 'Team',
|
|
14
|
+
project_id: 'Project',
|
|
15
|
+
job_status: 'Job status',
|
|
16
|
+
attempt_no: 'Attempt',
|
|
17
|
+
worker_id: 'Worker',
|
|
18
|
+
claimed_at: 'Claimed at',
|
|
19
|
+
heartbeat_at: 'Heartbeat at',
|
|
20
|
+
error_class: 'Error class',
|
|
21
|
+
created_at: 'Created at',
|
|
22
|
+
updated_at: 'Updated at',
|
|
23
|
+
},
|
|
24
|
+
ru: {
|
|
25
|
+
mcp_call_run_job_id: 'ID',
|
|
26
|
+
mcp_call_run_id: 'Прогон ID',
|
|
27
|
+
mcp_call_id: 'Вызов ID',
|
|
28
|
+
mcp_server_id: 'MCP Сервер ID',
|
|
29
|
+
team_id: 'Команда',
|
|
30
|
+
project_id: 'Проект',
|
|
31
|
+
job_status: 'Статус задания',
|
|
32
|
+
attempt_no: 'Попытка',
|
|
33
|
+
worker_id: 'Процесс',
|
|
34
|
+
claimed_at: 'Забрано',
|
|
35
|
+
heartbeat_at: 'Пульс',
|
|
36
|
+
error_class: 'Класс ошибки',
|
|
37
|
+
created_at: 'Создано',
|
|
38
|
+
updated_at: 'Изменено',
|
|
39
|
+
},
|
|
40
|
+
tt: {
|
|
41
|
+
mcp_call_run_job_id: 'ID',
|
|
42
|
+
mcp_call_run_id: 'Йөгерү ID',
|
|
43
|
+
mcp_call_id: 'Чакыру ID',
|
|
44
|
+
mcp_server_id: 'MCP Сервер ID',
|
|
45
|
+
team_id: 'Команда',
|
|
46
|
+
project_id: 'Проект',
|
|
47
|
+
job_status: 'Бирем статусы',
|
|
48
|
+
attempt_no: 'Омтылу',
|
|
49
|
+
worker_id: 'Процесс',
|
|
50
|
+
claimed_at: 'Алынган',
|
|
51
|
+
heartbeat_at: 'Пульс',
|
|
52
|
+
error_class: 'Хата сыйныфы',
|
|
53
|
+
created_at: 'Ясалган',
|
|
54
|
+
updated_at: 'Яңартылган',
|
|
55
|
+
},
|
|
56
|
+
kk: {
|
|
57
|
+
mcp_call_run_job_id: 'ID',
|
|
58
|
+
mcp_call_run_id: 'Жүгіру ID',
|
|
59
|
+
mcp_call_id: 'Шақыру ID',
|
|
60
|
+
mcp_server_id: 'MCP сервер ID',
|
|
61
|
+
team_id: 'Команда',
|
|
62
|
+
project_id: 'Жоба',
|
|
63
|
+
job_status: 'Тапсырма күйі',
|
|
64
|
+
attempt_no: 'Әрекет',
|
|
65
|
+
worker_id: 'Процесс',
|
|
66
|
+
claimed_at: 'Алынған',
|
|
67
|
+
heartbeat_at: 'Пульс',
|
|
68
|
+
error_class: 'Қате сыныбы',
|
|
69
|
+
created_at: 'Құрылған',
|
|
70
|
+
updated_at: 'Жаңартылған',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
enum_value_translate_matrix: {
|
|
74
|
+
en: {
|
|
75
|
+
PENDING: 'Pending',
|
|
76
|
+
CLAIMED: 'Claimed',
|
|
77
|
+
RUNNING: 'Running',
|
|
78
|
+
DONE: 'Done',
|
|
79
|
+
CANCELLED: 'Cancelled',
|
|
80
|
+
NONE: 'None',
|
|
81
|
+
FAILED: 'Failed',
|
|
82
|
+
ERROR: 'Error',
|
|
83
|
+
},
|
|
84
|
+
ru: {
|
|
85
|
+
PENDING: 'Ожидает',
|
|
86
|
+
CLAIMED: 'Забрано',
|
|
87
|
+
RUNNING: 'Выполняется',
|
|
88
|
+
DONE: 'Готово',
|
|
89
|
+
CANCELLED: 'Отменено',
|
|
90
|
+
NONE: 'Нет',
|
|
91
|
+
FAILED: 'Разошлось',
|
|
92
|
+
ERROR: 'Ошибка',
|
|
93
|
+
},
|
|
94
|
+
tt: {
|
|
95
|
+
PENDING: 'Көтә',
|
|
96
|
+
CLAIMED: 'Алынган',
|
|
97
|
+
RUNNING: 'Бара',
|
|
98
|
+
DONE: 'Әзер',
|
|
99
|
+
CANCELLED: 'Кире алынган',
|
|
100
|
+
NONE: 'Юк',
|
|
101
|
+
FAILED: 'Аермалы',
|
|
102
|
+
ERROR: 'Хата',
|
|
103
|
+
},
|
|
104
|
+
kk: {
|
|
105
|
+
PENDING: 'Күту',
|
|
106
|
+
CLAIMED: 'Алынған',
|
|
107
|
+
RUNNING: 'Орындалуда',
|
|
108
|
+
DONE: 'Дайын',
|
|
109
|
+
CANCELLED: 'Бас тартылды',
|
|
110
|
+
NONE: 'Жоқ',
|
|
111
|
+
FAILED: 'Айырмашылық',
|
|
112
|
+
ERROR: 'Қате',
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Переводы для typeMcpCallRunResult. Локали en, ru, tt, kk.
|
|
3
|
+
*
|
|
4
|
+
* @see typeMcpCallRunResult
|
|
5
|
+
*/
|
|
6
|
+
export const typeMcpCallRunResult_i18n = {
|
|
7
|
+
attribute_name_translate_matrix: {
|
|
8
|
+
en: {
|
|
9
|
+
mcp_call_run_result_id: 'ID',
|
|
10
|
+
mcp_call_run_id: 'Run ID',
|
|
11
|
+
mcp_call_id: 'Call ID',
|
|
12
|
+
mcp_call_result_id: 'Result ID',
|
|
13
|
+
mcp_server_id: 'MCP Server ID',
|
|
14
|
+
team_id: 'Team',
|
|
15
|
+
project_id: 'Project',
|
|
16
|
+
mcp_call_run_result_status: 'Verdict',
|
|
17
|
+
failure_reason: 'Failure reason',
|
|
18
|
+
started_at: 'Started at',
|
|
19
|
+
finished_at: 'Finished at',
|
|
20
|
+
created_at: 'Created at',
|
|
21
|
+
updated_at: 'Updated at',
|
|
22
|
+
},
|
|
23
|
+
ru: {
|
|
24
|
+
mcp_call_run_result_id: 'ID',
|
|
25
|
+
mcp_call_run_id: 'Прогон ID',
|
|
26
|
+
mcp_call_id: 'Вызов ID',
|
|
27
|
+
mcp_call_result_id: 'Ответ ID',
|
|
28
|
+
mcp_server_id: 'MCP Сервер ID',
|
|
29
|
+
team_id: 'Команда',
|
|
30
|
+
project_id: 'Проект',
|
|
31
|
+
mcp_call_run_result_status: 'Вердикт',
|
|
32
|
+
failure_reason: 'Причина',
|
|
33
|
+
started_at: 'Начато',
|
|
34
|
+
finished_at: 'Закончено',
|
|
35
|
+
created_at: 'Создано',
|
|
36
|
+
updated_at: 'Изменено',
|
|
37
|
+
},
|
|
38
|
+
tt: {
|
|
39
|
+
mcp_call_run_result_id: 'ID',
|
|
40
|
+
mcp_call_run_id: 'Йөгерү ID',
|
|
41
|
+
mcp_call_id: 'Чакыру ID',
|
|
42
|
+
mcp_call_result_id: 'Җавап ID',
|
|
43
|
+
mcp_server_id: 'MCP Сервер ID',
|
|
44
|
+
team_id: 'Команда',
|
|
45
|
+
project_id: 'Проект',
|
|
46
|
+
mcp_call_run_result_status: 'Нәтиҗә',
|
|
47
|
+
failure_reason: 'Сәбәп',
|
|
48
|
+
started_at: 'Башланган',
|
|
49
|
+
finished_at: 'Беткән',
|
|
50
|
+
created_at: 'Ясалган',
|
|
51
|
+
updated_at: 'Яңартылган',
|
|
52
|
+
},
|
|
53
|
+
kk: {
|
|
54
|
+
mcp_call_run_result_id: 'ID',
|
|
55
|
+
mcp_call_run_id: 'Жүгіру ID',
|
|
56
|
+
mcp_call_id: 'Шақыру ID',
|
|
57
|
+
mcp_call_result_id: 'Жауап ID',
|
|
58
|
+
mcp_server_id: 'MCP сервер ID',
|
|
59
|
+
team_id: 'Команда',
|
|
60
|
+
project_id: 'Жоба',
|
|
61
|
+
mcp_call_run_result_status: 'Нәтиже',
|
|
62
|
+
failure_reason: 'Себебі',
|
|
63
|
+
started_at: 'Басталған',
|
|
64
|
+
finished_at: 'Аяқталған',
|
|
65
|
+
created_at: 'Құрылған',
|
|
66
|
+
updated_at: 'Жаңартылған',
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
enum_value_translate_matrix: {
|
|
70
|
+
en: {
|
|
71
|
+
PENDING: 'Pending',
|
|
72
|
+
PASSED: 'Passed',
|
|
73
|
+
FAILED: 'Failed',
|
|
74
|
+
SKIPPED: 'Skipped',
|
|
75
|
+
ERROR: 'Error',
|
|
76
|
+
},
|
|
77
|
+
ru: {
|
|
78
|
+
PENDING: 'Ожидает',
|
|
79
|
+
PASSED: 'Совпало',
|
|
80
|
+
FAILED: 'Разошлось',
|
|
81
|
+
SKIPPED: 'Пропущен',
|
|
82
|
+
ERROR: 'Ошибка',
|
|
83
|
+
},
|
|
84
|
+
tt: {
|
|
85
|
+
PENDING: 'Көтә',
|
|
86
|
+
PASSED: 'Туры килде',
|
|
87
|
+
FAILED: 'Аермалы',
|
|
88
|
+
SKIPPED: 'Калдырылган',
|
|
89
|
+
ERROR: 'Хата',
|
|
90
|
+
},
|
|
91
|
+
kk: {
|
|
92
|
+
PENDING: 'Күту',
|
|
93
|
+
PASSED: 'Сәйкес',
|
|
94
|
+
FAILED: 'Айырмашылық',
|
|
95
|
+
SKIPPED: 'Өткізілді',
|
|
96
|
+
ERROR: 'Қате',
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
};
|
|
@@ -5,7 +5,7 @@ import { register_type_class } from "../core/type_class_resolver.js";
|
|
|
5
5
|
import _ from 'underscore';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* @version v.1.0 (
|
|
8
|
+
* @version v.1.0 (02/11/2026)
|
|
9
9
|
*/
|
|
10
10
|
export class typeMcpCall extends familyMcpTesting
|
|
11
11
|
{
|
|
@@ -17,6 +17,9 @@ export class typeMcpCall extends familyMcpTesting
|
|
|
17
17
|
project_id;
|
|
18
18
|
mcp_call_title;
|
|
19
19
|
tool_name;
|
|
20
|
+
mcp_call_status;
|
|
21
|
+
expected_result_code;
|
|
22
|
+
expected_source_mcp_call_result_id;
|
|
20
23
|
created_by_user_id;
|
|
21
24
|
created_at;
|
|
22
25
|
updated_at;
|
|
@@ -35,6 +38,9 @@ export class typeMcpCall extends familyMcpTesting
|
|
|
35
38
|
project_id: 'integer | require',
|
|
36
39
|
mcp_call_title: 'string | require',
|
|
37
40
|
tool_name: 'string | require',
|
|
41
|
+
mcp_call_status: 'string | enum | require',
|
|
42
|
+
expected_result_code: 'string | enum | optional',
|
|
43
|
+
expected_source_mcp_call_result_id: 'integer | typeMcpCallResult | optional',
|
|
38
44
|
created_by_user_id: 'integer | typeUser | require',
|
|
39
45
|
created_at: 'timestamp | require',
|
|
40
46
|
updated_at: 'timestamp | require',
|
|
@@ -46,6 +52,11 @@ export class typeMcpCall extends familyMcpTesting
|
|
|
46
52
|
'field_values',
|
|
47
53
|
];
|
|
48
54
|
|
|
55
|
+
available_enum_values = {
|
|
56
|
+
mcp_call_status: [ 'PENDING', 'READY', 'DISABLED' ],
|
|
57
|
+
expected_result_code: [ 'SUCCESS', 'TOOL_ERROR' ],
|
|
58
|
+
};
|
|
59
|
+
|
|
49
60
|
enum_value_translate_matrix = typeMcpCall_i18n.enum_value_translate_matrix;
|
|
50
61
|
attribute_name_translate_matrix = typeMcpCall_i18n.attribute_name_translate_matrix;
|
|
51
62
|
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { is_object } from "../../utils/utils.js";
|
|
2
|
+
import { familyMcpTesting } from "./familyMcpTesting.js";
|
|
3
|
+
import { typeMcpCallExpectedOutputValue_i18n } from "../element_translate/typeMcpCallExpectedOutputValue.i18n.js";
|
|
4
|
+
import { register_type_class } from "../core/type_class_resolver.js";
|
|
5
|
+
import _ from 'underscore';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @version v.1.0 (03/11/2026)
|
|
9
|
+
*/
|
|
10
|
+
export class typeMcpCallExpectedOutputValue extends familyMcpTesting
|
|
11
|
+
{
|
|
12
|
+
mcp_call_expected_output_value_id;
|
|
13
|
+
mcp_call_id;
|
|
14
|
+
mcp_snapshot_tool_field_id;
|
|
15
|
+
mcp_server_snapshot_id;
|
|
16
|
+
mcp_server_id;
|
|
17
|
+
team_id;
|
|
18
|
+
project_id;
|
|
19
|
+
value_position;
|
|
20
|
+
value_kind;
|
|
21
|
+
value_string;
|
|
22
|
+
value_number_text;
|
|
23
|
+
value_number_decimal;
|
|
24
|
+
value_boolean;
|
|
25
|
+
created_at;
|
|
26
|
+
|
|
27
|
+
primary_key = 'mcp_call_expected_output_value_id';
|
|
28
|
+
api_key = 'mcp_call_expected_output_value';
|
|
29
|
+
clone_element = false;
|
|
30
|
+
clone_element_mass = false;
|
|
31
|
+
|
|
32
|
+
structure_scheme = {
|
|
33
|
+
mcp_call_expected_output_value_id: 'integer | require',
|
|
34
|
+
mcp_call_id: 'integer | typeMcpCall | require',
|
|
35
|
+
mcp_snapshot_tool_field_id: 'integer | typeMcpSnapshotToolField | require',
|
|
36
|
+
mcp_server_snapshot_id: 'integer | typeMcpServerSnapshot | require',
|
|
37
|
+
mcp_server_id: 'integer | typeMcpServer | require',
|
|
38
|
+
team_id: 'integer | require',
|
|
39
|
+
project_id: 'integer | require',
|
|
40
|
+
value_position: 'integer | require',
|
|
41
|
+
value_kind: 'string | enum | require',
|
|
42
|
+
value_string: 'string | optional',
|
|
43
|
+
value_number_text: 'string | optional',
|
|
44
|
+
value_number_decimal: 'string | optional',
|
|
45
|
+
value_boolean: 'integer | optional',
|
|
46
|
+
created_at: 'timestamp | require',
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
create_scheme = [];
|
|
50
|
+
|
|
51
|
+
available_enum_values = {
|
|
52
|
+
value_kind: [ 'STRING', 'NUMBER', 'BOOLEAN', 'NULL', 'EMPTY_ARRAY', 'EMPTY_OBJECT' ],
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
enum_value_translate_matrix = typeMcpCallExpectedOutputValue_i18n.enum_value_translate_matrix;
|
|
56
|
+
attribute_name_translate_matrix = typeMcpCallExpectedOutputValue_i18n.attribute_name_translate_matrix;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @param {object|false|undefined} data
|
|
60
|
+
*/
|
|
61
|
+
constructor(data = false)
|
|
62
|
+
{
|
|
63
|
+
super();
|
|
64
|
+
|
|
65
|
+
if (data && is_object(data))
|
|
66
|
+
{
|
|
67
|
+
_.mapObject(data, (value, key) =>
|
|
68
|
+
{
|
|
69
|
+
if (this.hasOwnProperty(key))
|
|
70
|
+
{
|
|
71
|
+
this[ key ] = value;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return this;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
register_type_class('typeMcpCallExpectedOutputValue', typeMcpCallExpectedOutputValue);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { is_object } from "../../utils/utils.js";
|
|
2
|
+
import { familyMcpTesting } from "./familyMcpTesting.js";
|
|
3
|
+
import { typeMcpCallExpectedTextContent_i18n } from "../element_translate/typeMcpCallExpectedTextContent.i18n.js";
|
|
4
|
+
import { register_type_class } from "../core/type_class_resolver.js";
|
|
5
|
+
import _ from 'underscore';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @version v.1.0 (03/11/2026)
|
|
9
|
+
*/
|
|
10
|
+
export class typeMcpCallExpectedTextContent extends familyMcpTesting
|
|
11
|
+
{
|
|
12
|
+
mcp_call_expected_text_content_id;
|
|
13
|
+
mcp_call_id;
|
|
14
|
+
mcp_server_snapshot_id;
|
|
15
|
+
mcp_server_id;
|
|
16
|
+
team_id;
|
|
17
|
+
project_id;
|
|
18
|
+
sort_order;
|
|
19
|
+
text_body;
|
|
20
|
+
created_at;
|
|
21
|
+
|
|
22
|
+
primary_key = 'mcp_call_expected_text_content_id';
|
|
23
|
+
api_key = 'mcp_call_expected_text_content';
|
|
24
|
+
clone_element = false;
|
|
25
|
+
clone_element_mass = false;
|
|
26
|
+
|
|
27
|
+
structure_scheme = {
|
|
28
|
+
mcp_call_expected_text_content_id: 'integer | require',
|
|
29
|
+
mcp_call_id: 'integer | typeMcpCall | require',
|
|
30
|
+
mcp_server_snapshot_id: 'integer | typeMcpServerSnapshot | require',
|
|
31
|
+
mcp_server_id: 'integer | typeMcpServer | require',
|
|
32
|
+
team_id: 'integer | require',
|
|
33
|
+
project_id: 'integer | require',
|
|
34
|
+
sort_order: 'integer | require',
|
|
35
|
+
text_body: 'string | require',
|
|
36
|
+
created_at: 'timestamp | require',
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
create_scheme = [];
|
|
40
|
+
|
|
41
|
+
available_enum_values = {};
|
|
42
|
+
|
|
43
|
+
enum_value_translate_matrix = typeMcpCallExpectedTextContent_i18n.enum_value_translate_matrix;
|
|
44
|
+
attribute_name_translate_matrix = typeMcpCallExpectedTextContent_i18n.attribute_name_translate_matrix;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @param {object|false|undefined} data
|
|
48
|
+
*/
|
|
49
|
+
constructor(data = false)
|
|
50
|
+
{
|
|
51
|
+
super();
|
|
52
|
+
|
|
53
|
+
if (data && is_object(data))
|
|
54
|
+
{
|
|
55
|
+
_.mapObject(data, (value, key) =>
|
|
56
|
+
{
|
|
57
|
+
if (this.hasOwnProperty(key))
|
|
58
|
+
{
|
|
59
|
+
this[ key ] = value;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return this;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
register_type_class('typeMcpCallExpectedTextContent', typeMcpCallExpectedTextContent);
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { is_object } from "../../utils/utils.js";
|
|
2
|
+
import { familyMcpTesting } from "./familyMcpTesting.js";
|
|
3
|
+
import { typeMcpCallRun_i18n } from "../element_translate/typeMcpCallRun.i18n.js";
|
|
4
|
+
import { register_type_class } from "../core/type_class_resolver.js";
|
|
5
|
+
import _ from 'underscore';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @version v.1.0 (02/11/2026)
|
|
9
|
+
*/
|
|
10
|
+
export class typeMcpCallRun extends familyMcpTesting
|
|
11
|
+
{
|
|
12
|
+
mcp_call_run_id;
|
|
13
|
+
mcp_call_run_name;
|
|
14
|
+
team_id;
|
|
15
|
+
project_id;
|
|
16
|
+
mcp_server_id;
|
|
17
|
+
mcp_call_run_status;
|
|
18
|
+
failure_reason;
|
|
19
|
+
created_by_user_id;
|
|
20
|
+
started_at;
|
|
21
|
+
finished_at;
|
|
22
|
+
created_at;
|
|
23
|
+
updated_at;
|
|
24
|
+
|
|
25
|
+
primary_key = 'mcp_call_run_id';
|
|
26
|
+
api_key = 'mcp_call_run';
|
|
27
|
+
clone_element = false;
|
|
28
|
+
clone_element_mass = false;
|
|
29
|
+
|
|
30
|
+
structure_scheme = {
|
|
31
|
+
mcp_call_run_id: 'integer | require',
|
|
32
|
+
mcp_call_run_name: 'string | optional',
|
|
33
|
+
team_id: 'integer | require',
|
|
34
|
+
project_id: 'integer | require',
|
|
35
|
+
mcp_server_id: 'integer | typeMcpServer | require',
|
|
36
|
+
mcp_call_run_status: 'string | enum | require',
|
|
37
|
+
failure_reason: 'string | optional',
|
|
38
|
+
created_by_user_id: 'integer | typeUser | require',
|
|
39
|
+
started_at: 'timestamp | optional',
|
|
40
|
+
finished_at: 'timestamp | optional',
|
|
41
|
+
created_at: 'timestamp | require',
|
|
42
|
+
updated_at: 'timestamp | require',
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
create_scheme = [
|
|
46
|
+
'mcp_server_id',
|
|
47
|
+
'mcp_call_run_name',
|
|
48
|
+
'mcp_call_ids',
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
available_enum_values = {
|
|
52
|
+
mcp_call_run_status: [ 'PENDING', 'IN_PROGRESS', 'COMPLETED', 'CANCELLED', 'ERROR' ],
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
enum_value_translate_matrix = typeMcpCallRun_i18n.enum_value_translate_matrix;
|
|
56
|
+
attribute_name_translate_matrix = typeMcpCallRun_i18n.attribute_name_translate_matrix;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @param {object|false|undefined} data
|
|
60
|
+
*/
|
|
61
|
+
constructor(data = false)
|
|
62
|
+
{
|
|
63
|
+
super();
|
|
64
|
+
|
|
65
|
+
if (data && is_object(data))
|
|
66
|
+
{
|
|
67
|
+
_.mapObject(data, (value, key) =>
|
|
68
|
+
{
|
|
69
|
+
if (this.hasOwnProperty(key))
|
|
70
|
+
{
|
|
71
|
+
this[ key ] = value;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
return this;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
get_element_name()
|
|
80
|
+
{
|
|
81
|
+
return this.mcp_call_run_name || String(this.mcp_call_run_id || '');
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
register_type_class('typeMcpCallRun', typeMcpCallRun);
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { is_object } from "../../utils/utils.js";
|
|
2
|
+
import { familyMcpTesting } from "./familyMcpTesting.js";
|
|
3
|
+
import { typeMcpCallRunItem_i18n } from "../element_translate/typeMcpCallRunItem.i18n.js";
|
|
4
|
+
import { register_type_class } from "../core/type_class_resolver.js";
|
|
5
|
+
import _ from 'underscore';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Состав прогона. Первичный ключ строки — пара mcp_call_run_id и mcp_call_id.
|
|
9
|
+
*
|
|
10
|
+
* @version v.1.0 (03/11/2026)
|
|
11
|
+
*/
|
|
12
|
+
export class typeMcpCallRunItem extends familyMcpTesting
|
|
13
|
+
{
|
|
14
|
+
mcp_call_run_id;
|
|
15
|
+
mcp_call_id;
|
|
16
|
+
mcp_server_id;
|
|
17
|
+
team_id;
|
|
18
|
+
project_id;
|
|
19
|
+
sort_order;
|
|
20
|
+
|
|
21
|
+
primary_key = 'mcp_call_run_id';
|
|
22
|
+
api_key = 'mcp_call_run_item';
|
|
23
|
+
clone_element = false;
|
|
24
|
+
clone_element_mass = false;
|
|
25
|
+
|
|
26
|
+
structure_scheme = {
|
|
27
|
+
mcp_call_run_id: 'integer | typeMcpCallRun | require',
|
|
28
|
+
mcp_call_id: 'integer | typeMcpCall | require',
|
|
29
|
+
mcp_server_id: 'integer | typeMcpServer | require',
|
|
30
|
+
team_id: 'integer | require',
|
|
31
|
+
project_id: 'integer | require',
|
|
32
|
+
sort_order: 'integer | require',
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
create_scheme = [];
|
|
36
|
+
|
|
37
|
+
available_enum_values = {};
|
|
38
|
+
|
|
39
|
+
enum_value_translate_matrix = typeMcpCallRunItem_i18n.enum_value_translate_matrix;
|
|
40
|
+
attribute_name_translate_matrix = typeMcpCallRunItem_i18n.attribute_name_translate_matrix;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @param {object|false|undefined} data
|
|
44
|
+
*/
|
|
45
|
+
constructor(data = false)
|
|
46
|
+
{
|
|
47
|
+
super();
|
|
48
|
+
|
|
49
|
+
if (data && is_object(data))
|
|
50
|
+
{
|
|
51
|
+
_.mapObject(data, (value, key) =>
|
|
52
|
+
{
|
|
53
|
+
if (this.hasOwnProperty(key))
|
|
54
|
+
{
|
|
55
|
+
this[ key ] = value;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return this;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
get_element_name()
|
|
64
|
+
{
|
|
65
|
+
return String(this.mcp_call_id || '');
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
register_type_class('typeMcpCallRunItem', typeMcpCallRunItem);
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { is_object } from "../../utils/utils.js";
|
|
2
|
+
import { familyMcpTesting } from "./familyMcpTesting.js";
|
|
3
|
+
import { typeMcpCallRunJob_i18n } from "../element_translate/typeMcpCallRunJob.i18n.js";
|
|
4
|
+
import { register_type_class } from "../core/type_class_resolver.js";
|
|
5
|
+
import _ from 'underscore';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @version v.1.0 (03/11/2026)
|
|
9
|
+
*/
|
|
10
|
+
export class typeMcpCallRunJob extends familyMcpTesting
|
|
11
|
+
{
|
|
12
|
+
mcp_call_run_job_id;
|
|
13
|
+
mcp_call_run_id;
|
|
14
|
+
mcp_call_id;
|
|
15
|
+
mcp_server_id;
|
|
16
|
+
team_id;
|
|
17
|
+
project_id;
|
|
18
|
+
job_status;
|
|
19
|
+
attempt_no;
|
|
20
|
+
worker_id;
|
|
21
|
+
claimed_at;
|
|
22
|
+
heartbeat_at;
|
|
23
|
+
error_class;
|
|
24
|
+
created_at;
|
|
25
|
+
updated_at;
|
|
26
|
+
|
|
27
|
+
primary_key = 'mcp_call_run_job_id';
|
|
28
|
+
api_key = 'mcp_call_run_job';
|
|
29
|
+
clone_element = false;
|
|
30
|
+
clone_element_mass = false;
|
|
31
|
+
|
|
32
|
+
structure_scheme = {
|
|
33
|
+
mcp_call_run_job_id: 'integer | require',
|
|
34
|
+
mcp_call_run_id: 'integer | typeMcpCallRun | require',
|
|
35
|
+
mcp_call_id: 'integer | typeMcpCall | require',
|
|
36
|
+
mcp_server_id: 'integer | typeMcpServer | require',
|
|
37
|
+
team_id: 'integer | require',
|
|
38
|
+
project_id: 'integer | require',
|
|
39
|
+
job_status: 'string | enum | require',
|
|
40
|
+
attempt_no: 'integer | require',
|
|
41
|
+
worker_id: 'string | optional',
|
|
42
|
+
claimed_at: 'timestamp | optional',
|
|
43
|
+
heartbeat_at: 'timestamp | optional',
|
|
44
|
+
error_class: 'string | enum | require',
|
|
45
|
+
created_at: 'timestamp | require',
|
|
46
|
+
updated_at: 'timestamp | require',
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
create_scheme = [];
|
|
50
|
+
|
|
51
|
+
available_enum_values = {
|
|
52
|
+
job_status: [ 'PENDING', 'CLAIMED', 'RUNNING', 'DONE', 'CANCELLED' ],
|
|
53
|
+
error_class: [ 'NONE', 'FAILED', 'ERROR' ],
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
enum_value_translate_matrix = typeMcpCallRunJob_i18n.enum_value_translate_matrix;
|
|
57
|
+
attribute_name_translate_matrix = typeMcpCallRunJob_i18n.attribute_name_translate_matrix;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @param {object|false|undefined} data
|
|
61
|
+
*/
|
|
62
|
+
constructor(data = false)
|
|
63
|
+
{
|
|
64
|
+
super();
|
|
65
|
+
|
|
66
|
+
if (data && is_object(data))
|
|
67
|
+
{
|
|
68
|
+
_.mapObject(data, (value, key) =>
|
|
69
|
+
{
|
|
70
|
+
if (this.hasOwnProperty(key))
|
|
71
|
+
{
|
|
72
|
+
this[ key ] = value;
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return this;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
get_element_name()
|
|
81
|
+
{
|
|
82
|
+
return String(this.mcp_call_run_job_id || '');
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
register_type_class('typeMcpCallRunJob', typeMcpCallRunJob);
|