1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00

Main build (Jenkins)

This commit is contained in:
Vitaly the Alpaca (bot)
2025-10-05 19:19:32 +03:00
parent e0f8de4bc1
commit f770866203
682 changed files with 21008 additions and 13353 deletions

View File

@@ -0,0 +1 @@
{"Host":"172.33.0.13","Port":"2222","Login":"bayselonarrend","Password":"12we...","ProxyType":"http","ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyLogin":"proxyuser","ProxyPassword":"12we..."}

View File

@@ -0,0 +1 @@
{"Host":"172.33.0.13","Port":"2222","Login":"bayselonarrend","Password":"12we...","ProxyType":"http","ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyLogin":"proxyuser","ProxyPassword":"12we..."}

1
docs/en/data/SFTP/GetFileData.json vendored Normal file
View File

@@ -0,0 +1 @@
{"Host":"172.33.0.13","Port":"2222","Login":"bayselonarrend","Password":"12we...","ProxyType":"http","ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyLogin":"proxyuser","ProxyPassword":"12we..."}

View File

@@ -0,0 +1 @@
{"Host":"172.33.0.13","Port":"2222","Login":"bayselonarrend","Password":"12we...","ProxyType":"http","ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyLogin":"proxyuser","ProxyPassword":"12we..."}

View File

@@ -0,0 +1 @@
{"ProxyType":"http","ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyLogin":"proxyuser","ProxyPassword":"12we..."}

View File

@@ -0,0 +1 @@
{"Host":"172.33.0.13","Port":"2222","Login":"bayselonarrend","Password":"12we..."}

View File

@@ -0,0 +1 @@
{"Host":"172.33.0.13","Port":"2222","Login":"bayselonarrend"}

View File

@@ -0,0 +1 @@
{"Host":"172.33.0.13","Port":"2222","Login":"bayselonarrend"}

1
docs/en/data/SFTP/IsConnector.json vendored Normal file
View File

@@ -0,0 +1 @@
{"Host":"172.33.0.13","Port":"2222","Login":"bayselonarrend","Password":"12we...","ProxyType":"http","ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyLogin":"proxyuser","ProxyPassword":"12we..."}

1
docs/en/data/SFTP/SaveFile.json vendored Normal file
View File

@@ -0,0 +1 @@
{"Host":"172.33.0.13","Port":"2222","Login":"bayselonarrend","Password":"12we...","ProxyType":"http","ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyLogin":"proxyuser","ProxyPassword":"12we..."}

1
docs/en/data/SFTP/UpdatePath.json vendored Normal file
View File

@@ -0,0 +1 @@
{"Host":"172.33.0.13","Port":"2222","Login":"bayselonarrend","Password":"12we...","ProxyType":"http","ProxyAddress":"127.0.0.1","ProxyPort":8071,"ProxyLogin":"proxyuser","ProxyPassword":"12we..."}

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
AccessKey = "AccessKey";

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
RandomArray = New Array;

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Token = "***";

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
ParametersStructure = New Structure("param1,param2", "text", 10);

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
TFN = GetTempFileName();

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
MIMEType = "text/markdown";

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Data = New Structure("Field1,Field2", "10", "Text");

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Headers = New Map;

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
RandomArray = New Array;

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Token = "***";

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
ProxySettings = New InternetProxy;

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
TFN = GetTempFileName();

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Text = "Hello world!";

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
ParametersStructure = New Structure("param1,param2", "text", 10);

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
ArrayParam = New Array;

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Text = "Hello world!";

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

View File

@@ -1,4 +1,4 @@
 URL = "http://localhost:2424";
 URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
ParametersStructure = New Structure;

View File

@@ -0,0 +1,49 @@
 Host = "172.33.0.13";
