diff --git a/client.go b/client.go index 26bf9c3..96a2dfd 100644 --- a/client.go +++ b/client.go @@ -169,6 +169,7 @@ type RootMutationType struct { UpsertOidcProvider *OidcProvider "json:\"upsertOidcProvider\" graphql:\"upsertOidcProvider\"" AcquireLock *ApplyLock "json:\"acquireLock\" graphql:\"acquireLock\"" ReleaseLock *ApplyLock "json:\"releaseLock\" graphql:\"releaseLock\"" + Synced *bool "json:\"synced\" graphql:\"synced\"" CreateRecipe *Recipe "json:\"createRecipe\" graphql:\"createRecipe\"" DeleteRecipe *Recipe "json:\"deleteRecipe\" graphql:\"deleteRecipe\"" CreateStack *Stack "json:\"createStack\" graphql:\"createStack\"" @@ -926,6 +927,9 @@ type Login struct { Jwt *string "json:\"jwt\" graphql:\"jwt\"" } "json:\"login\" graphql:\"login\"" } +type MarkSynced struct { + Synced *bool "json:\"synced\" graphql:\"synced\"" +} type Me struct { Me *struct { ID string "json:\"id\" graphql:\"id\"" @@ -3875,6 +3879,24 @@ func (c *Client) Login(ctx context.Context, email string, pwd string, httpReques return &res, nil } +const MarkSyncedDocument = `mutation MarkSynced ($repository: String!) { + synced(repository: $repository) +} +` + +func (c *Client) MarkSynced(ctx context.Context, repository string, httpRequestOptions ...client.HTTPRequestOption) (*MarkSynced, error) { + vars := map[string]interface{}{ + "repository": repository, + } + + var res MarkSynced + if err := c.Client.Post(ctx, "MarkSynced", MarkSyncedDocument, &res, vars, httpRequestOptions...); err != nil { + return nil, err + } + + return &res, nil +} + const MeDocument = `query Me { me { id diff --git a/graph/installations.graphql b/graph/installations.graphql index 92f6399..386f3ca 100644 --- a/graph/installations.graphql +++ b/graph/installations.graphql @@ -28,4 +28,8 @@ mutation ResetInstallations(){ mutation DeleteInstallation($id: ID!) { deleteInstallation(id: $id) { id } +} + +mutation MarkSynced($repository: String!) { + synced(repository: $repository) } \ No newline at end of file diff --git a/models_gen.go b/models_gen.go index f8ef186..be2b493 100644 --- a/models_gen.go +++ b/models_gen.go @@ -977,6 +977,8 @@ type Installation struct { PingedAt *string `json:"pingedAt"` AcmeKeyID *string `json:"acmeKeyId"` AcmeSecret *string `json:"acmeSecret"` + Locked *bool `json:"locked"` + Synced *bool `json:"synced"` License *string `json:"license"` InsertedAt *string `json:"insertedAt"` UpdatedAt *string `json:"updatedAt"` @@ -1541,9 +1543,10 @@ type PlanFeatureAttributes struct { } type PlanFeatures struct { - Vpn *bool `json:"vpn"` - UserManagement *bool `json:"userManagement"` - Audit *bool `json:"audit"` + Vpn *bool `json:"vpn"` + UserManagement *bool `json:"userManagement"` + Audit *bool `json:"audit"` + DatabaseManagement *bool `json:"databaseManagement"` } type PlanLineItemAttributes struct { diff --git a/schema/schema.graphql b/schema/schema.graphql index b7e604c..2ffda33 100644 --- a/schema/schema.graphql +++ b/schema/schema.graphql @@ -546,6 +546,7 @@ type PlanFeatures { vpn: Boolean userManagement: Boolean audit: Boolean + databaseManagement: Boolean } type PlatformSubscriptionLineItems { @@ -1801,6 +1802,8 @@ type RootMutationType { releaseLock(repository: String!, attributes: LockAttributes!): ApplyLock + synced(repository: String!): Boolean + createRecipe(repositoryName: String, repositoryId: String, attributes: RecipeAttributes!): Recipe deleteRecipe(id: ID!): Recipe @@ -2048,6 +2051,10 @@ type Installation { acmeSecret: String + locked: Boolean + + synced: Boolean + license: String insertedAt: DateTime