mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-04-09 07:14:16 +02:00
Main build (Jenkins)
This commit is contained in:
parent
16b70c5503
commit
b4825becd1
@ -27,7 +27,7 @@ import TabItem from '@theme/TabItem';
|
||||
:::tip
|
||||
Method at API documentation: [im.chat.updateTitle](https://dev.1c-bitrix.ru/learning/course/?COURSE_ID=93&LESSON_ID=12105)
|
||||
|
||||
Available colors: RED, GREEN, MINT, LIGHT_BLUE, DARK_BLUE, PURPLE, AQUA, PINK, LIME, BROWN, AZURE, KHAKI, SAND, MARENGO, GRAY, GRAPHITE
|
||||
Available colours: RED, GREEN, MINT, LIGHT_BLUE, DARK_BLUE, PURPLE, AQUA, PINK, LIME, BROWN, AZURE, KHAKI, SAND, MARENGO, GRAY, GRAPHITE
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
@ -22,7 +22,7 @@ import TabItem from '@theme/TabItem';
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
This structure should be supplemented with fields that depend on the product category from GetCategoryAttributes()
|
||||
This structure should be supplemented with fields depending on the product category from the GetCategoryAttributes function()
|
||||
|
||||
The first image in the image array (images field) will be the main image
|
||||
:::
|
||||
|
12346
service/dictionaries/en.json
vendored
12346
service/dictionaries/en.json
vendored
File diff suppressed because it is too large
Load Diff
2
src/en/OInt/core/Modules/OPI_Bitrix24.os
vendored
2
src/en/OInt/core/Modules/OPI_Bitrix24.os
vendored
@ -3041,7 +3041,7 @@ EndFunction
|
||||
//
|
||||
// Note
|
||||
// Method at API documentation: [im.chat.updateTitle](@dev.1c-bitrix.ru/learning/course/?COURSE_ID=93&LESSON_ID=12105)
|
||||
// Available colors: RED, GREEN, MINT, LIGHT_BLUE, DARK_BLUE, PURPLE, AQUA, PINK, LIME, BROWN, AZURE, KHAKI, SAND, MARENGO, GRAY, GRAPHITE
|
||||
// Available colours: RED, GREEN, MINT, LIGHT_BLUE, DARK_BLUE, PURPLE, AQUA, PINK, LIME, BROWN, AZURE, KHAKI, SAND, MARENGO, GRAY, GRAPHITE
|
||||
//
|
||||
// Parameters:
|
||||
// URL - String - URL of webhook or a Bitrix24 domain, when token used - url
|
||||
|
2
src/en/OInt/core/Modules/OPI_Ozon.os
vendored
2
src/en/OInt/core/Modules/OPI_Ozon.os
vendored
@ -843,7 +843,7 @@ EndFunction
|
||||
// Gets the structure of product standard fields
|
||||
//
|
||||
// Note
|
||||
// This structure should be supplemented with fields that depend on the product category from GetCategoryAttributes()
|
||||
// This structure should be supplemented with fields depending on the product category from the GetCategoryAttributes function()
|
||||
// The first image in the image array (images field) will be the main image
|
||||
//
|
||||
// Parameters:
|
||||
|
66
src/en/OInt/core/Modules/OPI_SQLite.os
vendored
66
src/en/OInt/core/Modules/OPI_SQLite.os
vendored
@ -363,56 +363,60 @@ EndFunction
|
||||
|
||||
Function ProcessParameters(Val Parameters)
|
||||
|
||||
If ValueIsFilled(Parameters) Then
|
||||
If Not ValueIsFilled(Parameters) Then
|
||||
Return "[]";
|
||||
EndIf;
|
||||
|
||||
Blob_ = "blob";
|
||||
OPI_TypeConversion.GetArray(Parameters);
|
||||
|
||||
OPI_TypeConversion.GetArray(Parameters);
|
||||
For N = 0 To Parameters.UBound() Do
|
||||
|
||||
For N = 0 To Parameters.UBound() Do
|
||||
CurrentParameter = Parameters[N];
|
||||
|
||||
CurrentParameter = Parameters[N];
|
||||
If TypeOf(CurrentParameter) = Type("BinaryData") Then
|
||||
|
||||
If TypeOf(CurrentParameter) = Type("BinaryData") Then
|
||||
CurrentParameter = New Structure("blob", Base64String(CurrentParameter));
|
||||
|
||||
CurrentParameter = New Structure(Blob_, Base64String(CurrentParameter));
|
||||
ElsIf OPI_Tools.CollectionFieldExist(CurrentParameter, "blob") Then
|
||||
|
||||
ElsIf OPI_Tools.CollectionFieldExist(CurrentParameter, Blob_) Then
|
||||
CurrentParameter = ProcessBlobStructure(CurrentParameter);
|
||||
|
||||
DataValue = CurrentParameter[Blob_];
|
||||
DataFile = New File(String(DataValue));
|
||||
ElsIf TypeOf(CurrentParameter) = Type("Date") Then
|
||||
|
||||
If DataFile.Exist() Then
|
||||
CurrentData = New BinaryData(String(DataValue));
|
||||
CurrentParameter = New Structure(Blob_, Base64String(CurrentData));
|
||||
EndIf;
|
||||
CurrentParameter = Format(CurrentParameter, "DF='yyyy-MM-dd HH:MM:ss");
|
||||
|
||||
ElsIf TypeOf(CurrentParameter) = Type("Date") Then
|
||||
|
||||
CurrentParameter = Format(CurrentParameter, "DF='yyyy-MM-dd HH:MM:ss");
|
||||
|
||||
Else
|
||||
|
||||
If Not OPI_Tools.IsPrimitiveType(CurrentParameter) Then
|
||||
OPI_TypeConversion.GetLine(CurrentParameter);
|
||||
EndIf;
|
||||
Else
|
||||
|
||||
If Not OPI_Tools.IsPrimitiveType(CurrentParameter) Then
|
||||
OPI_TypeConversion.GetLine(CurrentParameter);
|
||||
EndIf;
|
||||
|
||||
Parameters[N] = CurrentParameter;
|
||||
EndIf;
|
||||
|
||||
EndDo;
|
||||
Parameters[N] = CurrentParameter;
|
||||
|
||||
Parameters_ = OPI_Tools.JSONString(Parameters, , False);
|
||||
EndDo;
|
||||
|
||||
Else
|
||||
|
||||
Parameters_ = "[]";
|
||||
|
||||
EndIf;
|
||||
Parameters_ = OPI_Tools.JSONString(Parameters, , False);
|
||||
|
||||
Return Parameters_;
|
||||
|
||||
EndFunction
|
||||
|
||||
Function ProcessBlobStructure(Val Value)
|
||||
|
||||
DataValue = Value["blob"];
|
||||
DataFile = New File(String(DataValue));
|
||||
|
||||
If DataFile.Exist() Then
|
||||
|
||||
CurrentData = New BinaryData(String(DataValue));
|
||||
Value = New Structure("blob", Base64String(CurrentData));
|
||||
|
||||
EndIf;
|
||||
|
||||
Return Value;
|
||||
|
||||
EndFunction
|
||||
|
||||
#EndRegion
|
||||
|
@ -2454,7 +2454,9 @@ Procedure CLI_Telegram_SendPicture(FunctionParameters)
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("telegram", "SendImage", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLogCLI(Result, "SendImage", "Telegram");
|
||||
OPI_TestDataRetrieval.Check_TelegramImage(Result, Text); MessageID = OPI_Tools.NumberToString(Result["result"]["message_id"]);
|
||||
OPI_TestDataRetrieval.Check_TelegramImage(Result, Text);
|
||||
|
||||
MessageID = OPI_Tools.NumberToString(Result["result"]["message_id"]);
|
||||
OPI_TestDataRetrieval.WriteParameter("Telegram_PicMessageID", MessageID);
|
||||
OPI_Tools.AddField("Telegram_PicMessageID", MessageID, "String", FunctionParameters);
|
||||
|
||||
@ -3162,7 +3164,9 @@ Procedure CLI_Telegram_ReplaceMessageCaption(FunctionParameters)
|
||||
ChatID = FunctionParameters["Telegram_ChatID"];
|
||||
MessageID = FunctionParameters["Telegram_PicMessageID"];
|
||||
|
||||
Description = "New picture description"; Options = New Structure;
|
||||
Description = "New picture description";
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("token" , Token);
|
||||
Options.Insert("chat" , ChatID);
|
||||
Options.Insert("message" , MessageID);
|
||||
|
@ -3041,7 +3041,7 @@ EndFunction
|
||||
//
|
||||
// Note
|
||||
// Method at API documentation: [im.chat.updateTitle](@dev.1c-bitrix.ru/learning/course/?COURSE_ID=93&LESSON_ID=12105)
|
||||
// Available colors: RED, GREEN, MINT, LIGHT_BLUE, DARK_BLUE, PURPLE, AQUA, PINK, LIME, BROWN, AZURE, KHAKI, SAND, MARENGO, GRAY, GRAPHITE
|
||||
// Available colours: RED, GREEN, MINT, LIGHT_BLUE, DARK_BLUE, PURPLE, AQUA, PINK, LIME, BROWN, AZURE, KHAKI, SAND, MARENGO, GRAY, GRAPHITE
|
||||
//
|
||||
// Parameters:
|
||||
// URL - String - URL of webhook or a Bitrix24 domain, when token used - url
|
||||
|
@ -843,7 +843,7 @@ EndFunction
|
||||
// Gets the structure of product standard fields
|
||||
//
|
||||
// Note
|
||||
// This structure should be supplemented with fields that depend on the product category from GetCategoryAttributes()
|
||||
// This structure should be supplemented with fields depending on the product category from the GetCategoryAttributes function()
|
||||
// The first image in the image array (images field) will be the main image
|
||||
//
|
||||
// Parameters:
|
||||
|
@ -363,56 +363,60 @@ EndFunction
|
||||
|
||||
Function ProcessParameters(Val Parameters)
|
||||
|
||||
If ValueIsFilled(Parameters) Then
|
||||
If Not ValueIsFilled(Parameters) Then
|
||||
Return "[]";
|
||||
EndIf;
|
||||
|
||||
Blob_ = "blob";
|
||||
OPI_TypeConversion.GetArray(Parameters);
|
||||
|
||||
OPI_TypeConversion.GetArray(Parameters);
|
||||
For N = 0 To Parameters.UBound() Do
|
||||
|
||||
For N = 0 To Parameters.UBound() Do
|
||||
CurrentParameter = Parameters[N];
|
||||
|
||||
CurrentParameter = Parameters[N];
|
||||
If TypeOf(CurrentParameter) = Type("BinaryData") Then
|
||||
|
||||
If TypeOf(CurrentParameter) = Type("BinaryData") Then
|
||||
CurrentParameter = New Structure("blob", Base64String(CurrentParameter));
|
||||
|
||||
CurrentParameter = New Structure(Blob_, Base64String(CurrentParameter));
|
||||
ElsIf OPI_Tools.CollectionFieldExists(CurrentParameter, "blob") Then
|
||||
|
||||
ElsIf OPI_Tools.CollectionFieldExists(CurrentParameter, Blob_) Then
|
||||
CurrentParameter = ProcessBlobStructure(CurrentParameter);
|
||||
|
||||
DataValue = CurrentParameter[Blob_];
|
||||
DataFile = New File(String(DataValue));
|
||||
ElsIf TypeOf(CurrentParameter) = Type("Date") Then
|
||||
|
||||
If DataFile.Exists() Then
|
||||
CurrentData = New BinaryData(String(DataValue));
|
||||
CurrentParameter = New Structure(Blob_, Base64String(CurrentData));
|
||||
EndIf;
|
||||
CurrentParameter = Format(CurrentParameter, "DF='yyyy-MM-dd HH:MM:ss");
|
||||
|
||||
ElsIf TypeOf(CurrentParameter) = Type("Date") Then
|
||||
|
||||
CurrentParameter = Format(CurrentParameter, "DF='yyyy-MM-dd HH:MM:ss");
|
||||
|
||||
Else
|
||||
|
||||
If Not OPI_Tools.IsPrimitiveType(CurrentParameter) Then
|
||||
OPI_TypeConversion.GetLine(CurrentParameter);
|
||||
EndIf;
|
||||
Else
|
||||
|
||||
If Not OPI_Tools.IsPrimitiveType(CurrentParameter) Then
|
||||
OPI_TypeConversion.GetLine(CurrentParameter);
|
||||
EndIf;
|
||||
|
||||
Parameters[N] = CurrentParameter;
|
||||
EndIf;
|
||||
|
||||
EndDo;
|
||||
Parameters[N] = CurrentParameter;
|
||||
|
||||
Parameters_ = OPI_Tools.JSONString(Parameters, , False);
|
||||
EndDo;
|
||||
|
||||
Else
|
||||
|
||||
Parameters_ = "[]";
|
||||
|
||||
EndIf;
|
||||
Parameters_ = OPI_Tools.JSONString(Parameters, , False);
|
||||
|
||||
Return Parameters_;
|
||||
|
||||
EndFunction
|
||||
|
||||
Function ProcessBlobStructure(Val Value)
|
||||
|
||||
DataValue = Value["blob"];
|
||||
DataFile = New File(String(DataValue));
|
||||
|
||||
If DataFile.Exists() Then
|
||||
|
||||
CurrentData = New BinaryData(String(DataValue));
|
||||
Value = New Structure("blob", Base64String(CurrentData));
|
||||
|
||||
EndIf;
|
||||
|
||||
Return Value;
|
||||
|
||||
EndFunction
|
||||
|
||||
#EndRegion
|
||||
|
@ -2454,7 +2454,9 @@ Procedure CLI_Telegram_SendPicture(FunctionParameters)
|
||||
Result = OPI_TestDataRetrieval.ExecuteTestCLI("telegram", "SendImage", Options);
|
||||
|
||||
OPI_TestDataRetrieval.WriteLogCLI(Result, "SendImage", "Telegram");
|
||||
OPI_TestDataRetrieval.Check_TelegramImage(Result, Text); MessageID = OPI_Tools.NumberToString(Result["result"]["message_id"]);
|
||||
OPI_TestDataRetrieval.Check_TelegramImage(Result, Text);
|
||||
|
||||
MessageID = OPI_Tools.NumberToString(Result["result"]["message_id"]);
|
||||
OPI_TestDataRetrieval.WriteParameter("Telegram_PicMessageID", MessageID);
|
||||
OPI_Tools.AddField("Telegram_PicMessageID", MessageID, "String", FunctionParameters);
|
||||
|
||||
@ -3162,7 +3164,9 @@ Procedure CLI_Telegram_ReplaceMessageCaption(FunctionParameters)
|
||||
ChatID = FunctionParameters["Telegram_ChatID"];
|
||||
MessageID = FunctionParameters["Telegram_PicMessageID"];
|
||||
|
||||
Description = "New picture description"; Options = New Structure;
|
||||
Description = "New picture description";
|
||||
|
||||
Options = New Structure;
|
||||
Options.Insert("token" , Token);
|
||||
Options.Insert("chat" , ChatID);
|
||||
Options.Insert("message" , MessageID);
|
||||
|
10
src/ru/OInt/core/Modules/OPI_SQLite.os
vendored
10
src/ru/OInt/core/Modules/OPI_SQLite.os
vendored
@ -363,7 +363,7 @@
|
||||
|
||||
Функция ОбработатьПараметры(Знач Параметры)
|
||||
|
||||
Если Не ЗначениеЗаполнено(Параметры) Тогда
|
||||
Если Не ЗначениеЗаполнено(Параметры) Тогда
|
||||
Возврат "[]";
|
||||
КонецЕсли;
|
||||
|
||||
@ -409,14 +409,14 @@
|
||||
ФайлДанных = Новый Файл(Строка(ЗначениеДанных));
|
||||
|
||||
Если ФайлДанных.Существует() Тогда
|
||||
|
||||
|
||||
ТекущиеДанные = Новый ДвоичныеДанные(Строка(ЗначениеДанных));
|
||||
Значение = Новый Структура("blob", Base64Строка(ТекущиеДанные));
|
||||
|
||||
|
||||
КонецЕсли;
|
||||
|
||||
|
||||
Возврат Значение;
|
||||
|
||||
|
||||
КонецФункции
|
||||
|
||||
#КонецОбласти
|
||||
|
@ -2454,8 +2454,8 @@
|
||||
Результат = OPI_ПолучениеДанныхТестов.ВыполнитьТестCLI("telegram", "ОтправитьКартинку", Опции);
|
||||
|
||||
OPI_ПолучениеДанныхТестов.ЗаписатьЛогCLI(Результат, "ОтправитьКартинку", "Telegram");
|
||||
OPI_ПолучениеДанныхТестов.Проверка_ТелеграмКартинка(Результат, Текст);
|
||||
|
||||
OPI_ПолучениеДанныхТестов.Проверка_ТелеграмКартинка(Результат, Текст);
|
||||
|
||||
IDСообщения = OPI_Инструменты.ЧислоВСтроку(Результат["result"]["message_id"]);
|
||||
OPI_ПолучениеДанныхТестов.ЗаписатьПараметр("Telegram_PicMessageID", IDСообщения);
|
||||
OPI_Инструменты.ДобавитьПоле("Telegram_PicMessageID", IDСообщения, "Строка", ПараметрыФункции);
|
||||
@ -3164,8 +3164,8 @@
|
||||
IDЧата = ПараметрыФункции["Telegram_ChatID"];
|
||||
IDСообщения = ПараметрыФункции["Telegram_PicMessageID"];
|
||||
|
||||
Описание = "Новое описание картинки";
|
||||
|
||||
Описание = "Новое описание картинки";
|
||||
|
||||
Опции = Новый Структура;
|
||||
Опции.Вставить("token" , Токен);
|
||||
Опции.Вставить("chat" , IDЧата);
|
||||
|
@ -2131,9 +2131,9 @@
|
||||
КонецФункции
|
||||
|
||||
Функция ПолучитьОбщийМодуль(Знач Имя)
|
||||
|
||||
|
||||
Модуль = Вычислить(Имя);
|
||||
|
||||
|
||||
Возврат Модуль;
|
||||
КонецФункции
|
||||
|
||||
|
@ -363,7 +363,7 @@
|
||||
|
||||
Функция ОбработатьПараметры(Знач Параметры)
|
||||
|
||||
Если Не ЗначениеЗаполнено(Параметры) Тогда
|
||||
Если Не ЗначениеЗаполнено(Параметры) Тогда
|
||||
Возврат "[]";
|
||||
КонецЕсли;
|
||||
|
||||
@ -409,14 +409,14 @@
|
||||
ФайлДанных = Новый Файл(Строка(ЗначениеДанных));
|
||||
|
||||
Если ФайлДанных.Существует() Тогда
|
||||
|
||||
|
||||
ТекущиеДанные = Новый ДвоичныеДанные(Строка(ЗначениеДанных));
|
||||
Значение = Новый Структура("blob", Base64Строка(ТекущиеДанные));
|
||||
|
||||
|
||||
КонецЕсли;
|
||||
|
||||
|
||||
Возврат Значение;
|
||||
|
||||
|
||||
КонецФункции
|
||||
|
||||
#КонецОбласти
|
||||
|
@ -2454,8 +2454,8 @@
|
||||
Результат = OPI_ПолучениеДанныхТестов.ВыполнитьТестCLI("telegram", "ОтправитьКартинку", Опции);
|
||||
|
||||
OPI_ПолучениеДанныхТестов.ЗаписатьЛогCLI(Результат, "ОтправитьКартинку", "Telegram");
|
||||
OPI_ПолучениеДанныхТестов.Проверка_ТелеграмКартинка(Результат, Текст);
|
||||
|
||||
OPI_ПолучениеДанныхТестов.Проверка_ТелеграмКартинка(Результат, Текст);
|
||||
|
||||
IDСообщения = OPI_Инструменты.ЧислоВСтроку(Результат["result"]["message_id"]);
|
||||
OPI_ПолучениеДанныхТестов.ЗаписатьПараметр("Telegram_PicMessageID", IDСообщения);
|
||||
OPI_Инструменты.ДобавитьПоле("Telegram_PicMessageID", IDСообщения, "Строка", ПараметрыФункции);
|
||||
@ -3164,8 +3164,8 @@
|
||||
IDЧата = ПараметрыФункции["Telegram_ChatID"];
|
||||
IDСообщения = ПараметрыФункции["Telegram_PicMessageID"];
|
||||
|
||||
Описание = "Новое описание картинки";
|
||||
|
||||
Описание = "Новое описание картинки";
|
||||
|
||||
Опции = Новый Структура;
|
||||
Опции.Вставить("token" , Токен);
|
||||
Опции.Вставить("chat" , IDЧата);
|
||||
|
Loading…
x
Reference in New Issue
Block a user