-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reverted consolidation of UserInfo and UserBase (#3563)
* Reverted consolidation of userinfo and user base * removed redundant comment * some small polish * correct schema nullability
- Loading branch information
Showing
7 changed files
with
57 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,44 @@ | ||
#nullable disable | ||
using System; | ||
using Speckle.Core.Api; | ||
using Speckle.Core.Api.GraphQL.Models; | ||
|
||
namespace Speckle.Core.Credentials; | ||
|
||
public class ActiveUserServerInfoResponse | ||
internal sealed class ActiveUserServerInfoResponse | ||
{ | ||
public UserInfo activeUser { get; set; } | ||
public ServerInfo serverInfo { get; set; } | ||
public UserInfo activeUser { get; init; } | ||
public ServerInfo serverInfo { get; init; } | ||
} | ||
|
||
public class TokenExchangeResponse | ||
internal sealed class TokenExchangeResponse | ||
{ | ||
public string token { get; set; } | ||
public string refreshToken { get; set; } | ||
public string token { get; init; } | ||
public string refreshToken { get; init; } | ||
} | ||
|
||
public sealed class UserInfo | ||
{ | ||
public string id { get; init; } | ||
public string name { get; init; } | ||
public string email { get; init; } | ||
public string? company { get; init; } | ||
public string? avatar { get; init; } | ||
|
||
[Obsolete(DeprecationMessages.FE2_DEPRECATION_MESSAGE)] | ||
public Streams streams { get; init; } | ||
|
||
[Obsolete(DeprecationMessages.FE2_DEPRECATION_MESSAGE)] | ||
public Commits commits { get; init; } | ||
} | ||
|
||
[Obsolete(DeprecationMessages.FE2_DEPRECATION_MESSAGE)] | ||
public class Streams | ||
{ | ||
public int totalCount { get; set; } | ||
} | ||
|
||
[Obsolete(DeprecationMessages.FE2_DEPRECATION_MESSAGE)] | ||
public class Commits | ||
{ | ||
public int totalCount { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters