@hubex/mcp 0.11.20261029 → 0.11.20261107

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.
@@ -4,14 +4,14 @@
4
4
  "title": "API for UI information",
5
5
  "description": "UI service for providing components and controls info for front-end application part",
6
6
  "contact": {
7
- "name": "SmartService Backend Team",
7
+ "name": "SmartService Development Team",
8
8
  "email": "fmbackend@melston.ru"
9
9
  },
10
10
  "version": "v1.0.0.0"
11
11
  },
12
12
  "servers": [
13
13
  {
14
- "url": "/UI"
14
+ "url": "https://dev-api.hubex.ru/fsm/UI"
15
15
  }
16
16
  ],
17
17
  "paths": {
@@ -2216,8 +2216,7 @@
2216
2216
  "in": "query",
2217
2217
  "description": "Признак выдачи удалённых ресурсов. По умолчанию возвращаются активные.",
2218
2218
  "schema": {
2219
- "type": "boolean",
2220
- "default": false
2219
+ "type": "boolean"
2221
2220
  }
2222
2221
  },
2223
2222
  {
@@ -2351,7 +2350,7 @@
2351
2350
  "Resources"
2352
2351
  ],
2353
2352
  "summary": "Создаёт ресурсы словаря",
2354
- "description": "## Пример запроса:\r\n`POST /Resources`\r\n```json\r\n[\r\n { \"code\": \"NewPluginSlot\", \"name\": \"Новый слот\" }\r\n]\r\n```\r\n## Пример успешного ответа (201):\r\n```json\r\n{\r\n \"34\": {\r\n \"id\": 34,\r\n \"code\": \"NewPluginSlot\",\r\n \"name\": \"Новый слот\"\r\n }\r\n}\r\n```\r\n## Негативные сценарии:\r\n- 400 BadRequest: пустой массив или данные ресурса некорректны. Поле id в элементе игнорируется и не передаётся дальше.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: вызывающий не является кросс-тенантным администратором.\r\n- 409 Conflict: активный код уже существует.",
2353
+ "description": "## Пример запроса:\r\n`POST /Resources`\r\n```json\r\n[\r\n { \"code\": \"NewPluginSlot\", \"name\": \"Новый слот\" }\r\n]\r\n```\r\n## Пример успешного ответа (201):\r\n```json\r\n{\r\n \"34\": {\r\n \"id\": 34,\r\n \"code\": \"NewPluginSlot\",\r\n \"name\": \"Новый слот\"\r\n }\r\n}\r\n```\r\n## Негативные сценарии:\r\n- 400 BadRequest: пустой массив или отсутствует name. Поле id в элементе игнорируется и не передаётся дальше.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: вызывающий не является кросс-тенантным администратором.\r\n- 409 Conflict: активный код уже существует.",
2355
2354
  "parameters": [
2356
2355
  {
2357
2356
  "name": "X-Application-ID",
@@ -2381,13 +2380,13 @@
2381
2380
  }
2382
2381
  ],
2383
2382
  "requestBody": {
2384
- "description": "Массив объектов с полями code и name. Поле id игнорируется и не передаётся дальше.",
2383
+ "description": "Массив объектов с полями code и name. Клиентский id не передаётся дальше.",
2385
2384
  "content": {
2386
2385
  "application/json-patch+json": {
2387
2386
  "schema": {
2388
2387
  "type": "array",
2389
2388
  "items": {
2390
- "$ref": "#/components/schemas/JToken"
2389
+ "$ref": "#/components/schemas/ResourceDto"
2391
2390
  }
2392
2391
  }
2393
2392
  },
@@ -2395,7 +2394,7 @@
2395
2394
  "schema": {
2396
2395
  "type": "array",
2397
2396
  "items": {
2398
- "$ref": "#/components/schemas/JToken"
2397
+ "$ref": "#/components/schemas/ResourceDto"
2399
2398
  }
2400
2399
  }
2401
2400
  },
@@ -2403,7 +2402,7 @@
2403
2402
  "schema": {
2404
2403
  "type": "array",
2405
2404
  "items": {
2406
- "$ref": "#/components/schemas/JToken"
2405
+ "$ref": "#/components/schemas/ResourceDto"
2407
2406
  }
2408
2407
  }
2409
2408
  },
@@ -2411,7 +2410,7 @@
2411
2410
  "schema": {
2412
2411
  "type": "array",
2413
2412
  "items": {
2414
- "$ref": "#/components/schemas/JToken"
2413
+ "$ref": "#/components/schemas/ResourceDto"
2415
2414
  }
2416
2415
  }
