diff --git a/client.go b/client.go index dcc18fe..fc8c772 100644 --- a/client.go +++ b/client.go @@ -386,6 +386,7 @@ type VersionFragment struct { Readme *string "json:\"readme\" graphql:\"readme\"" Version string "json:\"version\" graphql:\"version\"" ValuesTemplate *string "json:\"valuesTemplate\" graphql:\"valuesTemplate\"" + TemplateType *TemplateType "json:\"templateType\" graphql:\"templateType\"" Package *string "json:\"package\" graphql:\"package\"" Crds []*CrdFragment "json:\"crds\" graphql:\"crds\"" Dependencies *DependenciesFragment "json:\"dependencies\" graphql:\"dependencies\"" @@ -963,6 +964,7 @@ fragment VersionFragment on Version { readme version valuesTemplate + templateType package crds { ... CrdFragment @@ -1073,6 +1075,7 @@ fragment VersionFragment on Version { readme version valuesTemplate + templateType package crds { ... CrdFragment @@ -1117,6 +1120,43 @@ const GetPackageInstallationsDocument = `query GetPackageInstallations ($id: ID! } } } +fragment TerraformInstallationFragment on TerraformInstallation { + id + terraform { + ... TerraformFragment + } + version { + ... VersionFragment + } +} +fragment TerraformFragment on Terraform { + id + name + package + description + dependencies { + ... DependenciesFragment + } + valuesTemplate +} +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 @@ -1147,6 +1187,7 @@ fragment VersionFragment on Version { readme version valuesTemplate + templateType package crds { ... CrdFragment @@ -1160,43 +1201,6 @@ fragment CrdFragment on Crd { name blob } -fragment TerraformInstallationFragment on TerraformInstallation { - id - terraform { - ... TerraformFragment - } - version { - ... VersionFragment - } -} -fragment TerraformFragment on Terraform { - id - name - package - description - dependencies { - ... DependenciesFragment - } - 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) { @@ -1456,6 +1460,19 @@ const GetInstallationByIDDocument = `query GetInstallationById ($id: ID) { ... InstallationFragment } } +fragment InstallationFragment on Installation { + id + context + licenseKey + acmeKeyId + acmeSecret + repository { + ... RepositoryFragment + } + oidcProvider { + ... OIDCProvider + } +} fragment RepositoryFragment on Repository { id name @@ -1493,19 +1510,6 @@ fragment OIDCProvider on OidcProvider { userinfoEndpoint } } -fragment InstallationFragment on Installation { - id - context - licenseKey - acmeKeyId - acmeSecret - repository { - ... RepositoryFragment - } - oidcProvider { - ... OIDCProvider - } -} ` func (c *Client) GetInstallationByID(ctx context.Context, id *string, httpRequestOptions ...client.HTTPRequestOption) (*GetInstallationByID, error) { @@ -1658,37 +1662,6 @@ const GetRecipeDocument = `query GetRecipe ($repo: String, $name: String) { } } } -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 { @@ -1787,6 +1760,37 @@ fragment RecipeConfigurationFragment on RecipeConfiguration { 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) GetRecipe(ctx context.Context, repo *string, name *string, httpRequestOptions ...client.HTTPRequestOption) (*GetRecipe, error) { @@ -1966,18 +1970,6 @@ const ListAllRecipesDocument = `query ListAllRecipes ($repo: String) { } } } -fragment RecipeItemFragment on RecipeItem { - id - chart { - ... ChartFragment - } - terraform { - ... TerraformFragment - } - configuration { - ... RecipeConfigurationFragment - } -} fragment ChartFragment on Chart { id name @@ -2095,6 +2087,18 @@ fragment RepositoryFragment on Repository { name } } +fragment RecipeItemFragment on RecipeItem { + id + chart { + ... ChartFragment + } + terraform { + ... TerraformFragment + } + configuration { + ... RecipeConfigurationFragment + } +} ` func (c *Client) ListAllRecipes(ctx context.Context, repo *string, httpRequestOptions ...client.HTTPRequestOption) (*ListAllRecipes, error) { @@ -2176,44 +2180,18 @@ const GetStackDocument = `query GetStack ($name: String!, $provider: Provider!) ... StackFragment } } -fragment RecipeConfigurationFragment on RecipeConfiguration { - name - type - default - documentation - optional - placeholder - functionName - condition { - field - operation - value - } - validation { - type - regex - message - } -} -fragment StackFragment on Stack { +fragment RepositoryFragment on Repository { id name - featured + notes + icon + darkIcon description - bundles { - ... RecipeFragment - } -} -fragment RecipeItemFragment on RecipeItem { - id - chart { - ... ChartFragment - } - terraform { - ... TerraformFragment + publisher { + name } - configuration { - ... RecipeConfigurationFragment + recipes { + name } } fragment TerraformFragment on Terraform { @@ -2251,6 +2229,52 @@ 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 StackFragment on Stack { + id + name + featured + description + bundles { + ... RecipeFragment + } +} +fragment RecipeSectionFragment on RecipeSection { + index + repository { + ... RepositoryFragment + } + recipeItems { + ... RecipeItemFragment + } + configuration { + ... RecipeConfigurationFragment + } +} +fragment ChartFragment on Chart { + id + name + description + latestVersion +} fragment RecipeFragment on Recipe { id name @@ -2282,38 +2306,18 @@ fragment RecipeFragment on Recipe { ... RecipeSectionFragment } } -fragment RecipeSectionFragment on RecipeSection { - index - repository { - ... RepositoryFragment +fragment RecipeItemFragment on RecipeItem { + id + chart { + ... ChartFragment } - recipeItems { - ... RecipeItemFragment + terraform { + ... TerraformFragment } configuration { ... RecipeConfigurationFragment } } -fragment RepositoryFragment on Repository { - id - name - notes - icon - darkIcon - description - publisher { - name - } - recipes { - name - } -} -fragment ChartFragment on Chart { - id - name - description - latestVersion -} ` func (c *Client) GetStack(ctx context.Context, name string, provider Provider, httpRequestOptions ...client.HTTPRequestOption) (*GetStack, error) { @@ -2339,49 +2343,6 @@ const ListStacksDocument = `query ListStacks ($featured: Boolean, $cursor: Strin } } } -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 - } -} fragment TerraformFragment on Terraform { id name @@ -2426,6 +2387,18 @@ fragment StackFragment on Stack { ... RecipeFragment } } +fragment RecipeSectionFragment on RecipeSection { + index + repository { + ... RepositoryFragment + } + recipeItems { + ... RecipeItemFragment + } + configuration { + ... RecipeConfigurationFragment + } +} fragment RepositoryFragment on Repository { id name @@ -2477,6 +2450,37 @@ fragment RecipeConfigurationFragment on RecipeConfiguration { 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) ListStacks(ctx context.Context, featured *bool, cursor *string, httpRequestOptions ...client.HTTPRequestOption) (*ListStacks, error) { @@ -2914,15 +2918,6 @@ const GetTerraformInstallationsDocument = `query GetTerraformInstallations ($id: } } } -fragment TerraformInstallationFragment on TerraformInstallation { - id - terraform { - ... TerraformFragment - } - version { - ... VersionFragment - } -} fragment TerraformFragment on Terraform { id name @@ -2963,6 +2958,7 @@ fragment VersionFragment on Version { readme version valuesTemplate + templateType package crds { ... CrdFragment @@ -2976,6 +2972,15 @@ fragment CrdFragment on Crd { name blob } +fragment TerraformInstallationFragment on TerraformInstallation { + id + terraform { + ... TerraformFragment + } + version { + ... VersionFragment + } +} ` func (c *Client) GetTerraformInstallations(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetTerraformInstallations, error) {