From 93ca7f2eeaabdf5e8ef4fde1cc190ab6fa9c1caf Mon Sep 17 00:00:00 2001 From: Lukasz Zajaczkowski Date: Thu, 15 Sep 2022 08:34:54 +0200 Subject: [PATCH] bump gqlgenc to v0.11.0 --- client.go | 396 +++++++++++++++++++++++++++--------------------------- go.mod | 2 +- 2 files changed, 199 insertions(+), 199 deletions(-) diff --git a/client.go b/client.go index bcb509b..0baecaa 100644 --- a/client.go +++ b/client.go @@ -949,6 +949,11 @@ const GetChartInstallationsDocument = `query GetChartInstallations ($id: ID!) { } } } +fragment CrdFragment on Crd { + id + name + blob +} fragment ChartInstallationFragment on ChartInstallation { id chart { @@ -998,11 +1003,6 @@ fragment VersionFragment on Version { ... DependenciesFragment } } -fragment CrdFragment on Crd { - id - name - blob -} ` func (c *Client) GetChartInstallations(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetChartInstallations, error) { @@ -1034,42 +1034,6 @@ const GetPackageInstallationsDocument = `query GetPackageInstallations ($id: ID! } } } -fragment DependenciesFragment on Dependencies { - dependencies { - type - name - repo - } - wait - application - providers - secrets - wirings { - terraform - helm - } - providerWirings - outputs - providerVsn -} -fragment VersionFragment on Version { - id - readme - version - valuesTemplate - package - crds { - ... CrdFragment - } - dependencies { - ... DependenciesFragment - } -} -fragment CrdFragment on Crd { - id - name - blob -} fragment TerraformInstallationFragment on TerraformInstallation { id terraform { @@ -1107,6 +1071,42 @@ fragment ChartFragment on Chart { description latestVersion } +fragment DependenciesFragment on Dependencies { + dependencies { + type + name + repo + } + wait + application + providers + secrets + wirings { + terraform + helm + } + providerWirings + outputs + providerVsn +} +fragment VersionFragment on Version { + id + readme + version + valuesTemplate + package + crds { + ... CrdFragment + } + dependencies { + ... DependenciesFragment + } +} +fragment CrdFragment on Crd { + id + name + blob +} ` func (c *Client) GetPackageInstallations(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetPackageInstallations, error) { @@ -1420,29 +1420,6 @@ const GetInstallationsDocument = `query GetInstallations { } } } -fragment OIDCProvider on OidcProvider { - id - clientId - clientSecret - redirectUris - bindings { - user { - id - email - } - group { - id - name - } - } - configuration { - issuer - authorizationEndpoint - tokenEndpoint - jwksUri - userinfoEndpoint - } -} fragment InstallationFragment on Installation { id context @@ -1470,6 +1447,29 @@ fragment RepositoryFragment on Repository { name } } +fragment OIDCProvider on OidcProvider { + id + clientId + clientSecret + redirectUris + bindings { + user { + id + email + } + group { + id + name + } + } + configuration { + issuer + authorizationEndpoint + tokenEndpoint + jwksUri + userinfoEndpoint + } +} ` func (c *Client) GetInstallations(ctx context.Context, httpRequestOptions ...client.HTTPRequestOption) (*GetInstallations, error) { @@ -1528,38 +1528,6 @@ const GetRecipeDocument = `query GetRecipe ($repo: String, $name: String) { } } } -fragment RepositoryFragment on Repository { - id - name - notes - icon - darkIcon - description - publisher { - name - } - recipes { - 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 @@ -1650,6 +1618,38 @@ fragment RecipeSectionFragment on RecipeSection { ... RecipeConfigurationFragment } } +fragment RepositoryFragment on Repository { + id + name + notes + icon + darkIcon + description + publisher { + name + } + recipes { + 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) { @@ -1675,20 +1675,6 @@ const ListRecipesDocument = `query ListRecipes ($repo: String, $provider: Provid } } } -fragment RepositoryFragment on Repository { - id - name - notes - icon - darkIcon - description - publisher { - name - } - recipes { - name - } -} fragment RecipeItemFragment on RecipeItem { id chart { @@ -1797,6 +1783,20 @@ fragment RecipeSectionFragment on RecipeSection { ... RecipeConfigurationFragment } } +fragment RepositoryFragment on Repository { + id + name + notes + icon + darkIcon + description + publisher { + name + } + recipes { + name + } +} ` func (c *Client) ListRecipes(ctx context.Context, repo *string, provider *Provider, httpRequestOptions ...client.HTTPRequestOption) (*ListRecipes, error) { @@ -1910,46 +1910,6 @@ fragment RecipeFragment on Recipe { ... RecipeSectionFragment } } -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 RepositoryFragment on Repository { id name @@ -1992,6 +1952,27 @@ fragment TerraformFragment on Terraform { } valuesTemplate } +fragment StackFragment on Stack { + id + name + featured + description + bundles { + ... RecipeFragment + } +} +fragment RecipeSectionFragment on RecipeSection { + index + repository { + ... RepositoryFragment + } + recipeItems { + ... RecipeItemFragment + } + configuration { + ... RecipeConfigurationFragment + } +} fragment DependenciesFragment on Dependencies { dependencies { type @@ -2010,6 +1991,25 @@ 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 + } +} ` func (c *Client) GetStack(ctx context.Context, name string, provider Provider, httpRequestOptions ...client.HTTPRequestOption) (*GetStack, error) { @@ -2035,6 +2035,15 @@ const ListStacksDocument = `query ListStacks ($featured: Boolean, $cursor: Strin } } } +fragment StackFragment on Stack { + id + name + featured + description + bundles { + ... RecipeFragment + } +} fragment RecipeFragment on Recipe { id name @@ -2066,21 +2075,6 @@ fragment RecipeFragment on Recipe { ... RecipeSectionFragment } } -fragment ChartFragment on Chart { - id - name - description - latestVersion -} -fragment StackFragment on Stack { - id - name - featured - description - bundles { - ... RecipeFragment - } -} fragment RecipeSectionFragment on RecipeSection { index repository { @@ -2119,6 +2113,12 @@ fragment RecipeItemFragment on RecipeItem { ... RecipeConfigurationFragment } } +fragment ChartFragment on Chart { + id + name + description + latestVersion +} fragment TerraformFragment on Terraform { id name @@ -2596,24 +2596,6 @@ const GetTerraformInstallationsDocument = `query GetTerraformInstallations ($id: } } } -fragment DependenciesFragment on Dependencies { - dependencies { - type - name - repo - } - wait - application - providers - secrets - wirings { - terraform - helm - } - providerWirings - outputs - providerVsn -} fragment VersionFragment on Version { id readme @@ -2651,6 +2633,24 @@ fragment TerraformFragment on Terraform { } valuesTemplate } +fragment DependenciesFragment on Dependencies { + dependencies { + type + name + repo + } + wait + application + providers + secrets + wirings { + terraform + helm + } + providerWirings + outputs + providerVsn +} ` func (c *Client) GetTerraformInstallations(ctx context.Context, id string, httpRequestOptions ...client.HTTPRequestOption) (*GetTerraformInstallations, error) { @@ -2671,16 +2671,6 @@ const UploadTerraformDocument = `mutation UploadTerraform ($repoName: String!, $ ... TerraformFragment } } -fragment TerraformFragment on Terraform { - id - name - package - description - dependencies { - ... DependenciesFragment - } - valuesTemplate -} fragment DependenciesFragment on Dependencies { dependencies { type @@ -2699,6 +2689,16 @@ 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) { @@ -2915,11 +2915,6 @@ const ListKeysDocument = `query ListKeys ($emails: [String]) { } } } -fragment UserFragment on User { - id - name - email -} fragment PublicKeyFragment on PublicKey { id content @@ -2927,6 +2922,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) { diff --git a/go.mod b/go.mod index 5188414..3959354 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/pluralsh/gqlclient go 1.18 require ( - github.com/Yamashou/gqlgenc v0.0.8 + github.com/Yamashou/gqlgenc v0.11.0 github.com/schollz/progressbar/v3 v3.8.6 )