diff --git a/docs/docusaurus/static/img/APIs/ZeroMQ.png b/docs/docusaurus/static/img/APIs/ZeroMQ.png new file mode 100644 index 00000000000..37d3536c8a0 Binary files /dev/null and b/docs/docusaurus/static/img/APIs/ZeroMQ.png differ diff --git a/docs/docusaurus/static/img/APIs/small/ZeroMQ.png b/docs/docusaurus/static/img/APIs/small/ZeroMQ.png new file mode 100644 index 00000000000..db66e27a960 Binary files /dev/null and b/docs/docusaurus/static/img/APIs/small/ZeroMQ.png differ diff --git a/media/ZeroMQ.png b/media/ZeroMQ.png new file mode 100644 index 00000000000..7b26a2b2467 Binary files /dev/null and b/media/ZeroMQ.png differ diff --git a/src/ru/BSL/OpenIntegrations/src/CommonModules/OPI_ZeroMQ/Module.bsl b/src/ru/BSL/OpenIntegrations/src/CommonModules/OPI_ZeroMQ/Module.bsl new file mode 100644 index 00000000000..050806fa00d --- /dev/null +++ b/src/ru/BSL/OpenIntegrations/src/CommonModules/OPI_ZeroMQ/Module.bsl @@ -0,0 +1,58 @@ +// OneScript: ./OInt/api/ws/Modules/OPI_ZeroMQ.os +// Lib: ZeroMQ +// CLI: none +// Keywords: zeromq + +// DocsCategory: Exchange +// DocsNameRU: ZeroMQ +// DocsNameEN: ZeroMQ + +// MIT License + +// Copyright (c) 2023-2026 Anton Tsitavets + +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + +// https://github.com/Bayselonarrend/OpenIntegrations + +// BSLLS:Typo-off +// BSLLS:LatinAndCyrillicSymbolInWord-off +// BSLLS:IncorrectLineBreak-off +// BSLLS:NumberOfOptionalParams-off +// BSLLS:UsingServiceTag-off +// BSLLS:LineLength-off +// BSLLS:UsingSynchronousCalls-off +// BSLLS:MagicNumber-off +// BSLLS:DuplicateStringLiteral-off + +//@skip-check module-structure-top-region +//@skip-check module-structure-method-in-regions +//@skip-check wrong-string-literal-content +//@skip-check method-too-many-params + +// #Использовать "../../../tools/main" +// #Использовать "../../../tools/http" + +#Область ПрограммныйИнтерфейс + +#Область Общие + +#КонецОбласти + +#КонецОбласти diff --git a/src/ru/BSL/OpenIntegrations/src/CommonModules/OPI_ZeroMQ/OPI_ZeroMQ.mdo b/src/ru/BSL/OpenIntegrations/src/CommonModules/OPI_ZeroMQ/OPI_ZeroMQ.mdo new file mode 100644 index 00000000000..d68818327b8 --- /dev/null +++ b/src/ru/BSL/OpenIntegrations/src/CommonModules/OPI_ZeroMQ/OPI_ZeroMQ.mdo @@ -0,0 +1,11 @@ + + + OPI_ZeroMQ + + ru + ZeroMQ (ОПИ) + + true + true + true + diff --git a/src/ru/BSL/OpenIntegrations/src/Configuration/Configuration.mdo b/src/ru/BSL/OpenIntegrations/src/Configuration/Configuration.mdo index d2db5ce3348..118a2b53932 100644 --- a/src/ru/BSL/OpenIntegrations/src/Configuration/Configuration.mdo +++ b/src/ru/BSL/OpenIntegrations/src/Configuration/Configuration.mdo @@ -102,6 +102,7 @@ CommonModule.OPI_YandexDisk CommonModule.OPI_YandexID CommonModule.OPI_YandexMetrika + CommonModule.OPI_ZeroMQ CommonModule.OPI_Инструменты CommonModule.OPI_ЗапросыHTTP CommonModule.OPI_ЗапросыSQL diff --git a/src/ru/BSL/Tests/src/CommonModules/OPI_ПолучениеДанныхТестов/Module.bsl b/src/ru/BSL/Tests/src/CommonModules/OPI_ПолучениеДанныхТестов/Module.bsl index deb1b8f8830..81b3d3614eb 100644 --- a/src/ru/BSL/Tests/src/CommonModules/OPI_ПолучениеДанныхТестов/Module.bsl +++ b/src/ru/BSL/Tests/src/CommonModules/OPI_ПолучениеДанныхТестов/Module.bsl @@ -155,6 +155,7 @@ Разделы.Вставить("S3" , 5); Разделы.Вставить("TCP" , 5); Разделы.Вставить("WebSocket" , 5); + Разделы.Вставить("ZeroMQ" , 5); Разделы.Вставить("GreenAPI" , 5); Разделы.Вставить("GreenMax" , 5); Разделы.Вставить("Ollama" , 5); @@ -209,6 +210,7 @@ GRPC = "GRPC"; CHouse = "ClickHouse"; RSS = "RSS"; + ZMQ = "ZeroMQ"; ТаблицаТестов = Новый ТаблицаЗначений; ТаблицаТестов.Колонки.Добавить("Метод"); diff --git a/src/ru/BSL/Tests/src/CommonModules/OPIt_ZeroMQ/Module.bsl b/src/ru/BSL/Tests/src/CommonModules/OPIt_ZeroMQ/Module.bsl new file mode 100644 index 00000000000..873232d6b1d --- /dev/null +++ b/src/ru/BSL/Tests/src/CommonModules/OPIt_ZeroMQ/Module.bsl @@ -0,0 +1,111 @@ +// OneScript: ./OInt/tests/Modules/OPIt_ZeroMQ.os + +// MIT License + +// Copyright (c) 2023-2026 Anton Tsitavets + +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +// copies of the Software, and to permit persons to whom the Software is +// furnished to do so, subject to the following conditions: + +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. + +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +// SOFTWARE. + +// https://github.com/Bayselonarrend/OpenIntegrations + +// BSLLS:Typo-off +// BSLLS:LatinAndCyrillicSymbolInWord-off +// BSLLS:IncorrectLineBreak-off +// BSLLS:UsingServiceTag-off +// BSLLS:UnusedParameters-off +// BSLLS:DuplicateStringLiteral-off +// BSLLS:UsingHardcodePath-off +// BSLLS:UnusedLocalVariable-off +// BSLLS:DeprecatedMessage-off +// BSLLS:LineLength-off +// BSLLS:MagicNumber-off +// BSLLS:CommentedCode-off +// BSLLS:AssignAliasFieldsInQuery-off +// BSLLS:UsingHardcodeNetworkAddress-off +// BSLLS:UnreachableCode-off +// BSLLS:UnusedLocalMethod-off +// BSLLS:NestedFunctionInParameters-off +// BSLLS:MissingTemporaryFileDeletion-off +// BSLLS:UsingSynchronousCalls-off +// BSLLS:MagicNumber-off +// BSLLS:MagicDate-off +// BSLLS:MissingParameterDescription-off +// BSLLS:NumberOfOptionalParams-off +// BSLLS:MethodSize-off +// BSLLS:NestedConstructorsInStructureDeclaration-off +// BSLLS:NumberOfValuesInStructureConstructor-off +// BSLLS:UsingHardcodeSecretInformation-off +// BSLLS:SpaceAtStartComment-off + +//@skip-check undefined-variable +//@skip-check wrong-string-literal-content +//@skip-check module-structure-top-region +//@skip-check module-structure-method-in-regions +//@skip-check undefined-function-or-procedure +//@skip-check wrong-string-literal-content +//@skip-check module-unused-local-variable +//@skip-check bsl-legacy-check-string-literal +//@skip-check bsl-legacy-check-method-for-statements-after-return +//@skip-check missing-temporary-file-deletion +//@skip-check module-unused-method +//@skip-check use-non-recommended-method + +// #Использовать oint +// #Использовать asserts +// #Использовать "internal" + +// Для YaxUnit + +Процедура ИсполняемыеСценарии() Экспорт + + OPI_ПолучениеДанныхТестов.СформироватьТестыЯкс("ZeroMQ"); + +КонецПроцедуры + +// Для Asserts + +Функция ПолучитьСписокТестов(ЮнитТестирование) Экспорт + + Возврат OPI_ПолучениеДанныхТестов.СформироватьТестыАссертс("ZeroMQ"); + +КонецФункции + +#Область СлужебныйПрограммныйИнтерфейс + +#Область ЗапускаемыеТесты + +#Область ZeroMQ + +#КонецОбласти // ZeroMQ + +#КонецОбласти // ЗапускаемыеТесты + +#КонецОбласти // СлужебныйПрограммныйИнтерфейс + +#Область СлужебныеПроцедурыИФункции + +#Область АтомарныеТесты + +#Область ZeroMQ + +#КонецОбласти // ZeroMQ + +#КонецОбласти // АтомарныеТесты + +#КонецОбласти // СлужебныеПроцедурыИФункции diff --git a/src/ru/BSL/Tests/src/CommonModules/OPIt_ZeroMQ/OPIt_ZeroMQ.mdo b/src/ru/BSL/Tests/src/CommonModules/OPIt_ZeroMQ/OPIt_ZeroMQ.mdo new file mode 100644 index 00000000000..cc18502c5b5 --- /dev/null +++ b/src/ru/BSL/Tests/src/CommonModules/OPIt_ZeroMQ/OPIt_ZeroMQ.mdo @@ -0,0 +1,11 @@ + + + OPIt_ZeroMQ + + ru + ZeroMQ + + true + true + true + diff --git a/src/ru/BSL/Tests/src/Configuration/Configuration.mdo b/src/ru/BSL/Tests/src/Configuration/Configuration.mdo index 15696974ed2..d3b53172286 100644 --- a/src/ru/BSL/Tests/src/Configuration/Configuration.mdo +++ b/src/ru/BSL/Tests/src/Configuration/Configuration.mdo @@ -60,11 +60,13 @@ CommonModule.OPIt_YandexDisk CommonModule.OPIt_YandexID CommonModule.OPIt_YandexMetrika + CommonModule.OPIt_ZeroMQ CommonModule.OPItc_Airtable CommonModule.OPItc_Bitrix24 CommonModule.OPItc_BuildHash CommonModule.OPItc_CDEK CommonModule.OPItc_ClickHouse + CommonModule.OPItc_Core CommonModule.OPItc_Dropbox CommonModule.OPItc_FTP CommonModule.OPItc_GoogleCalendar @@ -100,5 +102,4 @@ CommonModule.OPItc_YandexDisk CommonModule.OPItc_YandexID CommonModule.OPItc_YandexMetrika - CommonModule.OPItc_Core