eas-cli 0.34.1 → 0.37.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 (152) hide show
  1. package/README.md +27 -27
  2. package/build/analytics/common.d.ts +8 -0
  3. package/build/analytics/common.js +19 -0
  4. package/build/analytics/events.d.ts +43 -0
  5. package/build/analytics/events.js +51 -0
  6. package/build/{analytics.d.ts → analytics/rudderstackClient.d.ts} +0 -0
  7. package/build/{analytics.js → analytics/rudderstackClient.js} +2 -2
  8. package/build/api.js +3 -3
  9. package/build/build/build.js +18 -27
  10. package/build/build/context.d.ts +1 -1
  11. package/build/build/context.js +2 -2
  12. package/build/build/ios/UpdatesModule.js +3 -2
  13. package/build/build/ios/credentials.js +3 -3
  14. package/build/build/ios/version.js +7 -3
  15. package/build/build/local.js +18 -27
  16. package/build/build/types.d.ts +0 -1
  17. package/build/build/utils/devClient.d.ts +1 -2
  18. package/build/build/utils/formatBuild.js +1 -9
  19. package/build/build/utils/repository.js +1 -0
  20. package/build/build/utils/url.js +1 -1
  21. package/build/commandUtils/EasCommand.js +4 -4
  22. package/build/commands/branch/publish.js +24 -2
  23. package/build/commands/build/index.js +15 -12
  24. package/build/commands/channel/create.d.ts +6 -0
  25. package/build/commands/channel/create.js +2 -0
  26. package/build/commands/secret/create.js +0 -6
  27. package/build/commands/secret/delete.js +1 -7
  28. package/build/commands/secret/list.js +0 -6
  29. package/build/commands/submit.js +2 -11
  30. package/build/credentials/android/AndroidCredentialsProvider.js +2 -2
  31. package/build/credentials/android/actions/RemoveFcm.js +4 -4
  32. package/build/credentials/android/actions/{SetupBuildCredentials.d.ts → SetUpBuildCredentials.d.ts} +1 -1
  33. package/build/credentials/android/actions/{SetupBuildCredentials.js → SetUpBuildCredentials.js} +3 -3
  34. package/build/credentials/android/actions/{SetupBuildCredentialsFromCredentialsJson.d.ts → SetUpBuildCredentialsFromCredentialsJson.d.ts} +1 -1
  35. package/build/credentials/android/actions/{SetupBuildCredentialsFromCredentialsJson.js → SetUpBuildCredentialsFromCredentialsJson.js} +3 -3
  36. package/build/credentials/android/actions/{SetupGoogleServiceAccountKey.d.ts → SetUpGoogleServiceAccountKey.d.ts} +1 -1
  37. package/build/credentials/android/actions/{SetupGoogleServiceAccountKey.js → SetUpGoogleServiceAccountKey.js} +3 -3
  38. package/build/credentials/android/utils/keystore.js +67 -32
  39. package/build/credentials/errors.d.ts +4 -0
  40. package/build/credentials/errors.js +8 -1
  41. package/build/credentials/ios/IosCredentialsProvider.js +4 -4
  42. package/build/credentials/ios/actions/AscApiKeyUtils.d.ts +17 -1
  43. package/build/credentials/ios/actions/AscApiKeyUtils.js +158 -24
  44. package/build/credentials/ios/actions/AssignAscApiKey.d.ts +9 -0
  45. package/build/credentials/ios/actions/AssignAscApiKey.js +29 -0
  46. package/build/credentials/ios/actions/CreateAscApiKey.d.ts +9 -0
  47. package/build/credentials/ios/actions/CreateAscApiKey.js +21 -0
  48. package/build/credentials/ios/actions/DistributionCertificateUtils.js +1 -1
  49. package/build/credentials/ios/actions/PushKeyUtils.js +1 -1
  50. package/build/credentials/ios/actions/RemoveAscApiKey.d.ts +14 -0
  51. package/build/credentials/ios/actions/RemoveAscApiKey.js +55 -0
  52. package/build/credentials/ios/actions/{SetupAdhocProvisioningProfile.d.ts → SetUpAdhocProvisioningProfile.d.ts} +1 -1
  53. package/build/credentials/ios/actions/{SetupAdhocProvisioningProfile.js → SetUpAdhocProvisioningProfile.js} +5 -5
  54. package/build/credentials/ios/actions/SetUpAscApiKey.d.ts +21 -0
  55. package/build/credentials/ios/actions/SetUpAscApiKey.js +114 -0
  56. package/build/credentials/ios/actions/{SetupBuildCredentials.d.ts → SetUpBuildCredentials.d.ts} +1 -1
  57. package/build/credentials/ios/actions/{SetupBuildCredentials.js → SetUpBuildCredentials.js} +5 -5
  58. package/build/credentials/ios/actions/{SetupBuildCredentialsFromCredentialsJson.d.ts → SetUpBuildCredentialsFromCredentialsJson.d.ts} +1 -1
  59. package/build/credentials/ios/actions/{SetupBuildCredentialsFromCredentialsJson.js → SetUpBuildCredentialsFromCredentialsJson.js} +5 -5
  60. package/build/credentials/ios/actions/{SetupDistributionCertificate.d.ts → SetUpDistributionCertificate.d.ts} +1 -1
  61. package/build/credentials/ios/actions/{SetupDistributionCertificate.js → SetUpDistributionCertificate.js} +3 -3
  62. package/build/credentials/ios/actions/{SetupInternalProvisioningProfile.d.ts → SetUpInternalProvisioningProfile.d.ts} +1 -1
  63. package/build/credentials/ios/actions/{SetupInternalProvisioningProfile.js → SetUpInternalProvisioningProfile.js} +7 -7
  64. package/build/credentials/ios/actions/{SetupProvisioningProfile.d.ts → SetUpProvisioningProfile.d.ts} +1 -1
  65. package/build/credentials/ios/actions/{SetupProvisioningProfile.js → SetUpProvisioningProfile.js} +5 -5
  66. package/build/credentials/ios/actions/{SetupPushKey.d.ts → SetUpPushKey.d.ts} +1 -1
  67. package/build/credentials/ios/actions/{SetupPushKey.js → SetUpPushKey.js} +3 -3
  68. package/build/credentials/ios/actions/SetUpSubmissionCredentials.d.ts +10 -0
  69. package/build/credentials/ios/actions/SetUpSubmissionCredentials.js +53 -0
  70. package/build/credentials/ios/actions/{SetupTargetBuildCredentials.d.ts → SetUpTargetBuildCredentials.d.ts} +1 -1
  71. package/build/credentials/ios/actions/{SetupTargetBuildCredentials.js → SetUpTargetBuildCredentials.js} +10 -10
  72. package/build/credentials/ios/actions/{SetupTargetBuildCredentialsFromCredentialsJson.d.ts → SetUpTargetBuildCredentialsFromCredentialsJson.d.ts} +1 -1
  73. package/build/credentials/ios/actions/{SetupTargetBuildCredentialsFromCredentialsJson.js → SetUpTargetBuildCredentialsFromCredentialsJson.js} +3 -3
  74. package/build/credentials/ios/api/GraphqlClient.d.ts +8 -2
  75. package/build/credentials/ios/api/GraphqlClient.js +74 -2
  76. package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.d.ts +5 -0
  77. package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.js +54 -0
  78. package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.d.ts +1 -0
  79. package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.js +25 -0
  80. package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.d.ts +4 -0
  81. package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.js +33 -0
  82. package/build/credentials/ios/appstore/AppStoreApi.d.ts +1 -1
  83. package/build/credentials/ios/appstore/Credentials.types.d.ts +1 -0
  84. package/build/credentials/ios/appstore/ascApiKey.d.ts +1 -1
  85. package/build/credentials/ios/appstore/ascApiKey.js +11 -1
  86. package/build/credentials/ios/appstore/entitlements.d.ts +2 -2
  87. package/build/credentials/ios/appstore/entitlements.js +28 -21
  88. package/build/credentials/ios/credentials.d.ts +2 -1
  89. package/build/credentials/ios/credentials.js +7 -2
  90. package/build/credentials/ios/utils/printCredentials.js +1 -1
  91. package/build/credentials/ios/validators/validateAscApiKey.d.ts +5 -0
  92. package/build/credentials/ios/validators/validateAscApiKey.js +21 -0
  93. package/build/credentials/manager/Actions.d.ts +20 -15
  94. package/build/credentials/manager/Actions.js +20 -15
  95. package/build/credentials/manager/AndroidActions.js +6 -6
  96. package/build/credentials/manager/IosActions.d.ts +1 -0
  97. package/build/credentials/manager/IosActions.js +40 -5
  98. package/build/credentials/manager/ManageAndroid.js +6 -6
  99. package/build/credentials/manager/ManageIos.js +56 -17
  100. package/build/credentials/utils/promptForCredentials.d.ts +2 -1
  101. package/build/credentials/utils/promptForCredentials.js +3 -2
  102. package/build/graphql/client.js +1 -1
  103. package/build/graphql/generated.d.ts +208 -55
  104. package/build/graphql/mutations/KeystoreGenerationUrlMutation.d.ts +3 -0
  105. package/build/graphql/mutations/KeystoreGenerationUrlMutation.js +23 -0
  106. package/build/graphql/types/Build.js +1 -6
  107. package/build/project/android/applicationId.d.ts +6 -0
  108. package/build/project/android/applicationId.js +39 -29
  109. package/build/project/android/gradle.js +3 -2
  110. package/build/project/android/gradleUtils.d.ts +1 -0
  111. package/build/project/ios/bundleIdentifier.d.ts +6 -1
  112. package/build/project/ios/bundleIdentifier.js +29 -18
  113. package/build/submit/ArchiveSource.js +2 -1
  114. package/build/submit/BaseSubmitter.d.ts +20 -4
  115. package/build/submit/BaseSubmitter.js +34 -1
  116. package/build/submit/android/AndroidSubmitCommand.d.ts +1 -2
  117. package/build/submit/android/AndroidSubmitCommand.js +22 -35
  118. package/build/submit/android/AndroidSubmitter.d.ts +12 -8
  119. package/build/submit/android/AndroidSubmitter.js +30 -21
  120. package/build/submit/android/ServiceAccountSource.d.ts +3 -2
  121. package/build/submit/android/ServiceAccountSource.js +18 -6
  122. package/build/submit/context.d.ts +2 -0
  123. package/build/submit/context.js +14 -0
  124. package/build/submit/ios/AppSpecificPasswordSource.d.ts +9 -6
  125. package/build/submit/ios/AppSpecificPasswordSource.js +42 -20
  126. package/build/submit/ios/AscApiKeySource.d.ts +9 -3
  127. package/build/submit/ios/AscApiKeySource.js +10 -10
  128. package/build/submit/ios/CredentialsServiceSource.d.ts +18 -0
  129. package/build/submit/ios/CredentialsServiceSource.js +63 -0
  130. package/build/submit/ios/IosSubmitCommand.d.ts +2 -2
  131. package/build/submit/ios/IosSubmitCommand.js +56 -56
  132. package/build/submit/ios/IosSubmitter.d.ts +20 -7
  133. package/build/submit/ios/IosSubmitter.js +79 -43
  134. package/build/submit/submit.js +13 -4
  135. package/build/submit/utils/errors.js +2 -0
  136. package/build/user/User.js +1 -1
  137. package/build/{build/ios → utils}/plist.d.ts +1 -1
  138. package/build/{build/ios → utils}/plist.js +8 -2
  139. package/build/utils/profiles.d.ts +9 -4
  140. package/build/utils/profiles.js +14 -7
  141. package/build/vcs/clients/git.d.ts +2 -1
  142. package/build/vcs/clients/git.js +83 -5
  143. package/build/vcs/vcs.d.ts +4 -3
  144. package/build/vcs/vcs.js +3 -3
  145. package/oclif.manifest.json +1 -1
  146. package/package.json +4 -4
  147. package/build/build/utils/analytics.d.ts +0 -22
  148. package/build/build/utils/analytics.js +0 -28
  149. package/build/project/isEasEnabledForProject.d.ts +0 -8
  150. package/build/project/isEasEnabledForProject.js +0 -33
  151. package/build/submit/android/AndroidPackageSource.d.ts +0 -17
  152. package/build/submit/android/AndroidPackageSource.js +0 -27
