github.com/pluralsh/plural-cli@v0.9.5/pkg/ui/web/src/graphql/charts.graphql (about) 1 fragment Chart on Chart { 2 id 3 name 4 description 5 latestVersion 6 dependencies { ...Dependencies } 7 insertedAt 8 } 9 10 fragment Crd on Crd { 11 id 12 name 13 blob 14 } 15 16 fragment ChartInstallation on ChartInstallation { 17 id 18 chart { 19 ...Chart 20 dependencies { ...Dependencies } 21 } 22 version { ...Version } 23 } 24 25 fragment ScanViolation on ScanViolation { 26 ruleName 27 description 28 ruleId 29 severity 30 category 31 resourceName 32 resourceType 33 file 34 line 35 } 36 37 fragment ScanError on ScanError { 38 message 39 } 40 41 fragment PackageScan on PackageScan { 42 id 43 grade 44 violations { ...ScanViolation } 45 errors { ...ScanError } 46 } 47 48 query GetCharts($id: ID!) { 49 charts(repositoryId: $id, first: 100) { 50 edges { 51 node { 52 ...Chart 53 } 54 } 55 } 56 } 57 58 query GetVersions($id: ID!) { 59 versions(chartId: $id, first: 100) { 60 edges { 61 node { 62 ...Version 63 } 64 } 65 } 66 } 67 68 query GetChartInstallations($id: ID!) { 69 chartInstallations(repositoryId: $id, first: 100) { 70 edges { node { ...ChartInstallation } } 71 } 72 } 73 74 query GetPackageInstallations($id: ID!) { 75 chartInstallations(repositoryId: $id, first: 100) { 76 edges { node { ...ChartInstallation } } 77 } 78 terraformInstallations(repositoryId: $id, first: 100) { 79 edges { node { ...TerraformInstallation } } 80 } 81 } 82 83 mutation CreateCrd($chartName: ChartName!, $name: String!, $blob: UploadOrUrl!) { 84 createCrd(chartName: $chartName, attributes: {name:$name, blob:$blob}) { 85 id 86 } 87 } 88 89 mutation UninstallChart($id: ID!) { 90 deleteChartInstallation(id: $id) { id } 91 }