|
|
@@ -52,6 +52,8 @@ type Project struct {
|
|
|
OAuthIntegrations []ints.OAuthIntegration `json:"oauth_integrations"`
|
|
|
AWSIntegrations []ints.AWSIntegration `json:"aws_integrations"`
|
|
|
GCPIntegrations []ints.GCPIntegration `json:"gcp_integrations"`
|
|
|
+
|
|
|
+ PreviewEnvsEnabled bool
|
|
|
}
|
|
|
|
|
|
// ToProjectType generates an external types.Project to be shared over REST
|
|
|
@@ -63,8 +65,9 @@ func (p *Project) ToProjectType() *types.Project {
|
|
|
}
|
|
|
|
|
|
return &types.Project{
|
|
|
- ID: p.ID,
|
|
|
- Name: p.Name,
|
|
|
- Roles: roles,
|
|
|
+ ID: p.ID,
|
|
|
+ Name: p.Name,
|
|
|
+ Roles: roles,
|
|
|
+ PreviewEnvsEnabled: p.PreviewEnvsEnabled,
|
|
|
}
|
|
|
}
|