@@ -1,10 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deletePushKeyAsync = exports.getPushKeyForAppAsync = exports.getPushKeysForAccountAsync = exports.createPushKeyAsync = exports.deleteDistributionCertificateAsync = exports.createDistributionCertificateAsync = exports.getDistributionCertificatesForAccountAsync = exports.getDistributionCertificateForAppAsync = exports.deleteProvisioningProfilesAsync = exports.updateProvisioningProfileAsync = exports.getProvisioningProfileAsync = exports.createProvisioningProfileAsync = exports.getDevicesForAppleTeamAsync = exports.createOrGetExistingAppleAppIdentifierAsync = exports.createOrGetExistingAppleTeamAsync = exports.updateIosAppCredentialsAsync = exports.createOrGetIosAppCredentialsWithCommonFieldsAsync = exports.getIosAppCredentialsWithCommonFieldsAsync = exports.getIosAppCredentialsWithBuildCredentialsAsync = exports.createOrUpdateIosAppBuildCredentialsAsync = void 0;
3
+ exports.deleteAscApiKeyAsync = exports.getAscApiKeyForAppSubmissionsAsync = exports.getAscApiKeysForAccountAsync = exports.createAscApiKeyAsync = exports.deletePushKeyAsync = exports.getPushKeyForAppAsync = exports.getPushKeysForAccountAsync = exports.createPushKeyAsync = exports.deleteDistributionCertificateAsync = exports.createDistributionCertificateAsync = exports.getDistributionCertificatesForAccountAsync = exports.getDistributionCertificateForAppAsync = exports.deleteProvisioningProfilesAsync = exports.updateProvisioningProfileAsync = exports.getProvisioningProfileAsync = exports.createProvisioningProfileAsync = exports.getDevicesForAppleTeamAsync = exports.createOrGetExistingAppleAppIdentifierAsync = exports.createOrGetExistingAppleTeamAsync = exports.updateIosAppCredentialsAsync = exports.createOrGetIosAppCredentialsWithCommonFieldsAsync = exports.getIosAppCredentialsWithCommonFieldsAsync = exports.getIosAppCredentialsWithBuildCredentialsAsync = exports.createOrUpdateIosAppBuildCredentialsAsync = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const apple_utils_1 = require("@expo/apple-utils");
5
6
  const nullthrows_1 = (0, tslib_1.__importDefault)(require("nullthrows"));
