eas-cli 21.8.0 → 22.0.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 (56) hide show
  1. package/README.md +166 -156
  2. package/build/build/android/prepareJob.js +1 -0
  3. package/build/build/ios/prepareJob.js +1 -0
  4. package/build/build/metadata.js +0 -1
  5. package/build/build/runBuildAndSubmit.js +1 -1
  6. package/build/build/utils/formatBuild.js +2 -2
  7. package/build/build/utils/url.js +3 -5
  8. package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +10 -3
  9. package/build/commandUtils/new/configs.js +1 -1
  10. package/build/commands/account/view.js +1 -2
  11. package/build/commands/build/cancel.js +3 -3
  12. package/build/commands/build/download.js +1 -1
  13. package/build/commands/go.js +2 -45
  14. package/build/commands/project/icon/set.js +4 -40
  15. package/build/commands/project/init.d.ts +1 -0
  16. package/build/commands/project/init.js +13 -0
  17. package/build/commands/submit.d.ts +1 -0
  18. package/build/commands/submit.js +8 -1
  19. package/build/commands/update/index.js +1 -1
  20. package/build/commands/update/revert-update-rollout.js +1 -1
  21. package/build/commands/update/rollback.js +1 -1
  22. package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.js +20 -13
  23. package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.d.ts +14 -2
  24. package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.js +47 -7
  25. package/build/credentials/ios/appstore/ensureTestFlightGroup.d.ts +3 -1
  26. package/build/credentials/ios/appstore/ensureTestFlightGroup.js +14 -11
  27. package/build/graphql/generated.d.ts +596 -922
  28. package/build/graphql/generated.js +12 -2
  29. package/build/graphql/queries/ChannelInsightsQuery.js +4 -1
  30. package/build/graphql/types/Account.js +1 -4
  31. package/build/graphql/types/Build.js +13 -8
  32. package/build/graphql/types/Submission.js +0 -1
  33. package/build/graphql/types/Update.js +4 -1
  34. package/build/project/accountSelection.js +1 -3
  35. package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.js +3 -5
  36. package/build/project/projectIcon.d.ts +40 -0
  37. package/build/project/projectIcon.js +132 -0
  38. package/build/project/projectNotConfiguredError.d.ts +17 -0
  39. package/build/project/projectNotConfiguredError.js +24 -0
  40. package/build/submit/ArchiveSource.js +3 -3
  41. package/build/submit/context.d.ts +2 -0
  42. package/build/submit/context.js +1 -0
  43. package/build/submit/ios/AppProduce.js +1 -1
  44. package/build/submit/ios/IosSubmitCommand.js +2 -0
  45. package/build/submit/ios/ensureTestFlightSetup.d.ts +7 -0
  46. package/build/submit/ios/ensureTestFlightSetup.js +81 -0
  47. package/build/submit/status.js +1 -1
  48. package/build/submit/utils/formatSubmission.js +2 -2
  49. package/build/update/queries.js +1 -1
  50. package/build/update/republish.js +3 -3
  51. package/build/update/roll-back-to-embedded.js +1 -1
  52. package/build/update/utils.d.ts +2 -1
  53. package/build/update/utils.js +7 -7
  54. package/build/user/User.js +1 -1
  55. package/oclif.manifest.json +2323 -2311
  56. package/package.json +6 -6
@@ -7,7 +7,8 @@ export type FormatUpdateParameter = Pick<Update, 'id' | 'createdAt' | 'message'>
7
7
  };
8
8
  export type UpdateJsonInfo = {
9
9
  branch: string;
10
- } & Pick<UpdateFragment, 'id' | 'createdAt' | 'group' | 'message' | 'runtimeVersion' | 'platform' | 'manifestPermalink' | 'gitCommitHash'>;
10
+ runtimeVersion: string;
11
+ } & Pick<UpdateFragment, 'id' | 'createdAt' | 'group' | 'message' | 'platform' | 'manifestPermalink' | 'gitCommitHash'>;
11
12
  export type UpdateGroupDescription = FormatUpdateParameter & {
12
13
  branch: string;
13
14
  group: string;
@@ -106,7 +106,7 @@ function ensureValidVersions(exp, platform) {
106
106
  }
107
107
  }
