eas-cli 16.28.0 → 16.30.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 (354) hide show
  1. package/README.md +97 -94
  2. package/build/analytics/AnalyticsManager.js +4 -4
  3. package/build/analytics/common.js +1 -2
  4. package/build/api.js +5 -5
  5. package/build/branch/delete.js +1 -2
  6. package/build/branch/queries.js +5 -5
  7. package/build/branch/utils.js +2 -2
  8. package/build/build/android/build.js +3 -4
  9. package/build/build/android/graphql.js +1 -2
  10. package/build/build/android/prepareJob.js +1 -2
  11. package/build/build/android/syncProjectConfiguration.js +2 -3
  12. package/build/build/android/version.js +6 -6
  13. package/build/build/build.js +3 -4
  14. package/build/build/configure.js +4 -5
  15. package/build/build/createContext.js +1 -2
  16. package/build/build/evaluateConfigWithEnvVarsAsync.js +1 -2
  17. package/build/build/graphql.js +7 -7
  18. package/build/build/ios/build.js +2 -3
  19. package/build/build/ios/credentials.js +2 -3
  20. package/build/build/ios/graphql.js +2 -3
  21. package/build/build/ios/prepareJob.js +2 -3
  22. package/build/build/ios/syncProjectConfiguration.js +1 -2
  23. package/build/build/ios/version.js +10 -10
  24. package/build/build/local.js +2 -2
  25. package/build/build/metadata.js +3 -4
  26. package/build/build/queries.js +4 -4
  27. package/build/build/runBuildAndSubmit.js +2 -3
  28. package/build/build/utils/appJson.js +2 -3
  29. package/build/build/utils/credentials.js +1 -2
  30. package/build/build/utils/devClient.js +1 -2
  31. package/build/build/utils/formatBuild.js +2 -3
  32. package/build/build/utils/printBuildInfo.js +4 -5
  33. package/build/build/utils/repository.js +8 -9
  34. package/build/build/utils/resourceClass.js +1 -2
  35. package/build/build/utils/url.js +8 -9
  36. package/build/build/utils/version.js +2 -3
  37. package/build/build/validate.js +3 -4
  38. package/build/channel/branch-mapping.js +24 -24
  39. package/build/channel/delete.d.ts +5 -0
  40. package/build/channel/delete.js +23 -0
  41. package/build/channel/print-utils.js +2 -3
  42. package/build/channel/queries.js +8 -8
  43. package/build/channel/utils.js +1 -2
  44. package/build/commandUtils/builds.js +3 -4
  45. package/build/commandUtils/context/contextUtils/createGraphqlClient.js +1 -2
  46. package/build/commandUtils/context/contextUtils/findProjectDirAndVerifyProjectSetupAsync.js +2 -3
  47. package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +3 -4
  48. package/build/commandUtils/context/contextUtils/loadServerSideEnvironmentVariablesAsync.js +1 -2
  49. package/build/commandUtils/experienceParser.d.ts +6 -0
  50. package/build/commandUtils/experienceParser.js +42 -0
  51. package/build/commandUtils/new/commands.js +3 -4
  52. package/build/commandUtils/new/configs.js +4 -5
  53. package/build/commandUtils/new/projectFiles.js +6 -7
  54. package/build/commandUtils/new/utils.js +1 -2
  55. package/build/commandUtils/projectNameValidation.d.ts +8 -0
  56. package/build/commandUtils/projectNameValidation.js +30 -0
  57. package/build/commandUtils/workflow/buildProfileUtils.js +12 -13
  58. package/build/commandUtils/workflow/creation.js +5 -5
  59. package/build/commandUtils/workflow/fetchLogs.js +2 -3
  60. package/build/commandUtils/workflow/inputs.js +5 -5
  61. package/build/commandUtils/workflow/stateMachine.js +7 -7
  62. package/build/commandUtils/workflow/utils.js +12 -12
  63. package/build/commandUtils/workflow/validation.js +4 -5
  64. package/build/commands/build/cancel.js +1 -2
  65. package/build/commands/build/delete.js +1 -2
  66. package/build/commands/build/index.js +1 -2
  67. package/build/commands/channel/delete.js +7 -23
  68. package/build/commands/channel/edit.js +1 -2
  69. package/build/commands/channel/pause.js +1 -2
  70. package/build/commands/channel/resume.js +1 -2
  71. package/build/commands/deploy/index.js +1 -1
  72. package/build/commands/project/init.js +3 -1
  73. package/build/commands/project/new.js +3 -4
  74. package/build/commands/update/index.d.ts +8 -0
  75. package/build/commands/update/index.js +39 -2
  76. package/build/commands/update/list.d.ts +3 -0
  77. package/build/commands/update/list.js +30 -1
  78. package/build/commands/update/revert-update-rollout.js +1 -2
  79. package/build/credentials/android/actions/BuildCredentialsUtils.js +6 -7
  80. package/build/credentials/android/api/GraphqlClient.js +21 -21
  81. package/build/credentials/android/api/graphql/queries/AndroidAppCredentialsQuery.d.ts +2 -2
  82. package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.d.ts +5 -5
  83. package/build/credentials/android/utils/googleServiceAccountKey.js +4 -4
  84. package/build/credentials/android/utils/keystore.js +2 -3
  85. package/build/credentials/android/utils/keystoreNew.js +3 -4
  86. package/build/credentials/android/utils/printCredentials.js +3 -4
  87. package/build/credentials/credentialsJson/read.js +3 -4
  88. package/build/credentials/credentialsJson/update.js +2 -3
  89. package/build/credentials/credentialsJson/utils.js +2 -3
  90. package/build/credentials/ios/actions/AppleTeamFormatting.js +1 -2
  91. package/build/credentials/ios/actions/AppleTeamUtils.js +1 -2
  92. package/build/credentials/ios/actions/AscApiKeyUtils.js +10 -10
  93. package/build/credentials/ios/actions/BuildCredentialsUtils.js +7 -8
  94. package/build/credentials/ios/actions/DeviceUtils.js +2 -3
  95. package/build/credentials/ios/actions/DistributionCertificateUtils.js +4 -5
  96. package/build/credentials/ios/actions/ProvisioningProfileUtils.js +2 -3
  97. package/build/credentials/ios/actions/PushKeyUtils.js +5 -6
  98. package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +2 -2
  99. package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +6 -2
  100. package/build/credentials/ios/api/GraphqlClient.js +24 -25
  101. package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.d.ts +5 -5
  102. package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.d.ts +8 -8
  103. package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.d.ts +5 -5
  104. package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.d.ts +5 -5
  105. package/build/credentials/ios/api/graphql/queries/IosAppCredentialsQuery.d.ts +1 -1
  106. package/build/credentials/ios/appstore/AppStoreApi.d.ts +0 -2
  107. package/build/credentials/ios/appstore/Credentials.js +4 -5
  108. package/build/credentials/ios/appstore/Credentials.types.d.ts +0 -1
  109. package/build/credentials/ios/appstore/CredentialsUtils.js +6 -7
  110. package/build/credentials/ios/appstore/ascApiKey.d.ts +0 -1
  111. package/build/credentials/ios/appstore/ascApiKey.js +6 -7
  112. package/build/credentials/ios/appstore/authenticate.d.ts +0 -1
  113. package/build/credentials/ios/appstore/authenticate.js +4 -5
  114. package/build/credentials/ios/appstore/authenticateTypes.d.ts +0 -1
  115. package/build/credentials/ios/appstore/bundleId.d.ts +0 -1
  116. package/build/credentials/ios/appstore/bundleId.js +2 -3
  117. package/build/credentials/ios/appstore/bundleIdCapabilities.d.ts +0 -1
  118. package/build/credentials/ios/appstore/bundleIdCapabilities.js +3 -3
  119. package/build/credentials/ios/appstore/capabilityIdentifiers.d.ts +0 -1
  120. package/build/credentials/ios/appstore/capabilityIdentifiers.js +1 -2
  121. package/build/credentials/ios/appstore/capabilityList.d.ts +0 -1
  122. package/build/credentials/ios/appstore/contractMessages.d.ts +0 -1
  123. package/build/credentials/ios/appstore/contractMessages.js +2 -3
  124. package/build/credentials/ios/appstore/distributionCertificate.d.ts +0 -1
  125. package/build/credentials/ios/appstore/distributionCertificate.js +7 -7
  126. package/build/credentials/ios/appstore/ensureAppExists.d.ts +6 -1
  127. package/build/credentials/ios/appstore/ensureAppExists.js +55 -18
  128. package/build/credentials/ios/appstore/ensureTestFlightGroup.d.ts +0 -1
  129. package/build/credentials/ios/appstore/ensureTestFlightGroup.js +1 -2
  130. package/build/credentials/ios/appstore/keychain.js +4 -4
  131. package/build/credentials/ios/appstore/provisioningProfile.d.ts +0 -1
  132. package/build/credentials/ios/appstore/provisioningProfile.js +5 -5
  133. package/build/credentials/ios/appstore/provisioningProfileAdhoc.d.ts +0 -1
  134. package/build/credentials/ios/appstore/provisioningProfileAdhoc.js +1 -2
  135. package/build/credentials/ios/appstore/pushKey.js +4 -4
  136. package/build/credentials/ios/appstore/resolveCredentials.d.ts +0 -1
  137. package/build/credentials/ios/appstore/resolveCredentials.js +6 -7
  138. package/build/credentials/ios/credentials.d.ts +0 -1
  139. package/build/credentials/ios/credentials.js +2 -2
  140. package/build/credentials/ios/utils/authType.d.ts +0 -1
  141. package/build/credentials/ios/utils/authType.js +1 -2
  142. package/build/credentials/ios/utils/convertHTMLToASCII.js +1 -2
  143. package/build/credentials/ios/utils/p12Certificate.d.ts +0 -1
  144. package/build/credentials/ios/utils/p12Certificate.js +3 -4
  145. package/build/credentials/ios/utils/printCredentials.js +3 -4
  146. package/build/credentials/ios/utils/provisioningProfile.js +5 -6
  147. package/build/credentials/ios/validators/validateAscApiKey.js +2 -3
  148. package/build/credentials/ios/validators/validateDistributionCertificate.js +1 -2
  149. package/build/credentials/ios/validators/validateProvisioningProfile.js +1 -2
  150. package/build/credentials/ios/validators/validatePushKey.js +1 -2
  151. package/build/credentials/manager/IosActions.js +4 -4
  152. package/build/credentials/manager/SelectPlatform.js +1 -1
  153. package/build/credentials/utils/promptForCredentials.js +3 -4
  154. package/build/devices/actions/create/currentMachineMethod.js +1 -2
  155. package/build/devices/actions/create/developerPortalMethod.d.ts +0 -1
  156. package/build/devices/actions/create/developerPortalMethod.js +2 -3
  157. package/build/devices/actions/create/inputMethod.js +1 -2
  158. package/build/devices/actions/create/registrationUrlMethod.js +1 -2
  159. package/build/devices/actions/create/utils.js +4 -5
  160. package/build/devices/context.js +1 -2
  161. package/build/devices/queries.js +4 -4
  162. package/build/devices/udids.js +2 -3
  163. package/build/devices/utils/formatDevice.js +2 -3
  164. package/build/fetch.d.ts +0 -1
  165. package/build/fetch.js +1 -1
  166. package/build/fingerprint/cli.js +3 -4
  167. package/build/fingerprint/diff.js +1 -2
  168. package/build/fingerprint/types.d.ts +0 -1
  169. package/build/fingerprint/utils.js +4 -5
  170. package/build/graphql/client.js +2 -2
  171. package/build/graphql/generated.d.ts +177 -88
  172. package/build/graphql/generated.js +39 -3
  173. package/build/graphql/mutations/PublishMutation.d.ts +2 -2
  174. package/build/graphql/queries/AccountUsageQuery.d.ts +1 -1
  175. package/build/graphql/queries/AppVersionQuery.d.ts +1 -1
  176. package/build/graphql/queries/BackgroundJobReceiptQuery.d.ts +1 -1
  177. package/build/graphql/queries/BranchQuery.d.ts +3 -3
  178. package/build/graphql/queries/BuildQuery.d.ts +3 -3
  179. package/build/graphql/queries/ChannelQuery.d.ts +2 -2
  180. package/build/graphql/queries/ChannelQuery.js +2 -2
  181. package/build/graphql/queries/EnvironmentVariablesQuery.d.ts +12 -12
  182. package/build/graphql/queries/FingerprintQuery.d.ts +6 -6
  183. package/build/graphql/queries/PublishQuery.d.ts +1 -1
  184. package/build/graphql/queries/SubmissionQuery.d.ts +1 -1
  185. package/build/graphql/queries/UserQuery.d.ts +1 -1
  186. package/build/graphql/queries/WorkflowJobQuery.d.ts +2 -2
  187. package/build/graphql/queries/WorkflowRunQuery.d.ts +4 -4
  188. package/build/graphql/types/AppPlatform.js +2 -3
  189. package/build/log.js +2 -3
  190. package/build/metadata/apple/config/reader.d.ts +0 -1
  191. package/build/metadata/apple/config/writer.d.ts +0 -1
  192. package/build/metadata/apple/data.d.ts +0 -1
  193. package/build/metadata/apple/tasks/age-rating.d.ts +0 -1
  194. package/build/metadata/apple/tasks/age-rating.js +0 -1
  195. package/build/metadata/apple/tasks/app-info.d.ts +0 -1
  196. package/build/metadata/apple/tasks/app-info.js +15 -4
  197. package/build/metadata/apple/tasks/app-review-detail.d.ts +0 -1
  198. package/build/metadata/apple/tasks/app-review-detail.js +0 -1
  199. package/build/metadata/apple/tasks/app-version.d.ts +0 -1
  200. package/build/metadata/apple/tasks/app-version.js +15 -3
  201. package/build/metadata/apple/tasks/index.js +1 -2
  202. package/build/metadata/apple/types.d.ts +0 -1
  203. package/build/metadata/auth.d.ts +0 -1
  204. package/build/metadata/auth.js +1 -2
  205. package/build/metadata/config/resolve.js +4 -5
  206. package/build/metadata/config/validate.js +1 -2
  207. package/build/metadata/download.js +1 -2
  208. package/build/metadata/errors.js +3 -3
  209. package/build/metadata/upload.js +1 -2
  210. package/build/metadata/utils/ajv.js +2 -3
  211. package/build/metadata/utils/asc.d.ts +0 -1
  212. package/build/metadata/utils/date.js +1 -2
  213. package/build/metadata/utils/log.js +1 -2
  214. package/build/metadata/utils/retry.js +2 -3
  215. package/build/metadata/utils/telemetry.d.ts +0 -1
  216. package/build/metadata/utils/telemetry.js +2 -3
  217. package/build/onboarding/git.js +3 -4
  218. package/build/onboarding/installDependencies.js +3 -3
  219. package/build/onboarding/runCommand.js +1 -2
  220. package/build/ora.js +1 -2
  221. package/build/platform.d.ts +1 -0
  222. package/build/platform.js +28 -10
  223. package/build/project/android/applicationId.js +6 -6
  224. package/build/project/android/gradle.js +1 -2
  225. package/build/project/android/gradleUtils.js +4 -4
  226. package/build/project/android/versions.js +3 -3
  227. package/build/project/applicationIdentifier.js +1 -2
  228. package/build/project/customBuildConfig.js +3 -4
  229. package/build/project/expoConfig.js +5 -6
  230. package/build/project/expoSdk.js +1 -2
  231. package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.js +2 -3
  232. package/build/project/ios/bundleIdentifier.js +6 -6
  233. package/build/project/ios/entitlements.js +2 -3
  234. package/build/project/ios/exemptEncryption.js +1 -2
  235. package/build/project/ios/scheme.js +2 -3
  236. package/build/project/ios/target.d.ts +0 -1
  237. package/build/project/ios/target.js +8 -9
  238. package/build/project/ios/versions.js +3 -3
  239. package/build/project/maybeUploadAssetMapAsync.js +1 -2
  240. package/build/project/maybeUploadFingerprintAsync.js +1 -2
  241. package/build/project/metroConfig.js +1 -2
  242. package/build/project/projectUtils.js +15 -16
  243. package/build/project/publish.d.ts +15 -2
  244. package/build/project/publish.js +56 -29
  245. package/build/project/remoteVersionSource.js +6 -6
  246. package/build/project/resolveRuntimeVersionAsync.js +2 -3
  247. package/build/project/uploadAccountScopedFileAsync.js +1 -2
  248. package/build/project/uploadAccountScopedProjectSourceAsync.js +1 -2
  249. package/build/project/workflow.js +3 -4
  250. package/build/prompts.js +5 -6
  251. package/build/rollout/branch-mapping.js +14 -15
  252. package/build/rollout/utils.js +5 -6
  253. package/build/run/android/aapt.js +2 -3
  254. package/build/run/android/adb.js +8 -9
  255. package/build/run/android/emulator.js +6 -6
  256. package/build/run/android/run.js +1 -2
  257. package/build/run/android/sdk.d.ts +0 -1
  258. package/build/run/android/sdk.js +2 -2
  259. package/build/run/android/systemRequirements.js +1 -2
  260. package/build/run/ios/run.js +1 -2
  261. package/build/run/ios/simctl.js +1 -2
  262. package/build/run/ios/simulator.js +9 -10
  263. package/build/run/ios/systemRequirements.js +1 -2
  264. package/build/run/ios/xcode.js +5 -5
  265. package/build/run/ios/xcrun.js +3 -4
  266. package/build/run/run.js +2 -3
  267. package/build/run/utils.js +1 -2
  268. package/build/submit/ArchiveSource.js +3 -3
  269. package/build/submit/android/ServiceAccountSource.js +4 -4
  270. package/build/submit/commons.js +2 -3
  271. package/build/submit/context.js +1 -2
  272. package/build/submit/ios/AppProduce.js +1 -2
  273. package/build/submit/ios/AppSpecificPasswordSource.js +3 -3
  274. package/build/submit/ios/AscApiKeySource.js +4 -4
  275. package/build/submit/ios/utils/language.js +1 -2
  276. package/build/submit/submit.js +3 -4
  277. package/build/submit/utils/builds.js +1 -2
  278. package/build/submit/utils/errors.js +1 -2
  279. package/build/submit/utils/files.js +2 -3
  280. package/build/submit/utils/logs.js +1 -2
  281. package/build/submit/utils/summary.js +2 -3
  282. package/build/submit/utils/urls.js +2 -3
  283. package/build/submit/utils/wait.js +2 -3
  284. package/build/update/android/UpdatesModule.js +2 -3
  285. package/build/update/configure.js +4 -4
  286. package/build/update/delete.js +1 -2
  287. package/build/update/getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync.js +1 -2
  288. package/build/update/ios/UpdatesModule.js +2 -3
  289. package/build/update/queries.d.ts +5 -3
  290. package/build/update/queries.js +12 -9
  291. package/build/update/republish.js +5 -6
  292. package/build/update/roll-back-to-embedded.js +1 -2
  293. package/build/update/utils.js +15 -15
  294. package/build/uploads.js +3 -4
  295. package/build/user/User.js +2 -3
  296. package/build/user/actions.js +1 -2
  297. package/build/user/expoSsoLauncher.js +1 -2
  298. package/build/user/fetchSessionSecretAndSsoUser.js +1 -2
  299. package/build/user/fetchSessionSecretAndUser.js +1 -2
  300. package/build/user/fetchUser.js +1 -2
  301. package/build/utils/code-signing.d.ts +0 -1
  302. package/build/utils/code-signing.js +7 -8
  303. package/build/utils/date.js +1 -2
  304. package/build/utils/download.js +2 -3
  305. package/build/utils/expoCli.js +4 -4
  306. package/build/utils/expoUpdatesCli.js +2 -2
  307. package/build/utils/expodash/areSetsEqual.js +1 -1
  308. package/build/utils/expodash/capitalize.js +1 -1
  309. package/build/utils/expodash/chunk.js +1 -1
  310. package/build/utils/expodash/differenceBy.js +1 -1
  311. package/build/utils/expodash/filter.js +1 -2
  312. package/build/utils/expodash/groupBy.js +1 -1
  313. package/build/utils/expodash/intersection.js +1 -1
  314. package/build/utils/expodash/mapMapAsync.js +1 -1
  315. package/build/utils/expodash/memoize.js +1 -2
  316. package/build/utils/expodash/pick.js +1 -1
  317. package/build/utils/expodash/sortBy.js +1 -1
  318. package/build/utils/expodash/uniq.js +1 -1
  319. package/build/utils/expodash/uniqBy.js +1 -1
  320. package/build/utils/expodash/zipObject.js +1 -1
  321. package/build/utils/files.js +2 -3
  322. package/build/utils/formatFields.js +1 -1
  323. package/build/utils/image.js +3 -3
  324. package/build/utils/json.js +2 -3
  325. package/build/utils/plist.d.ts +0 -1
  326. package/build/utils/plist.js +3 -4
  327. package/build/utils/pollForBackgroundJobReceiptAsync.js +2 -2
  328. package/build/utils/profiles.js +3 -4
  329. package/build/utils/progress.js +1 -2
  330. package/build/utils/promise.js +1 -2
  331. package/build/utils/prompts.js +8 -9
  332. package/build/utils/queries.js +2 -3
  333. package/build/utils/relay.js +4 -4
  334. package/build/utils/statuspageService.js +1 -2
  335. package/build/utils/timer.js +4 -5
  336. package/build/utils/usage/checkForOverages.js +4 -5
  337. package/build/utils/variableUtils.js +4 -5
  338. package/build/vcs/clients/git.js +1 -2
  339. package/build/vcs/git.js +5 -6
  340. package/build/vcs/index.js +1 -2
  341. package/build/vcs/local.js +2 -2
  342. package/build/webhooks/formatWebhook.js +1 -2
  343. package/build/webhooks/input.js +3 -4
  344. package/build/worker/assets.d.ts +0 -1
  345. package/build/worker/assets.js +6 -7
  346. package/build/worker/deployment.js +8 -9
  347. package/build/worker/mutations.d.ts +1 -1
  348. package/build/worker/queries.d.ts +4 -4
  349. package/build/worker/upload.d.ts +0 -2
  350. package/build/worker/upload.js +5 -6
  351. package/build/worker/utils/logs.js +5 -5
  352. package/build/worker/utils/multipart.js +3 -3
  353. package/oclif.manifest.json +35 -1
  354. package/package.json +13 -11
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createSubmissionContextAsync = void 0;
3
+ exports.createSubmissionContextAsync = createSubmissionContextAsync;
4
4
  const eas_build_job_1 = require("@expo/eas-build-job");
