From 39fbd54ca6afa2cfa8116830784d51675601687f Mon Sep 17 00:00:00 2001 From: Plural Bot Date: Fri, 2 Dec 2022 08:13:55 +0000 Subject: [PATCH] fix(gqlclient): Update GraphQL Schema Signed-off-by: Plural Bot --- client.go | 384 +++++++++++++++++++++++++++--------------------------- 1 file changed, 192 insertions(+), 192 deletions(-) diff --git a/client.go b/client.go index 0312345..e05bbe6 100644 --- a/client.go +++ b/client.go @@ -1117,12 +1117,6 @@ const GetPackageInstallationsDocument = `query GetPackageInstallations ($id: ID! } } } -fragment ChartFragment on Chart { - id - name - description - latestVersion -} fragment DependenciesFragment on Dependencies { dependencies { type @@ -1197,6 +1191,12 @@ fragment ChartInstallationFragment on ChartInstallation { ... VersionFragment } } +fragment ChartFragment on Chart { + id + name + description + latestVersion +} ` func (c *Client) GetPackageInstallations(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetPackageInstallations, error) { @@ -1658,6 +1658,16 @@ const GetRecipeDocument = `query GetRecipe ($repo: String, $name: String) { } } } +fragment TerraformFragment on Terraform { + id + name + package + description + dependencies { + ... DependenciesFragment + } + valuesTemplate +} fragment DependenciesFragment on Dependencies { dependencies { type @@ -1777,16 +1787,6 @@ fragment ChartFragment on Chart { description latestVersion } -fragment TerraformFragment on Terraform { - id - name - package - description - dependencies { - ... DependenciesFragment - } - valuesTemplate -} ` func (c *Client) GetRecipe(ctx context.Context, repo *string, name *string, httpRequestOptions ...client.HTTPRequestOption) (*GetRecipe, error) { @@ -1812,6 +1812,47 @@ const ListRecipesDocument = `query ListRecipes ($repo: String, $provider: Provid } } } +fragment ChartFragment on Chart { + id + name + description + latestVersion +} +fragment TerraformFragment on Terraform { + id + name + package + description + dependencies { + ... DependenciesFragment + } + valuesTemplate +} +fragment DependenciesFragment on Dependencies { + dependencies { + type + name + repo + optional + version + } + breaking + instructions { + instructions + script + } + wait + application + providers + secrets + wirings { + terraform + helm + } + providerWirings + outputs + providerVsn +} fragment RecipeConfigurationFragment on RecipeConfiguration { name type @@ -1900,47 +1941,6 @@ fragment RecipeItemFragment on RecipeItem { ... RecipeConfigurationFragment } } -fragment ChartFragment on Chart { - id - name - description - latestVersion -} -fragment TerraformFragment on Terraform { - id - name - package - description - dependencies { - ... DependenciesFragment - } - valuesTemplate -} -fragment DependenciesFragment on Dependencies { - dependencies { - type - name - repo - optional - version - } - breaking - instructions { - instructions - script - } - wait - application - providers - secrets - wirings { - terraform - helm - } - providerWirings - outputs - providerVsn -} ` func (c *Client) ListRecipes(ctx context.Context, repo *string, provider *Provider, httpRequestOptions ...client.HTTPRequestOption) (*ListRecipes, error) { @@ -1966,12 +1966,6 @@ const ListAllRecipesDocument = `query ListAllRecipes ($repo: String) { } } } -fragment ChartFragment on Chart { - id - name - description - latestVersion -} fragment TerraformFragment on Terraform { id name @@ -2095,6 +2089,12 @@ fragment RecipeItemFragment on RecipeItem { ... RecipeConfigurationFragment } } +fragment ChartFragment on Chart { + id + name + description + latestVersion +} ` func (c *Client) ListAllRecipes(ctx context.Context, repo *string, httpRequestOptions ...client.HTTPRequestOption) (*ListAllRecipes, error) { @@ -2176,6 +2176,22 @@ const GetStackDocument = `query GetStack ($name: String!, $provider: Provider!) ... StackFragment } } +fragment ChartFragment on Chart { + id + name + description + latestVersion +} +fragment TerraformFragment on Terraform { + id + name + package + description + dependencies { + ... DependenciesFragment + } + valuesTemplate +} fragment DependenciesFragment on Dependencies { dependencies { type @@ -2201,6 +2217,37 @@ fragment DependenciesFragment on Dependencies { outputs providerVsn } +fragment RecipeConfigurationFragment on RecipeConfiguration { + name + type + default + documentation + optional + placeholder + functionName + condition { + field + operation + value + } + validation { + type + regex + message + } +} +fragment RecipeItemFragment on RecipeItem { + id + chart { + ... ChartFragment + } + terraform { + ... TerraformFragment + } + configuration { + ... RecipeConfigurationFragment + } +} fragment StackFragment on Stack { id name @@ -2267,53 +2314,6 @@ fragment RepositoryFragment on Repository { name } } -fragment RecipeItemFragment on RecipeItem { - id - chart { - ... ChartFragment - } - terraform { - ... TerraformFragment - } - configuration { - ... RecipeConfigurationFragment - } -} -fragment ChartFragment on Chart { - id - name - description - latestVersion -} -fragment TerraformFragment on Terraform { - id - name - package - description - dependencies { - ... DependenciesFragment - } - valuesTemplate -} -fragment RecipeConfigurationFragment on RecipeConfiguration { - name - type - default - documentation - optional - placeholder - functionName - condition { - field - operation - value - } - validation { - type - regex - message - } -} ` func (c *Client) GetStack(ctx context.Context, name string, provider Provider, httpRequestOptions ...client.HTTPRequestOption) (*GetStack, error) { @@ -2339,16 +2339,49 @@ const ListStacksDocument = `query ListStacks ($featured: Boolean, $cursor: Strin } } } -fragment RecipeItemFragment on RecipeItem { +fragment RecipeFragment on Recipe { id - chart { - ... ChartFragment + name + description + restricted + provider + tests { + type + name + message + args { + name + repo + key + } } - terraform { - ... TerraformFragment + repository { + id + name } - configuration { - ... RecipeConfigurationFragment + oidcSettings { + uriFormat + uriFormats + authMethod + domainKey + subdomain + } + recipeSections { + ... RecipeSectionFragment + } +} +fragment RepositoryFragment on Repository { + id + name + notes + icon + darkIcon + description + publisher { + name + } + recipes { + name } } fragment TerraformFragment on Terraform { @@ -2380,18 +2413,37 @@ fragment RecipeConfigurationFragment on RecipeConfiguration { message } } -fragment RepositoryFragment on Repository { +fragment StackFragment on Stack { id name - notes - icon - darkIcon + featured description - publisher { - name + bundles { + ... RecipeFragment } - recipes { - name +} +fragment RecipeSectionFragment on RecipeSection { + index + repository { + ... RepositoryFragment + } + recipeItems { + ... RecipeItemFragment + } + configuration { + ... RecipeConfigurationFragment + } +} +fragment RecipeItemFragment on RecipeItem { + id + chart { + ... ChartFragment + } + terraform { + ... TerraformFragment + } + configuration { + ... RecipeConfigurationFragment } } fragment ChartFragment on Chart { @@ -2425,58 +2477,6 @@ fragment DependenciesFragment on Dependencies { outputs providerVsn } -fragment StackFragment on Stack { - id - name - featured - description - bundles { - ... RecipeFragment - } -} -fragment RecipeFragment on Recipe { - id - name - description - restricted - provider - tests { - type - name - message - args { - name - repo - key - } - } - repository { - id - name - } - oidcSettings { - uriFormat - uriFormats - authMethod - domainKey - subdomain - } - recipeSections { - ... RecipeSectionFragment - } -} -fragment RecipeSectionFragment on RecipeSection { - index - repository { - ... RepositoryFragment - } - recipeItems { - ... RecipeItemFragment - } - configuration { - ... RecipeConfigurationFragment - } -} ` func (c *Client) ListStacks(ctx context.Context, featured *bool, cursor *string, httpRequestOptions ...client.HTTPRequestOption) (*ListStacks, error) { @@ -2996,6 +2996,16 @@ const UploadTerraformDocument = `mutation UploadTerraform ($repoName: String!, $ ... TerraformFragment } } +fragment TerraformFragment on Terraform { + id + name + package + description + dependencies { + ... DependenciesFragment + } + valuesTemplate +} fragment DependenciesFragment on Dependencies { dependencies { type @@ -3021,16 +3031,6 @@ fragment DependenciesFragment on Dependencies { outputs providerVsn } -fragment TerraformFragment on Terraform { - id - name - package - description - dependencies { - ... DependenciesFragment - } - valuesTemplate -} ` func (c *Client) UploadTerraform(ctx context.Context, repoName string, name string, uploadOrURL string, httpRequestOptions ...client.HTTPRequestOption) (*UploadTerraform, error) { @@ -3247,11 +3247,6 @@ const ListKeysDocument = `query ListKeys ($emails: [String]) { } } } -fragment UserFragment on User { - id - name - email -} fragment PublicKeyFragment on PublicKey { id content @@ -3259,6 +3254,11 @@ fragment PublicKeyFragment on PublicKey { ... UserFragment } } +fragment UserFragment on User { + id + name + email +} ` func (c *Client) ListKeys(ctx context.Context, emails []*string, httpRequestOptions ...client.HTTPRequestOption) (*ListKeys, error) {