eas-cli 2.1.0 → 2.2.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.
- package/README.md +6 -1047
- package/build/branch/queries.d.ts +10 -2
- package/build/branch/queries.js +30 -30
- package/build/branch/utils.d.ts +4 -0
- package/build/branch/utils.js +15 -0
- package/build/build/android/build.js +3 -3
- package/build/build/android/prepareJob.js +1 -2
- package/build/build/android/syncProjectConfiguration.d.ts +2 -1
- package/build/build/android/syncProjectConfiguration.js +2 -2
- package/build/build/build.js +15 -4
- package/build/build/configure.js +2 -2
- package/build/build/createContext.d.ts +5 -1
- package/build/build/createContext.js +8 -14
- package/build/build/ios/build.js +2 -1
- package/build/build/ios/credentials.js +1 -1
- package/build/build/ios/prepareJob.js +1 -2
- package/build/build/ios/syncProjectConfiguration.d.ts +2 -1
- package/build/build/ios/syncProjectConfiguration.js +2 -2
- package/build/build/local.js +1 -1
- package/build/build/metadata.js +1 -2
- package/build/build/queries.d.ts +9 -0
- package/build/build/queries.js +51 -0
- package/build/build/runBuildAndSubmit.d.ts +3 -1
- package/build/build/runBuildAndSubmit.js +15 -7
- package/build/build/utils/repository.js +5 -1
- package/build/channel/queries.d.ts +17 -0
- package/build/channel/queries.js +137 -0
- package/build/channel/utils.d.ts +22 -0
- package/build/channel/utils.js +87 -0
- package/build/commandUtils/EasCommand.d.ts +68 -7
- package/build/commandUtils/EasCommand.js +60 -79
- package/build/commandUtils/context/ActorContextField.d.ts +5 -0
- package/build/commandUtils/context/ActorContextField.js +11 -0
- package/build/commandUtils/context/ContextField.d.ts +6 -0
- package/build/commandUtils/context/ContextField.js +5 -0
- package/build/commandUtils/context/DynamicProjectConfigContextField.d.ts +11 -0
- package/build/commandUtils/context/DynamicProjectConfigContextField.js +27 -0
- package/build/commandUtils/context/OptionalProjectConfigContextField.d.ts +13 -0
- package/build/commandUtils/context/OptionalProjectConfigContextField.js +37 -0
- package/build/commandUtils/context/ProjectConfigContextField.d.ts +13 -0
- package/build/commandUtils/context/ProjectConfigContextField.js +23 -0
- package/build/commandUtils/context/ProjectDirContextField.d.ts +4 -0
- package/build/commandUtils/context/ProjectDirContextField.js +11 -0
- package/build/commandUtils/context/contextUtils/ensureLoggedInAsync.d.ts +21 -0
- package/build/commandUtils/context/contextUtils/ensureLoggedInAsync.js +75 -0
- package/build/commandUtils/context/contextUtils/findProjectDirAndVerifyProjectSetupAsync.d.ts +17 -0
- package/build/commandUtils/context/contextUtils/findProjectDirAndVerifyProjectSetupAsync.js +102 -0
- package/build/commandUtils/context/contextUtils/getProjectIdAsync.d.ts +24 -0
- package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +108 -0
- package/build/commandUtils/flags.d.ts +10 -0
- package/build/commandUtils/flags.js +23 -0
- package/build/commandUtils/pagination.d.ts +7 -4
- package/build/commandUtils/pagination.js +11 -15
- package/build/commands/account/login.d.ts +0 -2
- package/build/commands/account/login.js +2 -7
- package/build/commands/account/logout.d.ts +0 -2
- package/build/commands/account/logout.js +0 -5
- package/build/commands/account/view.d.ts +0 -2
- package/build/commands/account/view.js +0 -5
- package/build/commands/analytics.d.ts +0 -1
- package/build/commands/analytics.js +0 -4
- package/build/commands/branch/create.d.ts +4 -0
- package/build/commands/branch/create.js +18 -18
- package/build/commands/branch/delete.d.ts +4 -0
- package/build/commands/branch/delete.js +29 -26
- package/build/commands/branch/list.d.ts +5 -2
- package/build/commands/branch/list.js +13 -8
- package/build/commands/branch/rename.d.ts +5 -1
- package/build/commands/branch/rename.js +15 -13
- package/build/commands/branch/view.d.ts +5 -2
- package/build/commands/branch/view.js +31 -13
- package/build/commands/build/cancel.d.ts +7 -0
- package/build/commands/build/cancel.js +50 -23
- package/build/commands/build/configure.d.ts +3 -0
- package/build/commands/build/configure.js +12 -7
- package/build/commands/build/index.d.ts +7 -2
- package/build/commands/build/index.js +31 -23
- package/build/commands/build/inspect.d.ts +5 -0
- package/build/commands/build/inspect.js +12 -3
- package/build/commands/build/list.d.ts +7 -2
- package/build/commands/build/list.js +36 -59
- package/build/commands/build/version/set.d.ts +5 -0
- package/build/commands/build/version/set.js +22 -14
- package/build/commands/build/version/sync.d.ts +5 -0
- package/build/commands/build/version/sync.js +22 -13
- package/build/commands/build/view.d.ts +3 -0
- package/build/commands/build/view.js +20 -14
- package/build/commands/channel/create.d.ts +4 -0
- package/build/commands/channel/create.js +32 -25
- package/build/commands/channel/delete.d.ts +3 -0
- package/build/commands/channel/delete.js +36 -59
- package/build/commands/channel/edit.d.ts +7 -7
- package/build/commands/channel/edit.js +39 -72
- package/build/commands/channel/list.d.ts +6 -0
- package/build/commands/channel/list.js +20 -76
- package/build/commands/channel/rollout.d.ts +5 -1
- package/build/commands/channel/rollout.js +34 -35
- package/build/commands/channel/view.d.ts +6 -33
- package/build/commands/channel/view.js +31 -132
- package/build/commands/config.d.ts +6 -2
- package/build/commands/config.js +22 -13
- package/build/commands/credentials.d.ts +4 -0
- package/build/commands/credentials.js +10 -1
- package/build/commands/device/create.d.ts +4 -0
- package/build/commands/device/create.js +15 -3
- package/build/commands/device/delete.d.ts +13 -8
- package/build/commands/device/delete.js +81 -130
- package/build/commands/device/list.d.ts +7 -0
- package/build/commands/device/list.js +42 -63
- package/build/commands/device/view.d.ts +3 -0
- package/build/commands/device/view.js +10 -5
- package/build/commands/diagnostics.d.ts +3 -1
- package/build/commands/diagnostics.js +10 -8
- package/build/commands/metadata/pull.d.ts +4 -0
- package/build/commands/metadata/pull.js +13 -8
- package/build/commands/metadata/push.d.ts +4 -0
- package/build/commands/metadata/push.js +13 -8
- package/build/commands/open.d.ts +3 -0
- package/build/commands/open.js +11 -9
- package/build/commands/project/info.d.ts +3 -0
- package/build/commands/project/info.js +9 -6
- package/build/commands/project/init.d.ts +12 -0
- package/build/commands/project/init.js +155 -8
- package/build/commands/secret/create.d.ts +6 -0
- package/build/commands/secret/create.js +87 -30
- package/build/commands/secret/delete.d.ts +4 -0
- package/build/commands/secret/delete.js +28 -19
- package/build/commands/secret/list.d.ts +3 -0
- package/build/commands/secret/list.js +19 -13
- package/build/commands/submit.d.ts +5 -0
- package/build/commands/submit.js +16 -7
- package/build/commands/update/configure.d.ts +3 -0
- package/build/commands/update/configure.js +22 -16
- package/build/commands/update/delete.d.ts +1 -0
- package/build/commands/update/delete.js +4 -7
- package/build/commands/update/index.d.ts +8 -12
- package/build/commands/update/index.js +90 -166
- package/build/commands/update/list.d.ts +8 -2
- package/build/commands/update/list.js +51 -81
- package/build/commands/update/view.d.ts +0 -4
- package/build/commands/update/view.js +14 -51
- package/build/commands/webhook/create.d.ts +4 -0
- package/build/commands/webhook/create.js +10 -5
- package/build/commands/webhook/delete.d.ts +6 -0
- package/build/commands/webhook/delete.js +26 -14
- package/build/commands/webhook/list.d.ts +3 -0
- package/build/commands/webhook/list.js +13 -9
- package/build/commands/webhook/update.d.ts +1 -0
- package/build/commands/webhook/update.js +3 -1
- package/build/credentials/android/actions/BuildCredentialsUtils.js +2 -6
- package/build/credentials/android/actions/CreateFcm.d.ts +2 -3
- package/build/credentials/android/actions/CreateGoogleServiceAccountKey.d.ts +2 -3
- package/build/credentials/android/actions/CreateKeystore.d.ts +2 -3
- package/build/credentials/android/actions/CreateKeystore.js +1 -2
- package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.d.ts +2 -3
- package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.d.ts +2 -3
- package/build/credentials/android/api/GraphqlClient.d.ts +6 -7
- package/build/credentials/context.d.ts +8 -4
- package/build/credentials/context.js +8 -23
- package/build/credentials/ios/IosCredentialsProvider.js +11 -6
- package/build/credentials/ios/actions/AppleTeamFormatting.d.ts +2 -0
- package/build/credentials/ios/actions/AppleTeamFormatting.js +7 -0
- package/build/credentials/ios/actions/AppleTeamUtils.d.ts +1 -2
- package/build/credentials/ios/actions/AppleTeamUtils.js +1 -5
- package/build/credentials/ios/actions/AscApiKeyUtils.d.ts +3 -4
- package/build/credentials/ios/actions/AscApiKeyUtils.js +2 -2
- package/build/credentials/ios/actions/AssignAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/AssignPushKey.d.ts +1 -1
- package/build/credentials/ios/actions/BuildCredentialsUtils.d.ts +3 -3
- package/build/credentials/ios/actions/BuildCredentialsUtils.js +8 -12
- package/build/credentials/ios/actions/ConfigureProvisioningProfile.d.ts +1 -1
- package/build/credentials/ios/actions/CreateAscApiKey.d.ts +2 -3
- package/build/credentials/ios/actions/CreateDistributionCertificate.d.ts +2 -2
- package/build/credentials/ios/actions/CreateProvisioningProfile.d.ts +1 -1
- package/build/credentials/ios/actions/CreatePushKey.d.ts +2 -3
- package/build/credentials/ios/actions/DeviceUtils.d.ts +0 -1
- package/build/credentials/ios/actions/DeviceUtils.js +3 -19
- package/build/credentials/ios/actions/DistributionCertificateUtils.d.ts +3 -4
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +2 -2
- package/build/credentials/ios/actions/PushKeyUtils.d.ts +2 -3
- package/build/credentials/ios/actions/PushKeyUtils.js +2 -2
- package/build/credentials/ios/actions/RemoveAscApiKey.d.ts +2 -3
- package/build/credentials/ios/actions/RemoveDistributionCertificate.d.ts +3 -4
- package/build/credentials/ios/actions/RemoveProvisioningProfile.d.ts +1 -1
- package/build/credentials/ios/actions/RemovePushKey.d.ts +2 -3
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpDistributionCertificate.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpProvisioningProfile.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpPushKey.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpSubmissionCredentials.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpTargetBuildCredentials.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.d.ts +1 -1
- package/build/credentials/ios/api/GraphqlClient.d.ts +9 -15
- package/build/credentials/ios/api/graphql/mutations/AppleTeamMutation.d.ts +2 -3
- package/build/credentials/ios/api/graphql/mutations/AppleTeamMutation.js +3 -1
- package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.d.ts +3 -3
- package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.js +20 -6
- package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.d.ts +2 -2
- package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.js +8 -7
- package/build/credentials/ios/api/graphql/types/AppLookupParams.d.ts +7 -0
- package/build/credentials/ios/api/graphql/types/AppLookupParams.js +2 -0
- package/build/credentials/ios/types.d.ts +2 -3
- package/build/credentials/ios/utils/printCredentials.d.ts +1 -1
- package/build/credentials/ios/validators/validateProvisioningProfile.d.ts +1 -1
- package/build/credentials/manager/HelperActions.d.ts +4 -1
- package/build/credentials/manager/ManageAndroid.js +4 -14
- package/build/credentials/manager/ManageIos.js +12 -15
- package/build/credentials/manager/SelectBuildProfileFromEasJson.d.ts +1 -1
- package/build/credentials/manager/SelectBuildProfileFromEasJson.js +3 -3
- package/build/credentials/manager/SelectPlatform.d.ts +5 -1
- package/build/credentials/manager/SelectPlatform.js +5 -3
- package/build/devices/actions/create/action.d.ts +2 -3
- package/build/devices/context.d.ts +3 -5
- package/build/devices/context.js +2 -11
- package/build/devices/manager.d.ts +4 -5
- package/build/devices/manager.js +9 -16
- package/build/devices/queries.d.ts +21 -0
- package/build/devices/queries.js +121 -0
- package/build/devices/utils/errors.d.ts +3 -0
- package/build/devices/utils/errors.js +9 -0
- package/build/devices/utils/formatDevice.d.ts +3 -3
- package/build/devices/utils/formatDevice.js +8 -3
- package/build/graphql/generated.d.ts +1101 -191
- package/build/graphql/generated.js +13 -2
- package/build/graphql/mutations/EnvironmentSecretMutation.d.ts +3 -1
- package/build/graphql/queries/AppQuery.d.ts +1 -0
- package/build/graphql/queries/AppQuery.js +19 -0
- package/build/graphql/queries/BranchQuery.d.ts +5 -6
- package/build/graphql/queries/BranchQuery.js +44 -3
- package/build/graphql/queries/BuildQuery.d.ts +2 -20
- package/build/graphql/queries/BuildQuery.js +2 -2
- package/build/graphql/queries/ChannelQuery.d.ts +5 -2
- package/build/graphql/queries/ChannelQuery.js +45 -19
- package/build/graphql/queries/EnvironmentSecretsQuery.d.ts +5 -3
- package/build/graphql/queries/EnvironmentSecretsQuery.js +14 -28
- package/build/graphql/queries/UpdateQuery.d.ts +4 -6
- package/build/graphql/queries/UpdateQuery.js +59 -50
- package/build/graphql/queries/UserQuery.js +8 -1
- package/build/graphql/types/Account.d.ts +1 -0
- package/build/graphql/types/Account.js +17 -0
- package/build/graphql/types/App.js +7 -0
- package/build/graphql/types/EnvironmentSecret.d.ts +7 -0
- package/build/graphql/types/EnvironmentSecret.js +16 -1
- package/build/graphql/types/Update.d.ts +1 -0
- package/build/graphql/types/Update.js +30 -0
- package/build/graphql/types/UpdateBranch.js +4 -15
- package/build/metadata/context.d.ts +1 -1
- package/build/metadata/context.js +7 -9
- package/build/project/android/applicationId.d.ts +2 -1
- package/build/project/android/applicationId.js +7 -7
- package/build/project/android/versions.js +1 -1
- package/build/project/applicationIdentifier.d.ts +2 -1
- package/build/project/applicationIdentifier.js +2 -2
- package/build/project/expoConfig.d.ts +3 -3
- package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.d.ts +22 -0
- package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.js +93 -0
- package/build/project/ios/bundleIdentifier.d.ts +2 -1
- package/build/project/ios/bundleIdentifier.js +7 -7
- package/build/project/ios/scheme.d.ts +1 -1
- package/build/project/projectUtils.d.ts +4 -31
- package/build/project/projectUtils.js +13 -123
- package/build/project/remoteVersionSource.d.ts +2 -2
- package/build/project/remoteVersionSource.js +8 -7
- package/build/submit/android/ServiceAccountSource.js +1 -2
- package/build/submit/context.d.ts +3 -1
- package/build/submit/context.js +12 -14
- package/build/submit/ios/CredentialsServiceSource.js +1 -2
- package/build/submit/utils/builds.js +3 -1
- package/build/update/android/UpdatesModule.d.ts +1 -1
- package/build/update/android/UpdatesModule.js +2 -3
- package/build/update/ios/UpdatesModule.d.ts +1 -1
- package/build/update/ios/UpdatesModule.js +2 -3
- package/build/update/queries.d.ts +16 -1
- package/build/update/queries.js +96 -30
- package/build/update/utils.d.ts +21 -8
- package/build/update/utils.js +75 -14
- package/build/user/actions.d.ts +2 -8
- package/build/user/actions.js +4 -63
- package/build/utils/profiles.d.ts +3 -3
- package/build/utils/profiles.js +6 -5
- package/build/vcs/clients/git.d.ts +1 -1
- package/build/vcs/clients/git.js +1 -1
- package/build/vcs/vcs.d.ts +1 -1
- package/build/webhooks/input.d.ts +2 -1
- package/build/webhooks/input.js +10 -1
- package/oclif.manifest.json +1 -1
- package/package.json +4 -4
- package/build/project/ensureProjectExists.d.ts +0 -21
- package/build/project/ensureProjectExists.js +0 -88
- package/build/user/Account.d.ts +0 -3
- package/build/user/Account.js +0 -7
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AppleTeamFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
|
-
import { AppLookupParams } from '../api/
|
|
3
|
+
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
4
|
export declare function resolveAppleTeamIfAuthenticatedAsync(ctx: CredentialsContext, app: AppLookupParams): Promise<AppleTeamFragment | null>;
|
|
5
|
-
export declare function formatAppleTeam({ appleTeamIdentifier, appleTeamName }: AppleTeamFragment): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.resolveAppleTeamIfAuthenticatedAsync = void 0;
|
|
4
4
|
async function resolveAppleTeamIfAuthenticatedAsync(ctx, app) {
|
|
5
5
|
if (!ctx.appStore.authCtx) {
|
|
6
6
|
return null;
|
|
@@ -11,7 +11,3 @@ async function resolveAppleTeamIfAuthenticatedAsync(ctx, app) {
|
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
exports.resolveAppleTeamIfAuthenticatedAsync = resolveAppleTeamIfAuthenticatedAsync;
|
|
14
|
-
function formatAppleTeam({ appleTeamIdentifier, appleTeamName }) {
|
|
15
|
-
return `Team ID: ${appleTeamIdentifier}${appleTeamName ? `, Team name: ${appleTeamName}` : ''}`;
|
|
16
|
-
}
|
|
17
|
-
exports.formatAppleTeam = formatAppleTeam;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AppStoreConnectApiKeyFragment } from '../../../graphql/generated';
|
|
2
|
-
import { Account } from '../../../user/Account';
|
|
1
|
+
import { AccountFragment, AppStoreConnectApiKeyFragment } from '../../../graphql/generated';
|
|
3
2
|
import { CredentialsContext } from '../../context';
|
|
4
3
|
import { AscApiKey } from '../appstore/Credentials.types';
|
|
5
4
|
import { AscApiKeyPath, MinimalAscApiKey } from '../credentials';
|
|
@@ -11,10 +10,10 @@ export declare function promptForIssuerIdAsync(): Promise<string>;
|
|
|
11
10
|
export declare function getMinimalAscApiKeyAsync(ascApiKey: AscApiKey): Promise<MinimalAscApiKey>;
|
|
12
11
|
export declare function provideOrGenerateAscApiKeyAsync(ctx: CredentialsContext, purpose: AppStoreApiKeyPurpose): Promise<MinimalAscApiKey>;
|
|
13
12
|
export declare function getAscApiKeyName(purpose: AppStoreApiKeyPurpose): string;
|
|
14
|
-
export declare function getAscApiKeysFromAccountAsync(ctx: CredentialsContext, account:
|
|
13
|
+
export declare function getAscApiKeysFromAccountAsync(ctx: CredentialsContext, account: AccountFragment, { filterDifferentAppleTeam }?: {
|
|
15
14
|
filterDifferentAppleTeam?: boolean;
|
|
16
15
|
}): Promise<AppStoreConnectApiKeyFragment[]>;
|
|
17
|
-
export declare function selectAscApiKeysFromAccountAsync(ctx: CredentialsContext, account:
|
|
16
|
+
export declare function selectAscApiKeysFromAccountAsync(ctx: CredentialsContext, account: AccountFragment, { filterDifferentAppleTeam }?: {
|
|
18
17
|
filterDifferentAppleTeam?: boolean;
|
|
19
18
|
}): Promise<AppStoreConnectApiKeyFragment | null>;
|
|
20
19
|
export declare function sortAscApiKeysByUpdatedAtDesc(keys: AppStoreConnectApiKeyFragment[]): AppStoreConnectApiKeyFragment[];
|
|
@@ -12,7 +12,7 @@ const date_1 = require("../../../utils/date");
|
|
|
12
12
|
const promptForCredentials_1 = require("../../utils/promptForCredentials");
|
|
13
13
|
const credentials_1 = require("../credentials");
|
|
14
14
|
const validateAscApiKey_1 = require("../validators/validateAscApiKey");
|
|
15
|
-
const
|
|
15
|
+
const AppleTeamFormatting_1 = require("./AppleTeamFormatting");
|
|
16
16
|
var AppStoreApiKeyPurpose;
|
|
17
17
|
(function (AppStoreApiKeyPurpose) {
|
|
18
18
|
AppStoreApiKeyPurpose["SUBMISSION_SERVICE"] = "EAS Submit";
|
|
@@ -188,7 +188,7 @@ function formatAscApiKey(ascApiKey) {
|
|
|
188
188
|
line += chalk_1.default.gray(`\n Name: ${name}`);
|
|
189
189
|
}
|
|
190
190
|
if (appleTeam) {
|
|
191
|
-
line += chalk_1.default.gray(`\n ${(0,
|
|
191
|
+
line += chalk_1.default.gray(`\n ${(0, AppleTeamFormatting_1.formatAppleTeam)(appleTeam)}`);
|
|
192
192
|
}
|
|
193
193
|
line += chalk_1.default.gray(`\n Updated: ${(0, date_1.fromNow)(new Date(updatedAt))} ago`);
|
|
194
194
|
return line;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppStoreConnectApiKeyFragment, CommonIosAppCredentialsFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
|
-
import { AppLookupParams } from '../api/
|
|
3
|
+
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
4
|
import { AppStoreApiKeyPurpose } from './AscApiKeyUtils';
|
|
5
5
|
export declare class AssignAscApiKey {
|
|
6
6
|
private app;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApplePushKeyFragment, CommonIosAppCredentialsFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
|
-
import { AppLookupParams } from '../api/
|
|
3
|
+
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
4
|
export declare class AssignPushKey {
|
|
5
5
|
private app;
|
|
6
6
|
constructor(app: AppLookupParams);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AppleDistributionCertificateFragment, AppleProvisioningProfileFragment, AppleTeamFragment, IosDistributionType as GraphQLIosDistributionType, IosAppBuildCredentialsFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
|
-
import { AppLookupParams } from '../api/
|
|
3
|
+
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
4
|
import { App, Target } from '../types';
|
|
5
5
|
export declare function getAllBuildCredentialsAsync(ctx: CredentialsContext, app: AppLookupParams): Promise<IosAppBuildCredentialsFragment[]>;
|
|
6
6
|
export declare function getBuildCredentialsAsync(ctx: CredentialsContext, app: AppLookupParams, iosDistributionType: GraphQLIosDistributionType): Promise<IosAppBuildCredentialsFragment | null>;
|
|
7
7
|
export declare function getProvisioningProfileAsync(ctx: CredentialsContext, app: AppLookupParams, iosDistributionType: GraphQLIosDistributionType): Promise<AppleProvisioningProfileFragment | null>;
|
|
8
8
|
export declare function getDistributionCertificateAsync(ctx: CredentialsContext, app: AppLookupParams, iosDistributionType: GraphQLIosDistributionType): Promise<AppleDistributionCertificateFragment | null>;
|
|
9
9
|
export declare function assignBuildCredentialsAsync(ctx: CredentialsContext, app: AppLookupParams, iosDistributionType: GraphQLIosDistributionType, distCert: AppleDistributionCertificateFragment, provisioningProfile: AppleProvisioningProfileFragment, appleTeam?: AppleTeamFragment): Promise<IosAppBuildCredentialsFragment>;
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function
|
|
10
|
+
export declare function getAppFromContextAsync(ctx: CredentialsContext): Promise<App>;
|
|
11
|
+
export declare function getAppLookupParamsFromContextAsync(ctx: CredentialsContext, target: Target): Promise<AppLookupParams>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getAppLookupParamsFromContextAsync = exports.getAppFromContextAsync = exports.assignBuildCredentialsAsync = exports.getDistributionCertificateAsync = exports.getProvisioningProfileAsync = exports.getBuildCredentialsAsync = exports.getAllBuildCredentialsAsync = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
6
6
|
const projectUtils_1 = require("../../../project/projectUtils");
|
|
7
|
-
const Account_1 = require("../../../user/Account");
|
|
8
7
|
const AppleTeamUtils_1 = require("./AppleTeamUtils");
|
|
9
8
|
async function getAllBuildCredentialsAsync(ctx, app) {
|
|
10
9
|
const appCredentials = await ctx.ios.getIosAppCredentialsWithBuildCredentialsAsync(app, {});
|
|
@@ -49,22 +48,19 @@ async function assignBuildCredentialsAsync(ctx, app, iosDistributionType, distCe
|
|
|
49
48
|
});
|
|
50
49
|
}
|
|
51
50
|
exports.assignBuildCredentialsAsync = assignBuildCredentialsAsync;
|
|
52
|
-
function
|
|
51
|
+
async function getAppFromContextAsync(ctx) {
|
|
53
52
|
ctx.ensureProjectContext();
|
|
54
53
|
const projectName = ctx.exp.slug;
|
|
55
|
-
const
|
|
56
|
-
const account = (0,
|
|
57
|
-
if (!account) {
|
|
58
|
-
throw new Error(`You do not have access to account: ${accountName}`);
|
|
59
|
-
}
|
|
54
|
+
const projectId = ctx.projectId;
|
|
55
|
+
const account = await (0, projectUtils_1.getOwnerAccountForProjectIdAsync)(projectId);
|
|
60
56
|
return {
|
|
61
57
|
account,
|
|
62
58
|
projectName,
|
|
63
59
|
};
|
|
64
60
|
}
|
|
65
|
-
exports.
|
|
66
|
-
function
|
|
67
|
-
const app =
|
|
61
|
+
exports.getAppFromContextAsync = getAppFromContextAsync;
|
|
62
|
+
async function getAppLookupParamsFromContextAsync(ctx, target) {
|
|
63
|
+
const app = await getAppFromContextAsync(ctx);
|
|
68
64
|
return { ...app, bundleIdentifier: target.bundleIdentifier };
|
|
69
65
|
}
|
|
70
|
-
exports.
|
|
66
|
+
exports.getAppLookupParamsFromContextAsync = getAppLookupParamsFromContextAsync;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppleDistributionCertificateFragment, AppleProvisioningProfileFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
|
-
import { AppLookupParams } from '../api/GraphqlClient';
|
|
4
3
|
import { AppleProvisioningProfileMutationResult } from '../api/graphql/mutations/AppleProvisioningProfileMutation';
|
|
4
|
+
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
5
5
|
import { Target } from '../types';
|
|
6
6
|
export declare class ConfigureProvisioningProfile {
|
|
7
7
|
private app;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { AppStoreConnectApiKeyFragment } from '../../../graphql/generated';
|
|
2
|
-
import { Account } from '../../../user/Account';
|
|
1
|
+
import { AccountFragment, AppStoreConnectApiKeyFragment } from '../../../graphql/generated';
|
|
3
2
|
import { CredentialsContext } from '../../context';
|
|
4
3
|
import { AppStoreApiKeyPurpose } from './AscApiKeyUtils';
|
|
5
4
|
export declare class CreateAscApiKey {
|
|
6
5
|
private account;
|
|
7
|
-
constructor(account:
|
|
6
|
+
constructor(account: AccountFragment);
|
|
8
7
|
runAsync(ctx: CredentialsContext, purpose: AppStoreApiKeyPurpose): Promise<AppStoreConnectApiKeyFragment>;
|
|
9
8
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AccountFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
import { AppleDistributionCertificateMutationResult } from '../api/graphql/mutations/AppleDistributionCertificateMutation';
|
|
4
4
|
export declare class CreateDistributionCertificate {
|
|
5
5
|
private account;
|
|
6
|
-
constructor(account:
|
|
6
|
+
constructor(account: AccountFragment);
|
|
7
7
|
runAsync(ctx: CredentialsContext): Promise<AppleDistributionCertificateMutationResult>;
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppleDistributionCertificateFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
|
-
import { AppLookupParams } from '../api/GraphqlClient';
|
|
4
3
|
import { AppleProvisioningProfileMutationResult } from '../api/graphql/mutations/AppleProvisioningProfileMutation';
|
|
4
|
+
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
5
5
|
import { Target } from '../types';
|
|
6
6
|
export declare class CreateProvisioningProfile {
|
|
7
7
|
private app;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ApplePushKeyFragment } from '../../../graphql/generated';
|
|
2
|
-
import { Account } from '../../../user/Account';
|
|
1
|
+
import { AccountFragment, ApplePushKeyFragment } from '../../../graphql/generated';
|
|
3
2
|
import { CredentialsContext } from '../../context';
|
|
4
3
|
export declare class CreatePushKey {
|
|
5
4
|
private account;
|
|
6
|
-
constructor(account:
|
|
5
|
+
constructor(account: AccountFragment);
|
|
7
6
|
runAsync(ctx: CredentialsContext): Promise<ApplePushKeyFragment>;
|
|
8
7
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { AppleDevice, AppleDeviceFragment } from '../../../graphql/generated';
|
|
2
2
|
export declare function chooseDevicesAsync(allDevices: AppleDeviceFragment[], preselectedDeviceIdentifiers?: string[]): Promise<AppleDevice[]>;
|
|
3
|
-
export declare function chooseDevicesToDeleteAsync(allDevices: AppleDeviceFragment[]): Promise<AppleDevice[]>;
|
|
4
3
|
export declare function formatDeviceLabel(device: AppleDeviceFragment): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatDeviceLabel = exports.
|
|
3
|
+
exports.formatDeviceLabel = exports.chooseDevicesAsync = void 0;
|
|
4
4
|
const AppleDevice_1 = require("../../../graphql/types/credentials/AppleDevice");
|
|
5
5
|
const prompts_1 = require("../.././../prompts");
|
|
6
6
|
async function chooseDevicesAsync(allDevices, preselectedDeviceIdentifiers = []) {
|
|
@@ -10,7 +10,7 @@ async function chooseDevicesAsync(allDevices, preselectedDeviceIdentifiers = [])
|
|
|
10
10
|
const { devices } = await (0, prompts_1.promptAsync)({
|
|
11
11
|
type: 'multiselect',
|
|
12
12
|
name: 'devices',
|
|
13
|
-
message: 'Select devices for the
|
|
13
|
+
message: 'Select devices for the ad hoc build:',
|
|
14
14
|
hint: '- Space to select. Return to submit',
|
|
15
15
|
choices: allDevices.map(device => ({
|
|
16
16
|
value: device,
|
|
@@ -23,25 +23,9 @@ async function chooseDevicesAsync(allDevices, preselectedDeviceIdentifiers = [])
|
|
|
23
23
|
return devices;
|
|
24
24
|
}
|
|
25
25
|
exports.chooseDevicesAsync = chooseDevicesAsync;
|
|
26
|
-
async function chooseDevicesToDeleteAsync(allDevices) {
|
|
27
|
-
const { devices } = await (0, prompts_1.promptAsync)({
|
|
28
|
-
type: 'multiselect',
|
|
29
|
-
name: 'devices',
|
|
30
|
-
message: 'Which devices do you want to remove?',
|
|
31
|
-
choices: allDevices.map(device => ({
|
|
32
|
-
value: device,
|
|
33
|
-
title: formatDeviceLabel(device),
|
|
34
|
-
selected: false,
|
|
35
|
-
})),
|
|
36
|
-
instructions: false,
|
|
37
|
-
});
|
|
38
|
-
return devices;
|
|
39
|
-
}
|
|
40
|
-
exports.chooseDevicesToDeleteAsync = chooseDevicesToDeleteAsync;
|
|
41
26
|
function formatDeviceLabel(device) {
|
|
42
|
-
var _a;
|
|
43
27
|
const deviceDetails = formatDeviceDetails(device);
|
|
44
|
-
return `${
|
|
28
|
+
return `${device.identifier}${deviceDetails !== '' ? ` ${deviceDetails}` : ''}${device.name ? ` (${device.name})` : ''}`;
|
|
45
29
|
}
|
|
46
30
|
exports.formatDeviceLabel = formatDeviceLabel;
|
|
47
31
|
function formatDeviceDetails(device) {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { AppleDistributionCertificateFragment } from '../../../graphql/generated';
|
|
2
|
-
import { Account } from '../../../user/Account';
|
|
1
|
+
import { AccountFragment, AppleDistributionCertificateFragment } from '../../../graphql/generated';
|
|
3
2
|
import { CredentialsContext } from '../../context';
|
|
4
|
-
import { AppLookupParams } from '../api/
|
|
3
|
+
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
5
4
|
import { DistributionCertificate } from '../appstore/Credentials.types';
|
|
6
5
|
export declare function formatDistributionCertificate(distributionCertificate: AppleDistributionCertificateFragment, validSerialNumbers?: string[]): string;
|
|
7
6
|
/**
|
|
8
7
|
* select a distribution certificate from an account (validity status shown on a best effort basis)
|
|
9
8
|
* */
|
|
10
|
-
export declare function selectDistributionCertificateWithDependenciesAsync(ctx: CredentialsContext, account:
|
|
9
|
+
export declare function selectDistributionCertificateWithDependenciesAsync(ctx: CredentialsContext, account: AccountFragment): Promise<AppleDistributionCertificateFragment | null>;
|
|
11
10
|
/**
|
|
12
11
|
* select a distribution certificate from a valid set (curated on a best effort basis)
|
|
13
12
|
* */
|
|
@@ -13,14 +13,14 @@ const CredentialsUtils_1 = require("../appstore/CredentialsUtils");
|
|
|
13
13
|
const distributionCertificate_1 = require("../appstore/distributionCertificate");
|
|
14
14
|
const credentials_1 = require("../credentials");
|
|
15
15
|
const validateDistributionCertificate_1 = require("../validators/validateDistributionCertificate");
|
|
16
|
-
const
|
|
16
|
+
const AppleTeamFormatting_1 = require("./AppleTeamFormatting");
|
|
17
17
|
function formatDistributionCertificate(distributionCertificate, validSerialNumbers) {
|
|
18
18
|
const { serialNumber, developerPortalIdentifier, appleTeam, validityNotBefore, validityNotAfter, updatedAt, } = distributionCertificate;
|
|
19
19
|
let line = '';
|
|
20
20
|
if (developerPortalIdentifier) {
|
|
21
21
|
line += `Cert ID: ${developerPortalIdentifier}`;
|
|
22
22
|
}
|
|
23
|
-
line += `${line === '' ? '' : ', '}Serial number: ${serialNumber}${appleTeam ? `, ${(0,
|
|
23
|
+
line += `${line === '' ? '' : ', '}Serial number: ${serialNumber}${appleTeam ? `, ${(0, AppleTeamFormatting_1.formatAppleTeam)(appleTeam)}` : ''}`;
|
|
24
24
|
line += chalk_1.default.gray(`\n Created: ${(0, date_1.fromNow)(new Date(validityNotBefore))} ago, Updated: ${(0, date_1.fromNow)(new Date(updatedAt))} ago,`);
|
|
25
25
|
line += chalk_1.default.gray(`\n Expires: ${(0, dateformat_1.default)(validityNotAfter, 'expiresHeaderFormat')}`);
|
|
26
26
|
const apps = distributionCertificate.iosAppBuildCredentialsList.map(buildCredentials => buildCredentials.iosAppCredentials.app);
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { ApplePushKeyFragment } from '../../../graphql/generated';
|
|
2
|
-
import { Account } from '../../../user/Account';
|
|
1
|
+
import { AccountFragment, ApplePushKeyFragment } from '../../../graphql/generated';
|
|
3
2
|
import { CredentialsContext } from '../../context';
|
|
4
3
|
import { PushKey } from '../appstore/Credentials.types';
|
|
5
4
|
export declare function provideOrGeneratePushKeyAsync(ctx: CredentialsContext): Promise<PushKey>;
|
|
6
5
|
/**
|
|
7
6
|
* select a push key from an account (validity status shown on a best effort basis)
|
|
8
7
|
* */
|
|
9
|
-
export declare function selectPushKeyAsync(ctx: CredentialsContext, account:
|
|
8
|
+
export declare function selectPushKeyAsync(ctx: CredentialsContext, account: AccountFragment): Promise<ApplePushKeyFragment | null>;
|
|
10
9
|
export declare function getValidAndTrackedPushKeysOnEasServersAsync(ctx: CredentialsContext, pushKeysForAccount: ApplePushKeyFragment[]): Promise<ApplePushKeyFragment[]>;
|
|
11
10
|
export declare function sortPushKeys(pushKeys: ApplePushKeyFragment[], validPushKeys?: ApplePushKeyFragment[]): ApplePushKeyFragment[];
|
|
12
11
|
export declare function formatPushKey(pushKey: ApplePushKeyFragment, validPushKeyIdentifiers?: string[]): string;
|
|
@@ -11,7 +11,7 @@ const CredentialsUtils_1 = require("../appstore/CredentialsUtils");
|
|
|
11
11
|
const pushKey_1 = require("../appstore/pushKey");
|
|
12
12
|
const credentials_1 = require("../credentials");
|
|
13
13
|
const validatePushKey_1 = require("../validators/validatePushKey");
|
|
14
|
-
const
|
|
14
|
+
const AppleTeamFormatting_1 = require("./AppleTeamFormatting");
|
|
15
15
|
async function provideOrGeneratePushKeyAsync(ctx) {
|
|
16
16
|
if (!ctx.nonInteractive) {
|
|
17
17
|
const userProvided = await promptForPushKeyAsync(ctx);
|
|
@@ -153,7 +153,7 @@ function formatPushKey(pushKey, validPushKeyIdentifiers) {
|
|
|
153
153
|
const { keyIdentifier, appleTeam, updatedAt } = pushKey;
|
|
154
154
|
let line = '';
|
|
155
155
|
line += `Push Key ID: ${pushKey.keyIdentifier}`;
|
|
156
|
-
line += ` ${appleTeam ? `, ${(0,
|
|
156
|
+
line += ` ${appleTeam ? `, ${(0, AppleTeamFormatting_1.formatAppleTeam)(appleTeam)}` : ''}`;
|
|
157
157
|
line += chalk_1.default.gray(`\n Updated: ${(0, date_1.fromNow)(new Date(updatedAt))} ago,`);
|
|
158
158
|
const apps = pushKey.iosAppCredentialsList.map(appCredentials => appCredentials.app);
|
|
159
159
|
if (apps.length) {
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { AppStoreConnectApiKeyFragment } from '../../../graphql/generated';
|
|
2
|
-
import { Account } from '../../../user/Account';
|
|
1
|
+
import { AccountFragment, AppStoreConnectApiKeyFragment } from '../../../graphql/generated';
|
|
3
2
|
import { CredentialsContext } from '../../context';
|
|
4
3
|
export declare class SelectAndRemoveAscApiKey {
|
|
5
4
|
private account;
|
|
6
|
-
constructor(account:
|
|
5
|
+
constructor(account: AccountFragment);
|
|
7
6
|
runAsync(ctx: CredentialsContext): Promise<void>;
|
|
8
7
|
}
|
|
9
8
|
export declare class RemoveAscApiKey {
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { AppleDistributionCertificateFragment } from '../../../graphql/generated';
|
|
2
|
-
import { Account } from '../../../user/Account';
|
|
1
|
+
import { AccountFragment, AppleDistributionCertificateFragment } from '../../../graphql/generated';
|
|
3
2
|
import { CredentialsContext } from '../../context';
|
|
4
3
|
export declare class SelectAndRemoveDistributionCertificate {
|
|
5
4
|
private account;
|
|
6
|
-
constructor(account:
|
|
5
|
+
constructor(account: AccountFragment);
|
|
7
6
|
runAsync(ctx: CredentialsContext): Promise<void>;
|
|
8
7
|
}
|
|
9
8
|
export declare class RemoveDistributionCertificate {
|
|
10
9
|
private account;
|
|
11
10
|
private distributionCertificate;
|
|
12
|
-
constructor(account:
|
|
11
|
+
constructor(account: AccountFragment, distributionCertificate: AppleDistributionCertificateFragment);
|
|
13
12
|
runAsync(ctx: CredentialsContext): Promise<void>;
|
|
14
13
|
private removeInvalidProvisioningProfilesAsync;
|
|
15
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppleProvisioningProfileIdentifiersFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
|
-
import { AppLookupParams } from '../api/
|
|
3
|
+
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
4
|
export declare class RemoveProvisioningProfiles {
|
|
5
5
|
private apps;
|
|
6
6
|
private provisioningProfiles;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ApplePushKeyFragment } from '../../../graphql/generated';
|
|
2
|
-
import { Account } from '../../../user/Account';
|
|
1
|
+
import { AccountFragment, ApplePushKeyFragment } from '../../../graphql/generated';
|
|
3
2
|
import { CredentialsContext } from '../../context';
|
|
4
3
|
export declare class SelectAndRemovePushKey {
|
|
5
4
|
private account;
|
|
6
|
-
constructor(account:
|
|
5
|
+
constructor(account: AccountFragment);
|
|
7
6
|
runAsync(ctx: CredentialsContext): Promise<void>;
|
|
8
7
|
}
|
|
9
8
|
export declare class RemovePushKey {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppleDistributionCertificateFragment, IosAppBuildCredentialsFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
|
-
import { AppLookupParams } from '../api/
|
|
3
|
+
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
4
|
import { Target } from '../types';
|
|
5
5
|
interface Options {
|
|
6
6
|
app: AppLookupParams;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommonIosAppCredentialsFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
|
-
import { AppLookupParams } from '../api/
|
|
3
|
+
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
4
|
import { AppStoreApiKeyPurpose } from './AscApiKeyUtils';
|
|
5
5
|
export declare enum SetupAscApiKeyChoice {
|
|
6
6
|
GENERATE = "GENERATE",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppleDistributionCertificate, AppleDistributionCertificateFragment, IosDistributionType } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
|
-
import { AppLookupParams } from '../api/
|
|
3
|
+
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
4
|
export declare class SetUpDistributionCertificate {
|
|
5
5
|
private app;
|
|
6
6
|
private distributionType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IosAppBuildCredentialsFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
|
-
import { AppLookupParams } from '../api/
|
|
3
|
+
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
4
|
import { Target } from '../types';
|
|
5
5
|
/**
|
|
6
6
|
* It's used when setting up credentials for internal distribution but `enterpriseProvisioning` is not set.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppleDistributionCertificateFragment, AppleProvisioningProfileFragment, IosAppBuildCredentialsFragment, IosDistributionType } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
|
-
import { AppLookupParams } from '../api/
|
|
3
|
+
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
4
|
import { Target } from '../types';
|
|
5
5
|
/**
|
|
6
6
|
* Sets up either APP_STORE or ENTERPRISE provisioning profiles
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommonIosAppCredentialsFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
|
-
import { AppLookupParams } from '../api/
|
|
3
|
+
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
4
|
export declare class SetUpPushKey {
|
|
5
5
|
private app;
|
|
6
6
|
constructor(app: AppLookupParams);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CommonIosAppCredentialsFragment } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
|
-
import { AppLookupParams } from '../api/
|
|
3
|
+
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
4
4
|
export declare const PROMPT_FOR_APP_SPECIFIC_PASSWORD = "PROMPT_FOR_APP_SPECIFIC_PASSWORD";
|
|
5
5
|
export declare class SetUpSubmissionCredentials {
|
|
6
6
|
private setupAscApiKeyAction;
|
|
@@ -2,7 +2,7 @@ import { DistributionType, IosEnterpriseProvisioning } from '@expo/eas-json';
|
|
|
2
2
|
import { JSONObject } from '@expo/json-file';
|
|
3
3
|
import { IosAppBuildCredentialsFragment } from '../../../graphql/generated';
|
|
4
4
|
import { CredentialsContext } from '../../context';
|
|
5
|
-
import { AppLookupParams as GraphQLAppLookupParams } from '../api/
|
|
5
|
+
import { AppLookupParams as GraphQLAppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
6
6
|
import { Target } from '../types';
|
|
7
7
|
interface Options {
|
|
8
8
|
app: GraphQLAppLookupParams;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppleDistributionCertificateFragment, AppleProvisioningProfileFragment, AppleTeamFragment, IosAppBuildCredentialsFragment, IosDistributionType } from '../../../graphql/generated';
|
|
2
2
|
import { CredentialsContext } from '../../context';
|
|
3
3
|
import { IosTargetCredentials } from '../../credentialsJson/types';
|
|
4
|
-
import { AppLookupParams } from '../api/
|
|
4
|
+
import { AppLookupParams } from '../api/graphql/types/AppLookupParams';
|
|
5
5
|
export declare class SetUpTargetBuildCredentialsFromCredentialsJson {
|
|
6
6
|
private app;
|
|
7
7
|
private distributionType;
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import { AppStoreConnectApiKeyFragment, AppleAppIdentifierFragment, AppleDeviceFragment, AppleDistributionCertificateFragment, ApplePushKeyFragment, AppleTeamFragment, CommonIosAppCredentialsFragment, IosAppBuildCredentialsFragment, IosDistributionType } from '../../../graphql/generated';
|
|
2
|
-
import { Account } from '../../../user/Account';
|
|
1
|
+
import { AccountFragment, AppStoreConnectApiKeyFragment, AppleAppIdentifierFragment, AppleDeviceFragment, AppleDistributionCertificateFragment, ApplePushKeyFragment, AppleTeamFragment, CommonIosAppCredentialsFragment, IosAppBuildCredentialsFragment, IosDistributionType } from '../../../graphql/generated';
|
|
3
2
|
import { DistributionCertificate, PushKey } from '../appstore/Credentials.types';
|
|
4
3
|
import { MinimalAscApiKey } from '../credentials';
|
|
5
4
|
import { AppleDistributionCertificateMutationResult } from './graphql/mutations/AppleDistributionCertificateMutation';
|
|
6
5
|
import { AppleProvisioningProfileMutationResult } from './graphql/mutations/AppleProvisioningProfileMutation';
|
|
7
6
|
import { AppleProvisioningProfileQueryResult } from './graphql/queries/AppleProvisioningProfileQuery';
|
|
8
|
-
|
|
9
|
-
account: Account;
|
|
10
|
-
projectName: string;
|
|
11
|
-
bundleIdentifier: string;
|
|
12
|
-
parentBundleIdentifier?: string;
|
|
13
|
-
}
|
|
7
|
+
import { AppLookupParams } from './graphql/types/AppLookupParams';
|
|
14
8
|
export declare function createOrUpdateIosAppBuildCredentialsAsync(appLookupParams: AppLookupParams, { appleTeam, appleAppIdentifierId, iosDistributionType, appleProvisioningProfileId, appleDistributionCertificateId, }: {
|
|
15
9
|
appleTeam: AppleTeamFragment;
|
|
16
10
|
appleAppIdentifierId: string;
|
|
@@ -29,7 +23,7 @@ export declare function updateIosAppCredentialsAsync(appCredentials: CommonIosAp
|
|
|
29
23
|
applePushKeyId?: string;
|
|
30
24
|
ascApiKeyIdForSubmissions?: string;
|
|
31
25
|
}): Promise<CommonIosAppCredentialsFragment>;
|
|
32
|
-
export declare function createOrGetExistingAppleTeamAsync(account:
|
|
26
|
+
export declare function createOrGetExistingAppleTeamAsync(account: AccountFragment, { appleTeamIdentifier, appleTeamName }: {
|
|
33
27
|
appleTeamIdentifier: string;
|
|
34
28
|
appleTeamName?: string;
|
|
35
29
|
}): Promise<AppleTeamFragment>;
|
|
@@ -52,14 +46,14 @@ export declare function deleteProvisioningProfilesAsync(appleProvisioningProfile
|
|
|
52
46
|
export declare function getDistributionCertificateForAppAsync(appLookupParams: AppLookupParams, iosDistributionType: IosDistributionType, { appleTeam }?: {
|
|
53
47
|
appleTeam: AppleTeamFragment | null;
|
|
54
48
|
}): Promise<AppleDistributionCertificateFragment | null>;
|
|
55
|
-
export declare function getDistributionCertificatesForAccountAsync(account:
|
|
56
|
-
export declare function createDistributionCertificateAsync(account:
|
|
49
|
+
export declare function getDistributionCertificatesForAccountAsync(account: AccountFragment): Promise<AppleDistributionCertificateFragment[]>;
|
|
50
|
+
export declare function createDistributionCertificateAsync(account: AccountFragment, distCert: DistributionCertificate): Promise<AppleDistributionCertificateMutationResult>;
|
|
57
51
|
export declare function deleteDistributionCertificateAsync(distributionCertificateId: string): Promise<void>;
|
|
58
|
-
export declare function createPushKeyAsync(account:
|
|
59
|
-
export declare function getPushKeysForAccountAsync(account:
|
|
52
|
+
export declare function createPushKeyAsync(account: AccountFragment, pushKey: PushKey): Promise<ApplePushKeyFragment>;
|
|
53
|
+
export declare function getPushKeysForAccountAsync(account: AccountFragment): Promise<ApplePushKeyFragment[]>;
|
|
60
54
|
export declare function getPushKeyForAppAsync(appLookupParams: AppLookupParams): Promise<ApplePushKeyFragment | null>;
|
|
61
55
|
export declare function deletePushKeyAsync(pushKeyId: string): Promise<void>;
|
|
62
|
-
export declare function createAscApiKeyAsync(account:
|
|
63
|
-
export declare function getAscApiKeysForAccountAsync(account:
|
|
56
|
+
export declare function createAscApiKeyAsync(account: AccountFragment, ascApiKey: MinimalAscApiKey): Promise<AppStoreConnectApiKeyFragment>;
|
|
57
|
+
export declare function getAscApiKeysForAccountAsync(account: AccountFragment): Promise<AppStoreConnectApiKeyFragment[]>;
|
|
64
58
|
export declare function getAscApiKeyForAppSubmissionsAsync(appLookupParams: AppLookupParams): Promise<AppStoreConnectApiKeyFragment | null>;
|
|
65
59
|
export declare function deleteAscApiKeyAsync(ascApiKeyId: string): Promise<void>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { AppleTeamFragment, AppleTeamInput } from '../../../../../graphql/generated';
|
|
2
|
-
import { Account } from '../../../../../user/Account';
|
|
1
|
+
import { AccountFragment, AppleTeamFragment, AppleTeamInput } from '../../../../../graphql/generated';
|
|
3
2
|
export declare type AppleTeamMutationResult = AppleTeamFragment & {
|
|
4
|
-
account:
|
|
3
|
+
account: AccountFragment;
|
|
5
4
|
};
|
|
6
5
|
export declare const AppleTeamMutation: {
|
|
7
6
|
createAppleTeamAsync(appleTeamInput: AppleTeamInput, accountId: string): Promise<AppleTeamMutationResult>;
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const graphql_1 = require("graphql");
|
|
6
6
|
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
7
7
|
const client_1 = require("../../../../../graphql/client");
|
|
8
|
+
const Account_1 = require("../../../../../graphql/types/Account");
|
|
8
9
|
const AppleTeam_1 = require("../../../../../graphql/types/credentials/AppleTeam");
|
|
9
10
|
exports.AppleTeamMutation = {
|
|
10
11
|
async createAppleTeamAsync(appleTeamInput, accountId) {
|
|
@@ -17,12 +18,13 @@ exports.AppleTeamMutation = {
|
|
|
17
18
|
...AppleTeamFragment
|
|
18
19
|
account {
|
|
19
20
|
id
|
|
20
|
-
|
|
21
|
+
...AccountFragment
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
${(0, graphql_1.print)(AppleTeam_1.AppleTeamFragmentNode)}
|
|
27
|
+
${(0, graphql_1.print)(Account_1.AccountFragmentNode)}
|
|
26
28
|
`, {
|
|
27
29
|
appleTeamInput,
|
|
28
30
|
accountId,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppleDevice, AppleDeviceFragment, AppleTeamFragment } from '../../../../../graphql/generated';
|
|
1
|
+
import { AppleDevice, AppleDeviceFragment, AppleDevicesByTeamIdentifierQueryVariables, AppleTeamFragment } from '../../../../../graphql/generated';
|
|
2
2
|
export declare type AppleDeviceFragmentWithAppleTeam = AppleDeviceFragment & {
|
|
3
3
|
appleTeam: AppleTeamFragment;
|
|
4
4
|
};
|
|
@@ -13,6 +13,6 @@ export declare const AppleDeviceQuery: {
|
|
|
13
13
|
getAllByAppleTeamIdentifierAsync(accountId: string, appleTeamIdentifier: string, { useCache }?: {
|
|
14
14
|
useCache?: boolean | undefined;
|
|
15
15
|
}): Promise<AppleDeviceFragmentWithAppleTeam[]>;
|
|
16
|
-
getAllForAppleTeamAsync(accountName
|
|
17
|
-
getByDeviceIdentifierAsync(accountName: string, identifier: string): Promise<AppleDevicesByIdentifierQueryResult
|
|
16
|
+
getAllForAppleTeamAsync({ accountName, appleTeamIdentifier, offset, limit, }: AppleDevicesByTeamIdentifierQueryVariables): Promise<AppleDeviceFragment[]>;
|
|
17
|
+
getByDeviceIdentifierAsync(accountName: string, identifier: string): Promise<AppleDevicesByIdentifierQueryResult>;
|
|
18
18
|
};
|