eas-cli 16.13.4 → 16.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +107 -79
  2. package/build/commands/env/create.d.ts +0 -1
  3. package/build/commands/env/create.js +1 -28
  4. package/build/commands/update/delete.js +2 -20
  5. package/build/commands/update/republish.js +2 -139
  6. package/build/commands/update/revert-update-rollout.d.ts +24 -0
  7. package/build/commands/update/revert-update-rollout.js +264 -0
  8. package/build/commands/update/roll-back-to-embedded.d.ts +0 -2
  9. package/build/commands/update/roll-back-to-embedded.js +13 -133
  10. package/build/credentials/ios/actions/AppleTeamUtils.js +1 -1
  11. package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.js +1 -1
  12. package/build/credentials/ios/api/GraphqlClient.d.ts +1 -1
  13. package/build/credentials/ios/api/GraphqlClient.js +14 -8
  14. package/build/credentials/ios/api/graphql/mutations/AppleTeamMutation.d.ts +3 -5
  15. package/build/credentials/ios/api/graphql/mutations/AppleTeamMutation.js +22 -6
  16. package/build/devices/manager.js +2 -15
  17. package/build/graphql/generated.d.ts +107 -137
  18. package/build/graphql/generated.js +15 -3
  19. package/build/graphql/mutations/EnvironmentVariableMutation.d.ts +0 -2
  20. package/build/graphql/mutations/EnvironmentVariableMutation.js +0 -48
  21. package/build/graphql/types/Update.js +1 -0
  22. package/build/project/publish.js +1 -0
  23. package/build/update/delete.d.ts +5 -0
  24. package/build/update/delete.js +24 -0
  25. package/build/update/queries.d.ts +13 -1
  26. package/build/update/queries.js +62 -1
  27. package/build/update/republish.d.ts +27 -0
  28. package/build/update/republish.js +242 -1
  29. package/build/update/roll-back-to-embedded.d.ts +18 -0
  30. package/build/update/roll-back-to-embedded.js +119 -0
  31. package/build/user/fetchUser.js +15 -13
  32. package/build/utils/statuspageService.js +1 -0
  33. package/oclif.manifest.json +78 -114
  34. package/package.json +3 -2
  35. package/build/commands/env/link.d.ts +0 -23
  36. package/build/commands/env/link.js +0 -128
  37. package/build/commands/env/unlink.d.ts +0 -22
  38. package/build/commands/env/unlink.js +0 -117
