-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: generates models and fixes the tests
- Loading branch information
Showing
52 changed files
with
898 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
namespace Octokit.GraphQL.Model | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
/// <summary> | ||
/// Autogenerated input type of AbortRepositoryMigration | ||
/// </summary> | ||
public class AbortRepositoryMigrationInput | ||
{ | ||
/// <summary> | ||
/// The ID of the migration to be aborted. | ||
/// </summary> | ||
public ID MigrationId { get; set; } | ||
|
||
/// <summary> | ||
/// A unique identifier for the client performing the mutation. | ||
/// </summary> | ||
public string ClientMutationId { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
namespace Octokit.GraphQL.Model | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq.Expressions; | ||
using Octokit.GraphQL.Core; | ||
using Octokit.GraphQL.Core.Builders; | ||
|
||
/// <summary> | ||
/// Autogenerated return type of AbortRepositoryMigration | ||
/// </summary> | ||
public class AbortRepositoryMigrationPayload : QueryableValue<AbortRepositoryMigrationPayload> | ||
{ | ||
internal AbortRepositoryMigrationPayload(Expression expression) : base(expression) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// A unique identifier for the client performing the mutation. | ||
/// </summary> | ||
public string ClientMutationId { get; } | ||
|
||
/// <summary> | ||
/// Did the operation succeed? | ||
/// </summary> | ||
public bool? Success { get; } | ||
|
||
internal static AbortRepositoryMigrationPayload Create(Expression expression) | ||
{ | ||
return new AbortRepositoryMigrationPayload(expression); | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
Octokit.GraphQL/Model/AddPullRequestReviewThreadReplyInput.cs
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
namespace Octokit.GraphQL.Model | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
/// <summary> | ||
/// Autogenerated input type of AddPullRequestReviewThreadReply | ||
/// </summary> | ||
public class AddPullRequestReviewThreadReplyInput | ||
{ | ||
/// <summary> | ||
/// The Node ID of the pending review to which the reply will belong. | ||
/// </summary> | ||
public ID? PullRequestReviewId { get; set; } | ||
|
||
/// <summary> | ||
/// The Node ID of the thread to which this reply is being written. | ||
/// </summary> | ||
public ID PullRequestReviewThreadId { get; set; } | ||
|
||
/// <summary> | ||
/// The text of the reply. | ||
/// </summary> | ||
public string Body { get; set; } | ||
|
||
/// <summary> | ||
/// A unique identifier for the client performing the mutation. | ||
/// </summary> | ||
public string ClientMutationId { get; set; } | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
Octokit.GraphQL/Model/AddPullRequestReviewThreadReplyPayload.cs
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
namespace Octokit.GraphQL.Model | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq.Expressions; | ||
using Octokit.GraphQL.Core; | ||
using Octokit.GraphQL.Core.Builders; | ||
|
||
/// <summary> | ||
/// Autogenerated return type of AddPullRequestReviewThreadReply | ||
/// </summary> | ||
public class AddPullRequestReviewThreadReplyPayload : QueryableValue<AddPullRequestReviewThreadReplyPayload> | ||
{ | ||
internal AddPullRequestReviewThreadReplyPayload(Expression expression) : base(expression) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// A unique identifier for the client performing the mutation. | ||
/// </summary> | ||
public string ClientMutationId { get; } | ||
|
||
/// <summary> | ||
/// The newly created reply. | ||
/// </summary> | ||
public PullRequestReviewComment Comment => this.CreateProperty(x => x.Comment, Octokit.GraphQL.Model.PullRequestReviewComment.Create); | ||
|
||
internal static AddPullRequestReviewThreadReplyPayload Create(Expression expression) | ||
{ | ||
return new AddPullRequestReviewThreadReplyPayload(expression); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
namespace Octokit.GraphQL.Model | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq.Expressions; | ||
using Octokit.GraphQL.Core; | ||
using Octokit.GraphQL.Core.Builders; | ||
|
||
/// <summary> | ||
/// The Contributing Guidelines for a repository. | ||
/// </summary> | ||
public class ContributingGuidelines : QueryableValue<ContributingGuidelines> | ||
{ | ||
internal ContributingGuidelines(Expression expression) : base(expression) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// The body of the Contributing Guidelines. | ||
/// </summary> | ||
public string Body { get; } | ||
|
||
/// <summary> | ||
/// The HTTP path for the Contributing Guidelines. | ||
/// </summary> | ||
public string ResourcePath { get; } | ||
|
||
/// <summary> | ||
/// The HTTP URL for the Contributing Guidelines. | ||
/// </summary> | ||
public string Url { get; } | ||
|
||
internal static ContributingGuidelines Create(Expression expression) | ||
{ | ||
return new ContributingGuidelines(expression); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
namespace Octokit.GraphQL.Model | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq.Expressions; | ||
using Octokit.GraphQL.Core; | ||
using Octokit.GraphQL.Core.Builders; | ||
|
||
/// <summary> | ||
/// The connection type for Enterprise. | ||
/// </summary> | ||
public class EnterpriseConnection : QueryableValue<EnterpriseConnection>, IPagingConnection<Enterprise> | ||
{ | ||
internal EnterpriseConnection(Expression expression) : base(expression) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// A list of edges. | ||
/// </summary> | ||
public IQueryableList<EnterpriseEdge> Edges => this.CreateProperty(x => x.Edges); | ||
|
||
/// <summary> | ||
/// A list of nodes. | ||
/// </summary> | ||
public IQueryableList<Enterprise> Nodes => this.CreateProperty(x => x.Nodes); | ||
|
||
/// <summary> | ||
/// Information to aid in pagination. | ||
/// </summary> | ||
public PageInfo PageInfo => this.CreateProperty(x => x.PageInfo, Octokit.GraphQL.Model.PageInfo.Create); | ||
|
||
/// <summary> | ||
/// Identifies the total count of items in the connection. | ||
/// </summary> | ||
public int TotalCount { get; } | ||
|
||
IPageInfo IPagingConnection.PageInfo => PageInfo; | ||
|
||
internal static EnterpriseConnection Create(Expression expression) | ||
{ | ||
return new EnterpriseConnection(expression); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
namespace Octokit.GraphQL.Model | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq.Expressions; | ||
using Octokit.GraphQL.Core; | ||
using Octokit.GraphQL.Core.Builders; | ||
|
||
/// <summary> | ||
/// An edge in a connection. | ||
/// </summary> | ||
public class EnterpriseEdge : QueryableValue<EnterpriseEdge> | ||
{ | ||
internal EnterpriseEdge(Expression expression) : base(expression) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// A cursor for use in pagination. | ||
/// </summary> | ||
public string Cursor { get; } | ||
|
||
/// <summary> | ||
/// The item at the end of the edge. | ||
/// </summary> | ||
public Enterprise Node => this.CreateProperty(x => x.Node, Octokit.GraphQL.Model.Enterprise.Create); | ||
|
||
internal static EnterpriseEdge Create(Expression expression) | ||
{ | ||
return new EnterpriseEdge(expression); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
namespace Octokit.GraphQL.Model | ||
{ | ||
/// <summary> | ||
/// The possible values we have for filtering Platform::Objects::User#enterprises. | ||
/// </summary> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum EnterpriseMembershipType | ||
{ | ||
/// <summary> | ||
/// Returns all enterprises in which the user is a member, admin, or billing manager. | ||
/// </summary> | ||
[EnumMember(Value = "ALL")] | ||
All, | ||
|
||
/// <summary> | ||
/// Returns all enterprises in which the user is an admin. | ||
/// </summary> | ||
[EnumMember(Value = "ADMIN")] | ||
Admin, | ||
|
||
/// <summary> | ||
/// Returns all enterprises in which the user is a billing manager. | ||
/// </summary> | ||
[EnumMember(Value = "BILLING_MANAGER")] | ||
BillingManager, | ||
|
||
/// <summary> | ||
/// Returns all enterprises in which the user is a member of an org that is owned by the enterprise. | ||
/// </summary> | ||
[EnumMember(Value = "ORG_MEMBERSHIP")] | ||
OrgMembership, | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
namespace Octokit.GraphQL.Model | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
/// <summary> | ||
/// Ordering options for enterprises. | ||
/// </summary> | ||
public class EnterpriseOrder | ||
{ | ||
/// <summary> | ||
/// The field to order enterprises by. | ||
/// </summary> | ||
public EnterpriseOrderField Field { get; set; } | ||
|
||
/// <summary> | ||
/// The ordering direction. | ||
/// </summary> | ||
public OrderDirection Direction { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
namespace Octokit.GraphQL.Model | ||
{ | ||
/// <summary> | ||
/// Properties by which enterprise connections can be ordered. | ||
/// </summary> | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum EnterpriseOrderField | ||
{ | ||
/// <summary> | ||
/// Order enterprises by name | ||
/// </summary> | ||
[EnumMember(Value = "NAME")] | ||
Name, | ||
} | ||
} |
Oops, something went wrong.