Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema update #514

Merged
merged 1 commit into from
Feb 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 22 additions & 11 deletions schema.gql
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type BillingSettingsPayload {
clientMutationId: String
}

type Build {
type Build implements Node {
id: ID!
repositoryId: ID!
branch: String!
Expand Down Expand Up @@ -288,7 +288,7 @@ type GetPersistentWorkerPoolRegistrationTokenPayload {
clientMutationId: String
}

type Hook {
type Hook implements Node {
id: ID!
repositoryId: ID!
repository: Repository!
Expand Down Expand Up @@ -396,6 +396,16 @@ type Mutation {
buyComputeCredits(input: BuyComputeCreditsInput!): BuyComputeCreditsPayload
}

"""
An object with an ID
"""
interface Node {
"""
The ID of an object
"""
id: ID!
}

type Notification {
level: NotificationLevel!
message: String!
Expand Down Expand Up @@ -752,7 +762,7 @@ type PersistentWorkerInfo {
resourcesTotal: [PersistentWorkerResource]!
}

type PersistentWorkerPool {
type PersistentWorkerPool implements Node {
id: ID!
name: String!
enabledForPublic: Boolean!
Expand All @@ -776,6 +786,7 @@ enum PlatformType {
}

type Query {
node(id: ID!): Node
viewer: User
repository(id: ID!): Repository
ownerRepository(platform: String!, owner: String!, name: String!): Repository
Expand All @@ -790,7 +801,7 @@ type Query {
ownerInfoByName(platform: String, name: String): OwnerInfo
}

type Repository {
type Repository implements Node {
id: ID!
platform: String!
owner: String!
Expand Down Expand Up @@ -977,7 +988,7 @@ type RepositorySettingsPayload {
input SaveWebHookSettingsInput {
platform: String!
ownerUid: ID!
webhookURL: String!
webhookURL: String
secretToken: String
clientMutationId: String
}
Expand Down Expand Up @@ -1005,7 +1016,7 @@ type Subscription {
repository(id: ID!): Repository
}

type Task {
type Task implements Node {
id: ID!
buildId: ID!
repositoryId: ID!
Expand Down Expand Up @@ -1229,7 +1240,7 @@ type UpdatePersistentWorkerPoolPayload {
clientMutationId: String
}

type User implements UserBasicInfo {
type User implements Node & UserBasicInfo {
id: ID!
category: User!
avatarURL: String
Expand Down Expand Up @@ -1354,8 +1365,8 @@ type UserTransactionsConnection {
pageInfo: PageInfo!
}

type WebHookDelivery {
id: String!
type WebHookDelivery implements Node {
id: ID!
platform: String!
ownerUid: String!
repositoryId: Int!
Expand All @@ -1377,6 +1388,6 @@ type WebHookDeliveryResponse {
}

type WebHookSettings {
webhookURL: String!
maskedSecretToken: String!
webhookURL: String
maskedSecretToken: String
}