7
+ const generated_1 = require("../../../graphql/generated");
6
8
  const bundleIdentifier_1 = require("../../../project/ios/bundleIdentifier");
7
9
  const errors_1 = require("../errors");
10
+ const AppStoreConnectApiKeyMutation_1 = require("./graphql/mutations/AppStoreConnectApiKeyMutation");
8
11
  const AppleAppIdentifierMutation_1 = require("./graphql/mutations/AppleAppIdentifierMutation");
9
12
  const AppleDistributionCertificateMutation_1 = require("./graphql/mutations/AppleDistributionCertificateMutation");
10
13
  const AppleProvisioningProfileMutation_1 = require("./graphql/mutations/AppleProvisioningProfileMutation");
@@ -13,6 +16,7 @@ const AppleTeamMutation_1 = require("./graphql/mutations/AppleTeamMutation");
13
16
  const IosAppBuildCredentialsMutation_1 = require("./graphql/mutations/IosAppBuildCredentialsMutation");
14
17
  const IosAppCredentialsMutation_1 = require("./graphql/mutations/IosAppCredentialsMutation");
15
18
  const AppQuery_1 = require("./graphql/queries/AppQuery");
19
+ const AppStoreConnectApiKeyQuery_1 = require("./graphql/queries/AppStoreConnectApiKeyQuery");
16
20
  const AppleAppIdentifierQuery_1 = require("./graphql/queries/AppleAppIdentifierQuery");
17
21
  const AppleDeviceQuery_1 = require("./graphql/queries/AppleDeviceQuery");
18
22
  const AppleDistributionCertificateQuery_1 = require("./graphql/queries/AppleDistributionCertificateQuery");
@@ -82,11 +86,15 @@ async function createOrGetIosAppCredentialsWithCommonFieldsAsync(appLookupParams
82
86
  return await IosAppCredentialsMutation_1.IosAppCredentialsMutation.createIosAppCredentialsAsync({ appleTeamId: appleTeam === null || appleTeam === void 0 ? void 0 : appleTeam.id }, app.id, appleAppIdentifier.id);
83
87
  }
84
88
  exports.createOrGetIosAppCredentialsWithCommonFieldsAsync = createOrGetIosAppCredentialsWithCommonFieldsAsync;