Port = "2222";
UseProxy = True;
ProxySettings = Undefined;
AuthorizationType = "By login and password";
If AuthorizationType = "By login and password" Then
Login = "bayselonarrend";
Password = "12we...";
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
ElsIf AuthorizationType = "By key" Then
Login = "bayselonarrend";
PrivateKey = "./ssh_key";
PublicKey = "./ssh_key.pub";
SFTPSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
Else
Login = "bayselonarrend";
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
EndIf;
If UseProxy Then
ProxyType = "http"; // http, socks5, socks4
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyLogin = "proxyuser";
ProxyPassword = "12we...";
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
EndIf;
Connection = OPI_SFTP.CreateConnection(SFTPSettings, ProxySettings);
If OPI_SFTP.IsConnector(Connection) Then
Result = OPI_SFTP.CloseConnection(Connection);
Else
Result = Connection; // Error of connection
EndIf;

View File

@@ -10,7 +10,7 @@
Login = "bayselonarrend";
Password = "12we...";
SSHSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
ElsIf AuthorizationType = "By key" Then
@@ -18,12 +18,12 @@
PrivateKey = "./ssh_key";
PublicKey = "./ssh_key.pub";
SSHSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
SFTPSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
Else
Login = "bayselonarrend";
SSHSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
Login = "bayselonarrend";
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
EndIf;
@@ -40,4 +40,4 @@
EndIf;
Result = OPI_SFTP.CreateConnection(SSHSettings, ProxySettings);
Result = OPI_SFTP.CreateConnection(SFTPSettings, ProxySettings);

View File

@@ -10,7 +10,7 @@
Login = "bayselonarrend";
Password = "12we...";
SSHSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
ElsIf AuthorizationType = "By key" Then
@@ -18,12 +18,12 @@
PrivateKey = "./ssh_key";
PublicKey = "./ssh_key.pub";
SSHSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
SFTPSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
Else
Login = "bayselonarrend";
SSHSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
Login = "bayselonarrend";
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
EndIf;
@@ -40,7 +40,7 @@
EndIf;
Connection = OPI_SFTP.CreateConnection(SSHSettings, ProxySettings);
Connection = OPI_SFTP.CreateConnection(SFTPSettings, ProxySettings);
If OPI_SFTP.IsConnector(Connection) Then
Result = OPI_SFTP.CreateNewDirectory(Connection, "new_dir");

View File

@@ -10,7 +10,7 @@
Login = "bayselonarrend";
Password = "12we...";
SSHSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
ElsIf AuthorizationType = "By key" Then
@@ -18,12 +18,12 @@
PrivateKey = "./ssh_key";
PublicKey = "./ssh_key.pub";
SSHSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
SFTPSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
Else
Login = "bayselonarrend";
SSHSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
Login = "bayselonarrend";
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
EndIf;
@@ -40,7 +40,7 @@
EndIf;
Connection = OPI_SFTP.CreateConnection(SSHSettings, ProxySettings);
Connection = OPI_SFTP.CreateConnection(SFTPSettings, ProxySettings);
If OPI_SFTP.IsConnector(Connection) Then
Result = OPI_SFTP.DeleteDirectory(Connection, "new_dir");

View File

@@ -10,7 +10,7 @@
Login = "bayselonarrend";
Password = "12we...";
SSHSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
ElsIf AuthorizationType = "By key" Then
@@ -18,12 +18,12 @@
PrivateKey = "./ssh_key";
PublicKey = "./ssh_key.pub";
SSHSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
SFTPSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
Else
Login = "bayselonarrend";
SSHSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
Login = "bayselonarrend";
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
EndIf;
@@ -40,7 +40,7 @@
EndIf;
Connection = OPI_SFTP.CreateConnection(SSHSettings, ProxySettings);
Connection = OPI_SFTP.CreateConnection(SFTPSettings, ProxySettings);
If OPI_SFTP.IsConnector(Connection) Then
Result = OPI_SFTP.DeleteFile(Connection, "files_folder/pic_from_binary.png");

View File

@@ -0,0 +1,43 @@
 Host = "172.33.0.13";
