eas-cli 3.3.0 → 3.3.2
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 +54 -104
- package/build/analytics/AnalyticsManager.d.ts +2 -2
- package/build/build/android/prepareJob.js +2 -0
- package/build/build/build.d.ts +2 -2
- package/build/build/context.d.ts +1 -1
- package/build/build/graphql.d.ts +2 -1
- package/build/build/graphql.js +11 -1
- package/build/build/ios/graphql.js +1 -1
- package/build/build/ios/prepareJob.js +2 -0
- package/build/channel/utils.d.ts +1 -1
- package/build/commandUtils/EasCommand.d.ts +2 -2
- package/build/commandUtils/context/DynamicProjectConfigContextField.d.ts +1 -1
- package/build/commandUtils/pagination.d.ts +1 -1
- package/build/commands/update/republish.d.ts +2 -2
- package/build/credentials/android/api/graphql/mutations/AndroidAppBuildCredentialsMutation.d.ts +1 -1
- package/build/credentials/android/credentials.d.ts +3 -3
- package/build/credentials/context.d.ts +1 -1
- package/build/credentials/credentialsJson/types.d.ts +2 -2
- package/build/credentials/ios/api/graphql/mutations/AppleDistributionCertificateMutation.d.ts +1 -1
- package/build/credentials/ios/api/graphql/mutations/AppleProvisioningProfileMutation.d.ts +1 -1
- package/build/credentials/ios/api/graphql/mutations/AppleTeamMutation.d.ts +1 -1
- package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.d.ts +4 -4
- package/build/credentials/ios/api/graphql/queries/AppleProvisioningProfileQuery.d.ts +1 -1
- package/build/credentials/ios/appstore/Credentials.types.d.ts +2 -2
- package/build/credentials/ios/appstore/authenticate.d.ts +1 -1
- package/build/credentials/ios/appstore/authenticateTypes.d.ts +4 -4
- package/build/credentials/ios/appstore/bundleIdCapabilities.d.ts +2 -2
- package/build/credentials/ios/credentials.d.ts +1 -1
- package/build/credentials/ios/types.d.ts +3 -3
- package/build/credentials/manager/Actions.d.ts +1 -1
- package/build/credentials/utils/promptForCredentials.d.ts +2 -2
- package/build/devices/utils/formatDevice.d.ts +3 -3
- package/build/graphql/generated.d.ts +745 -767
- package/build/graphql/mutations/PublishMutation.d.ts +2 -2
- package/build/graphql/mutations/PublishMutation.js +3 -0
- package/build/graphql/queries/BranchQuery.d.ts +1 -1
- package/build/graphql/queries/ChannelQuery.d.ts +2 -2
- package/build/graphql/queries/EnvironmentSecretsQuery.d.ts +1 -1
- package/build/graphql/queries/SubmissionQuery.d.ts +1 -1
- package/build/graphql/queries/UserQuery.js +3 -0
- package/build/metadata/apple/config/reader.d.ts +1 -1
- package/build/metadata/apple/data.d.ts +2 -2
- package/build/metadata/apple/task.d.ts +3 -3
- package/build/metadata/apple/tasks/age-rating.d.ts +1 -1
- package/build/metadata/apple/tasks/app-info.d.ts +1 -1
- package/build/metadata/apple/tasks/app-review-detail.d.ts +1 -1
- package/build/metadata/apple/tasks/app-version.d.ts +2 -2
- package/build/metadata/apple/tasks/index.d.ts +1 -1
- package/build/metadata/apple/types.d.ts +3 -3
- package/build/metadata/auth.d.ts +1 -1
- package/build/metadata/config/resolve.js +2 -1
- package/build/metadata/utils/asc.d.ts +1 -1
- package/build/metadata/utils/log.d.ts +1 -1
- package/build/metadata/utils/retry.d.ts +1 -1
- package/build/metadata/utils/telemetry.d.ts +1 -1
- package/build/project/publish.d.ts +8 -8
- package/build/prompts.d.ts +1 -1
- package/build/submit/ArchiveSource.d.ts +2 -2
- package/build/submit/android/ServiceAccountSource.d.ts +5 -5
- package/build/submit/ios/AppProduce.d.ts +1 -1
- package/build/submit/ios/AppSpecificPasswordSource.d.ts +1 -1
- package/build/submit/ios/AscApiKeySource.d.ts +4 -4
- package/build/update/utils.d.ts +6 -6
- package/build/user/SessionManager.d.ts +2 -2
- package/build/user/User.d.ts +1 -1
- package/build/user/User.js +1 -1
- package/build/user/UserSettings.d.ts +1 -1
- package/build/utils/code-signing.d.ts +1 -1
- package/build/utils/code-signing.js +1 -1
- package/build/utils/formatFields.d.ts +2 -2
- package/build/utils/profiles.d.ts +2 -2
- package/build/utils/progress.d.ts +2 -2
- package/build/utils/queries.d.ts +3 -3
- package/oclif.manifest.json +1 -1
- package/package.json +34 -34
|
@@ -8,12 +8,12 @@ import { OptionalProjectConfigContextField } from './context/OptionalProjectConf
|
|
|
8
8
|
import ProjectConfigContextField from './context/ProjectConfigContextField';
|
|
9
9
|
import ProjectDirContextField from './context/ProjectDirContextField';
|
|
10
10
|
import SessionManagementContextField from './context/SessionManagementContextField';
|
|
11
|
-
|
|
11
|
+
type ContextInput<T extends {
|
|
12
12
|
[name: string]: any;
|
|
13
13
|
} = object> = {
|
|
14
14
|
[P in keyof T]: ContextField<T[P]>;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
type ContextOutput<T extends {
|
|
17
17
|
[name: string]: any;
|
|
18
18
|
} = object> = {
|
|
19
19
|
[P in keyof T]: T[P];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ExpoConfig } from '@expo/config-types';
|
|
2
2
|
import { ExpoConfigOptions } from '../../project/expoConfig';
|
|
3
3
|
import ContextField, { ContextOptions } from './ContextField';
|
|
4
|
-
export
|
|
4
|
+
export type DynamicConfigContextFn = (options?: ExpoConfigOptions) => Promise<{
|
|
5
5
|
projectId: string;
|
|
6
6
|
exp: ExpoConfig;
|
|
7
7
|
projectDir: string;
|
|
@@ -9,7 +9,7 @@ export declare const EasPaginatedQueryFlags: {
|
|
|
9
9
|
offset: OptionFlag<number | undefined>;
|
|
10
10
|
limit: OptionFlag<number | undefined>;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type PaginatedQueryOptions = {
|
|
13
13
|
nonInteractive: boolean;
|
|
14
14
|
json: boolean;
|
|
15
15
|
limit?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Platform } from '@expo/config';
|
|
2
2
|
import EasCommand from '../../commandUtils/EasCommand';
|
|
3
|
-
|
|
3
|
+
type UpdateRepublishRawFlags = {
|
|
4
4
|
branch?: string;
|
|
5
5
|
channel?: string;
|
|
6
6
|
group?: string;
|
|
@@ -9,7 +9,7 @@ declare type UpdateRepublishRawFlags = {
|
|
|
9
9
|
'non-interactive': boolean;
|
|
10
10
|
json?: boolean;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type UpdateRepublishFlags = {
|
|
13
13
|
branchName?: string;
|
|
14
14
|
channelName?: string;
|
|
15
15
|
groupId?: string;
|
package/build/credentials/android/api/graphql/mutations/AndroidAppBuildCredentialsMutation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
2
|
import { AndroidAppBuildCredentialsFragment, AndroidAppBuildCredentialsInput } from '../../../../../graphql/generated';
|
|
3
|
-
export
|
|
3
|
+
export type AndroidAppBuildCredentialsMetadataInput = Omit<AndroidAppBuildCredentialsInput, 'keystoreId'>;
|
|
4
4
|
export declare const AndroidAppBuildCredentialsMutation: {
|
|
5
5
|
createAndroidAppBuildCredentialsAsync(graphqlClient: ExpoGraphqlClient, androidAppBuildCredentialsInput: AndroidAppBuildCredentialsInput, androidAppCredentialsId: string): Promise<AndroidAppBuildCredentialsFragment>;
|
|
6
6
|
setKeystoreAsync(graphqlClient: ExpoGraphqlClient, androidAppBuildCredentialsId: string, keystoreId: string): Promise<AndroidAppBuildCredentialsFragment>;
|
|
@@ -9,16 +9,16 @@ export interface Keystore {
|
|
|
9
9
|
keyAlias: string;
|
|
10
10
|
keyPassword?: string;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export type KeystoreWithType = Keystore & {
|
|
13
13
|
type: AndroidKeystoreType;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type GoogleServiceAccountKey = {
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
private_key: string;
|
|
18
18
|
type: string;
|
|
19
19
|
client_email: string;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type AndroidCredentials = {
|
|
22
22
|
experienceName: string;
|
|
23
23
|
keystore: Keystore | null;
|
|
24
24
|
pushCredentials: FcmCredentials | null;
|
|
@@ -7,7 +7,7 @@ import { Actor } from '../user/User';
|
|
|
7
7
|
import * as AndroidGraphqlClient from './android/api/GraphqlClient';
|
|
8
8
|
import * as IosGraphqlClient from './ios/api/GraphqlClient';
|
|
9
9
|
import AppStoreApi from './ios/appstore/AppStoreApi';
|
|
10
|
-
export
|
|
10
|
+
export type CredentialsContextProjectInfo = {
|
|
11
11
|
exp: ExpoConfig;
|
|
12
12
|
projectId: string;
|
|
13
13
|
};
|
|
@@ -19,7 +19,7 @@ export interface CredentialsJsonIosTargetCredentials {
|
|
|
19
19
|
password: string;
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type CredentialsJsonIosCredentials = Record<string, CredentialsJsonIosTargetCredentials>;
|
|
23
23
|
export interface AndroidCredentials {
|
|
24
24
|
keystore: Keystore;
|
|
25
25
|
}
|
|
@@ -30,5 +30,5 @@ export interface IosTargetCredentials {
|
|
|
30
30
|
certificatePassword: string;
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
export
|
|
33
|
+
export type IosCredentials = Record<string, IosTargetCredentials>;
|
|
34
34
|
export declare const CredentialsJsonSchema: Joi.ObjectSchema<any>;
|
package/build/credentials/ios/api/graphql/mutations/AppleDistributionCertificateMutation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
2
|
import { AppleDistributionCertificateFragment, AppleDistributionCertificateInput, AppleTeamFragment } from '../../../../../graphql/generated';
|
|
3
|
-
export
|
|
3
|
+
export type AppleDistributionCertificateMutationResult = AppleDistributionCertificateFragment & {
|
|
4
4
|
appleTeam?: AppleTeamFragment | null;
|
|
5
5
|
};
|
|
6
6
|
export declare const AppleDistributionCertificateMutation: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
2
|
import { AppleProvisioningProfileFragment, AppleProvisioningProfileInput, AppleTeamFragment } from '../../../../../graphql/generated';
|
|
3
|
-
export
|
|
3
|
+
export type AppleProvisioningProfileMutationResult = AppleProvisioningProfileFragment & {
|
|
4
4
|
appleTeam?: AppleTeamFragment | null;
|
|
5
5
|
};
|
|
6
6
|
export declare const AppleProvisioningProfileMutation: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
2
|
import { AccountFragment, AppleTeamFragment, AppleTeamInput } from '../../../../../graphql/generated';
|
|
3
|
-
export
|
|
3
|
+
export type AppleTeamMutationResult = AppleTeamFragment & {
|
|
4
4
|
account: AccountFragment;
|
|
5
5
|
};
|
|
6
6
|
export declare const AppleTeamMutation: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
2
|
import { AppleDevice, AppleDeviceFragment, AppleDevicesByTeamIdentifierQueryVariables, AppleTeamFragment } from '../../../../../graphql/generated';
|
|
3
|
-
export
|
|
3
|
+
export type AppleDeviceFragmentWithAppleTeam = AppleDeviceFragment & {
|
|
4
4
|
appleTeam: AppleTeamFragment;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type AppleDeviceQueryResult = Pick<AppleDevice, 'id' | 'identifier' | 'name' | 'deviceClass' | 'enabled'>;
|
|
7
|
+
export type AppleDevicesByTeamIdentifierQueryResult = AppleTeamFragment & {
|
|
8
8
|
appleDevices: AppleDeviceQueryResult[];
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type AppleDevicesByIdentifierQueryResult = AppleDeviceQueryResult & {
|
|
11
11
|
appleTeam: AppleTeamFragment;
|
|
12
12
|
};
|
|
13
13
|
export declare const AppleDeviceQuery: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
2
|
import { AppleAppIdentifierFragment, AppleDeviceFragment, AppleProvisioningProfileFragment, AppleTeamFragment, IosDistributionType } from '../../../../../graphql/generated';
|
|
3
|
-
export
|
|
3
|
+
export type AppleProvisioningProfileQueryResult = AppleProvisioningProfileFragment & {
|
|
4
4
|
appleTeam?: AppleTeamFragment | null;
|
|
5
5
|
} & {
|
|
6
6
|
appleDevices: AppleDeviceFragment[];
|
|
@@ -47,7 +47,7 @@ export interface PushKey {
|
|
|
47
47
|
teamId: string;
|
|
48
48
|
teamName?: string;
|
|
49
49
|
}
|
|
50
|
-
export
|
|
50
|
+
export type AscApiKeyInfo = {
|
|
51
51
|
keyId: string;
|
|
52
52
|
issuerId?: string;
|
|
53
53
|
teamId: string;
|
|
@@ -56,6 +56,6 @@ export declare type AscApiKeyInfo = {
|
|
|
56
56
|
roles: UserRole[];
|
|
57
57
|
isRevoked: boolean;
|
|
58
58
|
};
|
|
59
|
-
export
|
|
59
|
+
export type AscApiKey = AscApiKeyInfo & {
|
|
60
60
|
keyP8: string;
|
|
61
61
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { RequestContext, Session } from '@expo/apple-utils';
|
|
3
3
|
import { MinimalAscApiKey } from '../credentials';
|
|
4
4
|
import { AppleTeamType, AuthCtx, AuthenticationMode, UserAuthCtx } from './authenticateTypes';
|
|
5
|
-
export
|
|
5
|
+
export type Options = {
|
|
6
6
|
appleId?: string;
|
|
7
7
|
teamId?: string;
|
|
8
8
|
teamName?: string;
|
|
@@ -12,13 +12,13 @@ export declare enum AppleTeamType {
|
|
|
12
12
|
COMPANY_OR_ORGANIZATION = "COMPANY_OR_ORGANIZATION",
|
|
13
13
|
INDIVIDUAL = "INDIVIDUAL"
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type Team = {
|
|
16
16
|
id: string;
|
|
17
17
|
/** Name of the development team, this is undefined when ASC API keys are used instead of cookies for authentication. */
|
|
18
18
|
name?: string;
|
|
19
19
|
inHouse?: boolean;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type UserAuthCtx = {
|
|
22
22
|
appleId: string;
|
|
23
23
|
appleIdPassword?: string;
|
|
24
24
|
team: Team;
|
|
@@ -31,7 +31,7 @@ export declare type UserAuthCtx = {
|
|
|
31
31
|
*/
|
|
32
32
|
authState?: Session.AuthState;
|
|
33
33
|
};
|
|
34
|
-
export
|
|
34
|
+
export type ApiKeyAuthCtx = {
|
|
35
35
|
ascApiKey: MinimalAscApiKey;
|
|
36
36
|
team: Team;
|
|
37
37
|
/**
|
|
@@ -39,4 +39,4 @@ export declare type ApiKeyAuthCtx = {
|
|
|
39
39
|
*/
|
|
40
40
|
authState?: Partial<Session.AuthState>;
|
|
41
41
|
};
|
|
42
|
-
export
|
|
42
|
+
export type AuthCtx = UserAuthCtx | ApiKeyAuthCtx;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { BundleId, CapabilityOptionMap, CapabilityType, MerchantId } from '@expo/apple-utils';
|
|
3
3
|
import { JSONObject, JSONValue } from '@expo/json-file';
|
|
4
4
|
export declare const EXPO_NO_CAPABILITY_SYNC: boolean;
|
|
5
|
-
|
|
5
|
+
type GetOptionsMethod<T extends CapabilityType = any> = (entitlement: JSONValue, entitlementsJson: JSONObject) => CapabilityOptionMap[T];
|
|
6
6
|
/**
|
|
7
7
|
* Given an entitlements JSON object, synchronizes the remote capabilities for a bundle identifier.
|
|
8
8
|
*
|
|
@@ -23,7 +23,7 @@ export declare function syncCapabilitiesForEntitlementsAsync(bundleId: BundleId,
|
|
|
23
23
|
disabled: string[];
|
|
24
24
|
}>;
|
|
25
25
|
export declare function assertValidOptions(classifier: CapabilityClassifier, value: any): asserts value;
|
|
26
|
-
|
|
26
|
+
type CapabilityClassifier = {
|
|
27
27
|
name: string;
|
|
28
28
|
entitlement: string;
|
|
29
29
|
capability: CapabilityType;
|
|
@@ -38,7 +38,7 @@ export interface IosDistCredentials extends DistributionCertificate {
|
|
|
38
38
|
type: 'dist-cert';
|
|
39
39
|
}
|
|
40
40
|
export declare const distributionCertificateSchema: CredentialSchema<DistributionCertificate>;
|
|
41
|
-
export
|
|
41
|
+
export type MinimalAscApiKey = {
|
|
42
42
|
keyP8: string;
|
|
43
43
|
keyId: string;
|
|
44
44
|
issuerId: string;
|
|
@@ -20,6 +20,6 @@ export interface TargetCredentials {
|
|
|
20
20
|
};
|
|
21
21
|
provisioningProfile: string;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
23
|
+
export type IosCredentials = Record<string, TargetCredentials>;
|
|
24
|
+
export type IosAppBuildCredentialsMap = Record<string, IosAppBuildCredentialsFragment>;
|
|
25
|
+
export type IosAppCredentialsMap = Record<string, CommonIosAppCredentialsFragment | null>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Question = {
|
|
2
2
|
field: string;
|
|
3
3
|
question: string;
|
|
4
4
|
type: 'file' | 'string' | 'password';
|
|
5
5
|
base64Encode?: boolean;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type CredentialSchema<T> = {
|
|
8
8
|
name: string;
|
|
9
9
|
questions: Question[];
|
|
10
10
|
provideMethodQuestion?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppleDevice, AppleTeam } from '../../graphql/generated';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
2
|
+
type Device = Pick<AppleDevice, 'id' | 'identifier' | 'name' | 'deviceClass' | 'enabled' | 'model'>;
|
|
3
|
+
type NewDevice = Pick<AppleDevice, 'identifier' | 'name' | 'deviceClass'>;
|
|
4
|
+
export type AppleTeamIdAndName = Pick<AppleTeam, 'appleTeamIdentifier' | 'appleTeamName'>;
|
|
5
5
|
export default function formatDevice(device: Device, team?: AppleTeamIdAndName): string;
|
|
6
6
|
export declare function formatNewDevice(device: NewDevice, team?: AppleTeamIdAndName): string;
|
|
7
7
|
export {};
|