eas-cli 2.3.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -47
- package/build/ApiV2Error.d.ts +15 -0
- package/build/ApiV2Error.js +14 -0
- package/build/api.d.ts +10 -16
- package/build/api.js +52 -59
- package/build/branch/queries.d.ts +3 -2
- package/build/branch/queries.js +7 -7
- package/build/build/android/build.js +3 -3
- package/build/build/android/syncProjectConfiguration.d.ts +2 -1
- package/build/build/android/syncProjectConfiguration.js +2 -2
- package/build/build/android/version.d.ts +2 -1
- package/build/build/android/version.js +4 -4
- package/build/build/build.d.ts +2 -1
- package/build/build/build.js +5 -5
- package/build/build/context.d.ts +2 -0
- package/build/build/createContext.d.ts +3 -1
- package/build/build/createContext.js +4 -2
- package/build/build/ios/build.js +3 -3
- package/build/build/ios/syncProjectConfiguration.d.ts +2 -1
- package/build/build/ios/syncProjectConfiguration.js +2 -2
- package/build/build/ios/version.d.ts +2 -1
- package/build/build/ios/version.js +4 -4
- package/build/build/local.js +1 -1
- package/build/build/queries.d.ts +2 -1
- package/build/build/queries.js +3 -3
- package/build/build/runBuildAndSubmit.d.ts +2 -1
- package/build/build/runBuildAndSubmit.js +9 -6
- package/build/channel/queries.d.ts +4 -3
- package/build/channel/queries.js +13 -13
- package/build/commandUtils/EasCommand.d.ts +24 -3
- package/build/commandUtils/EasCommand.js +36 -6
- package/build/commandUtils/context/ContextField.d.ts +2 -0
- package/build/commandUtils/context/DynamicProjectConfigContextField.d.ts +1 -1
- package/build/commandUtils/context/DynamicProjectConfigContextField.js +2 -2
- package/build/commandUtils/context/LoggedInContextField.d.ts +12 -0
- package/build/commandUtils/context/LoggedInContextField.js +15 -0
- package/build/commandUtils/context/MaybeLoggedInContextField.d.ts +12 -0
- package/build/commandUtils/context/MaybeLoggedInContextField.js +17 -0
- package/build/commandUtils/context/OptionalProjectConfigContextField.d.ts +1 -1
- package/build/commandUtils/context/OptionalProjectConfigContextField.js +2 -2
- package/build/commandUtils/context/ProjectConfigContextField.d.ts +1 -1
- package/build/commandUtils/context/ProjectConfigContextField.js +2 -2
- package/build/commandUtils/context/SessionManagementContextField.d.ts +5 -0
- package/build/commandUtils/context/SessionManagementContextField.js +10 -0
- package/build/commandUtils/context/contextUtils/createGraphqlClient.d.ts +11 -0
- package/build/commandUtils/context/contextUtils/createGraphqlClient.js +43 -0
- package/build/commandUtils/context/contextUtils/getProjectIdAsync.d.ts +2 -1
- package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +11 -7
- package/build/commands/account/login.d.ts +3 -0
- package/build/commands/account/login.js +7 -2
- package/build/commands/account/logout.d.ts +3 -0
- package/build/commands/account/logout.js +7 -2
- package/build/commands/account/view.d.ts +3 -0
- package/build/commands/account/view.js +8 -3
- package/build/commands/branch/create.d.ts +3 -1
- package/build/commands/branch/create.js +6 -5
- package/build/commands/branch/delete.d.ts +1 -0
- package/build/commands/branch/delete.js +10 -9
- package/build/commands/branch/list.d.ts +1 -0
- package/build/commands/branch/list.js +3 -2
- package/build/commands/branch/rename.d.ts +1 -0
- package/build/commands/branch/rename.js +6 -5
- package/build/commands/branch/view.d.ts +1 -0
- package/build/commands/branch/view.js +4 -3
- package/build/commands/build/cancel.d.ts +3 -1
- package/build/commands/build/cancel.js +14 -13
- package/build/commands/build/configure.d.ts +1 -0
- package/build/commands/build/configure.js +4 -3
- package/build/commands/build/index.d.ts +1 -1
- package/build/commands/build/index.js +3 -3
- package/build/commands/build/inspect.d.ts +1 -1
- package/build/commands/build/inspect.js +2 -2
- package/build/commands/build/list.d.ts +1 -0
- package/build/commands/build/list.js +4 -3
- package/build/commands/build/version/set.d.ts +1 -1
- package/build/commands/build/version/set.js +4 -4
- package/build/commands/build/version/sync.d.ts +1 -1
- package/build/commands/build/version/sync.js +2 -2
- package/build/commands/build/view.d.ts +1 -0
- package/build/commands/build/view.js +5 -4
- package/build/commands/channel/create.d.ts +3 -1
- package/build/commands/channel/create.js +8 -7
- package/build/commands/channel/delete.d.ts +1 -0
- package/build/commands/channel/delete.js +7 -6
- package/build/commands/channel/edit.d.ts +3 -1
- package/build/commands/channel/edit.js +12 -8
- package/build/commands/channel/list.d.ts +1 -0
- package/build/commands/channel/list.js +3 -2
- package/build/commands/channel/rollout.d.ts +1 -0
- package/build/commands/channel/rollout.js +15 -14
- package/build/commands/channel/view.d.ts +1 -0
- package/build/commands/channel/view.js +4 -3
- package/build/commands/credentials.d.ts +1 -1
- package/build/commands/credentials.js +2 -2
- package/build/commands/device/create.d.ts +1 -1
- package/build/commands/device/create.js +2 -1
- package/build/commands/device/delete.d.ts +3 -1
- package/build/commands/device/delete.js +9 -8
- package/build/commands/device/list.d.ts +1 -0
- package/build/commands/device/list.js +5 -4
- package/build/commands/device/view.d.ts +1 -0
- package/build/commands/device/view.js +4 -3
- package/build/commands/metadata/pull.d.ts +1 -1
- package/build/commands/metadata/pull.js +2 -1
- package/build/commands/metadata/push.d.ts +1 -1
- package/build/commands/metadata/push.js +2 -1
- package/build/commands/open.d.ts +1 -0
- package/build/commands/open.js +3 -2
- package/build/commands/project/info.d.ts +1 -0
- package/build/commands/project/info.js +5 -4
- package/build/commands/project/init.d.ts +1 -1
- package/build/commands/project/init.js +5 -5
- package/build/commands/secret/create.d.ts +1 -0
- package/build/commands/secret/create.js +10 -9
- package/build/commands/secret/delete.d.ts +1 -0
- package/build/commands/secret/delete.js +4 -3
- package/build/commands/secret/list.d.ts +1 -0
- package/build/commands/secret/list.js +3 -2
- package/build/commands/submit.d.ts +1 -1
- package/build/commands/submit.js +4 -3
- package/build/commands/update/configure.d.ts +1 -0
- package/build/commands/update/configure.js +4 -3
- package/build/commands/update/delete.d.ts +3 -0
- package/build/commands/update/delete.js +9 -3
- package/build/commands/update/index.d.ts +3 -1
- package/build/commands/update/index.js +23 -17
- package/build/commands/update/list.d.ts +1 -0
- package/build/commands/update/list.js +6 -5
- package/build/commands/update/view.d.ts +3 -0
- package/build/commands/update/view.js +7 -1
- package/build/commands/webhook/create.d.ts +1 -0
- package/build/commands/webhook/create.js +3 -2
- package/build/commands/webhook/delete.d.ts +1 -0
- package/build/commands/webhook/delete.js +7 -6
- package/build/commands/webhook/list.d.ts +1 -0
- package/build/commands/webhook/list.js +4 -3
- package/build/commands/webhook/update.d.ts +3 -0
- package/build/commands/webhook/update.js +8 -2
- package/build/commands/webhook/view.d.ts +3 -0
- package/build/commands/webhook/view.js +7 -1
- package/build/credentials/android/actions/AssignFcm.js +2 -2
- package/build/credentials/android/actions/AssignGoogleServiceAccountKey.js +2 -2
- package/build/credentials/android/actions/BuildCredentialsUtils.js +12 -12
- package/build/credentials/android/actions/CreateFcm.js +1 -1
- package/build/credentials/android/actions/CreateGoogleServiceAccountKey.js +1 -1
- package/build/credentials/android/actions/CreateKeystore.js +4 -4
- package/build/credentials/android/actions/RemoveFcm.js +2 -2
- package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.js +2 -2
- package/build/credentials/android/actions/RemoveKeystore.js +1 -1
- package/build/credentials/android/actions/SetUpBuildCredentials.js +3 -3
- package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.js +3 -3
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKey.js +3 -3
- package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.js +1 -1
- package/build/credentials/android/api/GraphqlClient.d.ts +19 -18
- package/build/credentials/android/api/GraphqlClient.js +45 -45
- package/build/credentials/android/api/graphql/mutations/AndroidAppBuildCredentialsMutation.d.ts +3 -2
- package/build/credentials/android/api/graphql/mutations/AndroidAppBuildCredentialsMutation.js +4 -4
- package/build/credentials/android/api/graphql/mutations/AndroidAppCredentialsMutation.d.ts +4 -3
- package/build/credentials/android/api/graphql/mutations/AndroidAppCredentialsMutation.js +6 -6
- package/build/credentials/android/api/graphql/mutations/AndroidFcmMutation.d.ts +3 -2
- package/build/credentials/android/api/graphql/mutations/AndroidFcmMutation.js +4 -4
- package/build/credentials/android/api/graphql/mutations/AndroidKeystoreMutation.d.ts +3 -2
- package/build/credentials/android/api/graphql/mutations/AndroidKeystoreMutation.js +4 -4
- package/build/credentials/android/api/graphql/mutations/GoogleServiceAccountKeyMutation.d.ts +3 -2
- package/build/credentials/android/api/graphql/mutations/GoogleServiceAccountKeyMutation.js +4 -4
- package/build/credentials/android/api/graphql/queries/AndroidAppCredentialsQuery.d.ts +2 -1
- package/build/credentials/android/api/graphql/queries/AndroidAppCredentialsQuery.js +2 -2
- package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.d.ts +2 -1
- package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.js +2 -2
- package/build/credentials/android/utils/keystore.d.ts +2 -1
- package/build/credentials/android/utils/keystore.js +6 -6
- package/build/credentials/context.d.ts +3 -0
- package/build/credentials/context.js +1 -0
- package/build/credentials/credentialsJson/update.js +1 -1
- package/build/credentials/ios/actions/AppleTeamUtils.js +1 -1
- package/build/credentials/ios/actions/AscApiKeyUtils.js +1 -1
- package/build/credentials/ios/actions/AssignAscApiKey.js +2 -2
- package/build/credentials/ios/actions/AssignPushKey.js +2 -2
- package/build/credentials/ios/actions/BuildCredentialsUtils.js +5 -5
- package/build/credentials/ios/actions/ConfigureProvisioningProfile.js +1 -1
- package/build/credentials/ios/actions/CreateAscApiKey.js +1 -1
- package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -1
- package/build/credentials/ios/actions/CreateProvisioningProfile.js +2 -2
- package/build/credentials/ios/actions/CreatePushKey.js +1 -1
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +2 -2
- package/build/credentials/ios/actions/PushKeyUtils.js +1 -1
- package/build/credentials/ios/actions/RemoveAscApiKey.js +1 -1
- package/build/credentials/ios/actions/RemoveDistributionCertificate.js +1 -1
- package/build/credentials/ios/actions/RemoveProvisioningProfile.js +1 -1
- package/build/credentials/ios/actions/RemovePushKey.js +1 -1
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +8 -8
- package/build/credentials/ios/actions/SetUpAscApiKey.js +2 -2
- package/build/credentials/ios/actions/SetUpDistributionCertificate.js +2 -2
- package/build/credentials/ios/actions/SetUpProvisioningProfile.js +1 -1
- package/build/credentials/ios/actions/SetUpPushKey.js +4 -4
- package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.js +5 -5
- package/build/credentials/ios/api/GraphqlClient.d.ts +25 -24
- package/build/credentials/ios/api/GraphqlClient.js +73 -73
- package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.d.ts +3 -2
- package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.js +4 -4
- package/build/credentials/ios/api/graphql/mutations/AppleAppIdentifierMutation.d.ts +2 -1
- package/build/credentials/ios/api/graphql/mutations/AppleAppIdentifierMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/AppleDeviceMutation.d.ts +3 -2
- package/build/credentials/ios/api/graphql/mutations/AppleDeviceMutation.js +4 -4
- package/build/credentials/ios/api/graphql/mutations/AppleDeviceRegistrationRequestMutation.d.ts +2 -1
- package/build/credentials/ios/api/graphql/mutations/AppleDeviceRegistrationRequestMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/AppleDistributionCertificateMutation.d.ts +3 -2
- package/build/credentials/ios/api/graphql/mutations/AppleDistributionCertificateMutation.js +4 -4
- package/build/credentials/ios/api/graphql/mutations/AppleProvisioningProfileMutation.d.ts +4 -3
- package/build/credentials/ios/api/graphql/mutations/AppleProvisioningProfileMutation.js +6 -6
- package/build/credentials/ios/api/graphql/mutations/ApplePushKeyMutation.d.ts +3 -2
- package/build/credentials/ios/api/graphql/mutations/ApplePushKeyMutation.js +4 -4
- package/build/credentials/ios/api/graphql/mutations/AppleTeamMutation.d.ts +2 -1
- package/build/credentials/ios/api/graphql/mutations/AppleTeamMutation.js +2 -2
- package/build/credentials/ios/api/graphql/mutations/IosAppBuildCredentialsMutation.d.ts +4 -3
- package/build/credentials/ios/api/graphql/mutations/IosAppBuildCredentialsMutation.js +6 -6
- package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.d.ts +4 -3
- package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.js +6 -6
- package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.d.ts +2 -1
- package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/AppleAppIdentifierQuery.d.ts +2 -1
- package/build/credentials/ios/api/graphql/queries/AppleAppIdentifierQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.d.ts +4 -3
- package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.js +6 -6
- package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.d.ts +3 -2
- package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.js +4 -4
- package/build/credentials/ios/api/graphql/queries/AppleProvisioningProfileQuery.d.ts +2 -1
- package/build/credentials/ios/api/graphql/queries/AppleProvisioningProfileQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.d.ts +2 -1
- package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.d.ts +3 -2
- package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.js +4 -4
- package/build/credentials/ios/api/graphql/queries/IosAppBuildCredentialsQuery.d.ts +2 -1
- package/build/credentials/ios/api/graphql/queries/IosAppBuildCredentialsQuery.js +2 -2
- package/build/credentials/ios/api/graphql/queries/IosAppCredentialsQuery.d.ts +3 -2
- package/build/credentials/ios/api/graphql/queries/IosAppCredentialsQuery.js +4 -4
- package/build/credentials/manager/HelperActions.d.ts +2 -0
- package/build/credentials/manager/ManageAndroid.js +4 -3
- package/build/credentials/manager/ManageIos.js +4 -3
- package/build/credentials/manager/SelectAndroidBuildCredentials.js +2 -2
- package/build/credentials/manager/SelectPlatform.d.ts +3 -1
- package/build/credentials/manager/SelectPlatform.js +2 -1
- package/build/devices/actions/create/action.d.ts +3 -1
- package/build/devices/actions/create/action.js +5 -4
- package/build/devices/actions/create/developerPortalMethod.d.ts +2 -1
- package/build/devices/actions/create/developerPortalMethod.js +9 -9
- package/build/devices/actions/create/inputMethod.d.ts +2 -1
- package/build/devices/actions/create/inputMethod.js +4 -4
- package/build/devices/actions/create/registrationUrlMethod.d.ts +2 -1
- package/build/devices/actions/create/registrationUrlMethod.js +4 -4
- package/build/devices/context.d.ts +4 -1
- package/build/devices/context.js +2 -1
- package/build/devices/manager.d.ts +3 -1
- package/build/devices/manager.js +9 -8
- package/build/devices/queries.d.ts +4 -3
- package/build/devices/queries.js +7 -7
- package/build/graphql/client.d.ts +1 -8
- package/build/graphql/client.js +1 -39
- package/build/graphql/mutations/AppMutation.d.ts +2 -1
- package/build/graphql/mutations/AppMutation.js +2 -2
- package/build/graphql/mutations/AppVersionMutation.d.ts +2 -1
- package/build/graphql/mutations/AppVersionMutation.js +2 -2
- package/build/graphql/mutations/BuildMutation.d.ts +3 -2
- package/build/graphql/mutations/BuildMutation.js +4 -4
- package/build/graphql/mutations/EnvironmentSecretMutation.d.ts +4 -3
- package/build/graphql/mutations/EnvironmentSecretMutation.js +6 -6
- package/build/graphql/mutations/KeystoreGenerationUrlMutation.d.ts +2 -1
- package/build/graphql/mutations/KeystoreGenerationUrlMutation.js +2 -2
- package/build/graphql/mutations/PublishMutation.d.ts +4 -3
- package/build/graphql/mutations/PublishMutation.js +6 -6
- package/build/graphql/mutations/SubmissionMutation.d.ts +3 -2
- package/build/graphql/mutations/SubmissionMutation.js +4 -4
- package/build/graphql/mutations/UploadSessionMutation.d.ts +2 -1
- package/build/graphql/mutations/UploadSessionMutation.js +2 -2
- package/build/graphql/mutations/WebhookMutation.d.ts +4 -3
- package/build/graphql/mutations/WebhookMutation.js +6 -6
- package/build/graphql/queries/AppQuery.d.ts +3 -2
- package/build/graphql/queries/AppQuery.js +4 -4
- package/build/graphql/queries/AppVersionQuery.d.ts +2 -1
- package/build/graphql/queries/AppVersionQuery.js +2 -2
- package/build/graphql/queries/BranchQuery.d.ts +4 -3
- package/build/graphql/queries/BranchQuery.js +6 -6
- package/build/graphql/queries/BuildQuery.d.ts +4 -3
- package/build/graphql/queries/BuildQuery.js +6 -6
- package/build/graphql/queries/ChannelQuery.d.ts +3 -2
- package/build/graphql/queries/ChannelQuery.js +4 -4
- package/build/graphql/queries/EnvironmentSecretsQuery.d.ts +3 -2
- package/build/graphql/queries/EnvironmentSecretsQuery.js +4 -4
- package/build/graphql/queries/PublishQuery.d.ts +3 -2
- package/build/graphql/queries/PublishQuery.js +4 -4
- package/build/graphql/queries/StatuspageServiceQuery.d.ts +2 -1
- package/build/graphql/queries/StatuspageServiceQuery.js +2 -2
- package/build/graphql/queries/SubmissionQuery.d.ts +3 -2
- package/build/graphql/queries/SubmissionQuery.js +4 -4
- package/build/graphql/queries/UpdateQuery.d.ts +4 -3
- package/build/graphql/queries/UpdateQuery.js +6 -6
- package/build/graphql/queries/UserQuery.d.ts +2 -1
- package/build/graphql/queries/UserQuery.js +2 -2
- package/build/graphql/queries/WebhookQuery.d.ts +3 -2
- package/build/graphql/queries/WebhookQuery.js +4 -4
- package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.d.ts +3 -2
- package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.js +5 -5
- package/build/project/projectUtils.d.ts +3 -2
- package/build/project/projectUtils.js +4 -4
- package/build/project/publish.d.ts +3 -2
- package/build/project/publish.js +7 -7
- package/build/submit/ArchiveSource.d.ts +2 -1
- package/build/submit/ArchiveSource.js +30 -30
- package/build/submit/android/AndroidSubmitter.js +2 -2
- package/build/submit/context.d.ts +3 -0
- package/build/submit/context.js +3 -2
- package/build/submit/ios/IosSubmitter.js +2 -2
- package/build/submit/submit.d.ts +2 -1
- package/build/submit/submit.js +2 -2
- package/build/submit/utils/builds.d.ts +2 -1
- package/build/submit/utils/builds.js +2 -2
- package/build/submit/utils/errors.d.ts +3 -0
- package/build/submit/utils/errors.js +15 -67
- package/build/submit/utils/files.d.ts +2 -1
- package/build/submit/utils/files.js +2 -2
- package/build/submit/utils/wait.d.ts +2 -1
- package/build/submit/utils/wait.js +2 -2
- package/build/update/android/UpdatesModule.d.ts +2 -1
- package/build/update/android/UpdatesModule.js +2 -2
- package/build/update/ios/UpdatesModule.d.ts +2 -1
- package/build/update/ios/UpdatesModule.js +2 -2
- package/build/update/queries.d.ts +4 -3
- package/build/update/queries.js +22 -12
- package/build/uploads.d.ts +2 -1
- package/build/uploads.js +2 -2
- package/build/user/SessionManager.d.ts +70 -0
- package/build/user/SessionManager.js +258 -0
- package/build/user/User.d.ts +0 -9
- package/build/user/User.js +1 -60
- package/build/user/fetchSessionSecretAndUser.d.ts +9 -0
- package/build/user/fetchSessionSecretAndUser.js +43 -0
- package/build/utils/statuspageService.d.ts +2 -1
- package/build/utils/statuspageService.js +4 -4
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
- package/build/commandUtils/context/ActorContextField.d.ts +0 -5
- package/build/commandUtils/context/ActorContextField.js +0 -11
- package/build/commandUtils/context/contextUtils/ensureLoggedInAsync.d.ts +0 -21
- package/build/commandUtils/context/contextUtils/ensureLoggedInAsync.js +0 -75
- package/build/user/otp.d.ts +0 -29
- package/build/user/otp.js +0 -119
- package/build/user/sessionStorage.d.ts +0 -11
- package/build/user/sessionStorage.js +0 -36
|
@@ -13,7 +13,7 @@ class CreateAscApiKey {
|
|
|
13
13
|
throw new Error(`A new App Store Connect API Key cannot be created in non-interactive mode.`);
|
|
14
14
|
}
|
|
15
15
|
const ascApiKey = await (0, AscApiKeyUtils_1.provideOrGenerateAscApiKeyAsync)(ctx, purpose);
|
|
16
|
-
const result = await ctx.ios.createAscApiKeyAsync(this.account, ascApiKey);
|
|
16
|
+
const result = await ctx.ios.createAscApiKeyAsync(ctx.graphqlClient, this.account, ascApiKey);
|
|
17
17
|
log_1.default.succeed('Created App Store Connect API Key');
|
|
18
18
|
return result;
|
|
19
19
|
}
|
|
@@ -10,7 +10,7 @@ class CreateDistributionCertificate {
|
|
|
10
10
|
}
|
|
11
11
|
async runAsync(ctx) {
|
|
12
12
|
const distCert = await (0, DistributionCertificateUtils_1.provideOrGenerateDistributionCertificateAsync)(ctx);
|
|
13
|
-
const result = await ctx.ios.createDistributionCertificateAsync(this.account, distCert);
|
|
13
|
+
const result = await ctx.ios.createDistributionCertificateAsync(ctx.graphqlClient, this.account, distCert);
|
|
14
14
|
log_1.default.succeed('Created distribution certificate');
|
|
15
15
|
return result;
|
|
16
16
|
}
|
|
@@ -23,8 +23,8 @@ class CreateProvisioningProfile {
|
|
|
23
23
|
const appleAuthCtx = await ctx.appStore.ensureAuthenticatedAsync();
|
|
24
24
|
const provisioningProfile = await this.provideOrGenerateAsync(ctx, appleAuthCtx);
|
|
25
25
|
const appleTeam = (0, nullthrows_1.default)(await (0, AppleTeamUtils_1.resolveAppleTeamIfAuthenticatedAsync)(ctx, this.app));
|
|
26
|
-
const appleAppIdentifier = await ctx.ios.createOrGetExistingAppleAppIdentifierAsync(this.app, appleTeam);
|
|
27
|
-
const provisioningProfileMutationResult = await ctx.ios.createProvisioningProfileAsync(this.app, appleAppIdentifier, {
|
|
26
|
+
const appleAppIdentifier = await ctx.ios.createOrGetExistingAppleAppIdentifierAsync(ctx.graphqlClient, this.app, appleTeam);
|
|
27
|
+
const provisioningProfileMutationResult = await ctx.ios.createProvisioningProfileAsync(ctx.graphqlClient, this.app, appleAppIdentifier, {
|
|
28
28
|
appleProvisioningProfile: provisioningProfile.provisioningProfile,
|
|
29
29
|
developerPortalIdentifier: provisioningProfile.provisioningProfileId,
|
|
30
30
|
});
|
|
@@ -13,7 +13,7 @@ class CreatePushKey {
|
|
|
13
13
|
throw new Error(`A new push key cannot be created in non-interactive mode.`);
|
|
14
14
|
}
|
|
15
15
|
const pushKey = await (0, PushKeyUtils_1.provideOrGeneratePushKeyAsync)(ctx);
|
|
16
|
-
const result = await ctx.ios.createPushKeyAsync(this.account, pushKey);
|
|
16
|
+
const result = await ctx.ios.createPushKeyAsync(ctx.graphqlClient, this.account, pushKey);
|
|
17
17
|
log_1.default.succeed('Created push key');
|
|
18
18
|
return result;
|
|
19
19
|
}
|
|
@@ -54,7 +54,7 @@ async function selectDistributionCertificateAsync(distCerts, validDistributionCe
|
|
|
54
54
|
* select a distribution certificate from an account (validity status shown on a best effort basis)
|
|
55
55
|
* */
|
|
56
56
|
async function selectDistributionCertificateWithDependenciesAsync(ctx, account) {
|
|
57
|
-
const distCertsForAccount = await ctx.ios.getDistributionCertificatesForAccountAsync(account);
|
|
57
|
+
const distCertsForAccount = await ctx.ios.getDistributionCertificatesForAccountAsync(ctx.graphqlClient, account);
|
|
58
58
|
if (distCertsForAccount.length === 0) {
|
|
59
59
|
log_1.default.warn(`There are no Distribution Certificates available in your EAS account.`);
|
|
60
60
|
return null;
|
|
@@ -73,7 +73,7 @@ exports.selectDistributionCertificateWithDependenciesAsync = selectDistributionC
|
|
|
73
73
|
* */
|
|
74
74
|
async function selectValidDistributionCertificateAsync(ctx, appLookupParams) {
|
|
75
75
|
var _a;
|
|
76
|
-
const distCertsForAccount = await ctx.ios.getDistributionCertificatesForAccountAsync(appLookupParams.account);
|
|
76
|
+
const distCertsForAccount = await ctx.ios.getDistributionCertificatesForAccountAsync(ctx.graphqlClient, appLookupParams.account);
|
|
77
77
|
if (distCertsForAccount.length === 0) {
|
|
78
78
|
log_1.default.warn(`There are no Distribution Certificates available in your EAS account.`);
|
|
79
79
|
return null;
|
|
@@ -105,7 +105,7 @@ function formatPushKeyFromApple(pushKey) {
|
|
|
105
105
|
* select a push key from an account (validity status shown on a best effort basis)
|
|
106
106
|
* */
|
|
107
107
|
async function selectPushKeyAsync(ctx, account) {
|
|
108
|
-
const pushKeysForAccount = await ctx.ios.getPushKeysForAccountAsync(account);
|
|
108
|
+
const pushKeysForAccount = await ctx.ios.getPushKeysForAccountAsync(ctx.graphqlClient, account);
|
|
109
109
|
if (pushKeysForAccount.length === 0) {
|
|
110
110
|
log_1.default.warn(`There are no Push Keys available in your EAS account.`);
|
|
111
111
|
return null;
|
|
@@ -36,7 +36,7 @@ class RemoveAscApiKey {
|
|
|
36
36
|
return;
|
|
37
37
|
}
|
|
38
38
|
log_1.default.log('Removing API Key');
|
|
39
|
-
await ctx.ios.deleteAscApiKeyAsync(this.ascApiKey.id);
|
|
39
|
+
await ctx.ios.deleteAscApiKeyAsync(ctx.graphqlClient, this.ascApiKey.id);
|
|
40
40
|
let shouldRevoke = false;
|
|
41
41
|
if (!ctx.nonInteractive) {
|
|
42
42
|
shouldRevoke = await (0, prompts_1.confirmAsync)({
|
|
@@ -41,7 +41,7 @@ class RemoveDistributionCertificate {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
log_1.default.log('Removing Distribution Certificate');
|
|
44
|
-
await ctx.ios.deleteDistributionCertificateAsync(this.distributionCertificate.id);
|
|
44
|
+
await ctx.ios.deleteDistributionCertificateAsync(ctx.graphqlClient, this.distributionCertificate.id);
|
|
45
45
|
if (this.distributionCertificate.developerPortalIdentifier) {
|
|
46
46
|
let shouldRevoke = false;
|
|
47
47
|
if (!ctx.nonInteractive) {
|
|
@@ -15,7 +15,7 @@ class RemoveProvisioningProfiles {
|
|
|
15
15
|
log_1.default.log(`Skipping deletion of Provisioning Profiles`);
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
|
-
await ctx.ios.deleteProvisioningProfilesAsync(this.provisioningProfiles.map(profile => profile.id));
|
|
18
|
+
await ctx.ios.deleteProvisioningProfilesAsync(ctx.graphqlClient, this.provisioningProfiles.map(profile => profile.id));
|
|
19
19
|
const appAndBundles = this.apps
|
|
20
20
|
.map(app => `@${app.account.name}/${app.projectName} (${app.bundleIdentifier})`)
|
|
21
21
|
.join(',');
|
|
@@ -39,7 +39,7 @@ class RemovePushKey {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
log_1.default.log('Removing Push Key');
|
|
42
|
-
await ctx.ios.deletePushKeyAsync(this.pushKey.id);
|
|
42
|
+
await ctx.ios.deletePushKeyAsync(ctx.graphqlClient, this.pushKey.id);
|
|
43
43
|
let shouldRevoke = false;
|
|
44
44
|
if (!ctx.nonInteractive) {
|
|
45
45
|
shouldRevoke = await (0, prompts_1.confirmAsync)({
|
|
@@ -62,7 +62,7 @@ class SetUpAdhocProvisioningProfile {
|
|
|
62
62
|
}
|
|
63
63
|
(0, assert_1.default)(appleTeam, 'Apple Team must be defined here');
|
|
64
64
|
// 2. Fetch devices registered on EAS servers
|
|
65
|
-
let registeredAppleDevices = await ctx.ios.getDevicesForAppleTeamAsync(app, appleTeam);
|
|
65
|
+
let registeredAppleDevices = await ctx.ios.getDevicesForAppleTeamAsync(ctx.graphqlClient, app, appleTeam);
|
|
66
66
|
if (registeredAppleDevices.length === 0) {
|
|
67
67
|
const shouldRegisterDevices = await (0, prompts_1.confirmAsync)({
|
|
68
68
|
message: `You don't have any registered devices yet. Would you like to register them now?`,
|
|
@@ -85,15 +85,15 @@ class SetUpAdhocProvisioningProfile {
|
|
|
85
85
|
: apple_utils_1.ProfileType.IOS_APP_ADHOC;
|
|
86
86
|
const provisioningProfileStoreInfo = await ctx.appStore.createOrReuseAdhocProvisioningProfileAsync(chosenDevices.map(({ identifier }) => identifier), app.bundleIdentifier, distCert.serialNumber, profileType);
|
|
87
87
|
// 5. Create or update the profile on servers
|
|
88
|
-
const appleAppIdentifier = await ctx.ios.createOrGetExistingAppleAppIdentifierAsync(app, appleTeam);
|
|
88
|
+
const appleAppIdentifier = await ctx.ios.createOrGetExistingAppleAppIdentifierAsync(ctx.graphqlClient, app, appleTeam);
|
|
89
89
|
let appleProvisioningProfile = null;
|
|
90
90
|
if (currentBuildCredentials === null || currentBuildCredentials === void 0 ? void 0 : currentBuildCredentials.provisioningProfile) {
|
|
91
91
|
if (currentBuildCredentials.provisioningProfile.developerPortalIdentifier !==
|
|
92
92
|
provisioningProfileStoreInfo.provisioningProfileId) {
|
|
93
|
-
await ctx.ios.deleteProvisioningProfilesAsync([
|
|
93
|
+
await ctx.ios.deleteProvisioningProfilesAsync(ctx.graphqlClient, [
|
|
94
94
|
currentBuildCredentials.provisioningProfile.id,
|
|
95
95
|
]);
|
|
96
|
-
appleProvisioningProfile = await ctx.ios.createProvisioningProfileAsync(app, appleAppIdentifier, {
|
|
96
|
+
appleProvisioningProfile = await ctx.ios.createProvisioningProfileAsync(ctx.graphqlClient, app, appleAppIdentifier, {
|
|
97
97
|
appleProvisioningProfile: provisioningProfileStoreInfo.provisioningProfile,
|
|
98
98
|
developerPortalIdentifier: provisioningProfileStoreInfo.provisioningProfileId,
|
|
99
99
|
});
|
|
@@ -103,7 +103,7 @@ class SetUpAdhocProvisioningProfile {
|
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
else {
|
|
106
|
-
appleProvisioningProfile = await ctx.ios.createProvisioningProfileAsync(app, appleAppIdentifier, {
|
|
106
|
+
appleProvisioningProfile = await ctx.ios.createProvisioningProfileAsync(ctx.graphqlClient, app, appleAppIdentifier, {
|
|
107
107
|
appleProvisioningProfile: provisioningProfileStoreInfo.provisioningProfile,
|
|
108
108
|
developerPortalIdentifier: provisioningProfileStoreInfo.provisioningProfileId,
|
|
109
109
|
});
|
|
@@ -121,7 +121,7 @@ class SetUpAdhocProvisioningProfile {
|
|
|
121
121
|
const { app } = this.options;
|
|
122
122
|
const provisioningProfile = (0, nullthrows_1.default)(buildCredentials.provisioningProfile);
|
|
123
123
|
const appleTeam = (0, nullthrows_1.default)(provisioningProfile.appleTeam);
|
|
124
|
-
const registeredAppleDevices = await ctx.ios.getDevicesForAppleTeamAsync(app, appleTeam);
|
|
124
|
+
const registeredAppleDevices = await ctx.ios.getDevicesForAppleTeamAsync(ctx.graphqlClient, app, appleTeam);
|
|
125
125
|
const provisionedDevices = provisioningProfile.appleDevices;
|
|
126
126
|
const allRegisteredDevicesAreProvisioned = doUDIDsMatch(registeredAppleDevices.map(({ identifier }) => identifier), provisionedDevices.map(({ identifier }) => identifier));
|
|
127
127
|
if (allRegisteredDevicesAreProvisioned) {
|
|
@@ -182,7 +182,7 @@ class SetUpAdhocProvisioningProfile {
|
|
|
182
182
|
}
|
|
183
183
|
async registerDevicesAsync(ctx, appleTeam) {
|
|
184
184
|
const { app } = this.options;
|
|
185
|
-
const action = new action_1.default(ctx.appStore, app.account, appleTeam);
|
|
185
|
+
const action = new action_1.default(ctx.graphqlClient, ctx.appStore, app.account, appleTeam);
|
|
186
186
|
const method = await action.runAsync();
|
|
187
187
|
while (true) {
|
|
188
188
|
if (method === action_1.RegistrationMethod.WEBSITE) {
|
|
@@ -191,7 +191,7 @@ class SetUpAdhocProvisioningProfile {
|
|
|
191
191
|
await (0, prompts_1.pressAnyKeyToContinueAsync)();
|
|
192
192
|
}
|
|
193
193
|
log_1.default.newLine();
|
|
194
|
-
const devices = await ctx.ios.getDevicesForAppleTeamAsync(app, appleTeam, {
|
|
194
|
+
const devices = await ctx.ios.getDevicesForAppleTeamAsync(ctx.graphqlClient, app, appleTeam, {
|
|
195
195
|
useCache: false,
|
|
196
196
|
});
|
|
197
197
|
if (devices.length === 0) {
|
|
@@ -32,7 +32,7 @@ class SetUpAscApiKey {
|
|
|
32
32
|
const isKeySetup = await this.isAscApiKeySetupAsync(ctx, this.purpose);
|
|
33
33
|
if (isKeySetup) {
|
|
34
34
|
log_1.default.succeed('App Store Connect API Key already set up.');
|
|
35
|
-
return (0, nullthrows_1.default)(await ctx.ios.getIosAppCredentialsWithCommonFieldsAsync(this.app), 'iosAppCredentials cannot be null if App Store Connect API Key is already set up');
|
|
35
|
+
return (0, nullthrows_1.default)(await ctx.ios.getIosAppCredentialsWithCommonFieldsAsync(ctx.graphqlClient, this.app), 'iosAppCredentials cannot be null if App Store Connect API Key is already set up');
|
|
36
36
|
}
|
|
37
37
|
if (ctx.nonInteractive) {
|
|
38
38
|
throw new errors_1.MissingCredentialsNonInteractiveError('App Store Connect API Keys cannot be set up in --non-interactive mode.');
|
|
@@ -75,7 +75,7 @@ class SetUpAscApiKey {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
async isAscApiKeySetupAsync(ctx, purpose) {
|
|
78
|
-
const appCredentials = await ctx.ios.getIosAppCredentialsWithCommonFieldsAsync(this.app);
|
|
78
|
+
const appCredentials = await ctx.ios.getIosAppCredentialsWithCommonFieldsAsync(ctx.graphqlClient, this.app);
|
|
79
79
|
if (purpose !== AscApiKeyUtils_1.AppStoreApiKeyPurpose.SUBMISSION_SERVICE) {
|
|
80
80
|
throw new Error(`App Store Connect API Key setup is not yet supported for ${purpose}.`);
|
|
81
81
|
}
|
|
@@ -20,7 +20,7 @@ class SetUpDistributionCertificate {
|
|
|
20
20
|
async runAsync(ctx) {
|
|
21
21
|
const appleTeam = await (0, AppleTeamUtils_1.resolveAppleTeamIfAuthenticatedAsync)(ctx, this.app);
|
|
22
22
|
try {
|
|
23
|
-
const currentCertificate = await ctx.ios.getDistributionCertificateForAppAsync(this.app, this.distributionType, { appleTeam });
|
|
23
|
+
const currentCertificate = await ctx.ios.getDistributionCertificateForAppAsync(ctx.graphqlClient, this.app, this.distributionType, { appleTeam });
|
|
24
24
|
if (ctx.nonInteractive) {
|
|
25
25
|
return await this.runNonInteractiveAsync(ctx, currentCertificate);
|
|
26
26
|
}
|
|
@@ -125,7 +125,7 @@ class SetUpDistributionCertificate {
|
|
|
125
125
|
}
|
|
126
126
|
const validDistCertSerialNumbers = (0, CredentialsUtils_1.getValidCertSerialNumbers)(await ctx.appStore.listDistributionCertificatesAsync());
|
|
127
127
|
const validDistCertSerialNumberSet = new Set(validDistCertSerialNumbers);
|
|
128
|
-
const distCertsForAccount = await ctx.ios.getDistributionCertificatesForAccountAsync(this.app.account);
|
|
128
|
+
const distCertsForAccount = await ctx.ios.getDistributionCertificatesForAccountAsync(ctx.graphqlClient, this.app.account);
|
|
129
129
|
const distCertsForAppleTeam = distCertsForAccount.filter(distCert => {
|
|
130
130
|
var _a;
|
|
131
131
|
return (!distCert.appleTeam ||
|
|
@@ -28,7 +28,7 @@ class SetUpProvisioningProfile {
|
|
|
28
28
|
async assignNewAndDeleteOldProfileAsync(ctx, distCert, currentProfile) {
|
|
29
29
|
const buildCredentials = await this.createAndAssignProfileAsync(ctx, distCert);
|
|
30
30
|
// delete 'currentProfile' since its no longer valid
|
|
31
|
-
await ctx.ios.deleteProvisioningProfilesAsync([currentProfile.id]);
|
|
31
|
+
await ctx.ios.deleteProvisioningProfilesAsync(ctx.graphqlClient, [currentProfile.id]);
|
|
32
32
|
return buildCredentials;
|
|
33
33
|
}
|
|
34
34
|
async createAndAssignProfileAsync(ctx, distCert) {
|
|
@@ -14,7 +14,7 @@ class SetUpPushKey {
|
|
|
14
14
|
this.app = app;
|
|
15
15
|
}
|
|
16
16
|
async isPushKeySetupAsync(ctx) {
|
|
17
|
-
const pushKey = await ctx.ios.getPushKeyForAppAsync(this.app);
|
|
17
|
+
const pushKey = await ctx.ios.getPushKeyForAppAsync(ctx.graphqlClient, this.app);
|
|
18
18
|
return !!pushKey;
|
|
19
19
|
}
|
|
20
20
|
async runAsync(ctx) {
|
|
@@ -23,9 +23,9 @@ class SetUpPushKey {
|
|
|
23
23
|
}
|
|
24
24
|
const isPushKeySetup = await this.isPushKeySetupAsync(ctx);
|
|
25
25
|
if (isPushKeySetup) {
|
|
26
|
-
return await ctx.ios.getIosAppCredentialsWithCommonFieldsAsync(this.app);
|
|
26
|
+
return await ctx.ios.getIosAppCredentialsWithCommonFieldsAsync(ctx.graphqlClient, this.app);
|
|
27
27
|
}
|
|
28
|
-
const pushKeysForAccount = await ctx.ios.getPushKeysForAccountAsync(this.app.account);
|
|
28
|
+
const pushKeysForAccount = await ctx.ios.getPushKeysForAccountAsync(ctx.graphqlClient, this.app.account);
|
|
29
29
|
let pushKey;
|
|
30
30
|
if (pushKeysForAccount.length === 0) {
|
|
31
31
|
pushKey = await new CreatePushKey_1.CreatePushKey(this.app.account).runAsync(ctx);
|
|
@@ -36,7 +36,7 @@ class SetUpPushKey {
|
|
|
36
36
|
return await new AssignPushKey_1.AssignPushKey(this.app).runAsync(ctx, pushKey);
|
|
37
37
|
}
|
|
38
38
|
async createOrReusePushKeyAsync(ctx) {
|
|
39
|
-
const pushKeysForAccount = await ctx.ios.getPushKeysForAccountAsync(this.app.account);
|
|
39
|
+
const pushKeysForAccount = await ctx.ios.getPushKeysForAccountAsync(ctx.graphqlClient, this.app.account);
|
|
40
40
|
(0, assert_1.default)(pushKeysForAccount.length > 0, 'createOrReusePushKeyAsync: There are no Push Keys available in your EAS account.');
|
|
41
41
|
if (ctx.appStore.authCtx) {
|
|
42
42
|
// only provide autoselect if we can find a push key that is certainly valid
|
|
@@ -23,7 +23,7 @@ class SetUpTargetBuildCredentialsFromCredentialsJson {
|
|
|
23
23
|
const appInfo = `@${this.app.account.name}/${this.app.projectName} (${this.app.bundleIdentifier})`;
|
|
24
24
|
// new credentials from local json
|
|
25
25
|
const appleTeamFromProvisioningProfile = (0, provisioningProfile_1.readAppleTeam)(this.targetCredentials.provisioningProfile);
|
|
26
|
-
const appleTeam = await ctx.ios.createOrGetExistingAppleTeamAsync(this.app.account, {
|
|
26
|
+
const appleTeam = await ctx.ios.createOrGetExistingAppleTeamAsync(ctx.graphqlClient, this.app.account, {
|
|
27
27
|
appleTeamIdentifier: appleTeamFromProvisioningProfile.teamId,
|
|
28
28
|
appleTeamName: appleTeamFromProvisioningProfile.teamName,
|
|
29
29
|
});
|
|
@@ -62,7 +62,7 @@ class SetUpTargetBuildCredentialsFromCredentialsJson {
|
|
|
62
62
|
var _a, _b;
|
|
63
63
|
const { certificateP12, certificatePassword } = this.targetCredentials.distributionCertificate;
|
|
64
64
|
if (!currentDistributionCertificate) {
|
|
65
|
-
return await ctx.ios.createDistributionCertificateAsync(this.app.account, {
|
|
65
|
+
return await ctx.ios.createDistributionCertificateAsync(ctx.graphqlClient, this.app.account, {
|
|
66
66
|
certP12: certificateP12,
|
|
67
67
|
certPassword: certificatePassword,
|
|
68
68
|
teamId: appleTeam.appleTeamIdentifier,
|
|
@@ -71,7 +71,7 @@ class SetUpTargetBuildCredentialsFromCredentialsJson {
|
|
|
71
71
|
}
|
|
72
72
|
const isSameCertificate = currentDistributionCertificate.certificateP12 === certificateP12;
|
|
73
73
|
if (!isSameCertificate) {
|
|
74
|
-
return await ctx.ios.createDistributionCertificateAsync(this.app.account, {
|
|
74
|
+
return await ctx.ios.createDistributionCertificateAsync(ctx.graphqlClient, this.app.account, {
|
|
75
75
|
certP12: certificateP12,
|
|
76
76
|
certPassword: certificatePassword,
|
|
77
77
|
teamId: appleTeam.appleTeamIdentifier,
|
|
@@ -95,8 +95,8 @@ class SetUpTargetBuildCredentialsFromCredentialsJson {
|
|
|
95
95
|
}
|
|
96
96
|
async createNewProvisioningProfileAsync(ctx, appleTeam) {
|
|
97
97
|
const { provisioningProfile } = this.targetCredentials;
|
|
98
|
-
const appleAppIdentifier = await ctx.ios.createOrGetExistingAppleAppIdentifierAsync(this.app, appleTeam);
|
|
99
|
-
return await ctx.ios.createProvisioningProfileAsync(this.app, appleAppIdentifier, {
|
|
98
|
+
const appleAppIdentifier = await ctx.ios.createOrGetExistingAppleAppIdentifierAsync(ctx.graphqlClient, this.app, appleTeam);
|
|
99
|
+
return await ctx.ios.createProvisioningProfileAsync(ctx.graphqlClient, this.app, appleAppIdentifier, {
|
|
100
100
|
appleProvisioningProfile: provisioningProfile,
|
|
101
101
|
});
|
|
102
102
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ExpoGraphqlClient } from '../../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
1
2
|
import { AccountFragment, AppStoreConnectApiKeyFragment, AppleAppIdentifierFragment, AppleDeviceFragment, AppleDistributionCertificateFragment, ApplePushKeyFragment, AppleTeamFragment, CommonIosAppCredentialsFragment, IosAppBuildCredentialsFragment, IosDistributionType } from '../../../graphql/generated';
|
|
2
3
|
import { DistributionCertificate, PushKey } from '../appstore/Credentials.types';
|
|
3
4
|
import { MinimalAscApiKey } from '../credentials';
|
|
@@ -5,55 +6,55 @@ import { AppleDistributionCertificateMutationResult } from './graphql/mutations/
|
|
|
5
6
|
import { AppleProvisioningProfileMutationResult } from './graphql/mutations/AppleProvisioningProfileMutation';
|
|
6
7
|
import { AppleProvisioningProfileQueryResult } from './graphql/queries/AppleProvisioningProfileQuery';
|
|
7
8
|
import { AppLookupParams } from './graphql/types/AppLookupParams';
|
|
8
|
-
export declare function createOrUpdateIosAppBuildCredentialsAsync(appLookupParams: AppLookupParams, { appleTeam, appleAppIdentifierId, iosDistributionType, appleProvisioningProfileId, appleDistributionCertificateId, }: {
|
|
9
|
+
export declare function createOrUpdateIosAppBuildCredentialsAsync(graphqlClient: ExpoGraphqlClient, appLookupParams: AppLookupParams, { appleTeam, appleAppIdentifierId, iosDistributionType, appleProvisioningProfileId, appleDistributionCertificateId, }: {
|
|
9
10
|
appleTeam: AppleTeamFragment;
|
|
10
11
|
appleAppIdentifierId: string;
|
|
11
12
|
iosDistributionType: IosDistributionType;
|
|
12
13
|
appleProvisioningProfileId: string;
|
|
13
14
|
appleDistributionCertificateId: string;
|
|
14
15
|
}): Promise<IosAppBuildCredentialsFragment>;
|
|
15
|
-
export declare function getIosAppCredentialsWithBuildCredentialsAsync(appLookupParams: AppLookupParams, { iosDistributionType }: {
|
|
16
|
+
export declare function getIosAppCredentialsWithBuildCredentialsAsync(graphqlClient: ExpoGraphqlClient, appLookupParams: AppLookupParams, { iosDistributionType }: {
|
|
16
17
|
iosDistributionType?: IosDistributionType;
|
|
17
18
|
}): Promise<CommonIosAppCredentialsFragment | null>;
|
|
18
|
-
export declare function getIosAppCredentialsWithCommonFieldsAsync(appLookupParams: AppLookupParams): Promise<CommonIosAppCredentialsFragment | null>;
|
|
19
|
-
export declare function createOrGetIosAppCredentialsWithCommonFieldsAsync(appLookupParams: AppLookupParams, { appleTeam, }: {
|
|
19
|
+
export declare function getIosAppCredentialsWithCommonFieldsAsync(graphqlClient: ExpoGraphqlClient, appLookupParams: AppLookupParams): Promise<CommonIosAppCredentialsFragment | null>;
|
|
20
|
+
export declare function createOrGetIosAppCredentialsWithCommonFieldsAsync(graphqlClient: ExpoGraphqlClient, appLookupParams: AppLookupParams, { appleTeam, }: {
|
|
20
21
|
appleTeam?: AppleTeamFragment;
|
|
21
22
|
}): Promise<CommonIosAppCredentialsFragment>;
|
|
22
|
-
export declare function updateIosAppCredentialsAsync(appCredentials: CommonIosAppCredentialsFragment, { applePushKeyId, ascApiKeyIdForSubmissions, }: {
|
|
23
|
+
export declare function updateIosAppCredentialsAsync(graphqlClient: ExpoGraphqlClient, appCredentials: CommonIosAppCredentialsFragment, { applePushKeyId, ascApiKeyIdForSubmissions, }: {
|
|
23
24
|
applePushKeyId?: string;
|
|
24
25
|
ascApiKeyIdForSubmissions?: string;
|
|
25
26
|
}): Promise<CommonIosAppCredentialsFragment>;
|
|
26
|
-
export declare function createOrGetExistingAppleTeamAsync(account: AccountFragment, { appleTeamIdentifier, appleTeamName }: {
|
|
27
|
+
export declare function createOrGetExistingAppleTeamAsync(graphqlClient: ExpoGraphqlClient, account: AccountFragment, { appleTeamIdentifier, appleTeamName }: {
|
|
27
28
|
appleTeamIdentifier: string;
|
|
28
29
|
appleTeamName?: string;
|
|
29
30
|
}): Promise<AppleTeamFragment>;
|
|
30
|
-
export declare function createOrGetExistingAppleAppIdentifierAsync({ account, projectName, bundleIdentifier, parentBundleIdentifier }: AppLookupParams, appleTeam: AppleTeamFragment | null): Promise<AppleAppIdentifierFragment>;
|
|
31
|
-
export declare function getDevicesForAppleTeamAsync({ account }: AppLookupParams, { appleTeamIdentifier }: AppleTeamFragment, { useCache }?: {
|
|
31
|
+
export declare function createOrGetExistingAppleAppIdentifierAsync(graphqlClient: ExpoGraphqlClient, { account, projectName, bundleIdentifier, parentBundleIdentifier }: AppLookupParams, appleTeam: AppleTeamFragment | null): Promise<AppleAppIdentifierFragment>;
|
|
32
|
+
export declare function getDevicesForAppleTeamAsync(graphqlClient: ExpoGraphqlClient, { account }: AppLookupParams, { appleTeamIdentifier }: AppleTeamFragment, { useCache }?: {
|
|
32
33
|
useCache?: boolean;
|
|
33
34
|
}): Promise<AppleDeviceFragment[]>;
|
|
34
|
-
export declare function createProvisioningProfileAsync({ account }: AppLookupParams, appleAppIdentifier: AppleAppIdentifierFragment, appleProvisioningProfileInput: {
|
|
35
|
+
export declare function createProvisioningProfileAsync(graphqlClient: ExpoGraphqlClient, { account }: AppLookupParams, appleAppIdentifier: AppleAppIdentifierFragment, appleProvisioningProfileInput: {
|
|
35
36
|
appleProvisioningProfile: string;
|
|
36
37
|
developerPortalIdentifier?: string;
|
|
37
38
|
}): Promise<AppleProvisioningProfileMutationResult>;
|
|
38
|
-
export declare function getProvisioningProfileAsync(appLookupParams: AppLookupParams, iosDistributionType: IosDistributionType, { appleTeam }?: {
|
|
39
|
+
export declare function getProvisioningProfileAsync(graphqlClient: ExpoGraphqlClient, appLookupParams: AppLookupParams, iosDistributionType: IosDistributionType, { appleTeam }?: {
|
|
39
40
|
appleTeam: AppleTeamFragment | null;
|
|
40
41
|
}): Promise<AppleProvisioningProfileQueryResult | null>;
|
|
41
|
-
export declare function updateProvisioningProfileAsync(appleProvisioningProfileId: string, appleProvisioningProfileInput: {
|
|
42
|
+
export declare function updateProvisioningProfileAsync(graphqlClient: ExpoGraphqlClient, appleProvisioningProfileId: string, appleProvisioningProfileInput: {
|
|
42
43
|
appleProvisioningProfile: string;
|
|
43
44
|
developerPortalIdentifier?: string;
|
|
44
45
|
}): Promise<AppleProvisioningProfileMutationResult>;
|
|
45
|
-
export declare function deleteProvisioningProfilesAsync(appleProvisioningProfileIds: string[]): Promise<void>;
|
|
46
|
-
export declare function getDistributionCertificateForAppAsync(appLookupParams: AppLookupParams, iosDistributionType: IosDistributionType, { appleTeam }?: {
|
|
46
|
+
export declare function deleteProvisioningProfilesAsync(graphqlClient: ExpoGraphqlClient, appleProvisioningProfileIds: string[]): Promise<void>;
|
|
47
|
+
export declare function getDistributionCertificateForAppAsync(graphqlClient: ExpoGraphqlClient, appLookupParams: AppLookupParams, iosDistributionType: IosDistributionType, { appleTeam }?: {
|
|
47
48
|
appleTeam: AppleTeamFragment | null;
|
|
48
49
|
}): Promise<AppleDistributionCertificateFragment | null>;
|
|
49
|
-
export declare function getDistributionCertificatesForAccountAsync(account: AccountFragment): Promise<AppleDistributionCertificateFragment[]>;
|
|
50
|
-
export declare function createDistributionCertificateAsync(account: AccountFragment, distCert: DistributionCertificate): Promise<AppleDistributionCertificateMutationResult>;
|
|
51
|
-
export declare function deleteDistributionCertificateAsync(distributionCertificateId: string): Promise<void>;
|
|
52
|
-
export declare function createPushKeyAsync(account: AccountFragment, pushKey: PushKey): Promise<ApplePushKeyFragment>;
|
|
53
|
-
export declare function getPushKeysForAccountAsync(account: AccountFragment): Promise<ApplePushKeyFragment[]>;
|
|
54
|
-
export declare function getPushKeyForAppAsync(appLookupParams: AppLookupParams): Promise<ApplePushKeyFragment | null>;
|
|
55
|
-
export declare function deletePushKeyAsync(pushKeyId: string): Promise<void>;
|
|
56
|
-
export declare function createAscApiKeyAsync(account: AccountFragment, ascApiKey: MinimalAscApiKey): Promise<AppStoreConnectApiKeyFragment>;
|
|
57
|
-
export declare function getAscApiKeysForAccountAsync(account: AccountFragment): Promise<AppStoreConnectApiKeyFragment[]>;
|
|
58
|
-
export declare function getAscApiKeyForAppSubmissionsAsync(appLookupParams: AppLookupParams): Promise<AppStoreConnectApiKeyFragment | null>;
|
|
59
|
-
export declare function deleteAscApiKeyAsync(ascApiKeyId: string): Promise<void>;
|
|
50
|
+
export declare function getDistributionCertificatesForAccountAsync(graphqlClient: ExpoGraphqlClient, account: AccountFragment): Promise<AppleDistributionCertificateFragment[]>;
|
|
51
|
+
export declare function createDistributionCertificateAsync(graphqlClient: ExpoGraphqlClient, account: AccountFragment, distCert: DistributionCertificate): Promise<AppleDistributionCertificateMutationResult>;
|
|
52
|
+
export declare function deleteDistributionCertificateAsync(graphqlClient: ExpoGraphqlClient, distributionCertificateId: string): Promise<void>;
|
|
53
|
+
export declare function createPushKeyAsync(graphqlClient: ExpoGraphqlClient, account: AccountFragment, pushKey: PushKey): Promise<ApplePushKeyFragment>;
|
|
54
|
+
export declare function getPushKeysForAccountAsync(graphqlClient: ExpoGraphqlClient, account: AccountFragment): Promise<ApplePushKeyFragment[]>;
|
|
55
|
+
export declare function getPushKeyForAppAsync(graphqlClient: ExpoGraphqlClient, appLookupParams: AppLookupParams): Promise<ApplePushKeyFragment | null>;
|
|
56
|
+
export declare function deletePushKeyAsync(graphqlClient: ExpoGraphqlClient, pushKeyId: string): Promise<void>;
|
|
57
|
+
export declare function createAscApiKeyAsync(graphqlClient: ExpoGraphqlClient, account: AccountFragment, ascApiKey: MinimalAscApiKey): Promise<AppStoreConnectApiKeyFragment>;
|
|
58
|
+
export declare function getAscApiKeysForAccountAsync(graphqlClient: ExpoGraphqlClient, account: AccountFragment): Promise<AppStoreConnectApiKeyFragment[]>;
|
|
59
|
+
export declare function getAscApiKeyForAppSubmissionsAsync(graphqlClient: ExpoGraphqlClient, appLookupParams: AppLookupParams): Promise<AppStoreConnectApiKeyFragment | null>;
|
|
60
|
+
export declare function deleteAscApiKeyAsync(graphqlClient: ExpoGraphqlClient, ascApiKeyId: string): Promise<void>;
|