5
5
  const uuid_1 = require("uuid");
6
6
  const AnalyticsManager_1 = require("../analytics/AnalyticsManager");
@@ -51,4 +51,3 @@ async function createSubmissionContextAsync(params) {
51
51
  applicationIdentifierOverride: applicationIdentifier,
52
52
  };
53
53
  }
54
- exports.createSubmissionContextAsync = createSubmissionContextAsync;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ensureAppStoreConnectAppExistsAsync = void 0;
3
+ exports.ensureAppStoreConnectAppExistsAsync = ensureAppStoreConnectAppExistsAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const apple_utils_1 = require("@expo/apple-utils");
6
6
  const language_1 = require("./utils/language");
@@ -23,7 +23,6 @@ async function ensureAppStoreConnectAppExistsAsync(ctx) {
23
23
  };
24
24
  return await createAppStoreConnectAppAsync(ctx, options);
25
25
  }
26
- exports.ensureAppStoreConnectAppExistsAsync = ensureAppStoreConnectAppExistsAsync;
27
26
  async function isProvisioningAvailableAsync(requestCtx) {
28
27
  const session = apple_utils_1.Session.getAnySessionInfo();
29
28
  // TODO: Investigate if username and email can be different
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAppleIdUsernameAsync = exports.getAppSpecificPasswordLocallyAsync = exports.AppSpecificPasswordSourceType = void 0;
3
+ exports.AppSpecificPasswordSourceType = void 0;
4
+ exports.getAppSpecificPasswordLocallyAsync = getAppSpecificPasswordLocallyAsync;
5
+ exports.getAppleIdUsernameAsync = getAppleIdUsernameAsync;
4
6
  const tslib_1 = require("tslib");
5
7
  const getenv_1 = tslib_1.__importDefault(require("getenv"));
6
8
  const authenticate_1 = require("../../credentials/ios/appstore/authenticate");
@@ -22,7 +24,6 @@ async function getAppSpecificPasswordLocallyAsync(ctx, source) {
22
24
  throw new Error(`Unknown app specific password source type "${source?.sourceType}"`);
23
25
  }
24
26
  }
