From ed44c6e1085ee4d49dc866d8e990f364f344da2f Mon Sep 17 00:00:00 2001 From: Tarrence van As Date: Mon, 30 Oct 2023 15:34:38 -0400 Subject: [PATCH] Update schema for service versions --- schema.json | 1130 ++++++++++++++++++++-- src/command/deployments/describe.graphql | 4 +- src/command/deployments/describe.rs | 8 +- 3 files changed, 1050 insertions(+), 92 deletions(-) diff --git a/schema.json b/schema.json index 45e8d58..6be9968 100644 --- a/schema.json +++ b/schema.json @@ -11584,7 +11584,7 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "environment", + "name": "branch", "type": { "kind": "SCALAR", "name": "String", @@ -11596,13 +11596,13 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "service", + "name": "serviceID", "type": { "kind": "NON_NULL", "name": null, "ofType": { - "kind": "ENUM", - "name": "DeploymentService", + "kind": "SCALAR", + "name": "ID", "ofType": null } } @@ -11623,6 +11623,22 @@ } } }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "autoUpgrade", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, { "args": [], "deprecationReason": null, @@ -11722,6 +11738,22 @@ } } }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "service", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Service", + "ofType": null + } + } + }, { "args": [ { @@ -11974,25 +12006,19 @@ "possibleTypes": [] }, { - "description": "DeploymentService is enum for the field service", + "description": null, "enumValues": [ { "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "madara" + "name": "katana" }, { "deprecationReason": null, "description": null, "isDeprecated": false, "name": "torii" - }, - { - "deprecationReason": null, - "description": null, - "isDeprecated": false, - "name": "katana" } ], "fields": [], @@ -12314,8 +12340,8 @@ }, { "defaultValue": null, - "description": "environment field predicates", - "name": "environment", + "description": "branch field predicates", + "name": "branch", "type": { "kind": "SCALAR", "name": "String", @@ -12325,7 +12351,7 @@ { "defaultValue": null, "description": null, - "name": "environmentNEQ", + "name": "branchNEQ", "type": { "kind": "SCALAR", "name": "String", @@ -12335,7 +12361,7 @@ { "defaultValue": null, "description": null, - "name": "environmentIn", + "name": "branchIn", "type": { "kind": "LIST", "name": null, @@ -12353,7 +12379,7 @@ { "defaultValue": null, "description": null, - "name": "environmentNotIn", + "name": "branchNotIn", "type": { "kind": "LIST", "name": null, @@ -12371,7 +12397,7 @@ { "defaultValue": null, "description": null, - "name": "environmentGT", + "name": "branchGT", "type": { "kind": "SCALAR", "name": "String", @@ -12381,7 +12407,7 @@ { "defaultValue": null, "description": null, - "name": "environmentGTE", + "name": "branchGTE", "type": { "kind": "SCALAR", "name": "String", @@ -12391,7 +12417,7 @@ { "defaultValue": null, "description": null, - "name": "environmentLT", + "name": "branchLT", "type": { "kind": "SCALAR", "name": "String", @@ -12401,7 +12427,7 @@ { "defaultValue": null, "description": null, - "name": "environmentLTE", + "name": "branchLTE", "type": { "kind": "SCALAR", "name": "String", @@ -12411,7 +12437,7 @@ { "defaultValue": null, "description": null, - "name": "environmentContains", + "name": "branchContains", "type": { "kind": "SCALAR", "name": "String", @@ -12421,7 +12447,7 @@ { "defaultValue": null, "description": null, - "name": "environmentHasPrefix", + "name": "branchHasPrefix", "type": { "kind": "SCALAR", "name": "String", @@ -12431,7 +12457,7 @@ { "defaultValue": null, "description": null, - "name": "environmentHasSuffix", + "name": "branchHasSuffix", "type": { "kind": "SCALAR", "name": "String", @@ -12441,7 +12467,7 @@ { "defaultValue": null, "description": null, - "name": "environmentIsNil", + "name": "branchIsNil", "type": { "kind": "SCALAR", "name": "Boolean", @@ -12451,7 +12477,7 @@ { "defaultValue": null, "description": null, - "name": "environmentNotNil", + "name": "branchNotNil", "type": { "kind": "SCALAR", "name": "Boolean", @@ -12461,7 +12487,7 @@ { "defaultValue": null, "description": null, - "name": "environmentEqualFold", + "name": "branchEqualFold", "type": { "kind": "SCALAR", "name": "String", @@ -12471,7 +12497,7 @@ { "defaultValue": null, "description": null, - "name": "environmentContainsFold", + "name": "branchContainsFold", "type": { "kind": "SCALAR", "name": "String", @@ -12480,28 +12506,28 @@ }, { "defaultValue": null, - "description": "service field predicates", - "name": "service", + "description": "service_id field predicates", + "name": "serviceID", "type": { - "kind": "ENUM", - "name": "DeploymentService", + "kind": "SCALAR", + "name": "ID", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "serviceNEQ", + "name": "serviceIDNEQ", "type": { - "kind": "ENUM", - "name": "DeploymentService", + "kind": "SCALAR", + "name": "ID", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "serviceIn", + "name": "serviceIDIn", "type": { "kind": "LIST", "name": null, @@ -12509,8 +12535,8 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "ENUM", - "name": "DeploymentService", + "kind": "SCALAR", + "name": "ID", "ofType": null } } @@ -12519,7 +12545,7 @@ { "defaultValue": null, "description": null, - "name": "serviceNotIn", + "name": "serviceIDNotIn", "type": { "kind": "LIST", "name": null, @@ -12527,13 +12553,103 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "ENUM", - "name": "DeploymentService", + "kind": "SCALAR", + "name": "ID", "ofType": null } } } }, + { + "defaultValue": null, + "description": null, + "name": "serviceIDGT", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "serviceIDGTE", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "serviceIDLT", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "serviceIDLTE", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "serviceIDContains", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "serviceIDHasPrefix", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "serviceIDHasSuffix", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "serviceIDEqualFold", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "serviceIDContainsFold", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, { "defaultValue": null, "description": "tier field predicates", @@ -12590,6 +12706,26 @@ } } }, + { + "defaultValue": null, + "description": "auto_upgrade field predicates", + "name": "autoUpgrade", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "autoUpgradeNEQ", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, { "defaultValue": null, "description": "created_at field predicates", @@ -12809,6 +12945,34 @@ } } } + }, + { + "defaultValue": null, + "description": "service edge predicates", + "name": "hasService", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "hasServiceWith", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ServiceWhereInput", + "ofType": null + } + } + } } ], "interfaces": [], @@ -17896,6 +18060,22 @@ "description": null, "enumValues": [], "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "version", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, { "args": [], "deprecationReason": null, @@ -20004,6 +20184,11 @@ "name": "Scope", "ofType": null }, + { + "kind": "OBJECT", + "name": "Service", + "ofType": null + }, { "kind": "OBJECT", "name": "StarterPack", @@ -26707,13 +26892,13 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "name", + "name": "id", "type": { "kind": "NON_NULL", "name": null, "ofType": { "kind": "SCALAR", - "name": "String", + "name": "ID", "ofType": null } } @@ -26723,7 +26908,31 @@ "deprecationReason": null, "description": null, "isDeprecated": false, - "name": "version", + "name": "versions", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "defaultVersion", "type": { "kind": "NON_NULL", "name": null, @@ -26733,88 +26942,819 @@ "ofType": null } } - } - ], - "inputFields": [], - "interfaces": [], - "kind": "OBJECT", - "name": "Service", - "possibleTypes": [] - }, - { - "description": null, - "enumValues": [], - "fields": [], - "inputFields": [ + }, { - "defaultValue": null, + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "updatedAt", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "deployments", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Deployment", + "ofType": null + } + } + } + } + ], + "inputFields": [], + "interfaces": [ + { + "kind": "INTERFACE", + "name": "Node", + "ofType": null + } + ], + "kind": "OBJECT", + "name": "Service", + "possibleTypes": [] + }, + { + "description": null, + "enumValues": [], + "fields": [], + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "katana", + "type": { + "kind": "INPUT_OBJECT", + "name": "KatanaConfigInput", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "torii", + "type": { + "kind": "INPUT_OBJECT", + "name": "ToriiConfigInput", + "ofType": null + } + } + ], + "interfaces": [], + "kind": "INPUT_OBJECT", + "name": "ServiceConfigInput", + "possibleTypes": [] + }, + { + "description": "A connection to a list of items.", + "enumValues": [], + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "A list of edges.", + "isDeprecated": false, + "name": "edges", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ServiceEdge", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Information to aid in pagination.", + "isDeprecated": false, + "name": "pageInfo", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Identifies the total count of items in the connection.", + "isDeprecated": false, + "name": "totalCount", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + ], + "inputFields": [], + "interfaces": [], + "kind": "OBJECT", + "name": "ServiceConnection", + "possibleTypes": [] + }, + { + "description": "An edge in a connection.", + "enumValues": [], + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The item at the end of the edge.", + "isDeprecated": false, + "name": "node", + "type": { + "kind": "OBJECT", + "name": "Service", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "A cursor for use in pagination.", + "isDeprecated": false, + "name": "cursor", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Cursor", + "ofType": null + } + } + } + ], + "inputFields": [], + "interfaces": [], + "kind": "OBJECT", + "name": "ServiceEdge", + "possibleTypes": [] + }, + { + "description": null, + "enumValues": [], + "fields": [], + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "type", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "DeploymentService", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "version", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "config", + "type": { + "kind": "INPUT_OBJECT", + "name": "ServiceConfigInput", + "ofType": null + } + } + ], + "interfaces": [], + "kind": "INPUT_OBJECT", + "name": "ServiceInput", + "possibleTypes": [] + }, + { + "description": "Ordering options for Service connections", + "enumValues": [], + "fields": [], + "inputFields": [ + { + "defaultValue": "ASC", + "description": "The ordering direction.", + "name": "direction", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "OrderDirection", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The field by which to order Services.", + "name": "field", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ServiceOrderField", + "ofType": null + } + } + } + ], + "interfaces": [], + "kind": "INPUT_OBJECT", + "name": "ServiceOrder", + "possibleTypes": [] + }, + { + "description": "Properties by which Service connections can be ordered.", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "CREATED_AT" + } + ], + "fields": [], + "inputFields": [], + "interfaces": [], + "kind": "ENUM", + "name": "ServiceOrderField", + "possibleTypes": [] + }, + { + "description": "ServiceWhereInput is used for filtering Service objects.\nInput was generated by ent.", + "enumValues": [], + "fields": [], + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "not", + "type": { + "kind": "INPUT_OBJECT", + "name": "ServiceWhereInput", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "and", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ServiceWhereInput", + "ofType": null + } + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "or", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ServiceWhereInput", + "ofType": null + } + } + } + }, + { + "defaultValue": null, + "description": "id field predicates", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "idNEQ", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "idIn", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "idNotIn", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "idGT", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "idGTE", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "idLT", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "idLTE", + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "default_version field predicates", + "name": "defaultVersion", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "defaultVersionNEQ", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "defaultVersionIn", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "defaultVersionNotIn", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "defaultVersionGT", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "defaultVersionGTE", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "defaultVersionLT", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "defaultVersionLTE", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "defaultVersionContains", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "defaultVersionHasPrefix", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, "description": null, - "name": "katana", + "name": "defaultVersionHasSuffix", "type": { - "kind": "INPUT_OBJECT", - "name": "KatanaConfigInput", + "kind": "SCALAR", + "name": "String", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "torii", + "name": "defaultVersionEqualFold", "type": { - "kind": "INPUT_OBJECT", - "name": "ToriiConfigInput", + "kind": "SCALAR", + "name": "String", "ofType": null } - } - ], - "interfaces": [], - "kind": "INPUT_OBJECT", - "name": "ServiceConfigInput", - "possibleTypes": [] - }, - { - "description": null, - "enumValues": [], - "fields": [], - "inputFields": [ + }, { "defaultValue": null, "description": null, - "name": "type", + "name": "defaultVersionContainsFold", "type": { - "kind": "NON_NULL", + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "created_at field predicates", + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "createdAtNEQ", + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "createdAtIn", + "type": { + "kind": "LIST", "name": null, "ofType": { - "kind": "ENUM", - "name": "DeploymentService", - "ofType": null + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } } } }, { "defaultValue": null, "description": null, - "name": "version", + "name": "createdAtNotIn", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "createdAtGT", "type": { "kind": "SCALAR", - "name": "String", + "name": "Time", "ofType": null } }, { "defaultValue": null, "description": null, - "name": "config", + "name": "createdAtGTE", "type": { - "kind": "INPUT_OBJECT", - "name": "ServiceConfigInput", + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "createdAtLT", + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "createdAtLTE", + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "updated_at field predicates", + "name": "updatedAt", + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "updatedAtNEQ", + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "updatedAtIn", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "updatedAtNotIn", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "updatedAtGT", + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "updatedAtGTE", + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "updatedAtLT", + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "updatedAtLTE", + "type": { + "kind": "SCALAR", + "name": "Time", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "deployments edge predicates", + "name": "hasDeployments", + "type": { + "kind": "SCALAR", + "name": "Boolean", "ofType": null } + }, + { + "defaultValue": null, + "description": null, + "name": "hasDeploymentsWith", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "DeploymentWhereInput", + "ofType": null + } + } + } } ], "interfaces": [], "kind": "INPUT_OBJECT", - "name": "ServiceInput", + "name": "ServiceWhereInput", "possibleTypes": [] }, { @@ -31662,6 +32602,22 @@ "description": null, "enumValues": [], "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "version", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, { "args": [], "deprecationReason": null, diff --git a/src/command/deployments/describe.graphql b/src/command/deployments/describe.graphql index 65adc78..8b7a1f7 100644 --- a/src/command/deployments/describe.graphql +++ b/src/command/deployments/describe.graphql @@ -1,14 +1,16 @@ query DescribeDeployment($project: String!, $service: DeploymentService!) { deployment(name: $project, service: $service) { project - environment + branch tier config { __typename ... on KatanaConfig { + version rpc } ... on ToriiConfig { + version graphql grpc rpc diff --git a/src/command/deployments/describe.rs b/src/command/deployments/describe.rs index 3b17a56..ef679b0 100644 --- a/src/command/deployments/describe.rs +++ b/src/command/deployments/describe.rs @@ -58,16 +58,15 @@ impl DescribeArgs { if let Some(deployment) = data.deployment { println!("Project: {}", deployment.project); println!( - "Environment: {}", - deployment - .environment - .unwrap_or_else(|| String::from("Default")) + "Branch: {}", + deployment.branch.unwrap_or_else(|| String::from("Default")) ); println!("Tier: {:?}", deployment.tier); match deployment.config { ToriiConfig(config) => { println!("\nConfiguration:"); + println!(" Version: {}", config.version); println!(" World: {}", config.world); println!(" RPC: {}", config.rpc); println!(" Start Block: {}", config.start_block); @@ -77,6 +76,7 @@ impl DescribeArgs { } KatanaConfig(config) => { println!("\nEndpoints:"); + println!(" Version: {}", config.version); println!(" RPC: {}", config.rpc); } }