Port = "2222";
UseProxy = True;
ProxySettings = Undefined;
AuthorizationType = "By login and password";
If AuthorizationType = "By login and password" Then
Login = "bayselonarrend";
Password = "12we...";
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
ElsIf AuthorizationType = "By key" Then
Login = "bayselonarrend";
PrivateKey = "./ssh_key";
PublicKey = "./ssh_key.pub";
SFTPSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
Else
Login = "bayselonarrend";
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
EndIf;
If UseProxy Then
ProxyType = "http"; // http, socks5, socks4
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyLogin = "proxyuser";
ProxyPassword = "12we...";
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
EndIf;
Result = OPI_SFTP.GetConnectionConfiguration(SFTPSettings, ProxySettings);

View File

@@ -10,7 +10,7 @@
Login = "bayselonarrend";
Password = "12we...";
SSHSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
ElsIf AuthorizationType = "By key" Then
@@ -18,12 +18,12 @@
PrivateKey = "./ssh_key";
PublicKey = "./ssh_key.pub";
SSHSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
SFTPSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
Else
Login = "bayselonarrend";
SSHSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
Login = "bayselonarrend";
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
EndIf;
@@ -40,7 +40,7 @@
EndIf;
Connection = OPI_SFTP.CreateConnection(SSHSettings, ProxySettings);
Connection = OPI_SFTP.CreateConnection(SFTPSettings, ProxySettings);
If OPI_SFTP.IsConnector(Connection) Then
Result = OPI_SFTP.GetCurrentDirectory(Connection);

52
docs/en/examples/SFTP/GetFileData.txt vendored Normal file
View File

@@ -0,0 +1,52 @@
 Host = "172.33.0.13";
Port = "2222";
UseProxy = True;
ProxySettings = Undefined;
AuthorizationType = "By login and password";
If AuthorizationType = "By login and password" Then
Login = "bayselonarrend";
Password = "12we...";
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
ElsIf AuthorizationType = "By key" Then
Login = "bayselonarrend";
PrivateKey = "./ssh_key";
PublicKey = "./ssh_key.pub";
SFTPSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
Else
Login = "bayselonarrend";
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
EndIf;
If UseProxy Then
ProxyType = "http"; // http, socks5, socks4
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyLogin = "proxyuser";
ProxyPassword = "12we...";
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
EndIf;
Connection = OPI_SFTP.CreateConnection(SFTPSettings, ProxySettings);
If OPI_SFTP.IsConnector(Connection) Then
Path = "pic_from_disk.png";
Result = OPI_SFTP.GetFileData(Connection, Path);
Else
Result = Connection; // Error of connection
EndIf;

View File

@@ -0,0 +1,49 @@
 Host = "172.33.0.13";
Port = "2222";
UseProxy = True;
ProxySettings = Undefined;
AuthorizationType = "By login and password";
If AuthorizationType = "By login and password" Then
Login = "bayselonarrend";
Password = "12we...";
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
ElsIf AuthorizationType = "By key" Then
Login = "bayselonarrend";
PrivateKey = "./ssh_key";
PublicKey = "./ssh_key.pub";
SFTPSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
Else
Login = "bayselonarrend";
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
EndIf;
If UseProxy Then
ProxyType = "http"; // http, socks5, socks4
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyLogin = "proxyuser";
ProxyPassword = "12we...";
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
EndIf;
Connection = OPI_SFTP.CreateConnection(SFTPSettings, ProxySettings);
If OPI_SFTP.IsConnector(Connection) Then
Result = OPI_SFTP.GetFileInformation(Connection, "files_folder/pic_from_binary.png");
Else
Result = Connection; // Error of connection
EndIf;

View File

@@ -0,0 +1,8 @@
 ProxyType = "http"; // http, socks5, socks4
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyLogin = "proxyuser";
ProxyPassword = "12we...";
Result = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);

View File

@@ -0,0 +1,6 @@
 Host = "172.33.0.13";
Port = "2222";
Login = "bayselonarrend";
Password = "12we...";
Result = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);

View File

@@ -0,0 +1,7 @@
 Host = "172.33.0.13";
Port = "2222";
Login = "bayselonarrend";
PrivateKey = "./ssh_key";
PublicKey = "./ssh_key.pub";
Result = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);

View File

@@ -0,0 +1,4 @@
 Host = "172.33.0.13";
Port = "2222";
Login = "bayselonarrend";
Result = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);

