eas-cli 0.46.0 → 0.48.1

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 (311) hide show
  1. package/README.md +845 -2
  2. package/build/analytics/rudderstackClient.js +3 -3
  3. package/build/api.d.ts +25 -1
  4. package/build/api.js +70 -38
  5. package/build/build/android/build.js +4 -4
  6. package/build/build/android/prepareJob.js +2 -2
  7. package/build/build/android/syncProjectConfiguration.js +7 -7
  8. package/build/build/android/version.js +3 -3
  9. package/build/build/build.js +4 -4
  10. package/build/build/configure.js +3 -3
  11. package/build/build/createContext.js +2 -2
  12. package/build/build/ios/credentials.js +1 -1
  13. package/build/build/ios/graphql.js +1 -1
  14. package/build/build/ios/prepareJob.js +2 -2
  15. package/build/build/ios/syncProjectConfiguration.js +3 -3
  16. package/build/build/ios/version.js +3 -3
  17. package/build/build/local.js +3 -3
  18. package/build/build/metadata.js +7 -18
  19. package/build/build/runBuildAndSubmit.js +3 -3
  20. package/build/build/utils/appJson.js +3 -3
  21. package/build/build/utils/credentials.js +2 -2
  22. package/build/build/utils/devClient.js +3 -3
  23. package/build/build/utils/formatBuild.js +2 -2
  24. package/build/build/utils/printBuildInfo.js +5 -5
  25. package/build/build/utils/repository.js +5 -5
  26. package/build/build/utils/url.js +1 -1
  27. package/build/build/utils/version.js +4 -4
  28. package/build/build/validate.js +3 -3
  29. package/build/commandUtils/EasCommand.js +2 -2
  30. package/build/commands/account/login.js +2 -2
  31. package/build/commands/account/logout.js +2 -2
  32. package/build/commands/account/view.js +3 -3
  33. package/build/commands/analytics.js +3 -3
  34. package/build/commands/branch/create.js +4 -4
  35. package/build/commands/branch/delete.js +4 -4
  36. package/build/commands/branch/list.js +5 -5
  37. package/build/commands/branch/publish.js +1 -1
  38. package/build/commands/branch/rename.js +4 -4
  39. package/build/commands/branch/view.js +6 -6
  40. package/build/commands/build/cancel.js +4 -4
  41. package/build/commands/build/configure.js +6 -7
  42. package/build/commands/build/index.js +12 -8
  43. package/build/commands/build/inspect.js +5 -5
  44. package/build/commands/build/list.js +3 -3
  45. package/build/commands/build/view.js +2 -2
  46. package/build/commands/channel/create.js +12 -11
  47. package/build/commands/channel/delete.js +3 -3
  48. package/build/commands/channel/edit.js +38 -32
  49. package/build/commands/channel/list.js +4 -4
  50. package/build/commands/channel/rollout.js +50 -41
  51. package/build/commands/channel/view.d.ts +0 -2
  52. package/build/commands/channel/view.js +9 -53
  53. package/build/commands/config.js +3 -3
  54. package/build/commands/credentials.js +1 -1
  55. package/build/commands/device/create.js +3 -3
  56. package/build/commands/device/delete.js +4 -4
  57. package/build/commands/device/list.js +5 -5
  58. package/build/commands/device/view.js +3 -3
  59. package/build/commands/diagnostics.js +3 -3
  60. package/build/commands/project/info.js +4 -4
  61. package/build/commands/project/init.js +3 -3
  62. package/build/commands/secret/create.js +3 -3
  63. package/build/commands/secret/delete.js +2 -2
  64. package/build/commands/secret/list.js +5 -5
  65. package/build/commands/submit.js +4 -4
  66. package/build/commands/update/configure.d.ts +3 -0
  67. package/build/commands/update/configure.js +151 -36
  68. package/build/commands/update/delete.js +6 -6
  69. package/build/commands/update/index.d.ts +1 -0
  70. package/build/commands/update/index.js +65 -12
  71. package/build/commands/update/list.js +6 -6
  72. package/build/commands/update/view.js +4 -4
  73. package/build/commands/webhook/create.js +1 -1
  74. package/build/commands/webhook/delete.js +5 -5
  75. package/build/commands/webhook/list.js +3 -3
  76. package/build/commands/webhook/update.js +2 -2
  77. package/build/commands/webhook/view.js +2 -2
  78. package/build/credentials/android/AndroidCredentialsProvider.js +2 -2
  79. package/build/credentials/android/actions/AssignFcm.js +1 -1
  80. package/build/credentials/android/actions/AssignGoogleServiceAccountKey.js +1 -1
  81. package/build/credentials/android/actions/BuildCredentialsUtils.js +1 -1
  82. package/build/credentials/android/actions/CreateFcm.js +1 -1
  83. package/build/credentials/android/actions/CreateGoogleServiceAccountKey.js +1 -1
  84. package/build/credentials/android/actions/CreateKeystore.js +1 -1
  85. package/build/credentials/android/actions/DownloadKeystore.js +3 -3
  86. package/build/credentials/android/actions/RemoveFcm.js +1 -1
  87. package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.js +1 -1
  88. package/build/credentials/android/actions/RemoveKeystore.js +2 -2
  89. package/build/credentials/android/actions/SetUpBuildCredentials.js +2 -2
  90. package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.js +1 -1
  91. package/build/credentials/android/actions/SetUpGoogleServiceAccountKey.js +2 -2
  92. package/build/credentials/android/actions/UpdateCredentialsJson.js +1 -1
  93. package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.js +1 -1
  94. package/build/credentials/android/api/graphql/mutations/AndroidAppBuildCredentialsMutation.js +2 -2
  95. package/build/credentials/android/api/graphql/mutations/AndroidAppCredentialsMutation.js +2 -2
  96. package/build/credentials/android/api/graphql/mutations/AndroidFcmMutation.js +2 -2
  97. package/build/credentials/android/api/graphql/mutations/AndroidKeystoreMutation.js +2 -2
  98. package/build/credentials/android/api/graphql/mutations/GoogleServiceAccountKeyMutation.js +2 -2
  99. package/build/credentials/android/api/graphql/queries/AndroidAppCredentialsQuery.js +2 -2
  100. package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.js +1 -1
  101. package/build/credentials/android/utils/googleServiceAccountKey.js +6 -6
  102. package/build/credentials/android/utils/keystore.js +9 -12
  103. package/build/credentials/android/utils/keystoreNew.js +2 -2
  104. package/build/credentials/android/utils/printCredentials.js +3 -3
  105. package/build/credentials/context.js +7 -7
  106. package/build/credentials/credentialsJson/read.js +2 -2
  107. package/build/credentials/credentialsJson/types.js +1 -1
  108. package/build/credentials/credentialsJson/update.js +6 -6
  109. package/build/credentials/credentialsJson/utils.js +1 -1
  110. package/build/credentials/ios/IosCredentialsProvider.js +2 -2
  111. package/build/credentials/ios/actions/AscApiKeyUtils.js +4 -4
  112. package/build/credentials/ios/actions/AssignAscApiKey.js +1 -1
  113. package/build/credentials/ios/actions/AssignPushKey.js +1 -1
  114. package/build/credentials/ios/actions/BuildCredentialsUtils.js +1 -1
  115. package/build/credentials/ios/actions/ConfigureProvisioningProfile.js +3 -3
  116. package/build/credentials/ios/actions/CreateAscApiKey.js +1 -1
  117. package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -1
  118. package/build/credentials/ios/actions/CreateProvisioningProfile.js +3 -3
  119. package/build/credentials/ios/actions/CreatePushKey.js +1 -1
  120. package/build/credentials/ios/actions/DistributionCertificateUtils.js +4 -4
  121. package/build/credentials/ios/actions/ProvisioningProfileUtils.js +1 -1
  122. package/build/credentials/ios/actions/PushKeyUtils.js +2 -2
  123. package/build/credentials/ios/actions/RemoveAscApiKey.d.ts +1 -2
  124. package/build/credentials/ios/actions/RemoveAscApiKey.js +3 -4
  125. package/build/credentials/ios/actions/RemoveDistributionCertificate.js +1 -1
  126. package/build/credentials/ios/actions/RemoveProvisioningProfile.js +2 -2
  127. package/build/credentials/ios/actions/RemovePushKey.d.ts +1 -2
  128. package/build/credentials/ios/actions/RemovePushKey.js +3 -4
  129. package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +6 -6
  130. package/build/credentials/ios/actions/SetUpAscApiKey.js +3 -3
  131. package/build/credentials/ios/actions/SetUpBuildCredentials.js +3 -3
  132. package/build/credentials/ios/actions/SetUpBuildCredentialsFromCredentialsJson.js +2 -2
  133. package/build/credentials/ios/actions/SetUpDistributionCertificate.js +4 -4
  134. package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.js +4 -1
  135. package/build/credentials/ios/actions/SetUpProvisioningProfile.js +1 -1
  136. package/build/credentials/ios/actions/SetUpPushKey.js +3 -3
  137. package/build/credentials/ios/actions/SetUpSubmissionCredentials.js +4 -4
  138. package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +1 -1
  139. package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.js +3 -3
  140. package/build/credentials/ios/actions/UpdateCredentialsJson.js +1 -1
  141. package/build/credentials/ios/api/GraphqlClient.js +1 -1
  142. package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.js +2 -2
  143. package/build/credentials/ios/api/graphql/mutations/AppleAppIdentifierMutation.js +2 -2
  144. package/build/credentials/ios/api/graphql/mutations/AppleDeviceMutation.js +1 -1
  145. package/build/credentials/ios/api/graphql/mutations/AppleDeviceRegistrationRequestMutation.js +1 -1
  146. package/build/credentials/ios/api/graphql/mutations/AppleDistributionCertificateMutation.js +2 -2
  147. package/build/credentials/ios/api/graphql/mutations/AppleProvisioningProfileMutation.js +1 -1
  148. package/build/credentials/ios/api/graphql/mutations/ApplePushKeyMutation.js +2 -2
  149. package/build/credentials/ios/api/graphql/mutations/AppleTeamMutation.js +1 -1
  150. package/build/credentials/ios/api/graphql/mutations/IosAppBuildCredentialsMutation.js +2 -2
  151. package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.js +2 -2
  152. package/build/credentials/ios/api/graphql/queries/AppQuery.js +2 -2
  153. package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.js +1 -1
  154. package/build/credentials/ios/api/graphql/queries/AppleAppIdentifierQuery.js +1 -1
  155. package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.js +2 -2
  156. package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.js +2 -2
  157. package/build/credentials/ios/api/graphql/queries/AppleProvisioningProfileQuery.js +2 -2
  158. package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.js +1 -1
  159. package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.js +1 -1
  160. package/build/credentials/ios/api/graphql/queries/IosAppBuildCredentialsQuery.js +2 -2
  161. package/build/credentials/ios/api/graphql/queries/IosAppCredentialsQuery.js +2 -2
  162. package/build/credentials/ios/appstore/AppStoreApi.d.ts +1 -1
  163. package/build/credentials/ios/appstore/AppStoreApi.js +2 -2
  164. package/build/credentials/ios/appstore/Credentials.js +1 -1
  165. package/build/credentials/ios/appstore/ascApiKey.js +1 -1
  166. package/build/credentials/ios/appstore/authenticate.js +3 -3
  167. package/build/credentials/ios/appstore/bundleIdCapabilities.js +2 -2
  168. package/build/credentials/ios/appstore/capabilityIdentifiers.js +1 -1
  169. package/build/credentials/ios/appstore/contractMessages.js +2 -2
  170. package/build/credentials/ios/appstore/ensureAppExists.js +2 -2
  171. package/build/credentials/ios/appstore/keychain.js +1 -1
  172. package/build/credentials/ios/appstore/provisioningProfile.d.ts +1 -1
  173. package/build/credentials/ios/appstore/provisioningProfile.js +1 -1
  174. package/build/credentials/ios/appstore/pushKey.js +3 -3
  175. package/build/credentials/ios/appstore/resolveCredentials.js +5 -5
  176. package/build/credentials/ios/credentials.js +1 -1
  177. package/build/credentials/ios/utils/convertHTMLToASCII.js +4 -4
  178. package/build/credentials/ios/utils/p12Certificate.js +1 -1
  179. package/build/credentials/ios/utils/printCredentials.js +4 -4
  180. package/build/credentials/ios/utils/provisioningProfile.js +1 -1
  181. package/build/credentials/ios/validators/validateProvisioningProfile.js +5 -5
  182. package/build/credentials/manager/HelperActions.js +1 -1
  183. package/build/credentials/manager/ManageAndroid.js +2 -2
  184. package/build/credentials/manager/ManageIos.js +3 -3
  185. package/build/credentials/manager/SelectAndroidBuildCredentials.js +1 -1
  186. package/build/credentials/manager/SelectBuildProfileFromEasJson.js +1 -1
  187. package/build/credentials/utils/promptForCredentials.js +5 -6
  188. package/build/devices/actions/create/action.js +2 -2
  189. package/build/devices/actions/create/inputMethod.js +3 -3
  190. package/build/devices/actions/create/registrationUrlMethod.js +4 -4
  191. package/build/devices/manager.js +4 -4
  192. package/build/devices/utils/formatDevice.js +1 -1
  193. package/build/fetch.d.ts +7 -0
  194. package/build/fetch.js +21 -0
  195. package/build/graphql/client.js +2 -5
  196. package/build/graphql/generated.d.ts +770 -703
  197. package/build/graphql/generated.js +6 -1
  198. package/build/graphql/mutations/AppMutation.js +2 -2
  199. package/build/graphql/mutations/BuildMutation.js +2 -2
  200. package/build/graphql/mutations/EnvironmentSecretMutation.js +1 -1
  201. package/build/graphql/mutations/KeystoreGenerationUrlMutation.js +1 -1
  202. package/build/graphql/mutations/PublishMutation.d.ts +2 -1
  203. package/build/graphql/mutations/PublishMutation.js +26 -1
  204. package/build/graphql/mutations/SubmissionMutation.js +2 -2
  205. package/build/graphql/mutations/UploadSessionMutation.js +1 -1
  206. package/build/graphql/mutations/WebhookMutation.js +1 -1
  207. package/build/graphql/queries/BranchQuery.d.ts +7 -0
  208. package/build/graphql/queries/BranchQuery.js +29 -0
  209. package/build/graphql/queries/BuildQuery.js +1 -1
  210. package/build/graphql/queries/ChannelQuery.d.ts +4 -0
  211. package/build/graphql/queries/ChannelQuery.js +49 -0
  212. package/build/graphql/queries/EnvironmentSecretsQuery.js +1 -1
  213. package/build/graphql/queries/ProjectQuery.js +1 -1
  214. package/build/graphql/queries/PublishQuery.js +1 -1
  215. package/build/graphql/queries/SubmissionQuery.js +1 -1
  216. package/build/graphql/queries/UpdateQuery.js +1 -1
  217. package/build/graphql/queries/UserQuery.js +1 -1
  218. package/build/graphql/queries/WebhookQuery.js +1 -1
  219. package/build/graphql/types/App.js +1 -1
  220. package/build/graphql/types/Build.js +1 -1
  221. package/build/graphql/types/EnvironmentSecret.js +1 -1
  222. package/build/graphql/types/Submission.js +1 -1
  223. package/build/graphql/types/UpdateBranch.js +1 -1
  224. package/build/graphql/types/Webhook.js +1 -1
  225. package/build/graphql/types/credentials/AndroidAppBuildCredentials.js +1 -1
  226. package/build/graphql/types/credentials/AndroidAppCredentials.js +1 -1
  227. package/build/graphql/types/credentials/AndroidFcm.js +1 -1
  228. package/build/graphql/types/credentials/AndroidKeystore.js +1 -1
  229. package/build/graphql/types/credentials/AppStoreConnectApiKey.js +1 -1
  230. package/build/graphql/types/credentials/AppleAppIdentifier.js +1 -1
  231. package/build/graphql/types/credentials/AppleDevice.js +1 -1
  232. package/build/graphql/types/credentials/AppleDeviceRegistrationRequest.js +1 -1
  233. package/build/graphql/types/credentials/AppleDistributionCertificate.js +1 -1
  234. package/build/graphql/types/credentials/AppleProvisioningProfile.js +1 -1
  235. package/build/graphql/types/credentials/ApplePushKey.js +1 -1
  236. package/build/graphql/types/credentials/AppleTeam.js +1 -1
  237. package/build/graphql/types/credentials/GoogleServiceAccountKey.js +1 -1
  238. package/build/graphql/types/credentials/IosAppBuildCredentials.js +1 -1
  239. package/build/graphql/types/credentials/IosAppCredentials.js +1 -1
  240. package/build/log.js +4 -4
  241. package/build/ora.js +2 -2
  242. package/build/platform.js +1 -1
  243. package/build/project/android/applicationId.js +6 -6
  244. package/build/project/android/gradle.js +2 -2
  245. package/build/project/android/gradleUtils.js +2 -2
  246. package/build/project/ensureProjectExists.js +3 -3
  247. package/build/project/expoSdk.js +3 -3
  248. package/build/project/ios/bundleIdentifier.js +4 -4
  249. package/build/project/ios/scheme.js +3 -3
  250. package/build/project/metroConfig.js +3 -3
  251. package/build/project/projectUtils.d.ts +3 -5
  252. package/build/project/projectUtils.js +37 -38
  253. package/build/project/publish.js +8 -8
  254. package/build/project/workflow.js +2 -2
  255. package/build/prompts.js +1 -1
  256. package/build/submit/ArchiveSource.js +3 -3
  257. package/build/submit/BaseSubmitter.js +1 -1
  258. package/build/submit/android/AndroidSubmitCommand.js +3 -3
  259. package/build/submit/android/AndroidSubmitter.js +3 -3
  260. package/build/submit/android/ServiceAccountSource.js +4 -4
  261. package/build/submit/ios/AppProduce.js +2 -2
  262. package/build/submit/ios/AppSpecificPasswordSource.js +3 -4
  263. package/build/submit/ios/AscApiKeySource.js +2 -2
  264. package/build/submit/ios/CredentialsServiceSource.js +2 -2
  265. package/build/submit/ios/IosSubmitCommand.js +5 -5
  266. package/build/submit/ios/IosSubmitter.js +3 -3
  267. package/build/submit/ios/utils/language.js +1 -1
  268. package/build/submit/submit.js +4 -4
  269. package/build/submit/utils/errors.js +1 -1
  270. package/build/submit/utils/files.js +1 -1
  271. package/build/submit/utils/logs.js +5 -5
  272. package/build/submit/utils/summary.js +3 -3
  273. package/build/submit/utils/urls.js +2 -2
  274. package/build/submit/utils/wait.js +2 -2
  275. package/build/{build → update}/android/UpdatesModule.d.ts +0 -0
  276. package/build/{build → update}/android/UpdatesModule.js +4 -3
  277. package/build/{build → update}/ios/UpdatesModule.d.ts +0 -0
  278. package/build/{build → update}/ios/UpdatesModule.js +7 -8
  279. package/build/update/utils.d.ts +3 -0
  280. package/build/update/utils.js +20 -2
  281. package/build/uploads.d.ts +2 -10
  282. package/build/uploads.js +32 -12
  283. package/build/user/User.js +3 -5
  284. package/build/user/UserSettings.js +2 -2
  285. package/build/user/actions.js +5 -5
  286. package/build/user/otp.js +6 -8
  287. package/build/user/sessionStorage.js +1 -1
  288. package/build/utils/code-signing.d.ts +29 -0
  289. package/build/utils/code-signing.js +165 -0
  290. package/build/utils/expoCli.js +4 -4
  291. package/build/utils/files.js +3 -3
  292. package/build/utils/formatFields.js +1 -1
  293. package/build/utils/json.js +2 -2
  294. package/build/utils/paths.js +2 -2
  295. package/build/utils/plist.js +3 -3
  296. package/build/utils/profiles.js +2 -2
  297. package/build/utils/progress.d.ts +6 -3
  298. package/build/utils/progress.js +1 -1
  299. package/build/vcs/clients/git.js +3 -3
  300. package/build/vcs/clients/gitNoCommit.js +3 -3
  301. package/build/vcs/git.js +1 -1
  302. package/build/vcs/index.js +3 -3
  303. package/build/vcs/local.js +4 -4
  304. package/build/webhooks/formatWebhook.js +1 -1
  305. package/build/webhooks/input.js +2 -2
  306. package/oclif.manifest.json +1 -1
  307. package/package.json +33 -27
  308. package/build/ApiV2Error.d.ts +0 -16
  309. package/build/ApiV2Error.js +0 -14
  310. package/build/build/utils/updates.d.ts +0 -3
  311. package/build/build/utils/updates.js +0 -15