85
- async function updateIosAppCredentialsAsync(appCredentials, { applePushKeyId, }) {
89
+ async function updateIosAppCredentialsAsync(appCredentials, { applePushKeyId, ascApiKeyIdForSubmissions, }) {
86
90
  let updatedAppCredentials = appCredentials;
87
91
  if (applePushKeyId) {
88
92
  updatedAppCredentials = await IosAppCredentialsMutation_1.IosAppCredentialsMutation.setPushKeyAsync(updatedAppCredentials.id, applePushKeyId);
89
93
  }
94
+ if (ascApiKeyIdForSubmissions) {
95
+ updatedAppCredentials =
96
+ await IosAppCredentialsMutation_1.IosAppCredentialsMutation.setAppStoreConnectApiKeyForSubmissionsAsync(updatedAppCredentials.id, ascApiKeyIdForSubmissions);
97
+ }
90
98
  return updatedAppCredentials;
91
99
  }
92
100
  exports.updateIosAppCredentialsAsync = updateIosAppCredentialsAsync;
@@ -224,4 +232,68 @@ async function deletePushKeyAsync(pushKeyId) {
224
232
  return await ApplePushKeyMutation_1.ApplePushKeyMutation.deleteApplePushKeyAsync(pushKeyId);
225
233
  }
226
234
  exports.deletePushKeyAsync = deletePushKeyAsync;
235
+ async function createAscApiKeyAsync(account, ascApiKey) {
236
+ var _a, _b, _c;
237
+ const maybeAppleTeam = ascApiKey.teamId
238
+ ? await createOrGetExistingAppleTeamAsync(account, {
239
+ appleTeamIdentifier: ascApiKey.teamId,
240
+ appleTeamName: ascApiKey.teamName,
241
+ })
242
+ : null;
243
+ return await AppStoreConnectApiKeyMutation_1.AppStoreConnectApiKeyMutation.createAppStoreConnectApiKeyAsync({
244
+ issuerIdentifier: ascApiKey.issuerId,
245
+ keyIdentifier: ascApiKey.keyId,
246
+ keyP8: ascApiKey.keyP8,
247
+ name: (_a = ascApiKey.name) !== null && _a !== void 0 ? _a : null,
248
+ roles: (_c = (_b = ascApiKey.roles) === null || _b === void 0 ? void 0 : _b.map(role => convertUserRoleToGraphqlType(role))) !== null && _c !== void 0 ? _c : null,
249
+ appleTeamId: maybeAppleTeam ? maybeAppleTeam.id : null,
250
+ }, account.id);
251
+ }
252
+ exports.createAscApiKeyAsync = createAscApiKeyAsync;
253
+ async function getAscApiKeysForAccountAsync(account) {
254
+ return await AppStoreConnectApiKeyQuery_1.AppStoreConnectApiKeyQuery.getAllForAccountAsync(account.name);
255
+ }
256
+ exports.getAscApiKeysForAccountAsync = getAscApiKeysForAccountAsync;
257
+ async function getAscApiKeyForAppSubmissionsAsync(appLookupParams) {
258
+ var _a;
259
+ const maybeIosAppCredentials = await getIosAppCredentialsWithCommonFieldsAsync(appLookupParams);
260
+ return (_a = maybeIosAppCredentials === null || maybeIosAppCredentials === void 0 ? void 0 : maybeIosAppCredentials.appStoreConnectApiKeyForSubmissions) !== null && _a !== void 0 ? _a : null;
261
+ }
262
+ exports.getAscApiKeyForAppSubmissionsAsync = getAscApiKeyForAppSubmissionsAsync;
263
+ async function deleteAscApiKeyAsync(ascApiKeyId) {
264
+ return await AppStoreConnectApiKeyMutation_1.AppStoreConnectApiKeyMutation.deleteAppStoreConnectApiKeyAsync(ascApiKeyId);
265
+ }
266
+ exports.deleteAscApiKeyAsync = deleteAscApiKeyAsync;
267
+ function convertUserRoleToGraphqlType(userRole) {
268
+ switch (userRole) {
269
+ case apple_utils_1.UserRole.ADMIN:
270
+ return generated_1.AppStoreConnectUserRole.Admin;
271
+ case apple_utils_1.UserRole.ACCESS_TO_REPORTS:
272
+ return generated_1.AppStoreConnectUserRole.AccessToReports;
273
+ case apple_utils_1.UserRole.ACCOUNT_HOLDER:
274
+ return generated_1.AppStoreConnectUserRole.AccountHolder;
275
+ case apple_utils_1.UserRole.APP_MANAGER:
276
+ return generated_1.AppStoreConnectUserRole.AppManager;
277
+ case apple_utils_1.UserRole.CLOUD_MANAGED_APP_DISTRIBUTION:
278
+ return generated_1.AppStoreConnectUserRole.CloudManagedAppDistribution;
279
+ case apple_utils_1.UserRole.CLOUD_MANAGED_DEVELOPER_ID:
280
+ return generated_1.AppStoreConnectUserRole.CloudManagedDeveloperId;
281
+ case apple_utils_1.UserRole.CREATE_APPS:
282
+ return generated_1.AppStoreConnectUserRole.CreateApps;
283
+ case apple_utils_1.UserRole.CUSTOMER_SUPPORT:
284
+ return generated_1.AppStoreConnectUserRole.CustomerSupport;
285
+ case apple_utils_1.UserRole.DEVELOPER:
286
+ return generated_1.AppStoreConnectUserRole.Developer;
287
+ case apple_utils_1.UserRole.FINANCE:
288
+ return generated_1.AppStoreConnectUserRole.Finance;
289
+ case apple_utils_1.UserRole.MARKETING:
290
+ return generated_1.AppStoreConnectUserRole.Marketing;
291
+ case apple_utils_1.UserRole.READ_ONLY:
292
+ return generated_1.AppStoreConnectUserRole.ReadOnly;
293
+ case apple_utils_1.UserRole.SALES:
294
+ return generated_1.AppStoreConnectUserRole.Sales;
295
+ case apple_utils_1.UserRole.TECHNICAL:
296
+ return generated_1.AppStoreConnectUserRole.Technical;
297
+ }
298
+ }
227
299
  const formatProjectFullName = ({ account, projectName }) => `@${account.name}/${projectName}`;
@@ -0,0 +1,5 @@
1
+ import { AppStoreConnectApiKeyFragment, AppStoreConnectApiKeyInput } from '../../../../../graphql/generated';
2
+ export declare const AppStoreConnectApiKeyMutation: {
3
+ createAppStoreConnectApiKeyAsync(appStoreConnectApiKeyInput: AppStoreConnectApiKeyInput, accountId: string): Promise<AppStoreConnectApiKeyFragment>;
4
+ deleteAppStoreConnectApiKeyAsync(appStoreConnectApiKeyId: string): Promise<void>;
5
+ };
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppStoreConnectApiKeyMutation = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const assert_1 = (0, tslib_1.__importDefault)(require("assert"));
6
+ const graphql_1 = require("graphql");
7
+ const graphql_tag_1 = (0, tslib_1.__importDefault)(require("graphql-tag"));
8
+ const client_1 = require("../../../../../graphql/client");
9
+ const AppStoreConnectApiKey_1 = require("../../../../../graphql/types/credentials/AppStoreConnectApiKey");
10
+ exports.AppStoreConnectApiKeyMutation = {
11
+ async createAppStoreConnectApiKeyAsync(appStoreConnectApiKeyInput, accountId) {
12
+ const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
13
+ .mutation((0, graphql_tag_1.default) `
14
+ mutation CreateAppStoreConnectApiKeyMutation(
15
+ $appStoreConnectApiKeyInput: AppStoreConnectApiKeyInput!
16
+ $accountId: ID!
17
+ ) {
18
+ appStoreConnectApiKey {
19
+ createAppStoreConnectApiKey(
20
+ appStoreConnectApiKeyInput: $appStoreConnectApiKeyInput
21
+ accountId: $accountId
22
+ ) {
23
+ id
24
+ ...AppStoreConnectApiKeyFragment
25
+ }
26
+ }
27
+ }
28
+ ${(0, graphql_1.print)(AppStoreConnectApiKey_1.AppStoreConnectApiKeyFragmentNode)}
29
+ `, {
30
+ appStoreConnectApiKeyInput,
31
+ accountId,
32
+ })
33
+ .toPromise());
34
+ (0, assert_1.default)(data.appStoreConnectApiKey.createAppStoreConnectApiKey, 'GraphQL: `createAppStoreConnectApiKey` not defined in server response');
35
+ return data.appStoreConnectApiKey.createAppStoreConnectApiKey;
36
+ },
37
+ async deleteAppStoreConnectApiKeyAsync(appStoreConnectApiKeyId) {
38
+ await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
39
+ .mutation((0, graphql_tag_1.default) `
40
+ mutation DeleteAppStoreConnectApiKeyMutation($appStoreConnectApiKeyId: ID!) {
41
+ appStoreConnectApiKey {
42
+ deleteAppStoreConnectApiKey(id: $appStoreConnectApiKeyId) {
43
+ id
44
+ }
45
+ }
46
+ }
47
+ `, {
48
+ appStoreConnectApiKeyId,
49
+ }, {
50
+ additionalTypenames: ['AppStoreConnectApiKey', 'IosAppCredentials'],
51
+ })
52
+ .toPromise());
53
+ },
54
+ };
@@ -2,4 +2,5 @@ import { CommonIosAppCredentialsFragment, IosAppCredentialsInput } from '../../.
2
2
  export declare const IosAppCredentialsMutation: {
3
3
  createIosAppCredentialsAsync(iosAppCredentialsInput: IosAppCredentialsInput, appId: string, appleAppIdentifierId: string): Promise<CommonIosAppCredentialsFragment>;
4
4
  setPushKeyAsync(iosAppCredentialsId: string, pushKeyId: string): Promise<CommonIosAppCredentialsFragment>;
5
+ setAppStoreConnectApiKeyForSubmissionsAsync(iosAppCredentialsId: string, ascApiKeyId: string): Promise<CommonIosAppCredentialsFragment>;
5
6
  };