44
docs/en/examples/SFTP/IsConnector.txt vendored Normal file
View File

@@ -0,0 +1,44 @@
 Host = "172.33.0.13";
Port = "2222";
UseProxy = True;
ProxySettings = Undefined;
AuthorizationType = "By login and password";
If AuthorizationType = "By login and password" Then
Login = "bayselonarrend";
Password = "12we...";
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
ElsIf AuthorizationType = "By key" Then
Login = "bayselonarrend";
PrivateKey = "./ssh_key";
PublicKey = "./ssh_key.pub";
SFTPSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
Else
Login = "bayselonarrend";
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
EndIf;
If UseProxy Then
ProxyType = "http"; // http, socks5, socks4
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyLogin = "proxyuser";
ProxyPassword = "12we...";
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
EndIf;
Connection = OPI_SFTP.CreateConnection(SFTPSettings, ProxySettings);
Result = OPI_SFTP.IsConnector(Connection);

View File

@@ -10,7 +10,7 @@
Login = "bayselonarrend";
Password = "12we...";
SSHSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
ElsIf AuthorizationType = "By key" Then
@@ -18,12 +18,12 @@
PrivateKey = "./ssh_key";
PublicKey = "./ssh_key.pub";
SSHSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
SFTPSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
Else
Login = "bayselonarrend";
SSHSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
Login = "bayselonarrend";
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
EndIf;
@@ -40,7 +40,7 @@
EndIf;
Connection = OPI_SFTP.CreateConnection(SSHSettings, ProxySettings);
Connection = OPI_SFTP.CreateConnection(SFTPSettings, ProxySettings);
If OPI_SFTP.IsConnector(Connection) Then
Result = OPI_SFTP.ListObjects(Connection, "test_folder", True);

54
docs/en/examples/SFTP/SaveFile.txt vendored Normal file
View File

@@ -0,0 +1,54 @@
 Host = "172.33.0.13";
Port = "2222";
UseProxy = True;
ProxySettings = Undefined;
AuthorizationType = "By login and password";
If AuthorizationType = "By login and password" Then
Login = "bayselonarrend";
Password = "12we...";
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
ElsIf AuthorizationType = "By key" Then
Login = "bayselonarrend";
PrivateKey = "./ssh_key";
PublicKey = "./ssh_key.pub";
SFTPSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
Else
Login = "bayselonarrend";
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
EndIf;
If UseProxy Then
ProxyType = "http"; // http, socks5, socks4
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyLogin = "proxyuser";
ProxyPassword = "12we...";
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
EndIf;
Connection = OPI_SFTP.CreateConnection(SFTPSettings, ProxySettings);
If OPI_SFTP.IsConnector(Connection) Then
Path = "pic_from_disk.png";
FileName = GetTempFileName("bin");
Result = OPI_SFTP.SaveFile(Connection, Path, FileName);
Else
Result = Connection; // Error of connection
EndIf;

49
docs/en/examples/SFTP/UpdatePath.txt vendored Normal file
View File

@@ -0,0 +1,49 @@
 Host = "172.33.0.13";
Port = "2222";
UseProxy = True;
ProxySettings = Undefined;
AuthorizationType = "By login and password";
If AuthorizationType = "By login and password" Then
Login = "bayselonarrend";
Password = "12we...";
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
ElsIf AuthorizationType = "By key" Then
Login = "bayselonarrend";
PrivateKey = "./ssh_key";
PublicKey = "./ssh_key.pub";
SFTPSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
Else
Login = "bayselonarrend";
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
EndIf;
If UseProxy Then
ProxyType = "http"; // http, socks5, socks4
ProxyAddress = "127.0.0.1";
ProxyPort = "8071";
ProxyLogin = "proxyuser";
ProxyPassword = "12we...";
ProxySettings = OPI_SFTP.GetProxySettings(ProxyAddress, ProxyPort, ProxyType, ProxyLogin, ProxyPassword);
EndIf;
Connection = OPI_SFTP.CreateConnection(SFTPSettings, ProxySettings);
If OPI_SFTP.IsConnector(Connection) Then
Result = OPI_SFTP.UpdatePath(Connection, "pic_from_disk.png", "files_folder/pic_from_disk.png");
Else
Result = Connection; // Error of connection
EndIf;

