diff --git a/packages/cp-gql-schema/schema.gql b/packages/cp-gql-schema/schema.gql index 6d380c99..88a0cdd1 100644 --- a/packages/cp-gql-schema/schema.gql +++ b/packages/cp-gql-schema/schema.gql @@ -75,11 +75,24 @@ enum ManifestFormat { YAML } +type KeyValue { + id: ID! + name: String! + value: String! +} + +input KeyValueInput { + id: ID + name: String! + value: String! +} + type Manifest { id: ID! type: ManifestType! format: ManifestFormat! environment: String! + files: [KeyValue] raw: String! } @@ -95,12 +108,6 @@ enum ServiceStatus { UNKNOWN } -type KeyValue { - id: ID! - name: String! - value: String! -} - type ServiceConfig { id: ID! package: Package # we don't have this in current mock data @@ -201,7 +208,7 @@ type Query { datacenter(id: ID, region: String): Datacenter datacenters: [Datacenter] - config(deploymentGroupName: String!, type: ManifestType!, format: ManifestFormat!, environment: String!, raw: String!): [Service] + config(deploymentGroupName: String!, type: ManifestType!, format: ManifestFormat!, environment: String!, files: [KeyValueInput]!, raw: String!): [Service] importableDeploymentGroups: [DeploymentGroup] } @@ -209,7 +216,7 @@ type Mutation { createDeploymentGroup(name: String!): DeploymentGroup updateDeploymentGroup(id: ID!, name: String!): DeploymentGroup - provisionManifest(deploymentGroupId: ID!, type: ManifestType!, format: ManifestFormat!, environment: String!, raw: String!): Version + provisionManifest(deploymentGroupId: ID!, type: ManifestType!, format: ManifestFormat!, environment: String!, files: [KeyValueInput]!, raw: String!): Version scale(serviceId: ID!, replicas: Int!): Version stopServices(ids: [ID]!): [Service]