2417
2416
  }
@@ -2507,7 +2506,8 @@
2507
2506
  "schema": {
2508
2507
  "type": "array",
2509
2508
  "items": {
2510
- "$ref": "#/components/schemas/JToken"
2509
+ "type": "integer",
2510
+ "format": "int32"
2511
2511
  }
2512
2512
  }
2513
2513
  },
@@ -2515,7 +2515,8 @@
2515
2515
  "schema": {
2516
2516
  "type": "array",
2517
2517
  "items": {
2518
- "$ref": "#/components/schemas/JToken"
2518
+ "type": "integer",
2519
+ "format": "int32"
2519
2520
  }
2520
2521
  }
2521
2522
  },
@@ -2523,7 +2524,8 @@
2523
2524
  "schema": {
2524
2525
  "type": "array",
2525
2526
  "items": {
2526
- "$ref": "#/components/schemas/JToken"
2527
+ "type": "integer",
2528
+ "format": "int32"
2527
2529
  }
2528
2530
  }
2529
2531
  },
@@ -2531,7 +2533,8 @@
2531
2533
  "schema": {
2532
2534
  "type": "array",
2533
2535
  "items": {
2534
- "$ref": "#/components/schemas/JToken"
2536
+ "type": "integer",
2537
+ "format": "int32"
2535
2538
  }
2536
2539
  }
2537
2540
  }
@@ -2567,7 +2570,7 @@
2567
2570
  "Resources"
2568
2571
  ],
2569
2572
  "summary": "Переименовывает ресурс",
2570
- "description": "## Пример запроса:\r\n`PUT /Resources/34`\r\n```json\r\n{ \"name\": \"Слот меню\" }\r\n```\r\n## Пример успешного ответа (202):\r\nТело ответа отсутствует.\r\n## Негативные сценарии:\r\n- 400 BadRequest: отрицательный идентификатор или отсутствует имя. Поле code игнорируется и не передаётся дальше.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: вызывающий не является кросс-тенантным администратором.\r\n- 404 NotFound: ресурс отсутствует или уже удалён.",
2573
+ "description": "## Пример запроса:\r\n`PUT /Resources/34`\r\n```json\r\n{ \"name\": \"Слот меню\" }\r\n```\r\n## Пример успешного ответа (202):\r\nТело ответа отсутствует.\r\n## Негативные сценарии:\r\n- 400 BadRequest: отрицательный идентификатор, пустое тело, отсутствует имя или пустая строка name. Имя из пробелов уходит в процедуру. Поле code в теле не входит в ResourceUpdateDto.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: вызывающий не является кросс-тенантным администратором.\r\n- 404 NotFound: ресурс отсутствует или уже удалён.",
2571
2574
  "parameters": [
2572
2575
  {
2573
2576
  "name": "id",
@@ -2607,38 +2610,26 @@
2607
2610
  }
2608
2611
  ],
2609
2612
  "requestBody": {
2610
- "description": "Объект с полем name. Поле code игнорируется и не передаётся дальше.",
2613
+ "description": "ResourceUpdateDto. В переименование входит только name.",
2611
2614
  "content": {
2612
2615
  "application/json-patch+json": {
2613
2616
  "schema": {
2614
- "type": "object",
2615
- "additionalProperties": {
2616
- "$ref": "#/components/schemas/JToken"
2617
- }
2617
+ "$ref": "#/components/schemas/ResourceUpdateDto"
2618
2618
  }
2619
2619
  },
2620
2620
  "application/json": {
2621
2621
  "schema": {
2622
- "type": "object",
2623
- "additionalProperties": {
2624
- "$ref": "#/components/schemas/JToken"
2625
- }
2622
+ "$ref": "#/components/schemas/ResourceUpdateDto"
2626
2623
  }
2627
2624
  },
2628
2625
  "text/json": {
2629
2626
  "schema": {
2630
- "type": "object",
2631
- "additionalProperties": {
2632
- "$ref": "#/components/schemas/JToken"
2633
- }
2627
+ "$ref": "#/components/schemas/ResourceUpdateDto"
2634
2628
  }
2635
2629
  },
2636
2630
  "application/*+json": {
2637
2631
  "schema": {
2638
- "type": "object",
2639
- "additionalProperties": {
2640
- "$ref": "#/components/schemas/JToken"
2641
- }
2632
+ "$ref": "#/components/schemas/ResourceUpdateDto"
2642
2633
  }
2643
2634
  }
2644
2635
  }
@@ -2665,6 +2656,70 @@
2665
2656
  "Bearer": [ ]
2666
2657
  }
