eas-cli 3.18.0 → 3.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/README.md +55 -55
  2. package/build/branch/actions/SelectBranch.d.ts +33 -0
  3. package/build/branch/actions/SelectBranch.js +67 -0
  4. package/build/build/local.js +1 -1
  5. package/build/build/runBuildAndSubmit.js +0 -2
  6. package/build/channel/actions/SelectChannel.d.ts +16 -0
  7. package/build/channel/actions/SelectChannel.js +42 -24
  8. package/build/channel/branch-mapping.d.ts +17 -1
  9. package/build/channel/branch-mapping.js +48 -7
  10. package/build/channel/queries.d.ts +1 -6
  11. package/build/channel/queries.js +1 -25
  12. package/build/commands/build/version/get.js +0 -1
  13. package/build/commands/build/version/sync.js +0 -1
  14. package/build/commands/channel/rollout-preview.d.ts +32 -0
  15. package/build/commands/channel/rollout-preview.js +109 -0
  16. package/build/commands/metadata/lint.js +0 -1
  17. package/build/commands/metadata/pull.js +0 -1
  18. package/build/commands/metadata/push.js +0 -1
  19. package/build/commands/submit.js +0 -1
  20. package/build/commands/update/republish.js +23 -74
  21. package/build/graphql/generated.d.ts +192 -18
  22. package/build/graphql/generated.js +8 -2
  23. package/build/graphql/queries/BranchQuery.d.ts +3 -2
  24. package/build/graphql/queries/BranchQuery.js +43 -1
  25. package/build/graphql/queries/ChannelQuery.d.ts +3 -2
  26. package/build/graphql/queries/ChannelQuery.js +19 -5
  27. package/build/graphql/queries/RuntimeQuery.d.ts +6 -0
  28. package/build/graphql/queries/RuntimeQuery.js +70 -0
  29. package/build/graphql/types/Runtime.d.ts +1 -0
  30. package/build/graphql/types/Runtime.js +11 -0
  31. package/build/graphql/types/UpdateBranch.js +3 -1
  32. package/build/graphql/types/UpdateBranchBasicInfo.d.ts +1 -0
  33. package/build/graphql/types/UpdateBranchBasicInfo.js +11 -0
  34. package/build/metadata/apple/config/reader.js +1 -1
  35. package/build/rollout/actions/CreateRollout.d.ts +23 -0
  36. package/build/rollout/actions/CreateRollout.js +153 -0
  37. package/build/rollout/actions/EditRollout.d.ts +17 -0
  38. package/build/rollout/actions/EditRollout.js +79 -0
  39. package/build/rollout/actions/EndRollout.d.ts +24 -0
  40. package/build/rollout/actions/EndRollout.js +164 -0
  41. package/build/rollout/actions/ManageRollout.d.ts +24 -0
  42. package/build/rollout/actions/ManageRollout.js +78 -0
  43. package/build/rollout/actions/NonInteractiveRollout.d.ts +18 -0
  44. package/build/rollout/actions/NonInteractiveRollout.js +46 -0
  45. package/build/rollout/actions/RolloutMainMenu.d.ts +28 -0
  46. package/build/rollout/actions/RolloutMainMenu.js +110 -0
  47. package/build/rollout/actions/SelectRollout.js +18 -8
  48. package/build/rollout/actions/SelectRuntime.d.ts +36 -0
  49. package/build/rollout/actions/SelectRuntime.js +167 -0
  50. package/build/rollout/branch-mapping.d.ts +52 -4
  51. package/build/rollout/branch-mapping.js +68 -19
  52. package/build/rollout/utils.d.ts +9 -2
  53. package/build/rollout/utils.js +66 -21
  54. package/build/update/configure.d.ts +6 -1
  55. package/build/update/configure.js +18 -8
  56. package/build/update/republish.d.ts +26 -0
  57. package/build/update/republish.js +83 -0
  58. package/build/utils/profiles.d.ts +1 -2
  59. package/build/utils/profiles.js +3 -35
  60. package/build/utils/relay.d.ts +80 -15
  61. package/build/utils/relay.js +211 -28
  62. package/oclif.manifest.json +1 -1
  63. package/package.json +2 -2
