From 5026f1ec9b9e0b8ff95f98bf8405a812efef5cb7 Mon Sep 17 00:00:00 2001 From: Szymon Dziedzic Date: Wed, 8 May 2024 14:34:48 +0200 Subject: [PATCH] regenerate gql schema --- packages/eas-cli/graphql.schema.json | 1600 ++++------------- .../src/commands/project/onboarding.ts | 92 +- packages/eas-cli/src/graphql/generated.ts | 258 +-- .../eas-cli/src/graphql/queries/UserQuery.ts | 3 +- packages/eas-cli/src/onboarding/git.ts | 46 +- 5 files changed, 556 insertions(+), 1443 deletions(-) diff --git a/packages/eas-cli/graphql.schema.json b/packages/eas-cli/graphql.schema.json index ea4d0995d9..6622d92fe6 100644 --- a/packages/eas-cli/graphql.schema.json +++ b/packages/eas-cli/graphql.schema.json @@ -1283,128 +1283,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "buildJobs", - "description": "Build Jobs associated with this account", - "args": [ - { - "name": "limit", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "offset", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": null, - "type": { - "kind": "ENUM", - "name": "BuildJobStatus", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "BuildJob", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "buildOrBuildJobs", - "description": "Coalesced Build (EAS) or BuildJob (Classic) for all apps belonging to this account.", - "args": [ - { - "name": "createdBefore", - "description": " Offset the query ", - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "limit", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INTERFACE", - "name": "BuildOrBuildJob", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "Use activityTimelineProjectActivities with filterTypes instead" - }, { "name": "builds", "description": "(EAS Build) Builds associated with this account", @@ -4641,11 +4519,6 @@ "name": "Build", "ofType": null }, - { - "kind": "OBJECT", - "name": "BuildJob", - "ofType": null - }, { "kind": "OBJECT", "name": "Submission", @@ -4672,12 +4545,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "BUILD_JOB", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "SUBMISSION", "description": null, @@ -8331,9 +8198,21 @@ "deprecationReason": null }, { - "name": "buildJobs", - "description": null, + "name": "builds", + "description": "(EAS Build) Builds associated with this app", "args": [ + { + "name": "filter", + "description": null, + "type": { + "kind": "INPUT_OBJECT", + "name": "BuildFilter", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "limit", "description": null, @@ -8366,9 +8245,21 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "platform", + "description": "Deprecated, use filter instead", + "type": { + "kind": "ENUM", + "name": "AppPlatform", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "status", - "description": null, + "description": "Deprecated, use filter instead", "type": { "kind": "ENUM", "name": "BuildStatus", @@ -8390,7 +8281,7 @@ "name": null, "ofType": { "kind": "OBJECT", - "name": "BuildJob", + "name": "Build", "ofType": null } } @@ -8400,15 +8291,15 @@ "deprecationReason": null }, { - "name": "buildOrBuildJobs", - "description": "Coalesced Build (EAS) or BuildJob (Classic) items for this app.", + "name": "buildsPaginated", + "description": null, "args": [ { - "name": "createdBefore", - "description": " Offset the query ", + "name": "after", + "description": null, "type": { "kind": "SCALAR", - "name": "DateTime", + "name": "String", "ofType": null }, "defaultValue": null, @@ -8416,52 +8307,23 @@ "deprecationReason": null }, { - "name": "limit", + "name": "before", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } + "kind": "SCALAR", + "name": "String", + "ofType": null }, "defaultValue": null, "isDeprecated": false, "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INTERFACE", - "name": "BuildOrBuildJob", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "Use activityTimelineProjectActivities with filterTypes instead" - }, - { - "name": "builds", - "description": "(EAS Build) Builds associated with this app", - "args": [ + }, { "name": "filter", "description": null, "type": { "kind": "INPUT_OBJECT", - "name": "BuildFilter", + "name": "BuildFilterInput", "ofType": null }, "defaultValue": null, @@ -8469,43 +8331,11 @@ "deprecationReason": null }, { - "name": "limit", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "offset", + "name": "first", "description": null, "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "platform", - "description": "Deprecated, use filter instead", - "type": { - "kind": "ENUM", - "name": "AppPlatform", + "kind": "SCALAR", + "name": "Int", "ofType": null }, "defaultValue": null, @@ -8513,11 +8343,11 @@ "deprecationReason": null }, { - "name": "status", - "description": "Deprecated, use filter instead", + "name": "last", + "description": null, "type": { - "kind": "ENUM", - "name": "BuildStatus", + "kind": "SCALAR", + "name": "Int", "ofType": null }, "defaultValue": null, @@ -8525,6 +8355,22 @@ "deprecationReason": null } ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AppBuildsConnection", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "buildsReleaseChannels", + "description": "Classic update release channel names that have at least one build", + "args": [], "type": { "kind": "NON_NULL", "name": null, @@ -8535,119 +8381,18 @@ "kind": "NON_NULL", "name": null, "ofType": { - "kind": "OBJECT", - "name": "Build", + "kind": "SCALAR", + "name": "String", "ofType": null } } } }, - "isDeprecated": false, - "deprecationReason": null + "isDeprecated": true, + "deprecationReason": "Classic updates have been deprecated." }, { - "name": "buildsPaginated", - "description": null, - "args": [ - { - "name": "after", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "before", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "filter", - "description": null, - "type": { - "kind": "INPUT_OBJECT", - "name": "BuildFilterInput", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "first", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "last", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "AppBuildsConnection", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "buildsReleaseChannels", - "description": "Classic update release channel names that have at least one build", - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - } - } - }, - "isDeprecated": true, - "deprecationReason": "Classic updates have been deprecated." - }, - { - "name": "channelsPaginated", + "name": "channelsPaginated", "description": null, "args": [ { @@ -12421,6 +12166,55 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "updateAppStoreConnectApiKey", + "description": "Update an App Store Connect Api Key for an Apple Team", + "args": [ + { + "name": "appStoreConnectApiKeyUpdateInput", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AppStoreConnectApiKeyUpdateInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AppStoreConnectApiKey", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -12428,6 +12222,29 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "INPUT_OBJECT", + "name": "AppStoreConnectApiKeyUpdateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "appleTeamId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "AppStoreConnectUserRole", @@ -15249,6 +15066,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "appleTeamType", + "description": null, + "args": [], + "type": { + "kind": "ENUM", + "name": "AppleTeamType", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "id", "description": null, @@ -15327,6 +15156,18 @@ "defaultValue": null, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "appleTeamType", + "description": null, + "type": { + "kind": "ENUM", + "name": "AppleTeamType", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null } ], "interfaces": null, @@ -15386,6 +15227,55 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "updateAppleTeam", + "description": "Update an Apple Team", + "args": [ + { + "name": "appleTeamUpdateInput", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AppleTeamUpdateInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AppleTeam", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -15449,6 +15339,70 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "ENUM", + "name": "AppleTeamType", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "COMPANY_OR_ORGANIZATION", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "INDIVIDUAL", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "IN_HOUSE", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "INPUT_OBJECT", + "name": "AppleTeamUpdateInput", + "description": null, + "fields": null, + "inputFields": [ + { + "name": "appleTeamName", + "description": null, + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "appleTeamType", + "description": null, + "type": { + "kind": "ENUM", + "name": "AppleTeamType", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "interfaces": null, + "enumValues": null, + "possibleTypes": null + }, { "kind": "ENUM", "name": "AppsFilter", @@ -17853,45 +17807,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "BuildArtifact", - "description": null, - "fields": [ - { - "name": "manifestPlistUrl", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", "name": "BuildArtifacts", @@ -18397,486 +18312,6 @@ ], "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "BuildJob", - "description": "Represents an Standalone App build job", - "fields": [ - { - "name": "accountUserActor", - "description": null, - "args": [], - "type": { - "kind": "INTERFACE", - "name": "UserActor", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "activityTimestamp", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "actor", - "description": null, - "args": [], - "type": { - "kind": "INTERFACE", - "name": "Actor", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "app", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "App", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "artifacts", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "BuildArtifact", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "config", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "JSON", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "created", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "expirationDate", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "fullExperienceName", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "id", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "logs", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "BuildLogs", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "platform", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "ENUM", - "name": "AppPlatform", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "release", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "AppRelease", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "releaseChannel", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sdkVersion", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": null, - "args": [], - "type": { - "kind": "ENUM", - "name": "BuildJobStatus", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "updated", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "DateTime", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "user", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "User", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [ - { - "kind": "INTERFACE", - "name": "ActivityTimelineProjectActivity", - "ofType": null - }, - { - "kind": "INTERFACE", - "name": "BuildOrBuildJob", - "ofType": null - } - ], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "BuildJobLogsFormat", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "JSON", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "RAW", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "BuildJobMutation", - "description": null, - "fields": [ - { - "name": "del", - "description": null, - "args": [], - "type": { - "kind": "OBJECT", - "name": "BuildJob", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "BuildJobQuery", - "description": null, - "fields": [ - { - "name": "all", - "description": "get all build jobs by an optional filter", - "args": [ - { - "name": "experienceSlug", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "limit", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "offset", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "showAdminView", - "description": "allows admins to see every entry by any user, but it scopes it to the user's own entries by default", - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": "false", - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "status", - "description": null, - "type": { - "kind": "ENUM", - "name": "BuildJobStatus", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "username", - "description": null, - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "BuildJob", - "ofType": null - } - } - }, - "isDeprecated": true, - "deprecationReason": "Prefer Account.buildJobs or App.buildJobs" - }, - { - "name": "byId", - "description": null, - "args": [ - { - "name": "buildId", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "BuildJob", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "ENUM", - "name": "BuildJobStatus", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": [ - { - "name": "ERRORED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "FINISHED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "IN_PROGRESS", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "PENDING", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "SENT_TO_QUEUE", - "description": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "STARTED", - "description": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "possibleTypes": null - }, { "kind": "OBJECT", "name": "BuildLimitThresholdExceededMetadata", @@ -18951,41 +18386,6 @@ ], "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "BuildLogs", - "description": null, - "fields": [ - { - "name": "format", - "description": null, - "args": [], - "type": { - "kind": "ENUM", - "name": "BuildJobLogsFormat", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": null, - "args": [], - "type": { - "kind": "SCALAR", - "name": "String", - "ofType": null - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "INPUT_OBJECT", "name": "BuildMetadataInput", @@ -19862,58 +19262,9 @@ "kind": "OBJECT", "name": "Build", "ofType": null - }, - { - "kind": "OBJECT", - "name": "BuildJob", - "ofType": null } ] }, - { - "kind": "OBJECT", - "name": "BuildOrBuildJobQuery", - "description": null, - "fields": [ - { - "name": "byId", - "description": "Look up EAS Build or Classic Build Job by ID", - "args": [ - { - "name": "buildOrBuildJobId", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "UNION", - "name": "EASBuildOrClassicBuildJob", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "INPUT_OBJECT", "name": "BuildParamsInput", @@ -23730,27 +23081,6 @@ ], "possibleTypes": null }, - { - "kind": "UNION", - "name": "EASBuildOrClassicBuildJob", - "description": null, - "fields": null, - "inputFields": null, - "interfaces": null, - "enumValues": null, - "possibleTypes": [ - { - "kind": "OBJECT", - "name": "Build", - "ofType": null - }, - { - "kind": "OBJECT", - "name": "BuildJob", - "ofType": null - } - ] - }, { "kind": "ENUM", "name": "EASBuildWaiverType", @@ -28611,6 +27941,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "appStoreConnectApiKeyForBuilds", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "AppStoreConnectApiKey", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "appStoreConnectApiKeyForSubmissions", "description": null, @@ -28788,6 +28130,18 @@ "description": null, "fields": null, "inputFields": [ + { + "name": "appStoreConnectApiKeyForBuildsId", + "description": null, + "type": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "appStoreConnectApiKeyForSubmissionsId", "description": null, @@ -29029,6 +28383,55 @@ }, "isDeprecated": false, "deprecationReason": null + }, + { + "name": "updateIosAppCredentials", + "description": "Update a set of credentials for an iOS app", + "args": [ + { + "name": "id", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "iosAppCredentialsInput", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "IosAppCredentialsInput", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "IosAppCredentials", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null } ], "inputFields": null, @@ -32522,26 +31925,43 @@ }, { "kind": "ENUM", - "name": "OnboardingDevelopmentEnvironment", + "name": "OnboardingDeviceType", "description": null, "fields": null, "inputFields": null, "interfaces": null, "enumValues": [ { - "name": "DEV_BUILD", + "name": "DEVICE", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "EXPO_GO", + "name": "SIMULATOR", + "description": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "possibleTypes": null + }, + { + "kind": "ENUM", + "name": "OnboardingEnvironment", + "description": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "enumValues": [ + { + "name": "DEV_BUILD", "description": null, "isDeprecated": false, "deprecationReason": null }, { - "name": "SIMULATOR", + "name": "EXPO_GO", "description": null, "isDeprecated": false, "deprecationReason": null @@ -33230,120 +32650,6 @@ "name": "ProjectQuery", "description": null, "fields": [ - { - "name": "byAccountNameAndSlug", - "description": null, - "args": [ - { - "name": "accountName", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "platform", - "description": null, - "type": { - "kind": "ENUM", - "name": "AppPlatform", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "sdkVersions", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "slug", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INTERFACE", - "name": "Project", - "ofType": null - } - }, - "isDeprecated": true, - "deprecationReason": "Snacks and apps should be queried separately" - }, - { - "name": "byPaths", - "description": null, - "args": [ - { - "name": "paths", - "description": null, - "type": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "INTERFACE", - "name": "Project", - "ofType": null - } - } - }, - "isDeprecated": true, - "deprecationReason": "No longer supported" - }, { "name": "byUsernameAndSlug", "description": null, @@ -34469,39 +33775,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "buildJob", - "description": "Mutations that modify an BuildJob", - "args": [ - { - "name": "buildId", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "BuildJobMutation", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "devDomainName", "description": "Mutations that assign or modify DevDomainNames for apps", @@ -35235,38 +34508,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "buildJobs", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "BuildJobQuery", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "buildOrBuildJob", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "BuildOrBuildJobQuery", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "buildPublicData", "description": "Top-level query object for querying BuildPublicData publicly.", @@ -43061,75 +42302,6 @@ "name": "UserActorPublicData", "description": "A human user (type User or SSOUser) that can login to the Expo website, use Expo services, and be a member of accounts.", "fields": [ - { - "name": "apps", - "description": "Apps this user has published", - "args": [ - { - "name": "includeUnpublished", - "description": null, - "type": { - "kind": "SCALAR", - "name": "Boolean", - "ofType": null - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "limit", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "offset", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "Int", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "LIST", - "name": null, - "ofType": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "App", - "ofType": null - } - } - } - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "firstName", "description": null, @@ -44304,12 +43476,24 @@ "deprecationReason": null }, { - "name": "devEnv", + "name": "deviceType", + "description": "Can be null if the user has not selected one yet.", + "args": [], + "type": { + "kind": "ENUM", + "name": "OnboardingDeviceType", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "environment", "description": "Can be null if the user has not selected one yet.", "args": [], "type": { "kind": "ENUM", - "name": "OnboardingDevelopmentEnvironment", + "name": "OnboardingEnvironment", "ofType": null }, "isDeprecated": false, @@ -44384,11 +43568,23 @@ "deprecationReason": null }, { - "name": "devEnv", + "name": "deviceType", + "description": null, + "type": { + "kind": "ENUM", + "name": "OnboardingDeviceType", + "ofType": null + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "environment", "description": null, "type": { "kind": "ENUM", - "name": "OnboardingDevelopmentEnvironment", + "name": "OnboardingEnvironment", "ofType": null }, "defaultValue": null, diff --git a/packages/eas-cli/src/commands/project/onboarding.ts b/packages/eas-cli/src/commands/project/onboarding.ts index 407df117e9..070077a53c 100644 --- a/packages/eas-cli/src/commands/project/onboarding.ts +++ b/packages/eas-cli/src/commands/project/onboarding.ts @@ -7,7 +7,7 @@ import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/creat import { validateOrSetProjectIdAsync } from '../../commandUtils/context/contextUtils/getProjectIdAsync'; import { CredentialsContextProjectInfo } from '../../credentials/context'; import { SetUpBuildCredentialsCommandAction } from '../../credentials/manager/SetUpBuildCredentialsCommandAction'; -import { AppPlatform } from '../../graphql/generated'; +import { AppPlatform, OnboardingDeviceType, OnboardingEnvironment } from '../../graphql/generated'; import { AppQuery } from '../../graphql/queries/AppQuery'; import Log from '../../log'; import { runGitCloneAsync, runGitPushAsync } from '../../onboarding/git'; @@ -53,18 +53,23 @@ export default class Onboarding extends EasCommand { if (!actor.preferences.onboarding) { throw new Error( - 'This command is a continuation of the onboarding process started on the Expo website. Start the onboarding process on the website before running this command. Visit https:/expo.dev/signup?onboarding=true to create an account and start the onboarding process.' + 'This command is a continuation of the onboarding process started on the Expo website. Start the onboarding process on the website before running this command. Visit https:/expo.new to create an account and start the onboarding process.' ); } if (!actor.preferences.onboarding.platform) { throw new Error( - 'This command is a continuation of the onboarding process started on the Expo website. It seems like you started an onboarding process, but we are missing some information needed to be filled in before running the onboarding command: selected platform for your first build. Continue the onboarding process on the Expo website.' + 'This command is a continuation of the onboarding process started on the Expo website. It seems like you started an onboarding process, but we are missing some information needed to be filled in before running the onboarding command (selected platform). Continue the onboarding process on the Expo website.' ); } - if (!actor.preferences.onboarding.devEnv) { + if (!actor.preferences.onboarding.environment) { throw new Error( - 'This command is a continuation of the onboarding process started on the Expo website. It seems like you started an onboarding process, but we are missing some information needed to be filled in before running the onboarding command: selected dev environment for your first build. Continue the onboarding process on the Expo website.' + 'This command is a continuation of the onboarding process started on the Expo website. It seems like you started an onboarding process, but we are missing some information needed to be filled in before running the onboarding command (selected environment). Continue the onboarding process on the Expo website.' + ); + } + if (!actor.preferences.onboarding.deviceType) { + throw new Error( + 'This command is a continuation of the onboarding process started on the Expo website. It seems like you started an onboarding process, but we are missing some information needed to be filled in before running the onboarding command (selected device type). Continue the onboarding process on the Expo website.' ); } @@ -75,21 +80,23 @@ export default class Onboarding extends EasCommand { const app = await AppQuery.byIdAsync(graphqlClient, actor.preferences.onboarding.appId); - if (!app.githubRepository) { - throw new Error( - 'This command is a continuation of the onboarding process started on the Expo website. It seems like you started an onboarding process, but we are missing some information needed to be filled in before running the onboarding command. Continue the onboarding process on the Expo website.' - ); - } - - const githubUsername = app.githubRepository.metadata.githubRepoOwnerName; - const githubRepositoryName = app.githubRepository.metadata.githubRepoName; - const targetProjectDir: string = targetProjectDirInput ?? `./${githubRepositoryName}`; + const githubUsername = app.githubRepository + ? app.githubRepository.metadata.githubRepoOwnerName + : 'expo'; + const githubRepositoryName = app.githubRepository + ? app.githubRepository.metadata.githubRepoName + : 'expo-default-template'; + const initialTargetProjectDir: string = targetProjectDirInput ?? `./${githubRepositoryName}`; Log.log(`👋 Welcome to Expo, ${actor.username}!`); Log.log('🚀 We will continue your onboarding process in EAS CLI'); Log.log(); Log.log( - `🔎 Let's start by cloning your project ${githubUsername}/${githubRepositoryName} from GitHub and installing dependencies.` + `🔎 Let's start by cloning ${ + app.githubRepository + ? `your project (${githubUsername}/${githubRepositoryName})` + : `default expo template project (${githubUsername}/${githubRepositoryName})` + } from GitHub and installing dependencies.` ); Log.log(); const shouldContinue = await confirmAsync({ message: 'Do you want to continue?' }); @@ -97,38 +104,43 @@ export default class Onboarding extends EasCommand { throw new Error("Aborting, run the command again once you're ready."); } - await runGitCloneAsync({ + const { targetProjectDir } = await runGitCloneAsync({ githubUsername, githubRepositoryName, - targetProjectDir, + targetProjectDir: initialTargetProjectDir, }); + const vcsClient = new GitClient(targetProjectDir); await installDependenciesAsync({ projectDir: targetProjectDir, }); - - const vcsClient = new GitClient(targetProjectDir); - - Log.log('🔑 Now we need to set up build credentials for your project:'); - await new SetUpBuildCredentialsCommandAction( - actor, - graphqlClient, - vcsClient, - analytics, - await getPrivateExpoConfigWithProjectIdAsync({ - projectDir: targetProjectDir, - graphqlClient, + await vcsClient.trackFileAsync('package-lock.json'); + + const shouldSetupCredentials = + actor.preferences.onboarding.deviceType === OnboardingDeviceType.Device && + actor.preferences.onboarding.environment === OnboardingEnvironment.DevBuild; + if (shouldSetupCredentials) { + Log.log('🔑 Now we need to set up build credentials for your project:'); + await new SetUpBuildCredentialsCommandAction( actor, - }), - getDynamicPrivateProjectConfigGetter({ - projectDir: targetProjectDir, graphqlClient, - actor, - }), - platform, - 'development', - targetProjectDir - ).runAsync(); + vcsClient, + analytics, + await getPrivateExpoConfigWithProjectIdAsync({ + projectDir: targetProjectDir, + graphqlClient, + actor, + }), + getDynamicPrivateProjectConfigGetter({ + projectDir: targetProjectDir, + graphqlClient, + actor, + }), + platform, + 'development', + targetProjectDir + ).runAsync(); + } if (await vcsClient.hasUncommittedChangesAsync()) { Log.log( @@ -139,7 +151,9 @@ export default class Onboarding extends EasCommand { await vcsClient.showChangedFilesAsync(); await reviewAndCommitChangesAsync( vcsClient, - '[EAS onboarding] Install dependencies and set up build credentials', + `[EAS onboarding] Install dependencies${ + shouldSetupCredentials ? 'and set up build credentials' : '' + }`, { nonInteractive: false } ); Log.log('📤 Pushing changes to GitHub...'); diff --git a/packages/eas-cli/src/graphql/generated.ts b/packages/eas-cli/src/graphql/generated.ts index 534e430002..d4523ba9de 100644 --- a/packages/eas-cli/src/graphql/generated.ts +++ b/packages/eas-cli/src/graphql/generated.ts @@ -112,13 +112,6 @@ export type Account = { /** Billing information. Only visible to members with the ADMIN or OWNER role. */ billing?: Maybe; billingPeriod: BillingPeriod; - /** Build Jobs associated with this account */ - buildJobs: Array; - /** - * Coalesced Build (EAS) or BuildJob (Classic) for all apps belonging to this account. - * @deprecated Use activityTimelineProjectActivities with filterTypes instead - */ - buildOrBuildJobs: Array; /** (EAS Build) Builds associated with this account */ builds: Array; createdAt: Scalars['DateTime']['output']; @@ -334,27 +327,6 @@ export type AccountBillingPeriodArgs = { }; -/** - * An account is a container owning projects, credentials, billing and other organization - * data and settings. Actors may own and be members of accounts. - */ -export type AccountBuildJobsArgs = { - limit: Scalars['Int']['input']; - offset: Scalars['Int']['input']; - status?: InputMaybe; -}; - - -/** - * An account is a container owning projects, credentials, billing and other organization - * data and settings. Actors may own and be members of accounts. - */ -export type AccountBuildOrBuildJobsArgs = { - createdBefore?: InputMaybe; - limit: Scalars['Int']['input']; -}; - - /** * An account is a container owning projects, credentials, billing and other organization * data and settings. Actors may own and be members of accounts. @@ -779,7 +751,6 @@ export type ActivityTimelineProjectActivity = { export enum ActivityTimelineProjectActivityType { Build = 'BUILD', - BuildJob = 'BUILD_JOB', Submission = 'SUBMISSION', Update = 'UPDATE' } @@ -1240,12 +1211,6 @@ export type App = Project & { appStoreUrl?: Maybe; assetLimitPerUpdateGroup: Scalars['Int']['output']; branchesPaginated: AppBranchesConnection; - buildJobs: Array; - /** - * Coalesced Build (EAS) or BuildJob (Classic) items for this app. - * @deprecated Use activityTimelineProjectActivities with filterTypes instead - */ - buildOrBuildJobs: Array; /** (EAS Build) Builds associated with this app */ builds: Array; buildsPaginated: AppBuildsConnection; @@ -1411,21 +1376,6 @@ export type AppBranchesPaginatedArgs = { }; -/** Represents an Exponent App (or Experience in legacy terms) */ -export type AppBuildJobsArgs = { - limit: Scalars['Int']['input']; - offset: Scalars['Int']['input']; - status?: InputMaybe; -}; - - -/** Represents an Exponent App (or Experience in legacy terms) */ -export type AppBuildOrBuildJobsArgs = { - createdBefore?: InputMaybe; - limit: Scalars['Int']['input']; -}; - - /** Represents an Exponent App (or Experience in legacy terms) */ export type AppBuildsArgs = { filter?: InputMaybe; @@ -1885,6 +1835,8 @@ export type AppStoreConnectApiKeyMutation = { createAppStoreConnectApiKey: AppStoreConnectApiKey; /** Delete an App Store Connect Api Key */ deleteAppStoreConnectApiKey: DeleteAppStoreConnectApiKeyResult; + /** Update an App Store Connect Api Key for an Apple Team */ + updateAppStoreConnectApiKey: AppStoreConnectApiKey; }; @@ -1898,6 +1850,16 @@ export type AppStoreConnectApiKeyMutationDeleteAppStoreConnectApiKeyArgs = { id: Scalars['ID']['input']; }; + +export type AppStoreConnectApiKeyMutationUpdateAppStoreConnectApiKeyArgs = { + appStoreConnectApiKeyUpdateInput: AppStoreConnectApiKeyUpdateInput; + id: Scalars['ID']['input']; +}; + +export type AppStoreConnectApiKeyUpdateInput = { + appleTeamId?: InputMaybe; +}; + export enum AppStoreConnectUserRole { AccessToReports = 'ACCESS_TO_REPORTS', AccountHolder = 'ACCOUNT_HOLDER', @@ -2266,6 +2228,7 @@ export type AppleTeam = { applePushKeys: Array; appleTeamIdentifier: Scalars['String']['output']; appleTeamName?: Maybe; + appleTeamType?: Maybe; id: Scalars['ID']['output']; }; @@ -2292,12 +2255,15 @@ export type AppleTeamFilterInput = { export type AppleTeamInput = { appleTeamIdentifier: Scalars['String']['input']; appleTeamName?: InputMaybe; + appleTeamType?: InputMaybe; }; export type AppleTeamMutation = { __typename?: 'AppleTeamMutation'; /** Create an Apple Team */ createAppleTeam: AppleTeam; + /** Update an Apple Team */ + updateAppleTeam: AppleTeam; }; @@ -2306,6 +2272,12 @@ export type AppleTeamMutationCreateAppleTeamArgs = { appleTeamInput: AppleTeamInput; }; + +export type AppleTeamMutationUpdateAppleTeamArgs = { + appleTeamUpdateInput: AppleTeamUpdateInput; + id: Scalars['ID']['input']; +}; + export type AppleTeamQuery = { __typename?: 'AppleTeamQuery'; byAppleTeamIdentifier?: Maybe; @@ -2317,6 +2289,17 @@ export type AppleTeamQueryByAppleTeamIdentifierArgs = { identifier: Scalars['String']['input']; }; +export enum AppleTeamType { + CompanyOrOrganization = 'COMPANY_OR_ORGANIZATION', + Individual = 'INDIVIDUAL', + InHouse = 'IN_HOUSE' +} + +export type AppleTeamUpdateInput = { + appleTeamName?: InputMaybe; + appleTeamType?: InputMaybe; +}; + export enum AppsFilter { /** Featured Projects */ Featured = 'FEATURED', @@ -2632,12 +2615,6 @@ export type BuildAnnotationsQueryByIdArgs = { buildAnnotationId: Scalars['ID']['input']; }; -export type BuildArtifact = { - __typename?: 'BuildArtifact'; - manifestPlistUrl?: Maybe; - url: Scalars['String']['output']; -}; - export type BuildArtifacts = { __typename?: 'BuildArtifacts'; applicationArchiveUrl?: Maybe; @@ -2696,73 +2673,6 @@ export enum BuildIosEnterpriseProvisioning { Universal = 'UNIVERSAL' } -/** Represents an Standalone App build job */ -export type BuildJob = ActivityTimelineProjectActivity & BuildOrBuildJob & { - __typename?: 'BuildJob'; - accountUserActor?: Maybe; - activityTimestamp: Scalars['DateTime']['output']; - actor?: Maybe; - app?: Maybe; - artifacts?: Maybe; - config?: Maybe; - created?: Maybe; - expirationDate?: Maybe; - fullExperienceName?: Maybe; - id: Scalars['ID']['output']; - logs?: Maybe; - platform: AppPlatform; - release?: Maybe; - releaseChannel?: Maybe; - sdkVersion?: Maybe; - status?: Maybe; - updated?: Maybe; - user?: Maybe; -}; - -export enum BuildJobLogsFormat { - Json = 'JSON', - Raw = 'RAW' -} - -export type BuildJobMutation = { - __typename?: 'BuildJobMutation'; - del?: Maybe; -}; - -export type BuildJobQuery = { - __typename?: 'BuildJobQuery'; - /** - * get all build jobs by an optional filter - * @deprecated Prefer Account.buildJobs or App.buildJobs - */ - all: Array>; - byId: BuildJob; -}; - - -export type BuildJobQueryAllArgs = { - experienceSlug?: InputMaybe; - limit?: InputMaybe; - offset?: InputMaybe; - showAdminView?: InputMaybe; - status?: InputMaybe; - username?: InputMaybe; -}; - - -export type BuildJobQueryByIdArgs = { - buildId: Scalars['ID']['input']; -}; - -export enum BuildJobStatus { - Errored = 'ERRORED', - Finished = 'FINISHED', - InProgress = 'IN_PROGRESS', - Pending = 'PENDING', - SentToQueue = 'SENT_TO_QUEUE', - Started = 'STARTED' -} - export type BuildLimitThresholdExceededMetadata = { __typename?: 'BuildLimitThresholdExceededMetadata'; account: Account; @@ -2774,12 +2684,6 @@ export enum BuildLimitThresholdExceededMetadataType { Total = 'TOTAL' } -export type BuildLogs = { - __typename?: 'BuildLogs'; - format?: Maybe; - url?: Maybe; -}; - export type BuildMetadataInput = { appBuildVersion?: InputMaybe; appIdentifier?: InputMaybe; @@ -2906,17 +2810,6 @@ export type BuildOrBuildJob = { id: Scalars['ID']['output']; }; -export type BuildOrBuildJobQuery = { - __typename?: 'BuildOrBuildJobQuery'; - /** Look up EAS Build or Classic Build Job by ID */ - byId: EasBuildOrClassicBuildJob; -}; - - -export type BuildOrBuildJobQueryByIdArgs = { - buildOrBuildJobId: Scalars['ID']['input']; -}; - export type BuildParamsInput = { reactNativeVersion?: InputMaybe; resourceClass: BuildResourceClass; @@ -3496,8 +3389,6 @@ export enum EasBuildDeprecationInfoType { UserFacing = 'USER_FACING' } -export type EasBuildOrClassicBuildJob = Build | BuildJob; - export enum EasBuildWaiverType { FastFailedBuild = 'FAST_FAILED_BUILD', SystemError = 'SYSTEM_ERROR' @@ -4171,6 +4062,7 @@ export type IosAppBuildCredentialsMutationSetProvisioningProfileArgs = { export type IosAppCredentials = { __typename?: 'IosAppCredentials'; app: App; + appStoreConnectApiKeyForBuilds?: Maybe; appStoreConnectApiKeyForSubmissions?: Maybe; appleAppIdentifier: AppleAppIdentifier; appleTeam?: Maybe; @@ -4196,6 +4088,7 @@ export type IosAppCredentialsFilter = { }; export type IosAppCredentialsInput = { + appStoreConnectApiKeyForBuildsId?: InputMaybe; appStoreConnectApiKeyForSubmissionsId?: InputMaybe; appleTeamId?: InputMaybe; pushKeyId?: InputMaybe; @@ -4211,6 +4104,8 @@ export type IosAppCredentialsMutation = { setAppStoreConnectApiKeyForSubmissions: IosAppCredentials; /** Set the push key to be used in an iOS app */ setPushKey: IosAppCredentials; + /** Update a set of credentials for an iOS app */ + updateIosAppCredentials: IosAppCredentials; }; @@ -4237,6 +4132,12 @@ export type IosAppCredentialsMutationSetPushKeyArgs = { pushKeyId: Scalars['ID']['input']; }; + +export type IosAppCredentialsMutationUpdateIosAppCredentialsArgs = { + id: Scalars['ID']['input']; + iosAppCredentialsInput: IosAppCredentialsInput; +}; + /** @deprecated Use developmentClient option instead. */ export enum IosBuildType { DevelopmentClient = 'DEVELOPMENT_CLIENT', @@ -4731,12 +4632,16 @@ export enum OfferType { Subscription = 'SUBSCRIPTION' } -export enum OnboardingDevelopmentEnvironment { - DevBuild = 'DEV_BUILD', - ExpoGo = 'EXPO_GO', +export enum OnboardingDeviceType { + Device = 'DEVICE', Simulator = 'SIMULATOR' } +export enum OnboardingEnvironment { + DevBuild = 'DEV_BUILD', + ExpoGo = 'EXPO_GO' +} + export enum Order { Asc = 'ASC', Desc = 'DESC' @@ -4818,28 +4723,11 @@ export type ProjectPublicData = { export type ProjectQuery = { __typename?: 'ProjectQuery'; - /** @deprecated Snacks and apps should be queried separately */ - byAccountNameAndSlug: Project; - /** @deprecated No longer supported */ - byPaths: Array>; /** @deprecated See byAccountNameAndSlug */ byUsernameAndSlug: Project; }; -export type ProjectQueryByAccountNameAndSlugArgs = { - accountName: Scalars['String']['input']; - platform?: InputMaybe; - sdkVersions?: InputMaybe>>; - slug: Scalars['String']['input']; -}; - - -export type ProjectQueryByPathsArgs = { - paths?: InputMaybe>>; -}; - - export type ProjectQueryByUsernameAndSlugArgs = { platform?: InputMaybe; sdkVersions?: InputMaybe>>; @@ -4991,8 +4879,6 @@ export type RootMutation = { build: BuildMutation; /** Mutations that create, update, and delete Build Annotations */ buildAnnotation: BuildAnnotationMutation; - /** Mutations that modify an BuildJob */ - buildJob: BuildJobMutation; /** Mutations that assign or modify DevDomainNames for apps */ devDomainName: AppDevDomainNameMutation; /** Mutations for Discord users */ @@ -5059,11 +4945,6 @@ export type RootMutationBuildArgs = { buildId?: InputMaybe; }; - -export type RootMutationBuildJobArgs = { - buildId: Scalars['ID']['input']; -}; - export type RootQuery = { __typename?: 'RootQuery'; /** @@ -5101,8 +4982,6 @@ export type RootQuery = { backgroundJobReceipt: BackgroundJobReceiptQuery; /** Top-level query object for querying annotations. */ buildAnnotations: BuildAnnotationsQuery; - buildJobs: BuildJobQuery; - buildOrBuildJob: BuildOrBuildJobQuery; /** Top-level query object for querying BuildPublicData publicly. */ buildPublicData: BuildPublicDataQuery; builds: BuildQuery; @@ -6228,8 +6107,6 @@ export type UserActorWebsiteNotificationsPaginatedArgs = { /** A human user (type User or SSOUser) that can login to the Expo website, use Expo services, and be a member of accounts. */ export type UserActorPublicData = { __typename?: 'UserActorPublicData'; - /** Apps this user has published */ - apps: Array; firstName?: Maybe; id: Scalars['ID']['output']; lastName?: Maybe; @@ -6240,14 +6117,6 @@ export type UserActorPublicData = { }; -/** A human user (type User or SSOUser) that can login to the Expo website, use Expo services, and be a member of accounts. */ -export type UserActorPublicDataAppsArgs = { - includeUnpublished?: InputMaybe; - limit: Scalars['Int']['input']; - offset: Scalars['Int']['input']; -}; - - /** A human user (type User or SSOUser) that can login to the Expo website, use Expo services, and be a member of accounts. */ export type UserActorPublicDataSnacksArgs = { limit: Scalars['Int']['input']; @@ -6445,7 +6314,9 @@ export type UserPreferencesOnboarding = { __typename?: 'UserPreferencesOnboarding'; appId: Scalars['ID']['output']; /** Can be null if the user has not selected one yet. */ - devEnv?: Maybe; + deviceType?: Maybe; + /** Can be null if the user has not selected one yet. */ + environment?: Maybe; /** * Set by CLI when the user has completed that phase. Used by the website to determine when * the next step can be shown. @@ -6459,7 +6330,8 @@ export type UserPreferencesOnboarding = { export type UserPreferencesOnboardingInput = { appId: Scalars['ID']['input']; - devEnv?: InputMaybe; + deviceType?: InputMaybe; + environment?: InputMaybe; isCLIDone?: InputMaybe; lastUsed: Scalars['String']['input']; platform?: InputMaybe; @@ -7137,7 +7009,7 @@ export type CreateAndroidBuildMutationVariables = Exact<{ }>; -export type CreateAndroidBuildMutation = { __typename?: 'RootMutation', build: { __typename?: 'BuildMutation', createAndroidBuild: { __typename?: 'CreateBuildResult', build: { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, releaseChannel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } }, deprecationInfo?: { __typename?: 'EASBuildDeprecationInfo', type: EasBuildDeprecationInfoType, message: string } | null } } }; +export type CreateAndroidBuildMutation = { __typename?: 'RootMutation', build: { __typename?: 'BuildMutation', createAndroidBuild: { __typename?: 'CreateBuildResult', build: { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } }, deprecationInfo?: { __typename?: 'EASBuildDeprecationInfo', type: EasBuildDeprecationInfoType, message: string } | null } } }; export type CreateIosBuildMutationVariables = Exact<{ appId: Scalars['ID']['input']; @@ -7147,7 +7019,7 @@ export type CreateIosBuildMutationVariables = Exact<{ }>; -export type CreateIosBuildMutation = { __typename?: 'RootMutation', build: { __typename?: 'BuildMutation', createIosBuild: { __typename?: 'CreateBuildResult', build: { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, releaseChannel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } }, deprecationInfo?: { __typename?: 'EASBuildDeprecationInfo', type: EasBuildDeprecationInfoType, message: string } | null } } }; +export type CreateIosBuildMutation = { __typename?: 'RootMutation', build: { __typename?: 'BuildMutation', createIosBuild: { __typename?: 'CreateBuildResult', build: { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } }, deprecationInfo?: { __typename?: 'EASBuildDeprecationInfo', type: EasBuildDeprecationInfoType, message: string } | null } } }; export type UpdateBuildMetadataMutationVariables = Exact<{ buildId: Scalars['ID']['input']; @@ -7155,7 +7027,7 @@ export type UpdateBuildMetadataMutationVariables = Exact<{ }>; -export type UpdateBuildMetadataMutation = { __typename?: 'RootMutation', build: { __typename?: 'BuildMutation', updateBuildMetadata: { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, releaseChannel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } } } }; +export type UpdateBuildMetadataMutation = { __typename?: 'RootMutation', build: { __typename?: 'BuildMutation', updateBuildMetadata: { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } } } }; export type RetryIosBuildMutationVariables = Exact<{ buildId: Scalars['ID']['input']; @@ -7163,7 +7035,7 @@ export type RetryIosBuildMutationVariables = Exact<{ }>; -export type RetryIosBuildMutation = { __typename?: 'RootMutation', build: { __typename?: 'BuildMutation', retryIosBuild: { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, releaseChannel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } } } }; +export type RetryIosBuildMutation = { __typename?: 'RootMutation', build: { __typename?: 'BuildMutation', retryIosBuild: { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } } } }; export type CreateEnvironmentSecretForAccountMutationVariables = Exact<{ input: CreateEnvironmentSecretInput; @@ -7331,14 +7203,14 @@ export type BuildsByIdQueryVariables = Exact<{ }>; -export type BuildsByIdQuery = { __typename?: 'RootQuery', builds: { __typename?: 'BuildQuery', byId: { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, releaseChannel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } } } }; +export type BuildsByIdQuery = { __typename?: 'RootQuery', builds: { __typename?: 'BuildQuery', byId: { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } } } }; export type BuildsWithSubmissionsByIdQueryVariables = Exact<{ buildId: Scalars['ID']['input']; }>; -export type BuildsWithSubmissionsByIdQuery = { __typename?: 'RootQuery', builds: { __typename?: 'BuildQuery', byId: { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, releaseChannel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, submissions: Array<{ __typename?: 'Submission', id: string, status: SubmissionStatus, platform: AppPlatform, logsUrl?: string | null, app: { __typename?: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } }, androidConfig?: { __typename?: 'AndroidSubmissionConfig', applicationIdentifier?: string | null, track: SubmissionAndroidTrack, releaseStatus?: SubmissionAndroidReleaseStatus | null, rollout?: number | null } | null, iosConfig?: { __typename?: 'IosSubmissionConfig', ascAppIdentifier: string, appleIdUsername?: string | null } | null, error?: { __typename?: 'SubmissionError', errorCode?: string | null, message?: string | null } | null }>, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } } } }; +export type BuildsWithSubmissionsByIdQuery = { __typename?: 'RootQuery', builds: { __typename?: 'BuildQuery', byId: { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, submissions: Array<{ __typename?: 'Submission', id: string, status: SubmissionStatus, platform: AppPlatform, logsUrl?: string | null, app: { __typename?: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } }, androidConfig?: { __typename?: 'AndroidSubmissionConfig', applicationIdentifier?: string | null, track: SubmissionAndroidTrack, releaseStatus?: SubmissionAndroidReleaseStatus | null, rollout?: number | null } | null, iosConfig?: { __typename?: 'IosSubmissionConfig', ascAppIdentifier: string, appleIdUsername?: string | null } | null, error?: { __typename?: 'SubmissionError', errorCode?: string | null, message?: string | null } | null }>, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } } } }; export type ViewBuildsOnAppQueryVariables = Exact<{ appId: Scalars['String']['input']; @@ -7348,7 +7220,7 @@ export type ViewBuildsOnAppQueryVariables = Exact<{ }>; -export type ViewBuildsOnAppQuery = { __typename?: 'RootQuery', app: { __typename?: 'AppQuery', byId: { __typename?: 'App', id: string, builds: Array<{ __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, releaseChannel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } }> } } }; +export type ViewBuildsOnAppQuery = { __typename?: 'RootQuery', app: { __typename?: 'AppQuery', byId: { __typename?: 'App', id: string, builds: Array<{ __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } }> } } }; export type ViewUpdateChannelOnAppQueryVariables = Exact<{ appId: Scalars['String']['input']; @@ -7469,7 +7341,7 @@ export type ViewUpdateGroupsOnAppQuery = { __typename?: 'RootQuery', app: { __ty export type CurrentUserQueryVariables = Exact<{ [key: string]: never; }>; -export type CurrentUserQuery = { __typename?: 'RootQuery', meActor?: { __typename: 'Robot', firstName?: string | null, id: string, featureGates: any, isExpoAdmin: boolean, accounts: Array<{ __typename?: 'Account', id: string, name: string, ownerUserActor?: { __typename?: 'SSOUser', id: string, username: string } | { __typename?: 'User', id: string, username: string } | null, users: Array<{ __typename?: 'UserPermission', role: Role, actor: { __typename?: 'Robot', id: string } | { __typename?: 'SSOUser', id: string } | { __typename?: 'User', id: string } }> }> } | { __typename: 'SSOUser', username: string, id: string, featureGates: any, isExpoAdmin: boolean, primaryAccount: { __typename?: 'Account', id: string, name: string, ownerUserActor?: { __typename?: 'SSOUser', id: string, username: string } | { __typename?: 'User', id: string, username: string } | null, users: Array<{ __typename?: 'UserPermission', role: Role, actor: { __typename?: 'Robot', id: string } | { __typename?: 'SSOUser', id: string } | { __typename?: 'User', id: string } }> }, preferences: { __typename?: 'UserPreferences', onboarding?: { __typename?: 'UserPreferencesOnboarding', appId: string, platform?: AppPlatform | null, devEnv?: OnboardingDevelopmentEnvironment | null, isCLIDone?: boolean | null } | null }, accounts: Array<{ __typename?: 'Account', id: string, name: string, ownerUserActor?: { __typename?: 'SSOUser', id: string, username: string } | { __typename?: 'User', id: string, username: string } | null, users: Array<{ __typename?: 'UserPermission', role: Role, actor: { __typename?: 'Robot', id: string } | { __typename?: 'SSOUser', id: string } | { __typename?: 'User', id: string } }> }> } | { __typename: 'User', username: string, id: string, featureGates: any, isExpoAdmin: boolean, primaryAccount: { __typename?: 'Account', id: string, name: string, ownerUserActor?: { __typename?: 'SSOUser', id: string, username: string } | { __typename?: 'User', id: string, username: string } | null, users: Array<{ __typename?: 'UserPermission', role: Role, actor: { __typename?: 'Robot', id: string } | { __typename?: 'SSOUser', id: string } | { __typename?: 'User', id: string } }> }, preferences: { __typename?: 'UserPreferences', onboarding?: { __typename?: 'UserPreferencesOnboarding', appId: string, platform?: AppPlatform | null, devEnv?: OnboardingDevelopmentEnvironment | null, isCLIDone?: boolean | null } | null }, accounts: Array<{ __typename?: 'Account', id: string, name: string, ownerUserActor?: { __typename?: 'SSOUser', id: string, username: string } | { __typename?: 'User', id: string, username: string } | null, users: Array<{ __typename?: 'UserPermission', role: Role, actor: { __typename?: 'Robot', id: string } | { __typename?: 'SSOUser', id: string } | { __typename?: 'User', id: string } }> }> } | null }; +export type CurrentUserQuery = { __typename?: 'RootQuery', meActor?: { __typename: 'Robot', firstName?: string | null, id: string, featureGates: any, isExpoAdmin: boolean, accounts: Array<{ __typename?: 'Account', id: string, name: string, ownerUserActor?: { __typename?: 'SSOUser', id: string, username: string } | { __typename?: 'User', id: string, username: string } | null, users: Array<{ __typename?: 'UserPermission', role: Role, actor: { __typename?: 'Robot', id: string } | { __typename?: 'SSOUser', id: string } | { __typename?: 'User', id: string } }> }> } | { __typename: 'SSOUser', username: string, id: string, featureGates: any, isExpoAdmin: boolean, primaryAccount: { __typename?: 'Account', id: string, name: string, ownerUserActor?: { __typename?: 'SSOUser', id: string, username: string } | { __typename?: 'User', id: string, username: string } | null, users: Array<{ __typename?: 'UserPermission', role: Role, actor: { __typename?: 'Robot', id: string } | { __typename?: 'SSOUser', id: string } | { __typename?: 'User', id: string } }> }, preferences: { __typename?: 'UserPreferences', onboarding?: { __typename?: 'UserPreferencesOnboarding', appId: string, platform?: AppPlatform | null, deviceType?: OnboardingDeviceType | null, environment?: OnboardingEnvironment | null, isCLIDone?: boolean | null } | null }, accounts: Array<{ __typename?: 'Account', id: string, name: string, ownerUserActor?: { __typename?: 'SSOUser', id: string, username: string } | { __typename?: 'User', id: string, username: string } | null, users: Array<{ __typename?: 'UserPermission', role: Role, actor: { __typename?: 'Robot', id: string } | { __typename?: 'SSOUser', id: string } | { __typename?: 'User', id: string } }> }> } | { __typename: 'User', username: string, id: string, featureGates: any, isExpoAdmin: boolean, primaryAccount: { __typename?: 'Account', id: string, name: string, ownerUserActor?: { __typename?: 'SSOUser', id: string, username: string } | { __typename?: 'User', id: string, username: string } | null, users: Array<{ __typename?: 'UserPermission', role: Role, actor: { __typename?: 'Robot', id: string } | { __typename?: 'SSOUser', id: string } | { __typename?: 'User', id: string } }> }, preferences: { __typename?: 'UserPreferences', onboarding?: { __typename?: 'UserPreferencesOnboarding', appId: string, platform?: AppPlatform | null, deviceType?: OnboardingDeviceType | null, environment?: OnboardingEnvironment | null, isCLIDone?: boolean | null } | null }, accounts: Array<{ __typename?: 'Account', id: string, name: string, ownerUserActor?: { __typename?: 'SSOUser', id: string, username: string } | { __typename?: 'User', id: string, username: string } | null, users: Array<{ __typename?: 'UserPermission', role: Role, actor: { __typename?: 'Robot', id: string } | { __typename?: 'SSOUser', id: string } | { __typename?: 'User', id: string } }> }> } | null }; export type WebhooksByAppIdQueryVariables = Exact<{ appId: Scalars['String']['input']; @@ -7490,9 +7362,9 @@ export type AccountFragment = { __typename?: 'Account', id: string, name: string export type AppFragment = { __typename?: 'App', id: string, fullName: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string, ownerUserActor?: { __typename?: 'SSOUser', id: string, username: string } | { __typename?: 'User', id: string, username: string } | null, users: Array<{ __typename?: 'UserPermission', role: Role, actor: { __typename?: 'Robot', id: string } | { __typename?: 'SSOUser', id: string } | { __typename?: 'User', id: string } }> }, githubRepository?: { __typename?: 'GitHubRepository', id: string, metadata: { __typename?: 'GitHubRepositoryMetadata', githubRepoOwnerName: string, githubRepoName: string } } | null }; -export type BuildFragment = { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, releaseChannel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } }; +export type BuildFragment = { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } }; -export type BuildWithSubmissionsFragment = { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, releaseChannel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, submissions: Array<{ __typename?: 'Submission', id: string, status: SubmissionStatus, platform: AppPlatform, logsUrl?: string | null, app: { __typename?: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } }, androidConfig?: { __typename?: 'AndroidSubmissionConfig', applicationIdentifier?: string | null, track: SubmissionAndroidTrack, releaseStatus?: SubmissionAndroidReleaseStatus | null, rollout?: number | null } | null, iosConfig?: { __typename?: 'IosSubmissionConfig', ascAppIdentifier: string, appleIdUsername?: string | null } | null, error?: { __typename?: 'SubmissionError', errorCode?: string | null, message?: string | null } | null }>, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } }; +export type BuildWithSubmissionsFragment = { __typename?: 'Build', id: string, status: BuildStatus, platform: AppPlatform, channel?: string | null, distribution?: DistributionType | null, iosEnterpriseProvisioning?: BuildIosEnterpriseProvisioning | null, buildProfile?: string | null, sdkVersion?: string | null, appVersion?: string | null, appBuildVersion?: string | null, runtimeVersion?: string | null, gitCommitHash?: string | null, gitCommitMessage?: string | null, initialQueuePosition?: number | null, queuePosition?: number | null, estimatedWaitTimeLeftSeconds?: number | null, priority: BuildPriority, createdAt: any, updatedAt: any, message?: string | null, completedAt?: any | null, expirationDate?: any | null, isForIosSimulator: boolean, submissions: Array<{ __typename?: 'Submission', id: string, status: SubmissionStatus, platform: AppPlatform, logsUrl?: string | null, app: { __typename?: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } }, androidConfig?: { __typename?: 'AndroidSubmissionConfig', applicationIdentifier?: string | null, track: SubmissionAndroidTrack, releaseStatus?: SubmissionAndroidReleaseStatus | null, rollout?: number | null } | null, iosConfig?: { __typename?: 'IosSubmissionConfig', ascAppIdentifier: string, appleIdUsername?: string | null } | null, error?: { __typename?: 'SubmissionError', errorCode?: string | null, message?: string | null } | null }>, error?: { __typename?: 'BuildError', errorCode: string, message: string, docsUrl?: string | null } | null, artifacts?: { __typename?: 'BuildArtifacts', buildUrl?: string | null, xcodeBuildLogsUrl?: string | null, applicationArchiveUrl?: string | null, buildArtifactsUrl?: string | null } | null, initiatingActor?: { __typename: 'Robot', id: string, displayName: string } | { __typename: 'SSOUser', id: string, displayName: string } | { __typename: 'User', id: string, displayName: string } | null, project: { __typename: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } } | { __typename: 'Snack', id: string, name: string, slug: string } }; export type EnvironmentSecretFragment = { __typename?: 'EnvironmentSecret', id: string, name: string, type: EnvironmentSecretType, createdAt: any }; diff --git a/packages/eas-cli/src/graphql/queries/UserQuery.ts b/packages/eas-cli/src/graphql/queries/UserQuery.ts index e231eff611..39880e490e 100644 --- a/packages/eas-cli/src/graphql/queries/UserQuery.ts +++ b/packages/eas-cli/src/graphql/queries/UserQuery.ts @@ -26,7 +26,8 @@ export const UserQuery = { onboarding { appId platform - devEnv + deviceType + environment isCLIDone } } diff --git a/packages/eas-cli/src/onboarding/git.ts b/packages/eas-cli/src/onboarding/git.ts index a63ca64961..768c7bbde4 100644 --- a/packages/eas-cli/src/onboarding/git.ts +++ b/packages/eas-cli/src/onboarding/git.ts @@ -1,4 +1,6 @@ import { runCommandAsync } from './runCommand'; +import Log from '../log'; +import { confirmAsync, promptAsync } from '../prompts'; export async function runGitCloneAsync({ targetProjectDir, @@ -8,19 +10,47 @@ export async function runGitCloneAsync({ githubUsername: string; githubRepositoryName: string; targetProjectDir: string; -}): Promise { +}): Promise<{ + targetProjectDir: string; +}> { const args = [ 'clone', `git@github.com:${githubUsername}/${githubRepositoryName}.git`, targetProjectDir, ]; - await runCommandAsync({ - args, - command: 'git', - shouldPrintStderrLineAsStdout: line => { - return line.includes('Cloning into'); - }, - }); + try { + await runCommandAsync({ + args, + command: 'git', + shouldPrintStderrLineAsStdout: line => { + return line.includes('Cloning into'); + }, + }); + return { targetProjectDir }; + } catch (error: any) { + if (error.stderr.includes('already exists')) { + Log.warn(`Directory ${targetProjectDir} already exists.`); + const shouldContinue = await confirmAsync({ + message: 'Do you want to clone your project to some other destination?', + }); + if (!shouldContinue) { + throw new Error('Directory already exists. Aborting...'); + } + const { newTargetProjectDir } = await promptAsync({ + type: 'text', + name: 'newTargetProjectDir', + message: 'New target directory path:', + validate: (input: string) => input !== '', + }); + return await runGitCloneAsync({ + githubRepositoryName, + githubUsername, + targetProjectDir: newTargetProjectDir, + }); + } else { + throw error; + } + } } export async function runGitPushAsync({