Skip to content

Commit

Permalink
Merge pull request #1182 from WoeromProg/ddcore-8716_delete_updateMyUser
Browse files Browse the repository at this point in the history
DDCORE-8716: delete UpdateMyUser
  • Loading branch information
WoeromProg authored Feb 4, 2025
2 parents 6409eb7 + 4dde5b9 commit 3ae43d8
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 190 deletions.
19 changes: 0 additions & 19 deletions proto/Users/UserToUpdate.proto

This file was deleted.

53 changes: 0 additions & 53 deletions src/Com/Users.cs

This file was deleted.

7 changes: 0 additions & 7 deletions src/ComDiadocApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
using Diadoc.Api.Proto.PowersOfAttorney;
using Diadoc.Api.Proto.Recognition;
using Diadoc.Api.Proto.Registration;
using Diadoc.Api.Proto.Users;
using Diadoc.Api.Proto.Workflows;
using JetBrains.Annotations;
using Department = Diadoc.Api.Proto.Department;
Expand Down Expand Up @@ -586,7 +585,6 @@ PrepareDocumentsToSignResponse PrepareDocumentsToSign(

User GetMyUser(string authToken);
UserV2 GetMyUserV2(string authToken);
UserV2 UpdateMyUser(string authToken, [MarshalAs(UnmanagedType.IDispatch)] object userToUpdate);
CertificateList GetMyCertificates(string authToken, string boxId);

AsyncMethodResult CloudSign(string authToken, [MarshalAs(UnmanagedType.IDispatch)] object request, string certificateThumbprint);
Expand Down Expand Up @@ -1714,11 +1712,6 @@ public UserV2 GetMyUserV2(string authToken)
return diadoc.GetMyUserV2(authToken);
}

public UserV2 UpdateMyUser(string authToken, object userToUpdate)
{
return diadoc.UpdateMyUser(authToken, (UserToUpdate) userToUpdate);
}

public CertificateList GetMyCertificates(string authToken, string boxId)
{
return diadoc.GetMyCertificates(authToken, boxId);
Expand Down
8 changes: 0 additions & 8 deletions src/DiadocApi.Async.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
using Diadoc.Api.Proto.Organizations;
using Diadoc.Api.Proto.Recognition;
using Diadoc.Api.Proto.Registration;
using Diadoc.Api.Proto.Users;
using JetBrains.Annotations;
using DocumentType = Diadoc.Api.Proto.DocumentType;
using Employee = Diadoc.Api.Proto.Employees.Employee;
Expand Down Expand Up @@ -114,13 +113,6 @@ public Task<UserV2> GetMyUserV2Async(string authToken)
return diadocHttpApi.GetMyUserV2Async(authToken);
}

public Task<UserV2> UpdateMyUserAsync(string authToken, UserToUpdate userToUpdate)
{
if (authToken == null) throw new ArgumentNullException("authToken");
if (userToUpdate == null) throw new ArgumentNullException("userToUpdate");
return diadocHttpApi.UpdateMyUserAsync(authToken, userToUpdate);
}

public Task<CertificateList> GetMyCertificatesAsync(string authToken, string boxId)
{
if (authToken == null) throw new ArgumentNullException("authToken");
Expand Down
8 changes: 0 additions & 8 deletions src/DiadocApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
using Diadoc.Api.Proto.PowersOfAttorney;
using Diadoc.Api.Proto.Recognition;
using Diadoc.Api.Proto.Registration;
using Diadoc.Api.Proto.Users;
using Diadoc.Api.Proto.Workflows;
using JetBrains.Annotations;
using Department = Diadoc.Api.Proto.Department;
Expand Down Expand Up @@ -188,13 +187,6 @@ public UserV2 GetMyUserV2(string authToken)
return diadocHttpApi.GetMyUserV2(authToken);
}

public UserV2 UpdateMyUser(string authToken, UserToUpdate userToUpdate)
{
if (authToken == null) throw new ArgumentNullException("authToken");
if (userToUpdate == null) throw new ArgumentNullException("userToUpdate");
return diadocHttpApi.UpdateMyUser(authToken, userToUpdate);
}