2667
2658
  ]
2659
+ },
2660
+ "delete": {
2661
+ "tags": [
2662
+ "Resources"
2663
+ ],
2664
+ "summary": "Помечает ресурс удалённым",
2665
+ "description": "## Пример запроса:\r\n`DELETE /Resources/256`\r\n## Пример успешного ответа (202):\r\nТело ответа отсутствует. Строка ресурса остаётся в словаре.\r\n## Негативные сценарии:\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: вызывающий не является кросс-тенантным администратором.\r\n- 404 NotFound: идентификатор отсутствует.",
2666
+ "parameters": [
2667
+ {
2668
+ "name": "id",
2669
+ "in": "path",
2670
+ "description": "Идентификатор ресурса.",
2671
+ "required": true,
2672
+ "schema": {
2673
+ "type": "integer",
2674
+ "format": "int32"
2675
+ }
2676
+ },
2677
+ {
2678
+ "name": "X-Application-ID",
2679
+ "in": "header",
2680
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
2681
+ "schema": {
2682
+ "enum": [
2683
+ 1,
2684
+ 2,
2685
+ 3,
2686
+ 4,
2687
+ 5,
2688
+ 6
2689
+ ],
2690
+ "type": "integer",
2691
+ "format": "int32",
2692
+ "default": 3,
2693
+ "x-enumNames": [
2694
+ "EngineerMobile",
2695
+ "CustomerMobile",
2696
+ "MainWeb",
2697
+ "AdminWeb",
2698
+ "Api",
2699
+ "PlateWeb"
2700
+ ]
2701
+ }
2702
+ }
2703
+ ],
2704
+ "responses": {
2705
+ "202": {
2706
+ "description": "Ресурс помечен удалённым."
2707
+ },
2708
+ "401": {
2709
+ "description": "Отсутствует или некорректен Bearer-токен."
2710
+ },
2711
+ "403": {
2712
+ "description": "Недостаточно прав для удаления ресурса."
2713
+ },
2714
+ "404": {
2715
+ "description": "Ресурс не найден."
2716
+ }
2717
+ },
2718
+ "security": [
2719
+ {
2720
+ "Bearer": [ ]
2721
+ }
2722
+ ]
2668
2723
  }
2669
2724
  },
2670
2725
  "/SubsystemView": {
@@ -4165,59 +4220,41 @@
4165
4220
  "properties": {
4166
4221
  "id": {
4167
4222
  "type": "integer",
4168
- "description": "Идентификатор в системе",
4169
- "format": "int32",
4170
- "example": 5
4223
+ "format": "int32"
4171
4224
  },
4172
4225
  "name": {
4173
4226
  "type": "string",
4174
- "description": "Наименование в системе",
4175
- "nullable": true,
4176
- "example": "Регион"
4227
+ "nullable": true
4177
4228
  },
4178
4229
  "isInUse": {
4179
- "type": "boolean",
4180
- "description": "Признак того, что атрибут задействован в шаблоне",
4181
- "example": true
4230
+ "type": "boolean"
4182
4231
  }
4183
4232
  },
4184
- "additionalProperties": false,
4185
- "description": "Упрощённое представление атрибута (дополнительное поле)"
4233
+ "additionalProperties": false
4186
4234
  },
4187
4235
  "ComponentDto": {
4188
4236
  "type": "object",
4189
4237
  "properties": {
4190
4238
  "id": {
4191
4239
  "type": "integer",
4192
- "description": "Внутренний идентификатор в системе",
4193
- "format": "int32",
4194
- "example": 10
4240
+ "format": "int32"
4195
4241
  },
4196
4242
  "code": {
4197
4243
  "type": "string",
4198
- "description": "Внутренний код",
4199
- "nullable": true,
4200
- "example": "TaskDescription"
4244
+ "nullable": true
4201
4245
  },
4202
4246
  "description": {
4203
4247
  "type": "string",
4204
- "description": "Описание",
4205
- "nullable": true,
4206
- "example": "Описание заявки"
4248
+ "nullable": true
4207
4249
  },
4208
4250
  "isRequired": {
4209
- "type": "boolean",
4210
- "description": "Признак того, что элемент должен быть представлен в шаблоне (for future use)",
4211
- "example": true
4251
+ "type": "boolean"
4212
4252
  },
4213
4253
  "isInUse": {
4214
- "type": "boolean",
4215
- "description": "Признак того, что компонент задействован в шаблоне",
4216
- "example": true
4254
+ "type": "boolean"
4217
4255
  }
4218
4256
  },
4219
- "additionalProperties": false,
4220
- "description": "Представление стандартных элементов управления UI в системе"
4257
+ "additionalProperties": false
4221
4258
  },