@@ -857,6 +857,7 @@ export type App = Project & {
857
857
  /** Environment secrets for an app */
858
858
  environmentSecrets: Array<EnvironmentSecret>;
859
859
  fullName: Scalars['String'];
860
+ githubBuildTriggers: Array<GitHubBuildTrigger>;
860
861
  githubRepository?: Maybe<GitHubRepository>;
861
862
  githubRepositorySettings?: Maybe<GitHubRepositorySettings>;
862
863
  /** githubUrl field from most recent classic update manifest */
@@ -1148,12 +1149,15 @@ export type AppInsights = {
1148
1149
  };
1149
1150
  export type AppInsightsTotalUniqueUsersArgs = {
1150
1151
  timespan: InsightsTimespan;
1152
+ useDeprecatedBackend?: InputMaybe<Scalars['Boolean']>;
1151
1153
  };
1152
1154
  export type AppInsightsUniqueUsersByAppVersionOverTimeArgs = {
1153
1155
  timespan: InsightsTimespan;
1156
+ useDeprecatedBackend?: InputMaybe<Scalars['Boolean']>;
1154
1157
  };
1155
1158
  export type AppInsightsUniqueUsersByPlatformOverTimeArgs = {
1156
1159
  timespan: InsightsTimespan;
1160
+ useDeprecatedBackend?: InputMaybe<Scalars['Boolean']>;
1157
1161
  };
1158
1162
  export type AppMutation = {
1159
1163
  __typename?: 'AppMutation';
@@ -2182,6 +2186,18 @@ export type CreateGitHubAppInstallationInput = {
2182
2186
  accountId: Scalars['ID'];
2183
2187
  installationIdentifier: Scalars['Int'];
2184
2188
  };
2189
+ export type CreateGitHubBuildTriggerInput = {
2190
+ appId: Scalars['ID'];
2191
+ autoSubmit: Scalars['Boolean'];
2192
+ buildProfile: Scalars['String'];
2193
+ isActive: Scalars['Boolean'];
2194
+ platform: AppPlatform;
2195
+ /** A branch or tag name, or a wildcard pattern where the code change originates from. For example, `main` or `release/*`. */
2196
+ sourcePattern: Scalars['String'];
2197
+ /** A branch name or a wildcard pattern that the pull request targets. For example, `main` or `release/*`. */
2198
+ targetPattern?: InputMaybe<Scalars['String']>;
2199
+ type: GitHubBuildTriggerType;
2200
+ };
2185
2201
  export type CreateGitHubRepositoryInput = {
2186
2202
  appId: Scalars['ID'];
2187
2203
  githubAppInstallationId: Scalars['ID'];
@@ -2596,6 +2612,45 @@ export type GitHubBuildInput = {
2596
2612
  gitRef: Scalars['String'];
2597
2613
  platform: AppPlatform;
2598
2614
  };
2615
+ export type GitHubBuildTrigger = {
2616
+ __typename?: 'GitHubBuildTrigger';
2617
+ app: App;
2618
+ autoSubmit: Scalars['Boolean'];
2619
+ buildProfile: Scalars['String'];
2620
+ createdAt: Scalars['DateTime'];
2621
+ id: Scalars['ID'];
2622
+ isActive: Scalars['Boolean'];
2623
+ lastRunAt?: Maybe<Scalars['DateTime']>;
2624
+ platform: AppPlatform;
2625
+ sourcePattern: Scalars['String'];
2626
+ targetPattern?: Maybe<Scalars['String']>;
2627
+ type: GitHubBuildTriggerType;
2628
+ updatedAt: Scalars['DateTime'];
2629
+ };
2630
+ export type GitHubBuildTriggerMutation = {
2631
+ __typename?: 'GitHubBuildTriggerMutation';
2632
+ /** Create GitHub build trigger for an App */
2633
+ createGitHubBuildTrigger: GitHubBuildTrigger;
2634
+ /** Delete GitHub build trigger by ID */
2635
+ deleteGitHubBuildTrigger: GitHubBuildTrigger;
2636
+ /** Update a GitHub build trigger by ID */
2637
+ updateGitHubBuildTrigger: GitHubBuildTrigger;
2638
+ };
2639
+ export type GitHubBuildTriggerMutationCreateGitHubBuildTriggerArgs = {
2640
+ githubBuildTriggerData: CreateGitHubBuildTriggerInput;
2641
+ };
2642
+ export type GitHubBuildTriggerMutationDeleteGitHubBuildTriggerArgs = {
2643
+ githubBuildTriggerId: Scalars['ID'];
2644
+ };
2645
+ export type GitHubBuildTriggerMutationUpdateGitHubBuildTriggerArgs = {
2646
+ githubBuildTriggerData: UpdateGitHubBuildTriggerInput;
2647
+ githubBuildTriggerId: Scalars['ID'];
2648
+ };
2649
+ export declare enum GitHubBuildTriggerType {
2650
+ PullRequestUpdated = "PULL_REQUEST_UPDATED",
2651
+ PushToBranch = "PUSH_TO_BRANCH",
2652
+ TagUpdated = "TAG_UPDATED"
2653
+ }
2599
2654
  export type GitHubRepository = {
2600
2655
  __typename?: 'GitHubRepository';
2601
2656
  app: App;
@@ -3142,6 +3197,7 @@ export type Notification = {
3142
3197
  createdAt: Scalars['DateTime'];
3143
3198
  event: NotificationEvent;
3144
3199
  id: Scalars['ID'];
3200
+ isRead: Scalars['Boolean'];
3145
3201
  metadata?: Maybe<NotificationMetadata>;
3146
3202
  type: NotificationType;
3147
3203
  updatedAt: Scalars['DateTime'];
@@ -3441,6 +3497,8 @@ export type RootMutation = {
3441
3497
  githubApp: GitHubAppMutation;
3442
3498
  /** Mutations for GitHub App installations */
3443
3499
  githubAppInstallation: GitHubAppInstallationMutation;
3500
+ /** Mutations for GitHub build triggers */
3501
+ githubBuildTrigger: GitHubBuildTriggerMutation;
3444
3502
  /** Mutations for GitHub repositories */
3445
3503
  githubRepository: GitHubRepositoryMutation;
3446
3504
  /** Mutations for GitHub repository settings */
@@ -3542,14 +3600,15 @@ export type RootQuery = {
3542
3600
  meUserActor?: Maybe<UserActor>;
3543
3601
  project: ProjectQuery;
3544
3602
  snack: SnackQuery;
3545
- /** Top-level query object for querying SSO Users. */
3546
- ssoUser: SsoUserQuery;
3547
3603
  /** Top-level query object for querying Expo status page services. */
3548
3604
  statuspageService: StatuspageServiceQuery;
3549
3605
  submissions: SubmissionQuery;
3550
3606
  /** fetch all updates in a group */
3551
3607
  updatesByGroup: Array<Update>;
3552
- /** Top-level query object for querying Users. */
3608
+ /**
3609
+ * Top-level query object for querying Users.
3610
+ * @deprecated Public user queries are no longer supported
3611
+ */
3553
3612
  user: UserQuery;
3554
3613
  /** Top-level query object for querying UserActors. */
3555
3614
  userActor: UserActorQuery;
@@ -3594,6 +3653,20 @@ export type Runtime = {
3594
3653
  id: Scalars['ID'];
3595
3654
  version: Scalars['String'];
3596
3655
  };
3656
+ export type RuntimeEdge = {
3657
+ __typename?: 'RuntimeEdge';
3658
+ cursor: Scalars['String'];
3659
+ node: Runtime;
3660
+ };
3661
+ export type RuntimeFilterInput = {
3662
+ /** Only return runtimes shared with this branch */
3663
+ branchId?: InputMaybe<Scalars['String']>;
3664
+ };
3665
+ export type RuntimesConnection = {
3666
+ __typename?: 'RuntimesConnection';
3667
+ edges: Array<RuntimeEdge>;
3668
+ pageInfo: PageInfo;
3669
+ };
3597
3670
  /** Represents a human SSO (not robot) actor. */
3598
3671
  export type SsoUser = Actor & UserActor & {
3599
3672
  __typename?: 'SSOUser';
@@ -3671,19 +3744,6 @@ export type SsoUserDataInput = {
3671
3744
  firstName?: InputMaybe<Scalars['String']>;
3672
3745
  lastName?: InputMaybe<Scalars['String']>;
3673
3746
  };
3674
- export type SsoUserQuery = {
3675
- __typename?: 'SSOUserQuery';
3676
- /** Query an SSOUser by ID */
3677
- byId: SsoUser;
3678
- /** Query an SSOUser by username */
3679
- byUsername: SsoUser;
3680
- };
3681
- export type SsoUserQueryByIdArgs = {
3682
- userId: Scalars['ID'];
3683
- };
3684
- export type SsoUserQueryByUsernameArgs = {
3685
- username: Scalars['String'];
3686
- };
3687
3747
  export type SecondFactorBooleanResult = {
3688
3748
  __typename?: 'SecondFactorBooleanResult';
3689
3749
  success: Scalars['Boolean'];
@@ -4064,10 +4124,18 @@ export type UpdateBranch = {
4064
4124
  createdAt: Scalars['DateTime'];
4065
4125
  id: Scalars['ID'];
4066
4126
  name: Scalars['String'];
4127
+ runtimes: RuntimesConnection;
4067
4128
  updateGroups: Array<Array<Update>>;
4068
4129
  updatedAt: Scalars['DateTime'];
4069
4130
  updates: Array<Update>;
4070
4131
  };
4132
+ export type UpdateBranchRuntimesArgs = {
4133
+ after?: InputMaybe<Scalars['String']>;
4134
+ before?: InputMaybe<Scalars['String']>;
4135
+ filter?: InputMaybe<RuntimeFilterInput>;
4136
+ first?: InputMaybe<Scalars['Int']>;
4137
+ last?: InputMaybe<Scalars['Int']>;
4138
+ };
4071
4139
  export type UpdateBranchUpdateGroupsArgs = {
4072
4140
  filter?: InputMaybe<UpdatesFilter>;
4073
4141
  limit: Scalars['Int'];
@@ -4151,6 +4219,15 @@ export type UpdateChannelMutationEditUpdateChannelArgs = {
4151
4219
  branchMapping: Scalars['String'];
4152
4220
  channelId: Scalars['ID'];
4153
4221
  };
4222
+ export type UpdateGitHubBuildTriggerInput = {
4223
+ autoSubmit: Scalars['Boolean'];
4224
+ buildProfile: Scalars['String'];
4225
+ isActive: Scalars['Boolean'];
4226
+ platform: AppPlatform;
4227
+ sourcePattern: Scalars['String'];
4228
+ targetPattern?: InputMaybe<Scalars['String']>;
4229
+ type: GitHubBuildTriggerType;
4230
+ };
4154
4231
  export type UpdateGitHubRepositorySettingsInput = {
4155
4232
  baseDirectory: Scalars['String'];
4156
4233
  };
@@ -4533,9 +4610,15 @@ export type UserPermission = {
4533
4610
  };
4534
4611
  export type UserQuery = {
4535
4612
  __typename?: 'UserQuery';
4536
- /** Query a User by ID */
4613
+ /**
4614
+ * Query a User by ID
4615
+ * @deprecated Public user queries are no longer supported
4616
+ */
4537
4617
  byId: User;
4538
- /** Query a User by username */
4618
+ /**
4619
+ * Query a User by username
4620
+ * @deprecated Public user queries are no longer supported
4621
+ */
4539
4622
  byUsername: User;
4540
4623
  };
4541
4624
  export type UserQueryByIdArgs = {
@@ -8427,6 +8510,42 @@ export type BranchesByAppQuery = {
8427
8510
  };
8428
8511
  };
8429
8512
  };
8513
+ export type BranchesBasicPaginatedOnAppQueryVariables = Exact<{
8514
+ appId: Scalars['String'];
8515
+ first?: InputMaybe<Scalars['Int']>;
8516
+ after?: InputMaybe<Scalars['String']>;
8517
+ last?: InputMaybe<Scalars['Int']>;
8518
+ before?: InputMaybe<Scalars['String']>;
8519
+ }>;
8520
+ export type BranchesBasicPaginatedOnAppQuery = {
8521
+ __typename?: 'RootQuery';
8522
+ app: {
8523
+ __typename?: 'AppQuery';
8524
+ byId: {
8525
+ __typename?: 'App';
8526
+ id: string;
8527
+ branchesPaginated: {
8528
+ __typename?: 'AppBranchesConnection';
8529
+ edges: Array<{
8530
+ __typename?: 'AppBranchEdge';
8531
+ cursor: string;
8532
+ node: {
8533
+ __typename?: 'UpdateBranch';
8534
+ id: string;
8535
+ name: string;
8536
+ };
8537
+ }>;
8538
+ pageInfo: {
8539
+ __typename?: 'PageInfo';
8540
+ hasNextPage: boolean;
8541
+ hasPreviousPage: boolean;
8542
+ startCursor?: string | null;
8543
+ endCursor?: string | null;
8544
+ };
8545
+ };
8546
+ };
8547
+ };
8548
+ };
8430
8549
  export type ViewBranchesOnUpdateChannelQueryVariables = Exact<{
8431
8550
  appId: Scalars['String'];
8432
8551
  channelName: Scalars['String'];
@@ -8894,6 +9013,8 @@ export type ViewUpdateChannelsPaginatedOnAppQueryVariables = Exact<{
8894
9013
  appId: Scalars['String'];
8895
9014
  first?: InputMaybe<Scalars['Int']>;
8896
9015
  after?: InputMaybe<Scalars['String']>;
9016
+ last?: InputMaybe<Scalars['Int']>;
9017
+ before?: InputMaybe<Scalars['String']>;
8897
9018
  }>;
8898
9019
  export type ViewUpdateChannelsPaginatedOnAppQuery = {
8899
9020
  __typename?: 'RootQuery';
@@ -8906,6 +9027,7 @@ export type ViewUpdateChannelsPaginatedOnAppQuery = {
8906
9027
  __typename?: 'AppChannelsConnection';
8907
9028
  edges: Array<{
8908
9029
  __typename?: 'AppChannelEdge';
9030
+ cursor: string;
8909
9031
  node: {
8910
9032
  __typename?: 'UpdateChannel';
8911
9033
  id: string;
@@ -8983,6 +9105,48 @@ export type GetAssetLimitPerUpdateGroupForAppQuery = {
8983
9105
  };
8984
9106
  };
8985
9107
  };
9108
+ export type ViewRuntimesOnBranchQueryVariables = Exact<{
9109
+ appId: Scalars['String'];
9110
+ name: Scalars['String'];
9111
+ first?: InputMaybe<Scalars['Int']>;
9112
+ after?: InputMaybe<Scalars['String']>;
9113
+ last?: InputMaybe<Scalars['Int']>;
9114
+ before?: InputMaybe<Scalars['String']>;
9115
+ filter?: InputMaybe<RuntimeFilterInput>;
9116
+ }>;
9117
+ export type ViewRuntimesOnBranchQuery = {
9118
+ __typename?: 'RootQuery';
9119
+ app: {
9120
+ __typename?: 'AppQuery';
9121
+ byId: {
9122
+ __typename?: 'App';
9123
+ id: string;
9124
+ updateBranchByName?: {
9125
+ __typename?: 'UpdateBranch';
9126
+ id: string;
9127
+ runtimes: {
9128
+ __typename?: 'RuntimesConnection';
9129
+ edges: Array<{
9130
+ __typename?: 'RuntimeEdge';
9131
+ cursor: string;
9132
+ node: {
9133
+ __typename?: 'Runtime';
9134
+ id: string;
9135
+ version: string;
9136
+ };
9137
+ }>;
9138
+ pageInfo: {
9139
+ __typename?: 'PageInfo';
9140
+ hasNextPage: boolean;
9141
+ hasPreviousPage: boolean;
9142
+ startCursor?: string | null;
9143
+ endCursor?: string | null;
9144
+ };
9145
+ };
9146
+ } | null;
9147
+ };
9148
+ };
9149
+ };
8986
9150
  export type StatuspageServiceByServiceNamesQueryVariables = Exact<{
8987
9151
  serviceNames: Array<StatuspageServiceName> | StatuspageServiceName;
8988
9152
  }>;
@@ -9637,6 +9801,11 @@ export type EnvironmentSecretFragment = {
9637
9801
  type: EnvironmentSecretType;
9638
9802
  createdAt: any;
9639
9803
  };
9804
+ export type RuntimeFragment = {
9805
+ __typename?: 'Runtime';
9806
+ id: string;
9807
+ version: string;
9808
+ };
9640
9809
  export type StatuspageServiceFragment = {
9641
9810
  __typename?: 'StatuspageService';
9642
9811
  id: string;
@@ -9765,6 +9934,11 @@ export type UpdateBranchFragment = {
9765
9934
  } | null;
9766
9935
  }>;
9767
9936
  };
9937
+ export type UpdateBranchBasicInfoFragment = {
9938
+ __typename?: 'UpdateBranch';
9939
+ id: string;
9940
+ name: string;
9941
+ };
9768
9942
  export type UpdateChannelBasicInfoFragment = {
9769
9943
  __typename?: 'UpdateChannel';
9770
9944
  id: string;
@@ -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.ProjectArchiveSourceType = exports.Permission = exports.Order = exports.OfferType = exports.NotificationType = exports.NotificationEvent = exports.MailchimpTag = exports.MailchimpAudience = exports.IosSchemeBuildConfiguration = exports.IosManagedBuildType = exports.IosDistributionType = exports.IosBuildType = exports.InvoiceDiscountType = exports.GitHubAppInstallationStatus = exports.GitHubAppEnvironment = exports.Feature = exports.EnvironmentSecretType = exports.EasTotalPlanEnablementUnit = exports.EasServiceMetric = exports.EasService = exports.EasBuildDeprecationInfoType = exports.EasBuildBillingResourceClass = exports.DistributionType = exports.BuildWorkflow = exports.BuildTrigger = exports.BuildStatus = exports.BuildRetryDisabledReason = exports.BuildResourceClass = exports.BuildPriority = exports.BuildMode = exports.BuildLimitThresholdExceededMetadataType = exports.BuildJobStatus = exports.BuildJobLogsFormat = exports.BuildIosEnterpriseProvisioning = exports.BuildCredentialsSource = exports.BackgroundJobState = exports.BackgroundJobResultType = exports.AuthProtocolType = exports.AssetMetadataStatus = exports.AppsFilter = exports.AppleDeviceClass = exports.AppStoreConnectUserRole = exports.AppSort = exports.AppPrivacy = exports.AppPlatform = exports.AndroidKeystoreType = exports.AndroidFcmVersion = exports.AndroidBuildType = exports.ActivityTimelineProjectActivityType = exports.AccountAppsSortByField = void 0;
10
- exports.WebhookType = exports.UsageMetricsGranularity = exports.UsageMetricType = exports.UploadSessionType = exports.SubmissionStatus = exports.SubmissionArchiveSourceType = exports.SubmissionAndroidTrack = exports.SubmissionAndroidReleaseStatus = exports.SubmissionAndroidArchiveType = exports.StatuspageServiceStatus = exports.StatuspageServiceName = exports.StatuspageIncidentStatus = exports.StatuspageIncidentImpact = exports.StandardOffer = exports.SecondFactorMethod = exports.Role = void 0;
9
+ exports.Permission = exports.Order = exports.OfferType = exports.NotificationType = exports.NotificationEvent = exports.MailchimpTag = exports.MailchimpAudience = exports.IosSchemeBuildConfiguration = exports.IosManagedBuildType = exports.IosDistributionType = exports.IosBuildType = exports.InvoiceDiscountType = exports.GitHubBuildTriggerType = exports.GitHubAppInstallationStatus = exports.GitHubAppEnvironment = exports.Feature = exports.EnvironmentSecretType = exports.EasTotalPlanEnablementUnit = exports.EasServiceMetric = exports.EasService = exports.EasBuildDeprecationInfoType = exports.EasBuildBillingResourceClass = exports.DistributionType = exports.BuildWorkflow = exports.BuildTrigger = exports.BuildStatus = exports.BuildRetryDisabledReason = exports.BuildResourceClass = exports.BuildPriority = exports.BuildMode = exports.BuildLimitThresholdExceededMetadataType = exports.BuildJobStatus = exports.BuildJobLogsFormat = exports.BuildIosEnterpriseProvisioning = exports.BuildCredentialsSource = exports.BackgroundJobState = exports.BackgroundJobResultType = exports.AuthProtocolType = exports.AssetMetadataStatus = exports.AppsFilter = exports.AppleDeviceClass = exports.AppStoreConnectUserRole = exports.AppSort = exports.AppPrivacy = exports.AppPlatform = exports.AndroidKeystoreType = exports.AndroidFcmVersion = exports.AndroidBuildType = exports.ActivityTimelineProjectActivityType = exports.AccountAppsSortByField = void 0;
10
+ exports.WebhookType = exports.UsageMetricsGranularity = exports.UsageMetricType = exports.UploadSessionType = 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.ProjectArchiveSourceType = void 0;
11
11
  var AccountAppsSortByField;
12
12
  (function (AccountAppsSortByField) {
13
13
  AccountAppsSortByField["LatestActivityTime"] = "LATEST_ACTIVITY_TIME";
@@ -267,6 +267,12 @@ var GitHubAppInstallationStatus;
267
267
  GitHubAppInstallationStatus["NotInstalled"] = "NOT_INSTALLED";
268
268
  GitHubAppInstallationStatus["Suspended"] = "SUSPENDED";
269
269
  })(GitHubAppInstallationStatus = exports.GitHubAppInstallationStatus || (exports.GitHubAppInstallationStatus = {}));
270
+ var GitHubBuildTriggerType;
271
+ (function (GitHubBuildTriggerType) {
272
+ GitHubBuildTriggerType["PullRequestUpdated"] = "PULL_REQUEST_UPDATED";
273
+ GitHubBuildTriggerType["PushToBranch"] = "PUSH_TO_BRANCH";
274
+ GitHubBuildTriggerType["TagUpdated"] = "TAG_UPDATED";
275
+ })(GitHubBuildTriggerType = exports.GitHubBuildTriggerType || (exports.GitHubBuildTriggerType = {}));
270
276
  var InvoiceDiscountType;
271
277
  (function (InvoiceDiscountType) {
272
278
  InvoiceDiscountType["Amount"] = "AMOUNT";
@@ -1,8 +1,9 @@
1
1
  import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
2
- import { BranchesByAppQueryVariables, UpdateBranchFragment, ViewBranchQuery, ViewBranchQueryVariables, ViewBranchesOnUpdateChannelQuery, ViewBranchesOnUpdateChannelQueryVariables } from '../generated';
2
+ import { 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
- getBranchByNameAsync(graphqlClient: ExpoGraphqlClient, { appId, name }: ViewBranchQueryVariables): Promise<NonNullable<ViewBranchQuery['app']['byId']['updateBranchByName']>>;
5
+ getBranchByNameAsync(graphqlClient: ExpoGraphqlClient, { appId, name }: ViewBranchQueryVariables): Promise<UpdateBranchBasicInfoFragment>;
6
6
  listBranchesOnAppAsync(graphqlClient: ExpoGraphqlClient, { appId, limit, offset }: BranchesByAppQueryVariables): Promise<UpdateBranchFragment[]>;
7
+ listBranchesBasicInfoPaginatedOnAppAsync(graphqlClient: ExpoGraphqlClient, { appId, first, after, last, before }: BranchesBasicPaginatedOnAppQueryVariables): Promise<BranchesBasicPaginatedOnAppQuery['app']['byId']['branchesPaginated']>;
7
8
  listBranchesOnChannelAsync(graphqlClient: ExpoGraphqlClient, { appId, channelName, offset, limit }: ViewBranchesOnUpdateChannelQueryVariables): Promise<UpdateBranchOnChannelObject[]>;
8
9
  };
@@ -8,6 +8,7 @@ const utils_1 = require("../../branch/utils");
8
8
  const client_1 = require("../client");
9
9
  const Update_1 = require("../types/Update");
10
10
  const UpdateBranch_1 = require("../types/UpdateBranch");
11
+ const UpdateBranchBasicInfo_1 = require("../types/UpdateBranchBasicInfo");
11
12
  exports.BranchQuery = {
12
13
  async getBranchByNameAsync(graphqlClient, { appId, name }) {
13
14
  const response = await (0, client_1.withErrorHandlingAsync)(graphqlClient
@@ -18,11 +19,12 @@ exports.BranchQuery = {
18
19
  id
19
20
  updateBranchByName(name: $name) {
20
21
  id
21
- name
22
+ ...UpdateBranchBasicInfoFragment
22
23
  }
23
24
  }
24
25
  }
25
26
  }
27
+ ${(0, graphql_1.print)(UpdateBranchBasicInfo_1.UpdateBranchBasicInfoFragmentNode)}
26
28
  `, {
27
29
  appId,
28
30
  name,
@@ -58,6 +60,46 @@ exports.BranchQuery = {
58
60
  .toPromise());
59
61
  return (_b = (_a = data === null || data === void 0 ? void 0 : data.app) === null || _a === void 0 ? void 0 : _a.byId.updateBranches) !== null && _b !== void 0 ? _b : [];
60
62
  },
63
+ async listBranchesBasicInfoPaginatedOnAppAsync(graphqlClient, { appId, first, after, last, before }) {
64
+ const response = await (0, client_1.withErrorHandlingAsync)(graphqlClient
65
+ .query((0, graphql_tag_1.default) `
66
+ query BranchesBasicPaginatedOnApp(
67
+ $appId: String!
68
+ $first: Int
69
+ $after: String
70
+ $last: Int
71
+ $before: String
72
+ ) {
73
+ app {
74
+ byId(appId: $appId) {
75
+ id
76
+ branchesPaginated(first: $first, after: $after, before: $before, last: $last) {
77
+ edges {
78
+ node {
79
+ id
80
+ ...UpdateBranchBasicInfoFragment
81
+ }
82
+ cursor
83
+ }
84
+ pageInfo {
85
+ hasNextPage
86
+ hasPreviousPage
87
+ startCursor
88
+ endCursor
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ ${(0, graphql_1.print)(UpdateBranchBasicInfo_1.UpdateBranchBasicInfoFragmentNode)}
95
+ `, { appId, first, after, last, before }, { additionalTypenames: ['UpdateBranch'] })
96
+ .toPromise());
97
+ const { branchesPaginated } = response.app.byId;
98
+ if (!branchesPaginated) {
99
+ throw new Error(`Could not find channels on project with id ${appId}`);
100
+ }
101
+ return branchesPaginated;
102
+ },
61
103
  async listBranchesOnChannelAsync(graphqlClient, { appId, channelName, offset, limit }) {
62
104
  const response = await (0, client_1.withErrorHandlingAsync)(graphqlClient
63
105
  .query((0, graphql_tag_1.default) `
@@ -1,12 +1,13 @@
1
1
  import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
2
- import { ViewUpdateChannelOnAppQuery, ViewUpdateChannelOnAppQueryVariables, ViewUpdateChannelsOnAppQuery, ViewUpdateChannelsOnAppQueryVariables, ViewUpdateChannelsPaginatedOnAppQuery, ViewUpdateChannelsPaginatedOnAppQueryVariables } from '../generated';
2
+ import { UpdateBranchBasicInfoFragment, UpdateFragment, ViewUpdateChannelOnAppQuery, ViewUpdateChannelOnAppQueryVariables, ViewUpdateChannelsOnAppQuery, ViewUpdateChannelsOnAppQueryVariables, ViewUpdateChannelsPaginatedOnAppQuery, ViewUpdateChannelsPaginatedOnAppQueryVariables } from '../generated';
3
3
  type ViewUpdateChannelsOnAppObject = NonNullable<ViewUpdateChannelsOnAppQuery['app']['byId']['updateChannels']>[number];
4
4
  type UpdateChannelByNameObject = NonNullable<ViewUpdateChannelOnAppQuery['app']['byId']['updateChannelByName']>;
5
5
  export type UpdateChannelObject = ViewUpdateChannelsOnAppObject & UpdateChannelByNameObject;
6
6
  export type UpdateBranchObject = UpdateChannelObject['updateBranches'][number];
7
+ export declare function composeUpdateBranchObject(branchInfo: UpdateBranchBasicInfoFragment, updateGroups: UpdateFragment[][]): UpdateBranchObject;
7
8
  export declare const ChannelQuery: {
8
9
  viewUpdateChannelAsync(graphqlClient: ExpoGraphqlClient, { appId, channelName, filter }: ViewUpdateChannelOnAppQueryVariables): Promise<UpdateChannelByNameObject>;
9
10
  viewUpdateChannelsOnAppAsync(graphqlClient: ExpoGraphqlClient, { appId, limit, offset }: ViewUpdateChannelsOnAppQueryVariables): Promise<UpdateChannelObject[]>;
10
- viewUpdateChannelsBasicInfoPaginatedOnAppAsync(graphqlClient: ExpoGraphqlClient, { appId, first, after }: ViewUpdateChannelsPaginatedOnAppQueryVariables): Promise<ViewUpdateChannelsPaginatedOnAppQuery['app']['byId']['channelsPaginated']>;
11
+ viewUpdateChannelsBasicInfoPaginatedOnAppAsync(graphqlClient: ExpoGraphqlClient, { appId, first, after, last, before }: ViewUpdateChannelsPaginatedOnAppQueryVariables): Promise<ViewUpdateChannelsPaginatedOnAppQuery['app']['byId']['channelsPaginated']>;
11
12
  };
12
13
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChannelQuery = void 0;
3
+ exports.ChannelQuery = exports.composeUpdateBranchObject = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const graphql_1 = require("graphql");
6
6
  const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
@@ -8,6 +8,13 @@ const errors_1 = require("../../channel/errors");
8
8
  const client_1 = require("../client");
9
9
  const Update_1 = require("../types/Update");
10
10
  const UpdateChannelBasicInfo_1 = require("../types/UpdateChannelBasicInfo");
11
+ function composeUpdateBranchObject(branchInfo, updateGroups) {
12
+ return {
13
+ ...branchInfo,
14
+ updateGroups,
15
+ };
16
+ }
17
+ exports.composeUpdateBranchObject = composeUpdateBranchObject;
11
18
  exports.ChannelQuery = {
12
19
  async viewUpdateChannelAsync(graphqlClient, { appId, channelName, filter }) {
13
20
  const response = await (0, client_1.withErrorHandlingAsync)(graphqlClient
@@ -79,19 +86,26 @@ exports.ChannelQuery = {
79
86
  }
80
87
  return updateChannels;
81
88
  },
82
- async viewUpdateChannelsBasicInfoPaginatedOnAppAsync(graphqlClient, { appId, first, after }) {
89
+ async viewUpdateChannelsBasicInfoPaginatedOnAppAsync(graphqlClient, { appId, first, after, last, before }) {
83
90
  const response = await (0, client_1.withErrorHandlingAsync)(graphqlClient
84
91
  .query((0, graphql_tag_1.default) `
85
- query ViewUpdateChannelsPaginatedOnApp($appId: String!, $first: Int, $after: String) {
92
+ query ViewUpdateChannelsPaginatedOnApp(
93
+ $appId: String!
94
+ $first: Int
95
+ $after: String
96
+ $last: Int
97
+ $before: String
98
+ ) {
86
99
  app {
87
100
  byId(appId: $appId) {
88
101
  id
89
- channelsPaginated(first: $first, after: $after) {
102
+ channelsPaginated(first: $first, after: $after, before: $before, last: $last) {
90
103
  edges {
91
104
  node {
92
105
  id
93
106
  ...UpdateChannelBasicInfoFragment
94
107
  }
108
+ cursor
95
109
  }
96
110
  pageInfo {
97
111
  hasNextPage
@@ -104,7 +118,7 @@ exports.ChannelQuery = {
104
118
  }
105
119
  }
106
120
  ${(0, graphql_1.print)(UpdateChannelBasicInfo_1.UpdateChannelBasicInfoFragmentNode)}
107
- `, { appId, first, after }, { additionalTypenames: ['UpdateChannel', 'UpdateBranch', 'Update'] })
121
+ `, { appId, first, after, last, before }, { additionalTypenames: ['UpdateChannel', 'UpdateBranch', 'Update'] })
108
122
  .toPromise());
109
123
  const { channelsPaginated } = response.app.byId;
110
124
  if (!channelsPaginated) {
@@ -0,0 +1,6 @@
1
+ import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
2
+ import { Connection } from '../../utils/relay';
3
+ import { RuntimeFragment, ViewRuntimesOnBranchQueryVariables } from '../generated';
4
+ export declare const RuntimeQuery: {
5
+ getRuntimesOnBranchAsync(graphqlClient: ExpoGraphqlClient, { appId, name, first, after, last, before, filter }: ViewRuntimesOnBranchQueryVariables): Promise<Connection<RuntimeFragment>>;
6
+ };
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RuntimeQuery = 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 utils_1 = require("../../branch/utils");
8
+ const client_1 = require("../client");
9
+ const Runtime_1 = require("../types/Runtime");
10
+ exports.RuntimeQuery = {
11
+ async getRuntimesOnBranchAsync(graphqlClient, { appId, name, first, after, last, before, filter }) {
12
+ const response = await (0, client_1.withErrorHandlingAsync)(graphqlClient
13
+ .query((0, graphql_tag_1.default) `
14
+ query ViewRuntimesOnBranch(
15
+ $appId: String!
16
+ $name: String!
17
+ $first: Int
18
+ $after: String
19
+ $last: Int
20
+ $before: String
21
+ $filter: RuntimeFilterInput
22
+ ) {
23
+ app {
24
+ byId(appId: $appId) {
25
+ id
26
+ updateBranchByName(name: $name) {
27
+ id
28
+ runtimes(
29
+ first: $first
30
+ after: $after
31
+ before: $before
32
+ last: $last
33
+ filter: $filter
34
+ ) {
35
+ edges {
36
+ node {
37
+ id
38
+ ...RuntimeFragment
39
+ }
40
+ cursor
41
+ }
42
+ pageInfo {
43
+ hasNextPage
44
+ hasPreviousPage
45
+ startCursor
46
+ endCursor
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ ${(0, graphql_1.print)(Runtime_1.RuntimeFragmentNode)}
54
+ `, {
55
+ appId,
56
+ name,
57
+ first,
58
+ after,
59
+ last,
60
+ before,
61
+ filter,
62
+ }, { additionalTypenames: ['UpdateBranch', 'Runtime'] })
63
+ .toPromise());
64
+ const { updateBranchByName } = response.app.byId;
65
+ if (!updateBranchByName) {
66
+ throw new utils_1.BranchNotFoundError(`Could not find a branch named "${name}".`);
67
+ }
68
+ return updateBranchByName.runtimes;
69
+ },
70
+ };
@@ -0,0 +1 @@
1
+ export declare const RuntimeFragmentNode: import("graphql").DocumentNode;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RuntimeFragmentNode = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
6
+ exports.RuntimeFragmentNode = (0, graphql_tag_1.default) `
7
+ fragment RuntimeFragment on Runtime {
8
+ id
9
+ version
10
+ }
11
+ `;
@@ -5,14 +5,16 @@ const tslib_1 = require("tslib");
5
5
  const graphql_1 = require("graphql");
6
6
  const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
7
7
  const Update_1 = require("./Update");
8
+ const UpdateBranchBasicInfo_1 = require("./UpdateBranchBasicInfo");
8
9
  exports.UpdateBranchFragmentNode = (0, graphql_tag_1.default) `
9
10
  fragment UpdateBranchFragment on UpdateBranch {
10
11
  id
11
- name
12
+ ...UpdateBranchBasicInfoFragment
12
13
  updates(offset: 0, limit: 10) {
13
14
  id
14
15
  ...UpdateFragment
15
16
  }
16
17
  }
17
18
  ${(0, graphql_1.print)(Update_1.UpdateFragmentNode)}
19
+ ${(0, graphql_1.print)(UpdateBranchBasicInfo_1.UpdateBranchBasicInfoFragmentNode)}
18
20
  `;
@@ -0,0 +1 @@
1
+ export declare const UpdateBranchBasicInfoFragmentNode: import("graphql").DocumentNode;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateBranchBasicInfoFragmentNode = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
6
+ exports.UpdateBranchBasicInfoFragmentNode = (0, graphql_tag_1.default) `
7
+ fragment UpdateBranchBasicInfoFragment on UpdateBranch {
8
+ id
9
+ name
10
+ }
11
+ `;