1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-26 05:37:27 +02:00

Преобразование OPI -> OInt (workflow)

This commit is contained in:
Vitaly the Alpaca 2024-06-23 18:18:30 +00:00 committed by Vitaly the Alpaca (bot)
parent d8be767b1d
commit b7c203f621
19 changed files with 3764 additions and 3760 deletions

File diff suppressed because it is too large Load Diff

View File

@ -450,7 +450,7 @@ EndFunction
// Token - String - Token - token
// Base - String - Database identifier - base
// Table - String - Table identifier - table
// Data - Structure, Array of Structure - - data
// Data - Structure, Array of Structure - Set or array of sets of pairs Key : Value > Field : FieldValue - data
//
// Returns:
// Map Of KeyAndValue - serialized JSON response from Airtable

View File

@ -175,7 +175,7 @@ EndFunction
// Parameters:
// Token - String - Token - token
// Path - String - Path to the object - path
// Detailed - Boolean - - detail
// Detailed - Boolean - Add information fields for mediafiles - detail
//
// Returns:
// Map Of KeyAndValue - serialized JSON response from Dropbox
@ -200,7 +200,7 @@ EndFunction
// Parameters:
// Token - String - Token - token
// Path - String - Path to the directory. Optional if the cursor is specified - path
// Detailed - Boolean - - detail
// Detailed - Boolean - Add information fields for mediafiles - detail
// Cursor - String - Cursor from the previous request to get the next set of files - cursor
//
// Returns:
@ -311,7 +311,7 @@ EndFunction
//
// Parameters:
// Token - String - Token - token
// JobID - String - - job
// JobID - String - ID of async jsob from UploadFileByURL response - job
//
// Returns:
// Map Of KeyAndValue - serialized JSON response from Dropbox
@ -540,7 +540,7 @@ Function GetTagList(Val Token, Val Paths) Export
EndFunction
// Add tag
//
// Add new tag to file or folder
//
// Parameters:
// Token - String - Token - token
@ -717,7 +717,7 @@ Function AddUsersToFolder(Val Token, Val FolderID, Val EmailAddresses, Val ViewO
EndFunction
// Get asynchronous change status
//
// Get async job status for access changes
//
// Parameters:
// Token - String - Token - token

View File

@ -25,7 +25,7 @@
// SOFTWARE.
// https://github.com/Bayselonarrend/OpenIntegrations
// ()
// If you don't know where to start, you should find the GetStandardParameters method()
// and read comments
// BSLLS:Typo-off
@ -76,7 +76,7 @@ Function GetAuthorizationLink(Parameters = "") Export
EndFunction
// Get token
//
// Gets the token by the code received when authorizing using the link from GetAuthorizationLink
//
// Parameters:
// Code - String - Code obtained from authorization See GetAuthorizationLink - code
@ -482,7 +482,7 @@ EndFunction
Function GetStandardParameters(Val Parameters = "")
// .
// The definition of the data required for the work is collected here.
// For Twitter, this is quite a significant set, which is due to the presence of 2 APIs at once,
// which, at the same time, are not created for different tasks, but are simply versions of each other.
// The current version of the API is v2 and it requires obtaining temporary tokens. Despite the fact,
@ -493,7 +493,7 @@ Function GetStandardParameters(Val Parameters = "")
// The world gigacorporation of Elon Musk, by the way, a reminder ;)
// " - this
// P.S The following is often referred to as the "Twitter Developer settings page" - this
// https://developer.twitter.com/en/portal/dashboard and chosing of project from list (key icon)
Parameters_ = New Map;

View File

@ -25,7 +25,7 @@
// SOFTWARE.
// https://github.com/Bayselonarrend/OpenIntegrations
// ()
// If you don't know where to start, you should find the GetStandardParameters method()
// and read comments
// BSLLS:NumberOfOptionalParams-off

View File

@ -101,7 +101,7 @@ Function GetUserData(Val Token, Val UserID) Export
EndFunction
// Get online users
//
// Gets the status of a user or multiple users by ID
//
// Parameters:
// Token - String - Viber Token - token

View File

@ -1,5 +1,5 @@
<package-def>
<module name="OPI_Cryptography" file=""/>
<module name="OPI_Cryptography" file="tools/Modules/internal/Modules/OPI_Cryptography.os"/>
<module name="OPI_Notion" file="core/Modules/OPI_Notion.os"/>
<module name="OPI_GoogleCalendar" file="core/Modules/OPI_GoogleCalendar.os"/>
<module name="OPI_TestDataRetrieval" file="tools/Modules/OPI_TestDataRetrieval.os"/>

View File

@ -593,7 +593,7 @@ Procedure YDisk_GetDiskInfo() Export
TestParameters = New Structure;
OPI_TestDataRetrieval.ParameterToCollection("YandexDisk_Token", TestParameters);
(TestParameters);
YandexDisk_GetDiskInfo(TestParameters);
EndProcedure
@ -602,7 +602,7 @@ Procedure YDisk_CreateFolder() Export
TestParameters = New Structure;
OPI_TestDataRetrieval.ParameterToCollection("YandexDisk_Token", TestParameters);
(TestParameters);
YandexDisk_CreateFolder(TestParameters);
EndProcedure
@ -3351,17 +3351,17 @@ Procedure Check_VKVideo(Val Result)
EndProcedure
Procedure (Val Result)
Procedure Check_YaDiskDrive(Val Result)
= "Map";
Map_ = "Map";
OPI_TestDataRetrieval.ExpectsThat(Result).ИмеетТип().Заполнено();
OPI_TestDataRetrieval.ExpectsThat(Result["system_folders"]).ИмеетТип();
OPI_TestDataRetrieval.ExpectsThat(Result["user"]).ИмеетТип();
OPI_TestDataRetrieval.ExpectsThat(Result).ИмеетТип(Map_).Заполнено();
OPI_TestDataRetrieval.ExpectsThat(Result["system_folders"]).ИмеетТип(Map_);
OPI_TestDataRetrieval.ExpectsThat(Result["user"]).ИмеетТип(Map_);
EndProcedure
Procedure (Val Result, Val Path)
Procedure Check_YaDiskFolder(Val Result, Val Path)
OPI_TestDataRetrieval.ExpectsThat(Result).ИмеетТип("Map").Заполнено();
OPI_TestDataRetrieval.ExpectsThat(Result["type"]).Равно("dir");
@ -6969,7 +6969,7 @@ EndProcedure
#Region YandexDisk
Procedure (FunctionParameters)
Procedure YandexDisk_GetDiskInfo(FunctionParameters)
Token = FunctionParameters["YandexDisk_Token"];
Result = OPI_YandexDisk.GetDiskInformation(Token);
@ -6978,13 +6978,13 @@ Procedure (FunctionParameters)
OPI_TestDataRetrieval.WriteLog(Result, "GetDiskInformation", "YandexDisk");
(Result);
Check_YaDiskDrive(Result);
OPI_Tools.Pause(5);
EndProcedure
Procedure (FunctionParameters)
Procedure YandexDisk_CreateFolder(FunctionParameters)
Token = FunctionParameters["YandexDisk_Token"];
Path = "/" + String(New UUID);
@ -6995,7 +6995,7 @@ Procedure (FunctionParameters)
OPI_TestDataRetrieval.WriteLog(Result, "CreateFolder", "YandexDisk");
(Result, Path);
Check_YaDiskFolder(Result, Path);
OPI_YandexDisk.DeleteObject(Token, Path, False);

View File

@ -450,7 +450,7 @@ EndFunction
// Token - String - Token - token
// Base - String - Database identifier - base
// Table - String - Table identifier - table
// Data - Structure, Array of Structure - - data
// Data - Structure, Array of Structure - Set or array of sets of pairs Key : Value > Field : FieldValue - data
//
// Returns:
// Map Of KeyAndValue - serialized JSON response from Airtable

View File

@ -175,7 +175,7 @@ EndFunction
// Parameters:
// Token - String - Token - token
// Path - String - Path to the object - path
// Detailed - Boolean - - detail
// Detailed - Boolean - Add information fields for mediafiles - detail
//
// Returns:
// Map Of KeyAndValue - serialized JSON response from Dropbox
@ -200,7 +200,7 @@ EndFunction
// Parameters:
// Token - String - Token - token
// Path - String - Path to the directory. Optional if the cursor is specified - path
// Detailed - Boolean - - detail
// Detailed - Boolean - Add information fields for mediafiles - detail
// Cursor - String - Cursor from the previous request to get the next set of files - cursor
//
// Returns:
@ -311,7 +311,7 @@ EndFunction
//
// Parameters:
// Token - String - Token - token
// JobID - String - - job
// JobID - String - ID of async jsob from UploadFileByURL response - job
//
// Returns:
// Map Of KeyAndValue - serialized JSON response from Dropbox
@ -540,7 +540,7 @@ Function GetTagList(Val Token, Val Paths) Export
EndFunction
// Add tag
//
// Add new tag to file or folder
//
// Parameters:
// Token - String - Token - token
@ -717,7 +717,7 @@ Function AddUsersToFolder(Val Token, Val FolderID, Val EmailAddresses, Val ViewO
EndFunction
// Get asynchronous change status
//
// Get async job status for access changes
//
// Parameters:
// Token - String - Token - token

View File

@ -593,7 +593,7 @@ Procedure YDisk_GetDiskInfo() Export
TestParameters = New Structure;
OPI_TestDataRetrieval.ParameterToCollection("YandexDisk_Token", TestParameters);
(TestParameters);
YandexDisk_GetDiskInfo(TestParameters);
EndProcedure
@ -602,7 +602,7 @@ Procedure YDisk_CreateFolder() Export
TestParameters = New Structure;
OPI_TestDataRetrieval.ParameterToCollection("YandexDisk_Token", TestParameters);
(TestParameters);
YandexDisk_CreateFolder(TestParameters);
EndProcedure
@ -3351,17 +3351,17 @@ Procedure Check_VKVideo(Val Result)
EndProcedure
Procedure (Val Result)
Procedure Check_YaDiskDrive(Val Result)
= "Map";
Map_ = "Map";
OPI_TestDataRetrieval.ExpectsThat(Result).ИмеетТип().Заполнено();
OPI_TestDataRetrieval.ExpectsThat(Result["system_folders"]).ИмеетТип();
OPI_TestDataRetrieval.ExpectsThat(Result["user"]).ИмеетТип();
OPI_TestDataRetrieval.ExpectsThat(Result).ИмеетТип(Map_).Заполнено();
OPI_TestDataRetrieval.ExpectsThat(Result["system_folders"]).ИмеетТип(Map_);
OPI_TestDataRetrieval.ExpectsThat(Result["user"]).ИмеетТип(Map_);
EndProcedure
Procedure (Val Result, Val Path)
Procedure Check_YaDiskFolder(Val Result, Val Path)
OPI_TestDataRetrieval.ExpectsThat(Result).ИмеетТип("Map").Заполнено();
OPI_TestDataRetrieval.ExpectsThat(Result["type"]).Равно("dir");
@ -6969,7 +6969,7 @@ EndProcedure
#Region YandexDisk
Procedure (FunctionParameters)
Procedure YandexDisk_GetDiskInfo(FunctionParameters)
Token = FunctionParameters["YandexDisk_Token"];
Result = OPI_YandexDisk.GetDiskInformation(Token);
@ -6978,13 +6978,13 @@ Procedure (FunctionParameters)
// !OInt OPI_TestDataRetrieval.WriteLog(Result, "GetDiskInfo", "YandexDisk");
(Result);
Check_YaDiskDrive(Result);
OPI_Tools.Pause(5);
EndProcedure
Procedure (FunctionParameters)
Procedure YandexDisk_CreateFolder(FunctionParameters)
Token = FunctionParameters["YandexDisk_Token"];
Path = "/" + String(New UUID);
@ -6995,7 +6995,7 @@ Procedure (FunctionParameters)
// !OInt OPI_TestDataRetrieval.WriteLog(Result, "CreateFolder", "YandexDisk");
(Result, Path);
Check_YaDiskFolder(Result, Path);
OPI_YandexDisk.DeleteObject(Token, Path, False);

View File

@ -25,7 +25,7 @@
// SOFTWARE.
// https://github.com/Bayselonarrend/OpenIntegrations
// ()
// If you don't know where to start, you should find the GetStandardParameters method()
// and read comments
// BSLLS:Typo-off
@ -76,7 +76,7 @@ Function GetAuthorizationLink(Parameters = "") Export
EndFunction
// Get token
//
// Gets the token by the code received when authorizing using the link from GetAuthorizationLink
//
// Parameters:
// Code - String - Code obtained from authorization See GetAuthorizationLink - code
@ -482,7 +482,7 @@ EndFunction
Function GetStandardParameters(Val Parameters = "")
// .
// The definition of the data required for the work is collected here.
// For Twitter, this is quite a significant set, which is due to the presence of 2 APIs at once,
// which, at the same time, are not created for different tasks, but are simply versions of each other.
// The current version of the API is v2 and it requires obtaining temporary tokens. Despite the fact,
@ -493,7 +493,7 @@ Function GetStandardParameters(Val Parameters = "")
// The world gigacorporation of Elon Musk, by the way, a reminder ;)
// " - this
// P.S The following is often referred to as the "Twitter Developer settings page" - this
// https://developer.twitter.com/en/portal/dashboard and chosing of project from list (key icon)
Parameters_ = New Map;

View File

@ -25,7 +25,7 @@
// SOFTWARE.
// https://github.com/Bayselonarrend/OpenIntegrations
// ()
// If you don't know where to start, you should find the GetStandardParameters method()
// and read comments
// BSLLS:NumberOfOptionalParams-off

View File

@ -101,7 +101,7 @@ Function GetUserData(Val Token, Val UserID) Export
EndFunction
// Get online users
//
// Gets the status of a user or multiple users by ID
//
// Parameters:
// Token - String - Viber Token - token

View File

@ -543,7 +543,7 @@
NewLine.Метод = "CreatePosts";
NewLine.МетодПоиска = "CREATEPOSTS";
NewLine.Параметр = "--data";
NewLine.Описание = "";
NewLine.Описание = "Set or array of sets of pairs Key : Value > Field : FieldValue";
NewLine.Область = "Record management";

View File

@ -142,7 +142,7 @@
NewLine.Метод = "GetObjectInformation";
NewLine.МетодПоиска = "GETOBJECTINFORMATION";
NewLine.Параметр = "--detail";
NewLine.Описание = " (optional, def. val. - False)";
NewLine.Описание = "Add information fields for mediafiles (optional, def. val. - False)";
NewLine.Область = "File and directory management";
@ -173,7 +173,7 @@
NewLine.Метод = "GetListOfFolderFiles";
NewLine.МетодПоиска = "GETLISTOFFOLDERFILES";
NewLine.Параметр = "--detail";
NewLine.Описание = " (optional, def. val. - False)";
NewLine.Описание = "Add information fields for mediafiles (optional, def. val. - False)";
NewLine.Область = "File and directory management";
@ -297,7 +297,7 @@
NewLine.Метод = "GetUploadStatusByURL";
NewLine.МетодПоиска = "GETUPLOADSTATUSBYURL";
NewLine.Параметр = "--job";
NewLine.Описание = "";
NewLine.Описание = "ID of async jsob from UploadFileByURL response";
NewLine.Область = "File and directory management";
@ -548,6 +548,7 @@
NewLine.Параметр = "--token";
NewLine.Описание = "Token";
NewLine.Область = "Tags managment";
NewLine.ОписаниеМетода = "Add new tag to file or folder";
NewLine = CompositionTable.Add();
@ -733,6 +734,7 @@
NewLine.Параметр = "--token";
NewLine.Описание = "Token";
NewLine.Область = "Shared access settings";
NewLine.ОписаниеМетода = "Get async job status for access changes";
NewLine = CompositionTable.Add();

View File

@ -43,7 +43,8 @@
NewLine.Параметр = "--code";
NewLine.Описание = "Code obtained from authorization See GetAuthorizationLink";
NewLine.Область = "Data and settings";
NewLine.ОписаниеМетода = "|
NewLine.ОписаниеМетода = "Gets the token by the code received when authorizing using the link from GetAuthorizationLink
|
| The structure of the JSON authentication data (parameter --auth):
| {
| ""redirect_uri"" : """",

View File

@ -75,6 +75,7 @@
NewLine.Параметр = "--token";
NewLine.Описание = "Viber Token";
NewLine.Область = "Settings and information";
NewLine.ОписаниеМетода = "Gets the status of a user or multiple users by ID";
NewLine = CompositionTable.Add();