@@ -56,4 +56,29 @@ exports.IosAppCredentialsMutation = {
56
56
  .toPromise());
57
57
  return data.iosAppCredentials.setPushKey;
58
58
  },
59
+ async setAppStoreConnectApiKeyForSubmissionsAsync(iosAppCredentialsId, ascApiKeyId) {
60
+ const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
61
+ .mutation((0, graphql_tag_1.default) `
62
+ mutation SetAppStoreConnectApiKeyForSubmissionsMutation(
63
+ $iosAppCredentialsId: ID!
64
+ $ascApiKeyId: ID!
65
+ ) {
66
+ iosAppCredentials {
67
+ setAppStoreConnectApiKeyForSubmissions(
68
+ id: $iosAppCredentialsId
69
+ ascApiKeyId: $ascApiKeyId
70
+ ) {
71
+ id
72
+ ...CommonIosAppCredentialsFragment
73
+ }
74
+ }
75
+ }
76
+ ${(0, graphql_1.print)(IosAppCredentials_1.CommonIosAppCredentialsFragmentNode)}
77
+ `, {
78
+ iosAppCredentialsId,
79
+ ascApiKeyId,
80
+ })
81
+ .toPromise());
82
+ return data.iosAppCredentials.setAppStoreConnectApiKeyForSubmissions;
83
+ },
59
84
  };
