@hubex/mcp 0.12.0 → 0.12.20261117

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.
@@ -3118,6 +3118,113 @@
3118
3118
  ]
3119
3119
  }
3120
3120
  },
3121
+ "/TaskStages/v2": {
3122
+ "delete": {
3123
+ "tags": [
3124
+ "TaskStages"
3125
+ ],
3126
+ "summary": "Помечает стадии заявок как удалённые; при removeRelatedTransitions=true также помечает связанные переходы from/to как удалённые.",
3127
+ "description": "Логическое удаление: стадии помечаются Deleted/DeletedBy. Когда `removeRelatedTransitions` равен true,\r\nсвязанные переходы from (`TaskStageID`) и to (`NextTaskStageID`) по всем типам заявок также помечаются удалёнными.\r\nПри отсутствии флага он равен false — переходы остаются, как в DELETE /TaskStages.\r\n \r\n## Пример запроса:\r\n`DELETE /TaskStages/v2`\r\n \r\n```json\r\n{\r\n \"ids\": [15, 16],\r\n \"removeRelatedTransitions\": true\r\n}\r\n```\r\n \r\n## Пример успешного ответа (202):\r\nТело ответа отсутствует.\r\n \r\n## Негативные сценарии:\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `TaskStageDelete`.\r\n- 409 Conflict: удаление не выполнено из-за конфликта данных. Тело ответа — `List<ErrorModel>`.",
3128
+ "parameters": [
3129
+ {
3130
+ "name": "X-Application-ID",
3131
+ "in": "header",
3132
+ "description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
3133
+ "schema": {
3134
+ "enum": [
3135
+ 1,
3136
+ 2,
3137
+ 3,
3138
+ 4,
3139
+ 5,
3140
+ 6
3141
+ ],
3142
+ "type": "integer",
3143
+ "format": "int32",
3144
+ "default": 3,
3145
+ "x-enumNames": [
3146
+ "EngineerMobile",
3147
+ "CustomerMobile",
3148
+ "MainWeb",
3149
+ "AdminWeb",
3150
+ "Api",
3151
+ "PlateWeb"
3152
+ ]
3153
+ }
3154
+ }
3155
+ ],
3156
+ "requestBody": {
3157
+ "description": "Идентификаторы стадий заявок и флаг удаления связанных переходов",
3158
+ "content": {
3159
+ "application/json-patch+json": {
3160
+ "schema": {
3161
+ "$ref": "#/components/schemas/TSTGTSDeleteData"
3162
+ }
3163
+ },
3164
+ "application/json": {
3165
+ "schema": {
3166
+ "$ref": "#/components/schemas/TSTGTSDeleteData"
3167
+ }
3168
+ },
3169
+ "text/json": {
3170
+ "schema": {
3171
+ "$ref": "#/components/schemas/TSTGTSDeleteData"
3172
+ }
3173
+ },
3174
+ "application/*+json": {
3175
+ "schema": {
3176
+ "$ref": "#/components/schemas/TSTGTSDeleteData"
3177
+ }
3178
+ }
3179
+ }
3180
+ },
3181
+ "responses": {
3182
+ "202": {
3183
+ "description": "Удаление стадий заявок принято в обработку."
3184
+ },
3185
+ "401": {
3186
+ "description": "Отсутствует или некорректен Bearer-токен."
3187
+ },
3188
+ "403": {
3189
+ "description": "Недостаточно прав для удаления стадий заявок."
3190
+ },
3191
+ "409": {
3192
+ "description": "Удаление не выполнено из-за конфликта данных.",
3193
+ "content": {
3194
+ "text/plain": {
3195
+ "schema": {
3196
+ "type": "array",
3197
+ "items": {
3198
+ "$ref": "#/components/schemas/ErrorModel"
3199
+ }
3200
+ }
3201
+ },
3202
+ "application/json": {
3203
+ "schema": {
3204
+ "type": "array",
3205
+ "items": {
3206
+ "$ref": "#/components/schemas/ErrorModel"
3207
+ }
3208
+ }
3209
+ },
3210
+ "text/json": {
3211
+ "schema": {
3212
+ "type": "array",
3213
+ "items": {
3214
+ "$ref": "#/components/schemas/ErrorModel"
3215
+ }
3216
+ }
3217
+ }
3218
+ }
3219
+ }
3220
+ },
3221
+ "security": [
3222
+ {
3223
+ "Bearer": [ ]
3224
+ }
3225
+ ]
3226
+ }
3227
+ },
3121
3228
  "/TaskStages/{id}": {
3122
3229
  "delete": {
3123
3230
  "tags": [
@@ -4693,6 +4800,23 @@
4693
4800
  },
4694
4801
  "additionalProperties": false
4695
4802
  },
4803
+ "TSTGTSDeleteData": {
4804
+ "type": "object",
4805
+ "properties": {
4806
+ "ids": {
4807
+ "type": "array",
4808
+ "items": {
4809
+ "type": "integer",
4810
+ "format": "int32"
4811
+ },
4812
+ "nullable": true
4813
+ },
4814
+ "removeRelatedTransitions": {
4815
+ "type": "boolean"
4816
+ }
4817
+ },
4818
+ "additionalProperties": false
4819
+ },
4696
4820
  "TSTGTSLAddData": {
4697
4821
  "required": [
4698
4822
  "branchID",