From 9feb8f9c3a4f8d4ca5a131809714d37a318c07ca Mon Sep 17 00:00:00 2001 From: Graeme Coupar Date: Thu, 16 May 2024 21:30:49 +0100 Subject: [PATCH] roundtrip test on github --- cynic-parser/tests/actual_schemas.rs | 10 + schemas/github.graphql | 614 +++++++++++++++++++-------- schemas/graphql.jobs.graphql | 111 ++++- 3 files changed, 542 insertions(+), 193 deletions(-) diff --git a/cynic-parser/tests/actual_schemas.rs b/cynic-parser/tests/actual_schemas.rs index e1b19ae57..97932c620 100644 --- a/cynic-parser/tests/actual_schemas.rs +++ b/cynic-parser/tests/actual_schemas.rs @@ -14,6 +14,16 @@ macro_rules! schema_tests { insta::assert_snapshot!(parsed.to_sdl()); } + #[test] + fn roundtrip() { + let parsed = cynic_parser::parse_type_system_document(SCHEMA) + .map_err(|error| error.to_report(SCHEMA)) + .unwrap(); + let sdl = parsed.to_sdl(); + + assert_eq!(SCHEMA, sdl); + } + #[test] fn double_roundtrip() { let parsed = cynic_parser::parse_type_system_document(SCHEMA) diff --git a/schemas/github.graphql b/schemas/github.graphql index fa81e87ba..a62ddfce7 100644 --- a/schemas/github.graphql +++ b/schemas/github.graphql @@ -69,7 +69,8 @@ input AcceptEnterpriseAdministratorInvitationInput { """ The id of the invitation being accepted """ - invitationId: ID! @possibleTypes(concreteTypes: ["EnterpriseAdministratorInvitation"]) + invitationId: ID! + @possibleTypes(concreteTypes: ["EnterpriseAdministratorInvitation"]) } """ @@ -209,7 +210,11 @@ input AddAssigneesToAssignableInput { """ The id of the assignable object to add assignees to. """ - assignableId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "Assignable") + assignableId: ID! + @possibleTypes( + concreteTypes: ["Issue", "PullRequest"] + abstractType: "Assignable" + ) """ The id of users to add as assignees. @@ -254,7 +259,11 @@ input AddCommentInput { """ The Node ID of the subject to modify. """ - subjectId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "IssueOrPullRequest") + subjectId: ID! + @possibleTypes( + concreteTypes: ["Issue", "PullRequest"] + abstractType: "IssueOrPullRequest" + ) } """ @@ -449,7 +458,11 @@ input AddLabelsToLabelableInput { """ The id of the labelable object to add labels to. """ - labelableId: ID! @possibleTypes(concreteTypes: ["Discussion", "Issue", "PullRequest"], abstractType: "Labelable") + labelableId: ID! + @possibleTypes( + concreteTypes: ["Discussion", "Issue", "PullRequest"] + abstractType: "Labelable" + ) } """ @@ -479,7 +492,11 @@ input AddProjectCardInput { """ The content of the card. Must be a member of the ProjectCardItem union """ - contentId: ID @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "ProjectCardItem") + contentId: ID + @possibleTypes( + concreteTypes: ["Issue", "PullRequest"] + abstractType: "ProjectCardItem" + ) """ The note on the card. @@ -611,7 +628,10 @@ input AddProjectV2ItemByIdInput { The id of the Issue or Pull Request to add. """ contentId: ID! - @possibleTypes(concreteTypes: ["DraftIssue", "Issue", "PullRequest"], abstractType: "ProjectV2ItemContent") + @possibleTypes( + concreteTypes: ["DraftIssue", "Issue", "PullRequest"] + abstractType: "ProjectV2ItemContent" + ) """ The ID of the Project to add the item to. @@ -886,7 +906,8 @@ input AddPullRequestReviewThreadReplyInput { """ The Node ID of the thread to which this reply is being written. """ - pullRequestReviewThreadId: ID! @possibleTypes(concreteTypes: ["PullRequestReviewThread"]) + pullRequestReviewThreadId: ID! + @possibleTypes(concreteTypes: ["PullRequestReviewThread"]) } """ @@ -977,7 +998,11 @@ input AddStarInput { """ The Starrable ID to star. """ - starrableId: ID! @possibleTypes(concreteTypes: ["Gist", "Repository", "Topic"], abstractType: "Starrable") + starrableId: ID! + @possibleTypes( + concreteTypes: ["Gist", "Repository", "Topic"] + abstractType: "Starrable" + ) } """ @@ -1007,7 +1032,11 @@ input AddUpvoteInput { """ The Node ID of the discussion or comment to upvote. """ - subjectId: ID! @possibleTypes(concreteTypes: ["Discussion", "DiscussionComment"], abstractType: "Votable") + subjectId: ID! + @possibleTypes( + concreteTypes: ["Discussion", "DiscussionComment"] + abstractType: "Votable" + ) } """ @@ -1042,7 +1071,11 @@ input AddVerifiableDomainInput { """ The ID of the owner to add the domain to """ - ownerId: ID! @possibleTypes(concreteTypes: ["Enterprise", "Organization"], abstractType: "VerifiableDomainOwner") + ownerId: ID! + @possibleTypes( + concreteTypes: ["Enterprise", "Organization"] + abstractType: "VerifiableDomainOwner" + ) } """ @@ -1194,7 +1227,7 @@ type App implements Node { """ Ordering options for IP allow list entries returned. """ - orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC} + orderBy: IpAllowListEntryOrder = { field: ALLOW_LIST_VALUE, direction: ASC } ): IpAllowListEntryConnection! """ @@ -1427,7 +1460,9 @@ type AssignedEvent implements Node { Identifies the user who was assigned. """ user: User - @deprecated(reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC.") + @deprecated( + reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC." + ) } """ @@ -2458,7 +2493,11 @@ input BulkSponsorship { """ The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given. """ - sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable") + sponsorableId: ID + @possibleTypes( + concreteTypes: ["Organization", "User"] + abstractType: "Sponsorable" + ) """ The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given. @@ -2671,7 +2710,8 @@ input CancelEnterpriseAdminInvitationInput { """ The Node ID of the pending enterprise administrator invitation. """ - invitationId: ID! @possibleTypes(concreteTypes: ["EnterpriseAdministratorInvitation"]) + invitationId: ID! + @possibleTypes(concreteTypes: ["EnterpriseAdministratorInvitation"]) } """ @@ -2707,7 +2747,11 @@ input CancelSponsorshipInput { The ID of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorLogin is not given. """ - sponsorId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsor") + sponsorId: ID + @possibleTypes( + concreteTypes: ["Organization", "User"] + abstractType: "Sponsor" + ) """ The username of the user or organization who is acting as the sponsor, paying @@ -2718,7 +2762,11 @@ input CancelSponsorshipInput { """ The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given. """ - sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable") + sponsorableId: ID + @possibleTypes( + concreteTypes: ["Organization", "User"] + abstractType: "Sponsorable" + ) """ The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given. @@ -3816,7 +3864,11 @@ input ClearLabelsFromLabelableInput { """ The id of the labelable object to clear the labels from. """ - labelableId: ID! @possibleTypes(concreteTypes: ["Discussion", "Issue", "PullRequest"], abstractType: "Labelable") + labelableId: ID! + @possibleTypes( + concreteTypes: ["Discussion", "Issue", "PullRequest"] + abstractType: "Labelable" + ) } """ @@ -3848,7 +3900,11 @@ input ClearProjectV2ItemFieldValueInput { """ fieldId: ID! @possibleTypes( - concreteTypes: ["ProjectV2Field", "ProjectV2IterationField", "ProjectV2SingleSelectField"] + concreteTypes: [ + "ProjectV2Field" + "ProjectV2IterationField" + "ProjectV2SingleSelectField" + ] abstractType: "ProjectV2FieldConfiguration" ) @@ -3915,7 +3971,11 @@ input CloneProjectInput { """ The owner ID to create the project under. """ - targetOwnerId: ID! @possibleTypes(concreteTypes: ["Organization", "Repository", "User"], abstractType: "ProjectOwner") + targetOwnerId: ID! + @possibleTypes( + concreteTypes: ["Organization", "Repository", "User"] + abstractType: "ProjectOwner" + ) } """ @@ -3966,7 +4026,11 @@ input CloneTemplateRepositoryInput { """ The ID of the owner for the new repository. """ - ownerId: ID! @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "RepositoryOwner") + ownerId: ID! + @possibleTypes( + concreteTypes: ["Organization", "User"] + abstractType: "RepositoryOwner" + ) """ The Node ID of the template repository. @@ -4466,7 +4530,7 @@ type Commit implements GitObject & Node & Subscribable & UniformResourceLocatabl """ Ordering options for pull requests. """ - orderBy: PullRequestOrder = {field: CREATED_AT, direction: ASC} + orderBy: PullRequestOrder = { field: CREATED_AT, direction: ASC } ): PullRequestConnection """ @@ -4654,7 +4718,7 @@ type Commit implements GitObject & Node & Subscribable & UniformResourceLocatabl """ Ordering options for deployments returned from the connection. """ - orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC} + orderBy: DeploymentOrder = { field: CREATED_AT, direction: ASC } ): DeploymentConnection """ @@ -4776,7 +4840,10 @@ type Commit implements GitObject & Node & Subscribable & UniformResourceLocatabl """ The datetime when this commit was pushed. """ - pushedDate: DateTime @deprecated(reason: "`pushedDate` is no longer supported. Removal on 2023-07-01 UTC.") + pushedDate: DateTime + @deprecated( + reason: "`pushedDate` is no longer supported. Removal on 2023-07-01 UTC." + ) """ The Repository this commit belongs to @@ -5322,7 +5389,7 @@ type CommitContributionsByRepository { """ Ordering options for commit contributions returned from the connection. """ - orderBy: CommitContributionOrder = {field: OCCURRED_AT, direction: DESC} + orderBy: CommitContributionOrder = { field: OCCURRED_AT, direction: DESC } ): CreatedCommitContributionConnection! """ @@ -5994,7 +6061,7 @@ type ContributionsCollection { """ Ordering options for contributions returned from the connection. """ - orderBy: ContributionOrder = {direction: DESC} + orderBy: ContributionOrder = { direction: DESC } ): CreatedIssueContributionConnection! """ @@ -6090,7 +6157,7 @@ type ContributionsCollection { """ Ordering options for contributions returned from the connection. """ - orderBy: ContributionOrder = {direction: DESC} + orderBy: ContributionOrder = { direction: DESC } ): CreatedPullRequestContributionConnection! """ @@ -6141,7 +6208,7 @@ type ContributionsCollection { """ Ordering options for contributions returned from the connection. """ - orderBy: ContributionOrder = {direction: DESC} + orderBy: ContributionOrder = { direction: DESC } ): CreatedPullRequestReviewContributionConnection! """ @@ -6186,7 +6253,7 @@ type ContributionsCollection { """ Ordering options for contributions returned from the connection. """ - orderBy: ContributionOrder = {direction: DESC} + orderBy: ContributionOrder = { direction: DESC } ): CreatedRepositoryContributionConnection! """ @@ -6476,7 +6543,11 @@ input CopyProjectV2Input { """ The owner ID of the new project. """ - ownerId: ID! @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "OrganizationOrUser") + ownerId: ID! + @possibleTypes( + concreteTypes: ["Organization", "User"] + abstractType: "OrganizationOrUser" + ) """ The ID of the source Project to copy. @@ -6516,17 +6587,26 @@ input CreateAttributionInvitationInput { """ The Node ID of the owner scoping the reattributable data. """ - ownerId: ID! @possibleTypes(concreteTypes: ["Bot", "Enterprise", "Mannequin", "Organization", "User"]) + ownerId: ID! + @possibleTypes( + concreteTypes: ["Bot", "Enterprise", "Mannequin", "Organization", "User"] + ) """ The Node ID of the account owning the data to reattribute. """ - sourceId: ID! @possibleTypes(concreteTypes: ["Bot", "Enterprise", "Mannequin", "Organization", "User"]) + sourceId: ID! + @possibleTypes( + concreteTypes: ["Bot", "Enterprise", "Mannequin", "Organization", "User"] + ) """ The Node ID of the account which may claim the data. """ - targetId: ID! @possibleTypes(concreteTypes: ["Bot", "Enterprise", "Mannequin", "Organization", "User"]) + targetId: ID! + @possibleTypes( + concreteTypes: ["Bot", "Enterprise", "Mannequin", "Organization", "User"] + ) } """ @@ -7182,7 +7262,11 @@ input CreateIpAllowListEntryInput { """ The ID of the owner for which to create the new IP allow list entry. """ - ownerId: ID! @possibleTypes(concreteTypes: ["App", "Enterprise", "Organization"], abstractType: "IpAllowListOwner") + ownerId: ID! + @possibleTypes( + concreteTypes: ["App", "Enterprise", "Organization"] + abstractType: "IpAllowListOwner" + ) } """ @@ -7437,7 +7521,11 @@ input CreateProjectInput { """ The owner ID to create the project under. """ - ownerId: ID! @possibleTypes(concreteTypes: ["Organization", "Repository", "User"], abstractType: "ProjectOwner") + ownerId: ID! + @possibleTypes( + concreteTypes: ["Organization", "Repository", "User"] + abstractType: "ProjectOwner" + ) """ A list of repository IDs to create as linked repositories for the project @@ -7522,7 +7610,11 @@ input CreateProjectV2Input { """ The owner ID to create the project under. """ - ownerId: ID! @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "OrganizationOrUser") + ownerId: ID! + @possibleTypes( + concreteTypes: ["Organization", "User"] + abstractType: "OrganizationOrUser" + ) """ The repository to link the project to. @@ -7700,7 +7792,11 @@ input CreateRepositoryInput { """ The ID of the owner for the new repository. """ - ownerId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "RepositoryOwner") + ownerId: ID + @possibleTypes( + concreteTypes: ["Organization", "User"] + abstractType: "RepositoryOwner" + ) """ When an organization is specified as the owner, this ID identifies the team @@ -7772,7 +7868,11 @@ input CreateRepositoryRulesetInput { """ The global relay id of the source in which a new ruleset should be created in. """ - sourceId: ID! @possibleTypes(concreteTypes: ["Organization", "Repository"], abstractType: "RuleSource") + sourceId: ID! + @possibleTypes( + concreteTypes: ["Organization", "Repository"] + abstractType: "RuleSource" + ) """ The target of the ruleset. @@ -7926,7 +8026,11 @@ input CreateSponsorsTierInput { The ID of the user or organization who owns the GitHub Sponsors profile. Defaults to the current user if omitted and sponsorableLogin is not given. """ - sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable") + sponsorableId: ID + @possibleTypes( + concreteTypes: ["Organization", "User"] + abstractType: "Sponsorable" + ) """ The username of the user or organization who owns the GitHub Sponsors profile. @@ -7989,7 +8093,11 @@ input CreateSponsorshipInput { The ID of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorLogin is not given. """ - sponsorId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsor") + sponsorId: ID + @possibleTypes( + concreteTypes: ["Organization", "User"] + abstractType: "Sponsor" + ) """ The username of the user or organization who is acting as the sponsor, paying @@ -8000,7 +8108,11 @@ input CreateSponsorshipInput { """ The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given. """ - sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable") + sponsorableId: ID + @possibleTypes( + concreteTypes: ["Organization", "User"] + abstractType: "Sponsorable" + ) """ The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given. @@ -8361,7 +8473,9 @@ type CreatedIssueContributionEdge { """ Represents either a issue the viewer can access or a restricted contribution. """ -union CreatedIssueOrRestrictedContribution = CreatedIssueContribution | RestrictedContribution +union CreatedIssueOrRestrictedContribution = + CreatedIssueContribution + | RestrictedContribution """ Represents the contribution a user made on GitHub by opening a pull request. @@ -8443,7 +8557,9 @@ type CreatedPullRequestContributionEdge { """ Represents either a pull request the viewer can access or a restricted contribution. """ -union CreatedPullRequestOrRestrictedContribution = CreatedPullRequestContribution | RestrictedContribution +union CreatedPullRequestOrRestrictedContribution = + CreatedPullRequestContribution + | RestrictedContribution """ Represents the contribution a user made by leaving a review on a pull request. @@ -8612,7 +8728,9 @@ type CreatedRepositoryContributionEdge { """ Represents either a repository the viewer can access or a restricted contribution. """ -union CreatedRepositoryOrRestrictedContribution = CreatedRepositoryContribution | RestrictedContribution +union CreatedRepositoryOrRestrictedContribution = + CreatedRepositoryContribution + | RestrictedContribution """ Represents a mention made by one issue or pull request to another. @@ -8757,7 +8875,8 @@ input DeleteBranchProtectionRuleInput { """ The global relay id of the branch protection rule to be deleted. """ - branchProtectionRuleId: ID! @possibleTypes(concreteTypes: ["BranchProtectionRule"]) + branchProtectionRuleId: ID! + @possibleTypes(concreteTypes: ["BranchProtectionRule"]) """ A unique identifier for the client performing the mutation. @@ -9169,7 +9288,11 @@ input DeleteProjectV2FieldInput { """ fieldId: ID! @possibleTypes( - concreteTypes: ["ProjectV2Field", "ProjectV2IterationField", "ProjectV2SingleSelectField"] + concreteTypes: [ + "ProjectV2Field" + "ProjectV2IterationField" + "ProjectV2SingleSelectField" + ] abstractType: "ProjectV2FieldConfiguration" ) } @@ -9591,7 +9714,8 @@ type DependencyGraphDependency @preview(toggledBy: "hawkgirl-preview") { """ The connection type for DependencyGraphDependency. """ -type DependencyGraphDependencyConnection @preview(toggledBy: "hawkgirl-preview") { +type DependencyGraphDependencyConnection + @preview(toggledBy: "hawkgirl-preview") { """ A list of edges. """ @@ -9691,7 +9815,8 @@ enum DependencyGraphEcosystem { """ Dependency manifest for a repository """ -type DependencyGraphManifest implements Node @preview(toggledBy: "hawkgirl-preview") { +type DependencyGraphManifest implements Node + @preview(toggledBy: "hawkgirl-preview") { """ Path to view the manifest file blob """ @@ -10893,7 +11018,7 @@ type Discussion implements Closable & Comment & Deletable & Labelable & Lockable """ Ordering options for labels returned from the connection. """ - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} + orderBy: LabelOrder = { field: CREATED_AT, direction: ASC } ): LabelConnection """ @@ -11588,7 +11713,10 @@ type DiscussionPoll implements Node { """ How to order the options for the discussion poll. """ - orderBy: DiscussionPollOptionOrder = {field: AUTHORED_ORDER, direction: ASC} + orderBy: DiscussionPollOptionOrder = { + field: AUTHORED_ORDER + direction: ASC + } ): DiscussionPollOptionConnection """ @@ -11831,7 +11959,8 @@ input DismissRepositoryVulnerabilityAlertInput { """ The Dependabot alert ID to dismiss. """ - repositoryVulnerabilityAlertId: ID! @possibleTypes(concreteTypes: ["RepositoryVulnerabilityAlert"]) + repositoryVulnerabilityAlertId: ID! + @possibleTypes(concreteTypes: ["RepositoryVulnerabilityAlert"]) } """ @@ -12223,7 +12352,7 @@ type Enterprise implements AnnouncementBanner & Node { """ Ordering options for members returned from the connection. """ - orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} + orderBy: EnterpriseMemberOrder = { field: LOGIN, direction: ASC } """ Only return members within the organizations with these logins @@ -12273,7 +12402,7 @@ type Enterprise implements AnnouncementBanner & Node { """ Ordering options for organizations returned from the connection. """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } """ The search string to look for. @@ -13103,7 +13232,7 @@ type EnterpriseOutsideCollaboratorEdge { """ Ordering options for repositories. """ - orderBy: RepositoryOrder = {field: NAME, direction: ASC} + orderBy: RepositoryOrder = { field: NAME, direction: ASC } ): EnterpriseRepositoryInfoConnection! } @@ -13144,7 +13273,7 @@ type EnterpriseOwnerInfo { """ Ordering options for administrators returned from the connection. """ - orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} + orderBy: EnterpriseMemberOrder = { field: LOGIN, direction: ASC } """ Only return members within the organizations with these logins @@ -13224,7 +13353,7 @@ type EnterpriseOwnerInfo { """ Ordering options for organizations with this setting. """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } """ The setting value to find organizations for. @@ -13269,7 +13398,7 @@ type EnterpriseOwnerInfo { """ Ordering options for organizations with this setting. """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } """ The permission to find organizations for. @@ -13315,7 +13444,7 @@ type EnterpriseOwnerInfo { """ Ordering options for verifiable domains returned. """ - orderBy: VerifiableDomainOrder = {field: DOMAIN, direction: ASC} + orderBy: VerifiableDomainOrder = { field: DOMAIN, direction: ASC } ): VerifiableDomainConnection! """ @@ -13350,7 +13479,10 @@ type EnterpriseOwnerInfo { """ Ordering options for Enterprise Server installations returned. """ - orderBy: EnterpriseServerInstallationOrder = {field: HOST_NAME, direction: ASC} + orderBy: EnterpriseServerInstallationOrder = { + field: HOST_NAME + direction: ASC + } ): EnterpriseServerInstallationConnection! """ @@ -13417,7 +13549,7 @@ type EnterpriseOwnerInfo { """ Ordering options for IP allow list entries returned. """ - orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC} + orderBy: IpAllowListEntryOrder = { field: ALLOW_LIST_VALUE, direction: ASC } ): IpAllowListEntryConnection! """ @@ -13468,7 +13600,7 @@ type EnterpriseOwnerInfo { """ Ordering options for organizations with this setting. """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } """ The setting value to find organizations for. @@ -13523,7 +13655,7 @@ type EnterpriseOwnerInfo { """ Ordering options for organizations with this setting. """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } """ The setting to find organizations for. @@ -13563,7 +13695,7 @@ type EnterpriseOwnerInfo { """ Ordering options for organizations with this setting. """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } """ The setting value to find organizations for. @@ -13603,7 +13735,7 @@ type EnterpriseOwnerInfo { """ Ordering options for organizations with this setting. """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } """ The setting value to find organizations for. @@ -13643,7 +13775,7 @@ type EnterpriseOwnerInfo { """ Ordering options for organizations with this setting. """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } """ The setting value to find organizations for. @@ -13688,7 +13820,7 @@ type EnterpriseOwnerInfo { """ Ordering options for organizations with this setting. """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } """ The setting value to find organizations for. @@ -13728,7 +13860,7 @@ type EnterpriseOwnerInfo { """ Ordering options for organizations with this setting. """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } """ The setting value to find organizations for. @@ -13778,7 +13910,7 @@ type EnterpriseOwnerInfo { """ Ordering options for organizations with this setting. """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } """ The setting value to find organizations for. @@ -13823,7 +13955,7 @@ type EnterpriseOwnerInfo { """ Ordering options for outside collaborators returned from the connection. """ - orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} + orderBy: EnterpriseMemberOrder = { field: LOGIN, direction: ASC } """ Only return outside collaborators within the organizations with these logins @@ -13868,7 +14000,10 @@ type EnterpriseOwnerInfo { """ Ordering options for pending enterprise administrator invitations returned from the connection. """ - orderBy: EnterpriseAdministratorInvitationOrder = {field: CREATED_AT, direction: DESC} + orderBy: EnterpriseAdministratorInvitationOrder = { + field: CREATED_AT + direction: DESC + } """ The search string to look for. @@ -13908,7 +14043,7 @@ type EnterpriseOwnerInfo { """ Ordering options for pending repository collaborator invitations returned from the connection. """ - orderBy: RepositoryInvitationOrder = {field: CREATED_AT, direction: DESC} + orderBy: RepositoryInvitationOrder = { field: CREATED_AT, direction: DESC } """ The search string to look for. @@ -13988,7 +14123,7 @@ type EnterpriseOwnerInfo { """ Ordering options for organizations with this setting. """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } """ The setting value to find organizations for. @@ -14028,7 +14163,7 @@ type EnterpriseOwnerInfo { """ Ordering options for organizations with this setting. """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } """ The setting value to find organizations for. @@ -14063,7 +14198,7 @@ type EnterpriseOwnerInfo { """ Ordering options for support entitlement users returned from the connection. """ - orderBy: EnterpriseMemberOrder = {field: LOGIN, direction: ASC} + orderBy: EnterpriseMemberOrder = { field: LOGIN, direction: ASC } ): EnterpriseMemberConnection! """ @@ -14098,7 +14233,7 @@ type EnterpriseOwnerInfo { """ Ordering options for organizations with this setting. """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } """ The setting value to find organizations for. @@ -14138,7 +14273,7 @@ type EnterpriseOwnerInfo { """ Ordering options for organizations with this setting. """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } """ The setting value to find organizations for. @@ -14311,7 +14446,7 @@ type EnterpriseServerInstallation implements Node { """ Ordering options for Enterprise Server user accounts returned from the connection. """ - orderBy: EnterpriseServerUserAccountOrder = {field: LOGIN, direction: ASC} + orderBy: EnterpriseServerUserAccountOrder = { field: LOGIN, direction: ASC } ): EnterpriseServerUserAccountConnection! """ @@ -14341,7 +14476,10 @@ type EnterpriseServerInstallation implements Node { """ Ordering options for Enterprise Server user accounts uploads returned from the connection. """ - orderBy: EnterpriseServerUserAccountsUploadOrder = {field: CREATED_AT, direction: DESC} + orderBy: EnterpriseServerUserAccountsUploadOrder = { + field: CREATED_AT + direction: DESC + } ): EnterpriseServerUserAccountsUploadConnection! } @@ -14501,7 +14639,10 @@ type EnterpriseServerUserAccount implements Node { """ Ordering options for Enterprise Server user account emails returned from the connection. """ - orderBy: EnterpriseServerUserAccountEmailOrder = {field: EMAIL, direction: ASC} + orderBy: EnterpriseServerUserAccountEmailOrder = { + field: EMAIL + direction: ASC + } ): EnterpriseServerUserAccountEmailConnection! """ @@ -14879,7 +15020,10 @@ type EnterpriseUserAccount implements Actor & Node { """ Ordering options for installations returned from the connection. """ - orderBy: EnterpriseServerInstallationOrder = {field: HOST_NAME, direction: ASC} + orderBy: EnterpriseServerInstallationOrder = { + field: HOST_NAME + direction: ASC + } """ The search string to look for. @@ -14930,7 +15074,7 @@ type EnterpriseUserAccount implements Actor & Node { """ Ordering options for organizations returned from the connection. """ - orderBy: OrganizationOrder = {field: LOGIN, direction: ASC} + orderBy: OrganizationOrder = { field: LOGIN, direction: ASC } """ The search string to look for. @@ -17139,7 +17283,7 @@ type Issue implements Assignable & Closable & Comment & Deletable & Labelable & """ Ordering options for labels returned from the connection. """ - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} + orderBy: LabelOrder = { field: CREATED_AT, direction: ASC } ): LabelConnection """ @@ -17309,7 +17453,7 @@ type Issue implements Assignable & Closable & Comment & Deletable & Labelable & """ How to order the returned projects. """ - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} + orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } """ A project to search for under the the owner. @@ -17411,7 +17555,9 @@ type Issue implements Assignable & Closable & Comment & Deletable & Labelable & """ since: DateTime ): IssueTimelineConnection! - @deprecated(reason: "`timeline` will be removed Use Issue.timelineItems instead. Removal on 2020-10-01 UTC.") + @deprecated( + reason: "`timeline` will be removed Use Issue.timelineItems instead. Removal on 2020-10-01 UTC." + ) """ A list of events, comments, commits, etc. associated with the issue. @@ -17959,7 +18105,7 @@ type IssueContributionsByRepository { """ Ordering options for contributions returned from the connection. """ - orderBy: ContributionOrder = {direction: DESC} + orderBy: ContributionOrder = { direction: DESC } ): CreatedIssueContributionConnection! """ @@ -18184,7 +18330,7 @@ type IssueTemplate { """ Ordering options for labels returned from the connection. """ - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} + orderBy: LabelOrder = { field: CREATED_AT, direction: ASC } ): LabelConnection """ @@ -18792,7 +18938,7 @@ interface Labelable { """ Ordering options for labels returned from the connection. """ - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} + orderBy: LabelOrder = { field: CREATED_AT, direction: ASC } ): LabelConnection } @@ -19181,7 +19327,11 @@ input LockLockableInput { """ ID of the item to be locked. """ - lockableId: ID! @possibleTypes(concreteTypes: ["Discussion", "Issue", "PullRequest"], abstractType: "Lockable") + lockableId: ID! + @possibleTypes( + concreteTypes: ["Discussion", "Issue", "PullRequest"] + abstractType: "Lockable" + ) } """ @@ -19962,7 +20112,7 @@ interface MemberStatusable { """ Ordering options for user statuses returned from the connection. """ - orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC} + orderBy: UserStatusOrder = { field: UPDATED_AT, direction: DESC } ): UserStatusConnection! } @@ -21294,7 +21444,13 @@ input MinimizeCommentInput { """ subjectId: ID! @possibleTypes( - concreteTypes: ["CommitComment", "DiscussionComment", "GistComment", "IssueComment", "PullRequestReviewComment"] + concreteTypes: [ + "CommitComment" + "DiscussionComment" + "GistComment" + "IssueComment" + "PullRequestReviewComment" + ] abstractType: "Minimizable" ) } @@ -27333,7 +27489,7 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ Ordering options for the returned audit log entries. """ - orderBy: AuditLogOrder = {field: CREATED_AT, direction: DESC} + orderBy: AuditLogOrder = { field: CREATED_AT, direction: DESC } """ The query string to filter audit entries @@ -27408,7 +27564,7 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ Ordering options for verifiable domains returned. """ - orderBy: VerifiableDomainOrder = {field: DOMAIN, direction: ASC} + orderBy: VerifiableDomainOrder = { field: DOMAIN, direction: ASC } ): VerifiableDomainConnection """ @@ -27443,7 +27599,7 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ Ordering options for enterprise owners returned from the connection. """ - orderBy: OrgEnterpriseOwnerOrder = {field: LOGIN, direction: ASC} + orderBy: OrgEnterpriseOwnerOrder = { field: LOGIN, direction: ASC } """ The organization role to filter by. @@ -27504,7 +27660,7 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ Ordering options for IP allow list entries returned. """ - orderBy: IpAllowListEntryOrder = {field: ALLOW_LIST_VALUE, direction: ASC} + orderBy: IpAllowListEntryOrder = { field: ALLOW_LIST_VALUE, direction: ASC } ): IpAllowListEntryConnection! """ @@ -27580,7 +27736,7 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ Ordering options for mannequins returned from the connection. """ - orderBy: MannequinOrder = {field: CREATED_AT, direction: ASC} + orderBy: MannequinOrder = { field: CREATED_AT, direction: ASC } ): MannequinConnection! """ @@ -27610,7 +27766,7 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ Ordering options for user statuses returned from the connection. """ - orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC} + orderBy: UserStatusOrder = { field: UPDATED_AT, direction: DESC } ): UserStatusConnection! """ @@ -27705,7 +27861,7 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ Ordering of the returned packages. """ - orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} + orderBy: PackageOrder = { field: CREATED_AT, direction: DESC } """ Filter registry package by type. @@ -27905,7 +28061,7 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ How to order the returned projects. """ - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} + orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } """ A project to search for under the the owner. @@ -28090,7 +28246,7 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ Ordering options for discussions returned from the connection. """ - orderBy: DiscussionOrder = {field: CREATED_AT, direction: DESC} + orderBy: DiscussionOrder = { field: CREATED_AT, direction: DESC } """ Filter discussions to only those in a specific repository. @@ -28130,7 +28286,7 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ Ordering options for repository migrations returned. """ - orderBy: RepositoryMigrationOrder = {field: CREATED_AT, direction: ASC} + orderBy: RepositoryMigrationOrder = { field: CREATED_AT, direction: ASC } """ Filter repository migrations by repository name. @@ -28229,7 +28385,7 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ Ordering options for the users and organizations returned from the connection. """ - orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} + orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC } ): SponsorConnection! """ @@ -28259,7 +28415,7 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ Ordering options for sponsors returned from the connection. """ - orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} + orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC } """ If given, will filter for sponsors at the given tier. Will only return @@ -28312,7 +28468,7 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ Ordering options for activity returned from the connection. """ - orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC} + orderBy: SponsorsActivityOrder = { field: TIMESTAMP, direction: DESC } """ Filter activities returned to only those that occurred in the most recent @@ -28386,7 +28542,7 @@ type Organization implements Actor & AnnouncementBanner & MemberStatusable & Nod """ Ordering options for sponsorship updates returned from the connection. """ - orderBy: SponsorshipNewsletterOrder = {field: CREATED_AT, direction: DESC} + orderBy: SponsorshipNewsletterOrder = { field: CREATED_AT, direction: DESC } ): SponsorshipNewsletterConnection! """ @@ -29496,7 +29652,7 @@ type Package implements Node { """ Ordering of the returned packages. """ - orderBy: PackageVersionOrder = {field: CREATED_AT, direction: DESC} + orderBy: PackageVersionOrder = { field: CREATED_AT, direction: DESC } ): PackageVersionConnection! } @@ -29715,7 +29871,7 @@ interface PackageOwner { """ Ordering of the returned packages. """ - orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} + orderBy: PackageOrder = { field: CREATED_AT, direction: DESC } """ Filter registry package by type. @@ -29842,7 +29998,7 @@ type PackageVersion implements Node { """ Ordering of the returned package files. """ - orderBy: PackageFileOrder = {field: CREATED_AT, direction: ASC} + orderBy: PackageFileOrder = { field: CREATED_AT, direction: ASC } ): PackageFileConnection! id: ID! @@ -31591,7 +31747,7 @@ type ProjectV2 implements Closable & Node & Updatable { """ Ordering options for project v2 fields returned from the connection """ - orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC } ): ProjectV2FieldConfigurationConnection! id: ID! @@ -31622,7 +31778,7 @@ type ProjectV2 implements Closable & Node & Updatable { """ Ordering options for project v2 items returned from the connection """ - orderBy: ProjectV2ItemOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2ItemOrder = { field: POSITION, direction: ASC } ): ProjectV2ItemConnection! """ @@ -31672,7 +31828,7 @@ type ProjectV2 implements Closable & Node & Updatable { """ Ordering options for repositories returned from the connection """ - orderBy: RepositoryOrder = {field: CREATED_AT, direction: DESC} + orderBy: RepositoryOrder = { field: CREATED_AT, direction: DESC } ): RepositoryConnection! """ @@ -31712,7 +31868,7 @@ type ProjectV2 implements Closable & Node & Updatable { """ Ordering options for teams returned from this connection. """ - orderBy: TeamOrder = {field: NAME, direction: ASC} + orderBy: TeamOrder = { field: NAME, direction: ASC } ): TeamConnection! """ @@ -31787,7 +31943,7 @@ type ProjectV2 implements Closable & Node & Updatable { """ Ordering options for project v2 views returned from the connection """ - orderBy: ProjectV2ViewOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2ViewOrder = { field: POSITION, direction: ASC } ): ProjectV2ViewConnection! """ @@ -31827,7 +31983,7 @@ type ProjectV2 implements Closable & Node & Updatable { """ Ordering options for project v2 workflows returned from the connection """ - orderBy: ProjectV2WorkflowOrder = {field: NAME, direction: ASC} + orderBy: ProjectV2WorkflowOrder = { field: NAME, direction: ASC } ): ProjectV2WorkflowConnection! } @@ -32036,7 +32192,10 @@ interface ProjectV2FieldCommon { """ Configurations for project fields. """ -union ProjectV2FieldConfiguration = ProjectV2Field | ProjectV2IterationField | ProjectV2SingleSelectField +union ProjectV2FieldConfiguration = + ProjectV2Field + | ProjectV2IterationField + | ProjectV2SingleSelectField """ The connection type for ProjectV2FieldConfiguration. @@ -32329,7 +32488,7 @@ type ProjectV2Item implements Node { """ Ordering options for project v2 item field values returned from the connection """ - orderBy: ProjectV2ItemFieldValueOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2ItemFieldValueOrder = { field: POSITION, direction: ASC } ): ProjectV2ItemFieldValueConnection! id: ID! @@ -32628,7 +32787,7 @@ type ProjectV2ItemFieldPullRequestValue { """ Ordering options for pull requests. """ - orderBy: PullRequestOrder = {field: CREATED_AT, direction: ASC} + orderBy: PullRequestOrder = { field: CREATED_AT, direction: ASC } ): PullRequestConnection } @@ -33170,7 +33329,7 @@ interface ProjectV2Owner { """ How to order the returned projects. """ - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} + orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } """ A project to search for under the the owner. @@ -33546,7 +33705,7 @@ type ProjectV2View implements Node { """ Ordering options for the project v2 fields returned from the connection. """ - orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC } ): ProjectV2FieldConfigurationConnection """ @@ -33581,7 +33740,7 @@ type ProjectV2View implements Node { """ Ordering options for the project v2 fields returned from the connection. """ - orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC } ): ProjectV2FieldConnection @deprecated( reason: "The `ProjectV2View#order_by` API is deprecated in favour of the more capable `ProjectV2View#group_by_field` API. Check out the `ProjectV2View#group_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC." @@ -33614,7 +33773,7 @@ type ProjectV2View implements Node { """ Ordering options for the project v2 fields returned from the connection. """ - orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC } ): ProjectV2FieldConfigurationConnection id: ID! @@ -33723,7 +33882,7 @@ type ProjectV2View implements Node { """ Ordering options for the project v2 fields returned from the connection. """ - orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC } ): ProjectV2FieldConnection @deprecated( reason: "The `ProjectV2View#vertical_group_by` API is deprecated in favour of the more capable `ProjectV2View#vertical_group_by_fields` API. Check out the `ProjectV2View#vertical_group_by_fields` API as an example for the more capable alternative. Removal on 2023-04-01 UTC." @@ -33756,7 +33915,7 @@ type ProjectV2View implements Node { """ Ordering options for the project v2 fields returned from the connection. """ - orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC } ): ProjectV2FieldConfigurationConnection """ @@ -33786,7 +33945,7 @@ type ProjectV2View implements Node { """ Ordering options for the project v2 fields returned from the connection. """ - orderBy: ProjectV2FieldOrder = {field: POSITION, direction: ASC} + orderBy: ProjectV2FieldOrder = { field: POSITION, direction: ASC } ): ProjectV2FieldConnection @deprecated( reason: "The `ProjectV2View#visibleFields` API is deprecated in favour of the more capable `ProjectV2View#fields` API. Check out the `ProjectV2View#fields` API as an example for the more capable alternative. Removal on 2023-01-01 UTC." @@ -34460,7 +34619,7 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab """ Ordering options for labels returned from the connection. """ - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} + orderBy: LabelOrder = { field: CREATED_AT, direction: ASC } ): LabelConnection """ @@ -34713,7 +34872,7 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab """ How to order the returned projects. """ - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} + orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } """ A project to search for under the the owner. @@ -34915,7 +35074,9 @@ type PullRequest implements Assignable & Closable & Comment & Labelable & Lockab """ since: DateTime ): PullRequestTimelineConnection! - @deprecated(reason: "`timeline` will be removed Use PullRequest.timelineItems instead. Removal on 2020-10-01 UTC.") + @deprecated( + reason: "`timeline` will be removed Use PullRequest.timelineItems instead. Removal on 2020-10-01 UTC." + ) """ A list of events, comments, commits, etc. associated with the pull request. @@ -35377,7 +35538,7 @@ type PullRequestContributionsByRepository { """ Ordering options for contributions returned from the connection. """ - orderBy: ContributionOrder = {direction: DESC} + orderBy: ContributionOrder = { direction: DESC } ): CreatedPullRequestContributionConnection! """ @@ -35868,7 +36029,9 @@ type PullRequestReviewComment implements Comment & Deletable & Minimizable & Nod The original line index in the diff to which the comment applies. """ originalPosition: Int! - @deprecated(reason: "We are phasing out diff-relative positioning for PR comments Removal on 2023-10-01 UTC.") + @deprecated( + reason: "We are phasing out diff-relative positioning for PR comments Removal on 2023-10-01 UTC." + ) """ The start line number on the file to which the comment applied when it was first created @@ -36155,7 +36318,7 @@ type PullRequestReviewContributionsByRepository { """ Ordering options for contributions returned from the connection. """ - orderBy: ContributionOrder = {direction: DESC} + orderBy: ContributionOrder = { direction: DESC } ): CreatedPullRequestReviewContributionConnection! """ @@ -37559,7 +37722,7 @@ type Query { """ Ordering options for the returned topics. """ - orderBy: SecurityAdvisoryOrder = {field: UPDATED_AT, direction: DESC} + orderBy: SecurityAdvisoryOrder = { field: UPDATED_AT, direction: DESC } """ Filter advisories to those published since a time in the past. @@ -37619,7 +37782,7 @@ type Query { """ Ordering options for the returned topics. """ - orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC} + orderBy: SecurityVulnerabilityOrder = { field: UPDATED_AT, direction: DESC } """ A package name to filter vulnerabilities by. @@ -37685,7 +37848,7 @@ type Query { """ Ordering options for users and organizations returned from the connection. """ - orderBy: SponsorableOrder = {field: LOGIN, direction: ASC} + orderBy: SponsorableOrder = { field: LOGIN, direction: ASC } """ Optional organization username for whose dependencies should be checked. @@ -38969,7 +39132,11 @@ input RemoveAssigneesFromAssignableInput { """ The id of the assignable object to remove assignees from. """ - assignableId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "Assignable") + assignableId: ID! + @possibleTypes( + concreteTypes: ["Issue", "PullRequest"] + abstractType: "Assignable" + ) """ The id of users to remove as assignees. @@ -39219,7 +39386,11 @@ input RemoveLabelsFromLabelableInput { """ The id of the Labelable to remove labels from. """ - labelableId: ID! @possibleTypes(concreteTypes: ["Discussion", "Issue", "PullRequest"], abstractType: "Labelable") + labelableId: ID! + @possibleTypes( + concreteTypes: ["Discussion", "Issue", "PullRequest"] + abstractType: "Labelable" + ) } """ @@ -39345,7 +39516,11 @@ input RemoveStarInput { """ The Starrable ID to unstar. """ - starrableId: ID! @possibleTypes(concreteTypes: ["Gist", "Repository", "Topic"], abstractType: "Starrable") + starrableId: ID! + @possibleTypes( + concreteTypes: ["Gist", "Repository", "Topic"] + abstractType: "Starrable" + ) } """ @@ -39375,7 +39550,11 @@ input RemoveUpvoteInput { """ The Node ID of the discussion or comment to remove upvote. """ - subjectId: ID! @possibleTypes(concreteTypes: ["Discussion", "DiscussionComment"], abstractType: "Votable") + subjectId: ID! + @possibleTypes( + concreteTypes: ["Discussion", "DiscussionComment"] + abstractType: "Votable" + ) } """ @@ -42253,7 +42432,7 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent """ Ordering options for deployments returned from the connection. """ - orderBy: DeploymentOrder = {field: CREATED_AT, direction: ASC} + orderBy: DeploymentOrder = { field: CREATED_AT, direction: ASC } ): DeploymentConnection! """ @@ -42353,7 +42532,7 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent """ Ordering options for discussions returned from the connection. """ - orderBy: DiscussionOrder = {field: UPDATED_AT, direction: DESC} + orderBy: DiscussionOrder = { field: UPDATED_AT, direction: DESC } """ A list of states to filter the discussions by. @@ -42403,7 +42582,7 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent """ Ordering options for the environments """ - orderBy: Environments = {field: NAME, direction: ASC} + orderBy: Environments = { field: NAME, direction: ASC } ): EnvironmentConnection! """ @@ -42683,7 +42862,7 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent """ Ordering options for labels returned from the connection. """ - orderBy: LabelOrder = {field: CREATED_AT, direction: ASC} + orderBy: LabelOrder = { field: CREATED_AT, direction: ASC } """ If provided, searches labels by name and description. @@ -42913,7 +43092,7 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent """ Ordering of the returned packages. """ - orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} + orderBy: PackageOrder = { field: CREATED_AT, direction: DESC } """ Filter registry package by type. @@ -43083,7 +43262,7 @@ type Repository implements Node & PackageOwner & ProjectOwner & ProjectV2Recent """ How to order the returned projects. """ - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} + orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } """ A project to search for linked to the repo. @@ -43881,7 +44060,7 @@ interface RepositoryDiscussionAuthor { """ Ordering options for discussions returned from the connection. """ - orderBy: DiscussionOrder = {field: CREATED_AT, direction: DESC} + orderBy: DiscussionOrder = { field: CREATED_AT, direction: DESC } """ Filter discussions to only those in a specific repository. @@ -46728,7 +46907,15 @@ enum SavedReplyOrderField { """ The results of a search. """ -union SearchResultItem = App | Discussion | Issue | MarketplaceListing | Organization | PullRequest | Repository | User +union SearchResultItem = + App + | Discussion + | Issue + | MarketplaceListing + | Organization + | PullRequest + | Repository + | User """ A list of results that matched against a search query. Regardless of the number @@ -46974,7 +47161,7 @@ type SecurityAdvisory implements Node { """ Ordering options for the returned topics. """ - orderBy: SecurityVulnerabilityOrder = {field: UPDATED_AT, direction: DESC} + orderBy: SecurityVulnerabilityOrder = { field: UPDATED_AT, direction: DESC } """ A package name to filter vulnerabilities by. @@ -47821,7 +48008,7 @@ interface Sponsorable { """ Ordering options for the users and organizations returned from the connection. """ - orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} + orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC } ): SponsorConnection! """ @@ -47851,7 +48038,7 @@ interface Sponsorable { """ Ordering options for sponsors returned from the connection. """ - orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} + orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC } """ If given, will filter for sponsors at the given tier. Will only return @@ -47904,7 +48091,7 @@ interface Sponsorable { """ Ordering options for activity returned from the connection. """ - orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC} + orderBy: SponsorsActivityOrder = { field: TIMESTAMP, direction: DESC } """ Filter activities returned to only those that occurred in the most recent @@ -47978,7 +48165,7 @@ interface Sponsorable { """ Ordering options for sponsorship updates returned from the connection. """ - orderBy: SponsorshipNewsletterOrder = {field: CREATED_AT, direction: DESC} + orderBy: SponsorshipNewsletterOrder = { field: CREATED_AT, direction: DESC } ): SponsorshipNewsletterConnection! """ @@ -49673,7 +49860,10 @@ type SponsorsListing implements Node { """ The types of featured items to return. """ - featureableTypes: [SponsorsListingFeaturedItemFeatureableType!] = [REPOSITORY, USER] + featureableTypes: [SponsorsListingFeaturedItemFeatureableType!] = [ + REPOSITORY + USER + ] ): [SponsorsListingFeaturedItem!]! """ @@ -49771,7 +49961,10 @@ type SponsorsListing implements Node { """ Ordering options for Sponsors tiers returned from the connection. """ - orderBy: SponsorsTierOrder = {field: MONTHLY_PRICE_IN_CENTS, direction: ASC} + orderBy: SponsorsTierOrder = { + field: MONTHLY_PRICE_IN_CENTS + direction: ASC + } ): SponsorsTierConnection """ @@ -51563,7 +51756,7 @@ type Team implements MemberStatusable & Node & Subscribable { """ Ordering options for user statuses returned from the connection. """ - orderBy: UserStatusOrder = {field: UPDATED_AT, direction: DESC} + orderBy: UserStatusOrder = { field: UPDATED_AT, direction: DESC } ): UserStatusConnection! """ @@ -51698,7 +51891,7 @@ type Team implements MemberStatusable & Node & Subscribable { """ How to order the returned projects. """ - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} + orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } """ The query to search projects by. @@ -51759,22 +51952,26 @@ type Team implements MemberStatusable & Node & Subscribable { """ What algorithm is used for review assignment for this team """ - reviewRequestDelegationAlgorithm: TeamReviewAssignmentAlgorithm @preview(toggledBy: "stone-crop-preview") + reviewRequestDelegationAlgorithm: TeamReviewAssignmentAlgorithm + @preview(toggledBy: "stone-crop-preview") """ True if review assignment is enabled for this team """ - reviewRequestDelegationEnabled: Boolean! @preview(toggledBy: "stone-crop-preview") + reviewRequestDelegationEnabled: Boolean! + @preview(toggledBy: "stone-crop-preview") """ How many team members are required for review assignment for this team """ - reviewRequestDelegationMemberCount: Int @preview(toggledBy: "stone-crop-preview") + reviewRequestDelegationMemberCount: Int + @preview(toggledBy: "stone-crop-preview") """ When assigning team members via delegation, whether the entire team should be notified as well. """ - reviewRequestDelegationNotifyTeam: Boolean! @preview(toggledBy: "stone-crop-preview") + reviewRequestDelegationNotifyTeam: Boolean! + @preview(toggledBy: "stone-crop-preview") """ The slug corresponding to the team. @@ -54076,7 +54273,9 @@ type UnassignedEvent implements Node { Identifies the subject (user) who was unassigned. """ user: User - @deprecated(reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC.") + @deprecated( + reason: "Assignees can now be mannequins. Use the `assignee` field instead. Removal on 2020-01-01 UTC." + ) } """ @@ -54343,7 +54542,11 @@ input UnlockLockableInput { """ ID of the item to be unlocked. """ - lockableId: ID! @possibleTypes(concreteTypes: ["Discussion", "Issue", "PullRequest"], abstractType: "Lockable") + lockableId: ID! + @possibleTypes( + concreteTypes: ["Discussion", "Issue", "PullRequest"] + abstractType: "Lockable" + ) } """ @@ -54459,7 +54662,11 @@ input UnmarkIssueAsDuplicateInput { """ ID of the issue or pull request currently considered canonical/authoritative/original. """ - canonicalId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "IssueOrPullRequest") + canonicalId: ID! + @possibleTypes( + concreteTypes: ["Issue", "PullRequest"] + abstractType: "IssueOrPullRequest" + ) """ A unique identifier for the client performing the mutation. @@ -54469,7 +54676,11 @@ input UnmarkIssueAsDuplicateInput { """ ID of the issue or pull request currently marked as a duplicate. """ - duplicateId: ID! @possibleTypes(concreteTypes: ["Issue", "PullRequest"], abstractType: "IssueOrPullRequest") + duplicateId: ID! + @possibleTypes( + concreteTypes: ["Issue", "PullRequest"] + abstractType: "IssueOrPullRequest" + ) } """ @@ -54562,7 +54773,13 @@ input UnminimizeCommentInput { """ subjectId: ID! @possibleTypes( - concreteTypes: ["CommitComment", "DiscussionComment", "GistComment", "IssueComment", "PullRequestReviewComment"] + concreteTypes: [ + "CommitComment" + "DiscussionComment" + "GistComment" + "IssueComment" + "PullRequestReviewComment" + ] abstractType: "Minimizable" ) } @@ -54726,7 +54943,8 @@ input UpdateBranchProtectionRuleInput { """ The global relay id of the branch protection rule to be updated. """ - branchProtectionRuleId: ID! @possibleTypes(concreteTypes: ["BranchProtectionRule"]) + branchProtectionRuleId: ID! + @possibleTypes(concreteTypes: ["BranchProtectionRule"]) """ A list of User, Team, or App IDs allowed to bypass force push targeting matching branches. @@ -55833,7 +56051,11 @@ input UpdateIpAllowListEnabledSettingInput { """ The ID of the owner on which to set the IP allow list enabled setting. """ - ownerId: ID! @possibleTypes(concreteTypes: ["App", "Enterprise", "Organization"], abstractType: "IpAllowListOwner") + ownerId: ID! + @possibleTypes( + concreteTypes: ["App", "Enterprise", "Organization"] + abstractType: "IpAllowListOwner" + ) """ The value for the IP allow list enabled setting. @@ -55913,7 +56135,11 @@ input UpdateIpAllowListForInstalledAppsEnabledSettingInput { """ The ID of the owner. """ - ownerId: ID! @possibleTypes(concreteTypes: ["App", "Enterprise", "Organization"], abstractType: "IpAllowListOwner") + ownerId: ID! + @possibleTypes( + concreteTypes: ["App", "Enterprise", "Organization"] + abstractType: "IpAllowListOwner" + ) """ The value for the IP allow list configuration for installed GitHub Apps setting. @@ -56098,7 +56324,11 @@ input UpdateNotificationRestrictionSettingInput { """ The ID of the owner on which to set the restrict notifications setting. """ - ownerId: ID! @possibleTypes(concreteTypes: ["Enterprise", "Organization"], abstractType: "VerifiableDomainOwner") + ownerId: ID! + @possibleTypes( + concreteTypes: ["Enterprise", "Organization"] + abstractType: "VerifiableDomainOwner" + ) """ The value for the restrict notifications setting. @@ -56500,7 +56730,11 @@ input UpdateProjectV2ItemFieldValueInput { """ fieldId: ID! @possibleTypes( - concreteTypes: ["ProjectV2Field", "ProjectV2IterationField", "ProjectV2SingleSelectField"] + concreteTypes: [ + "ProjectV2Field" + "ProjectV2IterationField" + "ProjectV2SingleSelectField" + ] abstractType: "ProjectV2FieldConfiguration" ) @@ -56748,7 +56982,8 @@ input UpdatePullRequestReviewCommentInput { """ The Node ID of the comment to modify. """ - pullRequestReviewCommentId: ID! @possibleTypes(concreteTypes: ["PullRequestReviewComment"]) + pullRequestReviewCommentId: ID! + @possibleTypes(concreteTypes: ["PullRequestReviewComment"]) } """ @@ -57066,7 +57301,11 @@ input UpdateSponsorshipPreferencesInput { The ID of the user or organization who is acting as the sponsor, paying for the sponsorship. Required if sponsorLogin is not given. """ - sponsorId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsor") + sponsorId: ID + @possibleTypes( + concreteTypes: ["Organization", "User"] + abstractType: "Sponsor" + ) """ The username of the user or organization who is acting as the sponsor, paying @@ -57077,7 +57316,11 @@ input UpdateSponsorshipPreferencesInput { """ The ID of the user or organization who is receiving the sponsorship. Required if sponsorableLogin is not given. """ - sponsorableId: ID @possibleTypes(concreteTypes: ["Organization", "User"], abstractType: "Sponsorable") + sponsorableId: ID + @possibleTypes( + concreteTypes: ["Organization", "User"] + abstractType: "Sponsorable" + ) """ The username of the user or organization who is receiving the sponsorship. Required if sponsorableId is not given. @@ -57119,7 +57362,15 @@ input UpdateSubscriptionInput { """ subscribableId: ID! @possibleTypes( - concreteTypes: ["Commit", "Discussion", "Issue", "PullRequest", "Repository", "Team", "TeamDiscussion"] + concreteTypes: [ + "Commit" + "Discussion" + "Issue" + "PullRequest" + "Repository" + "Team" + "TeamDiscussion" + ] abstractType: "Subscribable" ) } @@ -57233,7 +57484,8 @@ type UpdateTeamDiscussionPayload { """ Autogenerated input type of UpdateTeamReviewAssignment """ -input UpdateTeamReviewAssignmentInput @preview(toggledBy: "stone-crop-preview") { +input UpdateTeamReviewAssignmentInput + @preview(toggledBy: "stone-crop-preview") { """ The algorithm to use for review assignment """ @@ -57518,7 +57770,7 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & """ Ordering options for the User's enterprises. """ - orderBy: EnterpriseOrder = {field: NAME, direction: ASC} + orderBy: EnterpriseOrder = { field: NAME, direction: ASC } ): EnterpriseConnection """ @@ -57910,7 +58162,7 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & """ Ordering of the returned packages. """ - orderBy: PackageOrder = {field: CREATED_AT, direction: DESC} + orderBy: PackageOrder = { field: CREATED_AT, direction: DESC } """ Filter registry package by type. @@ -58085,7 +58337,7 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & """ How to order the returned projects. """ - orderBy: ProjectV2Order = {field: NUMBER, direction: DESC} + orderBy: ProjectV2Order = { field: NUMBER, direction: DESC } """ A project to search for under the the owner. @@ -58406,7 +58658,7 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & """ Ordering options for discussions returned from the connection. """ - orderBy: DiscussionOrder = {field: CREATED_AT, direction: DESC} + orderBy: DiscussionOrder = { field: CREATED_AT, direction: DESC } """ Filter discussions to only those in a specific repository. @@ -58451,7 +58703,7 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & """ The field to order saved replies by. """ - orderBy: SavedReplyOrder = {field: UPDATED_AT, direction: DESC} + orderBy: SavedReplyOrder = { field: UPDATED_AT, direction: DESC } ): SavedReplyConnection """ @@ -58506,7 +58758,7 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & """ Ordering options for the users and organizations returned from the connection. """ - orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} + orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC } ): SponsorConnection! """ @@ -58536,7 +58788,7 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & """ Ordering options for sponsors returned from the connection. """ - orderBy: SponsorOrder = {field: RELEVANCE, direction: DESC} + orderBy: SponsorOrder = { field: RELEVANCE, direction: DESC } """ If given, will filter for sponsors at the given tier. Will only return @@ -58589,7 +58841,7 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & """ Ordering options for activity returned from the connection. """ - orderBy: SponsorsActivityOrder = {field: TIMESTAMP, direction: DESC} + orderBy: SponsorsActivityOrder = { field: TIMESTAMP, direction: DESC } """ Filter activities returned to only those that occurred in the most recent @@ -58663,7 +58915,7 @@ type User implements Actor & Node & PackageOwner & ProfileOwner & ProjectOwner & """ Ordering options for sponsorship updates returned from the connection. """ - orderBy: SponsorshipNewsletterOrder = {field: CREATED_AT, direction: DESC} + orderBy: SponsorshipNewsletterOrder = { field: CREATED_AT, direction: DESC } ): SponsorshipNewsletterConnection! """ @@ -59544,7 +59796,7 @@ type Workflow implements Node & UniformResourceLocatable { """ Ordering options for the connection """ - orderBy: WorkflowRunOrder = {field: CREATED_AT, direction: DESC} + orderBy: WorkflowRunOrder = { field: CREATED_AT, direction: DESC } ): WorkflowRunConnection! """ diff --git a/schemas/graphql.jobs.graphql b/schemas/graphql.jobs.graphql index e13d1fcf5..f83c971da 100644 --- a/schemas/graphql.jobs.graphql +++ b/schemas/graphql.jobs.graphql @@ -4,7 +4,15 @@ type City { slug: String! country: Country! type: String! - jobs(where: JobWhereInput, orderBy: JobOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Job!] + jobs( + where: JobWhereInput + orderBy: JobOrderByInput + skip: Int + after: String + before: String + first: Int + last: Int + ): [Job!] createdAt: DateTime! updatedAt: DateTime! } @@ -110,7 +118,15 @@ type Commitment { id: ID! title: String! slug: String! - jobs(where: JobWhereInput, orderBy: JobOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Job!] + jobs( + where: JobWhereInput + orderBy: JobOrderByInput + skip: Int + after: String + before: String + first: Int + last: Int + ): [Job!] createdAt: DateTime! updatedAt: DateTime! } @@ -188,7 +204,15 @@ type Company { slug: String! websiteUrl: String! logoUrl: String - jobs(where: JobWhereInput, orderBy: JobOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Job!] + jobs( + where: JobWhereInput + orderBy: JobOrderByInput + skip: Int + after: String + before: String + first: Int + last: Int + ): [Job!] twitter: String emailed: Boolean createdAt: DateTime! @@ -312,8 +336,24 @@ type Country { slug: String! type: String! isoCode: String - cities(where: CityWhereInput, orderBy: CityOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [City!] - jobs(where: JobWhereInput, orderBy: JobOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Job!] + cities( + where: CityWhereInput + orderBy: CityOrderByInput + skip: Int + after: String + before: String + first: Int + last: Int + ): [City!] + jobs( + where: JobWhereInput + orderBy: JobOrderByInput + skip: Int + after: String + before: String + first: Int + last: Int + ): [Job!] createdAt: DateTime! updatedAt: DateTime! } @@ -440,13 +480,45 @@ type Job { title: String! slug: String! commitment: Commitment! - cities(where: CityWhereInput, orderBy: CityOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [City!] - countries(where: CountryWhereInput, orderBy: CountryOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Country!] - remotes(where: RemoteWhereInput, orderBy: RemoteOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Remote!] + cities( + where: CityWhereInput + orderBy: CityOrderByInput + skip: Int + after: String + before: String + first: Int + last: Int + ): [City!] + countries( + where: CountryWhereInput + orderBy: CountryOrderByInput + skip: Int + after: String + before: String + first: Int + last: Int + ): [Country!] + remotes( + where: RemoteWhereInput + orderBy: RemoteOrderByInput + skip: Int + after: String + before: String + first: Int + last: Int + ): [Remote!] description: String applyUrl: String company: Company - tags(where: TagWhereInput, orderBy: TagOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Tag!] + tags( + where: TagWhereInput + orderBy: TagOrderByInput + skip: Int + after: String + before: String + first: Int + last: Int + ): [Tag!] isPublished: Boolean isFeatured: Boolean locationNames: String @@ -690,7 +762,15 @@ type Remote { name: String! slug: String! type: String! - jobs(where: JobWhereInput, orderBy: JobOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Job!] + jobs( + where: JobWhereInput + orderBy: JobOrderByInput + skip: Int + after: String + before: String + first: Int + last: Int + ): [Job!] createdAt: DateTime! updatedAt: DateTime! } @@ -800,7 +880,15 @@ type Tag { id: ID! name: String! slug: String! - jobs(where: JobWhereInput, orderBy: JobOrderByInput, skip: Int, after: String, before: String, first: Int, last: Int): [Job!] + jobs( + where: JobWhereInput + orderBy: JobOrderByInput + skip: Int + after: String + before: String + first: Int + last: Int + ): [Job!] createdAt: DateTime! updatedAt: DateTime! } @@ -903,4 +991,3 @@ type User { createdAt: DateTime! updatedAt: DateTime! } -