25
- exports.getAppSpecificPasswordLocallyAsync = getAppSpecificPasswordLocallyAsync;
26
27
  async function getAppleIdUsernameAsync(ctx) {
27
28
  if (ctx.profile.appleId) {
28
29
  return ctx.profile.appleId;
@@ -54,4 +55,3 @@ async function getAppleIdUsernameAsync(ctx) {
54
55
  });
55
56
  return appleId;
56
57
  }
57
- exports.getAppleIdUsernameAsync = getAppleIdUsernameAsync;
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAscApiKeyPathAsync = exports.getAscApiKeyLocallyAsync = exports.getAscApiKeyResultAsync = exports.AscApiKeySourceType = void 0;
3
+ exports.AscApiKeySourceType = void 0;
4
+ exports.getAscApiKeyResultAsync = getAscApiKeyResultAsync;
5
+ exports.getAscApiKeyLocallyAsync = getAscApiKeyLocallyAsync;
6
+ exports.getAscApiKeyPathAsync = getAscApiKeyPathAsync;
4
7
  const tslib_1 = require("tslib");
5
8
  const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
6
9
  const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
@@ -24,7 +27,6 @@ async function getAscApiKeyResultAsync(ctx, source) {
24
27
  return await getAscApiKeyLocallyAsync(ctx, source);
25
28
  }
