eas-cli 1.1.1 → 2.1.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.
Files changed (89) hide show
  1. package/README.md +86 -79
  2. package/build/branch/queries.js +11 -8
  3. package/build/build/android/graphql.js +2 -1
  4. package/build/build/android/prepareJob.js +3 -1
  5. package/build/build/createContext.js +1 -0
  6. package/build/build/ios/graphql.js +2 -2
  7. package/build/build/ios/prepareJob.js +3 -1
  8. package/build/commandUtils/EasCommand.d.ts +2 -0
  9. package/build/commandUtils/EasCommand.js +44 -3
  10. package/build/commands/branch/delete.js +1 -1
  11. package/build/commands/build/index.d.ts +2 -1
  12. package/build/commands/build/index.js +91 -19
  13. package/build/commands/channel/delete.js +1 -1
  14. package/build/commands/device/delete.js +3 -2
  15. package/build/commands/open.d.ts +5 -0
  16. package/build/commands/open.js +40 -0
  17. package/build/commands/secret/delete.js +1 -1
  18. package/build/commands/submit.d.ts +2 -1
  19. package/build/commands/submit.js +28 -14
  20. package/build/commands/update/configure.js +58 -5
  21. package/build/commands/update/delete.js +1 -1
  22. package/build/commands/update/index.js +3 -0
  23. package/build/commands/webhook/delete.js +1 -1
  24. package/build/credentials/android/api/GraphqlClient.js +1 -1
  25. package/build/credentials/context.d.ts +3 -0
  26. package/build/credentials/context.js +1 -0
  27. package/build/credentials/ios/IosCredentialsProvider.d.ts +1 -0
  28. package/build/credentials/ios/IosCredentialsProvider.js +33 -5
  29. package/build/credentials/ios/actions/ConfigureProvisioningProfile.d.ts +3 -1
  30. package/build/credentials/ios/actions/ConfigureProvisioningProfile.js +5 -2
  31. package/build/credentials/ios/actions/CreateProvisioningProfile.d.ts +3 -1
  32. package/build/credentials/ios/actions/CreateProvisioningProfile.js +3 -2
  33. package/build/credentials/ios/actions/ProvisioningProfileUtils.d.ts +2 -1
  34. package/build/credentials/ios/actions/ProvisioningProfileUtils.js +4 -2
  35. package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.d.ts +8 -2
  36. package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +30 -18
  37. package/build/credentials/ios/actions/SetUpBuildCredentials.js +1 -0
  38. package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.d.ts +8 -2
  39. package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.js +6 -12
  40. package/build/credentials/ios/actions/SetUpProvisioningProfile.d.ts +3 -1
  41. package/build/credentials/ios/actions/SetUpProvisioningProfile.js +8 -5
  42. package/build/credentials/ios/actions/SetUpTargetBuildCredentials.d.ts +2 -0
  43. package/build/credentials/ios/actions/SetUpTargetBuildCredentials.js +5 -5
  44. package/build/credentials/ios/api/GraphqlClient.js +1 -1
  45. package/build/credentials/ios/appstore/AppStoreApi.d.ts +7 -4
  46. package/build/credentials/ios/appstore/AppStoreApi.js +8 -8
  47. package/build/credentials/ios/appstore/Credentials.types.d.ts +0 -14
  48. package/build/credentials/ios/appstore/Credentials.types.js +0 -6
  49. package/build/credentials/ios/appstore/bundleIdCapabilities.js +176 -15
  50. package/build/credentials/ios/appstore/constants.d.ts +1 -0
  51. package/build/credentials/ios/appstore/constants.js +6 -0
  52. package/build/credentials/ios/appstore/distributionCertificate.js +1 -1
  53. package/build/credentials/ios/appstore/provisioningProfile.d.ts +5 -3
  54. package/build/credentials/ios/appstore/provisioningProfile.js +30 -7
  55. package/build/credentials/ios/appstore/provisioningProfileAdhoc.d.ts +3 -1
  56. package/build/credentials/ios/appstore/provisioningProfileAdhoc.js +10 -10
  57. package/build/credentials/ios/validators/validateProvisioningProfile.d.ts +2 -1
  58. package/build/credentials/ios/validators/validateProvisioningProfile.js +6 -4
  59. package/build/credentials/manager/ManageAndroid.js +2 -8
  60. package/build/credentials/manager/ManageIos.js +10 -9
  61. package/build/devices/actions/create/developerPortalMethod.js +2 -2
  62. package/build/graphql/generated.d.ts +230 -39
  63. package/build/graphql/generated.js +39 -1
  64. package/build/{credentials/ios/api/graphql → graphql}/queries/AppQuery.d.ts +1 -1
  65. package/build/{credentials/ios/api/graphql → graphql}/queries/AppQuery.js +2 -2
  66. package/build/graphql/queries/EnvironmentSecretsQuery.d.ts +1 -1
  67. package/build/graphql/queries/EnvironmentSecretsQuery.js +2 -2
  68. package/build/graphql/queries/StatuspageServiceQuery.d.ts +4 -0
  69. package/build/graphql/queries/StatuspageServiceQuery.js +28 -0
  70. package/build/graphql/types/StatuspageService.d.ts +1 -0
  71. package/build/graphql/types/StatuspageService.js +19 -0
  72. package/build/project/ensureProjectExists.d.ts +0 -7
  73. package/build/project/ensureProjectExists.js +4 -14
  74. package/build/project/ios/target.d.ts +7 -0
  75. package/build/project/ios/target.js +26 -1
  76. package/build/project/projectUtils.d.ts +0 -1
  77. package/build/project/projectUtils.js +9 -29
  78. package/build/project/workflow.js +3 -1
  79. package/build/submit/android/AndroidSubmitter.js +1 -1
  80. package/build/submit/submit.js +2 -2
  81. package/build/submit/utils/errors.js +2 -0
  82. package/build/utils/statuspageService.d.ts +2 -0
  83. package/build/utils/statuspageService.js +41 -0
  84. package/build/vcs/clients/git.js +4 -1
  85. package/build/vcs/clients/gitNoCommit.js +2 -1
  86. package/oclif.manifest.json +1 -1
  87. package/package.json +7 -6
  88. package/build/graphql/queries/ProjectQuery.d.ts +0 -6
  89. package/build/graphql/queries/ProjectQuery.js +0 -24
