1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-17 12:06:34 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot) 2025-01-17 16:42:49 +03:00
parent 16b70c5503
commit b4825becd1
16 changed files with 6281 additions and 6265 deletions

View File

@ -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/>

View File

@ -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
:::

File diff suppressed because it is too large Load Diff

View File

@ -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

View File

@ -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:

View File

@ -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

View File

@ -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);

View File

@ -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

View File

@ -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:

View File

@ -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

View File

@ -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);