@hubex/mcp 0.14.20261125 → 0.14.20261126
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/generated/index.prod.json +80 -0
- package/package.json +1 -1
- package/swagger/prod/ADM.json +23 -0
- package/swagger/prod/EXPORT.json +1080 -10
|
@@ -7769,6 +7769,22 @@
|
|
|
7769
7769
|
"hasBody": true,
|
|
7770
7770
|
"bodyRequired": false
|
|
7771
7771
|
},
|
|
7772
|
+
{
|
|
7773
|
+
"id": "EXPORT:DELETE:/Export/requests/{requestId}",
|
|
7774
|
+
"service": "EXPORT",
|
|
7775
|
+
"method": "DELETE",
|
|
7776
|
+
"path": "/Export/requests/{requestId}",
|
|
7777
|
+
"summary": "Отменяет асинхронный запрос экспорта, если он ещё не начал выполняться.",
|
|
7778
|
+
"tags": [
|
|
7779
|
+
"Export"
|
|
7780
|
+
],
|
|
7781
|
+
"pathParams": [
|
|
7782
|
+
"requestId"
|
|
7783
|
+
],
|
|
7784
|
+
"queryParams": [],
|
|
7785
|
+
"hasBody": false,
|
|
7786
|
+
"bodyRequired": false
|
|
7787
|
+
},
|
|
7772
7788
|
{
|
|
7773
7789
|
"id": "EXPORT:GET:/Assets",
|
|
7774
7790
|
"service": "EXPORT",
|
|
@@ -7878,6 +7894,56 @@
|
|
|
7878
7894
|
"hasBody": false,
|
|
7879
7895
|
"bodyRequired": false
|
|
7880
7896
|
},
|
|
7897
|
+
{
|
|
7898
|
+
"id": "EXPORT:GET:/Export/archives/{downloadToken}",
|
|
7899
|
+
"service": "EXPORT",
|
|
7900
|
+
"method": "GET",
|
|
7901
|
+
"path": "/Export/archives/{downloadToken}",
|
|
7902
|
+
"summary": "Скачивает готовый архив экспорта по подписанному токену из `publicUrl`.",
|
|
7903
|
+
"tags": [
|
|
7904
|
+
"Export"
|
|
7905
|
+
],
|
|
7906
|
+
"pathParams": [
|
|
7907
|
+
"downloadToken"
|
|
7908
|
+
],
|
|
7909
|
+
"queryParams": [],
|
|
7910
|
+
"hasBody": false,
|
|
7911
|
+
"bodyRequired": false
|
|
7912
|
+
},
|
|
7913
|
+
{
|
|
7914
|
+
"id": "EXPORT:GET:/Export/requests",
|
|
7915
|
+
"service": "EXPORT",
|
|
7916
|
+
"method": "GET",
|
|
7917
|
+
"path": "/Export/requests",
|
|
7918
|
+
"summary": "Возвращает список асинхронных запросов экспорта текущего пользователя.",
|
|
7919
|
+
"tags": [
|
|
7920
|
+
"Export"
|
|
7921
|
+
],
|
|
7922
|
+
"pathParams": [],
|
|
7923
|
+
"queryParams": [
|
|
7924
|
+
"offset",
|
|
7925
|
+
"fetch",
|
|
7926
|
+
"status"
|
|
7927
|
+
],
|
|
7928
|
+
"hasBody": false,
|
|
7929
|
+
"bodyRequired": false
|
|
7930
|
+
},
|
|
7931
|
+
{
|
|
7932
|
+
"id": "EXPORT:GET:/Export/requests/{requestId}",
|
|
7933
|
+
"service": "EXPORT",
|
|
7934
|
+
"method": "GET",
|
|
7935
|
+
"path": "/Export/requests/{requestId}",
|
|
7936
|
+
"summary": "Возвращает статус асинхронного запроса экспорта.",
|
|
7937
|
+
"tags": [
|
|
7938
|
+
"Export"
|
|
7939
|
+
],
|
|
7940
|
+
"pathParams": [
|
|
7941
|
+
"requestId"
|
|
7942
|
+
],
|
|
7943
|
+
"queryParams": [],
|
|
7944
|
+
"hasBody": false,
|
|
7945
|
+
"bodyRequired": false
|
|
7946
|
+
},
|
|
7881
7947
|
{
|
|
7882
7948
|
"id": "EXPORT:GET:/MaterialConsumption",
|
|
7883
7949
|
"service": "EXPORT",
|
|
@@ -8235,6 +8301,20 @@
|
|
|
8235
8301
|
"hasBody": false,
|
|
8236
8302
|
"bodyRequired": false
|
|
8237
8303
|
},
|
|
8304
|
+
{
|
|
8305
|
+
"id": "EXPORT:POST:/Tasks/attachments/v3.0",
|
|
8306
|
+
"service": "EXPORT",
|
|
8307
|
+
"method": "POST",
|
|
8308
|
+
"path": "/Tasks/attachments/v3.0",
|
|
8309
|
+
"summary": "Создаёт batch-запрос на асинхронный экспорт вложений заявок.",
|
|
8310
|
+
"tags": [
|
|
8311
|
+
"Tasks"
|
|
8312
|
+
],
|
|
8313
|
+
"pathParams": [],
|
|
8314
|
+
"queryParams": [],
|
|
8315
|
+
"hasBody": true,
|
|
8316
|
+
"bodyRequired": false
|
|
8317
|
+
},
|
|
8238
8318
|
{
|
|
8239
8319
|
"id": "IMPORT:POST:/Assets",
|
|
8240
8320
|
"service": "IMPORT",
|
package/package.json
CHANGED
package/swagger/prod/ADM.json
CHANGED
|
@@ -22136,6 +22136,26 @@
|
|
|
22136
22136
|
},
|
|
22137
22137
|
"additionalProperties": false
|
|
22138
22138
|
},
|
|
22139
|
+
"AttributeTypeResult": {
|
|
22140
|
+
"type": "object",
|
|
22141
|
+
"properties": {
|
|
22142
|
+
"id": {
|
|
22143
|
+
"type": "integer",
|
|
22144
|
+
"format": "int32"
|
|
22145
|
+
},
|
|
22146
|
+
"name": {
|
|
22147
|
+
"type": "string",
|
|
22148
|
+
"nullable": true
|
|
22149
|
+
},
|
|
22150
|
+
"code": {
|
|
22151
|
+
"type": "string",
|
|
22152
|
+
"description": "Код типа атрибута",
|
|
22153
|
+
"nullable": true
|
|
22154
|
+
}
|
|
22155
|
+
},
|
|
22156
|
+
"additionalProperties": false,
|
|
22157
|
+
"description": "Тип атрибута"
|
|
22158
|
+
},
|
|
22139
22159
|
"BanResult": {
|
|
22140
22160
|
"type": "object",
|
|
22141
22161
|
"properties": {
|
|
@@ -26888,6 +26908,9 @@
|
|
|
26888
26908
|
"nullable": true,
|
|
26889
26909
|
"example": "Электрик"
|
|
26890
26910
|
},
|
|
26911
|
+
"attributeType": {
|
|
26912
|
+
"$ref": "#/components/schemas/AttributeTypeResult"
|
|
26913
|
+
},
|
|
26891
26914
|
"domain": {
|
|
26892
26915
|
"$ref": "#/components/schemas/DomainResult"
|
|
26893
26916
|
},
|
package/swagger/prod/EXPORT.json
CHANGED
|
@@ -717,6 +717,374 @@
|
|
|
717
717
|
]
|
|
718
718
|
}
|
|
719
719
|
},
|
|
720
|
+
"/Export/requests": {
|
|
721
|
+
"get": {
|
|
722
|
+
"tags": [
|
|
723
|
+
"Export"
|
|
724
|
+
],
|
|
725
|
+
"summary": "Возвращает список асинхронных запросов экспорта текущего пользователя.",
|
|
726
|
+
"description": "## Пример запроса:\r\n`GET /Export/requests?status=0&status=1&offset=0&fetch=20`\r\n \r\nПагинация поддерживается через `[AllowRangeQuery]` (query `offset`/`fetch` или заголовок `Range`).\r\nБез диапазона возвращаются все запросы текущего tenant member.\r\nФормат элементов списка — см. HubEx.Service.EXPORT.Api.Results.ExportRequestStatusResult.\r\n \r\nПри диапазонном запросе возвращается `206 Partial Content`, общее количество — в заголовке `Content-Range`.\r\n \r\n## Негативные сценарии:\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `TasksExport`.",
|
|
727
|
+
"parameters": [
|
|
728
|
+
{
|
|
729
|
+
"name": "Range",
|
|
730
|
+
"in": "header",
|
|
731
|
+
"description": "Формат: items=FROM-TILL , где FROM - начальный элемент (включая), TILL - конечный элемент (включая)",
|
|
732
|
+
"schema": {
|
|
733
|
+
"type": "string"
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"name": "offset",
|
|
738
|
+
"in": "query",
|
|
739
|
+
"description": "количество элементов, которое нобходимо пропустить",
|
|
740
|
+
"schema": {
|
|
741
|
+
"type": "string"
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"name": "fetch",
|
|
746
|
+
"in": "query",
|
|
747
|
+
"description": "количество элементов, которое необходимо вернуть",
|
|
748
|
+
"schema": {
|
|
749
|
+
"type": "string"
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"name": "status",
|
|
754
|
+
"in": "query",
|
|
755
|
+
"description": "Фильтр по статусу (см. описание контроллера). Можно передать несколько значений",
|
|
756
|
+
"schema": {
|
|
757
|
+
"type": "integer",
|
|
758
|
+
"format": "int32"
|
|
759
|
+
}
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"name": "X-Application-ID",
|
|
763
|
+
"in": "header",
|
|
764
|
+
"description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
|
|
765
|
+
"schema": {
|
|
766
|
+
"enum": [
|
|
767
|
+
1,
|
|
768
|
+
2,
|
|
769
|
+
3,
|
|
770
|
+
4,
|
|
771
|
+
5,
|
|
772
|
+
6
|
|
773
|
+
],
|
|
774
|
+
"type": "integer",
|
|
775
|
+
"format": "int32",
|
|
776
|
+
"default": 3,
|
|
777
|
+
"x-enumNames": [
|
|
778
|
+
"EngineerMobile",
|
|
779
|
+
"CustomerMobile",
|
|
780
|
+
"MainWeb",
|
|
781
|
+
"AdminWeb",
|
|
782
|
+
"Api",
|
|
783
|
+
"PlateWeb"
|
|
784
|
+
]
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
],
|
|
788
|
+
"responses": {
|
|
789
|
+
"200": {
|
|
790
|
+
"description": "Список найден.",
|
|
791
|
+
"content": {
|
|
792
|
+
"text/plain": {
|
|
793
|
+
"schema": {
|
|
794
|
+
"type": "array",
|
|
795
|
+
"items": {
|
|
796
|
+
"$ref": "#/components/schemas/ExportRequestStatusResult"
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
},
|
|
800
|
+
"application/json": {
|
|
801
|
+
"schema": {
|
|
802
|
+
"type": "array",
|
|
803
|
+
"items": {
|
|
804
|
+
"$ref": "#/components/schemas/ExportRequestStatusResult"
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
"text/json": {
|
|
809
|
+
"schema": {
|
|
810
|
+
"type": "array",
|
|
811
|
+
"items": {
|
|
812
|
+
"$ref": "#/components/schemas/ExportRequestStatusResult"
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
"204": {
|
|
819
|
+
"description": "Список пуст."
|
|
820
|
+
},
|
|
821
|
+
"206": {
|
|
822
|
+
"description": "Возвращена страница диапазонного запроса.",
|
|
823
|
+
"content": {
|
|
824
|
+
"text/plain": {
|
|
825
|
+
"schema": {
|
|
826
|
+
"type": "array",
|
|
827
|
+
"items": {
|
|
828
|
+
"$ref": "#/components/schemas/ExportRequestStatusResult"
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
},
|
|
832
|
+
"application/json": {
|
|
833
|
+
"schema": {
|
|
834
|
+
"type": "array",
|
|
835
|
+
"items": {
|
|
836
|
+
"$ref": "#/components/schemas/ExportRequestStatusResult"
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
|
+
"text/json": {
|
|
841
|
+
"schema": {
|
|
842
|
+
"type": "array",
|
|
843
|
+
"items": {
|
|
844
|
+
"$ref": "#/components/schemas/ExportRequestStatusResult"
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
},
|
|
850
|
+
"401": {
|
|
851
|
+
"description": "Отсутствует или некорректен Bearer-токен."
|
|
852
|
+
},
|
|
853
|
+
"403": {
|
|
854
|
+
"description": "Недостаточно прав для просмотра статусов экспорта."
|
|
855
|
+
}
|
|
856
|
+
},
|
|
857
|
+
"security": [
|
|
858
|
+
{
|
|
859
|
+
"Bearer": [ ]
|
|
860
|
+
}
|
|
861
|
+
]
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
"/Export/requests/{requestId}": {
|
|
865
|
+
"get": {
|
|
866
|
+
"tags": [
|
|
867
|
+
"Export"
|
|
868
|
+
],
|
|
869
|
+
"summary": "Возвращает статус асинхронного запроса экспорта.",
|
|
870
|
+
"description": "## Пример запроса:\r\n`GET /Export/requests/305`\r\n \r\nФормат ответа — см. HubEx.Service.EXPORT.Api.Results.ExportRequestStatusResult.\r\n \r\n## Негативные сценарии:\r\n- 204 No Content: запрос не найден или создан другим пользователем.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `TasksExport`.",
|
|
871
|
+
"parameters": [
|
|
872
|
+
{
|
|
873
|
+
"name": "requestId",
|
|
874
|
+
"in": "path",
|
|
875
|
+
"description": "Идентификатор запроса экспорта (requestID из ответа 202).",
|
|
876
|
+
"required": true,
|
|
877
|
+
"schema": {
|
|
878
|
+
"type": "integer",
|
|
879
|
+
"format": "int64"
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
"name": "X-Application-ID",
|
|
884
|
+
"in": "header",
|
|
885
|
+
"description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
|
|
886
|
+
"schema": {
|
|
887
|
+
"enum": [
|
|
888
|
+
1,
|
|
889
|
+
2,
|
|
890
|
+
3,
|
|
891
|
+
4,
|
|
892
|
+
5,
|
|
893
|
+
6
|
|
894
|
+
],
|
|
895
|
+
"type": "integer",
|
|
896
|
+
"format": "int32",
|
|
897
|
+
"default": 3,
|
|
898
|
+
"x-enumNames": [
|
|
899
|
+
"EngineerMobile",
|
|
900
|
+
"CustomerMobile",
|
|
901
|
+
"MainWeb",
|
|
902
|
+
"AdminWeb",
|
|
903
|
+
"Api",
|
|
904
|
+
"PlateWeb"
|
|
905
|
+
]
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
],
|
|
909
|
+
"responses": {
|
|
910
|
+
"200": {
|
|
911
|
+
"description": "Статус найден.",
|
|
912
|
+
"content": {
|
|
913
|
+
"text/plain": {
|
|
914
|
+
"schema": {
|
|
915
|
+
"$ref": "#/components/schemas/ExportRequestStatusResult"
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
"application/json": {
|
|
919
|
+
"schema": {
|
|
920
|
+
"$ref": "#/components/schemas/ExportRequestStatusResult"
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
"text/json": {
|
|
924
|
+
"schema": {
|
|
925
|
+
"$ref": "#/components/schemas/ExportRequestStatusResult"
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
},
|
|
930
|
+
"204": {
|
|
931
|
+
"description": "Запрос не найден или создан другим пользователем."
|
|
932
|
+
},
|
|
933
|
+
"401": {
|
|
934
|
+
"description": "Отсутствует или некорректен Bearer-токен."
|
|
935
|
+
},
|
|
936
|
+
"403": {
|
|
937
|
+
"description": "Недостаточно прав для просмотра статуса экспорта."
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
"security": [
|
|
941
|
+
{
|
|
942
|
+
"Bearer": [ ]
|
|
943
|
+
}
|
|
944
|
+
]
|
|
945
|
+
},
|
|
946
|
+
"delete": {
|
|
947
|
+
"tags": [
|
|
948
|
+
"Export"
|
|
949
|
+
],
|
|
950
|
+
"summary": "Отменяет асинхронный запрос экспорта, если он ещё не начал выполняться.",
|
|
951
|
+
"description": "## Пример запроса:\r\n`DELETE /Export/requests/305`\r\n \r\nТело запроса не требуется.\r\n \r\nОтмена доступна только для статусов `0` (Pending) и `4` (Retry).\r\nЗапрос в статусе `1` (Started) отменить нельзя — вернётся `409 Conflict`.\r\nФормат ответа — см. HubEx.Service.EXPORT.Api.Results.ExportRequestStatusResult (пример отменённого запроса).\r\n \r\n## Негативные сценарии:\r\n- 204 No Content: запрос не найден или создан другим пользователем.\r\n- 409 Conflict: запрос уже выполняется (`Started`) или завершён (`Finished`, `Error`, `Cancelled`).\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `TasksExport`.",
|
|
952
|
+
"parameters": [
|
|
953
|
+
{
|
|
954
|
+
"name": "requestId",
|
|
955
|
+
"in": "path",
|
|
956
|
+
"description": "Идентификатор запроса экспорта.",
|
|
957
|
+
"required": true,
|
|
958
|
+
"schema": {
|
|
959
|
+
"type": "integer",
|
|
960
|
+
"format": "int64"
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"name": "X-Application-ID",
|
|
965
|
+
"in": "header",
|
|
966
|
+
"description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
|
|
967
|
+
"schema": {
|
|
968
|
+
"enum": [
|
|
969
|
+
1,
|
|
970
|
+
2,
|
|
971
|
+
3,
|
|
972
|
+
4,
|
|
973
|
+
5,
|
|
974
|
+
6
|
|
975
|
+
],
|
|
976
|
+
"type": "integer",
|
|
977
|
+
"format": "int32",
|
|
978
|
+
"default": 3,
|
|
979
|
+
"x-enumNames": [
|
|
980
|
+
"EngineerMobile",
|
|
981
|
+
"CustomerMobile",
|
|
982
|
+
"MainWeb",
|
|
983
|
+
"AdminWeb",
|
|
984
|
+
"Api",
|
|
985
|
+
"PlateWeb"
|
|
986
|
+
]
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
],
|
|
990
|
+
"responses": {
|
|
991
|
+
"200": {
|
|
992
|
+
"description": "Запрос успешно отменён.",
|
|
993
|
+
"content": {
|
|
994
|
+
"text/plain": {
|
|
995
|
+
"schema": {
|
|
996
|
+
"$ref": "#/components/schemas/ExportRequestStatusResult"
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
"application/json": {
|
|
1000
|
+
"schema": {
|
|
1001
|
+
"$ref": "#/components/schemas/ExportRequestStatusResult"
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
"text/json": {
|
|
1005
|
+
"schema": {
|
|
1006
|
+
"$ref": "#/components/schemas/ExportRequestStatusResult"
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
1011
|
+
"204": {
|
|
1012
|
+
"description": "Запрос не найден для текущего пользователя."
|
|
1013
|
+
},
|
|
1014
|
+
"409": {
|
|
1015
|
+
"description": "Запрос уже выполняется или завершён и не может быть отменён."
|
|
1016
|
+
},
|
|
1017
|
+
"401": {
|
|
1018
|
+
"description": "Отсутствует или некорректен Bearer-токен."
|
|
1019
|
+
},
|
|
1020
|
+
"403": {
|
|
1021
|
+
"description": "Недостаточно прав для отмены экспорта."
|
|
1022
|
+
}
|
|
1023
|
+
},
|
|
1024
|
+
"security": [
|
|
1025
|
+
{
|
|
1026
|
+
"Bearer": [ ]
|
|
1027
|
+
}
|
|
1028
|
+
]
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
"/Export/archives/{downloadToken}": {
|
|
1032
|
+
"get": {
|
|
1033
|
+
"tags": [
|
|
1034
|
+
"Export"
|
|
1035
|
+
],
|
|
1036
|
+
"summary": "Скачивает готовый архив экспорта по подписанному токену из `publicUrl`.",
|
|
1037
|
+
"description": "## Пример запроса:\r\n`GET /Export/archives/{downloadToken}`\r\n \r\nТокен выдаётся в `publicUrl` (например в email-уведомлении). Эндпоинт доступен без авторизации.\r\n \r\n## Негативные сценарии:\r\n- 404 Not Found: токен недействителен, запрос не найден, не завершён или срок хранения архива истёк.\r\n- 502 Bad Gateway: storage недоступен при проксировании загрузки.",
|
|
1038
|
+
"parameters": [
|
|
1039
|
+
{
|
|
1040
|
+
"name": "downloadToken",
|
|
1041
|
+
"in": "path",
|
|
1042
|
+
"description": "Подписанный токен скачивания архива.",
|
|
1043
|
+
"required": true,
|
|
1044
|
+
"schema": {
|
|
1045
|
+
"type": "string"
|
|
1046
|
+
}
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"name": "X-Application-ID",
|
|
1050
|
+
"in": "header",
|
|
1051
|
+
"description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
|
|
1052
|
+
"schema": {
|
|
1053
|
+
"enum": [
|
|
1054
|
+
1,
|
|
1055
|
+
2,
|
|
1056
|
+
3,
|
|
1057
|
+
4,
|
|
1058
|
+
5,
|
|
1059
|
+
6
|
|
1060
|
+
],
|
|
1061
|
+
"type": "integer",
|
|
1062
|
+
"format": "int32",
|
|
1063
|
+
"default": 3,
|
|
1064
|
+
"x-enumNames": [
|
|
1065
|
+
"EngineerMobile",
|
|
1066
|
+
"CustomerMobile",
|
|
1067
|
+
"MainWeb",
|
|
1068
|
+
"AdminWeb",
|
|
1069
|
+
"Api",
|
|
1070
|
+
"PlateWeb"
|
|
1071
|
+
]
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
],
|
|
1075
|
+
"responses": {
|
|
1076
|
+
"200": {
|
|
1077
|
+
"description": "Архив найден и возвращается потоком."
|
|
1078
|
+
},
|
|
1079
|
+
"404": {
|
|
1080
|
+
"description": "Токен, запрос или архив не найдены."
|
|
1081
|
+
},
|
|
1082
|
+
"502": {
|
|
1083
|
+
"description": "Storage недоступен при проксировании загрузки."
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
},
|
|
720
1088
|
"/MaterialConsumption": {
|
|
721
1089
|
"get": {
|
|
722
1090
|
"tags": [
|
|
@@ -1397,13 +1765,66 @@
|
|
|
1397
1765
|
}
|
|
1398
1766
|
},
|
|
1399
1767
|
{
|
|
1400
|
-
"name": "erpID",
|
|
1401
|
-
"in": "query",
|
|
1402
|
-
"description": "Идентификаторы заявок во внешней системе, по которым будет отфильтрован результат",
|
|
1403
|
-
"schema": {
|
|
1404
|
-
"type": "string"
|
|
1405
|
-
}
|
|
1406
|
-
},
|
|
1768
|
+
"name": "erpID",
|
|
1769
|
+
"in": "query",
|
|
1770
|
+
"description": "Идентификаторы заявок во внешней системе, по которым будет отфильтрован результат",
|
|
1771
|
+
"schema": {
|
|
1772
|
+
"type": "string"
|
|
1773
|
+
}
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
"name": "X-Application-ID",
|
|
1777
|
+
"in": "header",
|
|
1778
|
+
"description": "Идентификатор приложения. EngineerMobile - 1, CustomerMobile - 2, MainWeb - 3, AdminWeb - 4, Api - 5, PlateWeb - 6",
|
|
1779
|
+
"schema": {
|
|
1780
|
+
"enum": [
|
|
1781
|
+
1,
|
|
1782
|
+
2,
|
|
1783
|
+
3,
|
|
1784
|
+
4,
|
|
1785
|
+
5,
|
|
1786
|
+
6
|
|
1787
|
+
],
|
|
1788
|
+
"type": "integer",
|
|
1789
|
+
"format": "int32",
|
|
1790
|
+
"default": 3,
|
|
1791
|
+
"x-enumNames": [
|
|
1792
|
+
"EngineerMobile",
|
|
1793
|
+
"CustomerMobile",
|
|
1794
|
+
"MainWeb",
|
|
1795
|
+
"AdminWeb",
|
|
1796
|
+
"Api",
|
|
1797
|
+
"PlateWeb"
|
|
1798
|
+
]
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
],
|
|
1802
|
+
"responses": {
|
|
1803
|
+
"200": {
|
|
1804
|
+
"description": "Excel-файл с экспортированными данными заявок."
|
|
1805
|
+
},
|
|
1806
|
+
"401": {
|
|
1807
|
+
"description": "Отсутствует или некорректен Bearer-токен."
|
|
1808
|
+
},
|
|
1809
|
+
"403": {
|
|
1810
|
+
"description": "Недостаточно прав для экспорта заявок."
|
|
1811
|
+
}
|
|
1812
|
+
},
|
|
1813
|
+
"security": [
|
|
1814
|
+
{
|
|
1815
|
+
"Bearer": [ ]
|
|
1816
|
+
}
|
|
1817
|
+
]
|
|
1818
|
+
}
|
|
1819
|
+
},
|
|
1820
|
+
"/Tasks/attachments/v3.0": {
|
|
1821
|
+
"post": {
|
|
1822
|
+
"tags": [
|
|
1823
|
+
"Tasks"
|
|
1824
|
+
],
|
|
1825
|
+
"summary": "Создаёт batch-запрос на асинхронный экспорт вложений заявок.",
|
|
1826
|
+
"description": "## Пример запроса:\r\n`POST /Tasks/attachments/v3.0`\r\n \r\nВ примере заполнены все поля контракта. Числа и строки показывают тип и смысл, это не обязательный набор.\r\nЕсли `sort` не передан, сортировка — дата создания по убыванию (`orderBy` 1, `direction` 2).\r\nЕсли `range` не передан, берётся первая страница из 1000 заявок.\r\n```json\r\n{\r\n \"filter\": {\r\n \"tasks\": [12345, 12346],\r\n \"taskNumbers\": [\"A-1042\"],\r\n \"taskStatuses\": [1, 2],\r\n \"taskStages\": [3],\r\n \"taskTypes\": [1],\r\n \"taskTemplates\": [\"c8d18e2a0b1c4d5e6f708192a3b4c5d6\"],\r\n \"requestMethods\": [1],\r\n \"requestedBy\": [15],\r\n \"assignedTo\": [42],\r\n \"approvalWith\": [7],\r\n \"escalatedTo\": [9],\r\n \"assetResponsiblePersons\": [21],\r\n \"parents\": [1001],\r\n \"branches\": [1],\r\n \"companies\": [4],\r\n \"contracts\": [12],\r\n \"payeeCompanies\": [4],\r\n \"workTypes\": [6],\r\n \"criticalities\": [2],\r\n \"assets\": [8801],\r\n \"startWithAssets\": [500],\r\n \"assetTypes\": [3],\r\n \"assetClasses\": [1],\r\n \"assetSchemas\": [11],\r\n \"districts\": [2],\r\n \"contacts\": [33],\r\n \"erpIDs\": [\"ERP-7781\"],\r\n \"ratingCriterias\": [1],\r\n \"attributeValues\": [\r\n { \"id\": 7, \"from\": \"2026-09-01\", \"till\": \"2026-09-30\", \"value\": \"Насос\" }\r\n ],\r\n \"creationPeriod\": { \"from\": \"2026-09-01T00:00:00\", \"till\": \"2026-09-30T23:59:59\" },\r\n \"assignationPeriod\": { \"from\": \"2026-09-01T00:00:00\", \"till\": \"2026-09-30T23:59:59\" },\r\n \"completionPeriod\": { \"from\": \"2026-09-01T00:00:00\", \"till\": \"2026-09-30T23:59:59\" },\r\n \"closingPeriod\": { \"from\": \"2026-09-01T00:00:00\", \"till\": \"2026-09-30T23:59:59\" },\r\n \"deadlinePeriod\": { \"from\": \"2026-09-01T00:00:00\", \"till\": \"2026-10-15T23:59:59\" },\r\n \"lastModifiedPeriod\": { \"from\": \"2026-09-20T00:00:00\", \"till\": \"2026-10-02T23:59:59\" },\r\n \"flags\": { \"isDeleted\": false },\r\n \"exportFlags\": { \"noData\": false },\r\n \"taskFlags\": {\r\n \"isClosed\": false,\r\n \"isFavourite\": true,\r\n \"isCompleted\": false,\r\n \"isAssigned\": true,\r\n \"isOutdated\": false,\r\n \"isRated\": false,\r\n \"hasAssigneeCheckedIn\": true,\r\n \"isScheduled\": false,\r\n \"topLevelTasksForHierarchy\": false\r\n },\r\n \"geoViewPort\": {\r\n \"radius\": 500,\r\n \"pointCenter\": { \"latitude\": 55.7558, \"longitude\": 37.6173 },\r\n \"pointNorthEast\": { \"latitude\": 55.76, \"longitude\": 37.65 },\r\n \"pointSouthWest\": { \"latitude\": 55.74, \"longitude\": 37.58 }\r\n }\r\n },\r\n \"searchText\": \"насос\",\r\n \"sort\": { \"orderBy\": 1, \"direction\": 2 },\r\n \"flags\": { \"isDeleted\": false },\r\n \"range\": { \"offset\": 0, \"fetch\": 100 }\r\n}\r\n```\r\n \r\nПоле `filter` обязательно. Это короткий контракт полей, которые применяет `WORK.TaskFilterApply_V2`.\r\nПеред постановкой задания он копируется в `TaskFilterData`, и worker ищет заявки через `ListShortAsync`.\r\nПоля вне этого контракта игнорируются и на набор заявок не влияют.\r\nПоле `range` — страница этого списка заявок (`offset`/`fetch`) с учётом `sort`, а не страница вложений.\r\nВ архив попадают вложения только этих заявок. Заявка без загруженных файлов папку не получает.\r\n \r\n`flags.isDeleted` относится к вложениям: `false` — только неудалённые, `true` — только удалённые.\r\nЕсли поле не передано, по удалению вложения не фильтруются.\r\n`filter.flags.isDeleted` — отдельный признак: он отбирает удалённые заявки, не вложения.\r\n`filter.exportFlags.noData: true` оставляет список заявок пустым.\r\n`attributeValues.value` с `;;` задаёт несколько значений строкового атрибута.\r\n \r\nЗаголовок `X-Concurrency-Stamp` (опциональный Guid) — идемпотентность постановки, как при создании заявки.\r\n \r\n## Пример успешного ответа (202):\r\n```json\r\n{\r\n \"isSuccessed\": true,\r\n \"requestID\": \"305\"\r\n}\r\n```\r\n \r\nПоле `error` при успешном `202` не возвращается.\r\nОшибки выполнения экспорта (после постановки в очередь) — только через status API.\r\n \r\nРучка только ставит экспорт вложений в очередь и возвращает идентификатор batch-запроса.\r\nФормирование архива выполняется фоновым механизмом.\r\n \r\n## Негативные сценарии:\r\n- 400 BadRequest: заголовок `X-Concurrency-Stamp` передан и не является Guid. Отсутствующий или пустой заголовок идемпотентность не включает.\r\n- 401 Unauthorized: отсутствует или некорректен Bearer-токен.\r\n- 403 Forbidden: недостаточно прав `TasksExport`.\r\n- 409 Conflict: не передан `filter`, либо запрос с тем же `X-Concurrency-Stamp` уже был принят.\r\n- 500 Internal Server Error: ошибка при постановке batch-запроса.",
|
|
1827
|
+
"parameters": [
|
|
1407
1828
|
{
|
|
1408
1829
|
"name": "X-Application-ID",
|
|
1409
1830
|
"in": "header",
|
|
@@ -1431,15 +1852,66 @@
|
|
|
1431
1852
|
}
|
|
1432
1853
|
}
|
|
1433
1854
|
],
|
|
1855
|
+
"requestBody": {
|
|
1856
|
+
"description": "Параметры экспорта вложений.",
|
|
1857
|
+
"content": {
|
|
1858
|
+
"application/json-patch+json": {
|
|
1859
|
+
"schema": {
|
|
1860
|
+
"$ref": "#/components/schemas/TaskAttachmentsExportJobPayload"
|
|
1861
|
+
}
|
|
1862
|
+
},
|
|
1863
|
+
"application/json": {
|
|
1864
|
+
"schema": {
|
|
1865
|
+
"$ref": "#/components/schemas/TaskAttachmentsExportJobPayload"
|
|
1866
|
+
}
|
|
1867
|
+
},
|
|
1868
|
+
"text/json": {
|
|
1869
|
+
"schema": {
|
|
1870
|
+
"$ref": "#/components/schemas/TaskAttachmentsExportJobPayload"
|
|
1871
|
+
}
|
|
1872
|
+
},
|
|
1873
|
+
"application/*+json": {
|
|
1874
|
+
"schema": {
|
|
1875
|
+
"$ref": "#/components/schemas/TaskAttachmentsExportJobPayload"
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1434
1880
|
"responses": {
|
|
1435
|
-
"
|
|
1436
|
-
"description": "
|
|
1881
|
+
"202": {
|
|
1882
|
+
"description": "Batch-запрос на экспорт вложений успешно создан.",
|
|
1883
|
+
"content": {
|
|
1884
|
+
"text/plain": {
|
|
1885
|
+
"schema": {
|
|
1886
|
+
"$ref": "#/components/schemas/BatchRequestResult"
|
|
1887
|
+
}
|
|
1888
|
+
},
|
|
1889
|
+
"application/json": {
|
|
1890
|
+
"schema": {
|
|
1891
|
+
"$ref": "#/components/schemas/BatchRequestResult"
|
|
1892
|
+
}
|
|
1893
|
+
},
|
|
1894
|
+
"text/json": {
|
|
1895
|
+
"schema": {
|
|
1896
|
+
"$ref": "#/components/schemas/BatchRequestResult"
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
}
|
|
1900
|
+
},
|
|
1901
|
+
"409": {
|
|
1902
|
+
"description": "Не передан `filter`, либо запрос с тем же `X-Concurrency-Stamp` уже был принят."
|
|
1903
|
+
},
|
|
1904
|
+
"400": {
|
|
1905
|
+
"description": "`X-Concurrency-Stamp` передан и не является Guid."
|
|
1437
1906
|
},
|
|
1438
1907
|
"401": {
|
|
1439
1908
|
"description": "Отсутствует или некорректен Bearer-токен."
|
|
1440
1909
|
},
|
|
1441
1910
|
"403": {
|
|
1442
|
-
"description": "Недостаточно прав для экспорта заявок."
|
|
1911
|
+
"description": "Недостаточно прав для экспорта вложений заявок."
|
|
1912
|
+
},
|
|
1913
|
+
"500": {
|
|
1914
|
+
"description": "Внутренняя ошибка при создании batch-запроса."
|
|
1443
1915
|
}
|
|
1444
1916
|
},
|
|
1445
1917
|
"security": [
|
|
@@ -3112,6 +3584,143 @@
|
|
|
3112
3584
|
},
|
|
3113
3585
|
"components": {
|
|
3114
3586
|
"schemas": {
|
|
3587
|
+
"ANCDRangeData": {
|
|
3588
|
+
"type": "object",
|
|
3589
|
+
"properties": {
|
|
3590
|
+
"unit": {
|
|
3591
|
+
"type": "string",
|
|
3592
|
+
"nullable": true
|
|
3593
|
+
},
|
|
3594
|
+
"startWith": {
|
|
3595
|
+
"type": "integer",
|
|
3596
|
+
"format": "int32"
|
|
3597
|
+
},
|
|
3598
|
+
"finishWith": {
|
|
3599
|
+
"type": "integer",
|
|
3600
|
+
"format": "int32"
|
|
3601
|
+
},
|
|
3602
|
+
"offset": {
|
|
3603
|
+
"type": "integer",
|
|
3604
|
+
"format": "int32"
|
|
3605
|
+
},
|
|
3606
|
+
"fetch": {
|
|
3607
|
+
"type": "integer",
|
|
3608
|
+
"format": "int32"
|
|
3609
|
+
}
|
|
3610
|
+
},
|
|
3611
|
+
"additionalProperties": false
|
|
3612
|
+
},
|
|
3613
|
+
"BatchRequestResult": {
|
|
3614
|
+
"type": "object",
|
|
3615
|
+
"properties": {
|
|
3616
|
+
"isSuccessed": {
|
|
3617
|
+
"type": "boolean",
|
|
3618
|
+
"description": "Признак успешной постановки запроса в очередь."
|
|
3619
|
+
},
|
|
3620
|
+
"requestID": {
|
|
3621
|
+
"type": "string",
|
|
3622
|
+
"description": "Идентификатор запроса (ExportRequest.ID).",
|
|
3623
|
+
"nullable": true
|
|
3624
|
+
},
|
|
3625
|
+
"error": {
|
|
3626
|
+
"type": "string",
|
|
3627
|
+
"description": "Текст ошибки постановки в очередь при IsSuccessed = false. При успешном 202 не заполняется.",
|
|
3628
|
+
"nullable": true
|
|
3629
|
+
}
|
|
3630
|
+
},
|
|
3631
|
+
"additionalProperties": false,
|
|
3632
|
+
"description": "Результат постановки асинхронного экспорта в очередь (ответ v3)."
|
|
3633
|
+
},
|
|
3634
|
+
"Coordinate": {
|
|
3635
|
+
"type": "object",
|
|
3636
|
+
"properties": {
|
|
3637
|
+
"latitude": {
|
|
3638
|
+
"type": "number",
|
|
3639
|
+
"format": "double"
|
|
3640
|
+
},
|
|
3641
|
+
"longitude": {
|
|
3642
|
+
"type": "number",
|
|
3643
|
+
"format": "double"
|
|
3644
|
+
}
|
|
3645
|
+
},
|
|
3646
|
+
"additionalProperties": false
|
|
3647
|
+
},
|
|
3648
|
+
"DASortData": {
|
|
3649
|
+
"type": "object",
|
|
3650
|
+
"properties": {
|
|
3651
|
+
"orderBy": {
|
|
3652
|
+
"type": "integer",
|
|
3653
|
+
"format": "int32",
|
|
3654
|
+
"nullable": true
|
|
3655
|
+
},
|
|
3656
|
+
"direction": {
|
|
3657
|
+
"$ref": "#/components/schemas/SortDirection"
|
|
3658
|
+
}
|
|
3659
|
+
},
|
|
3660
|
+
"additionalProperties": false
|
|
3661
|
+
},
|
|
3662
|
+
"ExportFlagFilter": {
|
|
3663
|
+
"type": "object",
|
|
3664
|
+
"properties": {
|
|
3665
|
+
"noData": {
|
|
3666
|
+
"type": "boolean",
|
|
3667
|
+
"nullable": true
|
|
3668
|
+
}
|
|
3669
|
+
},
|
|
3670
|
+
"additionalProperties": false
|
|
3671
|
+
},
|
|
3672
|
+
"ExportRequestStatus": {
|
|
3673
|
+
"enum": [
|
|
3674
|
+
"Pending",
|
|
3675
|
+
"Started",
|
|
3676
|
+
"Finished",
|
|
3677
|
+
"Error",
|
|
3678
|
+
"Retry",
|
|
3679
|
+
"Cancelled"
|
|
3680
|
+
],
|
|
3681
|
+
"type": "string"
|
|
3682
|
+
},
|
|
3683
|
+
"ExportRequestStatusResult": {
|
|
3684
|
+
"type": "object",
|
|
3685
|
+
"properties": {
|
|
3686
|
+
"requestID": {
|
|
3687
|
+
"type": "integer",
|
|
3688
|
+
"description": "Внешний идентификатор запроса.",
|
|
3689
|
+
"format": "int64"
|
|
3690
|
+
},
|
|
3691
|
+
"exportTypeCode": {
|
|
3692
|
+
"type": "string",
|
|
3693
|
+
"description": "Тип экспорта.",
|
|
3694
|
+
"nullable": true
|
|
3695
|
+
},
|
|
3696
|
+
"status": {
|
|
3697
|
+
"$ref": "#/components/schemas/ExportRequestStatus"
|
|
3698
|
+
},
|
|
3699
|
+
"createdUtc": {
|
|
3700
|
+
"type": "string",
|
|
3701
|
+
"description": "UTC-время создания запроса.",
|
|
3702
|
+
"format": "date-time"
|
|
3703
|
+
},
|
|
3704
|
+
"publicUrl": {
|
|
3705
|
+
"type": "string",
|
|
3706
|
+
"description": "Публичная ссылка на скачивание через API (`GET .../Export/archives/{token}`).",
|
|
3707
|
+
"nullable": true
|
|
3708
|
+
},
|
|
3709
|
+
"fileExpiresUtc": {
|
|
3710
|
+
"type": "string",
|
|
3711
|
+
"description": "UTC-время истечения срока жизни файла.",
|
|
3712
|
+
"format": "date-time",
|
|
3713
|
+
"nullable": true
|
|
3714
|
+
},
|
|
3715
|
+
"errorMessage": {
|
|
3716
|
+
"type": "string",
|
|
3717
|
+
"description": "Текст ошибки, если экспорт завершился ошибкой или был отменён.",
|
|
3718
|
+
"nullable": true
|
|
3719
|
+
}
|
|
3720
|
+
},
|
|
3721
|
+
"additionalProperties": false,
|
|
3722
|
+
"description": "Статус асинхронного запроса экспорта."
|
|
3723
|
+
},
|
|
3115
3724
|
"FieldResult": {
|
|
3116
3725
|
"type": "object",
|
|
3117
3726
|
"properties": {
|
|
@@ -3130,6 +3739,459 @@
|
|
|
3130
3739
|
},
|
|
3131
3740
|
"additionalProperties": false,
|
|
3132
3741
|
"description": "Экспортируемое поле"
|
|
3742
|
+
},
|
|
3743
|
+
"LocationFilter": {
|
|
3744
|
+
"type": "object",
|
|
3745
|
+
"properties": {
|
|
3746
|
+
"radius": {
|
|
3747
|
+
"type": "number",
|
|
3748
|
+
"format": "float",
|
|
3749
|
+
"nullable": true
|
|
3750
|
+
},
|
|
3751
|
+
"pointCenter": {
|
|
3752
|
+
"$ref": "#/components/schemas/Coordinate"
|
|
3753
|
+
},
|
|
3754
|
+
"pointNorthEast": {
|
|
3755
|
+
"$ref": "#/components/schemas/Coordinate"
|
|
3756
|
+
},
|
|
3757
|
+
"pointSouthWest": {
|
|
3758
|
+
"$ref": "#/components/schemas/Coordinate"
|
|
3759
|
+
}
|
|
3760
|
+
},
|
|
3761
|
+
"additionalProperties": false
|
|
3762
|
+
},
|
|
3763
|
+
"PeriodResult": {
|
|
3764
|
+
"type": "object",
|
|
3765
|
+
"properties": {
|
|
3766
|
+
"from": {
|
|
3767
|
+
"type": "string",
|
|
3768
|
+
"format": "date-time",
|
|
3769
|
+
"nullable": true
|
|
3770
|
+
},
|
|
3771
|
+
"till": {
|
|
3772
|
+
"type": "string",
|
|
3773
|
+
"format": "date-time",
|
|
3774
|
+
"nullable": true
|
|
3775
|
+
}
|
|
3776
|
+
},
|
|
3777
|
+
"additionalProperties": false
|
|
3778
|
+
},
|
|
3779
|
+
"SortDirection": {
|
|
3780
|
+
"enum": [
|
|
3781
|
+
"Ascending",
|
|
3782
|
+
"Descending"
|
|
3783
|
+
],
|
|
3784
|
+
"type": "string"
|
|
3785
|
+
},
|
|
3786
|
+
"TaskAttachmentsExportAttributeValue": {
|
|
3787
|
+
"type": "object",
|
|
3788
|
+
"properties": {
|
|
3789
|
+
"id": {
|
|
3790
|
+
"type": "integer",
|
|
3791
|
+
"description": "Идентификатор атрибута.",
|
|
3792
|
+
"format": "int32",
|
|
3793
|
+
"nullable": true
|
|
3794
|
+
},
|
|
3795
|
+
"from": {
|
|
3796
|
+
"type": "string",
|
|
3797
|
+
"description": "Нижняя граница или начало периода.",
|
|
3798
|
+
"nullable": true
|
|
3799
|
+
},
|
|
3800
|
+
"till": {
|
|
3801
|
+
"type": "string",
|
|
3802
|
+
"description": "Верхняя граница или конец периода.",
|
|
3803
|
+
"nullable": true
|
|
3804
|
+
},
|
|
3805
|
+
"value": {
|
|
3806
|
+
"type": "string",
|
|
3807
|
+
"description": "Точное значение. Несколько значений строки разделяются `;;`.",
|
|
3808
|
+
"nullable": true
|
|
3809
|
+
}
|
|
3810
|
+
},
|
|
3811
|
+
"additionalProperties": false,
|
|
3812
|
+
"description": "Одно условие по атрибуту заявки."
|
|
3813
|
+
},
|
|
3814
|
+
"TaskAttachmentsExportFlagFilter": {
|
|
3815
|
+
"type": "object",
|
|
3816
|
+
"properties": {
|
|
3817
|
+
"isDeleted": {
|
|
3818
|
+
"type": "boolean",
|
|
3819
|
+
"nullable": true
|
|
3820
|
+
}
|
|
3821
|
+
},
|
|
3822
|
+
"additionalProperties": false
|
|
3823
|
+
},
|
|
3824
|
+
"TaskAttachmentsExportJobPayload": {
|
|
3825
|
+
"type": "object",
|
|
3826
|
+
"properties": {
|
|
3827
|
+
"filter": {
|
|
3828
|
+
"$ref": "#/components/schemas/TaskAttachmentsExportTaskFilter"
|
|
3829
|
+
},
|
|
3830
|
+
"sort": {
|
|
3831
|
+
"$ref": "#/components/schemas/DASortData"
|
|
3832
|
+
},
|
|
3833
|
+
"searchText": {
|
|
3834
|
+
"type": "string",
|
|
3835
|
+
"description": "Текст поиска заявок.",
|
|
3836
|
+
"nullable": true
|
|
3837
|
+
},
|
|
3838
|
+
"flags": {
|
|
3839
|
+
"$ref": "#/components/schemas/TaskAttachmentsExportFlagFilter"
|
|
3840
|
+
},
|
|
3841
|
+
"range": {
|
|
3842
|
+
"$ref": "#/components/schemas/ANCDRangeData"
|
|
3843
|
+
}
|
|
3844
|
+
},
|
|
3845
|
+
"additionalProperties": false,
|
|
3846
|
+
"description": "Payload асинхронного экспорта вложений заявок."
|
|
3847
|
+
},
|
|
3848
|
+
"TaskAttachmentsExportTaskDeletedFlag": {
|
|
3849
|
+
"type": "object",
|
|
3850
|
+
"properties": {
|
|
3851
|
+
"isDeleted": {
|
|
3852
|
+
"type": "boolean",
|
|
3853
|
+
"description": "true — только удалённые заявки, false — только неудалённые.",
|
|
3854
|
+
"nullable": true
|
|
3855
|
+
}
|
|
3856
|
+
},
|
|
3857
|
+
"additionalProperties": false,
|
|
3858
|
+
"description": "Признак удаления заявки в фильтре списка."
|
|
3859
|
+
},
|
|
3860
|
+
"TaskAttachmentsExportTaskFilter": {
|
|
3861
|
+
"type": "object",
|
|
3862
|
+
"properties": {
|
|
3863
|
+
"tasks": {
|
|
3864
|
+
"type": "array",
|
|
3865
|
+
"items": {
|
|
3866
|
+
"type": "integer",
|
|
3867
|
+
"format": "int32"
|
|
3868
|
+
},
|
|
3869
|
+
"description": "Идентификаторы заявок.",
|
|
3870
|
+
"nullable": true
|
|
3871
|
+
},
|
|
3872
|
+
"taskNumbers": {
|
|
3873
|
+
"type": "array",
|
|
3874
|
+
"items": {
|
|
3875
|
+
"type": "string"
|
|
3876
|
+
},
|
|
3877
|
+
"description": "Номера заявок.",
|
|
3878
|
+
"nullable": true
|
|
3879
|
+
},
|
|
3880
|
+
"taskStatuses": {
|
|
3881
|
+
"type": "array",
|
|
3882
|
+
"items": {
|
|
3883
|
+
"type": "integer",
|
|
3884
|
+
"format": "int32"
|
|
3885
|
+
},
|
|
3886
|
+
"description": "Статусы заявок.",
|
|
3887
|
+
"nullable": true
|
|
3888
|
+
},
|
|
3889
|
+
"taskStages": {
|
|
3890
|
+
"type": "array",
|
|
3891
|
+
"items": {
|
|
3892
|
+
"type": "integer",
|
|
3893
|
+
"format": "int32"
|
|
3894
|
+
},
|
|
3895
|
+
"description": "Стадии заявок.",
|
|
3896
|
+
"nullable": true
|
|
3897
|
+
},
|
|
3898
|
+
"taskTypes": {
|
|
3899
|
+
"type": "array",
|
|
3900
|
+
"items": {
|
|
3901
|
+
"type": "integer",
|
|
3902
|
+
"format": "int32"
|
|
3903
|
+
},
|
|
3904
|
+
"description": "Типы заявок.",
|
|
3905
|
+
"nullable": true
|
|
3906
|
+
},
|
|
3907
|
+
"taskTemplates": {
|
|
3908
|
+
"type": "array",
|
|
3909
|
+
"items": {
|
|
3910
|
+
"type": "string"
|
|
3911
|
+
},
|
|
3912
|
+
"description": "Шаблоны заявок.",
|
|
3913
|
+
"nullable": true
|
|
3914
|
+
},
|
|
3915
|
+
"requestMethods": {
|
|
3916
|
+
"type": "array",
|
|
3917
|
+
"items": {
|
|
3918
|
+
"type": "integer",
|
|
3919
|
+
"format": "int32"
|
|
3920
|
+
},
|
|
3921
|
+
"description": "Способы подачи.",
|
|
3922
|
+
"nullable": true
|
|
3923
|
+
},
|
|
3924
|
+
"requestedBy": {
|
|
3925
|
+
"type": "array",
|
|
3926
|
+
"items": {
|
|
3927
|
+
"type": "integer",
|
|
3928
|
+
"format": "int32"
|
|
3929
|
+
},
|
|
3930
|
+
"description": "Кто подал заявку.",
|
|
3931
|
+
"nullable": true
|
|
3932
|
+
},
|
|
3933
|
+
"assignedTo": {
|
|
3934
|
+
"type": "array",
|
|
3935
|
+
"items": {
|
|
3936
|
+
"type": "integer",
|
|
3937
|
+
"format": "int32"
|
|
3938
|
+
},
|
|
3939
|
+
"description": "Исполнители.",
|
|
3940
|
+
"nullable": true
|
|
3941
|
+
},
|
|
3942
|
+
"approvalWith": {
|
|
3943
|
+
"type": "array",
|
|
3944
|
+
"items": {
|
|
3945
|
+
"type": "integer",
|
|
3946
|
+
"format": "int32"
|
|
3947
|
+
},
|
|
3948
|
+
"description": "Согласующие.",
|
|
3949
|
+
"nullable": true
|
|
3950
|
+
},
|
|
3951
|
+
"escalatedTo": {
|
|
3952
|
+
"type": "array",
|
|
3953
|
+
"items": {
|
|
3954
|
+
"type": "integer",
|
|
3955
|
+
"format": "int32"
|
|
3956
|
+
},
|
|
3957
|
+
"description": "Куда эскалирована заявка.",
|
|
3958
|
+
"nullable": true
|
|
3959
|
+
},
|
|
3960
|
+
"assetResponsiblePersons": {
|
|
3961
|
+
"type": "array",
|
|
3962
|
+
"items": {
|
|
3963
|
+
"type": "integer",
|
|
3964
|
+
"format": "int32"
|
|
3965
|
+
},
|
|
3966
|
+
"description": "Ответственные за объект.",
|
|
3967
|
+
"nullable": true
|
|
3968
|
+
},
|
|
3969
|
+
"parents": {
|
|
3970
|
+
"type": "array",
|
|
3971
|
+
"items": {
|
|
3972
|
+
"type": "integer",
|
|
3973
|
+
"format": "int32"
|
|
3974
|
+
},
|
|
3975
|
+
"description": "Родительские заявки.",
|
|
3976
|
+
"nullable": true
|
|
3977
|
+
},
|
|
3978
|
+
"branches": {
|
|
3979
|
+
"type": "array",
|
|
3980
|
+
"items": {
|
|
3981
|
+
"type": "integer",
|
|
3982
|
+
"format": "int32"
|
|
3983
|
+
},
|
|
3984
|
+
"description": "Ветки согласования.",
|
|
3985
|
+
"nullable": true
|
|
3986
|
+
},
|
|
3987
|
+
"companies": {
|
|
3988
|
+
"type": "array",
|
|
3989
|
+
"items": {
|
|
3990
|
+
"type": "integer",
|
|
3991
|
+
"format": "int32"
|
|
3992
|
+
},
|
|
3993
|
+
"description": "Компании заказчика.",
|
|
3994
|
+
"nullable": true
|
|
3995
|
+
},
|
|
3996
|
+
"contracts": {
|
|
3997
|
+
"type": "array",
|
|
3998
|
+
"items": {
|
|
3999
|
+
"type": "integer",
|
|
4000
|
+
"format": "int32"
|
|
4001
|
+
},
|
|
4002
|
+
"description": "Договоры.",
|
|
4003
|
+
"nullable": true
|
|
4004
|
+
},
|
|
4005
|
+
"payeeCompanies": {
|
|
4006
|
+
"type": "array",
|
|
4007
|
+
"items": {
|
|
4008
|
+
"type": "integer",
|
|
4009
|
+
"format": "int32"
|
|
4010
|
+
},
|
|
4011
|
+
"description": "Наши компании.",
|
|
4012
|
+
"nullable": true
|
|
4013
|
+
},
|
|
4014
|
+
"workTypes": {
|
|
4015
|
+
"type": "array",
|
|
4016
|
+
"items": {
|
|
4017
|
+
"type": "integer",
|
|
4018
|
+
"format": "int32"
|
|
4019
|
+
},
|
|
4020
|
+
"description": "Виды работ.",
|
|
4021
|
+
"nullable": true
|
|
4022
|
+
},
|
|
4023
|
+
"criticalities": {
|
|
4024
|
+
"type": "array",
|
|
4025
|
+
"items": {
|
|
4026
|
+
"type": "integer",
|
|
4027
|
+
"format": "int32"
|
|
4028
|
+
},
|
|
4029
|
+
"description": "Критичность.",
|
|
4030
|
+
"nullable": true
|
|
4031
|
+
},
|
|
4032
|
+
"assets": {
|
|
4033
|
+
"type": "array",
|
|
4034
|
+
"items": {
|
|
4035
|
+
"type": "integer",
|
|
4036
|
+
"format": "int32"
|
|
4037
|
+
},
|
|
4038
|
+
"description": "Объекты.",
|
|
4039
|
+
"nullable": true
|
|
4040
|
+
},
|
|
4041
|
+
"startWithAssets": {
|
|
4042
|
+
"type": "array",
|
|
4043
|
+
"items": {
|
|
4044
|
+
"type": "integer",
|
|
4045
|
+
"format": "int32"
|
|
4046
|
+
},
|
|
4047
|
+
"description": "Объект и его дочерние объекты.",
|
|
4048
|
+
"nullable": true
|
|
4049
|
+
},
|
|
4050
|
+
"assetTypes": {
|
|
4051
|
+
"type": "array",
|
|
4052
|
+
"items": {
|
|
4053
|
+
"type": "integer",
|
|
4054
|
+
"format": "int32"
|
|
4055
|
+
},
|
|
4056
|
+
"description": "Типы объектов.",
|
|
4057
|
+
"nullable": true
|
|
4058
|
+
},
|
|
4059
|
+
"assetClasses": {
|
|
4060
|
+
"type": "array",
|
|
4061
|
+
"items": {
|
|
4062
|
+
"type": "integer",
|
|
4063
|
+
"format": "int32"
|
|
4064
|
+
},
|
|
4065
|
+
"description": "Классы объектов.",
|
|
4066
|
+
"nullable": true
|
|
4067
|
+
},
|
|
4068
|
+
"assetSchemas": {
|
|
4069
|
+
"type": "array",
|
|
4070
|
+
"items": {
|
|
4071
|
+
"type": "integer",
|
|
4072
|
+
"format": "int32"
|
|
4073
|
+
},
|
|
4074
|
+
"description": "План-схемы.",
|
|
4075
|
+
"nullable": true
|
|
4076
|
+
},
|
|
4077
|
+
"districts": {
|
|
4078
|
+
"type": "array",
|
|
4079
|
+
"items": {
|
|
4080
|
+
"type": "integer",
|
|
4081
|
+
"format": "int32"
|
|
4082
|
+
},
|
|
4083
|
+
"description": "Участки.",
|
|
4084
|
+
"nullable": true
|
|
4085
|
+
},
|
|
4086
|
+
"contacts": {
|
|
4087
|
+
"type": "array",
|
|
4088
|
+
"items": {
|
|
4089
|
+
"type": "integer",
|
|
4090
|
+
"format": "int32"
|
|
4091
|
+
},
|
|
4092
|
+
"description": "Контакты.",
|
|
4093
|
+
"nullable": true
|
|
4094
|
+
},
|
|
4095
|
+
"erpIDs": {
|
|
4096
|
+
"type": "array",
|
|
4097
|
+
"items": {
|
|
4098
|
+
"type": "string"
|
|
4099
|
+
},
|
|
4100
|
+
"description": "Идентификаторы во внешней системе.",
|
|
4101
|
+
"nullable": true
|
|
4102
|
+
},
|
|
4103
|
+
"ratingCriterias": {
|
|
4104
|
+
"type": "array",
|
|
4105
|
+
"items": {
|
|
4106
|
+
"type": "integer",
|
|
4107
|
+
"format": "int32"
|
|
4108
|
+
},
|
|
4109
|
+
"description": "Критерии оценки.",
|
|
4110
|
+
"nullable": true
|
|
4111
|
+
},
|
|
4112
|
+
"attributeValues": {
|
|
4113
|
+
"type": "array",
|
|
4114
|
+
"items": {
|
|
4115
|
+
"$ref": "#/components/schemas/TaskAttachmentsExportAttributeValue"
|
|
4116
|
+
},
|
|
4117
|
+
"description": "Значения атрибутов. В SQL уходит как `ID`, `From`, `Till`, `Value`.",
|
|
4118
|
+
"nullable": true
|
|
4119
|
+
},
|
|
4120
|
+
"creationPeriod": {
|
|
4121
|
+
"$ref": "#/components/schemas/PeriodResult"
|
|
4122
|
+
},
|
|
4123
|
+
"assignationPeriod": {
|
|
4124
|
+
"$ref": "#/components/schemas/PeriodResult"
|
|
4125
|
+
},
|
|
4126
|
+
"completionPeriod": {
|
|
4127
|
+
"$ref": "#/components/schemas/PeriodResult"
|
|
4128
|
+
},
|
|
4129
|
+
"closingPeriod": {
|
|
4130
|
+
"$ref": "#/components/schemas/PeriodResult"
|
|
4131
|
+
},
|
|
4132
|
+
"deadlinePeriod": {
|
|
4133
|
+
"$ref": "#/components/schemas/PeriodResult"
|
|
4134
|
+
},
|
|
4135
|
+
"lastModifiedPeriod": {
|
|
4136
|
+
"$ref": "#/components/schemas/PeriodResult"
|
|
4137
|
+
},
|
|
4138
|
+
"flags": {
|
|
4139
|
+
"$ref": "#/components/schemas/TaskAttachmentsExportTaskDeletedFlag"
|
|
4140
|
+
},
|
|
4141
|
+
"exportFlags": {
|
|
4142
|
+
"$ref": "#/components/schemas/ExportFlagFilter"
|
|
4143
|
+
},
|
|
4144
|
+
"taskFlags": {
|
|
4145
|
+
"$ref": "#/components/schemas/TaskFlagFilter"
|
|
4146
|
+
},
|
|
4147
|
+
"geoViewPort": {
|
|
4148
|
+
"$ref": "#/components/schemas/LocationFilter"
|
|
4149
|
+
}
|
|
4150
|
+
},
|
|
4151
|
+
"additionalProperties": false,
|
|
4152
|
+
"description": "Фильтр заявок для экспорта вложений.\r\nСодержит только поля, которые применяет `WORK.TaskFilterApply_V2`.\r\nПеред постановкой задания копируется в `TaskFilterData`."
|
|
4153
|
+
},
|
|
4154
|
+
"TaskFlagFilter": {
|
|
4155
|
+
"type": "object",
|
|
4156
|
+
"properties": {
|
|
4157
|
+
"hasAssigneeCheckedIn": {
|
|
4158
|
+
"type": "boolean",
|
|
4159
|
+
"nullable": true
|
|
4160
|
+
},
|
|
4161
|
+
"isClosed": {
|
|
4162
|
+
"type": "boolean",
|
|
4163
|
+
"nullable": true
|
|
4164
|
+
},
|
|
4165
|
+
"isFavourite": {
|
|
4166
|
+
"type": "boolean",
|
|
4167
|
+
"nullable": true
|
|
4168
|
+
},
|
|
4169
|
+
"isCompleted": {
|
|
4170
|
+
"type": "boolean",
|
|
4171
|
+
"nullable": true
|
|
4172
|
+
},
|
|
4173
|
+
"isAssigned": {
|
|
4174
|
+
"type": "boolean",
|
|
4175
|
+
"nullable": true
|
|
4176
|
+
},
|
|
4177
|
+
"isOutdated": {
|
|
4178
|
+
"type": "boolean",
|
|
4179
|
+
"nullable": true
|
|
4180
|
+
},
|
|
4181
|
+
"isRated": {
|
|
4182
|
+
"type": "boolean",
|
|
4183
|
+
"nullable": true
|
|
4184
|
+
},
|
|
4185
|
+
"isScheduled": {
|
|
4186
|
+
"type": "boolean",
|
|
4187
|
+
"nullable": true
|
|
4188
|
+
},
|
|
4189
|
+
"topLevelTasksForHierarchy": {
|
|
4190
|
+
"type": "boolean",
|
|
4191
|
+
"nullable": true
|
|
4192
|
+
}
|
|
4193
|
+
},
|
|
4194
|
+
"additionalProperties": false
|
|
3133
4195
|
}
|
|
3134
4196
|
},
|
|
3135
4197
|
"securitySchemes": {
|
|
@@ -3150,6 +4212,10 @@
|
|
|
3150
4212
|
"name": "Companies",
|
|
3151
4213
|
"description": "Контроллер экспорта данных по компаниям"
|
|
3152
4214
|
},
|
|
4215
|
+
{
|
|
4216
|
+
"name": "Export",
|
|
4217
|
+
"description": "Контроллер статусов асинхронных запросов экспорта."
|
|
4218
|
+
},
|
|
3153
4219
|
{
|
|
3154
4220
|
"name": "MaterialConsumption",
|
|
3155
4221
|
"description": "Контроллер экспорта расхода по материалам"
|
|
@@ -3174,6 +4240,10 @@
|
|
|
3174
4240
|
"name": "Companies",
|
|
3175
4241
|
"description": "Контроллер экспорта данных по компаниям"
|
|
3176
4242
|
},
|
|
4243
|
+
{
|
|
4244
|
+
"name": "Export",
|
|
4245
|
+
"description": "Контроллер статусов асинхронных запросов экспорта."
|
|
4246
|
+
},
|
|
3177
4247
|
{
|
|
3178
4248
|
"name": "MaterialConsumption",
|
|
3179
4249
|
"description": "Контроллер экспорта расхода по материалам"
|