public CertificateList GetMyCertificates(string authToken, string boxId)
{
if (authToken == null) throw new ArgumentNullException("authToken");
Expand Down
6 changes: 0 additions & 6 deletions src/DiadocHttpApi.References.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Diadoc.Api.Http;
using Diadoc.Api.Proto;
using Diadoc.Api.Proto.Certificates;
using Diadoc.Api.Proto.Users;

namespace Diadoc.Api
{
Expand Down Expand Up @@ -35,11 +34,6 @@ public UserV2 GetMyUserV2(string authToken)
return PerformHttpRequest<UserV2>(authToken, "GET", "/V2/GetMyUser");
}

public UserV2 UpdateMyUser(string authToken, UserToUpdate userToUpdate)
{
return PerformHttpRequest<UserToUpdate, UserV2>(authToken, "/UpdateMyUser", userToUpdate);
}

public CertificateList GetMyCertificates(string authToken, string boxId)
{
var queryBuilder = new PathAndQueryBuilder("/GetMyCertificates");
Expand Down
6 changes: 0 additions & 6 deletions src/DiadocHttpApi.ReferencesAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using Diadoc.Api.Http;
using Diadoc.Api.Proto;
using Diadoc.Api.Proto.Certificates;
using Diadoc.Api.Proto.Users;

namespace Diadoc.Api
{
Expand Down Expand Up @@ -35,11 +34,6 @@ public Task<UserV2> GetMyUserV2Async(string authToken)
{
return PerformHttpRequestAsync<UserV2>(authToken, "GET", "/V2/GetMyUser");
}

public Task<UserV2> UpdateMyUserAsync(string authToken, UserToUpdate userToUpdate)
{
return PerformHttpRequestAsync<UserToUpdate, UserV2>(authToken, "/UpdateMyUser", userToUpdate);
}

public Task<CertificateList> GetMyCertificatesAsync(string authToken, string boxId)
{
Expand Down
3 changes: 0 additions & 3 deletions src/IDiadocApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
using Diadoc.Api.Proto.KeyValueStorage;
using Diadoc.Api.Proto.Organizations;
using Diadoc.Api.Proto.Registration;
using Diadoc.Api.Proto.Users;
using Departments = Diadoc.Api.Proto.Departments;
using DocumentType = Diadoc.Api.Proto.DocumentType;
using Employee = Diadoc.Api.Proto.Employees.Employee;
Expand Down Expand Up @@ -278,7 +277,6 @@ byte[] ParseTitleXml(
[Obsolete("Use GetMyUserV2")]
User GetMyUser(string authToken);
UserV2 GetMyUserV2(string authToken);
UserV2 UpdateMyUser(string authToken, UserToUpdate userToUpdate);
CertificateList GetMyCertificates(string authToken, string boxId);
AsyncMethodResult CloudSign(string authToken, CloudSignRequest request, string certificateThumbprint);
CloudSignResult WaitCloudSignResult(string authToken, string taskId, TimeSpan? timeout = null);
Expand Down Expand Up @@ -403,7 +401,6 @@ Task<string> AuthenticateWithKeyAsync(byte[] certificateBytes, bool useLocalSyst
[Obsolete("Use GetMyUserV2Async")]
Task<User> GetMyUserAsync(string authToken);
Task<UserV2> GetMyUserV2Async(string authToken);
Task<UserV2> UpdateMyUserAsync(string authToken, UserToUpdate userToUpdate);
Task<CertificateList> GetMyCertificatesAsync(string authToken, string boxId);
[Obsolete(ObsoleteReasons.UseAuthTokenOverload)]
Task<OrganizationList> GetOrganizationsByInnKppAsync(string inn, string kpp, bool includeRelations = false);
Expand Down
80 changes: 0 additions & 80 deletions src/Proto/Users/UserToUpdate.proto.cs

This file was deleted.

0 comments on commit 3ae43d8

Please sign in to comment.