eas-cli 6.0.0 → 6.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/README.md +81 -59
  2. package/build/analytics/AnalyticsManager.js +4 -4
  3. package/build/branch/queries.js +4 -4
  4. package/build/build/android/build.js +8 -9
  5. package/build/build/android/syncProjectConfiguration.d.ts +1 -3
  6. package/build/build/android/syncProjectConfiguration.js +3 -3
  7. package/build/build/android/version.js +3 -3
  8. package/build/build/build.d.ts +1 -1
  9. package/build/build/build.js +6 -6
  10. package/build/build/configure.js +3 -33
  11. package/build/build/context.d.ts +1 -1
  12. package/build/build/createContext.d.ts +2 -2
  13. package/build/build/createContext.js +3 -3
  14. package/build/build/ios/build.js +9 -10
  15. package/build/build/ios/syncProjectConfiguration.d.ts +1 -3
  16. package/build/build/ios/syncProjectConfiguration.js +3 -3
  17. package/build/build/ios/version.js +3 -3
  18. package/build/build/local.js +1 -1
  19. package/build/build/metadata.js +4 -4
  20. package/build/build/queries.js +1 -1
  21. package/build/build/runBuildAndSubmit.d.ts +1 -1
  22. package/build/build/runBuildAndSubmit.js +12 -13
  23. package/build/build/types.js +2 -2
  24. package/build/build/utils/devClient.js +1 -1
  25. package/build/build/utils/formatBuild.js +1 -1
  26. package/build/build/utils/printBuildInfo.js +1 -1
  27. package/build/build/utils/version.js +1 -1
  28. package/build/channel/print-utils.js +5 -5
  29. package/build/channel/queries.d.ts +1 -1
  30. package/build/channel/queries.js +2 -2
  31. package/build/commandUtils/EasCommand.js +4 -4
  32. package/build/commandUtils/builds.d.ts +14 -0
  33. package/build/commandUtils/builds.js +79 -0
  34. package/build/commandUtils/context/AnalyticsContextField.d.ts +1 -1
  35. package/build/commandUtils/context/DynamicProjectConfigContextField.d.ts +1 -1
  36. package/build/commandUtils/context/DynamicProjectConfigContextField.js +1 -1
  37. package/build/commandUtils/context/LoggedInContextField.d.ts +2 -2
  38. package/build/commandUtils/context/LoggedInContextField.js +2 -2
  39. package/build/commandUtils/context/MaybeLoggedInContextField.d.ts +2 -2
  40. package/build/commandUtils/context/MaybeLoggedInContextField.js +2 -2
  41. package/build/commandUtils/context/OptionalPrivateProjectConfigContextField.js +1 -1
  42. package/build/commandUtils/context/PrivateProjectConfigContextField.js +1 -1
  43. package/build/commandUtils/context/SessionManagementContextField.d.ts +1 -1
  44. package/build/commandUtils/context/VcsClientContextField.d.ts +1 -1
  45. package/build/commandUtils/context/VcsClientContextField.js +1 -1
  46. package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +2 -2
  47. package/build/commandUtils/gating/FeatureGateKey.js +1 -1
  48. package/build/commands/account/login.js +3 -3
  49. package/build/commands/account/logout.js +2 -2
  50. package/build/commands/account/view.js +4 -4
  51. package/build/commands/analytics.js +1 -1
  52. package/build/commands/branch/create.js +3 -3
  53. package/build/commands/branch/delete.js +3 -3
  54. package/build/commands/branch/list.js +3 -3
  55. package/build/commands/branch/publish.js +1 -1
  56. package/build/commands/branch/rename.js +3 -3
  57. package/build/commands/branch/view.js +3 -3
  58. package/build/commands/build/cancel.d.ts +7 -1
  59. package/build/commands/build/cancel.js +35 -56
  60. package/build/commands/build/configure.js +6 -11
  61. package/build/commands/build/delete.d.ts +24 -0
  62. package/build/commands/build/delete.js +115 -0
  63. package/build/commands/build/index.js +3 -3
  64. package/build/commands/build/inspect.js +3 -3
  65. package/build/commands/build/internal.js +3 -3
  66. package/build/commands/build/list.js +3 -3
  67. package/build/commands/build/resign.js +3 -3
  68. package/build/commands/build/run.js +3 -3
  69. package/build/commands/build/version/get.js +3 -3
  70. package/build/commands/build/version/set.js +4 -4
  71. package/build/commands/build/version/sync.js +3 -3
  72. package/build/commands/build/view.js +3 -3
  73. package/build/commands/channel/create.js +3 -3
  74. package/build/commands/channel/delete.js +3 -3
  75. package/build/commands/channel/edit.js +3 -3
  76. package/build/commands/channel/list.js +3 -3
  77. package/build/commands/channel/rollout.js +4 -5
  78. package/build/commands/channel/view.js +3 -3
  79. package/build/commands/config.js +3 -3
  80. package/build/commands/credentials.js +3 -3
  81. package/build/commands/device/create.js +2 -2
  82. package/build/commands/device/delete.js +3 -3
  83. package/build/commands/device/list.js +3 -3
  84. package/build/commands/device/rename.js +3 -3
  85. package/build/commands/device/view.js +3 -3
  86. package/build/commands/diagnostics.js +2 -2
  87. package/build/commands/metadata/lint.js +3 -3
  88. package/build/commands/metadata/pull.js +3 -3
  89. package/build/commands/metadata/push.js +3 -3
  90. package/build/commands/open.js +2 -3
  91. package/build/commands/project/info.js +2 -2
  92. package/build/commands/project/init.js +12 -12
  93. package/build/commands/secret/create.js +3 -3
  94. package/build/commands/secret/delete.js +3 -3
  95. package/build/commands/secret/list.js +2 -2
  96. package/build/commands/secret/push.js +3 -3
  97. package/build/commands/submit.js +3 -3
  98. package/build/commands/update/configure.js +4 -4
  99. package/build/commands/update/delete.js +3 -3
  100. package/build/commands/update/index.js +4 -4
  101. package/build/commands/update/list.js +3 -3
  102. package/build/commands/update/republish.js +3 -3
  103. package/build/commands/update/roll-back-to-embedded.js +4 -4
  104. package/build/commands/update/rollback.js +3 -3
  105. package/build/commands/update/view.js +3 -3
  106. package/build/commands/webhook/create.js +3 -3
  107. package/build/commands/webhook/delete.js +3 -3
  108. package/build/commands/webhook/list.js +3 -3
  109. package/build/commands/webhook/update.js +3 -3
  110. package/build/commands/webhook/view.js +3 -3
  111. package/build/credentials/android/AndroidCredentialsProvider.d.ts +1 -1
  112. package/build/credentials/android/AndroidCredentialsProvider.js +1 -1
  113. package/build/credentials/android/actions/RemoveKeystore.js +1 -1
  114. package/build/credentials/android/actions/SetUpBuildCredentials.js +2 -2
  115. package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.js +1 -1
  116. package/build/credentials/android/actions/SetUpGoogleServiceAccountKey.js +3 -3
  117. package/build/credentials/android/api/GraphqlClient.js +2 -2
  118. package/build/credentials/context.d.ts +3 -3
  119. package/build/credentials/context.js +3 -3
  120. package/build/credentials/credentialsJson/read.d.ts +1 -1
  121. package/build/credentials/credentialsJson/update.js +2 -2
  122. package/build/credentials/credentialsJson/utils.d.ts +1 -1
  123. package/build/credentials/ios/IosCredentialsProvider.d.ts +1 -1
  124. package/build/credentials/ios/IosCredentialsProvider.js +4 -4
  125. package/build/credentials/ios/actions/AscApiKeyUtils.js +2 -2
  126. package/build/credentials/ios/actions/AssignAscApiKey.d.ts +1 -1
  127. package/build/credentials/ios/actions/AssignAscApiKey.js +1 -1
  128. package/build/credentials/ios/actions/AssignPushKey.js +1 -1
  129. package/build/credentials/ios/actions/BuildCredentialsUtils.js +1 -1
  130. package/build/credentials/ios/actions/CreateAscApiKey.d.ts +1 -1
  131. package/build/credentials/ios/actions/CreateAscApiKey.js +1 -1
  132. package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -1
  133. package/build/credentials/ios/actions/CreateProvisioningProfile.js +2 -2
  134. package/build/credentials/ios/actions/CreatePushKey.js +1 -1
  135. package/build/credentials/ios/actions/DeviceUtils.js +1 -1
  136. package/build/credentials/ios/actions/DistributionCertificateUtils.js +1 -1
  137. package/build/credentials/ios/actions/PushKeyUtils.js +1 -1
  138. package/build/credentials/ios/actions/RemoveAscApiKey.js +1 -1
  139. package/build/credentials/ios/actions/RemoveDistributionCertificate.js +2 -2
  140. package/build/credentials/ios/actions/RemovePushKey.js +1 -1
  141. package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +18 -4
  142. package/build/credentials/ios/actions/SetUpAscApiKey.d.ts +1 -1
  143. package/build/credentials/ios/actions/SetUpAscApiKey.js +4 -4
  144. package/build/credentials/ios/actions/SetUpBuildCredentials.js +1 -1
  145. package/build/credentials/ios/actions/SetUpBuildCredentialsFromCredentialsJson.js +1 -1
  146. package/build/credentials/ios/actions/SetUpDistributionCertificate.js +3 -3
  147. package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.js +3 -3
  148. package/build/credentials/ios/actions/SetUpProvisioningProfile.js +4 -4
  149. package/build/credentials/ios/actions/SetUpPushKey.js +2 -2
  150. package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +2 -2
  151. package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.js +1 -1
  152. package/build/credentials/ios/api/GraphqlClient.d.ts +4 -4
  153. package/build/credentials/ios/api/GraphqlClient.js +4 -4
  154. package/build/credentials/ios/appstore/AppStoreApi.d.ts +2 -1
  155. package/build/credentials/ios/appstore/AppStoreApi.js +1 -1
  156. package/build/credentials/ios/appstore/CredentialsUtils.d.ts +1 -1
  157. package/build/credentials/ios/appstore/ascApiKey.d.ts +1 -1
  158. package/build/credentials/ios/appstore/ascApiKey.js +1 -1
  159. package/build/credentials/ios/appstore/authenticate.d.ts +1 -1
  160. package/build/credentials/ios/appstore/authenticate.js +2 -2
  161. package/build/credentials/ios/appstore/authenticateTypes.js +2 -2
  162. package/build/credentials/ios/appstore/capabilityIdentifiers.js +1 -1
  163. package/build/credentials/ios/appstore/distributionCertificate.js +1 -1
  164. package/build/credentials/ios/appstore/ensureAppExists.js +2 -2
  165. package/build/credentials/ios/appstore/provisioningProfile.js +4 -4
  166. package/build/credentials/ios/appstore/provisioningProfileAdhoc.js +2 -2
  167. package/build/credentials/ios/appstore/pushKey.js +1 -1
  168. package/build/credentials/ios/appstore/resolveCredentials.d.ts +1 -1
  169. package/build/credentials/ios/appstore/resolveCredentials.js +2 -2
  170. package/build/credentials/ios/credentials.d.ts +1 -1
  171. package/build/credentials/ios/credentials.js +1 -1
  172. package/build/credentials/manager/Actions.js +3 -3
  173. package/build/credentials/manager/IosActions.d.ts +1 -1
  174. package/build/credentials/manager/ManageAndroid.js +7 -7
  175. package/build/credentials/manager/ManageIos.js +5 -5
  176. package/build/credentials/manager/SelectAndroidBuildCredentials.js +2 -2
  177. package/build/credentials/manager/SelectPlatform.js +1 -1
  178. package/build/devices/actions/create/action.js +3 -3
  179. package/build/devices/actions/create/currentMachineMethod.js +1 -1
  180. package/build/devices/actions/create/inputMethod.js +1 -1
  181. package/build/devices/manager.d.ts +1 -1
  182. package/build/devices/manager.js +1 -1
  183. package/build/devices/queries.d.ts +1 -1
  184. package/build/devices/queries.js +1 -1
  185. package/build/eas-update/utils.d.ts +1 -0
  186. package/build/graphql/generated.d.ts +1592 -1534
  187. package/build/graphql/generated.js +75 -70
  188. package/build/graphql/queries/EnvironmentSecretsQuery.js +1 -1
  189. package/build/graphql/types/EnvironmentSecret.js +1 -1
  190. package/build/graphql/types/credentials/AndroidAppCredentials.js +1 -1
  191. package/build/graphql/types/credentials/AppleDistributionCertificate.js +1 -1
  192. package/build/graphql/types/credentials/ApplePushKey.js +1 -1
  193. package/build/graphql/types/credentials/IosAppCredentials.js +1 -1
  194. package/build/log.js +1 -1
  195. package/build/metadata/apple/tasks/index.d.ts +1 -1
  196. package/build/metadata/config/issue.js +1 -1
  197. package/build/metadata/config/resolve.d.ts +1 -1
  198. package/build/metadata/config/resolve.js +2 -3
  199. package/build/metadata/config/validate.js +1 -1
  200. package/build/metadata/download.js +3 -3
  201. package/build/metadata/upload.js +3 -3
  202. package/build/metadata/utils/ajv.js +2 -2
  203. package/build/platform.js +1 -1
  204. package/build/project/android/applicationId.d.ts +1 -1
  205. package/build/project/android/applicationId.js +1 -1
  206. package/build/project/android/gradle.js +1 -1
  207. package/build/project/android/versions.d.ts +1 -1
  208. package/build/project/ios/target.d.ts +1 -1
  209. package/build/project/ios/target.js +2 -2
  210. package/build/project/publish.js +4 -4
  211. package/build/rollout/actions/CreateRollout.js +2 -4
  212. package/build/rollout/actions/EndRollout.js +1 -1
  213. package/build/rollout/actions/ManageRollout.d.ts +2 -2
  214. package/build/rollout/actions/ManageRollout.js +3 -3
  215. package/build/rollout/actions/NonInteractiveRollout.d.ts +3 -3
  216. package/build/rollout/actions/NonInteractiveRollout.js +5 -5
  217. package/build/rollout/actions/RolloutMainMenu.d.ts +2 -2
  218. package/build/rollout/actions/RolloutMainMenu.js +4 -4
  219. package/build/rollout/utils.d.ts +1 -1
  220. package/build/rollout/utils.js +1 -1
  221. package/build/run/android/aapt.js +1 -1
  222. package/build/run/android/adb.js +1 -1
  223. package/build/run/android/emulator.js +2 -2
  224. package/build/run/ios/simulator.js +1 -1
  225. package/build/run/ios/systemRequirements.js +2 -2
  226. package/build/run/run.js +1 -1
  227. package/build/submit/ArchiveSource.js +3 -3
  228. package/build/submit/BaseSubmitter.d.ts +2 -2
  229. package/build/submit/BaseSubmitter.js +1 -1
  230. package/build/submit/android/AndroidSubmitCommand.js +2 -2
  231. package/build/submit/android/AndroidSubmitter.d.ts +1 -1
  232. package/build/submit/android/AndroidSubmitter.js +1 -1
  233. package/build/submit/android/ServiceAccountSource.js +1 -1
  234. package/build/submit/commons.js +1 -1
  235. package/build/submit/ios/AppProduce.js +1 -1
  236. package/build/submit/ios/AppSpecificPasswordSource.js +1 -1
  237. package/build/submit/ios/AscApiKeySource.js +1 -1
  238. package/build/submit/ios/IosSubmitCommand.js +4 -4
  239. package/build/submit/ios/IosSubmitter.d.ts +2 -2
  240. package/build/submit/ios/IosSubmitter.js +2 -2
  241. package/build/submit/submit.d.ts +1 -1
  242. package/build/submit/submit.js +4 -4
  243. package/build/submit/utils/logs.js +1 -1
  244. package/build/update/android/UpdatesModule.d.ts +1 -2
  245. package/build/update/android/UpdatesModule.js +3 -5
  246. package/build/update/configure.d.ts +1 -6
  247. package/build/update/configure.js +8 -46
  248. package/build/update/ios/UpdatesModule.d.ts +1 -2
  249. package/build/update/ios/UpdatesModule.js +2 -4
  250. package/build/update/queries.js +1 -1
  251. package/build/user/SessionManager.js +3 -3
  252. package/build/user/actions.d.ts +1 -1
  253. package/build/user/fetchSessionSecretAndSsoUser.js +1 -1
  254. package/build/user/fetchSessionSecretAndUser.js +1 -1
  255. package/build/utils/download.js +3 -3
  256. package/build/utils/expoCli.js +1 -1
  257. package/build/utils/progress.js +1 -1
  258. package/build/utils/queries.js +1 -1
  259. package/build/utils/relay.js +2 -2
  260. package/build/vcs/clients/gitNoCommit.js +1 -1
  261. package/oclif.manifest.json +70 -1
  262. package/package.json +39 -37
