eas-cli 12.5.1 → 12.5.3
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 +66 -62
- package/build/build/build.js +4 -4
- package/build/commandUtils/flags.d.ts +10 -0
- package/build/commandUtils/flags.js +15 -8
- package/build/commands/env/create.d.ts +4 -1
- package/build/commands/env/create.js +133 -74
- package/build/commands/env/delete.d.ts +2 -2
- package/build/commands/env/delete.js +37 -26
- package/build/commands/env/exec.js +2 -1
- package/build/commands/env/get.d.ts +2 -2
- package/build/commands/env/get.js +44 -28
- package/build/commands/env/link.d.ts +4 -2
- package/build/commands/env/link.js +53 -14
- package/build/commands/env/list.d.ts +2 -2
- package/build/commands/env/list.js +59 -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 +6 -2
- package/build/commands/env/update.js +134 -70
- package/build/commands/update/index.js +0 -1
- package/build/commands/worker/deploy.js +31 -11
- package/build/graphql/generated.d.ts +103 -15
- package/build/graphql/mutations/EnvironmentVariableMutation.d.ts +13 -22
- package/build/graphql/mutations/EnvironmentVariableMutation.js +18 -2
- package/build/graphql/queries/EnvironmentVariablesQuery.d.ts +24 -11
- package/build/graphql/queries/EnvironmentVariablesQuery.js +40 -17
- package/build/graphql/types/EnvironmentVariable.js +3 -1
- package/build/graphql/types/EnvironmentVariableWithSecret.d.ts +1 -0
- package/build/graphql/types/EnvironmentVariableWithSecret.js +18 -0
- package/build/prompts.d.ts +1 -0
- package/build/prompts.js +2 -0
- package/build/update/republish.js +1 -0
- package/build/utils/prompts.d.ts +16 -3
- package/build/utils/prompts.js +52 -8
- package/build/utils/variableUtils.d.ts +6 -0
- package/build/utils/variableUtils.js +62 -0
- package/build/worker/assets.d.ts +6 -1
- package/build/worker/assets.js +1 -2
- package/build/worker/upload.d.ts +1 -0
- package/build/worker/upload.js +25 -1
- package/oclif.manifest.json +98 -41
- package/package.json +3 -3
- package/build/utils/formatVariable.d.ts +0 -2
- package/build/utils/formatVariable.js +0 -16
|
@@ -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
|
};
|
|
@@ -3307,13 +3313,23 @@ export type EnvironmentVariable = {
|
|
|
3307
3313
|
apps: Array<App>;
|
|
3308
3314
|
createdAt: Scalars['DateTime']['output'];
|
|
3309
3315
|
environment?: Maybe<EnvironmentVariableEnvironment>;
|
|
3316
|
+
environments?: Maybe<Array<EnvironmentVariableEnvironment>>;
|
|
3310
3317
|
id: Scalars['ID']['output'];
|
|
3318
|
+
linkedEnvironments?: Maybe<Array<EnvironmentVariableEnvironment>>;
|
|
3311
3319
|
name: Scalars['String']['output'];
|
|
3312
3320
|
scope: EnvironmentVariableScope;
|
|
3321
|
+
type: EnvironmentSecretType;
|
|
3313
3322
|
updatedAt: Scalars['DateTime']['output'];
|
|
3314
3323
|
value?: Maybe<Scalars['String']['output']>;
|
|
3315
3324
|
visibility?: Maybe<EnvironmentVariableVisibility>;
|
|
3316
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
|
+
};
|
|
3317
3333
|
export declare enum EnvironmentVariableEnvironment {
|
|
3318
3334
|
Development = "DEVELOPMENT",
|
|
3319
3335
|
Preview = "PREVIEW",
|
|
@@ -3337,6 +3353,8 @@ export type EnvironmentVariableMutation = {
|
|
|
3337
3353
|
linkSharedEnvironmentVariable: EnvironmentVariable;
|
|
3338
3354
|
/** Unlink shared environment variable */
|
|
3339
3355
|
unlinkSharedEnvironmentVariable: EnvironmentVariable;
|
|
3356
|
+
/** Update an environment variable */
|
|
3357
|
+
updateEnvironmentVariable: EnvironmentVariable;
|
|
3340
3358
|
};
|
|
3341
3359
|
export type EnvironmentVariableMutationCreateBulkEnvironmentVariablesForAccountArgs = {
|
|
3342
3360
|
accountId: Scalars['ID']['input'];
|
|
@@ -3362,14 +3380,17 @@ export type EnvironmentVariableMutationLinkBulkSharedEnvironmentVariablesArgs =
|
|
|
3362
3380
|
};
|
|
3363
3381
|
export type EnvironmentVariableMutationLinkSharedEnvironmentVariableArgs = {
|
|
3364
3382
|
appId: Scalars['ID']['input'];
|
|
3365
|
-
environment
|
|
3383
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
3366
3384
|
environmentVariableId: Scalars['ID']['input'];
|
|
3367
3385
|
};
|
|
3368
3386
|
export type EnvironmentVariableMutationUnlinkSharedEnvironmentVariableArgs = {
|
|
3369
3387
|
appId: Scalars['ID']['input'];
|
|
3370
|
-
environment
|
|
3388
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
3371
3389
|
environmentVariableId: Scalars['ID']['input'];
|
|
3372
3390
|
};
|
|
3391
|
+
export type EnvironmentVariableMutationUpdateEnvironmentVariableArgs = {
|
|
3392
|
+
environmentVariableData: UpdateEnvironmentVariableInput;
|
|
3393
|
+
};
|
|
3373
3394
|
export declare enum EnvironmentVariableScope {
|
|
3374
3395
|
Project = "PROJECT",
|
|
3375
3396
|
Shared = "SHARED"
|
|
@@ -3384,14 +3405,24 @@ export type EnvironmentVariableWithSecret = {
|
|
|
3384
3405
|
apps: Array<App>;
|
|
3385
3406
|
createdAt: Scalars['DateTime']['output'];
|
|
3386
3407
|
environment?: Maybe<EnvironmentVariableEnvironment>;
|
|
3408
|
+
environments?: Maybe<Array<EnvironmentVariableEnvironment>>;
|
|
3387
3409
|
id: Scalars['ID']['output'];
|
|
3410
|
+
linkedEnvironments?: Maybe<Array<EnvironmentVariableEnvironment>>;
|
|
3388
3411
|
name: Scalars['String']['output'];
|
|
3389
3412
|
scope: EnvironmentVariableScope;
|
|
3390
3413
|
sensitive: Scalars['Boolean']['output'];
|
|
3414
|
+
type: EnvironmentSecretType;
|
|
3391
3415
|
updatedAt: Scalars['DateTime']['output'];
|
|
3392
3416
|
value?: Maybe<Scalars['String']['output']>;
|
|
3393
3417
|
visibility: EnvironmentVariableVisibility;
|
|
3394
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
|
+
};
|
|
3395
3426
|
export type EstimatedOverageAndCost = {
|
|
3396
3427
|
__typename?: 'EstimatedOverageAndCost';
|
|
3397
3428
|
id: Scalars['ID']['output'];
|
|
@@ -4192,7 +4223,7 @@ export type LineDataset = {
|
|
|
4192
4223
|
};
|
|
4193
4224
|
export type LinkSharedEnvironmentVariableInput = {
|
|
4194
4225
|
appId: Scalars['ID']['input'];
|
|
4195
|
-
environment
|
|
4226
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
4196
4227
|
environmentVariableId: Scalars['ID']['input'];
|
|
4197
4228
|
};
|
|
4198
4229
|
export type LogsTimespan = {
|
|
@@ -5561,6 +5592,14 @@ export type UpdateDeploymentsConnection = {
|
|
|
5561
5592
|
edges: Array<UpdateDeploymentEdge>;
|
|
5562
5593
|
pageInfo: PageInfo;
|
|
5563
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
|
+
};
|
|
5564
5603
|
export type UpdateGitHubBuildTriggerInput = {
|
|
5565
5604
|
autoSubmit: Scalars['Boolean']['input'];
|
|
5566
5605
|
buildProfile: Scalars['String']['input'];
|
|
@@ -10766,7 +10805,7 @@ export type DeleteEnvironmentSecretMutation = {
|
|
|
10766
10805
|
};
|
|
10767
10806
|
export type LinkSharedEnvironmentVariableMutationVariables = Exact<{
|
|
10768
10807
|
appId: Scalars['ID']['input'];
|
|
10769
|
-
environment
|
|
10808
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
10770
10809
|
environmentVariableId: Scalars['ID']['input'];
|
|
10771
10810
|
}>;
|
|
10772
10811
|
export type LinkSharedEnvironmentVariableMutation = {
|
|
@@ -10778,16 +10817,18 @@ export type LinkSharedEnvironmentVariableMutation = {
|
|
|
10778
10817
|
id: string;
|
|
10779
10818
|
name: string;
|
|
10780
10819
|
value?: string | null;
|
|
10781
|
-
|
|
10820
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
10782
10821
|
createdAt: any;
|
|
10822
|
+
updatedAt: any;
|
|
10783
10823
|
scope: EnvironmentVariableScope;
|
|
10784
10824
|
visibility?: EnvironmentVariableVisibility | null;
|
|
10825
|
+
type: EnvironmentSecretType;
|
|
10785
10826
|
};
|
|
10786
10827
|
};
|
|
10787
10828
|
};
|
|
10788
10829
|
export type UnlinkSharedEnvironmentVariableMutationVariables = Exact<{
|
|
10789
10830
|
appId: Scalars['ID']['input'];
|
|
10790
|
-
environment
|
|
10831
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
10791
10832
|
environmentVariableId: Scalars['ID']['input'];
|
|
10792
10833
|
}>;
|
|
10793
10834
|
export type UnlinkSharedEnvironmentVariableMutation = {
|
|
@@ -10799,10 +10840,12 @@ export type UnlinkSharedEnvironmentVariableMutation = {
|
|
|
10799
10840
|
id: string;
|
|
10800
10841
|
name: string;
|
|
10801
10842
|
value?: string | null;
|
|
10802
|
-
|
|
10843
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
10803
10844
|
createdAt: any;
|
|
10845
|
+
updatedAt: any;
|
|
10804
10846
|
scope: EnvironmentVariableScope;
|
|
10805
10847
|
visibility?: EnvironmentVariableVisibility | null;
|
|
10848
|
+
type: EnvironmentSecretType;
|
|
10806
10849
|
};
|
|
10807
10850
|
};
|
|
10808
10851
|
};
|
|
@@ -10819,10 +10862,12 @@ export type CreateEnvironmentVariableForAccountMutation = {
|
|
|
10819
10862
|
id: string;
|
|
10820
10863
|
name: string;
|
|
10821
10864
|
value?: string | null;
|
|
10822
|
-
|
|
10865
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
10823
10866
|
createdAt: any;
|
|
10867
|
+
updatedAt: any;
|
|
10824
10868
|
scope: EnvironmentVariableScope;
|
|
10825
10869
|
visibility?: EnvironmentVariableVisibility | null;
|
|
10870
|
+
type: EnvironmentSecretType;
|
|
10826
10871
|
};
|
|
10827
10872
|
};
|
|
10828
10873
|
};
|
|
@@ -10839,10 +10884,33 @@ export type CreateEnvironmentVariableForAppMutation = {
|
|
|
10839
10884
|
id: string;
|
|
10840
10885
|
name: string;
|
|
10841
10886
|
value?: string | null;
|
|
10842
|
-
|
|
10887
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
10843
10888
|
createdAt: any;
|
|
10889
|
+
updatedAt: any;
|
|
10844
10890
|
scope: EnvironmentVariableScope;
|
|
10845
10891
|
visibility?: EnvironmentVariableVisibility | null;
|
|
10892
|
+
type: EnvironmentSecretType;
|
|
10893
|
+
};
|
|
10894
|
+
};
|
|
10895
|
+
};
|
|
10896
|
+
export type UpdateEnvironmentVariableMutationVariables = Exact<{
|
|
10897
|
+
input: UpdateEnvironmentVariableInput;
|
|
10898
|
+
}>;
|
|
10899
|
+
export type UpdateEnvironmentVariableMutation = {
|
|
10900
|
+
__typename?: 'RootMutation';
|
|
10901
|
+
environmentVariable: {
|
|
10902
|
+
__typename?: 'EnvironmentVariableMutation';
|
|
10903
|
+
updateEnvironmentVariable: {
|
|
10904
|
+
__typename?: 'EnvironmentVariable';
|
|
10905
|
+
id: string;
|
|
10906
|
+
name: string;
|
|
10907
|
+
value?: string | null;
|
|
10908
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
10909
|
+
createdAt: any;
|
|
10910
|
+
updatedAt: any;
|
|
10911
|
+
scope: EnvironmentVariableScope;
|
|
10912
|
+
visibility?: EnvironmentVariableVisibility | null;
|
|
10913
|
+
type: EnvironmentSecretType;
|
|
10846
10914
|
};
|
|
10847
10915
|
};
|
|
10848
10916
|
};
|
|
@@ -12036,7 +12104,8 @@ export type EnvironmentSecretsByAppIdQuery = {
|
|
|
12036
12104
|
export type EnvironmentVariablesIncludingSensitiveByAppIdQueryVariables = Exact<{
|
|
12037
12105
|
appId: Scalars['String']['input'];
|
|
12038
12106
|
filterNames?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
|
|
12039
|
-
environment
|
|
12107
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
12108
|
+
includeFileContent: Scalars['Boolean']['input'];
|
|
12040
12109
|
}>;
|
|
12041
12110
|
export type EnvironmentVariablesIncludingSensitiveByAppIdQuery = {
|
|
12042
12111
|
__typename?: 'RootQuery';
|
|
@@ -12050,6 +12119,8 @@ export type EnvironmentVariablesIncludingSensitiveByAppIdQuery = {
|
|
|
12050
12119
|
id: string;
|
|
12051
12120
|
name: string;
|
|
12052
12121
|
value?: string | null;
|
|
12122
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
12123
|
+
valueWithFileContent?: string | null;
|
|
12053
12124
|
}>;
|
|
12054
12125
|
};
|
|
12055
12126
|
};
|
|
@@ -12057,7 +12128,8 @@ export type EnvironmentVariablesIncludingSensitiveByAppIdQuery = {
|
|
|
12057
12128
|
export type EnvironmentVariablesByAppIdQueryVariables = Exact<{
|
|
12058
12129
|
appId: Scalars['String']['input'];
|
|
12059
12130
|
filterNames?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
|
|
12060
|
-
environment
|
|
12131
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
12132
|
+
includeFileContent: Scalars['Boolean']['input'];
|
|
12061
12133
|
}>;
|
|
12062
12134
|
export type EnvironmentVariablesByAppIdQuery = {
|
|
12063
12135
|
__typename?: 'RootQuery';
|
|
@@ -12069,12 +12141,16 @@ export type EnvironmentVariablesByAppIdQuery = {
|
|
|
12069
12141
|
environmentVariables: Array<{
|
|
12070
12142
|
__typename?: 'EnvironmentVariable';
|
|
12071
12143
|
id: string;
|
|
12144
|
+
linkedEnvironments?: Array<EnvironmentVariableEnvironment> | null;
|
|
12072
12145
|
name: string;
|
|
12073
12146
|
value?: string | null;
|
|
12074
|
-
|
|
12147
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
12075
12148
|
createdAt: any;
|
|
12149
|
+
updatedAt: any;
|
|
12076
12150
|
scope: EnvironmentVariableScope;
|
|
12077
12151
|
visibility?: EnvironmentVariableVisibility | null;
|
|
12152
|
+
type: EnvironmentSecretType;
|
|
12153
|
+
valueWithFileContent?: string | null;
|
|
12078
12154
|
}>;
|
|
12079
12155
|
};
|
|
12080
12156
|
};
|
|
@@ -12082,6 +12158,8 @@ export type EnvironmentVariablesByAppIdQuery = {
|
|
|
12082
12158
|
export type EnvironmentVariablesSharedQueryVariables = Exact<{
|
|
12083
12159
|
appId: Scalars['String']['input'];
|
|
12084
12160
|
filterNames?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
|
|
12161
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
12162
|
+
includeFileContent: Scalars['Boolean']['input'];
|
|
12085
12163
|
}>;
|
|
12086
12164
|
export type EnvironmentVariablesSharedQuery = {
|
|
12087
12165
|
__typename?: 'RootQuery';
|
|
@@ -12096,12 +12174,16 @@ export type EnvironmentVariablesSharedQuery = {
|
|
|
12096
12174
|
environmentVariables: Array<{
|
|
12097
12175
|
__typename?: 'EnvironmentVariable';
|
|
12098
12176
|
id: string;
|
|
12177
|
+
linkedEnvironments?: Array<EnvironmentVariableEnvironment> | null;
|
|
12099
12178
|
name: string;
|
|
12100
12179
|
value?: string | null;
|
|
12101
|
-
|
|
12180
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
12102
12181
|
createdAt: any;
|
|
12182
|
+
updatedAt: any;
|
|
12103
12183
|
scope: EnvironmentVariableScope;
|
|
12104
12184
|
visibility?: EnvironmentVariableVisibility | null;
|
|
12185
|
+
type: EnvironmentSecretType;
|
|
12186
|
+
valueWithFileContent?: string | null;
|
|
12105
12187
|
}>;
|
|
12106
12188
|
};
|
|
12107
12189
|
};
|
|
@@ -12110,6 +12192,8 @@ export type EnvironmentVariablesSharedQuery = {
|
|
|
12110
12192
|
export type EnvironmentVariablesSharedWithSensitiveQueryVariables = Exact<{
|
|
12111
12193
|
appId: Scalars['String']['input'];
|
|
12112
12194
|
filterNames?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
|
|
12195
|
+
environment?: InputMaybe<EnvironmentVariableEnvironment>;
|
|
12196
|
+
includeFileContent: Scalars['Boolean']['input'];
|
|
12113
12197
|
}>;
|
|
12114
12198
|
export type EnvironmentVariablesSharedWithSensitiveQuery = {
|
|
12115
12199
|
__typename?: 'RootQuery';
|
|
@@ -12126,6 +12210,8 @@ export type EnvironmentVariablesSharedWithSensitiveQuery = {
|
|
|
12126
12210
|
id: string;
|
|
12127
12211
|
name: string;
|
|
12128
12212
|
value?: string | null;
|
|
12213
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
12214
|
+
valueWithFileContent?: string | null;
|
|
12129
12215
|
}>;
|
|
12130
12216
|
};
|
|
12131
12217
|
};
|
|
@@ -12986,10 +13072,12 @@ export type EnvironmentVariableFragment = {
|
|
|
12986
13072
|
id: string;
|
|
12987
13073
|
name: string;
|
|
12988
13074
|
value?: string | null;
|
|
12989
|
-
|
|
13075
|
+
environments?: Array<EnvironmentVariableEnvironment> | null;
|
|
12990
13076
|
createdAt: any;
|
|
13077
|
+
updatedAt: any;
|
|
12991
13078
|
scope: EnvironmentVariableScope;
|
|
12992
13079
|
visibility?: EnvironmentVariableVisibility | null;
|
|
13080
|
+
type: EnvironmentSecretType;
|
|
12993
13081
|
};
|
|
12994
13082
|
export type RuntimeFragment = {
|
|
12995
13083
|
__typename?: 'Runtime';
|
|
@@ -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
|
}>;
|
|
@@ -12,7 +12,7 @@ exports.EnvironmentVariableMutation = {
|
|
|
12
12
|
.mutation((0, graphql_tag_1.default) `
|
|
13
13
|
mutation LinkSharedEnvironmentVariable(
|
|
14
14
|
$appId: ID!
|
|
15
|
-
$environment: EnvironmentVariableEnvironment
|
|
15
|
+
$environment: EnvironmentVariableEnvironment
|
|
16
16
|
$environmentVariableId: ID!
|
|
17
17
|
) {
|
|
18
18
|
environmentVariable {
|
|
@@ -36,7 +36,7 @@ exports.EnvironmentVariableMutation = {
|
|
|
36
36
|
.mutation((0, graphql_tag_1.default) `
|
|
37
37
|
mutation UnlinkSharedEnvironmentVariable(
|
|
38
38
|
$appId: ID!
|
|
39
|
-
$environment: EnvironmentVariableEnvironment
|
|
39
|
+
$environment: EnvironmentVariableEnvironment
|
|
40
40
|
$environmentVariableId: ID!
|
|
41
41
|
) {
|
|
42
42
|
environmentVariable {
|
|
@@ -96,6 +96,22 @@ exports.EnvironmentVariableMutation = {
|
|
|
96
96
|
.toPromise());
|
|
97
97
|
return data.environmentVariable.createEnvironmentVariableForApp;
|
|
98
98
|
},
|
|
99
|
+
async updateAsync(graphqlClient, input) {
|
|
100
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
101
|
+
.mutation((0, graphql_tag_1.default) `
|
|
102
|
+
mutation UpdateEnvironmentVariable($input: UpdateEnvironmentVariableInput!) {
|
|
103
|
+
environmentVariable {
|
|
104
|
+
updateEnvironmentVariable(environmentVariableData: $input) {
|
|
105
|
+
id
|
|
106
|
+
...EnvironmentVariableFragment
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
${(0, graphql_1.print)(EnvironmentVariable_1.EnvironmentVariableFragmentNode)}
|
|
111
|
+
`, { input })
|
|
112
|
+
.toPromise());
|
|
113
|
+
return data.environmentVariable.updateEnvironmentVariable;
|
|
114
|
+
},
|
|
99
115
|
async deleteAsync(graphqlClient, id) {
|
|
100
116
|
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
101
117
|
.mutation((0, graphql_tag_1.default) `
|
|
@@ -1,22 +1,35 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
-
import { EnvironmentVariableFragment } from '../generated';
|
|
2
|
+
import { EnvironmentVariableEnvironment, EnvironmentVariableFragment } from '../generated';
|
|
3
|
+
type EnvironmentVariableWithLinkedEnvironments = EnvironmentVariableFragment & {
|
|
4
|
+
linkedEnvironments?: EnvironmentVariableEnvironment[] | null;
|
|
5
|
+
};
|
|
6
|
+
export type EnvironmentVariableWithFileContent = EnvironmentVariableFragment & {
|
|
7
|
+
valueWithFileContent?: string | null | undefined;
|
|
8
|
+
};
|
|
3
9
|
export declare const EnvironmentVariablesQuery: {
|
|
4
|
-
byAppIdWithSensitiveAsync(graphqlClient: ExpoGraphqlClient, { appId, environment, filterNames, }: {
|
|
10
|
+
byAppIdWithSensitiveAsync(graphqlClient: ExpoGraphqlClient, { appId, environment, filterNames, includeFileContent, }: {
|
|
5
11
|
appId: string;
|
|
6
|
-
environment
|
|
12
|
+
environment?: EnvironmentVariableEnvironment | undefined;
|
|
7
13
|
filterNames?: string[] | undefined;
|
|
8
|
-
|
|
9
|
-
|
|
14
|
+
includeFileContent?: boolean | undefined;
|
|
15
|
+
}): Promise<EnvironmentVariableWithFileContent[]>;
|
|
16
|
+
byAppIdAsync(graphqlClient: ExpoGraphqlClient, { appId, environment, filterNames, includeFileContent, }: {
|
|
10
17
|
appId: string;
|
|
11
|
-
environment
|
|
18
|
+
environment?: EnvironmentVariableEnvironment | undefined;
|
|
12
19
|
filterNames?: string[] | undefined;
|
|
13
|
-
|
|
14
|
-
|
|
20
|
+
includeFileContent?: boolean | undefined;
|
|
21
|
+
}): Promise<(EnvironmentVariableWithFileContent & EnvironmentVariableWithLinkedEnvironments)[]>;
|
|
22
|
+
sharedAsync(graphqlClient: ExpoGraphqlClient, { appId, filterNames, environment, includeFileContent, }: {
|
|
15
23
|
appId: string;
|
|
16
24
|
filterNames?: string[] | undefined;
|
|
17
|
-
|
|
18
|
-
|
|
25
|
+
environment?: EnvironmentVariableEnvironment | undefined;
|
|
26
|
+
includeFileContent?: boolean | undefined;
|
|
27
|
+
}): Promise<(EnvironmentVariableWithFileContent & EnvironmentVariableWithLinkedEnvironments)[]>;
|
|
28
|
+
sharedWithSensitiveAsync(graphqlClient: ExpoGraphqlClient, { appId, filterNames, environment, includeFileContent, }: {
|
|
19
29
|
appId: string;
|
|
20
30
|
filterNames?: string[] | undefined;
|
|
21
|
-
|
|
31
|
+
environment?: EnvironmentVariableEnvironment | undefined;
|
|
32
|
+
includeFileContent?: boolean | undefined;
|
|
33
|
+
}): Promise<EnvironmentVariableWithFileContent[]>;
|
|
22
34
|
};
|
|
35
|
+
export {};
|
|
@@ -6,14 +6,16 @@ const graphql_1 = require("graphql");
|
|
|
6
6
|
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
7
7
|
const client_1 = require("../client");
|
|
8
8
|
const EnvironmentVariable_1 = require("../types/EnvironmentVariable");
|
|
9
|
+
const EnvironmentVariableWithSecret_1 = require("../types/EnvironmentVariableWithSecret");
|
|
9
10
|
exports.EnvironmentVariablesQuery = {
|
|
10
|
-
async byAppIdWithSensitiveAsync(graphqlClient, { appId, environment, filterNames, }) {
|
|
11
|
+
async byAppIdWithSensitiveAsync(graphqlClient, { appId, environment, filterNames, includeFileContent = false, }) {
|
|
11
12
|
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
12
13
|
.query((0, graphql_tag_1.default) `
|
|
13
14
|
query EnvironmentVariablesIncludingSensitiveByAppId(
|
|
14
15
|
$appId: String!
|
|
15
16
|
$filterNames: [String!]
|
|
16
|
-
$environment: EnvironmentVariableEnvironment
|
|
17
|
+
$environment: EnvironmentVariableEnvironment
|
|
18
|
+
$includeFileContent: Boolean!
|
|
17
19
|
) {
|
|
18
20
|
app {
|
|
19
21
|
byId(appId: $appId) {
|
|
@@ -23,83 +25,104 @@ exports.EnvironmentVariablesQuery = {
|
|
|
23
25
|
environment: $environment
|
|
24
26
|
) {
|
|
25
27
|
id
|
|
26
|
-
|
|
27
|
-
value
|
|
28
|
+
...EnvironmentVariableWithSecretFragment
|
|
29
|
+
valueWithFileContent: value(includeFileContent: $includeFileContent)
|
|
30
|
+
@include(if: $includeFileContent)
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
|
-
|
|
35
|
+
${(0, graphql_1.print)(EnvironmentVariableWithSecret_1.EnvironmentVariableWithSecretFragmentNode)}
|
|
36
|
+
`, { appId, filterNames, environment, includeFileContent }, { additionalTypenames: ['EnvironmentVariableWithSecret'] })
|
|
33
37
|
.toPromise());
|
|
34
38
|
return data.app?.byId.environmentVariablesIncludingSensitive ?? [];
|
|
35
39
|
},
|
|
36
|
-
async byAppIdAsync(graphqlClient, { appId, environment, filterNames, }) {
|
|
40
|
+
async byAppIdAsync(graphqlClient, { appId, environment, filterNames, includeFileContent = false, }) {
|
|
37
41
|
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
38
42
|
.query((0, graphql_tag_1.default) `
|
|
39
43
|
query EnvironmentVariablesByAppId(
|
|
40
44
|
$appId: String!
|
|
41
45
|
$filterNames: [String!]
|
|
42
|
-
$environment: EnvironmentVariableEnvironment
|
|
46
|
+
$environment: EnvironmentVariableEnvironment
|
|
47
|
+
$includeFileContent: Boolean!
|
|
43
48
|
) {
|
|
44
49
|
app {
|
|
45
50
|
byId(appId: $appId) {
|
|
46
51
|
id
|
|
47
52
|
environmentVariables(filterNames: $filterNames, environment: $environment) {
|
|
48
53
|
id
|
|
54
|
+
linkedEnvironments(appId: $appId)
|
|
49
55
|
...EnvironmentVariableFragment
|
|
56
|
+
valueWithFileContent: value(includeFileContent: $includeFileContent)
|
|
57
|
+
@include(if: $includeFileContent)
|
|
50
58
|
}
|
|
51
59
|
}
|
|
52
60
|
}
|
|
53
61
|
}
|
|
54
62
|
${(0, graphql_1.print)(EnvironmentVariable_1.EnvironmentVariableFragmentNode)}
|
|
55
|
-
`, { appId, filterNames, environment }, { additionalTypenames: ['EnvironmentVariable'] })
|
|
63
|
+
`, { appId, filterNames, environment, includeFileContent }, { additionalTypenames: ['EnvironmentVariable'] })
|
|
56
64
|
.toPromise());
|
|
57
65
|
return data.app?.byId.environmentVariables ?? [];
|
|
58
66
|
},
|
|
59
|
-
async sharedAsync(graphqlClient, { appId, filterNames }) {
|
|
67
|
+
async sharedAsync(graphqlClient, { appId, filterNames, environment, includeFileContent = false, }) {
|
|
60
68
|
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
61
69
|
.query((0, graphql_tag_1.default) `
|
|
62
|
-
query EnvironmentVariablesShared(
|
|
70
|
+
query EnvironmentVariablesShared(
|
|
71
|
+
$appId: String!
|
|
72
|
+
$filterNames: [String!]
|
|
73
|
+
$environment: EnvironmentVariableEnvironment
|
|
74
|
+
$includeFileContent: Boolean!
|
|
75
|
+
) {
|
|
63
76
|
app {
|
|
64
77
|
byId(appId: $appId) {
|
|
65
78
|
id
|
|
66
79
|
ownerAccount {
|
|
67
80
|
id
|
|
68
|
-
environmentVariables(filterNames: $filterNames) {
|
|
81
|
+
environmentVariables(filterNames: $filterNames, environment: $environment) {
|
|
69
82
|
id
|
|
83
|
+
linkedEnvironments(appId: $appId)
|
|
70
84
|
...EnvironmentVariableFragment
|
|
85
|
+
valueWithFileContent: value(includeFileContent: $includeFileContent)
|
|
86
|
+
@include(if: $includeFileContent)
|
|
71
87
|
}
|
|
72
88
|
}
|
|
73
89
|
}
|
|
74
90
|
}
|
|
75
91
|
}
|
|
76
92
|
${(0, graphql_1.print)(EnvironmentVariable_1.EnvironmentVariableFragmentNode)}
|
|
77
|
-
`, { appId, filterNames }, { additionalTypenames: ['EnvironmentVariable'] })
|
|
93
|
+
`, { appId, filterNames, environment, includeFileContent }, { additionalTypenames: ['EnvironmentVariable'] })
|
|
78
94
|
.toPromise());
|
|
79
95
|
return data.app?.byId.ownerAccount.environmentVariables ?? [];
|
|
80
96
|
},
|
|
81
|
-
async sharedWithSensitiveAsync(graphqlClient, { appId, filterNames }) {
|
|
97
|
+
async sharedWithSensitiveAsync(graphqlClient, { appId, filterNames, environment, includeFileContent = false, }) {
|
|
82
98
|
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
83
99
|
.query((0, graphql_tag_1.default) `
|
|
84
100
|
query EnvironmentVariablesSharedWithSensitive(
|
|
85
101
|
$appId: String!
|
|
86
102
|
$filterNames: [String!]
|
|
103
|
+
$environment: EnvironmentVariableEnvironment
|
|
104
|
+
$includeFileContent: Boolean!
|
|
87
105
|
) {
|
|
88
106
|
app {
|
|
89
107
|
byId(appId: $appId) {
|
|
90
108
|
id
|
|
91
109
|
ownerAccount {
|
|
92
110
|
id
|
|
93
|
-
environmentVariablesIncludingSensitive(
|
|
111
|
+
environmentVariablesIncludingSensitive(
|
|
112
|
+
filterNames: $filterNames
|
|
113
|
+
environment: $environment
|
|
114
|
+
) {
|
|
94
115
|
id
|
|
95
|
-
|
|
96
|
-
value
|
|
116
|
+
...EnvironmentVariableWithSecretFragment
|
|
117
|
+
valueWithFileContent: value(includeFileContent: $includeFileContent)
|
|
118
|
+
@include(if: $includeFileContent)
|
|
97
119
|
}
|
|
98
120
|
}
|
|
99
121
|
}
|
|
100
122
|
}
|
|
101
123
|
}
|
|
102
|
-
|
|
124
|
+
${(0, graphql_1.print)(EnvironmentVariableWithSecret_1.EnvironmentVariableWithSecretFragmentNode)}
|
|
125
|
+
`, { appId, filterNames, environment, includeFileContent }, { additionalTypenames: ['EnvironmentVariableWithSecret'] })
|
|
103
126
|
.toPromise());
|
|
104
127
|
return data.app?.byId.ownerAccount.environmentVariablesIncludingSensitive ?? [];
|
|
105
128
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EnvironmentVariableWithSecretFragmentNode: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnvironmentVariableWithSecretFragmentNode = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
+
exports.EnvironmentVariableWithSecretFragmentNode = (0, graphql_tag_1.default) `
|
|
7
|
+
fragment EnvironmentVariableWithSecretFragment on EnvironmentVariableWithSecret {
|
|
8
|
+
id
|
|
9
|
+
name
|
|
10
|
+
value
|
|
11
|
+
environments
|
|
12
|
+
createdAt
|
|
13
|
+
updatedAt
|
|
14
|
+
scope
|
|
15
|
+
visibility
|
|
16
|
+
type
|
|
17
|
+
}
|
|
18
|
+
`;
|
package/build/prompts.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare function promptAsync<T extends string = string>(questions: Questi
|
|
|
9
9
|
export declare function confirmAsync(question: NamelessQuestion, options?: Options): Promise<boolean>;
|
|
10
10
|
export declare function selectAsync<T>(message: string, choices: ExpoChoice<T>[], config?: {
|
|
11
11
|
options?: Options;
|
|
12
|
+
initial?: T;
|
|
12
13
|
warningMessageForDisabledEntries?: string;
|
|
13
14
|
}): Promise<T>;
|
|
14
15
|
/**
|