eas-cli 12.5.0 → 12.5.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 +72 -64
- package/build/build/build.js +4 -4
- package/build/build/evaluateConfigWithEnvVarsAsync.d.ts +1 -4
- package/build/build/evaluateConfigWithEnvVarsAsync.js +3 -6
- package/build/build/runBuildAndSubmit.d.ts +0 -2
- package/build/build/runBuildAndSubmit.js +0 -1
- package/build/commandUtils/flags.d.ts +9 -2
- package/build/commandUtils/flags.js +14 -21
- package/build/commands/build/index.d.ts +0 -2
- package/build/commands/build/index.js +0 -2
- package/build/commands/build/resign.d.ts +0 -1
- package/build/commands/build/resign.js +0 -2
- package/build/commands/build/version/get.d.ts +0 -1
- package/build/commands/build/version/get.js +0 -2
- package/build/commands/build/version/set.d.ts +0 -1
- package/build/commands/build/version/set.js +0 -3
- package/build/commands/build/version/sync.d.ts +0 -1
- package/build/commands/build/version/sync.js +0 -3
- package/build/commands/config.d.ts +0 -1
- package/build/commands/config.js +0 -2
- package/build/commands/env/create.d.ts +3 -1
- package/build/commands/env/create.js +106 -74
- package/build/commands/env/delete.d.ts +2 -2
- package/build/commands/env/delete.js +37 -26
- package/build/commands/env/exec.d.ts +23 -0
- package/build/commands/env/exec.js +125 -0
- package/build/commands/env/get.d.ts +2 -2
- package/build/commands/env/get.js +40 -26
- package/build/commands/env/link.d.ts +4 -2
- package/build/commands/env/link.js +53 -14
- package/build/commands/env/list.d.ts +1 -2
- package/build/commands/env/list.js +49 -42
- package/build/commands/env/pull.js +1 -1
- package/build/commands/env/unlink.d.ts +3 -2
- package/build/commands/env/unlink.js +48 -21
- package/build/commands/env/update.d.ts +4 -2
- package/build/commands/env/update.js +68 -66
- package/build/commands/update/index.js +0 -1
- package/build/commands/update/republish.d.ts +2 -0
- package/build/commands/update/republish.js +34 -4
- package/build/commands/worker/deploy.js +44 -21
- package/build/credentials/manager/Actions.d.ts +4 -2
- package/build/credentials/manager/Actions.js +2 -0
- package/build/credentials/manager/AndroidActions.js +5 -0
- package/build/credentials/manager/IosActions.js +5 -0
- package/build/credentials/manager/ManageAndroid.js +3 -0
- package/build/credentials/manager/ManageIos.js +3 -0
- package/build/graphql/generated.d.ts +103 -22
- package/build/graphql/mutations/EnvironmentVariableMutation.d.ts +13 -22
- package/build/graphql/mutations/EnvironmentVariableMutation.js +18 -2
- package/build/graphql/queries/EnvironmentVariablesQuery.d.ts +13 -7
- package/build/graphql/queries/EnvironmentVariablesQuery.js +21 -9
- package/build/graphql/types/EnvironmentVariable.js +2 -1
- package/build/graphql/types/Submission.js +1 -1
- package/build/project/publish.js +3 -2
- package/build/submit/utils/logs.js +16 -17
- package/build/update/getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync.d.ts +5 -0
- package/build/update/{getBranchNameFromChannelNameAsync.js → getBranchFromChannelNameAndCreateAndLinkIfNotExistsAsync.js} +8 -7
- package/build/update/republish.js +3 -2
- package/build/utils/prompts.d.ts +15 -3
- package/build/utils/prompts.js +33 -8
- package/build/utils/variableUtils.d.ts +4 -0
- package/build/utils/variableUtils.js +31 -0
- package/build/worker/assets.d.ts +7 -2
- package/build/worker/assets.js +5 -4
- package/build/worker/deployment.d.ts +10 -0
- package/build/worker/deployment.js +33 -22
- package/build/worker/upload.d.ts +1 -0
- package/build/worker/upload.js +29 -7
- package/build/worker/utils/logs.d.ts +14 -13
- package/build/worker/utils/logs.js +18 -18
- package/oclif.manifest.json +118 -108
- package/package.json +3 -3
- package/build/update/getBranchNameFromChannelNameAsync.d.ts +0 -2
- package/build/utils/formatVariable.d.ts +0 -2
- package/build/utils/formatVariable.js +0 -16
|
@@ -43,6 +43,19 @@ class WorkerDeploy extends EasCommand_1.default {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
+
async function finalizeDeployAsync(deployParams) {
|
|
47
|
+
const finalizeDeployUrl = new URL('/deploy/finalize', deployParams.baseURL);
|
|
48
|
+
finalizeDeployUrl.searchParams.set('token', deployParams.token);
|
|
49
|
+
const result = await (0, upload_1.callUploadApiAsync)(finalizeDeployUrl, {
|
|
50
|
+
method: 'POST',
|
|
51
|
+
headers: {
|
|
52
|
+
accept: 'application/json',
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
if (!result || typeof result !== 'object' || !('success' in result) || !result.success) {
|
|
56
|
+
throw new Error('Deploy failed: Incomplete asset uploads. Please try again');
|
|
57
|
+
}
|
|
58
|
+
}
|
|
46
59
|
async function uploadTarballAsync(tarPath, uploadUrl) {
|
|
47
60
|
const { response } = await (0, upload_1.uploadAsync)({
|
|
48
61
|
url: uploadUrl,
|
|
@@ -64,21 +77,30 @@ class WorkerDeploy extends EasCommand_1.default {
|
|
|
64
77
|
if (!json.success || !json.result || typeof json.result !== 'object') {
|
|
65
78
|
throw new Error(json.message ? `Upload failed: ${json.message}` : 'Upload failed!');
|
|
66
79
|
}
|
|
67
|
-
|
|
80
|
+
const { id, fullName, token } = json.result;
|
|
81
|
+
if (typeof token !== 'string') {
|
|
82
|
+
throw new Error('Upload failed: API failed to return a deployment token');
|
|
83
|
+
}
|
|
84
|
+
else if (typeof id !== 'string') {
|
|
85
|
+
throw new Error('Upload failed: API failed to return a deployment identifier');
|
|
86
|
+
}
|
|
87
|
+
else if (typeof fullName !== 'string') {
|
|
88
|
+
throw new Error('Upload failed: API failed to return a script name');
|
|
89
|
+
}
|
|
90
|
+
const baseURL = new URL('/', uploadUrl).toString();
|
|
91
|
+
return { id, fullName, baseURL, token };
|
|
68
92
|
}
|
|
69
93
|
}
|
|
70
|
-
async function uploadAssetsAsync(assetMap,
|
|
71
|
-
if (typeof uploads !== 'object' || !uploads) {
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
// TODO(@kitten): Batch and upload multiple files in parallel
|
|
94
|
+
async function uploadAssetsAsync(assetMap, deployParams) {
|
|
75
95
|
const uploadParams = [];
|
|
76
96
|
const assetPath = projectDist.type === 'server' ? projectDist.clientPath : projectDist.path;
|
|
97
|
+
if (!assetPath) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
77
100
|
for await (const asset of WorkerAssets.listAssetMapFilesAsync(assetPath, assetMap)) {
|
|
78
|
-
const uploadURL =
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
101
|
+
const uploadURL = new URL(`/asset/${asset.sha512}`, deployParams.baseURL);
|
|
102
|
+
uploadURL.searchParams.set('token', deployParams.token);
|
|
103
|
+
uploadParams.push({ url: uploadURL.toString(), filePath: asset.path });
|
|
82
104
|
}
|
|
83
105
|
const progress = {
|
|
84
106
|
total: uploadParams.length,
|
|
@@ -144,7 +166,8 @@ class WorkerDeploy extends EasCommand_1.default {
|
|
|
144
166
|
progress.fail('Failed to create deployment');
|
|
145
167
|
throw error;
|
|
146
168
|
}
|
|
147
|
-
await uploadAssetsAsync(assetMap, deployResult
|
|
169
|
+
await uploadAssetsAsync(assetMap, deployResult);
|
|
170
|
+
await finalizeDeployAsync(deployResult);
|
|
148
171
|
let deploymentAlias = null;
|
|
149
172
|
if (flags.aliasName) {
|
|
150
173
|
progress = (0, ora_1.ora)((0, chalk_1.default) `Assigning alias {bold ${flags.aliasName}} to deployment`).start();
|
|
@@ -195,7 +218,7 @@ class WorkerDeploy extends EasCommand_1.default {
|
|
|
195
218
|
deploymentIdentifier: deployResult.id,
|
|
196
219
|
url: (0, logs_1.getDeploymentUrlFromFullName)(deployResult.fullName),
|
|
197
220
|
},
|
|
198
|
-
aliases: [deploymentAlias]
|
|
221
|
+
aliases: [deploymentAlias],
|
|
199
222
|
production: deploymentProdAlias,
|
|
200
223
|
}));
|
|
201
224
|
return;
|
|
@@ -209,7 +232,7 @@ class WorkerDeploy extends EasCommand_1.default {
|
|
|
209
232
|
deploymentIdentifier: deployResult.id,
|
|
210
233
|
url: (0, logs_1.getDeploymentUrlFromFullName)(deployResult.fullName),
|
|
211
234
|
},
|
|
212
|
-
aliases: [deploymentAlias]
|
|
235
|
+
aliases: [deploymentAlias],
|
|
213
236
|
production: deploymentProdAlias,
|
|
214
237
|
}));
|
|
215
238
|
if (!deploymentProdAlias) {
|
|
@@ -271,24 +294,24 @@ async function resolveExportedProjectAsync(flags, projectDir) {
|
|
|
271
294
|
const exportPath = path.join(projectDir, flags.exportDir);
|
|
272
295
|
const serverPath = path.join(exportPath, 'server');
|
|
273
296
|
const clientPath = path.join(exportPath, 'client');
|
|
274
|
-
const [
|
|
275
|
-
isDirectory(serverPath),
|
|
276
|
-
isDirectory(clientPath),
|
|
297
|
+
const [exportDirStat, expoRoutesStat, hasClientDir] = await Promise.all([
|
|
277
298
|
node_fs_1.default.promises.stat(exportPath).catch(() => null),
|
|
299
|
+
node_fs_1.default.promises.stat(path.join(serverPath, '_expo/routes.json')).catch(() => null),
|
|
300
|
+
isDirectory(clientPath),
|
|
278
301
|
]);
|
|
279
|
-
if (!
|
|
302
|
+
if (!exportDirStat?.isDirectory()) {
|
|
280
303
|
throw new Error(`No "${flags.exportDir}/" folder found. Prepare your project for deployment with "npx expo export --platform web"`);
|
|
281
304
|
}
|
|
282
|
-
if (
|
|
305
|
+
if (expoRoutesStat?.isFile()) {
|
|
283
306
|
return {
|
|
284
307
|
type: 'server',
|
|
285
308
|
path: exportPath,
|
|
286
|
-
modifiedAt:
|
|
309
|
+
modifiedAt: exportDirStat.mtime,
|
|
287
310
|
serverPath,
|
|
288
|
-
clientPath,
|
|
311
|
+
clientPath: hasClientDir ? clientPath : undefined,
|
|
289
312
|
};
|
|
290
313
|
}
|
|
291
|
-
return { type: 'static', path: exportPath, modifiedAt:
|
|
314
|
+
return { type: 'static', path: exportPath, modifiedAt: exportDirStat.mtime };
|
|
292
315
|
}
|
|
293
316
|
function logExportedProjectInfo(project) {
|
|
294
317
|
let modifiedAgo = '';
|
|
@@ -33,7 +33,8 @@ export declare enum AndroidActionType {
|
|
|
33
33
|
SetUpGsaKeyForFcmV1 = 21,
|
|
34
34
|
UpdateCredentialsJson = 22,
|
|
35
35
|
SetUpBuildCredentialsFromCredentialsJson = 23,
|
|
36
|
-
SetUpBuildCredentials = 24
|
|
36
|
+
SetUpBuildCredentials = 24,
|
|
37
|
+
Exit = 25
|
|
37
38
|
}
|
|
38
39
|
export declare enum IosActionType {
|
|
39
40
|
ManageCredentialsJson = 0,
|
|
@@ -56,5 +57,6 @@ export declare enum IosActionType {
|
|
|
56
57
|
SetUpAscApiKeyForSubmissions = 17,
|
|
57
58
|
UseExistingAscApiKeyForSubmissions = 18,
|
|
58
59
|
CreateAscApiKeyForSubmissions = 19,
|
|
59
|
-
RemoveAscApiKey = 20
|
|
60
|
+
RemoveAscApiKey = 20,
|
|
61
|
+
Exit = 21
|
|
60
62
|
}
|
|
@@ -34,6 +34,7 @@ var AndroidActionType;
|
|
|
34
34
|
AndroidActionType[AndroidActionType["UpdateCredentialsJson"] = 22] = "UpdateCredentialsJson";
|
|
35
35
|
AndroidActionType[AndroidActionType["SetUpBuildCredentialsFromCredentialsJson"] = 23] = "SetUpBuildCredentialsFromCredentialsJson";
|
|
36
36
|
AndroidActionType[AndroidActionType["SetUpBuildCredentials"] = 24] = "SetUpBuildCredentials";
|
|
37
|
+
AndroidActionType[AndroidActionType["Exit"] = 25] = "Exit";
|
|
37
38
|
})(AndroidActionType || (exports.AndroidActionType = AndroidActionType = {}));
|
|
38
39
|
var IosActionType;
|
|
39
40
|
(function (IosActionType) {
|
|
@@ -58,4 +59,5 @@ var IosActionType;
|
|
|
58
59
|
IosActionType[IosActionType["UseExistingAscApiKeyForSubmissions"] = 18] = "UseExistingAscApiKeyForSubmissions";
|
|
59
60
|
IosActionType[IosActionType["CreateAscApiKeyForSubmissions"] = 19] = "CreateAscApiKeyForSubmissions";
|
|
60
61
|
IosActionType[IosActionType["RemoveAscApiKey"] = 20] = "RemoveAscApiKey";
|
|
62
|
+
IosActionType[IosActionType["Exit"] = 21] = "Exit";
|
|
61
63
|
})(IosActionType || (exports.IosActionType = IosActionType = {}));
|
|
@@ -128,6 +128,9 @@ class ManageAndroid {
|
|
|
128
128
|
await this.callingAction.runAsync(ctx);
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
|
+
else if (chosenAction === Actions_1.AndroidActionType.Exit) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
131
134
|
}
|
|
132
135
|
await this.runProjectSpecificActionAsync(ctx, chosenAction, gradleContext);
|
|
133
136
|
}
|
|
@@ -133,6 +133,9 @@ class ManageIos {
|
|
|
133
133
|
await this.callingAction.runAsync(ctx);
|
|
134
134
|
return;
|
|
135
135
|
}
|
|
136
|
+
else if (chosenAction === Actions_1.IosActionType.Exit) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
136
139
|
}
|
|
137
140
|
else if (actionInfo.scope === Actions_1.Scope.Project) {
|
|
138
141
|
(0, assert_1.default)(ctx.hasProjectContext, 'You must be in your project directory in order to perform this action');
|
|
@@ -371,6 +371,7 @@ export type AccountEnvironmentSecretsArgs = {
|
|
|
371
371
|
* data and settings. Actors may own and be members of accounts.
|
|
372
372
|
*/
|
|
373
373
|
export type AccountEnvironmentVariablesArgs = {
|
|
374
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
374
375
|
filterNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
375
376
|
};
|
|
376
377
|
/**
|
|
@@ -378,6 +379,7 @@ export type AccountEnvironmentVariablesArgs = {
|
|
|
378
379
|
* data and settings. Actors may own and be members of accounts.
|
|
379
380
|
*/
|
|
380
381
|
export type AccountEnvironmentVariablesIncludingSensitiveArgs = {
|
|
382
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
381
383
|
filterNames?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
382
384
|
};
|
|
383
385
|
/**
|
|
@@ -2799,9 +2801,11 @@ export type CreateEnvironmentSecretInput = {
|
|
|
2799
2801
|
value: Scalars['String']['input'];
|
|
2800
2802
|
};
|
|
2801
2803
|
export type CreateEnvironmentVariableInput = {
|
|
2802
|
-
environment
|
|
2804
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
2805
|
+
environments?: InputMaybe<Array<EnvironmentVariableEnvironment>>;
|
|
2803
2806
|
name: Scalars['String']['input'];
|
|
2804
2807
|
overwrite?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2808
|
+
type?: InputMaybe<EnvironmentSecretType>;
|
|
2805
2809
|
value: Scalars['String']['input'];
|
|
2806
2810
|
visibility: EnvironmentVariableVisibility;
|
|
2807
2811
|
};
|
|
@@ -2856,8 +2860,10 @@ export type CreateServerlessFunctionUploadUrlResult = {
|
|
|
2856
2860
|
url: Scalars['String']['output'];
|
|
2857
2861
|
};
|
|
2858
2862
|
export type CreateSharedEnvironmentVariableInput = {
|
|
2863
|
+
environments?: InputMaybe<Array<EnvironmentVariableEnvironment>>;
|
|
2859
2864
|
name: Scalars['String']['input'];
|
|
2860
2865
|
overwrite?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2866
|
+
type?: InputMaybe<EnvironmentSecretType>;
|
|
2861
2867
|
value: Scalars['String']['input'];
|
|
2862
2868
|
visibility: EnvironmentVariableVisibility;
|
|
2863
2869
|
};
|
|
@@ -3030,6 +3036,11 @@ export type DeleteWebhookResult = {
|
|
|
3030
3036
|
__typename?: 'DeleteWebhookResult';
|
|
3031
3037
|
id: Scalars['ID']['output'];
|
|
3032
3038
|
};
|
|
3039
|
+
export type DeleteWorkerDeploymentResult = {
|
|
3040
|
+
__typename?: 'DeleteWorkerDeploymentResult';
|
|
3041
|
+
deploymentIdentifier: Scalars['WorkerDeploymentIdentifier']['output'];
|
|
3042
|
+
id: Scalars['ID']['output'];
|
|
3043
|
+
};
|
|
3033
3044
|
export type DeployServerlessFunctionResult = {
|
|
3034
3045
|
__typename?: 'DeployServerlessFunctionResult';
|
|
3035
3046
|
url: Scalars['String']['output'];
|
|
@@ -3145,6 +3156,7 @@ export type DeploymentsMutation = {
|
|
|
3145
3156
|
/** Create a signed deployment URL */
|
|
3146
3157
|
createSignedDeploymentUrl: DeploymentSignedUrlResult;
|
|
3147
3158
|
deleteAlias: DeleteAliasResult;
|
|
3159
|
+
deleteWorkerDeployment: DeleteWorkerDeploymentResult;
|
|
3148
3160
|
};
|
|
3149
3161
|
export type DeploymentsMutationAssignAliasArgs = {
|
|
3150
3162
|
aliasName?: InputMaybe<Scalars['WorkerDeploymentIdentifier']['input']>;
|
|
@@ -3159,6 +3171,9 @@ export type DeploymentsMutationDeleteAliasArgs = {
|
|
|
3159
3171
|
aliasName?: InputMaybe<Scalars['WorkerDeploymentIdentifier']['input']>;
|
|
3160
3172
|
appId: Scalars['ID']['input'];
|
|
3161
3173
|
};
|
|
3174
|
+
export type DeploymentsMutationDeleteWorkerDeploymentArgs = {
|
|
3175
|
+
workerDeploymentId: Scalars['ID']['input'];
|
|
3176
|
+
};
|
|
3162
3177
|
export type DiscordUser = {
|
|
3163
3178
|
__typename?: 'DiscordUser';
|
|
3164
3179
|
discordIdentifier: Scalars['String']['output'];
|
|
@@ -3298,13 +3313,23 @@ export type EnvironmentVariable = {
|
|
|
3298
3313
|
apps: Array<App>;
|
|
3299
3314
|
createdAt: Scalars['DateTime']['output'];
|
|
3300
3315
|
environment?: Maybe<EnvironmentVariableEnvironment>;
|
|
3316
|
+
environments?: Maybe<Array<EnvironmentVariableEnvironment>>;
|
|
3301
3317
|
id: Scalars['ID']['output'];
|
|
3318
|
+
linkedEnvironments?: Maybe<Array<EnvironmentVariableEnvironment>>;
|
|
3302
3319
|
name: Scalars['String']['output'];
|
|
3303
3320
|
scope: EnvironmentVariableScope;
|
|
3321
|
+
type: EnvironmentSecretType;
|
|
3304
3322
|
updatedAt: Scalars['DateTime']['output'];
|
|
3305
3323
|
value?: Maybe<Scalars['String']['output']>;
|
|
3306
3324
|
visibility?: Maybe<EnvironmentVariableVisibility>;
|
|
3307
3325
|
};
|
|
3326
|
+
export type EnvironmentVariableLinkedEnvironmentsArgs = {
|
|
3327
|
+
appFullName?: InputMaybe<Scalars['String']['input']>;
|
|
3328
|
+
appId?: InputMaybe<Scalars['String']['input']>;
|
|
3329
|
+
};
|
|
3330
|
+
export type EnvironmentVariableValueArgs = {
|
|
3331
|
+
includeFileContent?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3332
|
+
};
|
|
3308
3333
|
export declare enum EnvironmentVariableEnvironment {
|
|
3309
3334
|
Development = "DEVELOPMENT",
|
|
3310
3335
|
Preview = "PREVIEW",
|
|
@@ -3328,6 +3353,8 @@ export type EnvironmentVariableMutation = {
|
|
|
3328
3353
|
linkSharedEnvironmentVariable: EnvironmentVariable;
|
|
3329
3354
|
/** Unlink shared environment variable */
|
|
3330
3355
|
unlinkSharedEnvironmentVariable: EnvironmentVariable;
|
|
3356
|
+
/** Update an environment variable */
|
|
3357
|
+
updateEnvironmentVariable: EnvironmentVariable;
|
|
3331
3358
|
};
|
|
3332
3359
|
export type EnvironmentVariableMutationCreateBulkEnvironmentVariablesForAccountArgs = {
|
|
3333
3360
|
accountId: Scalars['ID']['input'];
|
|
@@ -3353,14 +3380,17 @@ export type EnvironmentVariableMutationLinkBulkSharedEnvironmentVariablesArgs =
|
|
|
3353
3380
|
};
|
|
3354
3381
|
export type EnvironmentVariableMutationLinkSharedEnvironmentVariableArgs = {
|
|
3355
3382
|
appId: Scalars['ID']['input'];
|
|
3356
|
-
environment
|
|
3383
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
3357
3384
|
environmentVariableId: Scalars['ID']['input'];
|
|
3358
3385
|
};
|
|
3359
3386
|
export type EnvironmentVariableMutationUnlinkSharedEnvironmentVariableArgs = {
|
|
3360
3387
|
appId: Scalars['ID']['input'];
|
|
3361
|
-
environment
|
|
3388
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
3362
3389
|
environmentVariableId: Scalars['ID']['input'];
|
|
3363
3390
|
};
|
|
3391
|
+
export type EnvironmentVariableMutationUpdateEnvironmentVariableArgs = {
|
|
3392
|
+
environmentVariableData: UpdateEnvironmentVariableInput;
|
|
3393
|
+
};
|
|
3364
3394
|
export declare enum EnvironmentVariableScope {
|
|
3365
3395
|
Project = "PROJECT",
|
|
3366
3396
|
Shared = "SHARED"
|
|
@@ -3375,14 +3405,24 @@ export type EnvironmentVariableWithSecret = {
|
|
|
3375
3405
|
apps: Array<App>;
|
|
3376
3406
|
createdAt: Scalars['DateTime']['output'];
|
|
3377
3407
|
environment?: Maybe<EnvironmentVariableEnvironment>;
|
|
3408
|
+
environments?: Maybe<Array<EnvironmentVariableEnvironment>>;
|
|
3378
3409
|
id: Scalars['ID']['output'];
|
|
3410
|
+
linkedEnvironments?: Maybe<Array<EnvironmentVariableEnvironment>>;
|
|
3379
3411
|
name: Scalars['String']['output'];
|
|
3380
3412
|
scope: EnvironmentVariableScope;
|
|
3381
3413
|
sensitive: Scalars['Boolean']['output'];
|
|
3414
|
+
type: EnvironmentSecretType;
|
|
3382
3415
|
updatedAt: Scalars['DateTime']['output'];
|
|
3383
3416
|
value?: Maybe<Scalars['String']['output']>;
|
|
3384
3417
|
visibility: EnvironmentVariableVisibility;
|
|
3385
3418
|
};
|
|
3419
|
+
export type EnvironmentVariableWithSecretLinkedEnvironmentsArgs = {
|
|
3420
|
+
appFullName?: InputMaybe<Scalars['String']['input']>;
|
|
3421
|
+
appId?: InputMaybe<Scalars['String']['input']>;
|
|
3422
|
+
};
|
|
3423
|
+
export type EnvironmentVariableWithSecretValueArgs = {
|
|
3424
|
+
includeFileContent?: InputMaybe<Scalars['Boolean']['input']>;
|
|
3425
|
+
};
|
|
3386
3426
|
export type EstimatedOverageAndCost = {
|
|
3387
3427
|
__typename?: 'EstimatedOverageAndCost';
|
|
3388
3428
|
id: Scalars['ID']['output'];
|
|
@@ -4183,7 +4223,7 @@ export type LineDataset = {
|
|
|
4183
4223
|
};
|
|
4184
4224
|
export type LinkSharedEnvironmentVariableInput = {
|
|
4185
4225
|
appId: Scalars['ID']['input'];
|
|
4186
|
-
environment
|
|
4226
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
4187
4227
|
environmentVariableId: Scalars['ID']['input'];
|
|
4188
4228
|
};
|
|
4189
4229
|
export type LogsTimespan = {
|
|
@@ -5552,6 +5592,14 @@ export type UpdateDeploymentsConnection = {
|
|
|
5552
5592
|
edges: Array<UpdateDeploymentEdge>;
|
|
5553
5593
|
pageInfo: PageInfo;
|
|
5554
5594
|
};
|
|
5595
|
+
export type UpdateEnvironmentVariableInput = {
|
|
5596
|
+
environments?: InputMaybe<Array<EnvironmentVariableEnvironment>>;
|
|
5597
|
+
id: Scalars['ID']['input'];
|
|
5598
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
5599
|
+
type?: InputMaybe<EnvironmentSecretType>;
|
|
5600
|
+
value?: InputMaybe<Scalars['String']['input']>;
|
|
5601
|
+
visibility?: InputMaybe<EnvironmentVariableVisibility>;
|
|
5602
|
+
};
|
|
5555
5603
|
export type UpdateGitHubBuildTriggerInput = {
|
|
5556
5604
|
autoSubmit: Scalars['Boolean']['input'];
|
|
5557
5605
|
buildProfile: Scalars['String']['input'];
|
|
@@ -10757,7 +10805,7 @@ export type DeleteEnvironmentSecretMutation = {
|
|
|
10757
10805
|
};
|
|
10758
10806
|
export type LinkSharedEnvironmentVariableMutationVariables = Exact<{
|
|
10759
10807
|
appId: Scalars['ID']['input'];
|
|
10760
|
-
environment
|
|
10808
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
10761
10809
|
environmentVariableId: Scalars['ID']['input'];
|
|
10762
10810
|
}>;
|
|
10763
10811
|
export type LinkSharedEnvironmentVariableMutation = {
|
|
@@ -10769,8 +10817,9 @@ export type LinkSharedEnvironmentVariableMutation = {
|
|
|
10769
10817
|
id: string;
|
|
10770
10818
|
name: string;
|
|
10771
10819
|
value?: string | null;
|
|
10772
|
-
|
|
10820
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
10773
10821
|
createdAt: any;
|
|
10822
|
+
updatedAt: any;
|
|
10774
10823
|
scope: EnvironmentVariableScope;
|
|
10775
10824
|
visibility?: EnvironmentVariableVisibility | null;
|
|
10776
10825
|
};
|
|
@@ -10778,7 +10827,7 @@ export type LinkSharedEnvironmentVariableMutation = {
|
|
|
10778
10827
|
};
|
|
10779
10828
|
export type UnlinkSharedEnvironmentVariableMutationVariables = Exact<{
|
|
10780
10829
|
appId: Scalars['ID']['input'];
|
|
10781
|
-
environment
|
|
10830
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
10782
10831
|
environmentVariableId: Scalars['ID']['input'];
|
|
10783
10832
|
}>;
|
|
10784
10833
|
export type UnlinkSharedEnvironmentVariableMutation = {
|
|
@@ -10790,8 +10839,9 @@ export type UnlinkSharedEnvironmentVariableMutation = {
|
|
|
10790
10839
|
id: string;
|
|
10791
10840
|
name: string;
|
|
10792
10841
|
value?: string | null;
|
|
10793
|
-
|
|
10842
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
10794
10843
|
createdAt: any;
|
|
10844
|
+
updatedAt: any;
|
|
10795
10845
|
scope: EnvironmentVariableScope;
|
|
10796
10846
|
visibility?: EnvironmentVariableVisibility | null;
|
|
10797
10847
|
};
|
|
@@ -10810,8 +10860,9 @@ export type CreateEnvironmentVariableForAccountMutation = {
|
|
|
10810
10860
|
id: string;
|
|
10811
10861
|
name: string;
|
|
10812
10862
|
value?: string | null;
|
|
10813
|
-
|
|
10863
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
10814
10864
|
createdAt: any;
|
|
10865
|
+
updatedAt: any;
|
|
10815
10866
|
scope: EnvironmentVariableScope;
|
|
10816
10867
|
visibility?: EnvironmentVariableVisibility | null;
|
|
10817
10868
|
};
|
|
@@ -10830,8 +10881,29 @@ export type CreateEnvironmentVariableForAppMutation = {
|
|
|
10830
10881
|
id: string;
|
|
10831
10882
|
name: string;
|
|
10832
10883
|
value?: string | null;
|
|
10833
|
-
|
|
10884
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
10834
10885
|
createdAt: any;
|
|
10886
|
+
updatedAt: any;
|
|
10887
|
+
scope: EnvironmentVariableScope;
|
|
10888
|
+
visibility?: EnvironmentVariableVisibility | null;
|
|
10889
|
+
};
|
|
10890
|
+
};
|
|
10891
|
+
};
|
|
10892
|
+
export type UpdateEnvironmentVariableMutationVariables = Exact<{
|
|
10893
|
+
input: UpdateEnvironmentVariableInput;
|
|
10894
|
+
}>;
|
|
10895
|
+
export type UpdateEnvironmentVariableMutation = {
|
|
10896
|
+
__typename?: 'RootMutation';
|
|
10897
|
+
environmentVariable: {
|
|
10898
|
+
__typename?: 'EnvironmentVariableMutation';
|
|
10899
|
+
updateEnvironmentVariable: {
|
|
10900
|
+
__typename?: 'EnvironmentVariable';
|
|
10901
|
+
id: string;
|
|
10902
|
+
name: string;
|
|
10903
|
+
value?: string | null;
|
|
10904
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
10905
|
+
createdAt: any;
|
|
10906
|
+
updatedAt: any;
|
|
10835
10907
|
scope: EnvironmentVariableScope;
|
|
10836
10908
|
visibility?: EnvironmentVariableVisibility | null;
|
|
10837
10909
|
};
|
|
@@ -11033,7 +11105,7 @@ export type CreateAndroidSubmissionMutation = {
|
|
|
11033
11105
|
id: string;
|
|
11034
11106
|
status: SubmissionStatus;
|
|
11035
11107
|
platform: AppPlatform;
|
|
11036
|
-
|
|
11108
|
+
logFiles: Array<string>;
|
|
11037
11109
|
app: {
|
|
11038
11110
|
__typename?: 'App';
|
|
11039
11111
|
id: string;
|
|
@@ -11083,7 +11155,7 @@ export type CreateIosSubmissionMutation = {
|
|
|
11083
11155
|
id: string;
|
|
11084
11156
|
status: SubmissionStatus;
|
|
11085
11157
|
platform: AppPlatform;
|
|
11086
|
-
|
|
11158
|
+
logFiles: Array<string>;
|
|
11087
11159
|
app: {
|
|
11088
11160
|
__typename?: 'App';
|
|
11089
11161
|
id: string;
|
|
@@ -11657,7 +11729,7 @@ export type BuildsWithSubmissionsByIdQuery = {
|
|
|
11657
11729
|
id: string;
|
|
11658
11730
|
status: SubmissionStatus;
|
|
11659
11731
|
platform: AppPlatform;
|
|
11660
|
-
|
|
11732
|
+
logFiles: Array<string>;
|
|
11661
11733
|
app: {
|
|
11662
11734
|
__typename?: 'App';
|
|
11663
11735
|
id: string;
|
|
@@ -12027,7 +12099,7 @@ export type EnvironmentSecretsByAppIdQuery = {
|
|
|
12027
12099
|
export type EnvironmentVariablesIncludingSensitiveByAppIdQueryVariables = Exact<{
|
|
12028
12100
|
appId: Scalars['String']['input'];
|
|
12029
12101
|
filterNames?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
|
|
12030
|
-
environment
|
|
12102
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
12031
12103
|
}>;
|
|
12032
12104
|
export type EnvironmentVariablesIncludingSensitiveByAppIdQuery = {
|
|
12033
12105
|
__typename?: 'RootQuery';
|
|
@@ -12041,6 +12113,7 @@ export type EnvironmentVariablesIncludingSensitiveByAppIdQuery = {
|
|
|
12041
12113
|
id: string;
|
|
12042
12114
|
name: string;
|
|
12043
12115
|
value?: string | null;
|
|
12116
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
12044
12117
|
}>;
|
|
12045
12118
|
};
|
|
12046
12119
|
};
|
|
@@ -12048,7 +12121,7 @@ export type EnvironmentVariablesIncludingSensitiveByAppIdQuery = {
|
|
|
12048
12121
|
export type EnvironmentVariablesByAppIdQueryVariables = Exact<{
|
|
12049
12122
|
appId: Scalars['String']['input'];
|
|
12050
12123
|
filterNames?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
|
|
12051
|
-
environment
|
|
12124
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
12052
12125
|
}>;
|
|
12053
12126
|
export type EnvironmentVariablesByAppIdQuery = {
|
|
12054
12127
|
__typename?: 'RootQuery';
|
|
@@ -12060,10 +12133,12 @@ export type EnvironmentVariablesByAppIdQuery = {
|
|
|
12060
12133
|
environmentVariables: Array<{
|
|
12061
12134
|
__typename?: 'EnvironmentVariable';
|
|
12062
12135
|
id: string;
|
|
12136
|
+
linkedEnvironments?: Array<EnvironmentVariableEnvironment> | null;
|
|
12063
12137
|
name: string;
|
|
12064
12138
|
value?: string | null;
|
|
12065
|
-
|
|
12139
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
12066
12140
|
createdAt: any;
|
|
12141
|
+
updatedAt: any;
|
|
12067
12142
|
scope: EnvironmentVariableScope;
|
|
12068
12143
|
visibility?: EnvironmentVariableVisibility | null;
|
|
12069
12144
|
}>;
|
|
@@ -12073,6 +12148,7 @@ export type EnvironmentVariablesByAppIdQuery = {
|
|
|
12073
12148
|
export type EnvironmentVariablesSharedQueryVariables = Exact<{
|
|
12074
12149
|
appId: Scalars['String']['input'];
|
|
12075
12150
|
filterNames?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
|
|
12151
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
12076
12152
|
}>;
|
|
12077
12153
|
export type EnvironmentVariablesSharedQuery = {
|
|
12078
12154
|
__typename?: 'RootQuery';
|
|
@@ -12087,10 +12163,12 @@ export type EnvironmentVariablesSharedQuery = {
|
|
|
12087
12163
|
environmentVariables: Array<{
|
|
12088
12164
|
__typename?: 'EnvironmentVariable';
|
|
12089
12165
|
id: string;
|
|
12166
|
+
linkedEnvironments?: Array<EnvironmentVariableEnvironment> | null;
|
|
12090
12167
|
name: string;
|
|
12091
12168
|
value?: string | null;
|
|
12092
|
-
|
|
12169
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
12093
12170
|
createdAt: any;
|
|
12171
|
+
updatedAt: any;
|
|
12094
12172
|
scope: EnvironmentVariableScope;
|
|
12095
12173
|
visibility?: EnvironmentVariableVisibility | null;
|
|
12096
12174
|
}>;
|
|
@@ -12101,6 +12179,7 @@ export type EnvironmentVariablesSharedQuery = {
|
|
|
12101
12179
|
export type EnvironmentVariablesSharedWithSensitiveQueryVariables = Exact<{
|
|
12102
12180
|
appId: Scalars['String']['input'];
|
|
12103
12181
|
filterNames?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
|
|
12182
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
12104
12183
|
}>;
|
|
12105
12184
|
export type EnvironmentVariablesSharedWithSensitiveQuery = {
|
|
12106
12185
|
__typename?: 'RootQuery';
|
|
@@ -12117,6 +12196,7 @@ export type EnvironmentVariablesSharedWithSensitiveQuery = {
|
|
|
12117
12196
|
id: string;
|
|
12118
12197
|
name: string;
|
|
12119
12198
|
value?: string | null;
|
|
12199
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
12120
12200
|
}>;
|
|
12121
12201
|
};
|
|
12122
12202
|
};
|
|
@@ -12241,7 +12321,7 @@ export type SubmissionsByIdQuery = {
|
|
|
12241
12321
|
id: string;
|
|
12242
12322
|
status: SubmissionStatus;
|
|
12243
12323
|
platform: AppPlatform;
|
|
12244
|
-
|
|
12324
|
+
logFiles: Array<string>;
|
|
12245
12325
|
app: {
|
|
12246
12326
|
__typename?: 'App';
|
|
12247
12327
|
id: string;
|
|
@@ -12292,7 +12372,7 @@ export type GetAllSubmissionsForAppQuery = {
|
|
|
12292
12372
|
id: string;
|
|
12293
12373
|
status: SubmissionStatus;
|
|
12294
12374
|
platform: AppPlatform;
|
|
12295
|
-
|
|
12375
|
+
logFiles: Array<string>;
|
|
12296
12376
|
app: {
|
|
12297
12377
|
__typename?: 'App';
|
|
12298
12378
|
id: string;
|
|
@@ -12892,7 +12972,7 @@ export type BuildWithSubmissionsFragment = {
|
|
|
12892
12972
|
id: string;
|
|
12893
12973
|
status: SubmissionStatus;
|
|
12894
12974
|
platform: AppPlatform;
|
|
12895
|
-
|
|
12975
|
+
logFiles: Array<string>;
|
|
12896
12976
|
app: {
|
|
12897
12977
|
__typename?: 'App';
|
|
12898
12978
|
id: string;
|
|
@@ -12977,8 +13057,9 @@ export type EnvironmentVariableFragment = {
|
|
|
12977
13057
|
id: string;
|
|
12978
13058
|
name: string;
|
|
12979
13059
|
value?: string | null;
|
|
12980
|
-
|
|
13060
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
12981
13061
|
createdAt: any;
|
|
13062
|
+
updatedAt: any;
|
|
12982
13063
|
scope: EnvironmentVariableScope;
|
|
12983
13064
|
visibility?: EnvironmentVariableVisibility | null;
|
|
12984
13065
|
};
|
|
@@ -13006,7 +13087,7 @@ export type SubmissionFragment = {
|
|
|
13006
13087
|
id: string;
|
|
13007
13088
|
status: SubmissionStatus;
|
|
13008
13089
|
platform: AppPlatform;
|
|
13009
|
-
|
|
13090
|
+
logFiles: Array<string>;
|
|
13010
13091
|
app: {
|
|
13011
13092
|
__typename?: 'App';
|
|
13012
13093
|
id: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
-
import { EnvironmentVariableFragment, EnvironmentVariableVisibility } from '../generated';
|
|
3
|
-
type
|
|
4
|
-
value
|
|
2
|
+
import { EnvironmentSecretType, EnvironmentVariableEnvironment, EnvironmentVariableFragment, EnvironmentVariableVisibility } from '../generated';
|
|
3
|
+
type CreateVariableArgs = {
|
|
4
|
+
value: string;
|
|
5
5
|
name: string;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
visibility: EnvironmentVariableVisibility;
|
|
7
|
+
environments: EnvironmentVariableEnvironment[];
|
|
8
|
+
type: EnvironmentSecretType;
|
|
8
9
|
};
|
|
9
10
|
export type EnvironmentVariablePushInput = {
|
|
10
11
|
name: string;
|
|
@@ -14,23 +15,13 @@ export type EnvironmentVariablePushInput = {
|
|
|
14
15
|
overwrite?: boolean;
|
|
15
16
|
};
|
|
16
17
|
export declare const EnvironmentVariableMutation: {
|
|
17
|
-
linkSharedEnvironmentVariableAsync(graphqlClient: ExpoGraphqlClient, environmentVariableId: string, appId: string, environment
|
|
18
|
-
unlinkSharedEnvironmentVariableAsync(graphqlClient: ExpoGraphqlClient, environmentVariableId: string, appId: string, environment
|
|
19
|
-
createSharedVariableAsync(graphqlClient: ExpoGraphqlClient, input:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} | UpdateVariableArgs, accountId: string): Promise<EnvironmentVariableFragment>;
|
|
25
|
-
createForAppAsync(graphqlClient: ExpoGraphqlClient, input: {
|
|
26
|
-
name: string;
|
|
27
|
-
value?: string;
|
|
28
|
-
environment: string;
|
|
29
|
-
visibility: EnvironmentVariableVisibility;
|
|
30
|
-
overwrite?: boolean;
|
|
31
|
-
} | (UpdateVariableArgs & {
|
|
32
|
-
environment: string;
|
|
33
|
-
}), appId: string): Promise<EnvironmentVariableFragment>;
|
|
18
|
+
linkSharedEnvironmentVariableAsync(graphqlClient: ExpoGraphqlClient, environmentVariableId: string, appId: string, environment?: EnvironmentVariableEnvironment): Promise<EnvironmentVariableFragment>;
|
|
19
|
+
unlinkSharedEnvironmentVariableAsync(graphqlClient: ExpoGraphqlClient, environmentVariableId: string, appId: string, environment?: EnvironmentVariableEnvironment): Promise<EnvironmentVariableFragment>;
|
|
20
|
+
createSharedVariableAsync(graphqlClient: ExpoGraphqlClient, input: CreateVariableArgs, accountId: string): Promise<EnvironmentVariableFragment>;
|
|
21
|
+
createForAppAsync(graphqlClient: ExpoGraphqlClient, input: CreateVariableArgs, appId: string): Promise<EnvironmentVariableFragment>;
|
|
22
|
+
updateAsync(graphqlClient: ExpoGraphqlClient, input: Partial<CreateVariableArgs> & {
|
|
23
|
+
id: string;
|
|
24
|
+
}): Promise<EnvironmentVariableFragment>;
|
|
34
25
|
deleteAsync(graphqlClient: ExpoGraphqlClient, id: string): Promise<{
|
|
35
26
|
id: string;
|
|
36
27
|
}>;
|