4222
4259
  "ComponentResult": {
4223
4260
  "type": "object",
@@ -4282,8 +4319,7 @@
4282
4319
  "Component",
4283
4320
  "Attribute"
4284
4321
  ],
4285
- "type": "string",
4286
- "description": "Тип поля на форме заявки"
4322
+ "type": "string"
4287
4323
  },
4288
4324
  "IdCodeNameResultOfInt": {
4289
4325
  "type": "object",
@@ -4318,21 +4354,16 @@
4318
4354
  "properties": {
4319
4355
  "id": {
4320
4356
  "type": "integer",
4321
- "description": "Внутренний идентификатор сущности dto",
4322
4357
  "format": "int32",
4323
4358
  "nullable": true
4324
4359
  },
4325
4360
  "index": {
4326
4361
  "type": "integer",
4327
- "description": "Индекс блока",
4328
- "format": "int32",
4329
- "example": 0
4362
+ "format": "int32"
4330
4363
  },
4331
4364
  "name": {
4332
4365
  "minLength": 1,
4333
- "type": "string",
4334
- "description": "Имя блока для отображения",
4335
- "example": "Основная информация"
4366
+ "type": "string"
4336
4367
  },
4337
4368
  "fields": {
4338
4369
  "maxItems": 1024,
@@ -4340,12 +4371,10 @@
4340
4371
  "type": "array",
4341
4372
  "items": {
4342
4373
  "$ref": "#/components/schemas/LayoutFieldDto"
4343
- },
4344
- "description": "Список полей размещённых в блоке"
4374
+ }
4345
4375
  }
4346
4376
  },
4347
- "additionalProperties": false,
4348
- "description": "UI шаблон представления блока элементов управления"
4377
+ "additionalProperties": false
4349
4378
  },
4350
4379
  "LayoutColumnDto": {
4351
4380
  "required": [
@@ -4356,15 +4385,12 @@
4356
4385
  "properties": {
4357
4386
  "id": {
4358
4387
  "type": "integer",
4359
- "description": "Внутренний идентификатор сущности dto",
4360
4388
  "format": "int32",
4361
4389
  "nullable": true
4362
4390
  },
4363
4391
  "index": {
4364
4392
  "type": "integer",
4365
- "description": "Индекс колонки",
4366
- "format": "int32",
4367
- "example": 0
4393
+ "format": "int32"
4368
4394
  },
4369
4395
  "blocks": {
4370
4396
  "maxItems": 24,
@@ -4372,12 +4398,10 @@
4372
4398
  "type": "array",
4373
4399
  "items": {
4374
4400
  "$ref": "#/components/schemas/LayoutBlockDto"
4375
- },
4376
- "description": "Список блоков размещённых в колонке"
4401
+ }
4377
4402
  }
4378
4403
  },
4379
- "additionalProperties": false,
4380
- "description": "UI шаблон представления колонки"
4404
+ "additionalProperties": false
4381
4405
  },