View File

@@ -14,7 +14,7 @@
Login = "bayselonarrend";
Password = "12we...";
SSHSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
SFTPSettings = OPI_SFTP.GetSettingsLoginPassword(Host, Port, Login, Password);
ElsIf AuthorizationType = "By key" Then
@@ -22,12 +22,12 @@
PrivateKey = "./ssh_key";
PublicKey = "./ssh_key.pub";
SSHSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
SFTPSettings = OPI_SFTP.GetSettingsPrivateKey(Host, Port, Login, PrivateKey, PublicKey);
Else
Login = "bayselonarrend";
SSHSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
Login = "bayselonarrend";
SFTPSettings = OPI_SFTP.GetSettingsViaAgent(Host, Port, Login);
EndIf;
@@ -44,7 +44,7 @@
EndIf;
Connection = OPI_SFTP.CreateConnection(SSHSettings, ProxySettings);
Connection = OPI_SFTP.CreateConnection(SFTPSettings, ProxySettings);
If OPI_SFTP.IsConnector(Connection) Then

View File

@@ -12,13 +12,12 @@ import TabItem from '@theme/TabItem';
`Function RunProject(Val Port, Val Project, Val DebugPort = "") Export`
`Function RunProject(Val Port, Val Project) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Port | --port | Number | ✔ | Server startup port |
| Project | --proj | String | ✔ | Project filepath |
| DebugPort | --dport | Number | ✖ | Debug port, if necessary |
Returns: Structure Of KeyAndValue - Server shutdown result

View File

@@ -6,7 +6,34 @@ sidebar_position: 1
To start working with Melezh, you need to complete the installation process and then create and configure a project. This section describes the Melezh installation procedure for different environments. The installation method depends on your operating system and the availability of Docker or OneScript with OPM package manager:
## Docker (Recommended)
## OneScript (Recommended)
Melezh and OInt are primarily distributed as packages for [OneScript](https://github.com/EvilBeaver/OneScript) and can be installed using the OPM package manager. The Russian version of the package can be installed from the cloud package hub using the following console command:
```bash
opm install melezh
```
This package includes dependencies for both OInt and OInt CLI - they will be installed automatically.
Alternatively, both English and Russian versions can be installed from local `.ospx` package files available in the releases of their respective repositories:
- [Melezh](https://github.com/Bayselonarrend/OpenIntegrations)
- [OpenIntegrations](https://github.com/Bayselonarrend/OpenIntegrations)
```bash
opm install -f oint-x.x.x_lang.ospx
opm install -f oint-cli-x.x.x_lang.ospx
opm install -f melezh-x.x.x_lang.ospx
```
:::warning
Melezh is compatible with any `oint` version above 1.24.0, but requires language version matching: both Melezh and OInt are available in two language variants (Russian and English) that cannot be mixed. The Russian version of Melezh can only be installed on top of the Russian OInt, and the English version requires the English OInt respectively.
:::
<br/><hr/>
## Docker
You can run Melezh in a Docker container using one of these methods:
@@ -38,30 +65,4 @@ On Windows, Melezh is installed as part of the `oint` setup - the main console a
For Linux systems, Melezh provides `.deb` and `.rpm` packages in its GitHub releases. Both package formats require the `oint` package as a dependency, which is available in corresponding formats from the [OpenIntegrations](https://github.com/Bayselonarrend/OpenIntegrations) repository releases.
:::warning
Melezh is compatible with any `oint` version above 1.24.0, but requires language version matching: both Melezh and OInt are available in two language variants (Russian and English) that cannot be mixed. The Russian version of Melezh can only be installed on top of the Russian OInt, and the English version requires the English OInt respectively.
:::
<br/><hr/>
## OneScript
Melezh and OInt are primarily distributed as packages for [OneScript](https://github.com/EvilBeaver/OneScript) and can be installed using the OPM package manager. The Russian version of the package can be installed from the cloud package hub using the following console command:
```bash
opm install melezh
```
This package includes dependencies for both OInt and OInt CLI - they will be installed automatically.
Alternatively, both English and Russian versions can be installed from local `.ospx` package files available in the releases of their respective repositories:
- [Melezh](https://github.com/Bayselonarrend/OpenIntegrations)
- [OpenIntegrations](https://github.com/Bayselonarrend/OpenIntegrations)
```bash
opm install -f oint-x.x.x_lang.ospx
opm install -f oint-cli-x.x.x_lang.ospx
opm install -f melezh-x.x.x_lang.ospx
```
As with Linux packages, it's crucial to maintain language version consistency: **Russian Melezh** requires **Russian OInt**, while **English Melezh** must be paired with **English OInt**.
As with OneScript packages, it's crucial to maintain language version consistency: **Russian Melezh** requires **Russian OInt**, while **English Melezh** must be paired with **English OInt**.

View File

@@ -16,6 +16,8 @@ In the top-right corner of the page, there are two action buttons:
![Extensions Panel](../../../../static/img/Docs/Melezh/en/22.png)
+ The first button updates the extensions cache on the server. Since the list of extensions and their parameters is generated only once at server startup, this button allows refreshing the list after changes without restarting the server
+ The first button opens the window for creating a new extension
+ The second button refreshes the displayed list of extensions with up-to-date information without reloading the page
+ The second button updates the extensions cache on the server. Since the list of extensions and their parameters is generated only once at server startup, this button allows refreshing the list after changes without restarting the server
+ The third button refreshes the displayed list of extensions with up-to-date information without reloading the page

View File

@@ -17,7 +17,7 @@ import TabItem from '@theme/TabItem';
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Connection | --conn | Arbitrary | &#x2714; | Existing connection or connection configuration |
| Path | --path | String | &#x2714; | Path to save file on server |
| Path | --path | String | &#x2714; | Path to file on server |
Returns: Map Of KeyAndValue - Processing result

View File

@@ -34,7 +34,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
AccessKey = "AccessKey";

View File

@@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -26,7 +26,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -34,7 +34,7 @@ By default, HMAC-SHA256 is used to create the signature. To change the algorithm
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Token = "***";

View File

@@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Token = "***";

View File

@@ -36,7 +36,7 @@ The Multipart record must first be initialized using the `StartMultipartBody` fu
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
RandomArray = New Array;

View File

@@ -35,7 +35,7 @@ The Multipart record must first be initialized using the `StartMultipartBody` fu
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

View File

@@ -39,7 +39,7 @@ Parameters with Binary data type can also accept file paths on disk and URLs
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

View File

@@ -35,7 +35,7 @@ Parameters with Binary data type can also accept file paths on disk and URLs
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

View File

@@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Data = New Structure("Field1,Field2", "10", "Text");

View File

@@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
RandomArray = New Array;

View File

@@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Text = "Hello world!";

View File

@@ -35,7 +35,7 @@ The `AddMultipartFormDataFile` and `AddMultipartFormDataField` methods are used
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

View File

@@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Headers = New Map;

View File

@@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
ParametersStructure = New Structure("param1,param2", "text", 10);

View File

@@ -36,7 +36,7 @@ The URL can be set later using the `SetURL` function
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests

View File

@@ -34,7 +34,7 @@ If the data type is not set manually, it will be matched during the process of s
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
MIMEType = "text/markdown";

View File

@@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
ProxySettings = New InternetProxy;

View File

@@ -26,7 +26,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
TFN = GetTempFileName();

View File

@@ -34,7 +34,7 @@ Default timeout is 3600 seconds
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
ParametersStructure = New Structure("param1,param2", "text", 10);

View File

@@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -35,7 +35,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -31,7 +31,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -27,7 +27,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

View File

@@ -35,7 +35,7 @@ If it is not possible to obtain a collection from the body, binary data will be
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

View File

@@ -32,7 +32,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "http://localhost:2424";
URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data

Some files were not shown because too many files have changed in this diff Show More