Skip to content

Commit f572ce2

Browse files
gangstatraceriperevoschikov
gangstatracer
authored and
iperevoschikov
committed
Add new method GetWorkflows
1 parent 8316d71 commit f572ce2

24 files changed

+4193
-1
lines changed

.gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ third-party/
44
tools/
55
!tools/packages.config
66
tmp*/
7+
build/
78

89
## Ignore Visual Studio temporary files, build results, and
910
## files generated by popular Visual Studio add-ons.
@@ -256,4 +257,7 @@ paket-files/
256257

257258
# JetBrains Rider
258259
.idea/
259-
*.sln.iml
260+
*.sln.iml
261+
262+
# Visual Studio Code
263+
.vscode/

build.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Param(
4949
[ValidateSet("Debug", "Release", "RelWithDebInfo", "MinSizeRel")]
5050
[string]$Configuration = "RelWithDebInfo",
5151
[ValidateSet("",
52+
"Visual Studio 17 2022",
5253
"Visual Studio 14 2015",
5354
"Visual Studio 14 2015 Win64",
5455
"Visual Studio 14 2015 ARM",

src/DiadocApi.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -1915,3 +1915,10 @@ void DiadocApi::RegisterConfirm(const Diadoc::Api::Proto::Registration::Registra
19151915
WppTraceDebugOut("RegisterConfirm...");
19161916
PerformHttpRequest(L"/RegisterConfirm", ToProtoBytes(request), POST);
19171917
}
1918+
1919+
Diadoc::Api::Proto::Workflows::DocumentWorkflowSettingsList DiadocApi::GetWorkflowsSettings(const std::wstring& boxId)
1920+
{
1921+
std::wstringstream buf;
1922+
buf << L"/GetWorkflowsSettings?boxId=" << StringHelper::CanonicalizeUrl(boxId);
1923+
return FromProtoBytes<Diadoc::Api::Proto::Workflows::DocumentWorkflowSettingsList>(PerformHttpRequest(buf.str(), GET));
1924+
}

src/DiadocApi.h

+3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
#include "protos\CustomPrintFormDetection.pb.h"
5656
#include "protos\Registration\RegistrationRequest.pb.h"
5757
#include "protos\Certificates\CertificateList.pb.h"
58+
#include "protos\Workflows\DocumentWorkflowSettings.pb.h"
5859
#include "DocumentFilter.h"
5960
#include "HttpSession.h"
6061
#include "TaskResult.h"
@@ -345,6 +346,8 @@ class DiadocApi
345346
Diadoc::Api::Proto::Registration::RegistrationResponse Register(const Diadoc::Api::Proto::Registration::RegistrationRequest& request);
346347
void RegisterConfirm(const Diadoc::Api::Proto::Registration::RegistrationConfirmRequest& request);
347348

349+
Diadoc::Api::Proto::Workflows::DocumentWorkflowSettingsList GetWorkflowsSettings(const std::wstring& boxId);
350+
348351
protected:
349352
DiadocApi::Bytes_t PerformHttpRequest(const std::wstring & queryString, const Bytes_t & requestBody, const std::wstring & method);
350353
DiadocApi::Bytes_t PerformHttpRequest(const std::wstring & queryString, const Bytes_t & requestBody, const std::wstring & method, const std::wstring * contentType);

src/protos/Workflows/AmendmentRequestResponseBehavior.pb.cc

+109
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/protos/Workflows/AmendmentRequestResponseBehavior.pb.h

+95
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)