Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit ac18538

Browse files
authored
Merge pull request #2328 from atom/schema-update/1572570357301
GraphQL schema update
2 parents 4d846b5 + a76a894 commit ac18538

File tree

1 file changed

+92
-6
lines changed

1 file changed

+92
-6
lines changed

graphql/schema.graphql

Lines changed: 92 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9618,6 +9618,9 @@ type Organization implements Node & Actor & RegistryPackageOwner & RegistryPacka
96189618
"""The Organization's SAML identity providers"""
96199619
samlIdentityProvider: OrganizationIdentityProvider
96209620

9621+
"""The GitHub Sponsors listing for this user."""
9622+
sponsorsListing: SponsorsListing
9623+
96219624
"""This object's sponsorships as the maintainer."""
96229625
sponsorshipsAsMaintainer(
96239626
"""Returns the elements in the list that come after the specified cursor."""
@@ -14409,12 +14412,6 @@ type Query {
1440914412
last: Int
1441014413
): SecurityVulnerabilityConnection!
1441114414

14412-
"""Look up a single Sponsors Listing"""
14413-
sponsorsListing(
14414-
"""Select the Sponsors listing which matches this slug"""
14415-
slug: String!
14416-
): SponsorsListing
14417-
1441814415
"""Look up a topic by name."""
1441914416
topic(
1442014417
"""The topic's name."""
@@ -19377,6 +19374,9 @@ type SmimeSignature implements GitSignature {
1937719374

1937819375
"""Entities that can be sponsored through GitHub Sponsors"""
1937919376
interface Sponsorable {
19377+
"""The GitHub Sponsors listing for this user."""
19378+
sponsorsListing: SponsorsListing
19379+
1938019380
"""This object's sponsorships as the maintainer."""
1938119381
sponsorshipsAsMaintainer(
1938219382
"""Returns the elements in the list that come after the specified cursor."""
@@ -19474,10 +19474,19 @@ type SponsorshipEdge {
1947419474

1947519475
"""Ordering options for sponsorship connections."""
1947619476
input SponsorshipOrder {
19477+
"""The field to order sponsorship by."""
19478+
field: SponsorshipOrderField!
19479+
1947719480
"""The ordering direction."""
1947819481
direction: OrderDirection!
1947919482
}
1948019483

19484+
"""Properties by which sponsorship connections can be ordered."""
19485+
enum SponsorshipOrderField {
19486+
"""Order sponsorship by creation time."""
19487+
CREATED_AT
19488+
}
19489+
1948119490
"""The privacy of a sponsorship"""
1948219491
enum SponsorshipPrivacy {
1948319492
"""Public"""
@@ -19504,10 +19513,35 @@ type SponsorsListing implements Node {
1950419513

1950519514
"""The short name of the listing."""
1950619515
slug: String!
19516+
19517+
"""The published tiers for this GitHub Sponsors listing."""
19518+
tiers(
19519+
"""Returns the elements in the list that come after the specified cursor."""
19520+
after: String
19521+
19522+
"""
19523+
Returns the elements in the list that come before the specified cursor.
19524+
"""
19525+
before: String
19526+
19527+
"""Returns the first _n_ elements from the list."""
19528+
first: Int
19529+
19530+
"""Returns the last _n_ elements from the list."""
19531+
last: Int
19532+
19533+
"""Ordering options for Sponsors tiers returned from the connection."""
19534+
orderBy: SponsorsTierOrder = {field: MONTHLY_PRICE_IN_CENTS, direction: ASC}
19535+
): SponsorsTierConnection
1950719536
}
1950819537

1950919538
"""A GitHub Sponsors tier associated with a GitHub Sponsors listing."""
1951019539
type SponsorsTier implements Node {
19540+
"""
19541+
SponsorsTier information only visible to users that can administer the associated Sponsors listing.
19542+
"""
19543+
adminInfo: SponsorsTierAdminInfo
19544+
1951119545
"""Identifies the date and time when the object was created."""
1951219546
createdAt: DateTime!
1951319547

@@ -19534,6 +19568,37 @@ type SponsorsTier implements Node {
1953419568
updatedAt: DateTime!
1953519569
}
1953619570

19571+
"""
19572+
SponsorsTier information only visible to users that can administer the associated Sponsors listing.
19573+
"""
19574+
type SponsorsTierAdminInfo {
19575+
"""The sponsorships associated with this tier."""
19576+
sponsorships(
19577+
"""Returns the elements in the list that come after the specified cursor."""
19578+
after: String
19579+
19580+
"""
19581+
Returns the elements in the list that come before the specified cursor.
19582+
"""
19583+
before: String
19584+
19585+
"""Returns the first _n_ elements from the list."""
19586+
first: Int
19587+
19588+
"""Returns the last _n_ elements from the list."""
19589+
last: Int
19590+
19591+
"""Whether or not to include private sponsorships in the result set"""
19592+
includePrivate: Boolean = false
19593+
19594+
"""
19595+
Ordering options for sponsorships returned from this connection. If left
19596+
blank, the sponsorships will be ordered based on relevancy to the viewer.
19597+
"""
19598+
orderBy: SponsorshipOrder
19599+
): SponsorshipConnection!
19600+
}
19601+
1953719602
"""The connection type for SponsorsTier."""
1953819603
type SponsorsTierConnection {
1953919604
"""A list of edges."""
@@ -19558,6 +19623,24 @@ type SponsorsTierEdge {
1955819623
node: SponsorsTier
1955919624
}
1956019625

19626+
"""Ordering options for Sponsors tiers connections."""
19627+
input SponsorsTierOrder {
19628+
"""The field to order tiers by."""
19629+
field: SponsorsTierOrderField!
19630+
19631+
"""The ordering direction."""
19632+
direction: OrderDirection!
19633+
}
19634+
19635+
"""Properties by which Sponsors tiers connections can be ordered."""
19636+
enum SponsorsTierOrderField {
19637+
"""Order tiers by creation time."""
19638+
CREATED_AT
19639+
19640+
"""Order tiers by their monthly price in cents"""
19641+
MONTHLY_PRICE_IN_CENTS
19642+
}
19643+
1956119644
"""The connection type for User."""
1956219645
type StargazerConnection {
1956319646
"""A list of edges."""
@@ -23211,6 +23294,9 @@ type User implements Node & Actor & RegistryPackageOwner & RegistryPackageSearch
2321123294
orderBy: SavedReplyOrder = {field: UPDATED_AT, direction: DESC}
2321223295
): SavedReplyConnection
2321323296

23297+
"""The GitHub Sponsors listing for this user."""
23298+
sponsorsListing: SponsorsListing
23299+
2321423300
"""This object's sponsorships as the maintainer."""
2321523301
sponsorshipsAsMaintainer(
2321623302
"""Returns the elements in the list that come after the specified cursor."""

0 commit comments

Comments
 (0)