@@ -251,8 +251,8 @@ export declare type AccountMutation = {
251
251
  grantActorPermissions: Account;
252
252
  /** Rename this account and the primary user's username if this account is a personal account */
253
253
  rename: Account;
254
- /** Requests a refund for the specified charge. Returns true if auto-refund was possible, otherwise requests a manual refund from support and returns false. */
255
- requestRefund: Scalars['Boolean'];
254
+ /** Requests a refund for the specified charge by requesting a manual refund from support */
255
+ requestRefund?: Maybe<Scalars['Boolean']>;
256
256
  /** Revoke specified Permissions for Actor. Actor must already have at least one permission on the account. */
257
257
  revokeActorPermissions: Account;
258
258
  /**
@@ -654,7 +654,10 @@ export declare type AndroidJobBuildCredentialsInput = {
654
654
  keystore: AndroidJobKeystoreInput;
655
655
  };
656
656
  export declare type AndroidJobInput = {
657
+ applicationArchivePath?: InputMaybe<Scalars['String']>;
658
+ /** @deprecated */
657
659
  artifactPath?: InputMaybe<Scalars['String']>;
660
+ buildArtifactPaths?: InputMaybe<Array<Scalars['String']>>;
658
661
  buildType?: InputMaybe<AndroidBuildType>;
659
662
  builderEnvironment?: InputMaybe<AndroidBuilderEnvironmentInput>;
660
663
  cache?: InputMaybe<BuildCacheInput>;
@@ -676,9 +679,25 @@ export declare type AndroidJobKeystoreInput = {
676
679
  keyPassword?: InputMaybe<Scalars['String']>;
677
680
  keystorePassword: Scalars['String'];
678
681
  };
682
+ export declare type AndroidJobOverridesInput = {
683
+ applicationArchivePath?: InputMaybe<Scalars['String']>;
684
+ /** @deprecated */
685
+ artifactPath?: InputMaybe<Scalars['String']>;
686
+ buildArtifactPaths?: InputMaybe<Array<Scalars['String']>>;
687
+ buildType?: InputMaybe<AndroidBuildType>;
688
+ builderEnvironment?: InputMaybe<AndroidBuilderEnvironmentInput>;
689
+ cache?: InputMaybe<BuildCacheInput>;
690
+ developmentClient?: InputMaybe<Scalars['Boolean']>;
691
+ experimental?: InputMaybe<Scalars['JSONObject']>;
692
+ gradleCommand?: InputMaybe<Scalars['String']>;
693
+ releaseChannel?: InputMaybe<Scalars['String']>;
694
+ secrets?: InputMaybe<AndroidJobSecretsInput>;
695
+ updates?: InputMaybe<BuildUpdatesInput>;
696
+ username?: InputMaybe<Scalars['String']>;
697
+ version?: InputMaybe<AndroidJobVersionInput>;
698
+ };
679
699
  export declare type AndroidJobSecretsInput = {
680
700
  buildCredentials?: InputMaybe<AndroidJobBuildCredentialsInput>;
681
- environmentSecrets?: InputMaybe<Scalars['JSONObject']>;
682
701
  };
683
702
  export declare type AndroidJobVersionInput = {
684
703
  versionCode: Scalars['String'];
@@ -827,6 +846,8 @@ export declare type App = Project & {
827
846
  updateChannelByName?: Maybe<UpdateChannel>;
828
847
  /** EAS channels owned by an app */
829
848
  updateChannels: Array<UpdateChannel>;
849
+ /** EAS updates owned by an app grouped by update group */
850
+ updateGroups: Array<Array<Update>>;
830
851
  /** Time of last classic update publish */
831
852
  updated: Scalars['DateTime'];
832
853
  /** EAS updates owned by an app */
@@ -841,6 +862,7 @@ export declare type App = Project & {
841
862
  /** Represents an Exponent App (or Experience in legacy terms) */
842
863
  export declare type AppActivityTimelineProjectActivitiesArgs = {
843
864
  createdBefore?: InputMaybe<Scalars['DateTime']>;
865
+ filterChannels?: InputMaybe<Array<Scalars['String']>>;
844
866
  filterPlatforms?: InputMaybe<Array<AppPlatform>>;
845
867
  filterReleaseChannels?: InputMaybe<Array<Scalars['String']>>;
846
868
  filterTypes?: InputMaybe<Array<ActivityTimelineProjectActivityType>>;
@@ -929,6 +951,12 @@ export declare type AppUpdateChannelsArgs = {
929
951
  offset: Scalars['Int'];
930
952
  };
931
953
  /** Represents an Exponent App (or Experience in legacy terms) */
954
+ export declare type AppUpdateGroupsArgs = {
955
+ filter?: InputMaybe<UpdatesFilter>;
956
+ limit: Scalars['Int'];
957
+ offset: Scalars['Int'];
958
+ };
959
+ /** Represents an Exponent App (or Experience in legacy terms) */
932
960
  export declare type AppUpdatesArgs = {
933
961
  limit: Scalars['Int'];
934
962
  offset: Scalars['Int'];
@@ -1480,6 +1508,8 @@ export declare type BuildArtifact = {
1480
1508
  };
1481
1509
  export declare type BuildArtifacts = {
1482
1510
  __typename?: 'BuildArtifacts';
1511
+ applicationArchiveUrl?: Maybe<Scalars['String']>;
1512
+ buildArtifactsUrl?: Maybe<Scalars['String']>;
1483
1513
  buildUrl?: Maybe<Scalars['String']>;
1484
1514
  xcodeBuildLogsUrl?: Maybe<Scalars['String']>;
1485
1515
  };
@@ -1627,8 +1657,15 @@ export declare type BuildMutation = {
1627
1657
  createIosBuild: CreateBuildResult;
1628
1658
  /** Delete an EAS Build build */
1629
1659
  deleteBuild: Build;
1630
- /** Retry an EAS Build build */
1660
+ /** Retry an Android EAS Build */
1661
+ retryAndroidBuild: Build;
1662
+ /**
1663
+ * Retry an EAS Build build
1664
+ * @deprecated Use retryAndroidBuild and retryIosBuild instead
1665
+ */
1631
1666
  retryBuild: Build;
1667
+ /** Retry an iOS EAS Build */
1668
+ retryIosBuild: Build;
1632
1669
  };
1633
1670
  export declare type BuildMutationCancelBuildArgs = {
1634
1671
  buildId: Scalars['ID'];
@@ -1648,9 +1685,17 @@ export declare type BuildMutationCreateIosBuildArgs = {
1648
1685
  export declare type BuildMutationDeleteBuildArgs = {
1649
1686
  buildId: Scalars['ID'];
1650
1687
  };
1688
+ export declare type BuildMutationRetryAndroidBuildArgs = {
1689
+ buildId: Scalars['ID'];
1690
+ jobOverrides?: InputMaybe<AndroidJobOverridesInput>;
1691
+ };
1651
1692
  export declare type BuildMutationRetryBuildArgs = {
1652
1693
  buildId: Scalars['ID'];
1653
1694
  };
1695
+ export declare type BuildMutationRetryIosBuildArgs = {
1696
+ buildId: Scalars['ID'];
1697
+ jobOverrides?: InputMaybe<IosJobOverridesInput>;
1698
+ };
1654
1699
  export declare type BuildOrBuildJob = {
1655
1700
  id: Scalars['ID'];
1656
1701
  };
@@ -1893,6 +1938,10 @@ export declare type DeleteWebhookResult = {
1893
1938
  __typename?: 'DeleteWebhookResult';
1894
1939
  id: Scalars['ID'];
1895
1940
  };
1941
+ export declare type DeployServerlessFunctionResult = {
1942
+ __typename?: 'DeployServerlessFunctionResult';
1943
+ url: Scalars['String'];
1944
+ };
1896
1945
  /** Represents a Deployment - a set of Builds with the same Runtime Version and Channel */
1897
1946
  export declare type Deployment = {
1898
1947
  __typename?: 'Deployment';
@@ -2246,7 +2295,10 @@ export declare type IosJobDistributionCertificateInput = {
2246
2295
  password: Scalars['String'];
2247
2296
  };
2248
2297
  export declare type IosJobInput = {
2298
+ applicationArchivePath?: InputMaybe<Scalars['String']>;
2299
+ /** @deprecated */
2249
2300
  artifactPath?: InputMaybe<Scalars['String']>;
2301
+ buildArtifactPaths?: InputMaybe<Array<Scalars['String']>>;
2250
2302
  buildConfiguration?: InputMaybe<Scalars['String']>;
2251
2303
  /** @deprecated */
2252
2304
  buildType?: InputMaybe<IosBuildType>;
@@ -2267,9 +2319,30 @@ export declare type IosJobInput = {
2267
2319
  username?: InputMaybe<Scalars['String']>;
2268
2320
  version?: InputMaybe<IosJobVersionInput>;
2269
2321
  };
2322
+ export declare type IosJobOverridesInput = {
2323
+ applicationArchivePath?: InputMaybe<Scalars['String']>;
2324
+ /** @deprecated */
2325
+ artifactPath?: InputMaybe<Scalars['String']>;
2326
+ buildArtifactPaths?: InputMaybe<Array<Scalars['String']>>;
2327
+ buildConfiguration?: InputMaybe<Scalars['String']>;
2328
+ /** @deprecated */
2329
+ buildType?: InputMaybe<IosBuildType>;
2330
+ builderEnvironment?: InputMaybe<IosBuilderEnvironmentInput>;
2331
+ cache?: InputMaybe<BuildCacheInput>;
2332
+ developmentClient?: InputMaybe<Scalars['Boolean']>;
2333
+ /** @deprecated */
2334
+ distribution?: InputMaybe<DistributionType>;
2335
+ experimental?: InputMaybe<Scalars['JSONObject']>;
2336
+ releaseChannel?: InputMaybe<Scalars['String']>;
2337
+ scheme?: InputMaybe<Scalars['String']>;
2338
+ secrets?: InputMaybe<IosJobSecretsInput>;
2339
+ simulator?: InputMaybe<Scalars['Boolean']>;
2340
+ updates?: InputMaybe<BuildUpdatesInput>;
2341
+ username?: InputMaybe<Scalars['String']>;
2342
+ version?: InputMaybe<IosJobVersionInput>;
2343
+ };
2270
2344
  export declare type IosJobSecretsInput = {
2271
2345
  buildCredentials?: InputMaybe<Array<InputMaybe<IosJobTargetCredentialsInput>>>;
2272
- environmentSecrets?: InputMaybe<Scalars['JSONObject']>;
2273
2346
  };
2274
2347
  export declare type IosJobTargetCredentialsInput = {
2275
2348
  distributionCertificate: IosJobDistributionCertificateInput;
@@ -2524,6 +2597,7 @@ export declare type ProjectQueryByUsernameAndSlugArgs = {
2524
2597
  };
2525
2598
  export declare type PublicArtifacts = {
2526
2599
  __typename?: 'PublicArtifacts';
2600
+ applicationArchiveUrl?: Maybe<Scalars['String']>;
2527
2601
  buildUrl?: Maybe<Scalars['String']>;
2528
2602
  };
2529
2603
  export declare type PublishUpdateGroupInput = {
@@ -2681,8 +2755,6 @@ export declare type RootMutationBuildJobArgs = {
2681
2755
  };
2682
2756
  export declare type RootQuery = {
2683
2757
  __typename?: 'RootQuery';
2684
- /** Top-level query object for querying GitHub App information and resources it has access to. */
2685
- GitHubApp: GitHubAppQuery;
2686
2758
  /**
2687
2759
  * This is a placeholder field
2688
2760
  * @deprecated Not used.
@@ -2717,6 +2789,8 @@ export declare type RootQuery = {
2717
2789
  clientBuilds: ClientBuildQuery;
2718
2790
  /** Top-level query object for querying Experimentation configuration. */
2719
2791
  experimentation: ExperimentationQuery;
2792
+ /** Top-level query object for querying GitHub App information and resources it has access to. */
2793
+ githubApp: GitHubAppQuery;
2720
2794
  /** Top-level query object for querying Stripe Invoices. */
2721
2795
  invoice: InvoiceQuery;
2722
2796
  /**
@@ -2731,6 +2805,8 @@ export declare type RootQuery = {
2731
2805
  meActor?: Maybe<Actor>;
2732
2806
  project: ProjectQuery;
2733
2807
  snack: SnackQuery;
2808
+ /** Top-level query object for querying Expo status page services. */
2809
+ statuspageService: StatuspageServiceQuery;
2734
2810
  submissions: SubmissionQuery;
2735
2811
  /** fetch all updates in a group */
2736
2812
  updatesByGroup: Array<Update>;
@@ -2804,8 +2880,13 @@ export declare type ServerlessFunctionIdentifierInput = {
2804
2880
  };
2805
2881
  export declare type ServerlessFunctionMutation = {
2806
2882
  __typename?: 'ServerlessFunctionMutation';
2883
+ createDeployment: DeployServerlessFunctionResult;
2807
2884
  createUploadPresignedUrl: CreateServerlessFunctionUploadUrlResult;
2808
2885
  };
2886
+ export declare type ServerlessFunctionMutationCreateDeploymentArgs = {
2887
+ appId: Scalars['ID'];
2888
+ serverlessFunctionIdentifierInput: ServerlessFunctionIdentifierInput;
2889
+ };
2809
2890
  export declare type ServerlessFunctionMutationCreateUploadPresignedUrlArgs = {
2810
2891
  appId: Scalars['ID'];
2811
2892
  serverlessFunctionIdentifierInput: ServerlessFunctionIdentifierInput;
@@ -2862,6 +2943,90 @@ export declare enum StandardOffer {
2862
2943
  /** $348 USD per year, 30 day trial */
2863
2944
  YearlySub = "YEARLY_SUB"
2864
2945
  }
2946
+ /** Incident for a given component from Expo status page API. */
2947
+ export declare type StatuspageIncident = {
2948
+ __typename?: 'StatuspageIncident';
2949
+ createdAt: Scalars['DateTime'];
2950
+ id: Scalars['ID'];
2951
+ /** Impact of an incident from Expo status page. */
2952
+ impact: StatuspageIncidentImpact;
2953
+ name: Scalars['String'];
2954
+ resolvedAt?: Maybe<Scalars['DateTime']>;
2955
+ /** Shortlink to the incident from Expo status page. */
2956
+ shortlink: Scalars['String'];
2957
+ /** Current status of an incident from Expo status page. */
2958
+ status: StatuspageIncidentStatus;
2959
+ updatedAt: Scalars['DateTime'];
2960
+ /** List of all updates for an incident from Expo status page. */
2961
+ updates: Array<StatuspageIncidentUpdate>;
2962
+ };
2963
+ /** Possible Incident impact values from Expo status page API. */
2964
+ export declare enum StatuspageIncidentImpact {
2965
+ Critical = "CRITICAL",
2966
+ Maintenance = "MAINTENANCE",
2967
+ Major = "MAJOR",
2968
+ Minor = "MINOR",
2969
+ None = "NONE"
2970
+ }
2971
+ /** Possible Incident statuses from Expo status page API. */
2972
+ export declare enum StatuspageIncidentStatus {
2973
+ Completed = "COMPLETED",
2974
+ Identified = "IDENTIFIED",
2975
+ Investigating = "INVESTIGATING",
2976
+ InProgress = "IN_PROGRESS",
2977
+ Monitoring = "MONITORING",
2978
+ Resolved = "RESOLVED",
2979
+ Scheduled = "SCHEDULED",
2980
+ Verifying = "VERIFYING"
2981
+ }
2982
+ /** Update for an Incident from Expo status page API. */
2983
+ export declare type StatuspageIncidentUpdate = {
2984
+ __typename?: 'StatuspageIncidentUpdate';
2985
+ /** Text of an update from Expo status page. */
2986
+ body: Scalars['String'];
2987
+ createdAt: Scalars['DateTime'];
2988
+ id: Scalars['ID'];
2989
+ /** Status set at the moment of update. */
2990
+ status: StatuspageIncidentStatus;
2991
+ };
2992
+ /** Service monitored by Expo status page. */
2993
+ export declare type StatuspageService = {
2994
+ __typename?: 'StatuspageService';
2995
+ /** Description of a service from Expo status page. */
2996
+ description?: Maybe<Scalars['String']>;
2997
+ id: Scalars['ID'];
2998
+ /**
2999
+ * List of last inicdents for a service from Expo status page (we always query for 50 latest incidents for all services)
3000
+ * sorted by createdAt field in descending order.
3001
+ */
3002
+ incidents: Array<StatuspageIncident>;
3003
+ /** Name of a service monitored by Expo status page. */
3004
+ name: StatuspageServiceName;
3005
+ /** Current status of a service from Expo status page. */
3006
+ status: StatuspageServiceStatus;
3007
+ };
3008
+ /** Name of a service monitored by Expo status page. */
3009
+ export declare enum StatuspageServiceName {
3010
+ EasBuild = "EAS_BUILD",
3011
+ EasSubmit = "EAS_SUBMIT",
3012
+ EasUpdate = "EAS_UPDATE"
3013
+ }
3014
+ export declare type StatuspageServiceQuery = {
3015
+ __typename?: 'StatuspageServiceQuery';
3016
+ /** Query services from Expo status page by names. */
3017
+ byServiceNames: Array<StatuspageService>;
3018
+ };
3019
+ export declare type StatuspageServiceQueryByServiceNamesArgs = {
3020
+ serviceNames: Array<StatuspageServiceName>;
3021
+ };
3022
+ /** Possible statuses for a service. */
3023
+ export declare enum StatuspageServiceStatus {
3024
+ DegradedPerformance = "DEGRADED_PERFORMANCE",
3025
+ MajorOutage = "MAJOR_OUTAGE",
3026
+ Operational = "OPERATIONAL",
3027
+ PartialOutage = "PARTIAL_OUTAGE",
3028
+ UnderMaintenance = "UNDER_MAINTENANCE"
3029
+ }
2865
3030
  export declare type StripeCoupon = {
2866
3031
  __typename?: 'StripeCoupon';
2867
3032
  amountOff?: Maybe<Scalars['String']>;
@@ -3004,9 +3169,15 @@ export declare type UpdateBranch = {
3004
3169
  createdAt: Scalars['DateTime'];
3005
3170
  id: Scalars['ID'];
3006
3171
  name: Scalars['String'];
3172
+ updateGroups: Array<Array<Update>>;
3007
3173
  updatedAt: Scalars['DateTime'];
3008
3174
  updates: Array<Update>;
3009
3175
  };
3176
+ export declare type UpdateBranchUpdateGroupsArgs = {
3177
+ filter?: InputMaybe<UpdatesFilter>;
3178
+ limit: Scalars['Int'];
3179
+ offset: Scalars['Int'];
3180
+ };
3010
3181
  export declare type UpdateBranchUpdatesArgs = {
3011
3182
  filter?: InputMaybe<UpdatesFilter>;
3012
3183
  limit: Scalars['Int'];
@@ -5168,21 +5339,6 @@ export declare type SetAppStoreConnectApiKeyForSubmissionsMutation = {
5168
5339
  };
5169
5340
  };
5170
5341
  };
5171
- export declare type AppByFullNameQueryVariables = Exact<{
5172
- fullName: Scalars['String'];
5173
- }>;
5174
- export declare type AppByFullNameQuery = {
5175
- __typename?: 'RootQuery';
5176
- app: {
5177
- __typename?: 'AppQuery';
5178
- byFullName: {
5179
- __typename?: 'App';
5180
- id: string;
5181
- fullName: string;
5182
- slug: string;
5183
- };
5184
- };
5185
- };
5186
5342
  export declare type AppStoreConnectApiKeyByAccountQueryVariables = Exact<{
5187
5343
  accountName: Scalars['String'];
5188
5344
  }>;
@@ -6392,6 +6548,21 @@ export declare type DeleteWebhookMutation = {
6392
6548
  };
6393
6549
  };
6394
6550
  };
6551
+ export declare type AppByFullNameQueryVariables = Exact<{
6552
+ fullName: Scalars['String'];
6553
+ }>;
6554
+ export declare type AppByFullNameQuery = {
6555
+ __typename?: 'RootQuery';
6556
+ app: {
6557
+ __typename?: 'AppQuery';
6558
+ byFullName: {
6559
+ __typename?: 'App';
6560
+ id: string;
6561
+ fullName: string;
6562
+ slug: string;
6563
+ };
6564
+ };
6565
+ };
6395
6566
  export declare type LatestAppVersionQueryVariables = Exact<{
6396
6567
  appId: Scalars['String'];
6397
6568
  platform: AppPlatform;
@@ -6794,23 +6965,6 @@ export declare type EnvironmentSecretsByAppIdQuery = {
6794
6965
  };
6795
6966
  };
6796
6967
  };
6797
- export declare type ProjectByUsernameAndSlugQueryVariables = Exact<{
6798
- username: Scalars['String'];
6799
- slug: Scalars['String'];
6800
- }>;
6801
- export declare type ProjectByUsernameAndSlugQuery = {
6802
- __typename?: 'RootQuery';
6803
- project: {
6804
- __typename?: 'ProjectQuery';
6805
- byUsernameAndSlug: {
6806
- __typename?: 'App';
6807
- id: string;
6808
- } | {
6809
- __typename?: 'Snack';
6810
- id: string;
6811
- };
6812
- };
6813
- };
6814
6968
  export declare type GetAssetMetadataQueryVariables = Exact<{
6815
6969
  storageKeys: Array<Scalars['String']> | Scalars['String'];
6816
6970
  }>;
@@ -6839,6 +6993,29 @@ export declare type GetAssetLimitPerUpdateGroupForAppQuery = {
6839
6993
  };
6840
6994
  };
6841
6995
  };
6996
+ export declare type StatuspageServiceByServiceNamesQueryVariables = Exact<{
6997
+ serviceNames: Array<StatuspageServiceName> | StatuspageServiceName;
6998
+ }>;
6999
+ export declare type StatuspageServiceByServiceNamesQuery = {
7000
+ __typename?: 'RootQuery';
7001
+ statuspageService: {
7002
+ __typename?: 'StatuspageServiceQuery';
7003
+ byServiceNames: Array<{
7004
+ __typename?: 'StatuspageService';
7005
+ id: string;
7006
+ name: StatuspageServiceName;
7007
+ status: StatuspageServiceStatus;
7008
+ incidents: Array<{
7009
+ __typename?: 'StatuspageIncident';
7010
+ id: string;
7011
+ status: StatuspageIncidentStatus;
7012
+ name: string;
7013
+ impact: StatuspageIncidentImpact;
7014
+ shortlink: string;
7015
+ }>;
7016
+ }>;
7017
+ };
7018
+ };
6842
7019
  export declare type SubmissionsByIdQueryVariables = Exact<{
6843
7020
  submissionId: Scalars['ID'];
6844
7021
  }>;
@@ -7244,6 +7421,20 @@ export declare type EnvironmentSecretFragment = {
7244
7421
  name: string;
7245
7422
  createdAt: any;
7246
7423
  };
7424
+ export declare type StatuspageServiceFragment = {
7425
+ __typename?: 'StatuspageService';
7426
+ id: string;
7427
+ name: StatuspageServiceName;
7428
+ status: StatuspageServiceStatus;
7429
+ incidents: Array<{
7430
+ __typename?: 'StatuspageIncident';
7431
+ id: string;
7432
+ status: StatuspageIncidentStatus;
7433
+ name: string;
7434
+ impact: StatuspageIncidentImpact;
7435
+ shortlink: string;
7436
+ }>;
7437
+ };
7247
7438
  export declare type SubmissionFragment = {
7248
7439
  __typename?: 'Submission';
7249
7440
  id: string;
@@ -6,7 +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.WebhookType = exports.UsageMetricsGranularity = exports.UsageMetricType = exports.UploadSessionType = exports.SubmissionStatus = exports.SubmissionAndroidTrack = exports.SubmissionAndroidReleaseStatus = exports.SubmissionAndroidArchiveType = exports.StandardOffer = exports.SecondFactorMethod = exports.Role = exports.ProjectArchiveSourceType = exports.Permission = exports.Order = exports.OfferType = exports.MailchimpTag = exports.MailchimpAudience = exports.IosSchemeBuildConfiguration = exports.IosManagedBuildType = exports.IosDistributionType = exports.IosBuildType = exports.InvoiceDiscountType = exports.Feature = exports.EasServiceMetric = exports.EasBuildDeprecationInfoType = exports.DistributionType = exports.CacheControlScope = exports.BuildWorkflow = exports.BuildStatus = exports.BuildResourceClass = exports.BuildPriority = exports.BuildJobStatus = exports.BuildJobLogsFormat = exports.BuildIosEnterpriseProvisioning = exports.BuildCredentialsSource = exports.AuthProtocolType = exports.AssetMetadataStatus = exports.AppsFilter = exports.AppleDeviceClass = exports.AppStoreConnectUserRole = exports.AppSort = exports.AppPrivacy = exports.AppPlatform = exports.AndroidKeystoreType = exports.AndroidFcmVersion = exports.AndroidBuildType = exports.ActivityTimelineProjectActivityType = void 0;
9
+ exports.UsageMetricsGranularity = exports.UsageMetricType = exports.UploadSessionType = exports.SubmissionStatus = exports.SubmissionAndroidTrack = exports.SubmissionAndroidReleaseStatus = exports.SubmissionAndroidArchiveType = exports.StatuspageServiceStatus = exports.StatuspageServiceName = exports.StatuspageIncidentStatus = exports.StatuspageIncidentImpact = exports.StandardOffer = exports.SecondFactorMethod = exports.Role = exports.ProjectArchiveSourceType = exports.Permission = exports.Order = exports.OfferType = exports.MailchimpTag = exports.MailchimpAudience = exports.IosSchemeBuildConfiguration = exports.IosManagedBuildType = exports.IosDistributionType = exports.IosBuildType = exports.InvoiceDiscountType = exports.Feature = exports.EasServiceMetric = exports.EasBuildDeprecationInfoType = exports.DistributionType = exports.CacheControlScope = exports.BuildWorkflow = exports.BuildStatus = exports.BuildResourceClass = exports.BuildPriority = exports.BuildJobStatus = exports.BuildJobLogsFormat = exports.BuildIosEnterpriseProvisioning = exports.BuildCredentialsSource = exports.AuthProtocolType = exports.AssetMetadataStatus = exports.AppsFilter = exports.AppleDeviceClass = exports.AppStoreConnectUserRole = exports.AppSort = exports.AppPrivacy = exports.AppPlatform = exports.AndroidKeystoreType = exports.AndroidFcmVersion = exports.AndroidBuildType = exports.ActivityTimelineProjectActivityType = void 0;
10
+ exports.WebhookType = void 0;
10
11
  var ActivityTimelineProjectActivityType;
11
12
  (function (ActivityTimelineProjectActivityType) {
12
13
  ActivityTimelineProjectActivityType["Build"] = "BUILD";
@@ -270,6 +271,43 @@ var StandardOffer;
270
271
  /** $348 USD per year, 30 day trial */
271
272
  StandardOffer["YearlySub"] = "YEARLY_SUB";
272
273
  })(StandardOffer = exports.StandardOffer || (exports.StandardOffer = {}));
274
+ /** Possible Incident impact values from Expo status page API. */
275
+ var StatuspageIncidentImpact;
276
+ (function (StatuspageIncidentImpact) {
277
+ StatuspageIncidentImpact["Critical"] = "CRITICAL";
278
+ StatuspageIncidentImpact["Maintenance"] = "MAINTENANCE";
279
+ StatuspageIncidentImpact["Major"] = "MAJOR";
280
+ StatuspageIncidentImpact["Minor"] = "MINOR";
281
+ StatuspageIncidentImpact["None"] = "NONE";
282
+ })(StatuspageIncidentImpact = exports.StatuspageIncidentImpact || (exports.StatuspageIncidentImpact = {}));
283
+ /** Possible Incident statuses from Expo status page API. */
284
+ var StatuspageIncidentStatus;
285
+ (function (StatuspageIncidentStatus) {
286
+ StatuspageIncidentStatus["Completed"] = "COMPLETED";
287
+ StatuspageIncidentStatus["Identified"] = "IDENTIFIED";
288
+ StatuspageIncidentStatus["Investigating"] = "INVESTIGATING";
289
+ StatuspageIncidentStatus["InProgress"] = "IN_PROGRESS";
290
+ StatuspageIncidentStatus["Monitoring"] = "MONITORING";
291
+ StatuspageIncidentStatus["Resolved"] = "RESOLVED";
292
+ StatuspageIncidentStatus["Scheduled"] = "SCHEDULED";
293
+ StatuspageIncidentStatus["Verifying"] = "VERIFYING";
294
+ })(StatuspageIncidentStatus = exports.StatuspageIncidentStatus || (exports.StatuspageIncidentStatus = {}));
295
+ /** Name of a service monitored by Expo status page. */
296
+ var StatuspageServiceName;
297
+ (function (StatuspageServiceName) {
298
+ StatuspageServiceName["EasBuild"] = "EAS_BUILD";
299
+ StatuspageServiceName["EasSubmit"] = "EAS_SUBMIT";
300
+ StatuspageServiceName["EasUpdate"] = "EAS_UPDATE";
301
+ })(StatuspageServiceName = exports.StatuspageServiceName || (exports.StatuspageServiceName = {}));
302
+ /** Possible statuses for a service. */
303
+ var StatuspageServiceStatus;
304
+ (function (StatuspageServiceStatus) {
305
+ StatuspageServiceStatus["DegradedPerformance"] = "DEGRADED_PERFORMANCE";
306
+ StatuspageServiceStatus["MajorOutage"] = "MAJOR_OUTAGE";
307
+ StatuspageServiceStatus["Operational"] = "OPERATIONAL";
308
+ StatuspageServiceStatus["PartialOutage"] = "PARTIAL_OUTAGE";
309
+ StatuspageServiceStatus["UnderMaintenance"] = "UNDER_MAINTENANCE";
310
+ })(StatuspageServiceStatus = exports.StatuspageServiceStatus || (exports.StatuspageServiceStatus = {}));
273
311
  var SubmissionAndroidArchiveType;
274
312
  (function (SubmissionAndroidArchiveType) {
275
313
  SubmissionAndroidArchiveType["Aab"] = "AAB";
@@ -1,4 +1,4 @@
1
- import { AppFragment } from '../../../../../graphql/generated';
1
+ import { AppFragment } from '../generated';
2
2
  export declare const AppQuery: {
3
3
  byFullNameAsync(fullName: string): Promise<AppFragment>;
4
4
  };
@@ -5,8 +5,8 @@ const tslib_1 = require("tslib");
5
5
  const assert_1 = tslib_1.__importDefault(require("assert"));
6
6
  const graphql_1 = require("graphql");
7
7
  const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
8
- const client_1 = require("../../../../../graphql/client");
9
- const App_1 = require("../../../../../graphql/types/App");
8
+ const client_1 = require("../client");
9
+ const App_1 = require("../types/App");
10
10
  exports.AppQuery = {
11
11
  async byFullNameAsync(fullName) {
12
12
  const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
@@ -9,5 +9,5 @@ export declare type EnvironmentSecretWithScope = EnvironmentSecretFragment & {
9
9
  export declare const EnvironmentSecretsQuery: {
10
10
  byAccountNameAsync(accountName: string): Promise<EnvironmentSecretFragment[]>;
11
11
  byAppIdAsync(appId: string): Promise<EnvironmentSecretFragment[]>;
12
- allAsync(projectAccountName: string, projectFullName: string): Promise<EnvironmentSecretWithScope[]>;
12
+ allAsync(projectAccountName: string, projectId: string): Promise<EnvironmentSecretWithScope[]>;
13
13
  };
@@ -53,10 +53,10 @@ exports.EnvironmentSecretsQuery = {
53
53
  .toPromise());
54
54
  return (_b = (_a = data.app) === null || _a === void 0 ? void 0 : _a.byId.environmentSecrets) !== null && _b !== void 0 ? _b : [];
55
55
  },
56
- async allAsync(projectAccountName, projectFullName) {
56
+ async allAsync(projectAccountName, projectId) {
57
57
  const [accountSecrets, appSecrets] = await Promise.all([
58
58
  this.byAccountNameAsync(projectAccountName),
59
- this.byAppIdAsync(projectFullName),
59
+ this.byAppIdAsync(projectId),
60
60
  ]);
61
61
  return [
62
62
  ...appSecrets.map(s => ({ ...s, scope: EnvironmentSecretScope.PROJECT })),
@@ -0,0 +1,4 @@
1
+ import { StatuspageServiceFragment, StatuspageServiceName } from '../generated';
2
+ export declare const StatuspageServiceQuery: {
3
+ statuspageServicesAsync(serviceNames: StatuspageServiceName[]): Promise<StatuspageServiceFragment[]>;
4
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StatuspageServiceQuery = 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 StatuspageService_1 = require("../types/StatuspageService");
9
+ exports.StatuspageServiceQuery = {
10
+ async statuspageServicesAsync(serviceNames) {
11
+ const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
12
+ .query((0, graphql_tag_1.default) `
13
+ query StatuspageServiceByServiceNamesQuery($serviceNames: [StatuspageServiceName!]!) {
14
+ statuspageService {
15
+ byServiceNames(serviceNames: $serviceNames) {
16
+ id
17
+ ...StatuspageServiceFragment
18
+ }
19
+ }
20
+ }
21
+ ${(0, graphql_1.print)(StatuspageService_1.StatuspageServiceFragmentNode)}
22
+ `, { serviceNames }, {
23
+ additionalTypenames: ['StatuspageService', 'StatuspageIncident'],
24
+ })
25
+ .toPromise());
26
+ return data.statuspageService.byServiceNames;
27
+ },
28
+ };
@@ -0,0 +1 @@
1
+ export declare const StatuspageServiceFragmentNode: import("graphql").DocumentNode;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StatuspageServiceFragmentNode = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
6
+ exports.StatuspageServiceFragmentNode = (0, graphql_tag_1.default) `
7
+ fragment StatuspageServiceFragment on StatuspageService {
8
+ id
9
+ name
10
+ status
11
+ incidents {
12
+ id
13
+ status
14
+ name
15
+ impact
16
+ shortlink
17
+ }
18
+ }
19
+ `;
@@ -9,13 +9,6 @@ interface ProjectInfo {
9
9
  * @returns The project ID
10
10
  */
11
11
  export declare function ensureProjectExistsAsync(projectInfo: ProjectInfo): Promise<string>;
12
- /**
13
- * Finds project by `@accountName/slug` and returns its ID, return null if the project does not exist
14
- * @param accountName account name
15
- * @param slug project slug
16
- * @returns A promise resolving to Project ID, null if it doesn't exist
17
- */
18
- export declare function findProjectIdByAccountNameAndSlugNullableAsync(accountName: string, slug: string): Promise<string | null>;
19
12
  /**
20
13
  * Registers new project on EAS servers
21
14
  * @returns Created project's ID
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.registerNewProjectAsync = exports.findProjectIdByAccountNameAndSlugNullableAsync = exports.ensureProjectExistsAsync = void 0;
3
+ exports.registerNewProjectAsync = exports.ensureProjectExistsAsync = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const assert_1 = tslib_1.__importDefault(require("assert"));
6
6
  const chalk_1 = tslib_1.__importDefault(require("chalk"));
@@ -8,7 +8,7 @@ const terminal_link_1 = tslib_1.__importDefault(require("terminal-link"));
8
8
  const url_1 = require("../build/utils/url");
9
9
  const generated_1 = require("../graphql/generated");
10
10
  const AppMutation_1 = require("../graphql/mutations/AppMutation");
11
- const ProjectQuery_1 = require("../graphql/queries/ProjectQuery");
11
+ const AppQuery_1 = require("../graphql/queries/AppQuery");
12
12
  const ora_1 = require("../ora");
13
13
  const Account_1 = require("../user/Account");
14
14
  const actions_1 = require("../user/actions");
@@ -64,7 +64,8 @@ exports.ensureProjectExistsAsync = ensureProjectExistsAsync;
64
64
  async function findProjectIdByAccountNameAndSlugNullableAsync(accountName, slug) {
65
65
  var _a;
66
66
  try {
67
- return await findProjectIdByAccountNameAndSlugAsync(accountName, slug);
67
+ const { id } = await AppQuery_1.AppQuery.byFullNameAsync(`@${accountName}/${slug}`);
68
+ return id;
68
69
  }
69
70
  catch (err) {
70
71
  if ((_a = err.graphQLErrors) === null || _a === void 0 ? void 0 : _a.some((it) => { var _a; return ((_a = it.extensions) === null || _a === void 0 ? void 0 : _a.errorCode) !== 'EXPERIENCE_NOT_FOUND'; })) {
@@ -73,17 +74,6 @@ async function findProjectIdByAccountNameAndSlugNullableAsync(accountName, slug)
73
74
  return null;
74
75
  }
75
76
  }
76
- exports.findProjectIdByAccountNameAndSlugNullableAsync = findProjectIdByAccountNameAndSlugNullableAsync;
77
- /**
78
- * Finds project by `@accountName/slug` and returns its ID
79
- * @param accountName account name
80
- * @param slug project slug
81
- * @returns A promise resolving to Project ID
82
- */
83
- async function findProjectIdByAccountNameAndSlugAsync(accountName, slug) {
84
- const { id } = await ProjectQuery_1.ProjectQuery.byUsernameAndSlugAsync(accountName, slug);
85
- return id;
86
- }
87
77
  /**
88
78
  * Registers new project on EAS servers
89
79
  * @returns Created project's ID