@@ -4,9 +4,6 @@ const tslib_1 = require("tslib");
4
4
  const core_1 = require("@oclif/core");
5
5
  const core_2 = require("@urql/core");
6
6
  const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
7
- const AnalyticsManager_1 = require("../analytics/AnalyticsManager");
8
- const log_1 = tslib_1.__importDefault(require("../log"));
9
- const SessionManager_1 = tslib_1.__importDefault(require("../user/SessionManager"));
10
7
  const AnalyticsContextField_1 = tslib_1.__importDefault(require("./context/AnalyticsContextField"));
11
8
  const DynamicProjectConfigContextField_1 = require("./context/DynamicProjectConfigContextField");
12
9
  const LoggedInContextField_1 = tslib_1.__importDefault(require("./context/LoggedInContextField"));
@@ -17,6 +14,9 @@ const ProjectDirContextField_1 = tslib_1.__importDefault(require("./context/Proj
17
14
  const SessionManagementContextField_1 = tslib_1.__importDefault(require("./context/SessionManagementContextField"));
18
15
  const VcsClientContextField_1 = tslib_1.__importDefault(require("./context/VcsClientContextField"));
19
16
  const errors_1 = require("./errors");
17
+ const AnalyticsManager_1 = require("../analytics/AnalyticsManager");
18
+ const log_1 = tslib_1.__importDefault(require("../log"));
19
+ const SessionManager_1 = tslib_1.__importDefault(require("../user/SessionManager"));
20
20
  const BASE_GRAPHQL_ERROR_MESSAGE = 'GraphQL request failed.';
21
21
  class EasCommand extends core_1.Command {
22
22
  /**
@@ -93,7 +93,6 @@ class EasCommand extends core_1.Command {
93
93
  throw sanitizedError;
94
94
  }
95
95
  }
96
- exports.default = EasCommand;
97
96
  EasCommand.ContextOptions = {
98
97
  /**
99
98
  * Require this command to be run when logged-in. Returns the logged-in actor and a logged-in
@@ -166,3 +165,4 @@ EasCommand.ContextOptions = {
166
165
  * it requires the `ProjectConfig` context, and then call `getContextAsync` to get the project ID.
167
166
  */
168
167
  EasCommand.contextDefinition = {};
168
+ exports.default = EasCommand;
@@ -0,0 +1,14 @@
1
+ import { ExpoGraphqlClient } from './context/contextUtils/createGraphqlClient';
2
+ import { Build, BuildFragment, BuildStatus } from '../graphql/generated';
3
+ import { RequestedPlatform } from '../platform';
4
+ export declare function ensureBuildExistsAsync(graphqlClient: ExpoGraphqlClient, buildId: string): Promise<void>;
5
+ export declare function fetchBuildsAsync({ graphqlClient, projectId, filters, }: {
6
+ graphqlClient: ExpoGraphqlClient;
7
+ projectId: string;
8
+ filters?: {
9
+ statuses?: BuildStatus[];
10
+ platform?: RequestedPlatform;
11
+ profile?: string;
12
+ };
13
+ }): Promise<BuildFragment[]>;
14
+ export declare function formatBuild(build: Pick<Build, 'id' | 'platform' | 'status' | 'createdAt'>): string;
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.formatBuild = exports.fetchBuildsAsync = exports.ensureBuildExistsAsync = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
+ const generated_1 = require("../graphql/generated");
7
+ const BuildQuery_1 = require("../graphql/queries/BuildQuery");
8
+ const platform_1 = require("../platform");
9
+ const platformToAppPlatform = {
10
+ android: generated_1.AppPlatform.Android,
11
+ ios: generated_1.AppPlatform.Ios,
12
+ };
13
+ async function ensureBuildExistsAsync(graphqlClient, buildId) {
14
+ try {
15
+ await BuildQuery_1.BuildQuery.byIdAsync(graphqlClient, buildId);
16
+ }
17
+ catch {
18
+ throw new Error(`Couldn't find a build matching the id ${buildId}`);
19
+ }
20
+ }
21
+ exports.ensureBuildExistsAsync = ensureBuildExistsAsync;
22
+ async function fetchBuildsAsync({ graphqlClient, projectId, filters, }) {
23
+ let builds;
24
+ const queryFilters = {};
25
+ if ((filters === null || filters === void 0 ? void 0 : filters.platform) && filters.platform !== 'all') {
26
+ queryFilters['platform'] = platformToAppPlatform[filters.platform];
27
+ }
28
+ if (filters === null || filters === void 0 ? void 0 : filters.profile) {
29
+ queryFilters['buildProfile'] = filters.profile;
30
+ }
31
+ if (!(filters === null || filters === void 0 ? void 0 : filters.statuses)) {
32
+ builds = await BuildQuery_1.BuildQuery.viewBuildsOnAppAsync(graphqlClient, {
33
+ appId: projectId,
34
+ offset: 0,
35
+ limit: 10,
36
+ filter: queryFilters ? queryFilters : undefined,
37
+ });
38
+ }
39
+ else {
40
+ builds = (await Promise.all(filters.statuses.map(status => BuildQuery_1.BuildQuery.viewBuildsOnAppAsync(graphqlClient, {
41
+ appId: projectId,
42
+ offset: 0,
43
+ limit: 10,
44
+ filter: queryFilters ? { ...queryFilters, status } : { status },
45
+ })))).flat();
46
+ }
47
+ builds.sort((buildA, buildB) => (buildA.createdAt > buildB.createdAt ? -1 : 1));
48
+ return builds;
49
+ }
50
+ exports.fetchBuildsAsync = fetchBuildsAsync;
51
+ function formatBuild(build) {
52
+ const platform = platform_1.appPlatformEmojis[build.platform];
53
+ const startTime = new Date(build.createdAt).toLocaleString();
54
+ let statusText;
55
+ if (build.status === generated_1.BuildStatus.New) {
56
+ statusText = 'new';
57
+ }
58
+ else if (build.status === generated_1.BuildStatus.InQueue) {
59
+ statusText = 'in queue';
60
+ }
61
+ else if (build.status === generated_1.BuildStatus.InProgress) {
62
+ statusText = 'in progress';
63
+ }
64
+ else if (build.status === generated_1.BuildStatus.Finished) {
65
+ statusText = 'finished';
66
+ }
67
+ else if (build.status === generated_1.BuildStatus.Errored) {
68
+ statusText = 'errored';
69
+ }
70
+ else if ([generated_1.BuildStatus.PendingCancel, generated_1.BuildStatus.Canceled].includes(build.status)) {
71
+ statusText = 'canceled';
72
+ }
73
+ else {
74
+ statusText = 'unknown';
75
+ }
76
+ const status = chalk_1.default.blue(statusText);
77
+ return `${platform} Started at: ${startTime}, Status: ${status}, Id: ${build.id}`;
78
+ }
79
+ exports.formatBuild = formatBuild;
@@ -1,5 +1,5 @@
1
- import { Analytics } from '../../analytics/AnalyticsManager';
2
1
  import ContextField, { ContextOptions } from './ContextField';
2
+ import { Analytics } from '../../analytics/AnalyticsManager';
3
3
  export default class AnalyticsContextField extends ContextField<Analytics> {
4
4
  getValueAsync({ analytics }: ContextOptions): Promise<Analytics>;
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { ExpoConfig } from '@expo/config-types';
2
- import { ExpoConfigOptions } from '../../project/expoConfig';
3
2
  import ContextField, { ContextOptions } from './ContextField';
3
+ import { ExpoConfigOptions } from '../../project/expoConfig';
4
4
  export type DynamicConfigContextFn = (options?: ExpoConfigOptions) => Promise<{
5
5
  projectId: string;
6
6
  exp: ExpoConfig;
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DynamicPrivateProjectConfigContextField = exports.DynamicPublicProjectConfigContextField = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const expoConfig_1 = require("../../project/expoConfig");
6
5
  const ContextField_1 = tslib_1.__importDefault(require("./ContextField"));
7
6
  const findProjectDirAndVerifyProjectSetupAsync_1 = require("./contextUtils/findProjectDirAndVerifyProjectSetupAsync");
8
7
  const getProjectIdAsync_1 = require("./contextUtils/getProjectIdAsync");
8
+ const expoConfig_1 = require("../../project/expoConfig");
9
9
  class DynamicPublicProjectConfigContextField extends ContextField_1.default {
10
10
  async getValueAsync({ nonInteractive, sessionManager, }) {
11
11
  const projectDir = await (0, findProjectDirAndVerifyProjectSetupAsync_1.findProjectDirAndVerifyProjectSetupAsync)();
@@ -1,7 +1,7 @@
1
- import { Actor } from '../../user/User';
2
- import FeatureGating from '../gating/FeatureGating';
3
1
  import ContextField, { ContextOptions } from './ContextField';
4
2
  import { ExpoGraphqlClient } from './contextUtils/createGraphqlClient';
3
+ import { Actor } from '../../user/User';
4
+ import FeatureGating from '../gating/FeatureGating';
5
5
  export default class LoggedInContextField extends ContextField<{
6
6
  actor: Actor;
7
7
  featureGating: FeatureGating;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const FeatureGateEnvOverrides_1 = tslib_1.__importDefault(require("../gating/FeatureGateEnvOverrides"));
5
- const FeatureGating_1 = tslib_1.__importDefault(require("../gating/FeatureGating"));
6
4
  const ContextField_1 = tslib_1.__importDefault(require("./ContextField"));
7
5
  const createGraphqlClient_1 = require("./contextUtils/createGraphqlClient");
6
+ const FeatureGateEnvOverrides_1 = tslib_1.__importDefault(require("../gating/FeatureGateEnvOverrides"));
7
+ const FeatureGating_1 = tslib_1.__importDefault(require("../gating/FeatureGating"));
8
8
  class LoggedInContextField extends ContextField_1.default {
9
9
  async getValueAsync({ nonInteractive, sessionManager }) {
10
10
  var _a;
@@ -1,7 +1,7 @@
1
- import { Actor } from '../../user/User';
2
- import FeatureGating from '../gating/FeatureGating';
3
1
  import ContextField, { ContextOptions } from './ContextField';
4
2
  import { ExpoGraphqlClient } from './contextUtils/createGraphqlClient';
3
+ import { Actor } from '../../user/User';
4
+ import FeatureGating from '../gating/FeatureGating';
5
5
  export default class MaybeLoggedInContextField extends ContextField<{
6
6
  actor: Actor | null;
7
7
  featureGating: FeatureGating;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const FeatureGateEnvOverrides_1 = tslib_1.__importDefault(require("../gating/FeatureGateEnvOverrides"));
5
- const FeatureGating_1 = tslib_1.__importDefault(require("../gating/FeatureGating"));
6
4
  const ContextField_1 = tslib_1.__importDefault(require("./ContextField"));
7
5
  const createGraphqlClient_1 = require("./contextUtils/createGraphqlClient");
6
+ const FeatureGateEnvOverrides_1 = tslib_1.__importDefault(require("../gating/FeatureGateEnvOverrides"));
7
+ const FeatureGating_1 = tslib_1.__importDefault(require("../gating/FeatureGating"));
8
8
  class MaybeLoggedInContextField extends ContextField_1.default {
9
9
  async getValueAsync({ sessionManager }) {
10
10
  var _a;
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OptionalPrivateProjectConfigContextField = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const errors_1 = require("@expo/eas-json/build/errors");
6
- const expoConfig_1 = require("../../project/expoConfig");
7
6
  const ContextField_1 = tslib_1.__importDefault(require("./ContextField"));
8
7
  const findProjectDirAndVerifyProjectSetupAsync_1 = require("./contextUtils/findProjectDirAndVerifyProjectSetupAsync");
9
8
  const getProjectIdAsync_1 = require("./contextUtils/getProjectIdAsync");
9
+ const expoConfig_1 = require("../../project/expoConfig");
10
10
  class OptionalPrivateProjectConfigContextField extends ContextField_1.default {
11
11
  async getValueAsync({ nonInteractive, sessionManager }) {
12
12
  let projectDir;
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PrivateProjectConfigContextField = void 0;
4
4
  const tslib_1 = require("tslib");
5
- const expoConfig_1 = require("../../project/expoConfig");
6
5
  const ContextField_1 = tslib_1.__importDefault(require("./ContextField"));
7
6
  const findProjectDirAndVerifyProjectSetupAsync_1 = require("./contextUtils/findProjectDirAndVerifyProjectSetupAsync");
8
7
  const getProjectIdAsync_1 = require("./contextUtils/getProjectIdAsync");
8
+ const expoConfig_1 = require("../../project/expoConfig");
9
9
  class PrivateProjectConfigContextField extends ContextField_1.default {
10
10
  async getValueAsync({ nonInteractive, sessionManager }) {
11
11
  const projectDir = await (0, findProjectDirAndVerifyProjectSetupAsync_1.findProjectDirAndVerifyProjectSetupAsync)();
@@ -1,5 +1,5 @@
1
- import SessionManager from '../../user/SessionManager';
2
1
  import ContextField, { ContextOptions } from './ContextField';
2
+ import SessionManager from '../../user/SessionManager';
3
3
  export default class SessionManagementContextField extends ContextField<SessionManager> {
4
4
  getValueAsync({ sessionManager }: ContextOptions): Promise<SessionManager>;
5
5
  }
@@ -1,5 +1,5 @@
1
- import { Client } from '../../vcs/vcs';
2
1
  import ContextField from './ContextField';
2
+ import { Client } from '../../vcs/vcs';
3
3
  export default class VcsClientContextField extends ContextField<Client> {
4
4
  getValueAsync(): Promise<Client>;
5
5
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const vcs_1 = require("../../vcs");
5
4
  const ContextField_1 = tslib_1.__importDefault(require("./ContextField"));
5
+ const vcs_1 = require("../../vcs");
6
6
  class VcsClientContextField extends ContextField_1.default {
7
7
  async getValueAsync() {
8
8
  return (0, vcs_1.getVcsClient)();
@@ -4,6 +4,8 @@ exports.getProjectIdAsync = exports.saveProjectIdToAppConfigAsync = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const config_1 = require("@expo/config");
6
6
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
7
+ const createGraphqlClient_1 = require("./createGraphqlClient");
8
+ const findProjectDirAndVerifyProjectSetupAsync_1 = require("./findProjectDirAndVerifyProjectSetupAsync");
7
9
  const AppQuery_1 = require("../../../graphql/queries/AppQuery");
8
10
  const log_1 = tslib_1.__importStar(require("../../../log"));
9
11
  const ora_1 = require("../../../ora");
@@ -11,8 +13,6 @@ const expoConfig_1 = require("../../../project/expoConfig");
11
13
  const fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync_1 = require("../../../project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync");
12
14
  const projectUtils_1 = require("../../../project/projectUtils");
13
15
  const User_1 = require("../../../user/User");
14
- const createGraphqlClient_1 = require("./createGraphqlClient");
15
- const findProjectDirAndVerifyProjectSetupAsync_1 = require("./findProjectDirAndVerifyProjectSetupAsync");
16
16
  /**
17
17
  * Save an EAS project ID to the appropriate field in the app config.
18
18
  *
@@ -5,7 +5,7 @@ var FeatureGateKey;
5
5
  (function (FeatureGateKey) {
6
6
  // for tests
7
7
  FeatureGateKey["TEST"] = "test";
8
- })(FeatureGateKey = exports.FeatureGateKey || (exports.FeatureGateKey = {}));
8
+ })(FeatureGateKey || (exports.FeatureGateKey = FeatureGateKey = {}));
9
9
  exports.featureGateDefaultValueWhenNoServerValue = {
10
10
  [FeatureGateKey.TEST]: true,
11
11
  };
@@ -7,13 +7,12 @@ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasComm
7
7
  const log_1 = tslib_1.__importDefault(require("../../log"));
8
8
  class AccountLogin extends EasCommand_1.default {
9
9
  async runAsync() {
10
- const { flags: { sso }, } = await this.parse(AccountLogin);
11
- const { sessionManager } = await this.getContextAsync(AccountLogin, { nonInteractive: false });
10
+ const { flags: { sso }, } = await this.parse(_a);
11
+ const { sessionManager } = await this.getContextAsync(_a, { nonInteractive: false });
12
12
  await sessionManager.showLoginPromptAsync({ sso });
13
13
  log_1.default.log('Logged in');
14
14
  }
15
15
  }
16
- exports.default = AccountLogin;
17
16
  _a = AccountLogin;
18
17
  AccountLogin.description = 'log in with your Expo account';
19
18
  AccountLogin.aliases = ['login'];
@@ -29,3 +28,4 @@ AccountLogin.flags = {
29
28
  AccountLogin.contextDefinition = {
30
29
  ..._a.ContextOptions.SessionManagment,
31
30
  };
31
+ exports.default = AccountLogin;
@@ -6,15 +6,15 @@ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasComm
6
6
  const log_1 = tslib_1.__importDefault(require("../../log"));
7
7
  class AccountLogout extends EasCommand_1.default {
8
8
  async runAsync() {
9
- const { sessionManager } = await this.getContextAsync(AccountLogout, { nonInteractive: false });
9
+ const { sessionManager } = await this.getContextAsync(_a, { nonInteractive: false });
10
10
  await sessionManager.logoutAsync();
11
11
  log_1.default.log('Logged out');
12
12
  }
13
13
  }
14
- exports.default = AccountLogout;
15
14
  _a = AccountLogout;
16
15
  AccountLogout.description = 'log out';
17
16
  AccountLogout.aliases = ['logout'];
18
17
  AccountLogout.contextDefinition = {
19
18
  ..._a.ContextOptions.SessionManagment,
20
19
  };
20
+ exports.default = AccountLogout;
@@ -10,7 +10,7 @@ const log_1 = tslib_1.__importDefault(require("../../log"));
10
10
  const User_1 = require("../../user/User");
11
11
  class AccountView extends EasCommand_1.default {
12
12
  async runAsync() {
13
- const { maybeLoggedIn: { actor }, } = await this.getContextAsync(AccountView, { nonInteractive: true });
13
+ const { maybeLoggedIn: { actor }, } = await this.getContextAsync(_a, { nonInteractive: true });
14
14
  if (actor) {
15
15
  log_1.default.log(chalk_1.default.green((0, User_1.getActorDisplayName)(actor)));
16
16
  // personal account is included, only show if more accounts that personal account
@@ -20,8 +20,8 @@ class AccountView extends EasCommand_1.default {
20
20
  log_1.default.newLine();
21
21
  log_1.default.log('Accounts:');
22
22
  actor.accounts.forEach(account => {
23
- const roleOnAccount = AccountView.getRoleOnAccount(actor, account);
24
- log_1.default.log(`• ${account.name} (Role: ${AccountView.getLabelForRole(roleOnAccount)})`);
23
+ const roleOnAccount = _a.getRoleOnAccount(actor, account);
24
+ log_1.default.log(`• ${account.name} (Role: ${_a.getLabelForRole(roleOnAccount)})`);
25
25
  });
26
26
  }
27
27
  }
@@ -54,10 +54,10 @@ class AccountView extends EasCommand_1.default {
54
54
  }
55
55
  }
56
56
  }
57
- exports.default = AccountView;
58
57
  _a = AccountView;
59
58
  AccountView.description = 'show the username you are logged in as';
60
59
  AccountView.aliases = ['whoami'];
61
60
  AccountView.contextDefinition = {
62
61
  ..._a.ContextOptions.MaybeLoggedIn,
63
62
  };
63
+ exports.default = AccountView;
@@ -17,6 +17,6 @@ class AnalyticsView extends EasCommand_1.default {
17
17
  }
18
18
  }
19
19
  }
20
- exports.default = AnalyticsView;
21
20
  AnalyticsView.description = 'display or change analytics settings';
22
21
  AnalyticsView.args = [{ name: 'STATUS', options: ['on', 'off'] }];
22
+ exports.default = AnalyticsView;
@@ -13,8 +13,8 @@ const prompts_1 = require("../../prompts");
13
13
  const json_1 = require("../../utils/json");
14
14
  class BranchCreate extends EasCommand_1.default {
15
15
  async runAsync() {
16
- let { args: { name }, flags: { json: jsonFlag, 'non-interactive': nonInteractive }, } = await this.parse(BranchCreate);
17
- const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, vcsClient, } = await this.getContextAsync(BranchCreate, {
16
+ let { args: { name }, flags: { json: jsonFlag, 'non-interactive': nonInteractive }, } = await this.parse(_a);
17
+ const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, vcsClient, } = await this.getContextAsync(_a, {
18
18
  nonInteractive,
19
19
  });
20
20
  if (jsonFlag) {
@@ -43,7 +43,6 @@ class BranchCreate extends EasCommand_1.default {
43
43
  }
44
44
  }
45
45
  }
46
- exports.default = BranchCreate;
47
46
  _a = BranchCreate;
48
47
  BranchCreate.description = 'create a branch';
49
48
  BranchCreate.args = [
@@ -61,3 +60,4 @@ BranchCreate.contextDefinition = {
61
60
  ..._a.ContextOptions.LoggedIn,
62
61
  ..._a.ContextOptions.Vcs,
63
62
  };
63
+ exports.default = BranchCreate;
@@ -53,13 +53,13 @@ async function deleteBranchOnAppAsync(graphqlClient, { branchId }) {
53
53
  class BranchDelete extends EasCommand_1.default {
54
54
  async runAsync() {
55
55
  var _b, _c;
56
- let { args: { name: branchName }, flags, } = await this.parse(BranchDelete);
56
+ let { args: { name: branchName }, flags, } = await this.parse(_a);
57
57
  const { json: jsonFlag, 'non-interactive': nonInteractive } = flags;
58
58
  const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
59
59
  if (jsonFlag) {
60
60
  (0, json_1.enableJsonOutput)();
61
61
  }
62
- const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BranchDelete, { nonInteractive });
62
+ const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, { nonInteractive });
63
63
  const projectDisplayName = await (0, projectUtils_1.getDisplayNameForProjectIdAsync)(graphqlClient, projectId);
64
64
  if (!branchName) {
65
65
  const validationMessage = 'branch name may not be empty.';
@@ -100,7 +100,6 @@ class BranchDelete extends EasCommand_1.default {
100
100
  }
101
101
  }
102
102
  }
103
- exports.default = BranchDelete;
104
103
  _a = BranchDelete;
105
104
  BranchDelete.description = 'delete a branch';
106
105
  BranchDelete.contextDefinition = {
@@ -117,3 +116,4 @@ BranchDelete.args = [
117
116
  BranchDelete.flags = {
118
117
  ...flags_1.EasNonInteractiveAndJsonFlags,
119
118
  };
119
+ exports.default = BranchDelete;
@@ -9,8 +9,8 @@ const pagination_1 = require("../../commandUtils/pagination");
9
9
  const json_1 = require("../../utils/json");
10
10
  class BranchList extends EasCommand_1.default {
11
11
  async runAsync() {
12
- const { flags } = await this.parse(BranchList);
13
- const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BranchList, {
12
+ const { flags } = await this.parse(_a);
13
+ const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
14
14
  nonInteractive: flags['non-interactive'],
15
15
  });
16
16
  const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
@@ -20,7 +20,6 @@ class BranchList extends EasCommand_1.default {
20
20
  await (0, queries_1.listAndRenderBranchesOnAppAsync)(graphqlClient, { projectId, paginatedQueryOptions });
21
21
  }
22
22
  }
23
- exports.default = BranchList;
24
23
  _a = BranchList;
25
24
  BranchList.description = 'list all branches';
26
25
  BranchList.flags = {
@@ -31,3 +30,4 @@ BranchList.contextDefinition = {
31
30
  ..._a.ContextOptions.ProjectConfig,
32
31
  ..._a.ContextOptions.LoggedIn,
33
32
  };
33
+ exports.default = BranchList;
@@ -7,6 +7,6 @@ class BranchPublish extends EasCommand_1.default {
7
7
  throw new Error(BranchPublish.description);
8
8
  }
9
9
  }
10
- exports.default = BranchPublish;
11
10
  BranchPublish.description = 'deprecated, use "eas update"';
12
11
  BranchPublish.hidden = true;
12
+ exports.default = BranchPublish;
@@ -35,8 +35,8 @@ async function renameUpdateBranchOnAppAsync(graphqlClient, { appId, name, newNam
35
35
  }
36
36
  class BranchRename extends EasCommand_1.default {
37
37
  async runAsync() {
38
- let { flags: { json: jsonFlag, from: currentName, to: newName, 'non-interactive': nonInteractive }, } = await this.parse(BranchRename);
39
- const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BranchRename, {
38
+ let { flags: { json: jsonFlag, from: currentName, to: newName, 'non-interactive': nonInteractive }, } = await this.parse(_a);
39
+ const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
40
40
  nonInteractive,
41
41
  });
42
42
  if (jsonFlag) {
@@ -80,7 +80,6 @@ class BranchRename extends EasCommand_1.default {
80
80
  }
81
81
  }
82
82
  }
83
- exports.default = BranchRename;
84
83
  _a = BranchRename;
85
84
  BranchRename.description = 'rename a branch';
86
85
  BranchRename.flags = {
@@ -98,3 +97,4 @@ BranchRename.contextDefinition = {
98
97
  ..._a.ContextOptions.ProjectConfig,
99
98
  ..._a.ContextOptions.LoggedIn,
100
99
  };
100
+ exports.default = BranchRename;
@@ -10,9 +10,9 @@ const queries_2 = require("../../update/queries");
10
10
  const json_1 = require("../../utils/json");
11
11
  class BranchView extends EasCommand_1.default {
12
12
  async runAsync() {
13
- let { args: { name: branchName }, flags, } = await this.parse(BranchView);
13
+ let { args: { name: branchName }, flags, } = await this.parse(_a);
14
14
  const { 'non-interactive': nonInteractive } = flags;
15
- const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(BranchView, {
15
+ const { privateProjectConfig: { projectId }, loggedIn: { graphqlClient }, } = await this.getContextAsync(_a, {
16
16
  nonInteractive,
17
17
  });
18
18
  const paginatedQueryOptions = (0, pagination_1.getPaginatedQueryOptions)(flags);
@@ -44,7 +44,6 @@ class BranchView extends EasCommand_1.default {
44
44
  });
45
45
  }
46
46
  }
47
- exports.default = BranchView;
48
47
  _a = BranchView;
49
48
  BranchView.description = 'view a branch';
50
49
  BranchView.args = [
@@ -63,3 +62,4 @@ BranchView.contextDefinition = {
63
62
  ..._a.ContextOptions.ProjectConfig,
64
63
  ..._a.ContextOptions.LoggedIn,
65
64
  };
65
+ exports.default = BranchView;
@@ -1,12 +1,18 @@
1
1
  import EasCommand from '../../commandUtils/EasCommand';
2
2
  import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
3
- export declare function selectBuildToCancelAsync(graphqlClient: ExpoGraphqlClient, projectId: string, projectDisplayName: string): Promise<string | null>;
3
+ import { RequestedPlatform } from '../../platform';
4
+ export declare function selectBuildToCancelAsync(graphqlClient: ExpoGraphqlClient, projectId: string, projectDisplayName: string, filters?: {
5
+ platform?: RequestedPlatform;
6
+ profile?: string;
7
+ }): Promise<string | null>;
4
8
  export default class BuildCancel extends EasCommand {
5
9
  static description: string;
6
10
  static args: {
7
11
  name: string;
8
12
  }[];
9
13
  static flags: {
14
+ platform: import("@oclif/core/lib/interfaces").OptionFlag<RequestedPlatform | undefined>;
15
+ profile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
10
16
  'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
17
  };
12
18
  static contextDefinition: {