eas-cli 10.2.3 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -65
- package/build/branch/actions/SelectBranch.d.ts +1 -1
- package/build/branch/actions/SelectBranch.js +2 -2
- package/build/branch/queries.js +3 -1
- package/build/build/android/build.js +1 -1
- package/build/build/android/version.js +1 -1
- package/build/build/build.js +21 -10
- package/build/build/context.d.ts +1 -0
- package/build/build/createContext.d.ts +2 -1
- package/build/build/createContext.js +6 -3
- package/build/build/evaluateConfigWithEnvVarsAsync.d.ts +16 -0
- package/build/build/evaluateConfigWithEnvVarsAsync.js +44 -0
- package/build/build/ios/build.js +4 -4
- package/build/build/local.d.ts +1 -1
- package/build/build/local.js +3 -2
- package/build/build/queries.js +3 -1
- package/build/build/runBuildAndSubmit.d.ts +2 -0
- package/build/build/runBuildAndSubmit.js +14 -7
- package/build/build/utils/printBuildInfo.js +6 -2
- package/build/build/validate.js +2 -2
- package/build/channel/actions/SelectChannel.d.ts +1 -1
- package/build/channel/actions/SelectChannel.js +2 -2
- package/build/channel/queries.js +6 -2
- package/build/commandUtils/EasCommand.js +2 -2
- package/build/commandUtils/context/contextUtils/createGraphqlClient.js +1 -1
- package/build/commandUtils/flags.d.ts +16 -0
- package/build/commandUtils/flags.js +61 -1
- package/build/commandUtils/gating/FeatureGating.js +6 -2
- package/build/commands/analytics.js +1 -1
- package/build/commands/build/index.d.ts +4 -1
- package/build/commands/build/index.js +3 -0
- package/build/commands/build/resign.d.ts +4 -1
- package/build/commands/build/resign.js +12 -3
- package/build/commands/build/version/get.d.ts +1 -0
- package/build/commands/build/version/get.js +9 -2
- package/build/commands/build/version/set.d.ts +1 -0
- package/build/commands/build/version/set.js +11 -1
- package/build/commands/build/version/sync.d.ts +1 -0
- package/build/commands/build/version/sync.js +13 -5
- package/build/commands/config.d.ts +2 -0
- package/build/commands/config.js +10 -3
- package/build/commands/device/delete.js +1 -1
- package/build/commands/device/rename.js +1 -1
- package/build/commands/env/create.d.ts +23 -0
- package/build/commands/env/create.js +169 -0
- package/build/commands/env/delete.d.ts +18 -0
- package/build/commands/env/delete.js +95 -0
- package/build/commands/env/get.d.ts +19 -0
- package/build/commands/env/get.js +100 -0
- package/build/commands/env/link.d.ts +15 -0
- package/build/commands/env/link.js +59 -0
- package/build/commands/env/list.d.ts +18 -0
- package/build/commands/env/list.js +82 -0
- package/build/commands/env/pull.d.ts +15 -0
- package/build/commands/env/pull.js +64 -0
- package/build/commands/env/push.d.ts +17 -0
- package/build/commands/env/push.js +148 -0
- package/build/commands/env/unlink.d.ts +15 -0
- package/build/commands/env/unlink.js +65 -0
- package/build/commands/env/update.d.ts +21 -0
- package/build/commands/env/update.js +135 -0
- package/build/commands/metadata/lint.js +4 -2
- package/build/commands/project/onboarding.js +1 -1
- package/build/commands/update/edit.d.ts +19 -0
- package/build/commands/update/edit.js +102 -0
- package/build/commands/update/index.d.ts +1 -2
- package/build/commands/update/index.js +53 -25
- package/build/commands/update/list.js +6 -3
- package/build/commands/update/roll-back-to-embedded.js +1 -1
- package/build/credentials/android/AndroidCredentialsProvider.d.ts +2 -2
- package/build/credentials/android/actions/AssignFcm.d.ts +1 -1
- package/build/credentials/android/actions/AssignGoogleServiceAccountKeyForFcmV1.d.ts +1 -1
- package/build/credentials/android/actions/AssignGoogleServiceAccountKeyForSubmissions.d.ts +1 -1
- package/build/credentials/android/actions/CreateFcm.d.ts +1 -1
- package/build/credentials/android/actions/CreateGoogleServiceAccountKey.d.ts +1 -1
- package/build/credentials/android/actions/CreateKeystore.d.ts +1 -1
- package/build/credentials/android/actions/DownloadKeystore.d.ts +2 -2
- package/build/credentials/android/actions/RemoveFcm.d.ts +1 -1
- package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.d.ts +2 -2
- package/build/credentials/android/actions/RemoveKeystore.d.ts +1 -1
- package/build/credentials/android/actions/SetUpBuildCredentials.d.ts +1 -1
- package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.d.ts +1 -1
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKeyForFcmV1.d.ts +1 -1
- package/build/credentials/android/actions/SetUpGoogleServiceAccountKeyForSubmissions.d.ts +1 -1
- package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.d.ts +1 -1
- package/build/credentials/android/api/GraphqlClient.js +3 -3
- package/build/credentials/context.d.ts +2 -2
- package/build/credentials/context.js +1 -1
- package/build/credentials/ios/IosCredentialsProvider.d.ts +2 -2
- package/build/credentials/ios/IosCredentialsProvider.js +1 -1
- package/build/credentials/ios/actions/AscApiKeyUtils.js +1 -1
- package/build/credentials/ios/actions/AssignAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/AssignPushKey.d.ts +1 -1
- package/build/credentials/ios/actions/ConfigureProvisioningProfile.d.ts +4 -4
- package/build/credentials/ios/actions/CreateAscApiKey.d.ts +1 -1
- package/build/credentials/ios/actions/CreateDistributionCertificate.d.ts +1 -1
- package/build/credentials/ios/actions/CreateProvisioningProfile.d.ts +3 -3
- package/build/credentials/ios/actions/CreatePushKey.d.ts +1 -1
- package/build/credentials/ios/actions/DistributionCertificateUtils.js +5 -5
- package/build/credentials/ios/actions/ProvisioningProfileUtils.js +1 -1
- package/build/credentials/ios/actions/PushKeyUtils.js +2 -2
- package/build/credentials/ios/actions/RemoveAscApiKey.d.ts +2 -2
- package/build/credentials/ios/actions/RemoveDistributionCertificate.d.ts +3 -3
- package/build/credentials/ios/actions/RemoveProvisioningProfile.d.ts +2 -2
- package/build/credentials/ios/actions/RemovePushKey.d.ts +2 -2
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +1 -1
- package/build/credentials/ios/actions/SetUpAscApiKey.d.ts +2 -2
- package/build/credentials/ios/actions/SetUpBuildCredentials.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpBuildCredentialsFromCredentialsJson.d.ts +3 -3
- package/build/credentials/ios/actions/SetUpDistributionCertificate.d.ts +2 -2
- package/build/credentials/ios/actions/SetUpDistributionCertificate.js +1 -1
- package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpProvisioningProfile.d.ts +3 -3
- package/build/credentials/ios/actions/SetUpProvisioningProfile.js +1 -1
- package/build/credentials/ios/actions/SetUpPushKey.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpTargetBuildCredentials.d.ts +1 -1
- package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.d.ts +3 -3
- package/build/credentials/ios/actions/UpdateCredentialsJson.d.ts +3 -3
- package/build/credentials/ios/api/GraphqlClient.js +4 -4
- package/build/credentials/ios/appstore/AppStoreApi.js +4 -4
- package/build/credentials/ios/appstore/authenticate.js +1 -1
- package/build/credentials/ios/appstore/bundleId.js +1 -1
- package/build/credentials/ios/appstore/bundleIdCapabilities.js +1 -1
- package/build/credentials/ios/appstore/ensureAppExists.js +1 -1
- package/build/credentials/ios/appstore/keychain.js +8 -6
- package/build/credentials/ios/appstore/provisioningProfile.js +1 -1
- package/build/credentials/ios/appstore/pushKey.js +1 -1
- package/build/credentials/ios/appstore/resolveCredentials.js +2 -2
- package/build/credentials/ios/credentials.js +1 -1
- package/build/credentials/ios/utils/convertHTMLToASCII.js +1 -1
- package/build/credentials/ios/validators/validateProvisioningProfile.js +2 -4
- package/build/credentials/manager/CheckBuildProfileFlagAgainstEasJson.d.ts +3 -3
- package/build/credentials/manager/CreateAndroidBuildCredentials.d.ts +1 -1
- package/build/credentials/manager/ManageAndroid.js +2 -1
- package/build/credentials/manager/ManageIos.js +3 -2
- package/build/credentials/manager/SelectAndroidBuildCredentials.d.ts +2 -2
- package/build/credentials/manager/SelectBuildProfileFromEasJson.d.ts +2 -2
- package/build/credentials/manager/SelectIosDistributionTypeGraphqlFromBuildProfile.d.ts +1 -1
- package/build/credentials/manager/SelectIosDistributionTypeGraphqlFromBuildProfile.js +1 -1
- package/build/credentials/manager/SelectPlatform.js +3 -2
- package/build/credentials/manager/SetDefaultAndroidKeystore.d.ts +1 -1
- package/build/credentials/manager/SetUpAndroidBuildCredentials.d.ts +1 -1
- package/build/credentials/manager/SetUpBuildCredentialsCommandAction.js +3 -2
- package/build/credentials/manager/SetUpIosBuildCredentials.d.ts +1 -1
- package/build/devices/actions/create/action.d.ts +4 -4
- package/build/devices/actions/create/registrationUrlMethod.js +3 -1
- package/build/devices/manager.d.ts +4 -4
- package/build/devices/queries.js +3 -1
- package/build/easMultiselect.js +6 -2
- package/build/graphql/generated.d.ts +874 -62
- package/build/graphql/generated.js +92 -2
- package/build/graphql/mutations/EnvironmentVariableMutation.d.ts +39 -0
- package/build/graphql/mutations/EnvironmentVariableMutation.js +133 -0
- package/build/graphql/mutations/PublishMutation.d.ts +1 -0
- package/build/graphql/mutations/PublishMutation.js +16 -0
- package/build/graphql/queries/BranchQuery.d.ts +7 -1
- package/build/graphql/queries/BranchQuery.js +42 -0
- package/build/graphql/queries/EnvironmentVariablesQuery.d.ts +22 -0
- package/build/graphql/queries/EnvironmentVariablesQuery.js +106 -0
- package/build/graphql/types/EnvironmentVariable.d.ts +1 -0
- package/build/graphql/types/EnvironmentVariable.js +16 -0
- package/build/graphql/types/Update.js +4 -0
- package/build/metadata/apple/config/reader.js +1 -1
- package/build/metadata/apple/tasks/age-rating.js +1 -1
- package/build/metadata/apple/tasks/app-review-detail.js +2 -1
- package/build/metadata/apple/tasks/app-version.d.ts +1 -1
- package/build/metadata/config/resolve.js +2 -1
- package/build/metadata/errors.js +2 -1
- package/build/metadata/utils/log.js +1 -1
- package/build/metadata/utils/retry.js +1 -1
- package/build/onboarding/runCommand.js +1 -1
- package/build/ora.js +12 -4
- package/build/project/android/applicationId.js +1 -1
- package/build/project/applicationIdentifier.d.ts +3 -2
- package/build/project/applicationIdentifier.js +2 -2
- package/build/project/expoConfig.js +2 -2
- package/build/project/ios/entitlements.js +1 -1
- package/build/project/publish.d.ts +31 -18
- package/build/project/publish.js +61 -37
- package/build/project/resolveRuntimeVersionAsync.d.ts +4 -1
- package/build/project/resolveRuntimeVersionAsync.js +9 -3
- package/build/rollout/actions/CreateRollout.d.ts +2 -2
- package/build/rollout/actions/EditRollout.d.ts +2 -2
- package/build/rollout/actions/EndRollout.d.ts +2 -2
- package/build/rollout/actions/ManageRollout.d.ts +2 -2
- package/build/rollout/actions/NonInteractiveRollout.d.ts +1 -1
- package/build/rollout/actions/RolloutMainMenu.d.ts +1 -1
- package/build/rollout/actions/SelectRuntime.d.ts +3 -3
- package/build/run/android/adb.js +1 -1
- package/build/run/ios/simctl.js +1 -1
- package/build/run/ios/systemRequirements.js +1 -1
- package/build/submit/ArchiveSource.js +15 -15
- package/build/submit/BaseSubmitter.js +2 -2
- package/build/submit/submit.js +1 -1
- package/build/update/android/UpdatesModule.js +1 -1
- package/build/update/configure.d.ts +1 -1
- package/build/update/queries.js +8 -3
- package/build/update/republish.js +2 -1
- package/build/update/utils.d.ts +1 -0
- package/build/update/utils.js +7 -0
- package/build/user/expoSsoLauncher.js +1 -1
- package/build/utils/download.js +2 -2
- package/build/utils/filterAsync.js +1 -1
- package/build/utils/formatVariable.d.ts +2 -0
- package/build/utils/formatVariable.js +16 -0
- package/build/utils/image.js +2 -2
- package/build/utils/progress.js +1 -1
- package/build/utils/promise.js +1 -1
- package/build/utils/prompts.d.ts +9 -0
- package/build/utils/prompts.js +68 -0
- package/build/utils/queries.js +2 -2
- package/build/vcs/clients/git.d.ts +1 -1
- package/build/vcs/local.d.ts +1 -1
- package/oclif.manifest.json +627 -22
- package/package.json +15 -15
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* For more info and docs, visit https://graphql-code-generator.com/
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
10
|
-
exports.WorkerLoggerLevel = exports.WebhookType = exports.UsageMetricsGranularity = exports.UsageMetricType = exports.UploadSessionType = exports.TargetEntityMutationType = exports.SubmissionStatus = exports.SubmissionArchiveSourceType = exports.SubmissionAndroidTrack = exports.SubmissionAndroidReleaseStatus = exports.SubmissionAndroidArchiveType = exports.StatuspageServiceStatus = exports.StatuspageServiceName = exports.StatuspageIncidentStatus = exports.StatuspageIncidentImpact = exports.StandardOffer = exports.SecondFactorMethod = exports.Role = exports.ResourceClassExperiment = exports.ProjectArchiveSourceType = exports.Permission = exports.Order = exports.OnboardingEnvironment = exports.OnboardingDeviceType = exports.OfferType = exports.NotificationType = exports.NotificationEvent = exports.MailchimpTag = exports.MailchimpAudience = exports.JobRunStatus = exports.JobRunPriority = exports.IosSchemeBuildConfiguration = exports.IosManagedBuildType = exports.IosDistributionType = exports.IosBuildType = exports.InvoiceDiscountType = void 0;
|
|
9
|
+
exports.GitHubAppInstallationStatus = exports.GitHubAppEnvironment = exports.FingerprintSourceType = exports.Feature = exports.Experiment = exports.EnvironmentVariableVisibility = exports.EnvironmentVariableScope = exports.EnvironmentVariableEnvironment = exports.EnvironmentSecretType = exports.EntityTypeName = exports.EasTotalPlanEnablementUnit = exports.EasServiceMetric = exports.EasService = exports.EasBuildWaiverType = exports.EasBuildDeprecationInfoType = exports.EasBuildBillingResourceClass = exports.DistributionType = exports.CustomDomainStatus = exports.CustomDomainDnsRecordType = exports.ContinentCode = exports.BuildWorkflow = exports.BuildTrigger = exports.BuildStatus = exports.BuildRetryDisabledReason = exports.BuildResourceClass = exports.BuildPriority = exports.BuildPhase = exports.BuildMode = exports.BuildLimitThresholdExceededMetadataType = exports.BuildIosEnterpriseProvisioning = exports.BuildCredentialsSource = exports.BackgroundJobState = exports.BackgroundJobResultType = exports.AuthProviderIdentifier = exports.AuthProtocolType = exports.AuditLogsExportFormat = exports.AssetMetadataStatus = exports.AppsFilter = exports.AppleTeamType = exports.AppleDeviceClass = exports.AppStoreConnectUserRole = exports.AppSort = exports.AppPrivacy = exports.AppPlatform = exports.AppInternalDistributionBuildPrivacy = exports.AndroidKeystoreType = exports.AndroidFcmVersion = exports.AndroidBuildType = exports.ActivityTimelineProjectActivityType = exports.AccountAppsSortByField = void 0;
|
|
10
|
+
exports.WorkerLoggerLevel = exports.WorkerDeploymentLogLevel = exports.WebhookType = exports.UsageMetricsGranularity = exports.UsageMetricType = exports.UploadSessionType = exports.TargetEntityMutationType = exports.SubmissionStatus = exports.SubmissionPriority = exports.SubmissionArchiveSourceType = exports.SubmissionAndroidTrack = exports.SubmissionAndroidReleaseStatus = exports.SubmissionAndroidArchiveType = exports.StatuspageServiceStatus = exports.StatuspageServiceName = exports.StatuspageIncidentStatus = exports.StatuspageIncidentImpact = exports.StandardOffer = exports.SecondFactorMethod = exports.Role = exports.ResourceClassExperiment = exports.RequestStatusPattern = exports.ProjectArchiveSourceType = exports.Permission = exports.Order = exports.OnboardingEnvironment = exports.OnboardingDeviceType = exports.OfferType = exports.NotificationType = exports.NotificationEvent = exports.MailchimpTag = exports.MailchimpAudience = exports.JobRunStatus = exports.JobRunPriority = exports.IosSchemeBuildConfiguration = exports.IosManagedBuildType = exports.IosDistributionType = exports.IosBuildType = exports.InvoiceDiscountType = exports.InsightsFilterType = exports.GitHubJobRunTriggerType = exports.GitHubJobRunTriggerRunStatus = exports.GitHubJobRunJobType = exports.GitHubBuildTriggerType = exports.GitHubBuildTriggerRunStatus = exports.GitHubBuildTriggerExecutionBehavior = void 0;
|
|
11
11
|
var AccountAppsSortByField;
|
|
12
12
|
(function (AccountAppsSortByField) {
|
|
13
13
|
AccountAppsSortByField["LatestActivityTime"] = "LATEST_ACTIVITY_TIME";
|
|
@@ -124,6 +124,7 @@ var AuthProviderIdentifier;
|
|
|
124
124
|
AuthProviderIdentifier["MsEntraId"] = "MS_ENTRA_ID";
|
|
125
125
|
AuthProviderIdentifier["Okta"] = "OKTA";
|
|
126
126
|
AuthProviderIdentifier["OneLogin"] = "ONE_LOGIN";
|
|
127
|
+
AuthProviderIdentifier["StubIdp"] = "STUB_IDP";
|
|
127
128
|
})(AuthProviderIdentifier || (exports.AuthProviderIdentifier = AuthProviderIdentifier = {}));
|
|
128
129
|
var BackgroundJobResultType;
|
|
129
130
|
(function (BackgroundJobResultType) {
|
|
@@ -259,6 +260,37 @@ var BuildWorkflow;
|
|
|
259
260
|
BuildWorkflow["Managed"] = "MANAGED";
|
|
260
261
|
BuildWorkflow["Unknown"] = "UNKNOWN";
|
|
261
262
|
})(BuildWorkflow || (exports.BuildWorkflow = BuildWorkflow = {}));
|
|
263
|
+
var ContinentCode;
|
|
264
|
+
(function (ContinentCode) {
|
|
265
|
+
ContinentCode["Af"] = "AF";
|
|
266
|
+
ContinentCode["An"] = "AN";
|
|
267
|
+
ContinentCode["As"] = "AS";
|
|
268
|
+
ContinentCode["Eu"] = "EU";
|
|
269
|
+
ContinentCode["Na"] = "NA";
|
|
270
|
+
ContinentCode["Oc"] = "OC";
|
|
271
|
+
ContinentCode["Sa"] = "SA";
|
|
272
|
+
ContinentCode["T1"] = "T1";
|
|
273
|
+
})(ContinentCode || (exports.ContinentCode = ContinentCode = {}));
|
|
274
|
+
var CustomDomainDnsRecordType;
|
|
275
|
+
(function (CustomDomainDnsRecordType) {
|
|
276
|
+
CustomDomainDnsRecordType["Cname"] = "CNAME";
|
|
277
|
+
CustomDomainDnsRecordType["Txt"] = "TXT";
|
|
278
|
+
})(CustomDomainDnsRecordType || (exports.CustomDomainDnsRecordType = CustomDomainDnsRecordType = {}));
|
|
279
|
+
var CustomDomainStatus;
|
|
280
|
+
(function (CustomDomainStatus) {
|
|
281
|
+
CustomDomainStatus["Active"] = "ACTIVE";
|
|
282
|
+
CustomDomainStatus["ActiveRedeploying"] = "ACTIVE_REDEPLOYING";
|
|
283
|
+
CustomDomainStatus["Blocked"] = "BLOCKED";
|
|
284
|
+
CustomDomainStatus["Deleted"] = "DELETED";
|
|
285
|
+
CustomDomainStatus["Moved"] = "MOVED";
|
|
286
|
+
CustomDomainStatus["Pending"] = "PENDING";
|
|
287
|
+
CustomDomainStatus["PendingBlocked"] = "PENDING_BLOCKED";
|
|
288
|
+
CustomDomainStatus["PendingDeletion"] = "PENDING_DELETION";
|
|
289
|
+
CustomDomainStatus["PendingMigration"] = "PENDING_MIGRATION";
|
|
290
|
+
CustomDomainStatus["PendingProvisioned"] = "PENDING_PROVISIONED";
|
|
291
|
+
CustomDomainStatus["Provisioned"] = "PROVISIONED";
|
|
292
|
+
CustomDomainStatus["Unknown"] = "UNKNOWN";
|
|
293
|
+
})(CustomDomainStatus || (exports.CustomDomainStatus = CustomDomainStatus = {}));
|
|
262
294
|
var DistributionType;
|
|
263
295
|
(function (DistributionType) {
|
|
264
296
|
DistributionType["Internal"] = "INTERNAL";
|
|
@@ -305,6 +337,28 @@ var EasTotalPlanEnablementUnit;
|
|
|
305
337
|
EasTotalPlanEnablementUnit["Updater"] = "UPDATER";
|
|
306
338
|
EasTotalPlanEnablementUnit["User"] = "USER";
|
|
307
339
|
})(EasTotalPlanEnablementUnit || (exports.EasTotalPlanEnablementUnit = EasTotalPlanEnablementUnit = {}));
|
|
340
|
+
var EntityTypeName;
|
|
341
|
+
(function (EntityTypeName) {
|
|
342
|
+
EntityTypeName["Account"] = "Account";
|
|
343
|
+
EntityTypeName["AccountSsoConfiguration"] = "AccountSSOConfiguration";
|
|
344
|
+
EntityTypeName["AndroidAppCredentials"] = "AndroidAppCredentials";
|
|
345
|
+
EntityTypeName["AndroidKeystore"] = "AndroidKeystore";
|
|
346
|
+
EntityTypeName["App"] = "App";
|
|
347
|
+
EntityTypeName["AppStoreConnectApiKey"] = "AppStoreConnectApiKey";
|
|
348
|
+
EntityTypeName["AppleDevice"] = "AppleDevice";
|
|
349
|
+
EntityTypeName["AppleDistributionCertificate"] = "AppleDistributionCertificate";
|
|
350
|
+
EntityTypeName["AppleProvisioningProfile"] = "AppleProvisioningProfile";
|
|
351
|
+
EntityTypeName["AppleTeam"] = "AppleTeam";
|
|
352
|
+
EntityTypeName["Branch"] = "Branch";
|
|
353
|
+
EntityTypeName["Channel"] = "Channel";
|
|
354
|
+
EntityTypeName["Customer"] = "Customer";
|
|
355
|
+
EntityTypeName["GoogleServiceAccountKey"] = "GoogleServiceAccountKey";
|
|
356
|
+
EntityTypeName["IosAppCredentials"] = "IosAppCredentials";
|
|
357
|
+
EntityTypeName["TurtleBuild"] = "TurtleBuild";
|
|
358
|
+
EntityTypeName["Update"] = "Update";
|
|
359
|
+
EntityTypeName["UserInvitation"] = "UserInvitation";
|
|
360
|
+
EntityTypeName["UserPermission"] = "UserPermission";
|
|
361
|
+
})(EntityTypeName || (exports.EntityTypeName = EntityTypeName = {}));
|
|
308
362
|
var EnvironmentSecretType;
|
|
309
363
|
(function (EnvironmentSecretType) {
|
|
310
364
|
EnvironmentSecretType["FileBase64"] = "FILE_BASE64";
|
|
@@ -321,6 +375,12 @@ var EnvironmentVariableScope;
|
|
|
321
375
|
EnvironmentVariableScope["Project"] = "PROJECT";
|
|
322
376
|
EnvironmentVariableScope["Shared"] = "SHARED";
|
|
323
377
|
})(EnvironmentVariableScope || (exports.EnvironmentVariableScope = EnvironmentVariableScope = {}));
|
|
378
|
+
var EnvironmentVariableVisibility;
|
|
379
|
+
(function (EnvironmentVariableVisibility) {
|
|
380
|
+
EnvironmentVariableVisibility["Public"] = "PUBLIC";
|
|
381
|
+
EnvironmentVariableVisibility["Secret"] = "SECRET";
|
|
382
|
+
EnvironmentVariableVisibility["Sensitive"] = "SENSITIVE";
|
|
383
|
+
})(EnvironmentVariableVisibility || (exports.EnvironmentVariableVisibility = EnvironmentVariableVisibility = {}));
|
|
324
384
|
var Experiment;
|
|
325
385
|
(function (Experiment) {
|
|
326
386
|
Experiment["Orbit"] = "ORBIT";
|
|
@@ -352,6 +412,11 @@ var GitHubAppInstallationStatus;
|
|
|
352
412
|
GitHubAppInstallationStatus["NotInstalled"] = "NOT_INSTALLED";
|
|
353
413
|
GitHubAppInstallationStatus["Suspended"] = "SUSPENDED";
|
|
354
414
|
})(GitHubAppInstallationStatus || (exports.GitHubAppInstallationStatus = GitHubAppInstallationStatus = {}));
|
|
415
|
+
var GitHubBuildTriggerExecutionBehavior;
|
|
416
|
+
(function (GitHubBuildTriggerExecutionBehavior) {
|
|
417
|
+
GitHubBuildTriggerExecutionBehavior["Always"] = "ALWAYS";
|
|
418
|
+
GitHubBuildTriggerExecutionBehavior["BaseDirectoryChanged"] = "BASE_DIRECTORY_CHANGED";
|
|
419
|
+
})(GitHubBuildTriggerExecutionBehavior || (exports.GitHubBuildTriggerExecutionBehavior = GitHubBuildTriggerExecutionBehavior = {}));
|
|
355
420
|
var GitHubBuildTriggerRunStatus;
|
|
356
421
|
(function (GitHubBuildTriggerRunStatus) {
|
|
357
422
|
GitHubBuildTriggerRunStatus["Errored"] = "ERRORED";
|
|
@@ -377,6 +442,10 @@ var GitHubJobRunTriggerType;
|
|
|
377
442
|
GitHubJobRunTriggerType["PullRequestUpdated"] = "PULL_REQUEST_UPDATED";
|
|
378
443
|
GitHubJobRunTriggerType["PushToBranch"] = "PUSH_TO_BRANCH";
|
|
379
444
|
})(GitHubJobRunTriggerType || (exports.GitHubJobRunTriggerType = GitHubJobRunTriggerType = {}));
|
|
445
|
+
var InsightsFilterType;
|
|
446
|
+
(function (InsightsFilterType) {
|
|
447
|
+
InsightsFilterType["Platform"] = "PLATFORM";
|
|
448
|
+
})(InsightsFilterType || (exports.InsightsFilterType = InsightsFilterType = {}));
|
|
380
449
|
var InvoiceDiscountType;
|
|
381
450
|
(function (InvoiceDiscountType) {
|
|
382
451
|
InvoiceDiscountType["Amount"] = "AMOUNT";
|
|
@@ -487,6 +556,13 @@ var ProjectArchiveSourceType;
|
|
|
487
556
|
ProjectArchiveSourceType["S3"] = "S3";
|
|
488
557
|
ProjectArchiveSourceType["Url"] = "URL";
|
|
489
558
|
})(ProjectArchiveSourceType || (exports.ProjectArchiveSourceType = ProjectArchiveSourceType = {}));
|
|
559
|
+
var RequestStatusPattern;
|
|
560
|
+
(function (RequestStatusPattern) {
|
|
561
|
+
RequestStatusPattern["Http_2Xx"] = "HTTP_2XX";
|
|
562
|
+
RequestStatusPattern["Http_3Xx"] = "HTTP_3XX";
|
|
563
|
+
RequestStatusPattern["Http_4Xx"] = "HTTP_4XX";
|
|
564
|
+
RequestStatusPattern["Http_5Xx"] = "HTTP_5XX";
|
|
565
|
+
})(RequestStatusPattern || (exports.RequestStatusPattern = RequestStatusPattern = {}));
|
|
490
566
|
var ResourceClassExperiment;
|
|
491
567
|
(function (ResourceClassExperiment) {
|
|
492
568
|
ResourceClassExperiment["C3D"] = "C3D";
|
|
@@ -583,6 +659,11 @@ var SubmissionArchiveSourceType;
|
|
|
583
659
|
SubmissionArchiveSourceType["GcsSubmitArchive"] = "GCS_SUBMIT_ARCHIVE";
|
|
584
660
|
SubmissionArchiveSourceType["Url"] = "URL";
|
|
585
661
|
})(SubmissionArchiveSourceType || (exports.SubmissionArchiveSourceType = SubmissionArchiveSourceType = {}));
|
|
662
|
+
var SubmissionPriority;
|
|
663
|
+
(function (SubmissionPriority) {
|
|
664
|
+
SubmissionPriority["High"] = "HIGH";
|
|
665
|
+
SubmissionPriority["Normal"] = "NORMAL";
|
|
666
|
+
})(SubmissionPriority || (exports.SubmissionPriority = SubmissionPriority = {}));
|
|
586
667
|
var SubmissionStatus;
|
|
587
668
|
(function (SubmissionStatus) {
|
|
588
669
|
SubmissionStatus["AwaitingBuild"] = "AWAITING_BUILD";
|
|
@@ -630,6 +711,15 @@ var WebhookType;
|
|
|
630
711
|
WebhookType["Build"] = "BUILD";
|
|
631
712
|
WebhookType["Submit"] = "SUBMIT";
|
|
632
713
|
})(WebhookType || (exports.WebhookType = WebhookType = {}));
|
|
714
|
+
var WorkerDeploymentLogLevel;
|
|
715
|
+
(function (WorkerDeploymentLogLevel) {
|
|
716
|
+
WorkerDeploymentLogLevel["Debug"] = "DEBUG";
|
|
717
|
+
WorkerDeploymentLogLevel["Error"] = "ERROR";
|
|
718
|
+
WorkerDeploymentLogLevel["Fatal"] = "FATAL";
|
|
719
|
+
WorkerDeploymentLogLevel["Info"] = "INFO";
|
|
720
|
+
WorkerDeploymentLogLevel["Log"] = "LOG";
|
|
721
|
+
WorkerDeploymentLogLevel["Warn"] = "WARN";
|
|
722
|
+
})(WorkerDeploymentLogLevel || (exports.WorkerDeploymentLogLevel = WorkerDeploymentLogLevel = {}));
|
|
633
723
|
var WorkerLoggerLevel;
|
|
634
724
|
(function (WorkerLoggerLevel) {
|
|
635
725
|
WorkerLoggerLevel["Debug"] = "DEBUG";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
+
import { EnvironmentVariableFragment, EnvironmentVariableVisibility } from '../generated';
|
|
3
|
+
type UpdateVariableArgs = {
|
|
4
|
+
value?: string;
|
|
5
|
+
name: string;
|
|
6
|
+
overwrite: true;
|
|
7
|
+
visibility?: EnvironmentVariableVisibility;
|
|
8
|
+
};
|
|
9
|
+
export type EnvironmentVariablePushInput = {
|
|
10
|
+
name: string;
|
|
11
|
+
value: string;
|
|
12
|
+
environment: string;
|
|
13
|
+
visibility: EnvironmentVariableVisibility;
|
|
14
|
+
overwrite?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const EnvironmentVariableMutation: {
|
|
17
|
+
linkSharedEnvironmentVariableAsync(graphqlClient: ExpoGraphqlClient, environmentVariableId: string, appId: string, environment: string): Promise<EnvironmentVariableFragment>;
|
|
18
|
+
unlinkSharedEnvironmentVariableAsync(graphqlClient: ExpoGraphqlClient, environmentVariableId: string, appId: string, environment: string): Promise<EnvironmentVariableFragment>;
|
|
19
|
+
createSharedVariableAsync(graphqlClient: ExpoGraphqlClient, input: {
|
|
20
|
+
name: string;
|
|
21
|
+
value: string;
|
|
22
|
+
visibility: EnvironmentVariableVisibility;
|
|
23
|
+
overwrite?: boolean;
|
|
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>;
|
|
34
|
+
deleteAsync(graphqlClient: ExpoGraphqlClient, id: string): Promise<{
|
|
35
|
+
id: string;
|
|
36
|
+
}>;
|
|
37
|
+
createBulkEnvironmentVariablesForAppAsync(graphqlClient: ExpoGraphqlClient, input: EnvironmentVariablePushInput[], appId: string): Promise<boolean>;
|
|
38
|
+
};
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnvironmentVariableMutation = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("graphql");
|
|
6
|
+
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
7
|
+
const client_1 = require("../client");
|
|
8
|
+
const EnvironmentVariable_1 = require("../types/EnvironmentVariable");
|
|
9
|
+
exports.EnvironmentVariableMutation = {
|
|
10
|
+
async linkSharedEnvironmentVariableAsync(graphqlClient, environmentVariableId, appId, environment) {
|
|
11
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
12
|
+
.mutation((0, graphql_tag_1.default) `
|
|
13
|
+
mutation LinkSharedEnvironmentVariable(
|
|
14
|
+
$appId: ID!
|
|
15
|
+
$environment: EnvironmentVariableEnvironment!
|
|
16
|
+
$environmentVariableId: ID!
|
|
17
|
+
) {
|
|
18
|
+
environmentVariable {
|
|
19
|
+
linkSharedEnvironmentVariable(
|
|
20
|
+
appId: $appId
|
|
21
|
+
environmentVariableId: $environmentVariableId
|
|
22
|
+
environment: $environment
|
|
23
|
+
) {
|
|
24
|
+
id
|
|
25
|
+
...EnvironmentVariableFragment
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
${(0, graphql_1.print)(EnvironmentVariable_1.EnvironmentVariableFragmentNode)}
|
|
30
|
+
`, { appId, environment, environmentVariableId })
|
|
31
|
+
.toPromise());
|
|
32
|
+
return data.environmentVariable.linkSharedEnvironmentVariable;
|
|
33
|
+
},
|
|
34
|
+
async unlinkSharedEnvironmentVariableAsync(graphqlClient, environmentVariableId, appId, environment) {
|
|
35
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
36
|
+
.mutation((0, graphql_tag_1.default) `
|
|
37
|
+
mutation UnlinkSharedEnvironmentVariable(
|
|
38
|
+
$appId: ID!
|
|
39
|
+
$environment: EnvironmentVariableEnvironment!
|
|
40
|
+
$environmentVariableId: ID!
|
|
41
|
+
) {
|
|
42
|
+
environmentVariable {
|
|
43
|
+
unlinkSharedEnvironmentVariable(
|
|
44
|
+
appId: $appId
|
|
45
|
+
environmentVariableId: $environmentVariableId
|
|
46
|
+
environment: $environment
|
|
47
|
+
) {
|
|
48
|
+
id
|
|
49
|
+
...EnvironmentVariableFragment
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
${(0, graphql_1.print)(EnvironmentVariable_1.EnvironmentVariableFragmentNode)}
|
|
54
|
+
`, { appId, environment, environmentVariableId })
|
|
55
|
+
.toPromise());
|
|
56
|
+
return data.environmentVariable.unlinkSharedEnvironmentVariable;
|
|
57
|
+
},
|
|
58
|
+
async createSharedVariableAsync(graphqlClient, input, accountId) {
|
|
59
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
60
|
+
.mutation((0, graphql_tag_1.default) `
|
|
61
|
+
mutation CreateEnvironmentVariableForAccount(
|
|
62
|
+
$input: CreateSharedEnvironmentVariableInput!
|
|
63
|
+
$accountId: ID!
|
|
64
|
+
) {
|
|
65
|
+
environmentVariable {
|
|
66
|
+
createEnvironmentVariableForAccount(
|
|
67
|
+
environmentVariableData: $input
|
|
68
|
+
accountId: $accountId
|
|
69
|
+
) {
|
|
70
|
+
id
|
|
71
|
+
...EnvironmentVariableFragment
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
${(0, graphql_1.print)(EnvironmentVariable_1.EnvironmentVariableFragmentNode)}
|
|
76
|
+
`, { input, accountId })
|
|
77
|
+
.toPromise());
|
|
78
|
+
return data.environmentVariable.createEnvironmentVariableForAccount;
|
|
79
|
+
},
|
|
80
|
+
async createForAppAsync(graphqlClient, input, appId) {
|
|
81
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
82
|
+
.mutation((0, graphql_tag_1.default) `
|
|
83
|
+
mutation CreateEnvironmentVariableForApp(
|
|
84
|
+
$input: CreateEnvironmentVariableInput!
|
|
85
|
+
$appId: ID!
|
|
86
|
+
) {
|
|
87
|
+
environmentVariable {
|
|
88
|
+
createEnvironmentVariableForApp(environmentVariableData: $input, appId: $appId) {
|
|
89
|
+
id
|
|
90
|
+
...EnvironmentVariableFragment
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
${(0, graphql_1.print)(EnvironmentVariable_1.EnvironmentVariableFragmentNode)}
|
|
95
|
+
`, { input, appId })
|
|
96
|
+
.toPromise());
|
|
97
|
+
return data.environmentVariable.createEnvironmentVariableForApp;
|
|
98
|
+
},
|
|
99
|
+
async deleteAsync(graphqlClient, id) {
|
|
100
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
101
|
+
.mutation((0, graphql_tag_1.default) `
|
|
102
|
+
mutation DeleteEnvironmentVariable($id: ID!) {
|
|
103
|
+
environmentVariable {
|
|
104
|
+
deleteEnvironmentVariable(id: $id) {
|
|
105
|
+
id
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
`, { id })
|
|
110
|
+
.toPromise());
|
|
111
|
+
return data.environmentVariable.deleteEnvironmentVariable;
|
|
112
|
+
},
|
|
113
|
+
async createBulkEnvironmentVariablesForAppAsync(graphqlClient, input, appId) {
|
|
114
|
+
await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
115
|
+
.mutation((0, graphql_tag_1.default) `
|
|
116
|
+
mutation CreateBulkEnvironmentVariablesForApp(
|
|
117
|
+
$input: [CreateEnvironmentVariableInput!]!
|
|
118
|
+
$appId: ID!
|
|
119
|
+
) {
|
|
120
|
+
environmentVariable {
|
|
121
|
+
createBulkEnvironmentVariablesForApp(
|
|
122
|
+
environmentVariablesData: $input
|
|
123
|
+
appId: $appId
|
|
124
|
+
) {
|
|
125
|
+
id
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
`, { input, appId })
|
|
130
|
+
.toPromise());
|
|
131
|
+
return true;
|
|
132
|
+
},
|
|
133
|
+
};
|
|
@@ -4,4 +4,5 @@ export declare const PublishMutation: {
|
|
|
4
4
|
getUploadURLsAsync(graphqlClient: ExpoGraphqlClient, contentTypes: string[]): Promise<GetSignedUploadMutation['asset']['getSignedAssetUploadSpecifications']>;
|
|
5
5
|
publishUpdateGroupAsync(graphqlClient: ExpoGraphqlClient, publishUpdateGroupsInput: PublishUpdateGroupInput[]): Promise<UpdateFragment[]>;
|
|
6
6
|
setCodeSigningInfoAsync(graphqlClient: ExpoGraphqlClient, updateId: string, codeSigningInfo: CodeSigningInfoInput): Promise<SetCodeSigningInfoMutation['update']['setCodeSigningInfo']>;
|
|
7
|
+
setRolloutPercentageAsync(graphqlClient: ExpoGraphqlClient, updateId: string, rolloutPercentage: number): Promise<UpdateFragment>;
|
|
7
8
|
};
|
|
@@ -69,4 +69,20 @@ exports.PublishMutation = {
|
|
|
69
69
|
.toPromise());
|
|
70
70
|
return data.update.setCodeSigningInfo;
|
|
71
71
|
},
|
|
72
|
+
async setRolloutPercentageAsync(graphqlClient, updateId, rolloutPercentage) {
|
|
73
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
74
|
+
.mutation((0, graphql_tag_1.default) `
|
|
75
|
+
mutation SetRolloutPercentageMutation($updateId: ID!, $rolloutPercentage: Int!) {
|
|
76
|
+
update {
|
|
77
|
+
setRolloutPercentage(updateId: $updateId, percentage: $rolloutPercentage) {
|
|
78
|
+
id
|
|
79
|
+
...UpdateFragment
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
${(0, graphql_1.print)(Update_1.UpdateFragmentNode)}
|
|
84
|
+
`, { updateId, rolloutPercentage }, { additionalTypenames: ['Update'] })
|
|
85
|
+
.toPromise());
|
|
86
|
+
return data.update.setRolloutPercentage;
|
|
87
|
+
},
|
|
72
88
|
};
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
-
import { BranchesBasicPaginatedOnAppQuery, BranchesBasicPaginatedOnAppQueryVariables, BranchesByAppQueryVariables, UpdateBranchBasicInfoFragment, UpdateBranchFragment, ViewBranchQueryVariables, ViewBranchesOnUpdateChannelQuery, ViewBranchesOnUpdateChannelQueryVariables } from '../generated';
|
|
2
|
+
import { AppPlatform, BranchesBasicPaginatedOnAppQuery, BranchesBasicPaginatedOnAppQueryVariables, BranchesByAppQueryVariables, UpdateBranchBasicInfoFragment, UpdateBranchFragment, ViewBranchQueryVariables, ViewBranchesOnUpdateChannelQuery, ViewBranchesOnUpdateChannelQueryVariables } from '../generated';
|
|
3
3
|
export type UpdateBranchOnChannelObject = NonNullable<ViewBranchesOnUpdateChannelQuery['app']['byId']['updateChannelByName']>['updateBranches'][number];
|
|
4
4
|
export declare const BranchQuery: {
|
|
5
5
|
getBranchByNameAsync(graphqlClient: ExpoGraphqlClient, { appId, name }: ViewBranchQueryVariables): Promise<UpdateBranchBasicInfoFragment>;
|
|
6
|
+
getLatestUpdateIdOnBranchAsync(graphqlClient: ExpoGraphqlClient, { appId, branchName, platform, runtimeVersion, }: {
|
|
7
|
+
appId: string;
|
|
8
|
+
branchName: string;
|
|
9
|
+
platform: AppPlatform;
|
|
10
|
+
runtimeVersion: string;
|
|
11
|
+
}): Promise<string | null>;
|
|
6
12
|
listBranchesOnAppAsync(graphqlClient: ExpoGraphqlClient, { appId, limit, offset }: BranchesByAppQueryVariables): Promise<UpdateBranchFragment[]>;
|
|
7
13
|
listBranchesBasicInfoPaginatedOnAppAsync(graphqlClient: ExpoGraphqlClient, { appId, first, after, last, before }: BranchesBasicPaginatedOnAppQueryVariables): Promise<BranchesBasicPaginatedOnAppQuery['app']['byId']['branchesPaginated']>;
|
|
8
14
|
listBranchesOnChannelAsync(graphqlClient: ExpoGraphqlClient, { appId, channelName, offset, limit }: ViewBranchesOnUpdateChannelQueryVariables): Promise<UpdateBranchOnChannelObject[]>;
|
|
@@ -36,6 +36,48 @@ exports.BranchQuery = {
|
|
|
36
36
|
}
|
|
37
37
|
return updateBranchByName;
|
|
38
38
|
},
|
|
39
|
+
async getLatestUpdateIdOnBranchAsync(graphqlClient, { appId, branchName, platform, runtimeVersion, }) {
|
|
40
|
+
const response = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
41
|
+
.query((0, graphql_tag_1.default) `
|
|
42
|
+
query ViewLatestUpdateOnBranch(
|
|
43
|
+
$appId: String!
|
|
44
|
+
$branchName: String!
|
|
45
|
+
$platform: AppPlatform!
|
|
46
|
+
$runtimeVersion: String!
|
|
47
|
+
) {
|
|
48
|
+
app {
|
|
49
|
+
byId(appId: $appId) {
|
|
50
|
+
id
|
|
51
|
+
updateBranchByName(name: $branchName) {
|
|
52
|
+
id
|
|
53
|
+
updates(
|
|
54
|
+
offset: 0
|
|
55
|
+
limit: 1
|
|
56
|
+
filter: { platform: $platform, runtimeVersions: [$runtimeVersion] }
|
|
57
|
+
) {
|
|
58
|
+
id
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
`, {
|
|
65
|
+
appId,
|
|
66
|
+
branchName,
|
|
67
|
+
platform,
|
|
68
|
+
runtimeVersion,
|
|
69
|
+
}, { additionalTypenames: ['UpdateBranch'] })
|
|
70
|
+
.toPromise());
|
|
71
|
+
const { updateBranchByName } = response.app.byId;
|
|
72
|
+
if (!updateBranchByName) {
|
|
73
|
+
throw new utils_1.BranchNotFoundError(`Could not find a branch named "${branchName}".`);
|
|
74
|
+
}
|
|
75
|
+
const latestUpdate = updateBranchByName.updates[0];
|
|
76
|
+
if (!latestUpdate) {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
return latestUpdate.id;
|
|
80
|
+
},
|
|
39
81
|
async listBranchesOnAppAsync(graphqlClient, { appId, limit, offset }) {
|
|
40
82
|
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
41
83
|
.query((0, graphql_tag_1.default) `
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
|
|
2
|
+
import { EnvironmentVariableFragment } from '../generated';
|
|
3
|
+
export declare const EnvironmentVariablesQuery: {
|
|
4
|
+
byAppIdWithSensitiveAsync(graphqlClient: ExpoGraphqlClient, { appId, environment, filterNames, }: {
|
|
5
|
+
appId: string;
|
|
6
|
+
environment: string;
|
|
7
|
+
filterNames?: string[] | undefined;
|
|
8
|
+
}): Promise<EnvironmentVariableFragment[]>;
|
|
9
|
+
byAppIdAsync(graphqlClient: ExpoGraphqlClient, { appId, environment, filterNames, }: {
|
|
10
|
+
appId: string;
|
|
11
|
+
environment: string;
|
|
12
|
+
filterNames?: string[] | undefined;
|
|
13
|
+
}): Promise<EnvironmentVariableFragment[]>;
|
|
14
|
+
sharedAsync(graphqlClient: ExpoGraphqlClient, { appId, filterNames }: {
|
|
15
|
+
appId: string;
|
|
16
|
+
filterNames?: string[] | undefined;
|
|
17
|
+
}): Promise<EnvironmentVariableFragment[]>;
|
|
18
|
+
sharedWithSensitiveAsync(graphqlClient: ExpoGraphqlClient, { appId, filterNames }: {
|
|
19
|
+
appId: string;
|
|
20
|
+
filterNames?: string[] | undefined;
|
|
21
|
+
}): Promise<EnvironmentVariableFragment[]>;
|
|
22
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnvironmentVariablesQuery = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("graphql");
|
|
6
|
+
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
7
|
+
const client_1 = require("../client");
|
|
8
|
+
const EnvironmentVariable_1 = require("../types/EnvironmentVariable");
|
|
9
|
+
exports.EnvironmentVariablesQuery = {
|
|
10
|
+
async byAppIdWithSensitiveAsync(graphqlClient, { appId, environment, filterNames, }) {
|
|
11
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
12
|
+
.query((0, graphql_tag_1.default) `
|
|
13
|
+
query EnvironmentVariablesIncludingSensitiveByAppId(
|
|
14
|
+
$appId: String!
|
|
15
|
+
$filterNames: [String!]
|
|
16
|
+
$environment: EnvironmentVariableEnvironment!
|
|
17
|
+
) {
|
|
18
|
+
app {
|
|
19
|
+
byId(appId: $appId) {
|
|
20
|
+
id
|
|
21
|
+
environmentVariablesIncludingSensitive(
|
|
22
|
+
filterNames: $filterNames
|
|
23
|
+
environment: $environment
|
|
24
|
+
) {
|
|
25
|
+
id
|
|
26
|
+
name
|
|
27
|
+
value
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
`, { appId, filterNames, environment }, { additionalTypenames: ['EnvironmentVariableWithSecret'] })
|
|
33
|
+
.toPromise());
|
|
34
|
+
return data.app?.byId.environmentVariablesIncludingSensitive ?? [];
|
|
35
|
+
},
|
|
36
|
+
async byAppIdAsync(graphqlClient, { appId, environment, filterNames, }) {
|
|
37
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
38
|
+
.query((0, graphql_tag_1.default) `
|
|
39
|
+
query EnvironmentVariablesByAppId(
|
|
40
|
+
$appId: String!
|
|
41
|
+
$filterNames: [String!]
|
|
42
|
+
$environment: EnvironmentVariableEnvironment!
|
|
43
|
+
) {
|
|
44
|
+
app {
|
|
45
|
+
byId(appId: $appId) {
|
|
46
|
+
id
|
|
47
|
+
environmentVariables(filterNames: $filterNames, environment: $environment) {
|
|
48
|
+
id
|
|
49
|
+
...EnvironmentVariableFragment
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
${(0, graphql_1.print)(EnvironmentVariable_1.EnvironmentVariableFragmentNode)}
|
|
55
|
+
`, { appId, filterNames, environment }, { additionalTypenames: ['EnvironmentVariable'] })
|
|
56
|
+
.toPromise());
|
|
57
|
+
return data.app?.byId.environmentVariables ?? [];
|
|
58
|
+
},
|
|
59
|
+
async sharedAsync(graphqlClient, { appId, filterNames }) {
|
|
60
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
61
|
+
.query((0, graphql_tag_1.default) `
|
|
62
|
+
query EnvironmentVariablesShared($appId: String!, $filterNames: [String!]) {
|
|
63
|
+
app {
|
|
64
|
+
byId(appId: $appId) {
|
|
65
|
+
id
|
|
66
|
+
ownerAccount {
|
|
67
|
+
id
|
|
68
|
+
environmentVariables(filterNames: $filterNames) {
|
|
69
|
+
id
|
|
70
|
+
...EnvironmentVariableFragment
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
${(0, graphql_1.print)(EnvironmentVariable_1.EnvironmentVariableFragmentNode)}
|
|
77
|
+
`, { appId, filterNames }, { additionalTypenames: ['EnvironmentVariable'] })
|
|
78
|
+
.toPromise());
|
|
79
|
+
return data.app?.byId.ownerAccount.environmentVariables ?? [];
|
|
80
|
+
},
|
|
81
|
+
async sharedWithSensitiveAsync(graphqlClient, { appId, filterNames }) {
|
|
82
|
+
const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
|
|
83
|
+
.query((0, graphql_tag_1.default) `
|
|
84
|
+
query EnvironmentVariablesSharedWithSensitive(
|
|
85
|
+
$appId: String!
|
|
86
|
+
$filterNames: [String!]
|
|
87
|
+
) {
|
|
88
|
+
app {
|
|
89
|
+
byId(appId: $appId) {
|
|
90
|
+
id
|
|
91
|
+
ownerAccount {
|
|
92
|
+
id
|
|
93
|
+
environmentVariablesIncludingSensitive(filterNames: $filterNames) {
|
|
94
|
+
id
|
|
95
|
+
name
|
|
96
|
+
value
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
`, { appId, filterNames }, { additionalTypenames: ['EnvironmentVariableWithSecret'] })
|
|
103
|
+
.toPromise());
|
|
104
|
+
return data.app?.byId.ownerAccount.environmentVariablesIncludingSensitive ?? [];
|
|
105
|
+
},
|
|
106
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EnvironmentVariableFragmentNode: import("graphql").DocumentNode;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnvironmentVariableFragmentNode = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
|
+
exports.EnvironmentVariableFragmentNode = (0, graphql_tag_1.default) `
|
|
7
|
+
fragment EnvironmentVariableFragment on EnvironmentVariable {
|
|
8
|
+
id
|
|
9
|
+
name
|
|
10
|
+
value
|
|
11
|
+
environment
|
|
12
|
+
createdAt
|
|
13
|
+
scope
|
|
14
|
+
visibility
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
@@ -41,7 +41,7 @@ class AppleConfigReader {
|
|
|
41
41
|
}
|
|
42
42
|
getLocales() {
|
|
43
43
|
// TODO: filter "default" locales, add option to add non-localized info to the config
|
|
44
|
-
return (0, uniq_1.default)(Object.keys(this.schema.info
|
|
44
|
+
return (0, uniq_1.default)(Object.keys(this.schema.info ?? {}));
|
|
45
45
|
}
|
|
46
46
|
getInfoLocale(locale) {
|
|
47
47
|
const info = this.schema.info?.[locale];
|
|
@@ -14,7 +14,7 @@ class AgeRatingTask extends task_1.AppleTask {
|
|
|
14
14
|
}
|
|
15
15
|
async prepareAsync({ context }) {
|
|
16
16
|
(0, assert_1.default)(context.version, `App version information is not prepared, can't update age rating`);
|
|
17
|
-
context.ageRating = (await context.version.getAgeRatingDeclarationAsync())
|
|
17
|
+
context.ageRating = (await context.version.getAgeRatingDeclarationAsync()) ?? undefined;
|
|
18
18
|
}
|
|
19
19
|
async downloadAsync({ config, context }) {
|
|
20
20
|
if (context.ageRating) {
|
|
@@ -25,7 +25,8 @@ class AppReviewDetailTask extends task_1.AppleTask {
|
|
|
25
25
|
async uploadAsync({ config, context }) {
|
|
26
26
|
const reviewDetail = config.getReviewDetails();
|
|
27
27
|
if (!reviewDetail) {
|
|
28
|
-
|
|
28
|
+
log_1.default.log((0, chalk_1.default) `{dim - Skipped store review details, not configured}`);
|
|
29
|
+
return;
|
|
29
30
|
}
|
|
30
31
|
(0, assert_1.default)(context.version, `App version not initialized, can't upload store review details`);
|
|
31
32
|
const { versionString } = context.version.attributes;
|
|
@@ -22,7 +22,7 @@ export type AppVersionData = {
|
|
|
22
22
|
versionPhasedRelease: AppStoreVersionPhasedRelease | null;
|
|
23
23
|
};
|
|
24
24
|
export declare class AppVersionTask extends AppleTask {
|
|
25
|
-
private options;
|
|
25
|
+
private readonly options;
|
|
26
26
|
constructor(options?: Partial<AppVersionOptions>);
|
|
27
27
|
name: () => string;
|
|
28
28
|
prepareAsync({ context }: TaskPrepareOptions): Promise<void>;
|
|
@@ -16,7 +16,8 @@ const errors_1 = require("../errors");
|
|
|
16
16
|
async function resolveDynamicConfigAsync(configFile) {
|
|
17
17
|
const userConfigOrFunction = await Promise.resolve(`${configFile}`).then(s => tslib_1.__importStar(require(s))).then(file => file.default ?? file);
|
|
18
18
|
return typeof userConfigOrFunction === 'function'
|
|
19
|
-
? await
|
|
19
|
+
? // eslint-disable-next-line @typescript-eslint/return-await
|
|
20
|
+
await userConfigOrFunction()
|
|
20
21
|
: userConfigOrFunction;
|
|
21
22
|
}
|
|
22
23
|
/**
|