@@ -0,0 +1,4 @@
1
+ import { AppStoreConnectApiKeyFragment } from '../../../../../graphql/generated';
2
+ export declare const AppStoreConnectApiKeyQuery: {
3
+ getAllForAccountAsync(accountName: string): Promise<AppStoreConnectApiKeyFragment[]>;
4
+ };
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppStoreConnectApiKeyQuery = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const graphql_1 = require("graphql");
6
+ const graphql_tag_1 = (0, tslib_1.__importDefault)(require("graphql-tag"));
7
+ const client_1 = require("../../../../../graphql/client");
8
+ const AppStoreConnectApiKey_1 = require("../../../../../graphql/types/credentials/AppStoreConnectApiKey");
9
+ exports.AppStoreConnectApiKeyQuery = {
10
+ async getAllForAccountAsync(accountName) {
11
+ const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
12
+ .query((0, graphql_tag_1.default) `
13
+ query AppStoreConnectApiKeyByAccountQuery($accountName: String!) {
14
+ account {
15
+ byName(accountName: $accountName) {
16
+ id
17
+ appStoreConnectApiKeys {
18
+ id
19
+ ...AppStoreConnectApiKeyFragment
20
+ }
21
+ }
22
+ }
23
+ }
24
+ ${(0, graphql_1.print)(AppStoreConnectApiKey_1.AppStoreConnectApiKeyFragmentNode)}
25
+ `, {
26
+ accountName,
27
+ }, {
28
+ additionalTypenames: ['AppStoreConnectApiKey'],
29
+ })
30
+ .toPromise());
31
+ return data.account.byName.appStoreConnectApiKeys;
32
+ },
33
+ };
@@ -18,7 +18,7 @@ export default class AppStoreApi {
18
18
  revokeProvisioningProfileAsync(bundleIdentifier: string, profileClass?: ProfileClass): Promise<void>;
19
19
  createOrReuseAdhocProvisioningProfileAsync(udids: string[], bundleIdentifier: string, distCertSerialNumber: string): Promise<ProvisioningProfile>;
20
20
  listAscApiKeysAsync(): Promise<AscApiKeyInfo[]>;
21
- getAscApiKeyAsync(keyId: string): Promise<AscApiKeyInfo>;
21
+ getAscApiKeyAsync(keyId: string): Promise<AscApiKeyInfo | null>;
22
22
  createAscApiKeyAsync({ nickname }: {
23
23
  nickname: string;
24
24
  }): Promise<AscApiKey>;
@@ -68,6 +68,7 @@ export declare type AscApiKeyInfo = {
68
68
  name: string;
69
69
  teamName?: string;
70
70
  roles: UserRole[];
71
+ isRevoked: boolean;
71
72
  };
72
73
  export declare type AscApiKey = AscApiKeyInfo & {
73
74
  keyP8: string;
@@ -3,7 +3,7 @@ import { ApiKey, ApiKeyProps } from '@expo/apple-utils';
3
3
  import { AscApiKey, AscApiKeyInfo } from './Credentials.types';
4
4
  import { AuthCtx } from './authenticate';
5
5
  export declare function listAscApiKeysAsync(authCtx: AuthCtx): Promise<AscApiKeyInfo[]>;
6
- export declare function getAscApiKeyAsync(authCtx: AuthCtx, keyId: string): Promise<AscApiKeyInfo>;
6
+ export declare function getAscApiKeyAsync(authCtx: AuthCtx, keyId: string): Promise<AscApiKeyInfo | null>;
7
7
  export declare function createAscApiKeyAsync(authCtx: AuthCtx, { nickname, allAppsVisible, roles, keyType, }: Partial<Pick<ApiKeyProps, 'nickname' | 'roles' | 'allAppsVisible' | 'keyType'>>): Promise<AscApiKey>;
8
8
  export declare function revokeAscApiKeyAsync(authCtx: AuthCtx, keyId: string): Promise<AscApiKeyInfo>;
9
9
  export declare function getAscApiKeyInfo(apiKey: ApiKey, authCtx: AuthCtx): AscApiKeyInfo;
@@ -21,6 +21,7 @@ async function listAscApiKeysAsync(authCtx) {
21
21
  }
22
22
  exports.listAscApiKeysAsync = listAscApiKeysAsync;
23
23
  async function getAscApiKeyAsync(authCtx, keyId) {
24
+ var _a;
24
25
  const spinner = (0, ora_1.ora)(`Fetching App Store Connect API Key.`).start();
25
26
  try {
26
27
  const context = (0, authenticate_1.getRequestContext)(authCtx);
@@ -29,6 +30,11 @@ async function getAscApiKeyAsync(authCtx, keyId) {
29
30
  return getAscApiKeyInfo(apiKey, authCtx);
30
31
  }
31
32
  catch (error) {
33
+ const message = (_a = error === null || error === void 0 ? void 0 : error.message) !== null && _a !== void 0 ? _a : '';
34
+ if (message.includes("There is no resource of type 'apiKeys' with id")) {
35
+ spinner.stop();
36
+ return null;
37
+ }
32
38
  log_1.default.error(error);
33
39
  spinner.fail(`Failed to fetch App Store Connect API Key.`);
34
40
  throw error;
@@ -58,8 +64,11 @@ async function createAscApiKeyAsync(authCtx, { nickname, allAppsVisible, roles,
58
64
  }
59
65
  throw new Error(`Failed to download .p8 file of ${humanReadableKey}.`);
60
66
  }
67
+ // this object has more optional parameters populated
68
+ const fullKey = await apple_utils_1.ApiKey.infoAsync(context, { id: key.id });
69
+ spinner.succeed(`Created App Store Connect API Key.`);
61
70
  return {
62
- ...getAscApiKeyInfo(key, authCtx),
71
+ ...getAscApiKeyInfo(fullKey, authCtx),
63
72
  keyP8,
64
73
  };
65
74
  }
@@ -94,6 +103,7 @@ function getAscApiKeyInfo(apiKey, authCtx) {
94
103
  teamId: authCtx.team.id,
95
104
  teamName: authCtx.team.name,
96
105
  roles: apiKey.attributes.roles,
106
+ isRevoked: !!apiKey.attributes.revokingDate,
97
107
  };
98
108
  }
99
109
  exports.getAscApiKeyInfo = getAscApiKeyInfo;
@@ -1,4 +1,4 @@
1
1
  import { Workflow } from '@expo/eas-build-job';
2
2
  import { JSONObject } from '@expo/json-file';
3
- export declare function getManagedEntitlementsJsonAsync(projectDir: string): Promise<JSONObject>;
4
- export declare function resolveEntitlementsJsonAsync(projectDir: string, workflow: Workflow): Promise<JSONObject>;
3
+ export declare function getManagedEntitlementsJsonAsync(projectDir: string, env: Record<string, string>): Promise<JSONObject>;
4
+ export declare function resolveEntitlementsJsonAsync(projectDir: string, workflow: Workflow, env: Record<string, string>): Promise<JSONObject>;
@@ -1,29 +1,37 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.resolveEntitlementsJsonAsync = exports.getManagedEntitlementsJsonAsync = void 0;
4
- const tslib_1 = require("tslib");
5
4
  const config_plugins_1 = require("@expo/config-plugins");
6
5
  const eas_build_job_1 = require("@expo/eas-build-job");
7
- const plist_1 = (0, tslib_1.__importDefault)(require("@expo/plist"));
8
6
  const prebuild_config_1 = require("@expo/prebuild-config");
9
- const fs_extra_1 = (0, tslib_1.__importDefault)(require("fs-extra"));
10
- async function getManagedEntitlementsJsonAsync(projectDir) {
7
+ const plist_1 = require("../../../utils/plist");
8
+ async function getManagedEntitlementsJsonAsync(projectDir, env) {
11
9
  var _a;
12
- let { exp } = (0, prebuild_config_1.getPrebuildConfig)(projectDir, { platforms: ['ios'] });
13
- exp = await (0, config_plugins_1.compileModsAsync)(exp, {
14
- projectRoot: projectDir,
15
- platforms: ['ios'],
16
- introspect: true,
17
- });
18
- return ((_a = exp.ios) === null || _a === void 0 ? void 0 : _a.entitlements) || {};
10
+ const originalProcessEnv = process.env;
11
+ try {
12
+ process.env = {
13
+ ...process.env,
14
+ ...env,
15
+ };
16
+ const { exp } = (0, prebuild_config_1.getPrebuildConfig)(projectDir, { platforms: ['ios'] });
17
+ const expWithMods = await (0, config_plugins_1.compileModsAsync)(exp, {
18
+ projectRoot: projectDir,
19
+ platforms: ['ios'],
20
+ introspect: true,
21
+ });
22
+ return ((_a = expWithMods.ios) === null || _a === void 0 ? void 0 : _a.entitlements) || {};
23
+ }
24
+ finally {
25
+ process.env = originalProcessEnv;
26
+ }
19
27
  }
20
28
  exports.getManagedEntitlementsJsonAsync = getManagedEntitlementsJsonAsync;
21
- async function resolveEntitlementsJsonAsync(projectDir, workflow) {
29
+ async function resolveEntitlementsJsonAsync(projectDir, workflow, env) {
22
30
  if (workflow === eas_build_job_1.Workflow.GENERIC) {
23
31
  return (await getEntitlementsJsonAsync(projectDir)) || {};
24
32
  }
25
33
  else if (workflow === eas_build_job_1.Workflow.MANAGED) {
26
- return await getManagedEntitlementsJsonAsync(projectDir);
34
+ return await getManagedEntitlementsJsonAsync(projectDir, env);
27
35
  }
28
36
  else {
29
37
  throw new Error(`Unknown workflow: ${workflow}`);
@@ -31,13 +39,12 @@ async function resolveEntitlementsJsonAsync(projectDir, workflow) {
31
39
  }
32
40
  exports.resolveEntitlementsJsonAsync = resolveEntitlementsJsonAsync;
33
41
  async function getEntitlementsJsonAsync(projectDir) {
34
- try {
35
- const entitlementsPath = config_plugins_1.IOSConfig.Paths.getEntitlementsPath(projectDir);
36
- if (entitlementsPath) {
37
- const entitlementsContents = await fs_extra_1.default.readFile(entitlementsPath, 'utf8');
38
- return plist_1.default.parse(entitlementsContents);
39
- }
42
+ const entitlementsPath = config_plugins_1.IOSConfig.Paths.getEntitlementsPath(projectDir);
43
+ if (entitlementsPath) {
44
+ const plist = await (0, plist_1.readPlistAsync)(entitlementsPath);
45
+ return plist ? plist : null;
46
+ }
47
+ else {
48
+ return null;
40
49
  }
41
- catch { }
42
- return null;
43
50
  }
@@ -52,6 +52,7 @@ export interface AscApiKeyPath {
52
52
  keyId: string;
53
53
  issuerId: string;
54
54
  }
55
- export declare const ascApiKeyMetadataSchema: CredentialSchema<Omit<MinimalAscApiKey, 'keyP8'>>;
55
+ export declare const ascApiKeyIdSchema: CredentialSchema<Pick<MinimalAscApiKey, 'keyId'>>;
56
+ export declare const ascApiKeyIssuerIdSchema: CredentialSchema<Pick<MinimalAscApiKey, 'issuerId'>>;
56
57
  export declare const pushKeySchema: CredentialSchema<PushKey>;
57
58
  export declare const provisioningProfileSchema: CredentialSchema<ProvisioningProfile>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.provisioningProfileSchema = exports.pushKeySchema = exports.ascApiKeyMetadataSchema = exports.distributionCertificateSchema = exports.getAppLookupParams = void 0;
3
+ exports.provisioningProfileSchema = exports.pushKeySchema = exports.ascApiKeyIssuerIdSchema = exports.ascApiKeyIdSchema = exports.distributionCertificateSchema = exports.getAppLookupParams = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const log_1 = (0, tslib_1.__importDefault)(require("../../log"));
6
6
  const p12Certificate_1 = require("./utils/p12Certificate");
@@ -50,7 +50,7 @@ exports.distributionCertificateSchema = {
50
50
  return answers;
51
51
  },
52
52
  };
53
- exports.ascApiKeyMetadataSchema = {
53
+ exports.ascApiKeyIdSchema = {
54
54
  name: 'App Store Connect API Key',
55
55
  questions: [
56
56
  {
@@ -58,6 +58,11 @@ exports.ascApiKeyMetadataSchema = {
58
58
  type: 'string',
59
59
  question: 'Key ID:',
60
60
  },
61
+ ],
62
+ };
63
+ exports.ascApiKeyIssuerIdSchema = {
64
+ name: 'App Store Connect API Key',
65
+ questions: [
61
66
  {
62
67
  field: 'issuerId',
63
68
  type: 'string',
@@ -198,7 +198,7 @@ function displayApplePushKey(maybePushKey, fields) {
198
198
  fields.push({ label: '', value: '' });
199
199
  }
200
200
  function displayAscApiKey(maybeAscApiKey, fields) {
201
- fields.push({ label: 'App Store Connect Api Key', value: '' });
201
+ fields.push({ label: 'App Store Connect API Key', value: '' });
202
202
  if (maybeAscApiKey) {
203
203
  const { keyIdentifier, issuerIdentifier, appleTeam, name, roles, updatedAt } = maybeAscApiKey;
204
204
  fields.push({ label: 'Developer Portal ID', value: keyIdentifier });
@@ -0,0 +1,5 @@
1
+ import { AppStoreConnectApiKeyFragment } from '../../../graphql/generated';
2
+ import { CredentialsContext } from '../../context';
3
+ import { MinimalAscApiKey } from '../credentials';
4
+ export declare function isAscApiKeyValidAndTrackedAsync(ctx: CredentialsContext, ascApiKey: MinimalAscApiKey): Promise<boolean>;
5
+ export declare function getValidAndTrackedAscApiKeysAsync(ctx: CredentialsContext, ascApiKeys: AppStoreConnectApiKeyFragment[]): Promise<AppStoreConnectApiKeyFragment[]>;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getValidAndTrackedAscApiKeysAsync = exports.isAscApiKeyValidAndTrackedAsync = void 0;
4
+ async function isAscApiKeyValidAndTrackedAsync(ctx, ascApiKey) {
5
+ const ascApiKeyInfo = await ctx.appStore.getAscApiKeyAsync(ascApiKey.keyId);
6
+ return isKeyValid(ascApiKeyInfo);
7
+ }
8
+ exports.isAscApiKeyValidAndTrackedAsync = isAscApiKeyValidAndTrackedAsync;
9
+ async function getValidAndTrackedAscApiKeysAsync(ctx, ascApiKeys) {
10
+ const ascApiKeysInfo = await ctx.appStore.listAscApiKeysAsync();
11
+ const validAscApiKeysInfo = ascApiKeysInfo.filter(keyInfo => isKeyValid(keyInfo));
12
+ const validKeyIdentifiers = new Set(validAscApiKeysInfo.map(keyInfo => keyInfo.keyId));
13
+ return ascApiKeys.filter(key => validKeyIdentifiers.has(key.keyIdentifier));
14
+ }
15
+ exports.getValidAndTrackedAscApiKeysAsync = getValidAndTrackedAscApiKeysAsync;
16
+ function isKeyValid(ascApiKeyInfo) {
17
+ if (!ascApiKeyInfo) {
18
+ return false;
19
+ }
20
+ return !ascApiKeyInfo.isRevoked;
21
+ }
@@ -23,25 +23,30 @@ export declare enum AndroidActionType {
23
23
  CreateGsaKey = 11,
24
24
  UseExistingGsaKey = 12,
25
25
  RemoveGsaKey = 13,
26
- SetupGsaKey = 14,
26
+ SetUpGsaKey = 14,
27
27
  UpdateCredentialsJson = 15,
28
- SetupBuildCredentialsFromCredentialsJson = 16
28
+ SetUpBuildCredentialsFromCredentialsJson = 16
29
29
  }
30
30
  export declare enum IosActionType {
31
31
  ManageCredentialsJson = 0,
32
32
  ManageBuildCredentials = 1,
33
33
  ManagePushKey = 2,
34
- GoBackToCaller = 3,
35
- GoBackToHighLevelActions = 4,
36
- SetupBuildCredentials = 5,
37
- SetupBuildCredentialsFromCredentialsJson = 6,
38
- UpdateCredentialsJson = 7,
39
- UseExistingDistributionCertificate = 8,
40
- RemoveProvisioningProfile = 9,
41
- CreateDistributionCertificate = 10,
42
- RemoveDistributionCertificate = 11,
43
- SetupPushKey = 12,
44
- CreatePushKey = 13,
45
- UseExistingPushKey = 14,
46
- RemovePushKey = 15
34
+ ManageAscApiKey = 3,
35
+ GoBackToCaller = 4,
36
+ GoBackToHighLevelActions = 5,
37
+ SetUpBuildCredentials = 6,
38
+ SetUpBuildCredentialsFromCredentialsJson = 7,
39
+ UpdateCredentialsJson = 8,
40
+ UseExistingDistributionCertificate = 9,
41
+ RemoveProvisioningProfile = 10,
42
+ CreateDistributionCertificate = 11,
43
+ RemoveDistributionCertificate = 12,
44
+ SetUpPushKey = 13,
45
+ CreatePushKey = 14,
46
+ UseExistingPushKey = 15,
47
+ RemovePushKey = 16,
48
+ SetUpAscApiKeyForSubmissions = 17,
49
+ UseExistingAscApiKeyForSubmissions = 18,
50
+ CreateAscApiKeyForSubmissions = 19,
51
+ RemoveAscApiKey = 20
47
52
  }
@@ -23,26 +23,31 @@ var AndroidActionType;
23
23
  AndroidActionType[AndroidActionType["CreateGsaKey"] = 11] = "CreateGsaKey";
24
24
  AndroidActionType[AndroidActionType["UseExistingGsaKey"] = 12] = "UseExistingGsaKey";
25
25
  AndroidActionType[AndroidActionType["RemoveGsaKey"] = 13] = "RemoveGsaKey";
26
- AndroidActionType[AndroidActionType["SetupGsaKey"] = 14] = "SetupGsaKey";
26
+ AndroidActionType[AndroidActionType["SetUpGsaKey"] = 14] = "SetUpGsaKey";
27
27
  AndroidActionType[AndroidActionType["UpdateCredentialsJson"] = 15] = "UpdateCredentialsJson";
28
- AndroidActionType[AndroidActionType["SetupBuildCredentialsFromCredentialsJson"] = 16] = "SetupBuildCredentialsFromCredentialsJson";
28
+ AndroidActionType[AndroidActionType["SetUpBuildCredentialsFromCredentialsJson"] = 16] = "SetUpBuildCredentialsFromCredentialsJson";
29
29
  })(AndroidActionType = exports.AndroidActionType || (exports.AndroidActionType = {}));
30
30
  var IosActionType;
31
31
  (function (IosActionType) {
32
32
  IosActionType[IosActionType["ManageCredentialsJson"] = 0] = "ManageCredentialsJson";
33
33
  IosActionType[IosActionType["ManageBuildCredentials"] = 1] = "ManageBuildCredentials";
34
34
  IosActionType[IosActionType["ManagePushKey"] = 2] = "ManagePushKey";
35
- IosActionType[IosActionType["GoBackToCaller"] = 3] = "GoBackToCaller";
36
- IosActionType[IosActionType["GoBackToHighLevelActions"] = 4] = "GoBackToHighLevelActions";
37
- IosActionType[IosActionType["SetupBuildCredentials"] = 5] = "SetupBuildCredentials";
38
- IosActionType[IosActionType["SetupBuildCredentialsFromCredentialsJson"] = 6] = "SetupBuildCredentialsFromCredentialsJson";
39
- IosActionType[IosActionType["UpdateCredentialsJson"] = 7] = "UpdateCredentialsJson";
40
- IosActionType[IosActionType["UseExistingDistributionCertificate"] = 8] = "UseExistingDistributionCertificate";
41
- IosActionType[IosActionType["RemoveProvisioningProfile"] = 9] = "RemoveProvisioningProfile";
42
- IosActionType[IosActionType["CreateDistributionCertificate"] = 10] = "CreateDistributionCertificate";
43
- IosActionType[IosActionType["RemoveDistributionCertificate"] = 11] = "RemoveDistributionCertificate";
44
- IosActionType[IosActionType["SetupPushKey"] = 12] = "SetupPushKey";
45
- IosActionType[IosActionType["CreatePushKey"] = 13] = "CreatePushKey";
46
- IosActionType[IosActionType["UseExistingPushKey"] = 14] = "UseExistingPushKey";
47
- IosActionType[IosActionType["RemovePushKey"] = 15] = "RemovePushKey";
35
+ IosActionType[IosActionType["ManageAscApiKey"] = 3] = "ManageAscApiKey";
36
+ IosActionType[IosActionType["GoBackToCaller"] = 4] = "GoBackToCaller";
37
+ IosActionType[IosActionType["GoBackToHighLevelActions"] = 5] = "GoBackToHighLevelActions";
38
+ IosActionType[IosActionType["SetUpBuildCredentials"] = 6] = "SetUpBuildCredentials";
39
+ IosActionType[IosActionType["SetUpBuildCredentialsFromCredentialsJson"] = 7] = "SetUpBuildCredentialsFromCredentialsJson";
40
+ IosActionType[IosActionType["UpdateCredentialsJson"] = 8] = "UpdateCredentialsJson";
41
+ IosActionType[IosActionType["UseExistingDistributionCertificate"] = 9] = "UseExistingDistributionCertificate";
42
+ IosActionType[IosActionType["RemoveProvisioningProfile"] = 10] = "RemoveProvisioningProfile";
43
+ IosActionType[IosActionType["CreateDistributionCertificate"] = 11] = "CreateDistributionCertificate";
44
+ IosActionType[IosActionType["RemoveDistributionCertificate"] = 12] = "RemoveDistributionCertificate";
45
+ IosActionType[IosActionType["SetUpPushKey"] = 13] = "SetUpPushKey";
46
+ IosActionType[IosActionType["CreatePushKey"] = 14] = "CreatePushKey";
47
+ IosActionType[IosActionType["UseExistingPushKey"] = 15] = "UseExistingPushKey";
48
+ IosActionType[IosActionType["RemovePushKey"] = 16] = "RemovePushKey";
49
+ IosActionType[IosActionType["SetUpAscApiKeyForSubmissions"] = 17] = "SetUpAscApiKeyForSubmissions";
50
+ IosActionType[IosActionType["UseExistingAscApiKeyForSubmissions"] = 18] = "UseExistingAscApiKeyForSubmissions";
51
+ IosActionType[IosActionType["CreateAscApiKeyForSubmissions"] = 19] = "CreateAscApiKeyForSubmissions";
52
+ IosActionType[IosActionType["RemoveAscApiKey"] = 20] = "RemoveAscApiKey";
48
53
  })(IosActionType = exports.IosActionType || (exports.IosActionType = {}));
@@ -10,7 +10,7 @@ exports.highLevelActions = [
10
10
  },
11
11
  {
12
12
  value: Actions_1.AndroidActionType.ManageFcm,
13
- title: 'Push Notifications: Manage your FCM Api Key',
13
+ title: 'Push Notifications: Manage your FCM API Key',
14
14
  scope: Actions_1.Scope.Manager,
15
15
  },
16
16
  {
@@ -36,7 +36,7 @@ exports.credentialsJsonActions = [
36
36
  scope: Actions_1.Scope.Project,
37
37
  },
38
38
  {
39
- value: Actions_1.AndroidActionType.SetupBuildCredentialsFromCredentialsJson,
39
+ value: Actions_1.AndroidActionType.SetUpBuildCredentialsFromCredentialsJson,
40
40
  title: 'Upload credentials from credentials.json to EAS',
41
41
  scope: Actions_1.Scope.Project,
42
42
  },
@@ -71,12 +71,12 @@ exports.buildCredentialsActions = [
71
71
  exports.fcmActions = [
72
72
  {
73
73
  value: Actions_1.AndroidActionType.CreateFcm,
74
- title: 'Upload an FCM Api Key',
74
+ title: 'Upload an FCM API Key',
75
75
  scope: Actions_1.Scope.Project,
76
76
  },
77
77
  {
78
78
  value: Actions_1.AndroidActionType.RemoveFcm,
79
- title: 'Delete your FCM Api Key',
79
+ title: 'Delete your FCM API Key',
80
80
  scope: Actions_1.Scope.Project,
81
81
  },
82
82
  {
@@ -87,8 +87,8 @@ exports.fcmActions = [
87
87
  ];
88
88
  exports.gsaKeyActions = [
89
89
  {
90
- value: Actions_1.AndroidActionType.SetupGsaKey,
91
- title: 'Setup a Google Service Account Key',
90
+ value: Actions_1.AndroidActionType.SetUpGsaKey,
91
+ title: 'Set up a Google Service Account Key',
92
92
  scope: Actions_1.Scope.Project,
93
93
  },
94
94
  {
@@ -3,4 +3,5 @@ import { ActionInfo } from './Actions';
3
3
  export declare const highLevelActions: ActionInfo[];
4
4
  export declare const credentialsJsonActions: ActionInfo[];
5
5
  export declare function getPushKeyActions(ctx: CredentialsContext): ActionInfo[];
6
+ export declare function getAscApiKeyActions(ctx: CredentialsContext): ActionInfo[];
6
7
  export declare function getBuildCredentialsActions(ctx: CredentialsContext): ActionInfo[];