Skip to content

Commit

Permalink
Update proto contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
d.shubin committed Jul 19, 2021
1 parent 3298de5 commit 2f375a8
Show file tree
Hide file tree
Showing 15 changed files with 494 additions and 2,973 deletions.
24 changes: 0 additions & 24 deletions proto/CertificateInfoV2.proto

This file was deleted.

6 changes: 0 additions & 6 deletions proto/CertificateList.proto

This file was deleted.

8 changes: 4 additions & 4 deletions proto/Docflow/DocumentInfo.proto
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ message ContractDocumentInfo

message SupplementaryAgreementDocumentInfo
{
optional string Total = 1;
optional string ContractType = 2;
optional string ContractNumber = 3;
optional string ContractDate = 4;
optional string ContractType = 1;
required DocumentDateAndNumber ContractDocumentDateAndNumber = 2;
required DocumentDateAndNumber DocumentDateAndNumber = 3;
optional string Total = 4;
}

message UniversalTransferDocumentInfo
Expand Down
1 change: 1 addition & 0 deletions proto/Docflow/DocumentInfoV3.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ message DocumentInfoV3
optional DocumentDraftInfo DraftInfo = 16;
optional DocumentTemplateInfo TemplateInfo = 17;
optional Documents.Origin Origin = 18;
optional string EditingSettingId = 19 [default = ""];
}

message DocumentParticipants
Expand Down
10 changes: 5 additions & 5 deletions proto/Dss/DssSign.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ message DssSignFile
optional string FileName = 2;
}


enum DssConfirmType {
ConfirmTypeUnknown = -1;
None = 0;
Expand All @@ -27,28 +28,27 @@ enum DssOperator {
Kontur = 2;
}

message DssSignResult
{
message DssSignResult {
optional DssOperationStatus OperationStatus = 1 [default = Unknown];
repeated DssFileSigningResult FileSigningResults = 2;
optional DssConfirmType ConfirmType = 3 [default = ConfirmTypeUnknown];
optional DssOperator Operator = 4 [default = OperatorUnknown];
optional string PhoneLastNumbers = 5;
}

message DssFileSigningResult
{
optional DssFileSigningStatus FileSigningStatus = 1 [default = UnknownSigningStatus];
optional bytes Signature = 2;
}

enum DssFileSigningStatus
{
UnknownSigningStatus = 0;
SigningCompleted = 1;
SigningError = 2;
}

enum DssOperationStatus
{
Unknown = 0;
Expand Down
4 changes: 2 additions & 2 deletions src/DiadocApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1409,12 +1409,12 @@ Diadoc::Api::Proto::UserV2 DiadocApi::UpdateMyUser(Diadoc::Api::Proto::Users::Us
return FromProtoBytes<Diadoc::Api::Proto::UserV2>(PerformHttpRequest(L"/UpdateMyUser", ToProtoBytes(userToUpdate), POST));
}

Diadoc::Api::Proto::CertificateList DiadocApi::GetMyCertificates(const std::wstring& boxId)
Diadoc::Api::Proto::Certificates::CertificateList DiadocApi::GetMyCertificates(const std::wstring& boxId)
{
WppTraceDebugOut("GetMyCertificates...");
std::wstringstream buf;
buf << L"/GetMyCertificates?boxId=" << StringHelper::CanonicalizeUrl(boxId);
return FromProtoBytes<Diadoc::Api::Proto::CertificateList>(PerformHttpRequest(buf.str(), GET));
return FromProtoBytes<Diadoc::Api::Proto::Certificates::CertificateList>(PerformHttpRequest(buf.str(), GET));
}

Diadoc::Api::Proto::Departments::Department DiadocApi::GetDepartmentByFullId(const std::wstring& boxId, const std::wstring& departmentId)
Expand Down
4 changes: 2 additions & 2 deletions src/DiadocApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#include "protos\AcquireCounteragent.pb.h"
#include "protos\CustomPrintFormDetection.pb.h"
#include "protos\Registration\RegistrationRequest.pb.h"
#include "protos\CertificateList.pb.h"
#include "protos\Certificates\CertificateList.pb.h"
#include "DocumentFilter.h"
#include "HttpSession.h"
#include "TaskResult.h"
Expand Down Expand Up @@ -271,7 +271,7 @@ class DiadocApi
Diadoc::Api::Proto::User GetMyUser();
Diadoc::Api::Proto::UserV2 GetMyUserV2();
Diadoc::Api::Proto::UserV2 UpdateMyUser(Diadoc::Api::Proto::Users::UserToUpdate& userToUpdate);
Diadoc::Api::Proto::CertificateList GetMyCertificates(const std::wstring& boxId);
Diadoc::Api::Proto::Certificates::CertificateList GetMyCertificates(const std::wstring& boxId);

Diadoc::Api::Proto::Departments::Department GetDepartmentByFullId(const std::wstring& boxId, const std::wstring& departmentId);
Diadoc::Api::Proto::Departments::DepartmentList GetDepartments(const std::wstring& boxId, int* page = NULL, int* count = NULL);
Expand Down
Loading

0 comments on commit 2f375a8

Please sign in to comment.