diff --git a/client.go b/client.go index d1c9097..0efaefd 100644 --- a/client.go +++ b/client.go @@ -1047,6 +1047,24 @@ const GetPackageInstallationsDocument = `query GetPackageInstallations ($id: ID! } } } +fragment ChartInstallationFragment on ChartInstallation { + id + chart { + ... ChartFragment + dependencies { + ... DependenciesFragment + } + } + version { + ... VersionFragment + } +} +fragment ChartFragment on Chart { + id + name + description + latestVersion +} fragment DependenciesFragment on Dependencies { dependencies { type @@ -1102,24 +1120,6 @@ fragment TerraformFragment on Terraform { } valuesTemplate } -fragment ChartInstallationFragment on ChartInstallation { - id - chart { - ... ChartFragment - dependencies { - ... DependenciesFragment - } - } - version { - ... VersionFragment - } -} -fragment ChartFragment on Chart { - id - name - description - latestVersion -} ` func (c *Client) GetPackageInstallations(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetPackageInstallations, error) { @@ -1433,19 +1433,6 @@ const GetInstallationsDocument = `query GetInstallations { } } } -fragment InstallationFragment on Installation { - id - context - licenseKey - acmeKeyId - acmeSecret - repository { - ... RepositoryFragment - } - oidcProvider { - ... OIDCProvider - } -} fragment RepositoryFragment on Repository { id name @@ -1483,6 +1470,19 @@ fragment OIDCProvider on OidcProvider { userinfoEndpoint } } +fragment InstallationFragment on Installation { + id + context + licenseKey + acmeKeyId + acmeSecret + repository { + ... RepositoryFragment + } + oidcProvider { + ... OIDCProvider + } +} ` func (c *Client) GetInstallations(ctx context.Context, httpRequestOptions ...client.HTTPRequestOption) (*GetInstallations, error) { @@ -1541,24 +1541,6 @@ const GetRecipeDocument = `query GetRecipe ($repo: String, $name: String) { } } } -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 @@ -1663,6 +1645,24 @@ fragment RepositoryFragment on Repository { name } } +fragment RecipeItemFragment on RecipeItem { + id + chart { + ... ChartFragment + } + terraform { + ... TerraformFragment + } + configuration { + ... RecipeConfigurationFragment + } +} +fragment ChartFragment on Chart { + id + name + description + latestVersion +} ` func (c *Client) GetRecipe(ctx context.Context, repo *string, name *string, httpRequestOptions ...client.HTTPRequestOption) (*GetRecipe, error) { @@ -1835,56 +1835,6 @@ const ListAllRecipesDocument = `query ListAllRecipes ($repo: String) { } } } -fragment RecipeConfigurationFragment on RecipeConfiguration { - name - type - default - documentation - optional - placeholder - functionName - condition { - field - operation - value - } - validation { - type - regex - message - } -} -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 { @@ -1957,6 +1907,56 @@ 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 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 + } +} ` func (c *Client) ListAllRecipes(ctx context.Context, repo *string, httpRequestOptions ...client.HTTPRequestOption) (*ListAllRecipes, error) { @@ -2038,6 +2038,59 @@ const GetStackDocument = `query GetStack ($name: String!, $provider: Provider!) ... StackFragment } } +fragment ChartFragment on Chart { + id + name + description + latestVersion +} +fragment RecipeConfigurationFragment on RecipeConfiguration { + name + type + default + documentation + optional + placeholder + functionName + condition { + field + operation + value + } + validation { + type + regex + message + } +} +fragment TerraformFragment on Terraform { + id + name + package + description + dependencies { + ... DependenciesFragment + } + valuesTemplate +} +fragment DependenciesFragment on Dependencies { + dependencies { + type + name + repo + } + wait + application + providers + secrets + wirings { + terraform + helm + } + providerWirings + outputs + providerVsn +} fragment StackFragment on Stack { id name @@ -2078,41 +2131,6 @@ fragment RecipeFragment on Recipe { ... RecipeSectionFragment } } -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 - } -} fragment RecipeSectionFragment on RecipeSection { index repository { @@ -2151,24 +2169,6 @@ fragment RecipeItemFragment on RecipeItem { ... RecipeConfigurationFragment } } -fragment DependenciesFragment on Dependencies { - dependencies { - type - name - repo - } - wait - application - providers - secrets - wirings { - terraform - helm - } - providerWirings - outputs - providerVsn -} ` func (c *Client) GetStack(ctx context.Context, name string, provider Provider, httpRequestOptions ...client.HTTPRequestOption) (*GetStack, error) { @@ -2208,11 +2208,17 @@ fragment RepositoryFragment on Repository { name } } -fragment ChartFragment on Chart { +fragment RecipeItemFragment on RecipeItem { id - name - description - latestVersion + chart { + ... ChartFragment + } + terraform { + ... TerraformFragment + } + configuration { + ... RecipeConfigurationFragment + } } fragment RecipeConfigurationFragment on RecipeConfiguration { name @@ -2233,6 +2239,15 @@ fragment RecipeConfigurationFragment on RecipeConfiguration { message } } +fragment StackFragment on Stack { + id + name + featured + description + bundles { + ... RecipeFragment + } +} fragment RecipeFragment on Recipe { id name @@ -2264,30 +2279,6 @@ fragment RecipeFragment on Recipe { ... RecipeSectionFragment } } -fragment RecipeSectionFragment on RecipeSection { - index - repository { - ... RepositoryFragment - } - recipeItems { - ... RecipeItemFragment - } - configuration { - ... RecipeConfigurationFragment - } -} -fragment RecipeItemFragment on RecipeItem { - id - chart { - ... ChartFragment - } - terraform { - ... TerraformFragment - } - configuration { - ... RecipeConfigurationFragment - } -} fragment TerraformFragment on Terraform { id name @@ -2316,14 +2307,23 @@ fragment DependenciesFragment on Dependencies { outputs providerVsn } -fragment StackFragment on Stack { +fragment RecipeSectionFragment on RecipeSection { + index + repository { + ... RepositoryFragment + } + recipeItems { + ... RecipeItemFragment + } + configuration { + ... RecipeConfigurationFragment + } +} +fragment ChartFragment on Chart { id name - featured description - bundles { - ... RecipeFragment - } + latestVersion } ` @@ -2703,16 +2703,6 @@ const GetTerraformDocument = `query GetTerraform ($id: ID!) { } } } -fragment TerraformFragment on Terraform { - id - name - package - description - dependencies { - ... DependenciesFragment - } - valuesTemplate -} fragment DependenciesFragment on Dependencies { dependencies { type @@ -2731,6 +2721,16 @@ fragment DependenciesFragment on Dependencies { outputs providerVsn } +fragment TerraformFragment on Terraform { + id + name + package + description + dependencies { + ... DependenciesFragment + } + valuesTemplate +} ` func (c *Client) GetTerraform(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetTerraform, error) {