26
29
  }
27
- exports.getAscApiKeyResultAsync = getAscApiKeyResultAsync;
28
30
  async function maybeGetIosBundleIdentifierAsync(ctx) {
29
31
  try {
30
32
  return await (0, bundleIdentifier_1.getBundleIdentifierAsync)(ctx.projectDir, ctx.exp, ctx.vcsClient);
@@ -86,7 +88,6 @@ async function getAscApiKeyLocallyAsync(ctx, source) {
86
88
  },
87
89
  };
88
90
  }
89
- exports.getAscApiKeyLocallyAsync = getAscApiKeyLocallyAsync;
90
91
  async function getAscApiKeyPathAsync(ctx, source) {
91
92
  switch (source.sourceType) {
92
93
  case AscApiKeySourceType.path:
@@ -97,7 +98,6 @@ async function getAscApiKeyPathAsync(ctx, source) {
97
98
  throw new Error(`AscApiKeySourceType ${source} does not return a path.`);
98
99
  }
99
100
  }
100
- exports.getAscApiKeyPathAsync = getAscApiKeyPathAsync;
101
101
  async function handlePathSourceAsync(ctx, source) {
102
102
  const { keyP8Path } = source.path;
103
103
  if (!(await (0, files_1.isExistingFileAsync)(keyP8Path))) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sanitizeLanguage = void 0;
3
+ exports.sanitizeLanguage = sanitizeLanguage;
4
4
  const tslib_1 = require("tslib");
5
5
  const log_1 = tslib_1.__importDefault(require("../../../log"));
6
6
  /**
@@ -24,7 +24,6 @@ function sanitizeLanguage(lang, { defaultLang = 'en-US' } = {}) {
24
24
  }
25
25
  return foundLang.itcLocale ?? foundLang.locale;
26
26
  }
27
- exports.sanitizeLanguage = sanitizeLanguage;
28
27
  /**
29
28
  * Displays language list. When using apple utils, the format is:
30
29
  * - en-US (English)
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.exitWithNonZeroCodeIfSomeSubmissionsDidntFinish = exports.waitToCompleteAsync = exports.submitAsync = void 0;
3
+ exports.submitAsync = submitAsync;
4
+ exports.waitToCompleteAsync = waitToCompleteAsync;
5
+ exports.exitWithNonZeroCodeIfSomeSubmissionsDidntFinish = exitWithNonZeroCodeIfSomeSubmissionsDidntFinish;
4
6
  const tslib_1 = require("tslib");
5
7
  const eas_build_job_1 = require("@expo/eas-build-job");
6
8
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
@@ -27,7 +29,6 @@ async function submitAsync(ctx) {
27
29
  properties: ctx.analyticsEventProperties,
28
30
  });
29
31
  }
30
- exports.submitAsync = submitAsync;
31
32
  async function waitToCompleteAsync(graphqlClient, submissions, { verbose = false } = {}) {
32
33
  log_1.default.newLine();
33
34
  const completedSubmissions = await (0, wait_1.waitForSubmissionsEndAsync)(graphqlClient, submissions);
@@ -52,7 +53,6 @@ async function waitToCompleteAsync(graphqlClient, submissions, { verbose = false
52
53
  }
53
54
  return completedSubmissions;
54
55
  }
55
- exports.waitToCompleteAsync = waitToCompleteAsync;
56
56
  function printInstructionsForAndroidSubmission(submission) {
57
57
  if (submission.status === generated_1.SubmissionStatus.Finished) {
58
58
  log_1.default.addNewLineIfNone();
@@ -79,4 +79,3 @@ function exitWithNonZeroCodeIfSomeSubmissionsDidntFinish(submissions) {
79
79
  process.exit(1);
80
80
  }
81
81
  }
82
- exports.exitWithNonZeroCodeIfSomeSubmissionsDidntFinish = exitWithNonZeroCodeIfSomeSubmissionsDidntFinish;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRecentBuildsForSubmissionAsync = void 0;
3
+ exports.getRecentBuildsForSubmissionAsync = getRecentBuildsForSubmissionAsync;
4
4
  const generated_1 = require("../../graphql/generated");
5
5
  const BuildQuery_1 = require("../../graphql/queries/BuildQuery");
6
6
  async function getRecentBuildsForSubmissionAsync(graphqlClient, platform, appId, { limit = 1 } = {}) {
@@ -27,4 +27,3 @@ async function getRecentBuildsForSubmissionAsync(graphqlClient, platform, appId,
27
27
  builds.sort((buildA, buildB) => (buildA.createdAt > buildB.createdAt ? -1 : 1));
28
28
  return builds.slice(0, limit);
29
29
  }
30
- exports.getRecentBuildsForSubmissionAsync = getRecentBuildsForSubmissionAsync;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.printSubmissionError = void 0;
3
+ exports.printSubmissionError = printSubmissionError;
4
4
  const tslib_1 = require("tslib");
5
5
  const log_1 = tslib_1.__importDefault(require("../../log"));
6
6
  const UNKNOWN_ERROR_CODES = [
@@ -21,4 +21,3 @@ function printSubmissionError(error) {
21
21
  return false;
22
22
  }
23
23
  }
24
- exports.printSubmissionError = printSubmissionError;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.uploadAppArchiveAsync = exports.isExistingFileAsync = void 0;
3
+ exports.isExistingFileAsync = isExistingFileAsync;
4
+ exports.uploadAppArchiveAsync = uploadAppArchiveAsync;
4
5
  const tslib_1 = require("tslib");
5
6
  const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
6
7
  const generated_1 = require("../../graphql/generated");
@@ -15,7 +16,6 @@ async function isExistingFileAsync(filePath) {
15
16
  return false;
16
17
  }
17
18
  }
18
- exports.isExistingFileAsync = isExistingFileAsync;
19
19
  async function uploadAppArchiveAsync(graphqlClient, path) {
20
20
  const fileSize = (await fs_extra_1.default.stat(path)).size;
21
21
  const bucketKey = await (0, uploads_1.uploadFileAtPathToGCSAsync)(graphqlClient, generated_1.UploadSessionType.EasSubmitGcsAppArchive, path, (0, progress_1.createProgressTracker)({
@@ -25,4 +25,3 @@ async function uploadAppArchiveAsync(graphqlClient, path) {
25
25
  }));
26
26
  return bucketKey;
27
27
  }
28
- exports.uploadAppArchiveAsync = uploadAppArchiveAsync;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.displayLogsAsync = void 0;
3
+ exports.displayLogsAsync = displayLogsAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
6
  const errors_1 = require("./errors");
@@ -20,7 +20,6 @@ async function displayLogsAsync(submission, { verbose = false, moreSubmissions =
20
20
  await downloadAndPrintSubmissionLogsAsync(submission);
21
21
  }
22
22
  }
23
- exports.displayLogsAsync = displayLogsAsync;
24
23
  async function downloadAndPrintSubmissionLogsAsync(submission) {
25
24
  for (const logFile of submission.logFiles) {
26
25
  const response = await (0, fetch_1.default)(logFile);
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.printSummary = exports.formatArchiveSourceSummary = void 0;
3
+ exports.formatArchiveSourceSummary = formatArchiveSourceSummary;
4
+ exports.printSummary = printSummary;
4
5
  const tslib_1 = require("tslib");
5
6
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
6
7
  const generated_1 = require("../../graphql/generated");
@@ -47,7 +48,6 @@ function formatArchiveSourceSummary(archive) {
47
48
  }
48
49
  return summarySlice;
49
50
  }
50
- exports.formatArchiveSourceSummary = formatArchiveSourceSummary;
51
51
  function printSummary(summary, keyMap) {
52
52
  const fields = [];
53
53
  for (const [key, value] of Object.entries(summary)) {
@@ -58,4 +58,3 @@ function printSummary(summary, keyMap) {
58
58
  log_1.default.log((0, formatFields_1.default)(fields, { labelFormat: chalk_1.default.bold.cyan }));
59
59
  log_1.default.addNewLineIfNone();
60
60
  }
61
- exports.printSummary = printSummary;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getSubmissionDetailsUrl = exports.printSubmissionDetailsUrls = void 0;
3
+ exports.printSubmissionDetailsUrls = printSubmissionDetailsUrls;
4
+ exports.getSubmissionDetailsUrl = getSubmissionDetailsUrl;
4
5
  const tslib_1 = require("tslib");
5
6
  const url_1 = require("url");
6
7
  const api_1 = require("../../api");
@@ -17,9 +18,7 @@ function printSubmissionDetailsUrls(submissions) {
17
18
  });
18
19
  }
19
20
  }
20
- exports.printSubmissionDetailsUrls = printSubmissionDetailsUrls;
21
21
  function getSubmissionDetailsUrl(submission) {
22
22
  const { id, app } = submission;
23
23
  return new url_1.URL(`/accounts/${app.ownerAccount.name}/projects/${app.slug}/submissions/${id}`, (0, api_1.getExpoWebsiteBaseUrl)()).toString();
24
24
  }
25
- exports.getSubmissionDetailsUrl = getSubmissionDetailsUrl;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.waitForSubmissionsEndAsync = void 0;
3
+ exports.waitForSubmissionsEndAsync = waitForSubmissionsEndAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
6
6
  const generated_1 = require("../../graphql/generated");
@@ -12,7 +12,7 @@ const APP_STORE_NAMES = {
12
12
  [generated_1.AppPlatform.Android]: 'Google Play Store',
13
13
  [generated_1.AppPlatform.Ios]: 'Apple App Store Connect',
14
14
  };
15
- const CHECK_INTERVAL_MS = 5000;
15
+ const CHECK_INTERVAL_MS = 5_000;
16
16
  async function waitForSubmissionsEndAsync(graphqlClient, initialSubmissions) {
17
17
  log_1.default.log(`Waiting for submission${initialSubmissions.length > 1 ? 's' : ''} to complete. You can press Ctrl+C to exit.`);
18
18
  const spinner = (0, ora_1.ora)(`Submitting`).start();
@@ -69,7 +69,6 @@ async function waitForSubmissionsEndAsync(graphqlClient, initialSubmissions) {
69
69
  await (0, promise_1.sleepAsync)(CHECK_INTERVAL_MS);
70
70
  }
71
71
  }
72
- exports.waitForSubmissionsEndAsync = waitForSubmissionsEndAsync;
73
72
  function getSingleSpinnerText(submission) {
74
73
  const { platform, status } = submission;
75
74
  const appStoreName = APP_STORE_NAMES[platform];
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.readChannelSafelyAsync = exports.syncUpdatesConfigurationAsync = void 0;
3
+ exports.syncUpdatesConfigurationAsync = syncUpdatesConfigurationAsync;
4
+ exports.readChannelSafelyAsync = readChannelSafelyAsync;
4
5
  const config_plugins_1 = require("@expo/config-plugins");
5
6
  const platform_1 = require("../../platform");
6
7
  const projectUtils_1 = require("../../project/projectUtils");
@@ -30,7 +31,6 @@ async function syncUpdatesConfigurationAsync({ projectDir, exp, workflow, env, }
30
31
  const updatedStringsResourceXML = await config_plugins_1.AndroidConfig.Updates.applyRuntimeVersionFromConfigForProjectRootAsync(projectDir, exp, stringsResourceXML);
31
32
  await config_plugins_1.XML.writeXMLAsync({ path: stringsJSONPath, xml: updatedStringsResourceXML });
32
33
  }
33
- exports.syncUpdatesConfigurationAsync = syncUpdatesConfigurationAsync;
34
34
  async function readChannelSafelyAsync(projectDir) {
35
35
  try {
36
36
  const androidManifest = await getAndroidManifestAsync(projectDir);
@@ -44,7 +44,6 @@ async function readChannelSafelyAsync(projectDir) {
44
44
  return null;
45
45
  }
46
46
  }
47
- exports.readChannelSafelyAsync = readChannelSafelyAsync;
48
47
  async function getAndroidManifestAsync(projectDir) {
49
48
  const androidManifestPath = await config_plugins_1.AndroidConfig.Paths.getAndroidManifestAsync(projectDir);
50
49
  if (!androidManifestPath) {
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ensureEASUpdateIsConfiguredAsync = exports.ensureEASUpdateIsConfiguredInEasJsonAsync = exports.getDefaultRuntimeVersion = exports.DEFAULT_BARE_RUNTIME_VERSION = exports.DEFAULT_MANAGED_RUNTIME_VERSION_LTE_SDK_48 = exports.DEFAULT_MANAGED_RUNTIME_VERSION_GTE_SDK_49 = void 0;
3
+ exports.DEFAULT_BARE_RUNTIME_VERSION = exports.DEFAULT_MANAGED_RUNTIME_VERSION_LTE_SDK_48 = exports.DEFAULT_MANAGED_RUNTIME_VERSION_GTE_SDK_49 = void 0;
4
+ exports.getDefaultRuntimeVersion = getDefaultRuntimeVersion;
5
+ exports.ensureEASUpdateIsConfiguredInEasJsonAsync = ensureEASUpdateIsConfiguredInEasJsonAsync;
6
+ exports.ensureEASUpdateIsConfiguredAsync = ensureEASUpdateIsConfiguredAsync;
4
7
  const tslib_1 = require("tslib");
5
8
  const eas_build_job_1 = require("@expo/eas-build-job");
6
9
  const eas_json_1 = require("@expo/eas-json");
@@ -30,7 +33,6 @@ function getDefaultRuntimeVersion(workflow, sdkVersion) {
30
33
  ? exports.DEFAULT_MANAGED_RUNTIME_VERSION_GTE_SDK_49
31
34
  : exports.DEFAULT_MANAGED_RUNTIME_VERSION_LTE_SDK_48;
32
35
  }
33
- exports.getDefaultRuntimeVersion = getDefaultRuntimeVersion;
34
36
  function isRuntimeEqual(runtimeVersionA, runtimeVersionB) {
35
37
  if (typeof runtimeVersionA === 'string' && typeof runtimeVersionB === 'string') {
36
38
  return runtimeVersionA === runtimeVersionB;
@@ -239,7 +241,6 @@ async function ensureEASUpdateIsConfiguredInEasJsonAsync(projectDir) {
239
241
  log_1.default.error(`We were not able to configure ${chalk_1.default.bold('eas.json')}. Error: ${error}.`);
240
242
  }
241
243
  }
242
- exports.ensureEASUpdateIsConfiguredInEasJsonAsync = ensureEASUpdateIsConfiguredInEasJsonAsync;
243
244
  /**
244
245
  * Make sure EAS Update is fully configured in the current project.
245
246
  * This goes over a checklist and performs the following checks or changes:
@@ -289,4 +290,3 @@ async function ensureEASUpdateIsConfiguredAsync({ exp: expMaybeWithoutUpdates, p
289
290
  log_1.default.newLine();
290
291
  }
291
292
  }
292
- exports.ensureEASUpdateIsConfiguredAsync = ensureEASUpdateIsConfiguredAsync;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.scheduleUpdateGroupDeletionAsync = void 0;
3
+ exports.scheduleUpdateGroupDeletionAsync = scheduleUpdateGroupDeletionAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
6
6
  const client_1 = require("../graphql/client");
@@ -21,4 +21,3 @@ async function scheduleUpdateGroupDeletionAsync(graphqlClient, { group, }) {
21
21
  .toPromise());
22
22
  return result.update.scheduleUpdateGroupDeletion;
23
23
  }
24
- exports.scheduleUpdateGroupDeletionAsync = scheduleUpdateGroupDeletionAsync;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync = void 0;
3
+ exports.getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync = getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync;
4
4
  const queries_1 = require("../branch/queries");
5
5
  const errors_1 = require("../channel/errors");
6
6
  const queries_2 = require("../channel/queries");
@@ -43,4 +43,3 @@ async function getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync(graphqlC
43
43
  }
44
44
  return branchInfo;
45
45
  }
46
- exports.getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync = getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.readChannelSafelyAsync = exports.syncUpdatesConfigurationAsync = void 0;
3
+ exports.syncUpdatesConfigurationAsync = syncUpdatesConfigurationAsync;
4
+ exports.readChannelSafelyAsync = readChannelSafelyAsync;
4
5
  const config_plugins_1 = require("@expo/config-plugins");
5
6
  const platform_1 = require("../../platform");
6
7
  const projectUtils_1 = require("../../project/projectUtils");
@@ -19,7 +20,6 @@ async function syncUpdatesConfigurationAsync({ vcsClient, projectDir, exp, workf
19
20
  const updatedExpoPlist = await config_plugins_1.IOSConfig.Updates.setUpdatesConfigAsync(projectDir, exp, expoPlist, expoUpdatesPackageVersion);
20
21
  await writeExpoPlistAsync(vcsClient, projectDir, updatedExpoPlist);
21
22
  }
22
- exports.syncUpdatesConfigurationAsync = syncUpdatesConfigurationAsync;
23
23
  async function readExpoPlistAsync(projectDir) {
24
24
  const expoPlistPath = config_plugins_1.IOSConfig.Paths.getExpoPlistPath(projectDir);
25
25
  return ((await (0, plist_1.readPlistAsync)(expoPlistPath)) ?? {});
@@ -39,4 +39,3 @@ async function readChannelSafelyAsync(projectDir) {
39
39
  return null;
40
40
  }
41
41
  }
42
- exports.readChannelSafelyAsync = readChannelSafelyAsync;
@@ -1,17 +1,19 @@
1
1
  import { UpdatePublishPlatform } from './utils';
2
2
  import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
3
3
  import { PaginatedQueryOptions } from '../commandUtils/pagination';
4
- import { RuntimeFragment, UpdateFragment } from '../graphql/generated';
4
+ import { RuntimeFragment, UpdateFragment, ViewUpdateGroupsOnAppQueryVariables, ViewUpdateGroupsOnBranchQueryVariables } from '../graphql/generated';
5
5
  export declare const UPDATES_LIMIT = 50;
6
6
  export declare const UPDATE_GROUPS_LIMIT = 25;
7
7
  export declare const RUNTIME_VERSIONS_LIMIT = 25;
8
- export declare function listAndRenderUpdateGroupsOnAppAsync(graphqlClient: ExpoGraphqlClient, { projectId, paginatedQueryOptions, }: {
8
+ export declare function listAndRenderUpdateGroupsOnAppAsync(graphqlClient: ExpoGraphqlClient, { projectId, filter, paginatedQueryOptions, }: {
9
9
  projectId: string;
10
+ filter?: ViewUpdateGroupsOnAppQueryVariables['filter'];
10
11
  paginatedQueryOptions: PaginatedQueryOptions;
11
12
  }): Promise<void>;
12
- export declare function listAndRenderUpdateGroupsOnBranchAsync(graphqlClient: ExpoGraphqlClient, { projectId, branchName, paginatedQueryOptions, }: {
13
+ export declare function listAndRenderUpdateGroupsOnBranchAsync(graphqlClient: ExpoGraphqlClient, { projectId, branchName, filter, paginatedQueryOptions, }: {
13
14
  projectId: string;
14
15
  branchName: string;
16
+ filter?: ViewUpdateGroupsOnBranchQueryVariables['filter'];
15
17
  paginatedQueryOptions: PaginatedQueryOptions;
16
18
  }): Promise<void>;
17
19
  export declare function selectRuntimeAndGetLatestUpdateGroupForEachPublishPlatformOnBranchAsync(graphqlClient: ExpoGraphqlClient, { projectId, branchName, paginatedQueryOptions, }: {
@@ -1,6 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.selectRuntimeOnBranchAsync = exports.selectUpdateGroupOnBranchAsync = exports.selectRuntimeAndGetLatestUpdateGroupForEachPublishPlatformOnBranchAsync = exports.listAndRenderUpdateGroupsOnBranchAsync = exports.listAndRenderUpdateGroupsOnAppAsync = exports.RUNTIME_VERSIONS_LIMIT = exports.UPDATE_GROUPS_LIMIT = exports.UPDATES_LIMIT = void 0;
3
+ exports.RUNTIME_VERSIONS_LIMIT = exports.UPDATE_GROUPS_LIMIT = exports.UPDATES_LIMIT = void 0;
4
+ exports.listAndRenderUpdateGroupsOnAppAsync = listAndRenderUpdateGroupsOnAppAsync;
5
+ exports.listAndRenderUpdateGroupsOnBranchAsync = listAndRenderUpdateGroupsOnBranchAsync;
6
+ exports.selectRuntimeAndGetLatestUpdateGroupForEachPublishPlatformOnBranchAsync = selectRuntimeAndGetLatestUpdateGroupForEachPublishPlatformOnBranchAsync;
7
+ exports.selectUpdateGroupOnBranchAsync = selectUpdateGroupOnBranchAsync;
8
+ exports.selectRuntimeOnBranchAsync = selectRuntimeOnBranchAsync;
4
9
  const tslib_1 = require("tslib");
5
10
  const assert_1 = tslib_1.__importDefault(require("assert"));
6
11
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
@@ -16,12 +21,13 @@ const relay_1 = require("../utils/relay");
16
21
  exports.UPDATES_LIMIT = 50;
17
22
  exports.UPDATE_GROUPS_LIMIT = 25;
18
23
  exports.RUNTIME_VERSIONS_LIMIT = 25;
19
- async function listAndRenderUpdateGroupsOnAppAsync(graphqlClient, { projectId, paginatedQueryOptions, }) {
24
+ async function listAndRenderUpdateGroupsOnAppAsync(graphqlClient, { projectId, filter, paginatedQueryOptions, }) {
20
25
  if (paginatedQueryOptions.nonInteractive) {
21
26
  const updateGroups = await queryUpdateGroupsOnAppAsync(graphqlClient, {
22
27
  limit: paginatedQueryOptions.limit ?? exports.UPDATE_GROUPS_LIMIT,
23
28
  offset: paginatedQueryOptions.offset,
24
29
  appId: projectId,
30
+ filter,
25
31
  });
26
32
  renderUpdateGroupsOnApp({ updateGroups, paginatedQueryOptions });
27
33
  }
@@ -29,7 +35,7 @@ async function listAndRenderUpdateGroupsOnAppAsync(graphqlClient, { projectId, p
29
35
  await (0, queries_1.paginatedQueryWithConfirmPromptAsync)({
30
36
  limit: paginatedQueryOptions.limit ?? exports.UPDATE_GROUPS_LIMIT,
31
37
  offset: paginatedQueryOptions.offset,
32
- queryToPerform: (limit, offset) => queryUpdateGroupsOnAppAsync(graphqlClient, { limit, offset, appId: projectId }),
38
+ queryToPerform: (limit, offset) => queryUpdateGroupsOnAppAsync(graphqlClient, { limit, offset, appId: projectId, filter }),
33
39
  promptOptions: {
34
40
  title: 'Load more update groups?',
35
41
  renderListItems: updateGroups => {
@@ -39,14 +45,14 @@ async function listAndRenderUpdateGroupsOnAppAsync(graphqlClient, { projectId, p
39
45
  });
40
46
  }
41
47
  }
42
- exports.listAndRenderUpdateGroupsOnAppAsync = listAndRenderUpdateGroupsOnAppAsync;
43
- async function listAndRenderUpdateGroupsOnBranchAsync(graphqlClient, { projectId, branchName, paginatedQueryOptions, }) {
48
+ async function listAndRenderUpdateGroupsOnBranchAsync(graphqlClient, { projectId, branchName, filter, paginatedQueryOptions, }) {
44
49
  if (paginatedQueryOptions.nonInteractive) {
45
50
  const updateGroups = await queryUpdateGroupsOnBranchAsync(graphqlClient, {
46
51
  limit: paginatedQueryOptions.limit ?? exports.UPDATE_GROUPS_LIMIT,
47
52
  offset: paginatedQueryOptions.offset,
48
53
  appId: projectId,
49
54
  branchName,
55
+ filter,
50
56
  });
51
57
  renderUpdateGroupsOnBranch({ updateGroups, branchName, paginatedQueryOptions });
52
58
  }
@@ -59,6 +65,7 @@ async function listAndRenderUpdateGroupsOnBranchAsync(graphqlClient, { projectId
59
65
  offset,
60
66
  appId: projectId,
61
67
  branchName,
68
+ filter,
62
69
  }),
63
70
  promptOptions: {
64
71
  title: 'Load more update groups?',
@@ -69,7 +76,6 @@ async function listAndRenderUpdateGroupsOnBranchAsync(graphqlClient, { projectId
69
76
  });
70
77
  }
71
78
  }
72
- exports.listAndRenderUpdateGroupsOnBranchAsync = listAndRenderUpdateGroupsOnBranchAsync;
73
79
  async function selectRuntimeAndGetLatestUpdateGroupForEachPublishPlatformOnBranchAsync(graphqlClient, { projectId, branchName, paginatedQueryOptions, }) {
74
80
  if (paginatedQueryOptions.nonInteractive) {
75
81
  throw new Error('Unable to select an update in non-interactive mode.');
@@ -104,7 +110,6 @@ async function selectRuntimeAndGetLatestUpdateGroupForEachPublishPlatformOnBranc
104
110
  }))[0],
105
111
  };
106
112
  }
107
- exports.selectRuntimeAndGetLatestUpdateGroupForEachPublishPlatformOnBranchAsync = selectRuntimeAndGetLatestUpdateGroupForEachPublishPlatformOnBranchAsync;
108
113
  async function selectUpdateGroupOnBranchAsync(graphqlClient, { projectId, branchName, paginatedQueryOptions, }) {
109
114
  if (paginatedQueryOptions.nonInteractive) {
110
115
  throw new Error('Unable to select an update in non-interactive mode.');
@@ -131,7 +136,6 @@ async function selectUpdateGroupOnBranchAsync(graphqlClient, { projectId, branch
131
136
  }
132
137
  return updateGroup;
133
138
  }
134
- exports.selectUpdateGroupOnBranchAsync = selectUpdateGroupOnBranchAsync;
135
139
  async function queryUpdateGroupsOnBranchAsync(graphqlClient, args) {
136
140
  return await UpdateQuery_1.UpdateQuery.viewUpdateGroupsOnBranchAsync(graphqlClient, args);
137
141
  }
@@ -200,4 +204,3 @@ async function selectRuntimeOnBranchAsync(graphqlClient, { appId, branchName, ba
200
204
  pageSize: batchSize,
201
205
  });
202
206
  }
203
- exports.selectRuntimeOnBranchAsync = selectRuntimeOnBranchAsync;
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getOrAskUpdateMessageAsync = exports.getUpdateGroupOrAskForUpdateGroupAsync = exports.askUpdateGroupForEachPublishPlatformFilteringByRuntimeVersionAsync = exports.getUpdateGroupAsync = exports.republishAsync = void 0;
3
+ exports.republishAsync = republishAsync;
4
+ exports.getUpdateGroupAsync = getUpdateGroupAsync;
5
+ exports.askUpdateGroupForEachPublishPlatformFilteringByRuntimeVersionAsync = askUpdateGroupForEachPublishPlatformFilteringByRuntimeVersionAsync;
6
+ exports.getUpdateGroupOrAskForUpdateGroupAsync = getUpdateGroupOrAskForUpdateGroupAsync;
7
+ exports.getOrAskUpdateMessageAsync = getOrAskUpdateMessageAsync;
4
8
  const tslib_1 = require("tslib");
5
9
  const assert_1 = tslib_1.__importDefault(require("assert"));
6
10
  const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
@@ -181,7 +185,6 @@ async function republishAsync({ graphqlClient, app, updatesToPublish, targetBran
181
185
  { label: 'EAS Dashboard', value: (0, log_1.link)(updateGroupUrl, { dim: false }) },
182
186
  ]));
183
187
  }
184
- exports.republishAsync = republishAsync;
185
188
  async function getUpdateGroupAsync(graphqlClient, groupId) {
186
189
  const updateGroup = await UpdateQuery_1.UpdateQuery.viewUpdateGroupAsync(graphqlClient, {
187
190
  groupId,
@@ -193,7 +196,6 @@ async function getUpdateGroupAsync(graphqlClient, groupId) {
193
196
  branchName: update.branch.name,
194
197
  }));
195
198
  }
196
- exports.getUpdateGroupAsync = getUpdateGroupAsync;
197
199
  async function askUpdateGroupForEachPublishPlatformFilteringByRuntimeVersionAsync(graphqlClient, projectId, options) {
198
200
  if (options.nonInteractive) {
199
201
  throw new Error('Must supply --group when in non-interactive mode');
@@ -261,7 +263,6 @@ async function askUpdateGroupForEachPublishPlatformFilteringByRuntimeVersionAsyn
261
263
  throw new Error('Must choose update via channel or branch');
262
264
  }
263
265
  }
264
- exports.askUpdateGroupForEachPublishPlatformFilteringByRuntimeVersionAsync = askUpdateGroupForEachPublishPlatformFilteringByRuntimeVersionAsync;
265
266
  async function getUpdateGroupOrAskForUpdateGroupAsync(graphqlClient, projectId, options) {
266
267
  if (options.groupId) {
267
268
  return await getUpdateGroupAsync(graphqlClient, options.groupId);
@@ -332,7 +333,6 @@ async function getUpdateGroupOrAskForUpdateGroupAsync(graphqlClient, projectId,
332
333
  throw new Error('Must choose update via channel or branch');
333
334
  }
334
335
  }
335
- exports.getUpdateGroupOrAskForUpdateGroupAsync = getUpdateGroupOrAskForUpdateGroupAsync;
336
336
  async function askUpdateGroupForEachPublishPlatformFromBranchNameFilteringByRuntimeVersionAsync(graphqlClient, { projectId, branchName, json, nonInteractive, }) {
337
337
  const publishPlatformToLatestUpdateGroup = await (0, queries_1.selectRuntimeAndGetLatestUpdateGroupForEachPublishPlatformOnBranchAsync)(graphqlClient, {
338
338
  projectId,
@@ -407,7 +407,6 @@ async function getOrAskUpdateMessageAsync(updateGroup, options) {
407
407
  });
408
408
  return sanitizeUpdateMessage(updateMessage);
409
409
  }
410
- exports.getOrAskUpdateMessageAsync = getOrAskUpdateMessageAsync;
411
410
  function sanitizeUpdateMessage(updateMessage) {
412
411
  if (updateMessage !== (0, utils_1.truncateString)(updateMessage, 1024)) {
413
412
  log_1.default.warn('Update message exceeds the allowed 1024 character limit, truncated update message.');
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.publishRollBackToEmbeddedUpdateAsync = void 0;
3
+ exports.publishRollBackToEmbeddedUpdateAsync = publishRollBackToEmbeddedUpdateAsync;
4
4
  const tslib_1 = require("tslib");
5
5
  const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
6
6
  const utils_1 = require("./utils");
@@ -73,7 +73,6 @@ async function publishRollBackToEmbeddedUpdateAsync({ graphqlClient, projectId,
73
73
  }
74
74
  }
75
75
  }
76
- exports.publishRollBackToEmbeddedUpdateAsync = publishRollBackToEmbeddedUpdateAsync;
77
76
  async function publishRollbacksAsync({ graphqlClient, updateMessage, branchId, codeSigningInfo, runtimeToPlatformsAndFingerprintInfoMapping, platforms, }) {
78
77
  const rollbackInfoGroups = Object.fromEntries(platforms.map(platform => [platform, true]));
79
78
  // Sort the updates into different groups based on their platform specific runtime versions