Skip to content

Commit

Permalink
Add installVersion apis to cli
Browse files Browse the repository at this point in the history
Will be useful to help users manually install specific packages
  • Loading branch information
michaeljguarino committed Aug 8, 2023
1 parent 4737b7b commit 5e14960
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 3 deletions.
26 changes: 26 additions & 0 deletions client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions graph/repos.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@ mutation DeleteRepository($id: ID!) {

mutation Release($name: String!, $tags: [String!]) {
release(repositoryName: $name, tags: $tags)
}

mutation InstallVersion($type: DependencyType!, $repo: String!, $package: String!, $vsn: String!) {
installVersion(type: $type, repository: $repo, package: $package, vsn: $vsn)
}
18 changes: 15 additions & 3 deletions models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions schema/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ enum NotificationType {
INCIDENT_UPDATE
MENTION
LOCKED
PENDING
}

enum OnboardingState {
Expand Down Expand Up @@ -637,6 +638,9 @@ input FileAttributes {

input InviteAttributes {
email: String
admin: Boolean
oidcProviderId: ID
serviceAccountId: ID
inviteGroups: [BindingAttributes]
}

Expand Down Expand Up @@ -1175,6 +1179,7 @@ type DnsRecordEdge {

type Invite {
id: ID!
admin: Boolean
secureId: String
existing: Boolean!
email: String
Expand Down Expand Up @@ -1467,6 +1472,7 @@ input UserAttributes {
loginMethod: LoginMethod
roles: RolesAttributes
confirm: String
groupIds: [ID!]
}

input PublisherAttributes {
Expand Down Expand Up @@ -1821,6 +1827,8 @@ type RootMutationType {

updateVersion(id: ID, spec: VersionSpec, attributes: VersionAttributes!): Version

installVersion(type: DependencyType!, vsn: String!, package: String!, repository: String!): Boolean

createServiceAccount(attributes: ServiceAccountAttributes!): User

updateServiceAccount(id: ID!, attributes: ServiceAccountAttributes!): User
Expand Down Expand Up @@ -2142,6 +2150,8 @@ type Community {
type RootQueryType {
me: User

user(id: ID!): User

loginMethod(email: String!, host: String): LoginMethodResponse

resetToken(id: ID!): ResetToken
Expand Down Expand Up @@ -3624,6 +3634,10 @@ type User {

roles: Roles

"the groups attached to this user, only fetch this when querying an individual user"
groups: [Group]

"the roles attached to this user, only fetch this when querying an individual user"
boundRoles: [Role]

publisher: Publisher
Expand All @@ -3632,6 +3646,8 @@ type User {

impersonationPolicy: ImpersonationPolicy

invites: [Invite]

jwt: String

hasInstallations: Boolean
Expand Down Expand Up @@ -3667,6 +3683,7 @@ type OidcProvider {
authMethod: OidcAuthMethod!
configuration: OuathConfiguration
consent: ConsentRequest
invites: [Invite]
bindings: [OidcProviderBinding]
insertedAt: DateTime
updatedAt: DateTime
Expand Down

0 comments on commit 5e14960

Please sign in to comment.