@@ -115,6 +115,8 @@ export type Account = {
115
115
  __typename?: 'Account';
116
116
  /** @deprecated Legacy access tokens are deprecated */
117
117
  accessTokens: Array<Maybe<AccessToken>>;
118
+ /** Server account feature gate values for this account, optionally filtering by desired gates. */
119
+ accountFeatureGates: Scalars['JSONObject']['output'];
118
120
  /** Coalesced project activity for all apps belonging to this account. */
119
121
  activityTimelineProjectActivities: Array<ActivityTimelineProjectActivity>;
120
122
  appCount: Scalars['Int']['output'];
@@ -152,10 +154,6 @@ export type Account = {
152
154
  /** Billing information. Only visible to members with the ADMIN or OWNER role. */
153
155
  billing?: Maybe<Billing>;
154
156
  billingPeriod: BillingPeriod;
155
- /** (EAS Build) Builds associated with this account */
156
- builds: Array<Build>;
157
- /** Whether this account can enable SSO. */
158
- canEnableSSO: Scalars['Boolean']['output'];
159
157
  createdAt: Scalars['DateTime']['output'];
160
158
  displayName?: Maybe<Scalars['String']['output']>;
161
159
  /** Environment secrets for an account */
@@ -225,6 +223,13 @@ export type Account = {
225
223
  /** @deprecated Build packs are no longer supported */
226
224
  willAutoRenewBuilds?: Maybe<Scalars['Boolean']['output']>;
227
225
  };
226
+ /**
227
+ * An account is a container owning projects, credentials, billing and other organization
228
+ * data and settings. Actors may own and be members of accounts.
229
+ */
230
+ export type AccountAccountFeatureGatesArgs = {
231
+ filter?: InputMaybe<Array<Scalars['String']['input']>>;
232
+ };
228
233
  /**
229
234
  * An account is a container owning projects, credentials, billing and other organization
230
235
  * data and settings. Actors may own and be members of accounts.
@@ -366,16 +371,6 @@ export type AccountAuditLogsPaginatedArgs = {
366
371
  export type AccountBillingPeriodArgs = {
367
372
  date: Scalars['DateTime']['input'];
368
373
  };
369
- /**
370
- * An account is a container owning projects, credentials, billing and other organization
371
- * data and settings. Actors may own and be members of accounts.
372
- */
373
- export type AccountBuildsArgs = {
374
- limit: Scalars['Int']['input'];
375
- offset: Scalars['Int']['input'];
376
- platform?: InputMaybe<AppPlatform>;
377
- status?: InputMaybe<BuildStatus>;
378
- };
379
374
  /**
380
375
  * An account is a container owning projects, credentials, billing and other organization
381
376
  * data and settings. Actors may own and be members of accounts.
@@ -2060,6 +2055,13 @@ export type AppleDistributionCertificateMutationCreateAppleDistributionCertifica
2060
2055
  export type AppleDistributionCertificateMutationDeleteAppleDistributionCertificateArgs = {
2061
2056
  id: Scalars['ID']['input'];
2062
2057
  };
2058
+ export type AppleDistributionCertificateQuery = {
2059
+ __typename?: 'AppleDistributionCertificateQuery';
2060
+ byId: AppleDistributionCertificate;
2061
+ };
2062
+ export type AppleDistributionCertificateQueryByIdArgs = {
2063
+ id: Scalars['ID']['input'];
2064
+ };
2063
2065
  export type AppleProvisioningProfile = {
2064
2066
  __typename?: 'AppleProvisioningProfile';
2065
2067
  account: Account;
@@ -2105,6 +2107,13 @@ export type AppleProvisioningProfileMutationUpdateAppleProvisioningProfileArgs =
2105
2107
  appleProvisioningProfileInput: AppleProvisioningProfileInput;
2106
2108
  id: Scalars['ID']['input'];
2107
2109
  };
2110
+ export type AppleProvisioningProfileQuery = {
2111
+ __typename?: 'AppleProvisioningProfileQuery';
2112
+ byId: AppleProvisioningProfile;
2113
+ };
2114
+ export type AppleProvisioningProfileQueryByIdArgs = {
2115
+ id: Scalars['ID']['input'];
2116
+ };
2108
2117
  export type ApplePushKey = {
2109
2118
  __typename?: 'ApplePushKey';
2110
2119
  account: Account;
@@ -2451,8 +2460,6 @@ export type Build = ActivityTimelineProjectActivity & BuildOrBuildJob & {
2451
2460
  /** Queue position is 1-indexed */
2452
2461
  initialQueuePosition?: Maybe<Scalars['Int']['output']>;
2453
2462
  initiatingActor?: Maybe<Actor>;
2454
- /** @deprecated User type is deprecated */
2455
- initiatingUser?: Maybe<User>;
2456
2463
  iosEnterpriseProvisioning?: Maybe<BuildIosEnterpriseProvisioning>;
2457
2464
  isForIosSimulator: Scalars['Boolean']['output'];
2458
2465
  isGitWorkingTreeDirty?: Maybe<Scalars['Boolean']['output']>;
@@ -2516,6 +2523,7 @@ export type BuildAnnotation = {
2516
2523
  regexFlags?: Maybe<Scalars['String']['output']>;
2517
2524
  regexString: Scalars['String']['output'];
2518
2525
  title: Scalars['String']['output'];
2526
+ type: BuildAnnotationType;
2519
2527
  };
2520
2528
  export type BuildAnnotationDataInput = {
2521
2529
  buildPhase: Scalars['String']['input'];
@@ -2525,6 +2533,7 @@ export type BuildAnnotationDataInput = {
2525
2533
  regexFlags?: InputMaybe<Scalars['String']['input']>;
2526
2534
  regexString: Scalars['String']['input'];
2527
2535
  title: Scalars['String']['input'];
2536
+ type: BuildAnnotationType;
2528
2537
  };
2529
2538
  export type BuildAnnotationFiltersInput = {
2530
2539
  buildPhases: Array<Scalars['String']['input']>;
@@ -2548,6 +2557,11 @@ export type BuildAnnotationMutationUpdateBuildAnnotationArgs = {
2548
2557
  buildAnnotationData: BuildAnnotationDataInput;
2549
2558
  buildAnnotationId: Scalars['ID']['input'];
2550
2559
  };
2560
+ export declare enum BuildAnnotationType {
2561
+ Error = "ERROR",
2562
+ Info = "INFO",
2563
+ Warning = "WARNING"
2564
+ }
2551
2565
  export type BuildAnnotationsQuery = {
2552
2566
  __typename?: 'BuildAnnotationsQuery';
2553
2567
  /** View build annotations */
@@ -3551,6 +3565,7 @@ export declare enum EnvironmentSecretType {
3551
3565
  }
3552
3566
  export type EnvironmentVariable = {
3553
3567
  __typename?: 'EnvironmentVariable';
3568
+ /** @deprecated Environment variables are automatically linked to all apps */
3554
3569
  apps: Array<App>;
3555
3570
  createdAt: Scalars['DateTime']['output'];
3556
3571
  environments?: Maybe<Array<EnvironmentVariableEnvironment>>;
@@ -3591,12 +3606,6 @@ export type EnvironmentVariableMutation = {
3591
3606
  deleteBulkEnvironmentVariables: Array<DeleteEnvironmentVariableResult>;
3592
3607
  /** Delete an environment variable */
3593
3608
  deleteEnvironmentVariable: DeleteEnvironmentVariableResult;
3594
- /** Bulk link shared environment variables */
3595
- linkBulkSharedEnvironmentVariables: Array<EnvironmentVariable>;
3596
- /** Link shared environment variable */
3597
- linkSharedEnvironmentVariable: EnvironmentVariable;
3598
- /** Unlink shared environment variable */
3599
- unlinkSharedEnvironmentVariable: EnvironmentVariable;
3600
3609
  /** Bulk update environment variables */
3601
3610
  updateBulkEnvironmentVariables: Array<EnvironmentVariable>;
3602
3611
  /** Update an environment variable */
@@ -3624,19 +3633,6 @@ export type EnvironmentVariableMutationDeleteBulkEnvironmentVariablesArgs = {
3624
3633
  export type EnvironmentVariableMutationDeleteEnvironmentVariableArgs = {
3625
3634
  id: Scalars['ID']['input'];
3626
3635
  };
3627
- export type EnvironmentVariableMutationLinkBulkSharedEnvironmentVariablesArgs = {
3628
- linkData: Array<LinkSharedEnvironmentVariableInput>;
3629
- };
3630
- export type EnvironmentVariableMutationLinkSharedEnvironmentVariableArgs = {
3631
- appId: Scalars['ID']['input'];
3632
- environment?: InputMaybe<EnvironmentVariableEnvironment>;
3633
- environmentVariableId: Scalars['ID']['input'];
3634
- };
3635
- export type EnvironmentVariableMutationUnlinkSharedEnvironmentVariableArgs = {
3636
- appId: Scalars['ID']['input'];
3637
- environment?: InputMaybe<EnvironmentVariableEnvironment>;
3638
- environmentVariableId: Scalars['ID']['input'];
3639
- };
3640
3636
  export type EnvironmentVariableMutationUpdateBulkEnvironmentVariablesArgs = {
3641
3637
  environmentVariablesData: Array<UpdateEnvironmentVariableInput>;
3642
3638
  };
@@ -4591,11 +4587,6 @@ export type LinkSentryInstallationToExpoAccountInput = {
4591
4587
  installationId: Scalars['ID']['input'];
4592
4588
  sentryOrgSlug: Scalars['String']['input'];
4593
4589
  };
4594
- export type LinkSharedEnvironmentVariableInput = {
4595
- appId: Scalars['ID']['input'];
4596
- environment?: InputMaybe<EnvironmentVariableEnvironment>;
4597
- environmentVariableId: Scalars['ID']['input'];
4598
- };
4599
4590
  export type LocalBuildArchiveSourceInput = {
4600
4591
  bucketKey: Scalars['String']['input'];
4601
4592
  type: LocalBuildArchiveSourceType;
@@ -5294,6 +5285,10 @@ export type RootQuery = {
5294
5285
  appStoreConnectApiKey: AppStoreConnectApiKeyQuery;
5295
5286
  /** Top-level query object for querying Apple Device registration requests. */
5296
5287
  appleDeviceRegistrationRequest: AppleDeviceRegistrationRequestQuery;
5288
+ /** Top-level query object for querying Apple distribution certificates. */
5289
+ appleDistributionCertificate?: Maybe<AppleDistributionCertificateQuery>;
5290
+ /** Top-level query object for querying Apple provisioning profiles. */
5291
+ appleProvisioningProfile?: Maybe<AppleProvisioningProfileQuery>;
5297
5292
  /** Top-level query object for querying Apple Teams. */
5298
5293
  appleTeam: AppleTeamQuery;
5299
5294
  asset: AssetQuery;
@@ -5758,6 +5753,7 @@ export declare enum StatuspageServiceName {
5758
5753
  EasBuild = "EAS_BUILD",
5759
5754
  EasSubmit = "EAS_SUBMIT",
5760
5755
  EasUpdate = "EAS_UPDATE",
5756
+ EasWorkflows = "EAS_WORKFLOWS",
5761
5757
  GithubApiRequests = "GITHUB_API_REQUESTS",
5762
5758
  GithubWebhooks = "GITHUB_WEBHOOKS"
5763
5759
  }
@@ -7318,8 +7314,13 @@ export type WorkflowArtifact = {
7318
7314
  id: Scalars['ID']['output'];
7319
7315
  jobRun: JobRun;
7320
7316
  name: Scalars['String']['output'];
7317
+ storageType: WorkflowArtifactStorageType;
7321
7318
  updatedAt: Scalars['DateTime']['output'];
7322
7319
  };
7320
+ export declare enum WorkflowArtifactStorageType {
7321
+ Gcs = "GCS",
7322
+ R2 = "R2"
7323
+ }
7323
7324
  export type WorkflowJob = {
7324
7325
  __typename?: 'WorkflowJob';
7325
7326
  approvals: Array<WorkflowJobApproval>;
@@ -7747,29 +7748,6 @@ export type AppInfoQuery = {
7747
7748
  };
7748
7749
  };
7749
7750
  };
7750
- export type ScheduleUpdateGroupDeletionMutationVariables = Exact<{
7751
- group: Scalars['ID']['input'];
7752
- }>;
7753
- export type ScheduleUpdateGroupDeletionMutation = {
7754
- __typename?: 'RootMutation';
7755
- update: {
7756
- __typename?: 'UpdateMutation';
7757
- scheduleUpdateGroupDeletion: {
7758
- __typename?: 'BackgroundJobReceipt';
7759
- id: string;
7760
- state: BackgroundJobState;
7761
- tries: number;
7762
- willRetry: boolean;
7763
- resultId?: string | null;
7764
- resultType: BackgroundJobResultType;
7765
- resultData?: any | null;
7766
- errorCode?: string | null;
7767
- errorMessage?: string | null;
7768
- createdAt: any;
7769
- updatedAt: any;
7770
- };
7771
- };
7772
- };
7773
7751
  export type CreateAndroidAppBuildCredentialsMutationVariables = Exact<{
7774
7752
  androidAppBuildCredentialsInput: AndroidAppBuildCredentialsInput;
7775
7753
  androidAppCredentialsId: Scalars['ID']['input'];
@@ -9026,34 +9004,22 @@ export type CreateAppleTeamMutation = {
9026
9004
  id: string;
9027
9005
  appleTeamIdentifier: string;
9028
9006
  appleTeamName?: string | null;
9029
- account: {
9030
- __typename?: 'Account';
9031
- id: string;
9032
- name: string;
9033
- ownerUserActor?: {
9034
- __typename?: 'SSOUser';
9035
- id: string;
9036
- username: string;
9037
- } | {
9038
- __typename?: 'User';
9039
- id: string;
9040
- username: string;
9041
- } | null;
9042
- users: Array<{
9043
- __typename?: 'UserPermission';
9044
- role: Role;
9045
- actor: {
9046
- __typename?: 'Robot';
9047
- id: string;
9048
- } | {
9049
- __typename?: 'SSOUser';
9050
- id: string;
9051
- } | {
9052
- __typename?: 'User';
9053
- id: string;
9054
- };
9055
- }>;
9056
- };
9007
+ };
9008
+ };
9009
+ };
9010
+ export type UpdateAppleTeamMutationVariables = Exact<{
9011
+ appleTeamInput: AppleTeamUpdateInput;
9012
+ appleTeamEntityId: Scalars['ID']['input'];
9013
+ }>;
9014
+ export type UpdateAppleTeamMutation = {
9015
+ __typename?: 'RootMutation';
9016
+ appleTeam: {
9017
+ __typename?: 'AppleTeamMutation';
9018
+ updateAppleTeam: {
9019
+ __typename?: 'AppleTeam';
9020
+ id: string;
9021
+ appleTeamIdentifier: string;
9022
+ appleTeamName?: string | null;
9057
9023
  };
9058
9024
  };
9059
9025
  };
@@ -11809,52 +11775,6 @@ export type DeleteEnvironmentSecretMutation = {
11809
11775
  };
11810
11776
  };
11811
11777
  };
11812
- export type LinkSharedEnvironmentVariableMutationVariables = Exact<{
11813
- appId: Scalars['ID']['input'];
11814
- environment?: InputMaybe<EnvironmentVariableEnvironment>;
11815
- environmentVariableId: Scalars['ID']['input'];
11816
- }>;
11817
- export type LinkSharedEnvironmentVariableMutation = {
11818
- __typename?: 'RootMutation';
11819
- environmentVariable: {
11820
- __typename?: 'EnvironmentVariableMutation';
11821
- linkSharedEnvironmentVariable: {
11822
- __typename?: 'EnvironmentVariable';
11823
- id: string;
11824
- name: string;
11825
- value?: string | null;
11826
- environments?: Array<EnvironmentVariableEnvironment> | null;
11827
- createdAt: any;
11828
- updatedAt: any;
11829
- scope: EnvironmentVariableScope;
11830
- visibility?: EnvironmentVariableVisibility | null;
11831
- type: EnvironmentSecretType;
11832
- };
11833
- };
11834
- };
11835
- export type UnlinkSharedEnvironmentVariableMutationVariables = Exact<{
11836
- appId: Scalars['ID']['input'];
11837
- environment?: InputMaybe<EnvironmentVariableEnvironment>;
11838
- environmentVariableId: Scalars['ID']['input'];
11839
- }>;
11840
- export type UnlinkSharedEnvironmentVariableMutation = {
11841
- __typename?: 'RootMutation';
11842
- environmentVariable: {
11843
- __typename?: 'EnvironmentVariableMutation';
11844
- unlinkSharedEnvironmentVariable: {
11845
- __typename?: 'EnvironmentVariable';
11846
- id: string;
11847
- name: string;
11848
- value?: string | null;
11849
- environments?: Array<EnvironmentVariableEnvironment> | null;
11850
- createdAt: any;
11851
- updatedAt: any;
11852
- scope: EnvironmentVariableScope;
11853
- visibility?: EnvironmentVariableVisibility | null;
11854
- type: EnvironmentSecretType;
11855
- };
11856
- };
11857
- };
11858
11778
  export type CreateEnvironmentVariableForAccountMutationVariables = Exact<{
11859
11779
  input: CreateSharedEnvironmentVariableInput;
11860
11780
  accountId: Scalars['ID']['input'];
@@ -12152,6 +12072,7 @@ export type UpdatePublishMutation = {
12152
12072
  rolloutControlUpdate?: {
12153
12073
  __typename?: 'Update';
12154
12074
  id: string;
12075
+ group: string;
12155
12076
  } | null;
12156
12077
  fingerprint?: {
12157
12078
  __typename?: 'Fingerprint';
@@ -12242,6 +12163,7 @@ export type SetRolloutPercentageMutation = {
12242
12163
  rolloutControlUpdate?: {
12243
12164
  __typename?: 'Update';
12244
12165
  id: string;
12166
+ group: string;
12245
12167
  } | null;
12246
12168
  fingerprint?: {
12247
12169
  __typename?: 'Fingerprint';
@@ -12811,6 +12733,7 @@ export type BranchesByAppQuery = {
12811
12733
  rolloutControlUpdate?: {
12812
12734
  __typename?: 'Update';
12813
12735
  id: string;
12736
+ group: string;
12814
12737
  } | null;
12815
12738
  fingerprint?: {
12816
12739
  __typename?: 'Fingerprint';
@@ -12929,6 +12852,7 @@ export type ViewBranchesOnUpdateChannelQuery = {
12929
12852
  rolloutControlUpdate?: {
12930
12853
  __typename?: 'Update';
12931
12854
  id: string;
12855
+ group: string;
12932
12856
  } | null;
12933
12857
  fingerprint?: {
12934
12858
  __typename?: 'Fingerprint';
@@ -13438,6 +13362,7 @@ export type ViewUpdateChannelOnAppQuery = {
13438
13362
  rolloutControlUpdate?: {
13439
13363
  __typename?: 'Update';
13440
13364
  id: string;
13365
+ group: string;
13441
13366
  } | null;
13442
13367
  fingerprint?: {
13443
13368
  __typename?: 'Fingerprint';
@@ -13525,6 +13450,7 @@ export type ViewUpdateChannelsOnAppQuery = {
13525
13450
  rolloutControlUpdate?: {
13526
13451
  __typename?: 'Update';
13527
13452
  id: string;
13453
+ group: string;
13528
13454
  } | null;
13529
13455
  fingerprint?: {
13530
13456
  __typename?: 'Fingerprint';
@@ -14049,6 +13975,7 @@ export type ViewUpdatesByGroupQuery = {
14049
13975
  rolloutControlUpdate?: {
14050
13976
  __typename?: 'Update';
14051
13977
  id: string;
13978
+ group: string;
14052
13979
  } | null;
14053
13980
  fingerprint?: {
14054
13981
  __typename?: 'Fingerprint';
@@ -14125,6 +14052,7 @@ export type ViewUpdateGroupsOnBranchQuery = {
14125
14052
  rolloutControlUpdate?: {
14126
14053
  __typename?: 'Update';
14127
14054
  id: string;
14055
+ group: string;
14128
14056
  } | null;
14129
14057
  fingerprint?: {
14130
14058
  __typename?: 'Fingerprint';
@@ -14200,6 +14128,7 @@ export type ViewUpdateGroupsOnAppQuery = {
14200
14128
  rolloutControlUpdate?: {
14201
14129
  __typename?: 'Update';
14202
14130
  id: string;
14131
+ group: string;
14203
14132
  } | null;
14204
14133
  fingerprint?: {
14205
14134
  __typename?: 'Fingerprint';
@@ -14268,6 +14197,7 @@ export type UpdateByIdQuery = {
14268
14197
  rolloutControlUpdate?: {
14269
14198
  __typename?: 'Update';
14270
14199
  id: string;
14200
+ group: string;
14271
14201
  } | null;
14272
14202
  fingerprint?: {
14273
14203
  __typename?: 'Fingerprint';
@@ -15123,6 +15053,7 @@ export type UpdateFragment = {
15123
15053
  rolloutControlUpdate?: {
15124
15054
  __typename?: 'Update';
15125
15055
  id: string;
15056
+ group: string;
15126
15057
  } | null;
15127
15058
  fingerprint?: {
15128
15059
  __typename?: 'Fingerprint';
@@ -15185,6 +15116,7 @@ export type UpdateBranchFragment = {
15185
15116
  rolloutControlUpdate?: {
15186
15117
  __typename?: 'Update';
15187
15118
  id: string;
15119
+ group: string;
15188
15120
  } | null;
15189
15121
  fingerprint?: {
15190
15122
  __typename?: 'Fingerprint';
@@ -16125,6 +16057,44 @@ export type CommonIosAppCredentialsFragment = {
16125
16057
  } | null;
16126
16058
  } | null;
16127
16059
  };
16060
+ export type ScheduleUpdateGroupDeletionMutationVariables = Exact<{
16061
+ group: Scalars['ID']['input'];
16062
+ }>;
16063
+ export type ScheduleUpdateGroupDeletionMutation = {
16064
+ __typename?: 'RootMutation';
16065
+ update: {
16066
+ __typename?: 'UpdateMutation';
16067
+ scheduleUpdateGroupDeletion: {
16068
+ __typename?: 'BackgroundJobReceipt';
16069
+ id: string;
16070
+ state: BackgroundJobState;
16071
+ tries: number;
16072
+ willRetry: boolean;
16073
+ resultId?: string | null;
16074
+ resultType: BackgroundJobResultType;
16075
+ resultData?: any | null;
16076
+ errorCode?: string | null;
16077
+ errorMessage?: string | null;
16078
+ createdAt: any;
16079
+ updatedAt: any;
16080
+ };
16081
+ };
16082
+ };
16083
+ export type MeUserActorQueryVariables = Exact<{
16084
+ [key: string]: never;
16085
+ }>;
16086
+ export type MeUserActorQuery = {
16087
+ __typename?: 'RootQuery';
16088
+ meUserActor?: {
16089
+ __typename?: 'SSOUser';
16090
+ id: string;
16091
+ username: string;
16092
+ } | {
16093
+ __typename?: 'User';
16094
+ id: string;
16095
+ username: string;
16096
+ } | null;
16097
+ };
16128
16098
  export type WorkerDeploymentFragment = {
16129
16099
  __typename?: 'WorkerDeployment';
16130
16100
  id: string;
@@ -6,9 +6,9 @@
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.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.CrashSampleFor = 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.AssetMapSourceType = exports.AppsFilter = exports.AppleTeamType = exports.AppleDeviceClass = exports.AppUploadSessionType = exports.AppStoreConnectUserRole = exports.AppSort = exports.AppPrivacy = exports.AppPlatform = exports.AppInternalDistributionBuildPrivacy = exports.AndroidKeystoreType = exports.AndroidFcmVersion = exports.AndroidBuildType = exports.ActivityTimelineProjectActivityType = exports.AccountUploadSessionType = exports.AccountAppsSortByField = void 0;
10
- 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.ResponseType = exports.ResponseStatusType = exports.ResponseCacheStatus = exports.ResourceClassExperiment = exports.RequestsOrderByField = exports.RequestsOrderByDirection = exports.RequestMethod = exports.ProjectArchiveSourceType = exports.Permission = exports.Order = exports.OnboardingEnvironment = exports.OnboardingDeviceType = exports.OfferType = exports.NotificationType = exports.NotificationEvent = exports.MailchimpTag = exports.MailchimpAudience = exports.LocalBuildArchiveSourceType = 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 = exports.GitHubAppInstallationStatus = exports.GitHubAppInstallationAccountType = exports.GitHubAppEnvironment = exports.FingerprintSourceType = exports.Feature = void 0;
11
- exports.WorkflowRunTriggerEventType = exports.WorkflowRunStatus = exports.WorkflowProjectSourceType = exports.WorkflowJobType = exports.WorkflowJobStatus = exports.WorkflowJobReviewDecision = exports.WorkerLoggerLevel = exports.WorkerDeploymentLogLevel = exports.WorkerDeploymentCrashKind = exports.WebhookType = exports.UserEntityTypeName = exports.UserAgentPlatform = exports.UserAgentOs = exports.UserAgentBrowser = exports.UsageMetricsGranularity = exports.UsageMetricType = exports.UploadSessionType = exports.TargetEntityMutationType = void 0;
9
+ 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.CrashSampleFor = 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.BuildAnnotationType = exports.BackgroundJobState = exports.BackgroundJobResultType = exports.AuthProviderIdentifier = exports.AuthProtocolType = exports.AuditLogsExportFormat = exports.AssetMetadataStatus = exports.AssetMapSourceType = exports.AppsFilter = exports.AppleTeamType = exports.AppleDeviceClass = exports.AppUploadSessionType = exports.AppStoreConnectUserRole = exports.AppSort = exports.AppPrivacy = exports.AppPlatform = exports.AppInternalDistributionBuildPrivacy = exports.AndroidKeystoreType = exports.AndroidFcmVersion = exports.AndroidBuildType = exports.ActivityTimelineProjectActivityType = exports.AccountUploadSessionType = exports.AccountAppsSortByField = void 0;
10
+ 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.ResponseType = exports.ResponseStatusType = exports.ResponseCacheStatus = exports.ResourceClassExperiment = exports.RequestsOrderByField = exports.RequestsOrderByDirection = exports.RequestMethod = exports.ProjectArchiveSourceType = exports.Permission = exports.Order = exports.OnboardingEnvironment = exports.OnboardingDeviceType = exports.OfferType = exports.NotificationType = exports.NotificationEvent = exports.MailchimpTag = exports.MailchimpAudience = exports.LocalBuildArchiveSourceType = 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 = exports.GitHubAppInstallationStatus = exports.GitHubAppInstallationAccountType = exports.GitHubAppEnvironment = exports.FingerprintSourceType = exports.Feature = exports.Experiment = void 0;
11
+ exports.WorkflowRunTriggerEventType = exports.WorkflowRunStatus = exports.WorkflowProjectSourceType = exports.WorkflowJobType = exports.WorkflowJobStatus = exports.WorkflowJobReviewDecision = exports.WorkflowArtifactStorageType = exports.WorkerLoggerLevel = exports.WorkerDeploymentLogLevel = exports.WorkerDeploymentCrashKind = exports.WebhookType = exports.UserEntityTypeName = exports.UserAgentPlatform = exports.UserAgentOs = exports.UserAgentBrowser = exports.UsageMetricsGranularity = exports.UsageMetricType = exports.UploadSessionType = exports.TargetEntityMutationType = exports.SubmissionStatus = void 0;
12
12
  var AccountAppsSortByField;
13
13
  (function (AccountAppsSortByField) {
14
14
  AccountAppsSortByField["LatestActivityTime"] = "LATEST_ACTIVITY_TIME";
@@ -157,6 +157,12 @@ var BackgroundJobState;
157
157
  BackgroundJobState["Queued"] = "QUEUED";
158
158
  BackgroundJobState["Success"] = "SUCCESS";
159
159
  })(BackgroundJobState || (exports.BackgroundJobState = BackgroundJobState = {}));
160
+ var BuildAnnotationType;
161
+ (function (BuildAnnotationType) {
162
+ BuildAnnotationType["Error"] = "ERROR";
163
+ BuildAnnotationType["Info"] = "INFO";
164
+ BuildAnnotationType["Warning"] = "WARNING";
165
+ })(BuildAnnotationType || (exports.BuildAnnotationType = BuildAnnotationType = {}));
160
166
  var BuildCredentialsSource;
161
167
  (function (BuildCredentialsSource) {
162
168
  BuildCredentialsSource["Local"] = "LOCAL";
@@ -696,6 +702,7 @@ var StatuspageServiceName;
696
702
  StatuspageServiceName["EasBuild"] = "EAS_BUILD";
697
703
  StatuspageServiceName["EasSubmit"] = "EAS_SUBMIT";
698
704
  StatuspageServiceName["EasUpdate"] = "EAS_UPDATE";
705
+ StatuspageServiceName["EasWorkflows"] = "EAS_WORKFLOWS";
699
706
  StatuspageServiceName["GithubApiRequests"] = "GITHUB_API_REQUESTS";
700
707
  StatuspageServiceName["GithubWebhooks"] = "GITHUB_WEBHOOKS";
701
708
  })(StatuspageServiceName || (exports.StatuspageServiceName = StatuspageServiceName = {}));
@@ -862,6 +869,11 @@ var WorkerLoggerLevel;
862
869
  WorkerLoggerLevel["Trace"] = "TRACE";
863
870
  WorkerLoggerLevel["Warn"] = "WARN";
864
871
  })(WorkerLoggerLevel || (exports.WorkerLoggerLevel = WorkerLoggerLevel = {}));
872
+ var WorkflowArtifactStorageType;
873
+ (function (WorkflowArtifactStorageType) {
874
+ WorkflowArtifactStorageType["Gcs"] = "GCS";
875
+ WorkflowArtifactStorageType["R2"] = "R2";
876
+ })(WorkflowArtifactStorageType || (exports.WorkflowArtifactStorageType = WorkflowArtifactStorageType = {}));
865
877
  var WorkflowJobReviewDecision;
866
878
  (function (WorkflowJobReviewDecision) {
867
879
  WorkflowJobReviewDecision["Approved"] = "APPROVED";
@@ -17,8 +17,6 @@ export type EnvironmentVariablePushInput = {
17
17
  overwrite?: boolean;
18
18
  };
19
19
  export declare const EnvironmentVariableMutation: {
20
- linkSharedEnvironmentVariableAsync(graphqlClient: ExpoGraphqlClient, environmentVariableId: string, appId: string, environment?: EnvironmentVariableEnvironment): Promise<EnvironmentVariableFragment>;
21
- unlinkSharedEnvironmentVariableAsync(graphqlClient: ExpoGraphqlClient, environmentVariableId: string, appId: string, environment?: EnvironmentVariableEnvironment): Promise<EnvironmentVariableFragment>;
22
20
  createSharedVariableAsync(graphqlClient: ExpoGraphqlClient, input: CreateVariableArgs, accountId: string): Promise<EnvironmentVariableFragment>;
23
21
  createForAppAsync(graphqlClient: ExpoGraphqlClient, input: CreateVariableArgs, appId: string): Promise<EnvironmentVariableFragment>;
24
22
  updateAsync(graphqlClient: ExpoGraphqlClient, input: Partial<CreateVariableArgs> & {
@@ -7,54 +7,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
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
10
  async createSharedVariableAsync(graphqlClient, input, accountId) {
59
11
  const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
60
12
  .mutation((0, graphql_tag_1.default) `
@@ -39,6 +39,7 @@ exports.UpdateFragmentNode = (0, graphql_tag_1.default) `
39
39
  rolloutPercentage
40
40
  rolloutControlUpdate {
41
41
  id
42
+ group
42
43
  }
43
44
  fingerprint {
44
45
  id
@@ -644,6 +644,7 @@ async function getRuntimeToUpdateRolloutInfoGroupMappingAsync(graphqlClient, { a
644
644
  }
645
645
  exports.getRuntimeToUpdateRolloutInfoGroupMappingAsync = getRuntimeToUpdateRolloutInfoGroupMappingAsync;
646
646
  async function getUpdateRolloutInfoGroupAsync(graphqlClient, { appId, branchName, rolloutPercentage, runtimeVersion, platforms, }) {
647
+ // note that this could return control updates in different update groups if the update groups only have a single platform
647
648
  return Object.fromEntries(await Promise.all(platforms.map(async (platform) => {
648
649
  const updateIdForPlatform = await BranchQuery_1.BranchQuery.getLatestUpdateIdOnBranchAsync(graphqlClient, {
649
650
  appId,
@@ -0,0 +1,5 @@
1
+ import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
2
+ import { BackgroundJobReceiptDataFragment } from '../graphql/generated';
3
+ export declare function scheduleUpdateGroupDeletionAsync(graphqlClient: ExpoGraphqlClient, { group, }: {
4
+ group: string;
5
+ }): Promise<BackgroundJobReceiptDataFragment>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.scheduleUpdateGroupDeletionAsync = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
6
+ const client_1 = require("../graphql/client");
7
+ const BackgroundJobReceipt_1 = require("../graphql/types/BackgroundJobReceipt");
8
+ async function scheduleUpdateGroupDeletionAsync(graphqlClient, { group, }) {
9
+ const result = await (0, client_1.withErrorHandlingAsync)(graphqlClient
10
+ .mutation((0, graphql_tag_1.default) `
11
+ mutation ScheduleUpdateGroupDeletion($group: ID!) {
12
+ update {
13
+ scheduleUpdateGroupDeletion(group: $group) {
14
+ id
15
+ ...BackgroundJobReceiptData
16
+ }
17
+ }
18
+ }
19
+ ${BackgroundJobReceipt_1.BackgroundJobReceiptNode}
20
+ `, { group })
21
+ .toPromise());
22
+ return result.update.scheduleUpdateGroupDeletion;
23
+ }
24
+ exports.scheduleUpdateGroupDeletionAsync = scheduleUpdateGroupDeletionAsync;
@@ -1,8 +1,10 @@
1
1
  import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
2
2
  import { PaginatedQueryOptions } from '../commandUtils/pagination';
3
- import { UpdateFragment } from '../graphql/generated';
3
+ import { RuntimeFragment, UpdateFragment } from '../graphql/generated';
4
+ import { UpdatePublishPlatform } from '../project/publish';
4
5
  export declare const UPDATES_LIMIT = 50;
5
6
  export declare const UPDATE_GROUPS_LIMIT = 25;
7
+ export declare const RUNTIME_VERSIONS_LIMIT = 25;
6
8
  export declare function listAndRenderUpdateGroupsOnAppAsync(graphqlClient: ExpoGraphqlClient, { projectId, paginatedQueryOptions, }: {
7
9
  projectId: string;
8
10
  paginatedQueryOptions: PaginatedQueryOptions;
@@ -12,8 +14,18 @@ export declare function listAndRenderUpdateGroupsOnBranchAsync(graphqlClient: Ex
12
14
  branchName: string;
13
15
  paginatedQueryOptions: PaginatedQueryOptions;
14
16
  }): Promise<void>;
17
+ export declare function selectRuntimeAndGetLatestUpdateGroupForEachPublishPlatformOnBranchAsync(graphqlClient: ExpoGraphqlClient, { projectId, branchName, paginatedQueryOptions, }: {
18
+ projectId: string;
19
+ branchName: string;
20
+ paginatedQueryOptions: PaginatedQueryOptions;
21
+ }): Promise<Record<UpdatePublishPlatform, UpdateFragment[] | undefined>>;
15
22
  export declare function selectUpdateGroupOnBranchAsync(graphqlClient: ExpoGraphqlClient, { projectId, branchName, paginatedQueryOptions, }: {
16
23
  projectId: string;
17
24
  branchName: string;
18
25
  paginatedQueryOptions: PaginatedQueryOptions;
19
26
  }): Promise<UpdateFragment[]>;
27
+ export declare function selectRuntimeOnBranchAsync(graphqlClient: ExpoGraphqlClient, { appId, branchName, batchSize, }: {
28
+ appId: string;
29
+ branchName: string;
30
+ batchSize?: number;
31
+ }): Promise<RuntimeFragment | null>;