eas-cli 18.12.0 → 18.12.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 +100 -100
- package/build/commands/simulator/get.d.ts +13 -0
- package/build/commands/simulator/get.js +60 -0
- package/build/commands/simulator/start.js +11 -20
- package/build/graphql/generated.d.ts +92 -2
- package/build/graphql/generated.js +1 -0
- package/build/graphql/queries/DeviceRunSessionQuery.js +12 -0
- package/build/graphql/types/App.js +1 -0
- package/build/simulator/utils.d.ts +5 -0
- package/build/simulator/utils.js +20 -0
- package/oclif.manifest.json +1696 -1614
- package/package.json +2 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import EasCommand from '../../commandUtils/EasCommand';
|
|
2
|
+
export default class SimulatorGet extends EasCommand {
|
|
3
|
+
static hidden: boolean;
|
|
4
|
+
static description: string;
|
|
5
|
+
static flags: {
|
|
6
|
+
'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
7
|
+
id: import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
|
+
};
|
|
9
|
+
static contextDefinition: {
|
|
10
|
+
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
11
|
+
};
|
|
12
|
+
runAsync(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const url_1 = require("../../build/utils/url");
|
|
6
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
7
|
+
const flags_1 = require("../../commandUtils/flags");
|
|
8
|
+
const generated_1 = require("../../graphql/generated");
|
|
9
|
+
const DeviceRunSessionQuery_1 = require("../../graphql/queries/DeviceRunSessionQuery");
|
|
10
|
+
const log_1 = tslib_1.__importStar(require("../../log"));
|
|
11
|
+
const ora_1 = require("../../ora");
|
|
12
|
+
const utils_1 = require("../../simulator/utils");
|
|
13
|
+
class SimulatorGet extends EasCommand_1.default {
|
|
14
|
+
static hidden = true;
|
|
15
|
+
static description = '[EXPERIMENTAL] get info about a remote simulator session on EAS by its device run session ID';
|
|
16
|
+
static flags = {
|
|
17
|
+
id: core_1.Flags.string({
|
|
18
|
+
description: 'Device run session ID',
|
|
19
|
+
required: true,
|
|
20
|
+
}),
|
|
21
|
+
...flags_1.EASNonInteractiveFlag,
|
|
22
|
+
};
|
|
23
|
+
static contextDefinition = {
|
|
24
|
+
...this.ContextOptions.LoggedIn,
|
|
25
|
+
};
|
|
26
|
+
async runAsync() {
|
|
27
|
+
const { flags } = await this.parse(SimulatorGet);
|
|
28
|
+
const { loggedIn: { graphqlClient }, } = await this.getContextAsync(SimulatorGet, {
|
|
29
|
+
nonInteractive: flags['non-interactive'],
|
|
30
|
+
});
|
|
31
|
+
const fetchSpinner = (0, ora_1.ora)(`Fetching device run session ${flags.id}`).start();
|
|
32
|
+
let session;
|
|
33
|
+
try {
|
|
34
|
+
session = await DeviceRunSessionQuery_1.DeviceRunSessionQuery.byIdAsync(graphqlClient, flags.id);
|
|
35
|
+
fetchSpinner.succeed(`Fetched device run session ${session.id}`);
|
|
36
|
+
}
|
|
37
|
+
catch (err) {
|
|
38
|
+
fetchSpinner.fail(`Failed to fetch device run session ${flags.id}`);
|
|
39
|
+
throw err;
|
|
40
|
+
}
|
|
41
|
+
const jobRunUrl = session.turtleJobRun
|
|
42
|
+
? (0, url_1.getBareJobRunUrl)(session.app.ownerAccount.name, session.app.slug, session.turtleJobRun.id)
|
|
43
|
+
: '';
|
|
44
|
+
log_1.default.newLine();
|
|
45
|
+
log_1.default.log(`ID: ${session.id}`);
|
|
46
|
+
log_1.default.log(`Type: ${session.type}`);
|
|
47
|
+
log_1.default.log(`Status: ${session.status}`);
|
|
48
|
+
log_1.default.log(`URL: ${jobRunUrl ? (0, log_1.link)(jobRunUrl) : ''}`);
|
|
49
|
+
if (session.status === generated_1.DeviceRunSessionStatus.InProgress) {
|
|
50
|
+
log_1.default.newLine();
|
|
51
|
+
if (session.remoteConfig) {
|
|
52
|
+
log_1.default.log((0, utils_1.formatRemoteSessionInstructions)(session.remoteConfig));
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
log_1.default.log('⏳ Session is starting up — remote config is not available yet. Re-run this command in a moment.');
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.default = SimulatorGet;
|
|
@@ -10,6 +10,7 @@ const DeviceRunSessionMutation_1 = require("../../graphql/mutations/DeviceRunSes
|
|
|
10
10
|
const DeviceRunSessionQuery_1 = require("../../graphql/queries/DeviceRunSessionQuery");
|
|
11
11
|
const log_1 = tslib_1.__importStar(require("../../log"));
|
|
12
12
|
const ora_1 = require("../../ora");
|
|
13
|
+
const utils_1 = require("../../simulator/utils");
|
|
13
14
|
const promise_1 = require("../../utils/promise");
|
|
14
15
|
const nullthrows_1 = tslib_1.__importDefault(require("nullthrows"));
|
|
15
16
|
const POLL_INTERVAL_MS = 5_000; // 5 seconds
|
|
@@ -18,11 +19,12 @@ const POLL_TIMEOUT_MS = 15 * 60 * 1_000; // 15 minutes
|
|
|
18
19
|
// so adding a new enum value in codegen fails the build until it is wired up here.
|
|
19
20
|
const DEVICE_RUN_SESSION_TYPE_FLAG_VALUES = {
|
|
20
21
|
[generated_1.DeviceRunSessionType.AgentDevice]: 'agent-device',
|
|
22
|
+
[generated_1.DeviceRunSessionType.ServeSim]: 'serve-sim',
|
|
21
23
|
};
|
|
22
24
|
const DEVICE_RUN_SESSION_TYPE_BY_FLAG_VALUE = Object.fromEntries(Object.entries(DEVICE_RUN_SESSION_TYPE_FLAG_VALUES).map(([type, value]) => [value, type]));
|
|
23
25
|
class SimulatorStart extends EasCommand_1.default {
|
|
24
26
|
static hidden = true;
|
|
25
|
-
static description = '[EXPERIMENTAL] start a remote simulator session on EAS and get
|
|
27
|
+
static description = '[EXPERIMENTAL] start a remote simulator session on EAS and get instructions to connect to it';
|
|
26
28
|
static flags = {
|
|
27
29
|
platform: core_1.Flags.option({
|
|
28
30
|
description: 'Device platform',
|
|
@@ -68,7 +70,7 @@ class SimulatorStart extends EasCommand_1.default {
|
|
|
68
70
|
createSpinner.fail('Failed to create device run session');
|
|
69
71
|
throw err;
|
|
70
72
|
}
|
|
71
|
-
const pollSpinner = (0, ora_1.ora)(`⏳ Waiting for ${flags.type}
|
|
73
|
+
const pollSpinner = (0, ora_1.ora)(`⏳ Waiting for ${flags.type} session to be ready`).start();
|
|
72
74
|
const deadline = Date.now() + POLL_TIMEOUT_MS;
|
|
73
75
|
let remoteConfig;
|
|
74
76
|
try {
|
|
@@ -76,36 +78,34 @@ class SimulatorStart extends EasCommand_1.default {
|
|
|
76
78
|
const session = await DeviceRunSessionQuery_1.DeviceRunSessionQuery.byIdAsync(graphqlClient, deviceRunSessionId);
|
|
77
79
|
if (session.status === generated_1.DeviceRunSessionStatus.Errored ||
|
|
78
80
|
session.status === generated_1.DeviceRunSessionStatus.Stopped) {
|
|
79
|
-
throw new Error(`Device run session ${deviceRunSessionId} ${session.status.toLowerCase()} before the ${flags.type}
|
|
81
|
+
throw new Error(`Device run session ${deviceRunSessionId} ${session.status.toLowerCase()} before the ${flags.type} session was ready. ${(0, log_1.link)(jobRunUrl)}`);
|
|
80
82
|
}
|
|
81
83
|
const jobRunStatus = session.turtleJobRun?.status;
|
|
82
84
|
if (jobRunStatus === generated_1.JobRunStatus.Errored ||
|
|
83
85
|
jobRunStatus === generated_1.JobRunStatus.Canceled ||
|
|
84
86
|
jobRunStatus === generated_1.JobRunStatus.Finished) {
|
|
85
|
-
throw new Error(`Turtle job run for device run session ${deviceRunSessionId} ${jobRunStatus.toLowerCase()} before the ${flags.type}
|
|
87
|
+
throw new Error(`Turtle job run for device run session ${deviceRunSessionId} ${jobRunStatus.toLowerCase()} before the ${flags.type} session was ready. ${(0, log_1.link)(jobRunUrl)}`);
|
|
86
88
|
}
|
|
87
89
|
if (session.remoteConfig) {
|
|
88
90
|
remoteConfig = session.remoteConfig;
|
|
89
|
-
pollSpinner.succeed(`🎉 ${flags.type}
|
|
91
|
+
pollSpinner.succeed(`🎉 ${flags.type} session is ready`);
|
|
90
92
|
break;
|
|
91
93
|
}
|
|
92
94
|
await (0, promise_1.sleepAsync)(POLL_INTERVAL_MS);
|
|
93
95
|
}
|
|
94
96
|
}
|
|
95
97
|
catch (err) {
|
|
96
|
-
pollSpinner.fail(`Failed while polling for ${flags.type}
|
|
98
|
+
pollSpinner.fail(`Failed while polling for ${flags.type} session to be ready`);
|
|
97
99
|
await ensureDeviceRunSessionStoppedSafelyAsync(graphqlClient, deviceRunSessionId);
|
|
98
100
|
throw err;
|
|
99
101
|
}
|
|
100
102
|
if (!remoteConfig) {
|
|
101
|
-
pollSpinner.fail(`Timed out waiting for ${flags.type}
|
|
103
|
+
pollSpinner.fail(`Timed out waiting for ${flags.type} session to be ready`);
|
|
102
104
|
await ensureDeviceRunSessionStoppedSafelyAsync(graphqlClient, deviceRunSessionId);
|
|
103
|
-
throw new Error(`Timed out after ${Math.round(POLL_TIMEOUT_MS / 1000)}s waiting for ${flags.type}
|
|
105
|
+
throw new Error(`Timed out after ${Math.round(POLL_TIMEOUT_MS / 1000)}s waiting for ${flags.type} session to be ready. ${(0, log_1.link)(jobRunUrl)}`);
|
|
104
106
|
}
|
|
105
107
|
log_1.default.newLine();
|
|
106
|
-
log_1.default.log(
|
|
107
|
-
log_1.default.newLine();
|
|
108
|
-
log_1.default.log(formatRemoteConfigShellSnippet(remoteConfig));
|
|
108
|
+
log_1.default.log((0, utils_1.formatRemoteSessionInstructions)(remoteConfig));
|
|
109
109
|
log_1.default.newLine();
|
|
110
110
|
if (flags['non-interactive']) {
|
|
111
111
|
log_1.default.log(`When you are done, stop the session with: eas simulator:stop --id ${deviceRunSessionId}`);
|
|
@@ -187,12 +187,3 @@ async function ensureDeviceRunSessionStoppedSafelyAsync(graphqlClient, deviceRun
|
|
|
187
187
|
return false;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
function formatRemoteConfigShellSnippet(remoteConfig) {
|
|
191
|
-
switch (remoteConfig.__typename) {
|
|
192
|
-
case 'AgentDeviceRunSessionRemoteConfig':
|
|
193
|
-
return [
|
|
194
|
-
`export AGENT_DEVICE_DAEMON_BASE_URL='${remoteConfig.url}'`,
|
|
195
|
-
`export AGENT_DEVICE_DAEMON_AUTH_TOKEN='${remoteConfig.token}'`,
|
|
196
|
-
].join('\n');
|
|
197
|
-
}
|
|
198
|
-
}
|
|
@@ -740,8 +740,10 @@ export type AccountOnboardingStats = {
|
|
|
740
740
|
firstProjectCreatedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
741
741
|
firstSubmissionCompletedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
742
742
|
firstUpdateCreatedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
743
|
+
/** @deprecated Onboarding widget experiment removed */
|
|
743
744
|
hasConfiguredUpdate: Scalars['Boolean']['output'];
|
|
744
745
|
hasConfiguredWorkflow: Scalars['Boolean']['output'];
|
|
746
|
+
/** @deprecated Onboarding widget experiment removed */
|
|
745
747
|
hasTeamMembers: Scalars['Boolean']['output'];
|
|
746
748
|
};
|
|
747
749
|
export type AccountQuery = {
|
|
@@ -1926,17 +1928,22 @@ export type AppObserveCustomEvent = {
|
|
|
1926
1928
|
__typename?: 'AppObserveCustomEvent';
|
|
1927
1929
|
appBuildNumber: Scalars['String']['output'];
|
|
1928
1930
|
appEasBuildId?: Maybe<Scalars['String']['output']>;
|
|
1931
|
+
appIdentifier: Scalars['String']['output'];
|
|
1929
1932
|
appUpdateId?: Maybe<Scalars['String']['output']>;
|
|
1930
1933
|
appVersion: Scalars['String']['output'];
|
|
1934
|
+
clientVersion?: Maybe<Scalars['String']['output']>;
|
|
1931
1935
|
countryCode?: Maybe<Scalars['String']['output']>;
|
|
1936
|
+
deviceLanguageTag?: Maybe<Scalars['String']['output']>;
|
|
1932
1937
|
deviceModel: Scalars['String']['output'];
|
|
1933
1938
|
deviceOs: Scalars['String']['output'];
|
|
1934
1939
|
deviceOsVersion: Scalars['String']['output'];
|
|
1935
1940
|
easClientId: Scalars['String']['output'];
|
|
1936
1941
|
environment?: Maybe<Scalars['String']['output']>;
|
|
1937
1942
|
eventName: Scalars['String']['output'];
|
|
1943
|
+
expoSdkVersion?: Maybe<Scalars['String']['output']>;
|
|
1938
1944
|
id: Scalars['ID']['output'];
|
|
1939
1945
|
properties: Array<AppObserveEventProperty>;
|
|
1946
|
+
reactNativeVersion?: Maybe<Scalars['String']['output']>;
|
|
1940
1947
|
sessionId?: Maybe<Scalars['String']['output']>;
|
|
1941
1948
|
severityNumber?: Maybe<Scalars['Int']['output']>;
|
|
1942
1949
|
severityText?: Maybe<Scalars['String']['output']>;
|
|
@@ -2636,7 +2643,12 @@ export type AppleDeviceRegistrationRequest = {
|
|
|
2636
2643
|
__typename?: 'AppleDeviceRegistrationRequest';
|
|
2637
2644
|
account: Account;
|
|
2638
2645
|
appleTeam: AppleTeam;
|
|
2646
|
+
closedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
2639
2647
|
id: Scalars['ID']['output'];
|
|
2648
|
+
/** Device that satisfied this request, including when enrollment matched a pre-existing device. */
|
|
2649
|
+
resolvedAppleDevice?: Maybe<AppleDevice>;
|
|
2650
|
+
/** Workflow job waiting for registration review when this request was created from a workflow run. */
|
|
2651
|
+
workflowJob?: Maybe<WorkflowJob>;
|
|
2640
2652
|
};
|
|
2641
2653
|
export type AppleDeviceRegistrationRequestMutation = {
|
|
2642
2654
|
__typename?: 'AppleDeviceRegistrationRequestMutation';
|
|
@@ -4357,7 +4369,7 @@ export type DeviceRunSessionQuery = {
|
|
|
4357
4369
|
export type DeviceRunSessionQueryByIdArgs = {
|
|
4358
4370
|
deviceRunSessionId: Scalars['ID']['input'];
|
|
4359
4371
|
};
|
|
4360
|
-
export type DeviceRunSessionRemoteConfig = AgentDeviceRunSessionRemoteConfig;
|
|
4372
|
+
export type DeviceRunSessionRemoteConfig = AgentDeviceRunSessionRemoteConfig | ServeSimRunSessionRemoteConfig;
|
|
4361
4373
|
export declare enum DeviceRunSessionStatus {
|
|
4362
4374
|
Errored = "ERRORED",
|
|
4363
4375
|
InProgress = "IN_PROGRESS",
|
|
@@ -4365,7 +4377,8 @@ export declare enum DeviceRunSessionStatus {
|
|
|
4365
4377
|
Stopped = "STOPPED"
|
|
4366
4378
|
}
|
|
4367
4379
|
export declare enum DeviceRunSessionType {
|
|
4368
|
-
AgentDevice = "AGENT_DEVICE"
|
|
4380
|
+
AgentDevice = "AGENT_DEVICE",
|
|
4381
|
+
ServeSim = "SERVE_SIM"
|
|
4369
4382
|
}
|
|
4370
4383
|
export type DiscordUser = {
|
|
4371
4384
|
__typename?: 'DiscordUser';
|
|
@@ -5578,6 +5591,7 @@ export type GitHubRepositoryMetadata = {
|
|
|
5578
5591
|
githubRepoName: Scalars['String']['output'];
|
|
5579
5592
|
githubRepoOwnerName: Scalars['String']['output'];
|
|
5580
5593
|
githubRepoUrl: Scalars['String']['output'];
|
|
5594
|
+
id: Scalars['ID']['output'];
|
|
5581
5595
|
lastPushed: Scalars['DateTime']['output'];
|
|
5582
5596
|
lastUpdated: Scalars['DateTime']['output'];
|
|
5583
5597
|
private: Scalars['Boolean']['output'];
|
|
@@ -6853,6 +6867,7 @@ export type RootMutation = {
|
|
|
6853
6867
|
/** Mutations that modify a websiteNotification */
|
|
6854
6868
|
websiteNotifications: WebsiteNotificationMutation;
|
|
6855
6869
|
workflowDeviceTestCaseResult: WorkflowDeviceTestCaseResultMutation;
|
|
6870
|
+
workflowJobAppleDeviceRegistrationRequest: WorkflowJobAppleDeviceRegistrationRequestMutation;
|
|
6856
6871
|
workflowJobApproval: WorkflowJobApprovalMutation;
|
|
6857
6872
|
workflowRevision: WorkflowRevisionMutation;
|
|
6858
6873
|
workflowRun: WorkflowRunMutation;
|
|
@@ -7290,6 +7305,11 @@ export type SentryProjectMutationCreateSentryProjectArgs = {
|
|
|
7290
7305
|
export type SentryProjectMutationDeleteSentryProjectArgs = {
|
|
7291
7306
|
sentryProjectId: Scalars['ID']['input'];
|
|
7292
7307
|
};
|
|
7308
|
+
export type ServeSimRunSessionRemoteConfig = {
|
|
7309
|
+
__typename?: 'ServeSimRunSessionRemoteConfig';
|
|
7310
|
+
previewUrl: Scalars['String']['output'];
|
|
7311
|
+
streamUrl: Scalars['String']['output'];
|
|
7312
|
+
};
|
|
7293
7313
|
export type SetupConvexProjectInput = {
|
|
7294
7314
|
appId: Scalars['ID']['input'];
|
|
7295
7315
|
convexTeamConnectionId: Scalars['ID']['input'];
|
|
@@ -9392,6 +9412,21 @@ export type WorkflowJob = {
|
|
|
9392
9412
|
updatedAt: Scalars['DateTime']['output'];
|
|
9393
9413
|
workflowRun: WorkflowRun;
|
|
9394
9414
|
};
|
|
9415
|
+
export type WorkflowJobAppleDeviceRegistrationRequestMutation = {
|
|
9416
|
+
__typename?: 'WorkflowJobAppleDeviceRegistrationRequestMutation';
|
|
9417
|
+
/** Mark the workflow apple-device-registration-request job successful after reviewing the registered device. */
|
|
9418
|
+
approveAppleDeviceRegistration: WorkflowJob;
|
|
9419
|
+
/** Fail the workflow apple-device-registration-request job after reviewing the registered device. */
|
|
9420
|
+
rejectAppleDeviceRegistration: WorkflowJob;
|
|
9421
|
+
};
|
|
9422
|
+
export type WorkflowJobAppleDeviceRegistrationRequestMutationApproveAppleDeviceRegistrationArgs = {
|
|
9423
|
+
appleDeviceId: Scalars['ID']['input'];
|
|
9424
|
+
workflowJobId: Scalars['ID']['input'];
|
|
9425
|
+
};
|
|
9426
|
+
export type WorkflowJobAppleDeviceRegistrationRequestMutationRejectAppleDeviceRegistrationArgs = {
|
|
9427
|
+
appleDeviceId: Scalars['ID']['input'];
|
|
9428
|
+
workflowJobId: Scalars['ID']['input'];
|
|
9429
|
+
};
|
|
9395
9430
|
export type WorkflowJobApproval = {
|
|
9396
9431
|
__typename?: 'WorkflowJobApproval';
|
|
9397
9432
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -10088,6 +10123,7 @@ export type CreateAndroidAppCredentialsMutation = {
|
|
|
10088
10123
|
id: string;
|
|
10089
10124
|
metadata: {
|
|
10090
10125
|
__typename?: 'GitHubRepositoryMetadata';
|
|
10126
|
+
id: string;
|
|
10091
10127
|
githubRepoOwnerName: string;
|
|
10092
10128
|
githubRepoName: string;
|
|
10093
10129
|
};
|
|
@@ -10211,6 +10247,7 @@ export type SetFcmMutation = {
|
|
|
10211
10247
|
id: string;
|
|
10212
10248
|
metadata: {
|
|
10213
10249
|
__typename?: 'GitHubRepositoryMetadata';
|
|
10250
|
+
id: string;
|
|
10214
10251
|
githubRepoOwnerName: string;
|
|
10215
10252
|
githubRepoName: string;
|
|
10216
10253
|
};
|
|
@@ -10334,6 +10371,7 @@ export type SetGoogleServiceAccountKeyForSubmissionsMutation = {
|
|
|
10334
10371
|
id: string;
|
|
10335
10372
|
metadata: {
|
|
10336
10373
|
__typename?: 'GitHubRepositoryMetadata';
|
|
10374
|
+
id: string;
|
|
10337
10375
|
githubRepoOwnerName: string;
|
|
10338
10376
|
githubRepoName: string;
|
|
10339
10377
|
};
|
|
@@ -10457,6 +10495,7 @@ export type SetGoogleServiceAccountKeyForFcmV1Mutation = {
|
|
|
10457
10495
|
id: string;
|
|
10458
10496
|
metadata: {
|
|
10459
10497
|
__typename?: 'GitHubRepositoryMetadata';
|
|
10498
|
+
id: string;
|
|
10460
10499
|
githubRepoOwnerName: string;
|
|
10461
10500
|
githubRepoName: string;
|
|
10462
10501
|
};
|
|
@@ -10696,6 +10735,7 @@ export type CommonAndroidAppCredentialsWithBuildCredentialsByApplicationIdentifi
|
|
|
10696
10735
|
id: string;
|
|
10697
10736
|
metadata: {
|
|
10698
10737
|
__typename?: 'GitHubRepositoryMetadata';
|
|
10738
|
+
id: string;
|
|
10699
10739
|
githubRepoOwnerName: string;
|
|
10700
10740
|
githubRepoName: string;
|
|
10701
10741
|
};
|
|
@@ -10997,6 +11037,7 @@ export type CreateAppleDistributionCertificateMutation = {
|
|
|
10997
11037
|
id: string;
|
|
10998
11038
|
metadata: {
|
|
10999
11039
|
__typename?: 'GitHubRepositoryMetadata';
|
|
11040
|
+
id: string;
|
|
11000
11041
|
githubRepoOwnerName: string;
|
|
11001
11042
|
githubRepoName: string;
|
|
11002
11043
|
};
|
|
@@ -11176,6 +11217,7 @@ export type CreateApplePushKeyMutation = {
|
|
|
11176
11217
|
id: string;
|
|
11177
11218
|
metadata: {
|
|
11178
11219
|
__typename?: 'GitHubRepositoryMetadata';
|
|
11220
|
+
id: string;
|
|
11179
11221
|
githubRepoOwnerName: string;
|
|
11180
11222
|
githubRepoName: string;
|
|
11181
11223
|
};
|
|
@@ -11311,6 +11353,7 @@ export type CreateIosAppBuildCredentialsMutation = {
|
|
|
11311
11353
|
id: string;
|
|
11312
11354
|
metadata: {
|
|
11313
11355
|
__typename?: 'GitHubRepositoryMetadata';
|
|
11356
|
+
id: string;
|
|
11314
11357
|
githubRepoOwnerName: string;
|
|
11315
11358
|
githubRepoName: string;
|
|
11316
11359
|
};
|
|
@@ -11432,6 +11475,7 @@ export type SetDistributionCertificateMutation = {
|
|
|
11432
11475
|
id: string;
|
|
11433
11476
|
metadata: {
|
|
11434
11477
|
__typename?: 'GitHubRepositoryMetadata';
|
|
11478
|
+
id: string;
|
|
11435
11479
|
githubRepoOwnerName: string;
|
|
11436
11480
|
githubRepoName: string;
|
|
11437
11481
|
};
|
|
@@ -11553,6 +11597,7 @@ export type SetProvisioningProfileMutation = {
|
|
|
11553
11597
|
id: string;
|
|
11554
11598
|
metadata: {
|
|
11555
11599
|
__typename?: 'GitHubRepositoryMetadata';
|
|
11600
|
+
id: string;
|
|
11556
11601
|
githubRepoOwnerName: string;
|
|
11557
11602
|
githubRepoName: string;
|
|
11558
11603
|
};
|
|
@@ -11678,6 +11723,7 @@ export type CreateIosAppCredentialsMutation = {
|
|
|
11678
11723
|
id: string;
|
|
11679
11724
|
metadata: {
|
|
11680
11725
|
__typename?: 'GitHubRepositoryMetadata';
|
|
11726
|
+
id: string;
|
|
11681
11727
|
githubRepoOwnerName: string;
|
|
11682
11728
|
githubRepoName: string;
|
|
11683
11729
|
};
|
|
@@ -11763,6 +11809,7 @@ export type CreateIosAppCredentialsMutation = {
|
|
|
11763
11809
|
id: string;
|
|
11764
11810
|
metadata: {
|
|
11765
11811
|
__typename?: 'GitHubRepositoryMetadata';
|
|
11812
|
+
id: string;
|
|
11766
11813
|
githubRepoOwnerName: string;
|
|
11767
11814
|
githubRepoName: string;
|
|
11768
11815
|
};
|
|
@@ -11835,6 +11882,7 @@ export type CreateIosAppCredentialsMutation = {
|
|
|
11835
11882
|
id: string;
|
|
11836
11883
|
metadata: {
|
|
11837
11884
|
__typename?: 'GitHubRepositoryMetadata';
|
|
11885
|
+
id: string;
|
|
11838
11886
|
githubRepoOwnerName: string;
|
|
11839
11887
|
githubRepoName: string;
|
|
11840
11888
|
};
|
|
@@ -11945,6 +11993,7 @@ export type SetPushKeyMutation = {
|
|
|
11945
11993
|
id: string;
|
|
11946
11994
|
metadata: {
|
|
11947
11995
|
__typename?: 'GitHubRepositoryMetadata';
|
|
11996
|
+
id: string;
|
|
11948
11997
|
githubRepoOwnerName: string;
|
|
11949
11998
|
githubRepoName: string;
|
|
11950
11999
|
};
|
|
@@ -12030,6 +12079,7 @@ export type SetPushKeyMutation = {
|
|
|
12030
12079
|
id: string;
|
|
12031
12080
|
metadata: {
|
|
12032
12081
|
__typename?: 'GitHubRepositoryMetadata';
|
|
12082
|
+
id: string;
|
|
12033
12083
|
githubRepoOwnerName: string;
|
|
12034
12084
|
githubRepoName: string;
|
|
12035
12085
|
};
|
|
@@ -12102,6 +12152,7 @@ export type SetPushKeyMutation = {
|
|
|
12102
12152
|
id: string;
|
|
12103
12153
|
metadata: {
|
|
12104
12154
|
__typename?: 'GitHubRepositoryMetadata';
|
|
12155
|
+
id: string;
|
|
12105
12156
|
githubRepoOwnerName: string;
|
|
12106
12157
|
githubRepoName: string;
|
|
12107
12158
|
};
|
|
@@ -12212,6 +12263,7 @@ export type SetAppStoreConnectApiKeyForSubmissionsMutation = {
|
|
|
12212
12263
|
id: string;
|
|
12213
12264
|
metadata: {
|
|
12214
12265
|
__typename?: 'GitHubRepositoryMetadata';
|
|
12266
|
+
id: string;
|
|
12215
12267
|
githubRepoOwnerName: string;
|
|
12216
12268
|
githubRepoName: string;
|
|
12217
12269
|
};
|
|
@@ -12297,6 +12349,7 @@ export type SetAppStoreConnectApiKeyForSubmissionsMutation = {
|
|
|
12297
12349
|
id: string;
|
|
12298
12350
|
metadata: {
|
|
12299
12351
|
__typename?: 'GitHubRepositoryMetadata';
|
|
12352
|
+
id: string;
|
|
12300
12353
|
githubRepoOwnerName: string;
|
|
12301
12354
|
githubRepoName: string;
|
|
12302
12355
|
};
|
|
@@ -12369,6 +12422,7 @@ export type SetAppStoreConnectApiKeyForSubmissionsMutation = {
|
|
|
12369
12422
|
id: string;
|
|
12370
12423
|
metadata: {
|
|
12371
12424
|
__typename?: 'GitHubRepositoryMetadata';
|
|
12425
|
+
id: string;
|
|
12372
12426
|
githubRepoOwnerName: string;
|
|
12373
12427
|
githubRepoName: string;
|
|
12374
12428
|
};
|
|
@@ -12627,6 +12681,7 @@ export type AppleDistributionCertificateByAppQuery = {
|
|
|
12627
12681
|
id: string;
|
|
12628
12682
|
metadata: {
|
|
12629
12683
|
__typename?: 'GitHubRepositoryMetadata';
|
|
12684
|
+
id: string;
|
|
12630
12685
|
githubRepoOwnerName: string;
|
|
12631
12686
|
githubRepoName: string;
|
|
12632
12687
|
};
|
|
@@ -12733,6 +12788,7 @@ export type AppleDistributionCertificatesPaginatedByAccountQuery = {
|
|
|
12733
12788
|
id: string;
|
|
12734
12789
|
metadata: {
|
|
12735
12790
|
__typename?: 'GitHubRepositoryMetadata';
|
|
12791
|
+
id: string;
|
|
12736
12792
|
githubRepoOwnerName: string;
|
|
12737
12793
|
githubRepoName: string;
|
|
12738
12794
|
};
|
|
@@ -12890,6 +12946,7 @@ export type ApplePushKeysPaginatedByAccountQuery = {
|
|
|
12890
12946
|
id: string;
|
|
12891
12947
|
metadata: {
|
|
12892
12948
|
__typename?: 'GitHubRepositoryMetadata';
|
|
12949
|
+
id: string;
|
|
12893
12950
|
githubRepoOwnerName: string;
|
|
12894
12951
|
githubRepoName: string;
|
|
12895
12952
|
};
|
|
@@ -13034,6 +13091,7 @@ export type IosAppBuildCredentialsByAppleAppIdentiferAndDistributionQuery = {
|
|
|
13034
13091
|
id: string;
|
|
13035
13092
|
metadata: {
|
|
13036
13093
|
__typename?: 'GitHubRepositoryMetadata';
|
|
13094
|
+
id: string;
|
|
13037
13095
|
githubRepoOwnerName: string;
|
|
13038
13096
|
githubRepoName: string;
|
|
13039
13097
|
};
|
|
@@ -13164,6 +13222,7 @@ export type IosAppCredentialsWithBuildCredentialsByAppIdentifierIdQuery = {
|
|
|
13164
13222
|
id: string;
|
|
13165
13223
|
metadata: {
|
|
13166
13224
|
__typename?: 'GitHubRepositoryMetadata';
|
|
13225
|
+
id: string;
|
|
13167
13226
|
githubRepoOwnerName: string;
|
|
13168
13227
|
githubRepoName: string;
|
|
13169
13228
|
};
|
|
@@ -13249,6 +13308,7 @@ export type IosAppCredentialsWithBuildCredentialsByAppIdentifierIdQuery = {
|
|
|
13249
13308
|
id: string;
|
|
13250
13309
|
metadata: {
|
|
13251
13310
|
__typename?: 'GitHubRepositoryMetadata';
|
|
13311
|
+
id: string;
|
|
13252
13312
|
githubRepoOwnerName: string;
|
|
13253
13313
|
githubRepoName: string;
|
|
13254
13314
|
};
|
|
@@ -13321,6 +13381,7 @@ export type IosAppCredentialsWithBuildCredentialsByAppIdentifierIdQuery = {
|
|
|
13321
13381
|
id: string;
|
|
13322
13382
|
metadata: {
|
|
13323
13383
|
__typename?: 'GitHubRepositoryMetadata';
|
|
13384
|
+
id: string;
|
|
13324
13385
|
githubRepoOwnerName: string;
|
|
13325
13386
|
githubRepoName: string;
|
|
13326
13387
|
};
|
|
@@ -13435,6 +13496,7 @@ export type CommonIosAppCredentialsWithBuildCredentialsByAppIdentifierIdQuery =
|
|
|
13435
13496
|
id: string;
|
|
13436
13497
|
metadata: {
|
|
13437
13498
|
__typename?: 'GitHubRepositoryMetadata';
|
|
13499
|
+
id: string;
|
|
13438
13500
|
githubRepoOwnerName: string;
|
|
13439
13501
|
githubRepoName: string;
|
|
13440
13502
|
};
|
|
@@ -13520,6 +13582,7 @@ export type CommonIosAppCredentialsWithBuildCredentialsByAppIdentifierIdQuery =
|
|
|
13520
13582
|
id: string;
|
|
13521
13583
|
metadata: {
|
|
13522
13584
|
__typename?: 'GitHubRepositoryMetadata';
|
|
13585
|
+
id: string;
|
|
13523
13586
|
githubRepoOwnerName: string;
|
|
13524
13587
|
githubRepoName: string;
|
|
13525
13588
|
};
|
|
@@ -13592,6 +13655,7 @@ export type CommonIosAppCredentialsWithBuildCredentialsByAppIdentifierIdQuery =
|
|
|
13592
13655
|
id: string;
|
|
13593
13656
|
metadata: {
|
|
13594
13657
|
__typename?: 'GitHubRepositoryMetadata';
|
|
13658
|
+
id: string;
|
|
13595
13659
|
githubRepoOwnerName: string;
|
|
13596
13660
|
githubRepoName: string;
|
|
13597
13661
|
};
|
|
@@ -15272,6 +15336,7 @@ export type AppByIdQuery = {
|
|
|
15272
15336
|
id: string;
|
|
15273
15337
|
metadata: {
|
|
15274
15338
|
__typename?: 'GitHubRepositoryMetadata';
|
|
15339
|
+
id: string;
|
|
15275
15340
|
githubRepoOwnerName: string;
|
|
15276
15341
|
githubRepoName: string;
|
|
15277
15342
|
};
|
|
@@ -15328,6 +15393,7 @@ export type AppByFullNameQuery = {
|
|
|
15328
15393
|
id: string;
|
|
15329
15394
|
metadata: {
|
|
15330
15395
|
__typename?: 'GitHubRepositoryMetadata';
|
|
15396
|
+
id: string;
|
|
15331
15397
|
githubRepoOwnerName: string;
|
|
15332
15398
|
githubRepoName: string;
|
|
15333
15399
|
};
|
|
@@ -16657,10 +16723,24 @@ export type DeviceRunSessionByIdQuery = {
|
|
|
16657
16723
|
id: string;
|
|
16658
16724
|
status: DeviceRunSessionStatus;
|
|
16659
16725
|
type: DeviceRunSessionType;
|
|
16726
|
+
app: {
|
|
16727
|
+
__typename?: 'App';
|
|
16728
|
+
id: string;
|
|
16729
|
+
slug: string;
|
|
16730
|
+
ownerAccount: {
|
|
16731
|
+
__typename?: 'Account';
|
|
16732
|
+
id: string;
|
|
16733
|
+
name: string;
|
|
16734
|
+
};
|
|
16735
|
+
};
|
|
16660
16736
|
remoteConfig?: {
|
|
16661
16737
|
__typename: 'AgentDeviceRunSessionRemoteConfig';
|
|
16662
16738
|
url: string;
|
|
16663
16739
|
token: string;
|
|
16740
|
+
} | {
|
|
16741
|
+
__typename: 'ServeSimRunSessionRemoteConfig';
|
|
16742
|
+
previewUrl: string;
|
|
16743
|
+
streamUrl: string;
|
|
16664
16744
|
} | null;
|
|
16665
16745
|
turtleJobRun?: {
|
|
16666
16746
|
__typename?: 'JobRun';
|
|
@@ -18673,6 +18753,7 @@ export type AppFragment = {
|
|
|
18673
18753
|
id: string;
|
|
18674
18754
|
metadata: {
|
|
18675
18755
|
__typename?: 'GitHubRepositoryMetadata';
|
|
18756
|
+
id: string;
|
|
18676
18757
|
githubRepoOwnerName: string;
|
|
18677
18758
|
githubRepoName: string;
|
|
18678
18759
|
};
|
|
@@ -19734,6 +19815,7 @@ export type CommonAndroidAppCredentialsFragment = {
|
|
|
19734
19815
|
id: string;
|
|
19735
19816
|
metadata: {
|
|
19736
19817
|
__typename?: 'GitHubRepositoryMetadata';
|
|
19818
|
+
id: string;
|
|
19737
19819
|
githubRepoOwnerName: string;
|
|
19738
19820
|
githubRepoName: string;
|
|
19739
19821
|
};
|
|
@@ -19931,6 +20013,7 @@ export type AppleDistributionCertificateFragment = {
|
|
|
19931
20013
|
id: string;
|
|
19932
20014
|
metadata: {
|
|
19933
20015
|
__typename?: 'GitHubRepositoryMetadata';
|
|
20016
|
+
id: string;
|
|
19934
20017
|
githubRepoOwnerName: string;
|
|
19935
20018
|
githubRepoName: string;
|
|
19936
20019
|
};
|
|
@@ -20034,6 +20117,7 @@ export type ApplePushKeyFragment = {
|
|
|
20034
20117
|
id: string;
|
|
20035
20118
|
metadata: {
|
|
20036
20119
|
__typename?: 'GitHubRepositoryMetadata';
|
|
20120
|
+
id: string;
|
|
20037
20121
|
githubRepoOwnerName: string;
|
|
20038
20122
|
githubRepoName: string;
|
|
20039
20123
|
};
|
|
@@ -20130,6 +20214,7 @@ export type IosAppBuildCredentialsFragment = {
|
|
|
20130
20214
|
id: string;
|
|
20131
20215
|
metadata: {
|
|
20132
20216
|
__typename?: 'GitHubRepositoryMetadata';
|
|
20217
|
+
id: string;
|
|
20133
20218
|
githubRepoOwnerName: string;
|
|
20134
20219
|
githubRepoName: string;
|
|
20135
20220
|
};
|
|
@@ -20218,6 +20303,7 @@ export type CommonIosAppCredentialsWithoutBuildCredentialsFragment = {
|
|
|
20218
20303
|
id: string;
|
|
20219
20304
|
metadata: {
|
|
20220
20305
|
__typename?: 'GitHubRepositoryMetadata';
|
|
20306
|
+
id: string;
|
|
20221
20307
|
githubRepoOwnerName: string;
|
|
20222
20308
|
githubRepoName: string;
|
|
20223
20309
|
};
|
|
@@ -20290,6 +20376,7 @@ export type CommonIosAppCredentialsWithoutBuildCredentialsFragment = {
|
|
|
20290
20376
|
id: string;
|
|
20291
20377
|
metadata: {
|
|
20292
20378
|
__typename?: 'GitHubRepositoryMetadata';
|
|
20379
|
+
id: string;
|
|
20293
20380
|
githubRepoOwnerName: string;
|
|
20294
20381
|
githubRepoName: string;
|
|
20295
20382
|
};
|
|
@@ -20390,6 +20477,7 @@ export type CommonIosAppCredentialsFragment = {
|
|
|
20390
20477
|
id: string;
|
|
20391
20478
|
metadata: {
|
|
20392
20479
|
__typename?: 'GitHubRepositoryMetadata';
|
|
20480
|
+
id: string;
|
|
20393
20481
|
githubRepoOwnerName: string;
|
|
20394
20482
|
githubRepoName: string;
|
|
20395
20483
|
};
|
|
@@ -20475,6 +20563,7 @@ export type CommonIosAppCredentialsFragment = {
|
|
|
20475
20563
|
id: string;
|
|
20476
20564
|
metadata: {
|
|
20477
20565
|
__typename?: 'GitHubRepositoryMetadata';
|
|
20566
|
+
id: string;
|
|
20478
20567
|
githubRepoOwnerName: string;
|
|
20479
20568
|
githubRepoName: string;
|
|
20480
20569
|
};
|
|
@@ -20547,6 +20636,7 @@ export type CommonIosAppCredentialsFragment = {
|
|
|
20547
20636
|
id: string;
|
|
20548
20637
|
metadata: {
|
|
20549
20638
|
__typename?: 'GitHubRepositoryMetadata';
|
|
20639
|
+
id: string;
|
|
20550
20640
|
githubRepoOwnerName: string;
|
|
20551
20641
|
githubRepoName: string;
|
|
20552
20642
|
};
|
|
@@ -402,6 +402,7 @@ var DeviceRunSessionStatus;
|
|
|
402
402
|
var DeviceRunSessionType;
|
|
403
403
|
(function (DeviceRunSessionType) {
|
|
404
404
|
DeviceRunSessionType["AgentDevice"] = "AGENT_DEVICE";
|
|
405
|
+
DeviceRunSessionType["ServeSim"] = "SERVE_SIM";
|
|
405
406
|
})(DeviceRunSessionType || (exports.DeviceRunSessionType = DeviceRunSessionType = {}));
|
|
406
407
|
var DistributionType;
|
|
407
408
|
(function (DistributionType) {
|
|
@@ -14,12 +14,24 @@ exports.DeviceRunSessionQuery = {
|
|
|
14
14
|
id
|
|
15
15
|
status
|
|
16
16
|
type
|
|
17
|
+
app {
|
|
18
|
+
id
|
|
19
|
+
slug
|
|
20
|
+
ownerAccount {
|
|
21
|
+
id
|
|
22
|
+
name
|
|
23
|
+
}
|
|
24
|
+
}
|
|
17
25
|
remoteConfig {
|
|
18
26
|
__typename
|
|
19
27
|
... on AgentDeviceRunSessionRemoteConfig {
|
|
20
28
|
url
|
|
21
29
|
token
|
|
22
30
|
}
|
|
31
|
+
... on ServeSimRunSessionRemoteConfig {
|
|
32
|
+
previewUrl
|
|
33
|
+
streamUrl
|
|
34
|
+
}
|
|
23
35
|
}
|
|
24
36
|
turtleJobRun {
|
|
25
37
|
id
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DeviceRunSessionByIdQuery } from '../graphql/generated';
|
|
2
|
+
type DeviceRunSessionByIdResult = DeviceRunSessionByIdQuery['deviceRunSessions']['byId'];
|
|
3
|
+
export type DeviceRunSessionRemoteConfig = NonNullable<DeviceRunSessionByIdResult['remoteConfig']>;
|
|
4
|
+
export declare function formatRemoteSessionInstructions(remoteConfig: DeviceRunSessionRemoteConfig): string;
|
|
5
|
+
export {};
|