4382
4406
  "LayoutFieldDto": {
4383
4407
  "required": [
@@ -4389,66 +4413,49 @@
4389
4413
  "properties": {
4390
4414
  "id": {
4391
4415
  "type": "integer",
4392
- "description": "Внутренний идентификатор сущности dto",
4393
4416
  "format": "int32",
4394
4417
  "nullable": true
4395
4418
  },
4396
4419
  "index": {
4397
4420
  "type": "integer",
4398
- "description": "Индекс поля",
4399
- "format": "int32",
4400
- "example": 0
4421
+ "format": "int32"
4401
4422
  },
4402
4423
  "label": {
4403
4424
  "maxLength": 256,
4404
4425
  "minLength": 1,
4405
- "type": "string",
4406
- "description": "Подпись для поля",
4407
- "example": "Описание"
4426
+ "type": "string"
4408
4427
  },
4409
4428
  "type": {
4410
4429
  "$ref": "#/components/schemas/FieldTypeEnum"
4411
4430
  },
4412
4431
  "code": {
4413
4432
  "minLength": 1,
4414
- "type": "string",
4415
- "description": "Код компонента или идентификатор атрибута",
4416
- "example": "TaskDescription"
4433
+ "type": "string"
4417
4434
  },
4418
4435
  "color": {
4419
4436
  "type": "string",
4420
- "description": "Цвет",
4421
- "nullable": true,
4422
- "example": "#FFFFFF"
4437
+ "nullable": true
4423
4438
  },
4424
4439
  "img": {
4425
4440
  "type": "string",
4426
- "description": "Пиктограмма",
4427
- "nullable": true,
4428
- "example": "icon-task"
4441
+ "nullable": true
4429
4442
  }
4430
4443
  },
4431
- "additionalProperties": false,
4432
- "description": "UI шаблон представления поля на форме"
4444
+ "additionalProperties": false
4433
4445
  },
4434
4446
  "LayoutTaskTypeDto": {
4435
4447
  "type": "object",
4436
4448
  "properties": {
4437
4449
  "id": {
4438
4450
  "type": "integer",
4439
- "description": "Идентификатор типа",
4440
- "format": "int32",
4441
- "example": 1
4451
+ "format": "int32"
4442
4452
  },
4443
4453
  "name": {
4444
4454
  "type": "string",
4445
- "description": "Имя типа",
4446
- "nullable": true,
4447
- "example": "Ремонт"
4455
+ "nullable": true
4448
4456
  }
4449
4457
  },
4450
- "additionalProperties": false,
4451
- "description": "Представление для типа задачи"
4458
+ "additionalProperties": false
4452
4459
  },
4453
4460
  "LayoutTemplateDto": {
4454
4461
  "required": [
@@ -4458,21 +4465,15 @@
4458
4465
  "properties": {
4459
4466
  "id": {
4460
4467
  "type": "integer",
4461
- "description": "Внутренний идентификатор сущности dto",
4462
4468
  "format": "int32",
4463
- "nullable": true,
4464
- "example": 101
4469
+ "nullable": true
4465
4470
  },
4466
4471
  "isDefault": {
4467
- "type": "boolean",
4468
- "description": "Признак того, что шаблон используется как настройка по умолчанию",
4469
- "example": false
4472
+ "type": "boolean"
4470
4473
  },
4471
4474
  "name": {
4472
4475
  "type": "string",
4473
- "description": "Название шаблона (for future use)",
4474
- "nullable": true,
4475
- "example": "Основной шаблон"
4476
+ "nullable": true
4476
4477
  },
4477
4478
  "columns": {
4478
4479
  "maxItems": 2,
@@ -4480,8 +4481,7 @@
4480
4481
  "type": "array",
4481
4482
  "items": {
4482
4483
  "$ref": "#/components/schemas/LayoutColumnDto"
4483
- },
4484
- "description": "Список колонок в представлении заявки"
4484
+ }
4485
4485
  },
4486
4486
  "taskTypes": {
4487
4487
  "type": "array",
@@ -4489,16 +4489,44 @@
4489
4489
  "type": "integer",
4490
4490
  "format": "int32"
4491
4491
  },
4492
- "description": "Идентификаторы типов задач к которым применим шаблон",
4493
- "nullable": true,
4494
- "example": [
4495
- 1,
4496
- 2
4497
- ]
4492
+ "nullable": true
4493
+ }
4494
+ },
4495
+ "additionalProperties": false
4496
+ },
4497
+ "ResourceDto": {
4498
+ "required": [
4499
+ "code",
4500
+ "name"
4501
+ ],
4502
+ "type": "object",
4503
+ "properties": {
4504
+ "code": {
4505
+ "maxLength": 64,
4506
+ "minLength": 1,
4507
+ "type": "string"
4508
+ },
4509
+ "name": {
4510
+ "maxLength": 128,
4511
+ "minLength": 1,
4512
+ "type": "string"
4498
4513
  }
4499
4514
  },
4500
- "additionalProperties": false,
4501
- "description": "UI шаблон представления заявки"
4515
+ "additionalProperties": false
4516
+ },
4517
+ "ResourceUpdateDto": {
4518
+ "required": [
4519
+ "name"
4520
+ ],
4521
+ "type": "object",
4522
+ "properties": {
4523
+ "name": {
4524
+ "maxLength": 128,
4525
+ "minLength": 1,
4526
+ "type": "string"
4527
+ }
4528
+ },
4529
+ "additionalProperties": false
4502
4530
  },
4503
4531
  "SubsystemViewProjection": {
4504
4532
  "type": "object",