108
108
  function formatUpdateTitle(update) {
109
- const { message, createdAt, actor, runtimeVersion } = update;
109
+ const { message, createdAt, actor, runtime } = update;
110
110
  let actorName;
111
111
  switch (actor?.__typename) {
112
112
  case 'User':
@@ -124,7 +124,7 @@ function formatUpdateTitle(update) {
124
124
  actorName = 'unknown';
125
125
  }
126
126
  }
127
- return `[${(0, dateformat_1.default)(createdAt, 'mmm dd HH:MM')} by ${actorName}, runtimeVersion: ${runtimeVersion}] ${message}`;
127
+ return `[${(0, dateformat_1.default)(createdAt, 'mmm dd HH:MM')} by ${actorName}, runtimeVersion: ${runtime.version}] ${message}`;
128
128
  }
129
129
  function getUpdateJsonInfosForUpdates(updates) {
130
130
  return updates.map(update => ({
@@ -133,7 +133,7 @@ function getUpdateJsonInfosForUpdates(updates) {
133
133
  group: update.group,
134
134
  branch: update.branch.name,
135
135
  message: update.message,
136
- runtimeVersion: update.runtimeVersion,
136
+ runtimeVersion: update.runtime.version,
137
137
  platform: update.platform,
138
138
  manifestPermalink: update.manifestPermalink,
139
139
  isRollBackToEmbedded: update.isRollBackToEmbedded,
@@ -143,7 +143,7 @@ function getUpdateJsonInfosForUpdates(updates) {
143
143
  function getUpdateGroupDescriptions(updateGroups) {
144
144
  return updateGroups.map(updateGroup => ({
145
145
  message: formatUpdateMessage(updateGroup[0]),
146
- runtimeVersion: updateGroup[0].runtimeVersion,
146
+ runtimeVersion: updateGroup[0].runtime.version,
147
147
  isRollBackToEmbedded: updateGroup[0].isRollBackToEmbedded,
148
148
  rolloutPercentage: updateGroup[0].rolloutPercentage ?? undefined,
149
149
  codeSigningKey: updateGroup[0].codeSigningInfo?.keyid,
@@ -155,7 +155,7 @@ function getUpdateGroupDescriptionsWithBranch(updateGroups) {
155
155
  return updateGroups.map(updateGroup => ({
156
156
  branch: updateGroup[0].branch.name,
157
157
  message: formatUpdateMessage(updateGroup[0]),
158
- runtimeVersion: updateGroup[0].runtimeVersion,
158
+ runtimeVersion: updateGroup[0].runtime.version,
159
159
  isRollBackToEmbedded: updateGroup[0].isRollBackToEmbedded,
160
160
  rolloutPercentage: updateGroup[0].rolloutPercentage ?? undefined,
161
161
  codeSigningKey: updateGroup[0].codeSigningInfo?.keyid,
@@ -172,7 +172,7 @@ function getBranchDescription(branch) {
172
172
  branch: branch.name,
173
173
  update: {
174
174
  message: formatUpdateMessage(latestUpdate),
175
- runtimeVersion: latestUpdate.runtimeVersion,
175
+ runtimeVersion: latestUpdate.runtime.version,
176
176
  isRollBackToEmbedded: latestUpdate.isRollBackToEmbedded,
177
177
  rolloutPercentage: latestUpdate.rolloutPercentage ?? undefined,
178
178
  codeSigningKey: latestUpdate.codeSigningInfo?.keyid,
@@ -211,7 +211,7 @@ async function prewarmDiffingAsync(graphqlClient, appId, newUpdates) {
211
211
  appId,
212
212
  branchName: update.branch.name,
213
213
  platform: exports.updatePublishPlatformToAppPlatform[updatePublishPlatform],
214
- runtimeVersion: update.runtimeVersion,
214
+ runtimeVersion: update.runtime.version,
215
215
  limit: 2,
216
216
  });
217
217
  if (updateIds.length !== 2) {
@@ -10,7 +10,7 @@ const generated_1 = require("../graphql/generated");
10
10
  * then organization accounts.
11
11
  */
12
12
  function getCreatableAccountNames(actor) {
13
- const creatableAccounts = actor.accounts.filter(a => a.users.find(it => it.actor.id === actor.id)?.role !== generated_1.Role.ViewOnly);
13
+ const creatableAccounts = actor.accounts.filter(a => a.viewerUserPermission.role !== generated_1.Role.ViewOnly);
14
14
  if (actor.__typename === 'Robot') {
15
15
  return creatableAccounts.map(it => it.name);
16
16
  }