github.com/pluralsh/plural-cli@v0.9.5/pkg/ui/web/src/graphql/repos.graphql (about) 1 fragment ApplyLock on ApplyLock { 2 id 3 lock 4 } 5 6 fragment Category on CategoryInfo { 7 category 8 count 9 } 10 11 fragment Repo on Repository { 12 id 13 name 14 notes 15 description 16 documentation 17 icon 18 darkIcon 19 private 20 trending 21 verified 22 category 23 oauthSettings { 24 uriFormat 25 authMethod 26 } 27 publisher { 28 ...Publisher 29 } 30 recipes { 31 name 32 provider 33 description 34 } 35 } 36 37 fragment Repository on Repository { 38 id 39 name 40 notes 41 icon 42 darkIcon 43 description 44 publisher { name } 45 recipes { name } 46 } 47 48 fragment Dependencies on Dependencies { 49 dependencies { 50 name 51 repo 52 type 53 version 54 optional 55 } 56 wait 57 application 58 providers 59 secrets 60 wirings { terraform helm } 61 providerWirings 62 outputs 63 } 64 65 66 fragment Integration on Integration { 67 id 68 name 69 icon 70 sourceUrl 71 description 72 tags { tag } 73 publisher { ...Publisher } 74 } 75 76 query Repository($id: ID, $name: String) { 77 repository(id: $id, name: $name) { 78 ...Repo 79 editable 80 publicKey 81 secrets 82 artifacts { 83 ...Artifact 84 } 85 installation { 86 ...Installation 87 oidcProvider { 88 ...OIDCProvider 89 } 90 } 91 tags { 92 tag 93 } 94 readme 95 mainBranch 96 gitUrl 97 homepage 98 license { 99 name 100 url 101 } 102 documentation 103 community { 104 discord 105 slack 106 homepage 107 gitUrl 108 twitter 109 } 110 } 111 } 112 113 mutation CreateResourceDefinition($name: String!, $input: ResourceDefinitionAttributes!) { 114 updateRepository(repositoryName: $name, attributes: {integrationResourceDefinition: $input}) { 115 id 116 } 117 } 118 119 mutation CreateIntegration($name: String!, $attrs: IntegrationAttributes!) { 120 createIntegration(repositoryName: $name, attributes: $attrs) { id } 121 } 122 123 mutation UpdateRepository($name: String!, $attrs: RepositoryAttributes!) { 124 updateRepository(repositoryName: $name, attributes: $attrs) { id } 125 } 126 127 mutation CreateRepository($name: String!, $publisher: String!, $attributes: RepositoryAttributes!) { 128 upsertRepository(name: $name, publisher: $publisher, attributes: $attributes) { id } 129 } 130 131 mutation AcquireLock($name: String!) { 132 acquireLock(repository: $name) { ...ApplyLock } 133 } 134 135 mutation ReleaseLock($name: String!, $attrs: LockAttributes!) { 136 releaseLock(repository: $name, attributes: $attrs) { ...ApplyLock } 137 } 138 139 mutation UnlockRepository($name: String!) { 140 unlockRepository(name: $name) 141 } 142 143 query ListRepositories($q: String, $installed: Boolean, $first: Int = 100, $provider: Provider = null) { 144 repositories(q: $q, first: $first, installed: $installed, provider: $provider) { 145 edges { node { ...Repository } } 146 } 147 } 148 149 query Scaffolds($app: String!, $pub: String!, $cat: Category!, $ing: Boolean, $pg: Boolean) { 150 scaffold(application: $app, publisher: $pub, category: $cat, ingress: $ing, postgres: $pg) { 151 path 152 content 153 } 154 } 155 156 mutation DeleteRepository($id: ID!) { 157 deleteRepository(repositoryId: $id){ 158 id 159 } 160 }