@@ -3,9 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const config_1 = require("@expo/config");
5
5
  const core_1 = require("@oclif/core");
6
- const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
7
- const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
8
- const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
6
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
7
+ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
8
+ const BranchQuery_1 = require("../../graphql/queries/BranchQuery");
9
+ const ChannelQuery_1 = require("../../graphql/queries/ChannelQuery");
10
+ const log_1 = tslib_1.__importDefault(require("../../log"));
9
11
  const projectUtils_1 = require("../../project/projectUtils");
10
12
  const prompts_1 = require("../../prompts");
11
13
  const json_1 = require("../../utils/json");
@@ -29,33 +31,25 @@ async function promptForRolloutPercentAsync({ promptMessage, }) {
29
31
  });
30
32
  return rolloutPercent;
31
33
  }
32
- function getRolloutInfo(getUpdateChannelByNameForAppResult) {
33
- var _a, _b, _c, _d, _e, _f, _g, _h;
34
- const { branchMapping } = (0, view_1.getBranchMapping)((_b = (_a = getUpdateChannelByNameForAppResult.app) === null || _a === void 0 ? void 0 : _a.byId.updateChannelByName) === null || _b === void 0 ? void 0 : _b.branchMapping);
34
+ function getRolloutInfo(channel) {
35
+ const { branchMapping } = (0, view_1.getBranchMapping)(channel.branchMapping);
35
36
  const [newBranchId, oldBranchId] = branchMapping.data.map(d => d.branchId);
36
- const newBranch = (_d = (_c = getUpdateChannelByNameForAppResult.app) === null || _c === void 0 ? void 0 : _c.byId.updateChannelByName) === null || _d === void 0 ? void 0 : _d.updateBranches.filter(branch => branch.id === newBranchId)[0];
37
- const oldBranch = (_f = (_e = getUpdateChannelByNameForAppResult.app) === null || _e === void 0 ? void 0 : _e.byId.updateChannelByName) === null || _f === void 0 ? void 0 : _f.updateBranches.filter(branch => branch.id === oldBranchId)[0];
37
+ const newBranch = channel.updateBranches.filter(branch => branch.id === newBranchId)[0];
38
+ const oldBranch = channel.updateBranches.filter(branch => branch.id === oldBranchId)[0];
38
39
  if (!newBranch || !oldBranch) {
39
- throw new Error(`Branch mapping rollout is missing a branch for channel "${(_h = (_g = getUpdateChannelByNameForAppResult.app) === null || _g === void 0 ? void 0 : _g.byId.updateChannelByName) === null || _h === void 0 ? void 0 : _h.name}".`);
40
+ throw new Error(`Branch mapping rollout is missing a branch for channel "${channel.name}".`);
40
41
  }
41
42
  const currentPercent = 100 * branchMapping.data[0].branchMappingLogic.operand;
42
43
  return { newBranch, oldBranch, currentPercent };
43
44
  }
44
- async function startRolloutAsync({ channelName, branchName, percent, jsonFlag, projectId, fullName, currentBranchMapping, getUpdateChannelByNameForAppResult, }) {
45
- var _a, _b, _c, _d;
46
- if (!branchName) {
47
- const validationMessage = 'A branch must be specified.';
48
- if (jsonFlag) {
49
- throw new Error(validationMessage);
50
- }
51
- ({ name: branchName } = await (0, prompts_1.promptAsync)({
52
- type: 'text',
53
- name: 'name',
54
- message: `Select a branch to rollout onto ${channelName}`,
55
- validate: value => (value ? true : validationMessage),
56
- }));
45
+ async function startRolloutAsync({ channelName, branchName, percent, jsonFlag, projectId, fullName, currentBranchMapping, channel, }) {
46
+ const branch = await BranchQuery_1.BranchQuery.getBranchByNameAsync({
47
+ appId: projectId,
48
+ name: branchName,
49
+ });
50
+ if (!branch) {
51
+ throw new Error(`Could not find a branch named "${branchName}". Please check what branches exist on this project with ${chalk_1.default.bold('eas branch:list')}.`);
57
52
  }
58
- const branch = await (0, projectUtils_1.getBranchByNameAsync)({ appId: projectId, name: branchName });
59
53
  const oldBranchId = currentBranchMapping.data[0].branchId;
60
54
  if (branch.id === oldBranchId) {
61
55
  throw new Error(`channel "${channelName}" is already pointing at branch "${branchName}". Rollouts must be done with distinct branches.`);
@@ -82,19 +76,18 @@ async function startRolloutAsync({ channelName, branchName, percent, jsonFlag, p
82
76
  ],
83
77
  };
84
78
  const newChannelInfo = await (0, edit_1.updateChannelBranchMappingAsync)({
85
- channelId: (_b = (_a = getUpdateChannelByNameForAppResult.app) === null || _a === void 0 ? void 0 : _a.byId.updateChannelByName) === null || _b === void 0 ? void 0 : _b.id,
79
+ channelId: channel.id,
86
80
  branchMapping: JSON.stringify(newBranchMapping),
87
81
  });
88
- const oldBranch = (_d = (_c = getUpdateChannelByNameForAppResult.app) === null || _c === void 0 ? void 0 : _c.byId.updateChannelByName) === null || _d === void 0 ? void 0 : _d.updateBranches.filter(branch => branch.id === oldBranchId)[0];
82
+ const oldBranch = channel.updateBranches.filter(branch => branch.id === oldBranchId)[0];
89
83
  if (!oldBranch) {
90
84
  throw new Error(`Branch mapping is missing its only branch for channel "${channelName}" on app "${fullName}"`);
91
85
  }
92
86
  const logMessage = `️Started a rollout of branch ${chalk_1.default.bold(branchName)} onto channel ${chalk_1.default.bold(channelName)}! ${chalk_1.default.bold(percent)}% of users will be directed to branch ${chalk_1.default.bold(branchName)}, ${chalk_1.default.bold(100 - percent)}% to branch ${chalk_1.default.bold(oldBranch.name)}.`;
93
87
  return { newChannelInfo, logMessage };
94
88
  }
95
- async function editRolloutAsync({ channelName, percent, jsonFlag, currentBranchMapping, getUpdateChannelByNameForAppResult, }) {
96
- var _a, _b;
97
- const { newBranch, oldBranch, currentPercent } = getRolloutInfo(getUpdateChannelByNameForAppResult);
89
+ async function editRolloutAsync({ channelName, percent, jsonFlag, currentBranchMapping, channel, }) {
90
+ const { newBranch, oldBranch, currentPercent } = getRolloutInfo(channel);
98
91
  if (percent == null) {
99
92
  if (jsonFlag) {
100
93
  throw new Error('A rollout is already in progress. If you wish to modify it you must use specify the new rollout percentage with the --percent flag.');
@@ -105,19 +98,24 @@ async function editRolloutAsync({ channelName, percent, jsonFlag, currentBranchM
105
98
  const newBranchMapping = { ...currentBranchMapping };
106
99
  newBranchMapping.data[0].branchMappingLogic.operand = percent / 100;
107
100
  const newChannelInfo = await (0, edit_1.updateChannelBranchMappingAsync)({
108
- channelId: (_b = (_a = getUpdateChannelByNameForAppResult.app) === null || _a === void 0 ? void 0 : _a.byId.updateChannelByName) === null || _b === void 0 ? void 0 : _b.id,
101
+ channelId: channel.id,
109
102
  branchMapping: JSON.stringify(newBranchMapping),
110
103
  });
111
104
  const logMessage = `️Rollout of branch ${chalk_1.default.bold(newBranch.name)} onto channel ${chalk_1.default.bold(channelName)} updated from ${chalk_1.default.bold(currentPercent)}% to ${chalk_1.default.bold(percent)}%. ${chalk_1.default.bold(percent)}% of users will be directed to branch ${chalk_1.default.bold(newBranch.name)}, ${chalk_1.default.bold(100 - percent)}% to branch ${chalk_1.default.bold(oldBranch.name)}.`;
112
105
  return { newChannelInfo, logMessage };
113
106
  }
114
- async function endRolloutAsync({ channelName, branchName, jsonFlag, projectId, getUpdateChannelByNameForAppResult, }) {
115
- var _a, _b;
107
+ async function endRolloutAsync({ channelName, branchName, jsonFlag, projectId, channel, }) {
116
108
  // end rollout
117
- const { newBranch, oldBranch, currentPercent } = getRolloutInfo(getUpdateChannelByNameForAppResult);
109
+ const { newBranch, oldBranch, currentPercent } = getRolloutInfo(channel);
118
110
  let endOnNewBranch;
119
111
  if (branchName) {
120
- const branch = await (0, projectUtils_1.getBranchByNameAsync)({ appId: projectId, name: branchName });
112
+ const branch = await BranchQuery_1.BranchQuery.getBranchByNameAsync({
113
+ appId: projectId,
114
+ name: branchName,
115
+ });
116
+ if (!branch) {
117
+ throw new Error(`Could not find a branch named "${branchName}". Please check what branches exist on this project with ${chalk_1.default.bold('eas branch:list')}.`);
118
+ }
121
119
  switch (branch.id) {
122
120
  case newBranch.id:
123
121
  endOnNewBranch = true;
@@ -157,7 +155,7 @@ async function endRolloutAsync({ channelName, branchName, jsonFlag, projectId, g
157
155
  ],
158
156
  };
159
157
  const newChannelInfo = await (0, edit_1.updateChannelBranchMappingAsync)({
160
- channelId: (_b = (_a = getUpdateChannelByNameForAppResult.app) === null || _a === void 0 ? void 0 : _a.byId.updateChannelByName) === null || _b === void 0 ? void 0 : _b.id,
158
+ channelId: channel.id,
161
159
  branchMapping: JSON.stringify(newBranchMapping),
162
160
  });
163
161
  const logMessage = `️Rollout on channel ${chalk_1.default.bold(channelName)} ended. All traffic is now sent to branch ${chalk_1.default.bold(endOnNewBranch ? newBranch.name : oldBranch.name)}`;
@@ -165,7 +163,6 @@ async function endRolloutAsync({ channelName, branchName, jsonFlag, projectId, g
165
163
  }
166
164
  class ChannelRollout extends EasCommand_1.default {
167
165
  async runAsync() {
168
- var _a, _b;
169
166
  const { args: { channel: channelName }, flags: { json: jsonFlag, end: endFlag, branch: branchName, percent }, } = await this.parse(ChannelRollout);
170
167
  if (jsonFlag) {
171
168
  (0, json_1.enableJsonOutput)();
@@ -174,11 +171,14 @@ class ChannelRollout extends EasCommand_1.default {
174
171
  const { exp } = (0, config_1.getConfig)(projectDir, { skipSDKVersionRequirement: true });
175
172
  const fullName = await (0, projectUtils_1.getProjectFullNameAsync)(exp);
176
173
  const projectId = await (0, projectUtils_1.getProjectIdAsync)(exp);
177
- const getUpdateChannelByNameForAppResult = await (0, view_1.getUpdateChannelByNameForAppAsync)({
174
+ const channel = await ChannelQuery_1.ChannelQuery.getUpdateChannelByNameForAppAsync({
178
175
  appId: projectId,
179
176
  channelName: channelName,
180
177
  });
181
- const { branchMapping: currentBranchMapping, isRollout } = (0, view_1.getBranchMapping)((_b = (_a = getUpdateChannelByNameForAppResult.app) === null || _a === void 0 ? void 0 : _a.byId.updateChannelByName) === null || _b === void 0 ? void 0 : _b.branchMapping);
178
+ if (!channel) {
179
+ throw new Error(`Could not find a channel named "${channelName}". Please check what channels exist on this project with ${chalk_1.default.bold('eas channel:list')}.`);
180
+ }
181
+ const { branchMapping: currentBranchMapping, isRollout } = (0, view_1.getBranchMapping)(channel.branchMapping);
182
182
  if (currentBranchMapping.data.length === 0) {
183
183
  throw new Error('The channel is not pointing at any branches.');
184
184
  }
@@ -200,13 +200,13 @@ class ChannelRollout extends EasCommand_1.default {
200
200
  if (!isRollout) {
201
201
  rolloutMutationResult = await startRolloutAsync({
202
202
  channelName,
203
- branchName,
203
+ branchName: branchName !== null && branchName !== void 0 ? branchName : (await promptForBranchNameAsync(channelName)),
204
204
  percent,
205
205
  jsonFlag,
206
206
  projectId,
207
207
  fullName,
208
208
  currentBranchMapping,
209
- getUpdateChannelByNameForAppResult,
209
+ channel,
210
210
  });
211
211
  }
212
212
  else if (endFlag) {
@@ -215,7 +215,7 @@ class ChannelRollout extends EasCommand_1.default {
215
215
  branchName,
216
216
  jsonFlag,
217
217
  projectId,
218
- getUpdateChannelByNameForAppResult,
218
+ channel,
219
219
  });
220
220
  }
221
221
  else {
@@ -224,7 +224,7 @@ class ChannelRollout extends EasCommand_1.default {
224
224
  percent,
225
225
  jsonFlag,
226
226
  currentBranchMapping,
227
- getUpdateChannelByNameForAppResult,
227
+ channel,
228
228
  });
229
229
  }
230
230
  if (!rolloutMutationResult) {
@@ -267,3 +267,12 @@ ChannelRollout.flags = {
267
267
  default: false,
268
268
  }),
269
269
  };
270
+ async function promptForBranchNameAsync(channelName) {
271
+ const { name } = await (0, prompts_1.promptAsync)({
272
+ type: 'text',
273
+ name: 'name',
274
+ message: `Select a branch to rollout onto ${channelName}`,
275
+ validate: value => (value ? true : 'A branch must be specified.'),
276
+ });
277
+ return name;
278
+ }
@@ -1,5 +1,4 @@
1
1
  import EasCommand from '../../commandUtils/EasCommand';
2
- import { GetChannelByNameForAppQuery, GetChannelByNameForAppQueryVariables } from '../../graphql/generated';
3
2
  import { FormatUpdateParameter } from '../../update/utils';
4
3
  export declare type BranchMapping = {
5
4
  version: number;
@@ -21,7 +20,6 @@ export declare function getBranchMapping(branchMappingString?: string): {
21
20
  isRollout: boolean;
22
21
  rolloutPercent?: number;
23
22
  };
24
- export declare function getUpdateChannelByNameForAppAsync({ appId, channelName, }: GetChannelByNameForAppQueryVariables): Promise<GetChannelByNameForAppQuery>;
25
23
  export declare function logChannelDetails(channel: {
26
24
  branchMapping: string;
27
25
  updateBranches: {
@@ -1,20 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.logChannelDetails = exports.getUpdateChannelByNameForAppAsync = exports.getBranchMapping = void 0;
3
+ exports.logChannelDetails = exports.getBranchMapping = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const config_1 = require("@expo/config");
6
6
  const core_1 = require("@oclif/core");
7
- const assert_1 = (0, tslib_1.__importDefault)(require("assert"));
8
- const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
9
- const cli_table3_1 = (0, tslib_1.__importDefault)(require("cli-table3"));
10
- const graphql_tag_1 = (0, tslib_1.__importDefault)(require("graphql-tag"));
11
- const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
12
- const client_1 = require("../../graphql/client");
13
- const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
7
+ const assert_1 = tslib_1.__importDefault(require("assert"));
8
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
9
+ const cli_table3_1 = tslib_1.__importDefault(require("cli-table3"));
10
+ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
11
+ const ChannelQuery_1 = require("../../graphql/queries/ChannelQuery");
12
+ const log_1 = tslib_1.__importDefault(require("../../log"));
14
13
  const projectUtils_1 = require("../../project/projectUtils");
15
14
  const prompts_1 = require("../../prompts");
16
15
  const utils_1 = require("../../update/utils");
17
- const formatFields_1 = (0, tslib_1.__importDefault)(require("../../utils/formatFields"));
16
+ const formatFields_1 = tslib_1.__importDefault(require("../../utils/formatFields"));
18
17
  const json_1 = require("../../utils/json");
19
18
  /**
20
19
  * Get the branch mapping and determine whether it is a rollout.
@@ -65,47 +64,6 @@ function getBranchMapping(branchMappingString) {
65
64
  return { branchMapping, isRollout, rolloutPercent };
66
65
  }
67
66
  exports.getBranchMapping = getBranchMapping;
68
- async function getUpdateChannelByNameForAppAsync({ appId, channelName, }) {
69
- return await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
70
- .query((0, graphql_tag_1.default) `
71
- query GetChannelByNameForApp($appId: String!, $channelName: String!) {
72
- app {
73
- byId(appId: $appId) {
74
- id
75
- updateChannelByName(name: $channelName) {
76
- id
77
- name
78
- createdAt
79
- branchMapping
80
- updateBranches(offset: 0, limit: 1000) {
81
- id
82
- name
83
- updates(offset: 0, limit: 10) {
84
- id
85
- group
86
- message
87
- runtimeVersion
88
- createdAt
89
- platform
90
- actor {
91
- id
92
- ... on User {
93
- username
94
- }
95
- ... on Robot {
96
- firstName
97
- }
98
- }
99
- }
100
- }
101
- }
102
- }
103
- }
104
- }
105
- `, { appId, channelName }, { additionalTypenames: ['UpdateChannel', 'UpdateBranch', 'Update'] })
106
- .toPromise());
107
- }
108
- exports.getUpdateChannelByNameForAppAsync = getUpdateChannelByNameForAppAsync;
109
67
  function logChannelDetails(channel) {
110
68
  var _a, _b, _c;
111
69
  const { branchMapping, isRollout, rolloutPercent } = getBranchMapping(channel.branchMapping);
@@ -146,7 +104,6 @@ function logChannelDetails(channel) {
146
104
  exports.logChannelDetails = logChannelDetails;
147
105
  class ChannelView extends EasCommand_1.default {
148
106
  async runAsync() {
149
- var _a;
150
107
  let { args: { name: channelName }, flags: { json: jsonFlag }, } = await this.parse(ChannelView);
151
108
  if (jsonFlag) {
152
109
  (0, json_1.enableJsonOutput)();
@@ -166,11 +123,10 @@ class ChannelView extends EasCommand_1.default {
166
123
  validate: value => (value ? true : validationMessage),
167
124
  }));
168
125
  }
169
- const getUpdateChannelByNameForAppresult = await getUpdateChannelByNameForAppAsync({
126
+ const channel = await ChannelQuery_1.ChannelQuery.getUpdateChannelByNameForAppAsync({
170
127
  appId: projectId,
171
128
  channelName,
172
129
  });
173
- const channel = (_a = getUpdateChannelByNameForAppresult.app) === null || _a === void 0 ? void 0 : _a.byId.updateChannelByName;
174
130
  if (!channel) {
175
131
  throw new Error(`Could not find a channel with name: ${channelName}`);
176
132
  }
@@ -5,10 +5,10 @@ const config_1 = require("@expo/config");
5
5
  const eas_build_job_1 = require("@expo/eas-build-job");
6
6
  const eas_json_1 = require("@expo/eas-json");
7
7
  const core_1 = require("@oclif/core");
8
- const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
9
- const EasCommand_1 = (0, tslib_1.__importDefault)(require("../commandUtils/EasCommand"));
8
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
9
+ const EasCommand_1 = tslib_1.__importDefault(require("../commandUtils/EasCommand"));
10
10
  const AppPlatform_1 = require("../graphql/types/AppPlatform");
11
- const log_1 = (0, tslib_1.__importDefault)(require("../log"));
11
+ const log_1 = tslib_1.__importDefault(require("../log"));
12
12
  const platform_1 = require("../platform");
13
13
  const expoConfig_1 = require("../project/expoConfig");
14
14
  const projectUtils_1 = require("../project/projectUtils");
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const EasCommand_1 = (0, tslib_1.__importDefault)(require("../commandUtils/EasCommand"));
4
+ const EasCommand_1 = tslib_1.__importDefault(require("../commandUtils/EasCommand"));
5
5
  const SelectPlatform_1 = require("../credentials/manager/SelectPlatform");
6
6
  class Credentials extends EasCommand_1.default {
7
7
  async runAsync() {
@@ -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 EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
5
- const AppStoreApi_1 = (0, tslib_1.__importDefault)(require("../../credentials/ios/appstore/AppStoreApi"));
4
+ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
5
+ const AppStoreApi_1 = tslib_1.__importDefault(require("../../credentials/ios/appstore/AppStoreApi"));
6
6
  const context_1 = require("../../devices/context");
7
- const manager_1 = (0, tslib_1.__importDefault)(require("../../devices/manager"));
7
+ const manager_1 = tslib_1.__importDefault(require("../../devices/manager"));
8
8
  const actions_1 = require("../../user/actions");
9
9
  class DeviceCreate extends EasCommand_1.default {
10
10
  async runAsync() {
@@ -4,15 +4,15 @@ const tslib_1 = require("tslib");
4
4
  const apple_utils_1 = require("@expo/apple-utils");
5
5
  const config_1 = require("@expo/config");
6
6
  const core_1 = require("@oclif/core");
7
- const assert_1 = (0, tslib_1.__importDefault)(require("assert"));
8
- const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
7
+ const assert_1 = tslib_1.__importDefault(require("assert"));
8
+ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
9
9
  const DeviceUtils_1 = require("../../credentials/ios/actions/DeviceUtils");
10
10
  const AppleDeviceMutation_1 = require("../../credentials/ios/api/graphql/mutations/AppleDeviceMutation");
11
11
  const AppleDeviceQuery_1 = require("../../credentials/ios/api/graphql/queries/AppleDeviceQuery");
12
12
  const AppleTeamQuery_1 = require("../../credentials/ios/api/graphql/queries/AppleTeamQuery");
13
13
  const authenticate_1 = require("../../credentials/ios/appstore/authenticate");
14
- const formatDevice_1 = (0, tslib_1.__importDefault)(require("../../devices/utils/formatDevice"));
15
- const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
14
+ const formatDevice_1 = tslib_1.__importDefault(require("../../devices/utils/formatDevice"));
15
+ const log_1 = tslib_1.__importDefault(require("../../log"));
16
16
  const ora_1 = require("../../ora");
17
17
  const projectUtils_1 = require("../../project/projectUtils");
18
18
  const prompts_1 = require("../../prompts");
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const config_1 = require("@expo/config");
5
5
  const core_1 = require("@oclif/core");
6
- const assert_1 = (0, tslib_1.__importDefault)(require("assert"));
7
- const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
8
- const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
6
+ const assert_1 = tslib_1.__importDefault(require("assert"));
7
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
8
+ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
9
9
  const AppleDeviceQuery_1 = require("../../credentials/ios/api/graphql/queries/AppleDeviceQuery");
10
10
  const AppleTeamQuery_1 = require("../../credentials/ios/api/graphql/queries/AppleTeamQuery");
11
- const formatDevice_1 = (0, tslib_1.__importDefault)(require("../../devices/utils/formatDevice"));
12
- const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
11
+ const formatDevice_1 = tslib_1.__importDefault(require("../../devices/utils/formatDevice"));
12
+ const log_1 = tslib_1.__importDefault(require("../../log"));
13
13
  const ora_1 = require("../../ora");
14
14
  const projectUtils_1 = require("../../project/projectUtils");
15
15
  const prompts_1 = require("../../prompts");
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const config_1 = require("@expo/config");
5
- const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
5
+ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
6
6
  const AppleDeviceQuery_1 = require("../../credentials/ios/api/graphql/queries/AppleDeviceQuery");
7
- const formatDevice_1 = (0, tslib_1.__importDefault)(require("../../devices/utils/formatDevice"));
8
- const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
7
+ const formatDevice_1 = tslib_1.__importDefault(require("../../devices/utils/formatDevice"));
8
+ const log_1 = tslib_1.__importDefault(require("../../log"));
9
9
  const ora_1 = require("../../ora");
10
10
  const projectUtils_1 = require("../../project/projectUtils");
11
11
  class DeviceView extends EasCommand_1.default {
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const eas_build_job_1 = require("@expo/eas-build-job");
5
- const envinfo_1 = (0, tslib_1.__importDefault)(require("envinfo"));
6
- const EasCommand_1 = (0, tslib_1.__importDefault)(require("../commandUtils/EasCommand"));
7
- const log_1 = (0, tslib_1.__importDefault)(require("../log"));
5
+ const envinfo_1 = tslib_1.__importDefault(require("envinfo"));
6
+ const EasCommand_1 = tslib_1.__importDefault(require("../commandUtils/EasCommand"));
7
+ const log_1 = tslib_1.__importDefault(require("../log"));
8
8
  const projectUtils_1 = require("../project/projectUtils");
9
9
  const workflow_1 = require("../project/workflow");
10
10
  const easCli_1 = require("../utils/easCli");
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const config_1 = require("@expo/config");
5
- const graphql_tag_1 = (0, tslib_1.__importDefault)(require("graphql-tag"));
6
- const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
5
+ const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
6
+ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
7
7
  const client_1 = require("../../graphql/client");
8
- const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
8
+ const log_1 = tslib_1.__importDefault(require("../../log"));
9
9
  const projectUtils_1 = require("../../project/projectUtils");
10
- const formatFields_1 = (0, tslib_1.__importDefault)(require("../../utils/formatFields"));
10
+ const formatFields_1 = tslib_1.__importDefault(require("../../utils/formatFields"));
11
11
  async function projectInfoByIdAsync(appId) {
12
12
  const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
13
13
  .query((0, graphql_tag_1.default) `
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const config_1 = require("@expo/config");
5
- const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
6
- const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
7
- const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
5
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
+ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
7
+ const log_1 = tslib_1.__importDefault(require("../../log"));
8
8
  const projectUtils_1 = require("../../project/projectUtils");
9
9
  class ProjectInit extends EasCommand_1.default {
10
10
  async runAsync() {
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const config_1 = require("@expo/config");
5
5
  const core_1 = require("@oclif/core");
6
- const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
7
- const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
6
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
7
+ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
8
8
  const EnvironmentSecretMutation_1 = require("../../graphql/mutations/EnvironmentSecretMutation");
9
9
  const EnvironmentSecretsQuery_1 = require("../../graphql/queries/EnvironmentSecretsQuery");
10
- const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
10
+ const log_1 = tslib_1.__importDefault(require("../../log"));
11
11
  const projectUtils_1 = require("../../project/projectUtils");
12
12
  const prompts_1 = require("../../prompts");
13
13
  const Account_1 = require("../../user/Account");
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const config_1 = require("@expo/config");
5
5
  const core_1 = require("@oclif/core");
6
- const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
6
+ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
7
7
  const EnvironmentSecretMutation_1 = require("../../graphql/mutations/EnvironmentSecretMutation");
8
8
  const EnvironmentSecretsQuery_1 = require("../../graphql/queries/EnvironmentSecretsQuery");
9
- const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
9
+ const log_1 = tslib_1.__importDefault(require("../../log"));
10
10
  const projectUtils_1 = require("../../project/projectUtils");
11
11
  const prompts_1 = require("../../prompts");
12
12
  class EnvironmentSecretDelete extends EasCommand_1.default {
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const config_1 = require("@expo/config");
5
- const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
6
- const cli_table3_1 = (0, tslib_1.__importDefault)(require("cli-table3"));
7
- const dateformat_1 = (0, tslib_1.__importDefault)(require("dateformat"));
8
- const EasCommand_1 = (0, tslib_1.__importDefault)(require("../../commandUtils/EasCommand"));
5
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
+ const cli_table3_1 = tslib_1.__importDefault(require("cli-table3"));
7
+ const dateformat_1 = tslib_1.__importDefault(require("dateformat"));
8
+ const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
9
9
  const EnvironmentSecretsQuery_1 = require("../../graphql/queries/EnvironmentSecretsQuery");
10
- const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
10
+ const log_1 = tslib_1.__importDefault(require("../../log"));
11
11
  const projectUtils_1 = require("../../project/projectUtils");
12
12
  class EnvironmentSecretList extends EasCommand_1.default {
13
13
  async runAsync() {
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const config_1 = require("@expo/config");
5
5
  const core_1 = require("@oclif/core");
6
- const chalk_1 = (0, tslib_1.__importDefault)(require("chalk"));
7
- const EasCommand_1 = (0, tslib_1.__importDefault)(require("../commandUtils/EasCommand"));
6
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
7
+ const EasCommand_1 = tslib_1.__importDefault(require("../commandUtils/EasCommand"));
8
8
  const AppPlatform_1 = require("../graphql/types/AppPlatform");
9
- const log_1 = (0, tslib_1.__importDefault)(require("../log"));
9
+ const log_1 = tslib_1.__importDefault(require("../log"));
10
10
  const platform_1 = require("../platform");
11
11
  const projectUtils_1 = require("../project/projectUtils");
12
12
  const context_1 = require("../submit/context");
@@ -73,7 +73,7 @@ class Submit extends EasCommand_1.default {
73
73
  }
74
74
  }
75
75
  exports.default = Submit;
76
- Submit.description = 'submit app binary to app store';
76
+ Submit.description = 'submit app binary to App Store and/or Play Store';
77
77
  Submit.aliases = ['build:submit'];
78
78
  Submit.flags = {
79
79
  platform: core_1.Flags.enum({
@@ -1,5 +1,8 @@
1
1
  import EasCommand from '../../commandUtils/EasCommand';
2
2
  export default class UpdateConfigure extends EasCommand {
3
3
  static description: string;
4
+ static flags: {
5
+ platform: import("@oclif/core/lib/interfaces").OptionFlag<string>;
6
+ };
4
7
  runAsync(): Promise<void>;
5
8
  }