eas-cli 0.35.0 → 0.38.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 (106) hide show
  1. package/README.md +37 -37
  2. package/build/analytics/common.d.ts +8 -0
  3. package/build/analytics/common.js +19 -0
  4. package/build/analytics/events.d.ts +43 -0
  5. package/build/analytics/events.js +51 -0
  6. package/build/{analytics.d.ts → analytics/rudderstackClient.d.ts} +0 -0
  7. package/build/{analytics.js → analytics/rudderstackClient.js} +2 -2
  8. package/build/build/android/build.d.ts +2 -1
  9. package/build/build/android/build.js +11 -9
  10. package/build/build/build.d.ts +0 -2
  11. package/build/build/build.js +19 -29
  12. package/build/build/configure.js +0 -1
  13. package/build/build/context.d.ts +19 -11
  14. package/build/build/context.js +0 -96
  15. package/build/build/createContext.d.ts +13 -0
  16. package/build/build/createContext.js +114 -0
  17. package/build/build/ios/UpdatesModule.js +3 -2
  18. package/build/build/ios/build.d.ts +2 -1
  19. package/build/build/ios/build.js +24 -19
  20. package/build/build/ios/credentials.js +3 -3
  21. package/build/build/ios/version.js +7 -3
  22. package/build/build/local.js +28 -26
  23. package/build/build/metadata.d.ts +1 -12
  24. package/build/build/metadata.js +24 -19
  25. package/build/build/types.d.ts +0 -1
  26. package/build/build/utils/devClient.d.ts +1 -2
  27. package/build/build/utils/repository.js +1 -0
  28. package/build/build/validate.d.ts +3 -3
  29. package/build/commandUtils/EasCommand.js +4 -4
  30. package/build/commands/branch/publish.js +24 -2
  31. package/build/commands/build/configure.js +2 -0
  32. package/build/commands/build/index.js +12 -17
  33. package/build/commands/channel/create.d.ts +6 -0
  34. package/build/commands/channel/create.js +2 -0
  35. package/build/commands/secret/create.js +0 -6
  36. package/build/commands/secret/delete.js +0 -6
  37. package/build/commands/secret/list.js +0 -6
  38. package/build/commands/submit.js +2 -11
  39. package/build/commands/webhook/create.js +1 -2
  40. package/build/commands/webhook/list.js +1 -1
  41. package/build/commands/webhook/update.js +1 -2
  42. package/build/credentials/android/actions/RemoveFcm.js +4 -4
  43. package/build/credentials/android/utils/keystore.js +67 -32
  44. package/build/credentials/ios/actions/AscApiKeyUtils.js +8 -7
  45. package/build/credentials/ios/actions/AssignAscApiKey.js +1 -1
  46. package/build/credentials/ios/actions/CreateAscApiKey.js +2 -2
  47. package/build/credentials/ios/actions/RemoveAscApiKey.js +6 -6
  48. package/build/credentials/ios/actions/SetUpAscApiKey.js +8 -8
  49. package/build/credentials/ios/actions/SetUpSubmissionCredentials.js +3 -3
  50. package/build/credentials/ios/appstore/ascApiKey.js +12 -12
  51. package/build/credentials/ios/appstore/bundleIdCapabilities.js +11 -1
  52. package/build/credentials/ios/appstore/entitlements.d.ts +2 -2
  53. package/build/credentials/ios/appstore/entitlements.js +28 -21
  54. package/build/credentials/ios/credentials.js +2 -2
  55. package/build/credentials/ios/utils/printCredentials.js +1 -1
  56. package/build/credentials/manager/AndroidActions.js +3 -3
  57. package/build/credentials/manager/IosActions.js +5 -5
  58. package/build/credentials/manager/ManageIos.js +4 -4
  59. package/build/graphql/generated.d.ts +146 -54
  60. package/build/graphql/generated.js +1 -0
  61. package/build/graphql/mutations/KeystoreGenerationUrlMutation.d.ts +3 -0
  62. package/build/graphql/mutations/KeystoreGenerationUrlMutation.js +23 -0
  63. package/build/project/android/applicationId.d.ts +6 -0
  64. package/build/project/android/applicationId.js +39 -29
  65. package/build/project/android/gradle.js +3 -2
  66. package/build/project/android/gradleUtils.d.ts +1 -0
  67. package/build/project/ios/bundleIdentifier.d.ts +6 -1
  68. package/build/project/ios/bundleIdentifier.js +29 -18
  69. package/build/submit/BaseSubmitter.d.ts +20 -4
  70. package/build/submit/BaseSubmitter.js +34 -1
  71. package/build/submit/android/AndroidSubmitCommand.d.ts +1 -2
  72. package/build/submit/android/AndroidSubmitCommand.js +23 -35
  73. package/build/submit/android/AndroidSubmitter.d.ts +12 -8
  74. package/build/submit/android/AndroidSubmitter.js +30 -21
  75. package/build/submit/android/ServiceAccountSource.d.ts +3 -2
  76. package/build/submit/android/ServiceAccountSource.js +16 -4
  77. package/build/submit/context.d.ts +4 -0
  78. package/build/submit/context.js +16 -1
  79. package/build/submit/ios/AppSpecificPasswordSource.d.ts +8 -1
  80. package/build/submit/ios/AppSpecificPasswordSource.js +44 -4
  81. package/build/submit/ios/CredentialsServiceSource.d.ts +9 -5
  82. package/build/submit/ios/CredentialsServiceSource.js +22 -5
  83. package/build/submit/ios/IosSubmitCommand.d.ts +2 -2
  84. package/build/submit/ios/IosSubmitCommand.js +46 -53
  85. package/build/submit/ios/IosSubmitter.d.ts +17 -7
  86. package/build/submit/ios/IosSubmitter.js +55 -29
  87. package/build/submit/submit.js +13 -4
  88. package/build/user/User.js +1 -1
  89. package/build/{build/ios → utils}/plist.d.ts +1 -1
  90. package/build/{build/ios → utils}/plist.js +8 -2
  91. package/build/utils/profiles.d.ts +9 -4
  92. package/build/utils/profiles.js +14 -7
  93. package/build/vcs/clients/git.d.ts +2 -1
  94. package/build/vcs/clients/git.js +87 -6
  95. package/build/vcs/vcs.d.ts +4 -3
  96. package/build/vcs/vcs.js +3 -3
  97. package/build/webhooks/input.d.ts +2 -2
  98. package/build/webhooks/input.js +19 -2
  99. package/oclif.manifest.json +1 -1
  100. package/package.json +10 -10
  101. package/build/build/utils/analytics.d.ts +0 -22
  102. package/build/build/utils/analytics.js +0 -28
  103. package/build/project/isEasEnabledForProject.d.ts +0 -8
  104. package/build/project/isEasEnabledForProject.js +0 -33
  105. package/build/submit/android/AndroidPackageSource.d.ts +0 -17
  106. package/build/submit/android/AndroidPackageSource.js +0 -27
@@ -43,7 +43,7 @@ export declare type RootQuery = {
43
43
  appleDeviceRegistrationRequest: AppleDeviceRegistrationRequestQuery;
44
44
  /** Top-level query object for querying Apple Teams. */
45
45
  appleTeam: AppleTeamQuery;
46
- app?: Maybe<AppQuery>;
46
+ app: AppQuery;
47
47
  /**
48
48
  * Look up app by app id
49
49
  * @deprecated Use 'byId' field under 'app'.
@@ -62,6 +62,8 @@ export declare type RootQuery = {
62
62
  clientBuilds: ClientBuildQuery;
63
63
  /** Top-level query object for querying Experimentation configuration. */
64
64
  experimentation: ExperimentationQuery;
65
+ /** Top-level query object for querying Stripe Invoices. */
66
+ invoice: InvoiceQuery;
65
67
  project: ProjectQuery;
66
68
  snack: SnackQuery;
67
69
  submissions: SubmissionQuery;
@@ -384,19 +386,31 @@ export declare type App = Project & {
384
386
  fullName: Scalars['String'];
385
387
  description: Scalars['String'];
386
388
  slug: Scalars['String'];
387
- updated: Scalars['DateTime'];
388
- published: Scalars['Boolean'];
389
389
  ownerAccount: Account;
390
+ privacySetting: AppPrivacy;
391
+ pushSecurityEnabled: Scalars['Boolean'];
392
+ /** Whether there have been any classic update publishes */
393
+ published: Scalars['Boolean'];
394
+ /** Time of last classic update publish */
395
+ updated: Scalars['DateTime'];
396
+ /** ID of latest classic update release */
397
+ latestReleaseId: Scalars['ID'];
398
+ /** Whether the latest classic update publish is using a deprecated SDK version */
399
+ isDeprecated: Scalars['Boolean'];
400
+ /** SDK version of the latest classic update publish, 0.0.0 otherwise */
401
+ sdkVersion: Scalars['String'];
402
+ /** Classic update release channel names (to be removed) */
403
+ releaseChannels: Array<Scalars['String']>;
404
+ /** Classic update release channel names that have at least one build */
405
+ buildsReleaseChannels: Array<Scalars['String']>;
406
+ /** githubUrl field from most recent classic update manifest */
390
407
  githubUrl?: Maybe<Scalars['String']>;
408
+ /** android.playStoreUrl field from most recent classic update manifest */
391
409
  playStoreUrl?: Maybe<Scalars['String']>;
410
+ /** ios.appStoreUrl field from most recent classic update manifest */
392
411
  appStoreUrl?: Maybe<Scalars['String']>;
412
+ /** Info about the icon specified in the most recent classic update manifest */
393
413
  icon?: Maybe<AppIcon>;
394
- sdkVersion: Scalars['String'];
395
- isDeprecated: Scalars['Boolean'];
396
- privacySetting: AppPrivacy;
397
- latestReleaseId: Scalars['ID'];
398
- pushSecurityEnabled: Scalars['Boolean'];
399
- releaseChannels: Array<Scalars['String']>;
400
414
  /** (EAS Build) Builds associated with this app */
401
415
  builds: Array<Build>;
402
416
  buildJobs: Array<BuildJob>;
@@ -553,6 +567,11 @@ export declare type AppLatestReleaseForReleaseChannelArgs = {
553
567
  platform: AppPlatform;
554
568
  releaseChannel: Scalars['String'];
555
569
  };
570
+ export declare enum AppPrivacy {
571
+ Public = "PUBLIC",
572
+ Unlisted = "UNLISTED",
573
+ Hidden = "HIDDEN"
574
+ }
556
575
  export declare type AppIcon = {
557
576
  __typename?: 'AppIcon';
558
577
  url: Scalars['String'];
@@ -561,11 +580,6 @@ export declare type AppIcon = {
561
580
  /** Nullable color palette of the app icon. If null, color palette couldn't be retrieved from external service (imgix) */
562
581
  colorPalette?: Maybe<Scalars['JSON']>;
563
582
  };
564
- export declare enum AppPrivacy {
565
- Public = "PUBLIC",
566
- Unlisted = "UNLISTED",
567
- Hidden = "HIDDEN"
568
- }
569
583
  export declare type BuildFilter = {
570
584
  platform?: Maybe<AppPlatform>;
571
585
  status?: Maybe<BuildStatus>;
@@ -830,7 +844,8 @@ export declare enum SubmissionStatus {
830
844
  }
831
845
  export declare type AndroidSubmissionConfig = {
832
846
  __typename?: 'AndroidSubmissionConfig';
833
- applicationIdentifier: Scalars['String'];
847
+ /** @deprecated applicationIdentifier is deprecated and will be auto-detected on submit */
848
+ applicationIdentifier?: Maybe<Scalars['String']>;
834
849
  /** @deprecated archiveType is deprecated and will be null */
835
850
  archiveType?: Maybe<SubmissionAndroidArchiveType>;
836
851
  track: SubmissionAndroidTrack;
@@ -855,7 +870,7 @@ export declare enum SubmissionAndroidReleaseStatus {
855
870
  export declare type IosSubmissionConfig = {
856
871
  __typename?: 'IosSubmissionConfig';
857
872
  ascAppIdentifier: Scalars['String'];
858
- appleIdUsername: Scalars['String'];
873
+ appleIdUsername?: Maybe<Scalars['String']>;
859
874
  ascApiKeyId?: Maybe<Scalars['String']>;
860
875
  };
861
876
  export declare type SubmissionError = {
@@ -1224,7 +1239,8 @@ export declare type WebhookFilter = {
1224
1239
  event?: Maybe<WebhookType>;
1225
1240
  };
1226
1241
  export declare enum WebhookType {
1227
- Build = "BUILD"
1242
+ Build = "BUILD",
1243
+ Submit = "SUBMIT"
1228
1244
  }
1229
1245
  export declare type Webhook = {
1230
1246
  __typename?: 'Webhook';
@@ -1286,6 +1302,7 @@ export declare type SubscriptionDetails = {
1286
1302
  endedAt?: Maybe<Scalars['DateTime']>;
1287
1303
  trialEnd?: Maybe<Scalars['DateTime']>;
1288
1304
  status?: Maybe<Scalars['String']>;
1305
+ isDowngrading?: Maybe<Scalars['Boolean']>;
1289
1306
  };
1290
1307
  export declare type AddonDetails = {
1291
1308
  __typename?: 'AddonDetails';
@@ -1510,6 +1527,45 @@ export declare type ExperimentationQuery = {
1510
1527
  /** Get experimentation unit to use for device experiments. In this case, it is the IP address. */
1511
1528
  deviceExperimentationUnit: Scalars['ID'];
1512
1529
  };
1530
+ export declare type InvoiceQuery = {
1531
+ __typename?: 'InvoiceQuery';
1532
+ /** Preview an upgrade subscription invoice, with proration */
1533
+ previewInvoiceForSubscriptionUpdate: Invoice;
1534
+ };
1535
+ export declare type InvoiceQueryPreviewInvoiceForSubscriptionUpdateArgs = {
1536
+ accountId: Scalars['String'];
1537
+ newPlanIdentifier: Scalars['String'];
1538
+ };
1539
+ export declare type Invoice = {
1540
+ __typename?: 'Invoice';
1541
+ id: Scalars['ID'];
1542
+ /** The total amount due for the invoice, in cents */
1543
+ amountDue: Scalars['Int'];
1544
+ /** The total amount that has been paid, considering any discounts or account credit. Value is in cents. */
1545
+ amountPaid: Scalars['Int'];
1546
+ /** The total amount that needs to be paid, considering any discounts or account credit. Value is in cents. */
1547
+ amountRemaining: Scalars['Int'];
1548
+ lineItems: Array<InvoiceLineItem>;
1549
+ period: InvoicePeriod;
1550
+ startingBalance: Scalars['Int'];
1551
+ subtotal: Scalars['Int'];
1552
+ total: Scalars['Int'];
1553
+ };
1554
+ export declare type InvoiceLineItem = {
1555
+ __typename?: 'InvoiceLineItem';
1556
+ id: Scalars['ID'];
1557
+ description: Scalars['String'];
1558
+ /** Line-item amount in cents */
1559
+ amount: Scalars['Int'];
1560
+ period: InvoicePeriod;
1561
+ proration: Scalars['Boolean'];
1562
+ quantity: Scalars['Int'];
1563
+ };
1564
+ export declare type InvoicePeriod = {
1565
+ __typename?: 'InvoicePeriod';
1566
+ start: Scalars['DateTime'];
1567
+ end: Scalars['DateTime'];
1568
+ };
1513
1569
  export declare type ProjectQuery = {
1514
1570
  __typename?: 'ProjectQuery';
1515
1571
  byAccountNameAndSlug: Project;
@@ -1642,6 +1698,7 @@ export declare type RootMutation = {
1642
1698
  iosAppBuildCredentials: IosAppBuildCredentialsMutation;
1643
1699
  /** Mutations that modify the credentials for an iOS app */
1644
1700
  iosAppCredentials: IosAppCredentialsMutation;
1701
+ keystoreGenerationUrl: KeystoreGenerationUrlMutation;
1645
1702
  /** Mutations that create, update, and delete Robots */
1646
1703
  robot: RobotMutation;
1647
1704
  /** Mutations that modify an EAS Submit submission */
@@ -1717,6 +1774,10 @@ export declare type AccountMutation = {
1717
1774
  subscribeToProduct?: Maybe<Account>;
1718
1775
  /** Cancels the active subscription */
1719
1776
  cancelSubscription?: Maybe<Account>;
1777
+ /** Upgrades or downgrades the active subscription to the newPlanIdentifier, which must be one of the EAS plans (i.e., Production or Enterprise). */
1778
+ changePlan: Account;
1779
+ /** Cancel scheduled subscription change */
1780
+ cancelScheduledSubscriptionChange: Account;
1720
1781
  /** Requests a refund for the specified charge. Returns true if auto-refund was possible, otherwise requests a manual refund from support and returns false. */
1721
1782
  requestRefund?: Maybe<Scalars['Boolean']>;
1722
1783
  /**
@@ -1754,6 +1815,13 @@ export declare type AccountMutationSubscribeToProductArgs = {
1754
1815
  export declare type AccountMutationCancelSubscriptionArgs = {
1755
1816
  accountName: Scalars['ID'];
1756
1817
  };
1818
+ export declare type AccountMutationChangePlanArgs = {
1819
+ accountID: Scalars['ID'];
1820
+ newPlanIdentifier: Scalars['String'];
1821
+ };
1822
+ export declare type AccountMutationCancelScheduledSubscriptionChangeArgs = {
1823
+ accountID: Scalars['ID'];
1824
+ };
1757
1825
  export declare type AccountMutationRequestRefundArgs = {
1758
1826
  accountID: Scalars['ID'];
1759
1827
  chargeIdentifier: Scalars['ID'];
@@ -2369,6 +2437,16 @@ export declare type IosAppCredentialsInput = {
2369
2437
  pushKeyId?: Maybe<Scalars['ID']>;
2370
2438
  appStoreConnectApiKeyForSubmissionsId?: Maybe<Scalars['ID']>;
2371
2439
  };
2440
+ export declare type KeystoreGenerationUrlMutation = {
2441
+ __typename?: 'KeystoreGenerationUrlMutation';
2442
+ /** Create a Keystore Generation URL */
2443
+ createKeystoreGenerationUrl: KeystoreGenerationUrl;
2444
+ };
2445
+ export declare type KeystoreGenerationUrl = {
2446
+ __typename?: 'KeystoreGenerationUrl';
2447
+ id: Scalars['ID'];
2448
+ url: Scalars['String'];
2449
+ };
2372
2450
  export declare type RobotMutation = {
2373
2451
  __typename?: 'RobotMutation';
2374
2452
  /** Create a Robot and grant it Permissions on an Account */
@@ -2478,7 +2556,7 @@ export declare type AndroidSubmissionConfigInput = {
2478
2556
  googleServiceAccountKeyId?: Maybe<Scalars['String']>;
2479
2557
  googleServiceAccountKeyJson?: Maybe<Scalars['String']>;
2480
2558
  archiveUrl?: Maybe<Scalars['String']>;
2481
- applicationIdentifier: Scalars['String'];
2559
+ applicationIdentifier?: Maybe<Scalars['String']>;
2482
2560
  track: SubmissionAndroidTrack;
2483
2561
  releaseStatus?: Maybe<SubmissionAndroidReleaseStatus>;
2484
2562
  changesNotSentForReview?: Maybe<Scalars['Boolean']>;
@@ -2937,7 +3015,7 @@ export declare type GetBranchInfoQueryVariables = Exact<{
2937
3015
  export declare type GetBranchInfoQuery = ({
2938
3016
  __typename?: 'RootQuery';
2939
3017
  } & {
2940
- app?: Maybe<({
3018
+ app: ({
2941
3019
  __typename?: 'AppQuery';
2942
3020
  } & {
2943
3021
  byId: ({
@@ -2947,7 +3025,7 @@ export declare type GetBranchInfoQuery = ({
2947
3025
  __typename?: 'UpdateBranch';
2948
3026
  } & Pick<UpdateBranch, 'id' | 'name'>)>;
2949
3027
  });
2950
- })>;
3028
+ });
2951
3029
  });
2952
3030
  export declare type DeleteUpdateBranchMutationVariables = Exact<{
2953
3031
  branchId: Scalars['ID'];
@@ -2970,7 +3048,7 @@ export declare type BranchesByAppQueryVariables = Exact<{
2970
3048
  export declare type BranchesByAppQuery = ({
2971
3049
  __typename?: 'RootQuery';
2972
3050
  } & {
2973
- app?: Maybe<({
3051
+ app: ({
2974
3052
  __typename?: 'AppQuery';
2975
3053
  } & {
2976
3054
  byId: ({
@@ -2980,7 +3058,7 @@ export declare type BranchesByAppQuery = ({
2980
3058
  __typename?: 'UpdateBranch';
2981
3059
  } & Pick<UpdateBranch, 'id'> & UpdateBranchFragment)>;
2982
3060
  });
2983
- })>;
3061
+ });
2984
3062
  });
2985
3063
  export declare type GetUpdateGroupAsyncQueryVariables = Exact<{
2986
3064
  group: Scalars['ID'];
@@ -3014,7 +3092,7 @@ export declare type ViewBranchQueryVariables = Exact<{
3014
3092
  export declare type ViewBranchQuery = ({
3015
3093
  __typename?: 'RootQuery';
3016
3094
  } & {
3017
- app?: Maybe<({
3095
+ app: ({
3018
3096
  __typename?: 'AppQuery';
3019
3097
  } & {
3020
3098
  byId: ({
@@ -3034,7 +3112,7 @@ export declare type ViewBranchQuery = ({
3034
3112
  })>;
3035
3113
  })>;
3036
3114
  });
3037
- })>;
3115
+ });
3038
3116
  });
3039
3117
  export declare type CancelBuildMutationVariables = Exact<{
3040
3118
  buildId: Scalars['ID'];
@@ -3073,7 +3151,7 @@ export declare type GetChannelByNameToEditQueryVariables = Exact<{
3073
3151
  export declare type GetChannelByNameToEditQuery = ({
3074
3152
  __typename?: 'RootQuery';
3075
3153
  } & {
3076
- app?: Maybe<({
3154
+ app: ({
3077
3155
  __typename?: 'AppQuery';
3078
3156
  } & {
3079
3157
  byId: ({
@@ -3087,7 +3165,7 @@ export declare type GetChannelByNameToEditQuery = ({
3087
3165
  } & Pick<UpdateBranch, 'id' | 'name'>)>;
3088
3166
  })>;
3089
3167
  });
3090
- })>;
3168
+ });
3091
3169
  });
3092
3170
  export declare type UpdateChannelBranchMappingMutationVariables = Exact<{
3093
3171
  channelId: Scalars['ID'];
@@ -3112,7 +3190,7 @@ export declare type GetAllChannelsForAppQueryVariables = Exact<{
3112
3190
  export declare type GetAllChannelsForAppQuery = ({
3113
3191
  __typename?: 'RootQuery';
3114
3192
  } & {
3115
- app?: Maybe<({
3193
+ app: ({
3116
3194
  __typename?: 'AppQuery';
3117
3195
  } & {
3118
3196
  byId: ({
@@ -3136,7 +3214,7 @@ export declare type GetAllChannelsForAppQuery = ({
3136
3214
  })>;
3137
3215
  })>;
3138
3216
  });
3139
- })>;
3217
+ });
3140
3218
  });
3141
3219
  export declare type GetChannelByNameForAppQueryVariables = Exact<{
3142
3220
  appId: Scalars['String'];
@@ -3145,7 +3223,7 @@ export declare type GetChannelByNameForAppQueryVariables = Exact<{
3145
3223
  export declare type GetChannelByNameForAppQuery = ({
3146
3224
  __typename?: 'RootQuery';
3147
3225
  } & {
3148
- app?: Maybe<({
3226
+ app: ({
3149
3227
  __typename?: 'AppQuery';
3150
3228
  } & {
3151
3229
  byId: ({
@@ -3169,7 +3247,7 @@ export declare type GetChannelByNameForAppQuery = ({
3169
3247
  })>;
3170
3248
  })>;
3171
3249
  });
3172
- })>;
3250
+ });
3173
3251
  });
3174
3252
  export declare type AppInfoQueryVariables = Exact<{
3175
3253
  appId: Scalars['String'];
@@ -3177,13 +3255,13 @@ export declare type AppInfoQueryVariables = Exact<{
3177
3255
  export declare type AppInfoQuery = ({
3178
3256
  __typename?: 'RootQuery';
3179
3257
  } & {
3180
- app?: Maybe<({
3258
+ app: ({
3181
3259
  __typename?: 'AppQuery';
3182
3260
  } & {
3183
3261
  byId: ({
3184
3262
  __typename?: 'App';
3185
3263
  } & Pick<App, 'id' | 'fullName'>);
3186
- })>;
3264
+ });
3187
3265
  });
3188
3266
  export declare type DeleteUpdateGroupMutationVariables = Exact<{
3189
3267
  group: Scalars['ID'];
@@ -3386,7 +3464,7 @@ export declare type CommonAndroidAppCredentialsWithBuildCredentialsByApplication
3386
3464
  export declare type CommonAndroidAppCredentialsWithBuildCredentialsByApplicationIdentifierQuery = ({
3387
3465
  __typename?: 'RootQuery';
3388
3466
  } & {
3389
- app?: Maybe<({
3467
+ app: ({
3390
3468
  __typename?: 'AppQuery';
3391
3469
  } & {
3392
3470
  byFullName: ({
@@ -3396,7 +3474,7 @@ export declare type CommonAndroidAppCredentialsWithBuildCredentialsByApplication
3396
3474
  __typename?: 'AndroidAppCredentials';
3397
3475
  } & Pick<AndroidAppCredentials, 'id'> & CommonAndroidAppCredentialsFragment)>;
3398
3476
  });
3399
- })>;
3477
+ });
3400
3478
  });
3401
3479
  export declare type GoogleServiceAccountKeyByAccountQueryVariables = Exact<{
3402
3480
  accountName: Scalars['String'];
@@ -3721,13 +3799,13 @@ export declare type AppByFullNameQueryVariables = Exact<{
3721
3799
  export declare type AppByFullNameQuery = ({
3722
3800
  __typename?: 'RootQuery';
3723
3801
  } & {
3724
- app?: Maybe<({
3802
+ app: ({
3725
3803
  __typename?: 'AppQuery';
3726
3804
  } & {
3727
3805
  byFullName: ({
3728
3806
  __typename?: 'App';
3729
3807
  } & Pick<App, 'id'> & AppFragment);
3730
- })>;
3808
+ });
3731
3809
  });
3732
3810
  export declare type AppStoreConnectApiKeyByAccountQueryVariables = Exact<{
3733
3811
  accountName: Scalars['String'];
@@ -3843,7 +3921,7 @@ export declare type AppleDistributionCertificateByAppQueryVariables = Exact<{
3843
3921
  export declare type AppleDistributionCertificateByAppQuery = ({
3844
3922
  __typename?: 'RootQuery';
3845
3923
  } & {
3846
- app?: Maybe<({
3924
+ app: ({
3847
3925
  __typename?: 'AppQuery';
3848
3926
  } & {
3849
3927
  byFullName: ({
@@ -3865,7 +3943,7 @@ export declare type AppleDistributionCertificateByAppQuery = ({
3865
3943
  })>;
3866
3944
  })>;
3867
3945
  });
3868
- })>;
3946
+ });
3869
3947
  });
3870
3948
  export declare type AppleDistributionCertificateByAccountQueryVariables = Exact<{
3871
3949
  accountName: Scalars['String'];
@@ -3893,7 +3971,7 @@ export declare type AppleProvisioningProfilesByAppQueryVariables = Exact<{
3893
3971
  export declare type AppleProvisioningProfilesByAppQuery = ({
3894
3972
  __typename?: 'RootQuery';
3895
3973
  } & {
3896
- app?: Maybe<({
3974
+ app: ({
3897
3975
  __typename?: 'AppQuery';
3898
3976
  } & {
3899
3977
  byFullName: ({
@@ -3921,7 +3999,7 @@ export declare type AppleProvisioningProfilesByAppQuery = ({
3921
3999
  })>;
3922
4000
  })>;
3923
4001
  });
3924
- })>;
4002
+ });
3925
4003
  });
3926
4004
  export declare type ApplePushKeyByAccountQueryVariables = Exact<{
3927
4005
  accountName: Scalars['String'];
@@ -3982,7 +4060,7 @@ export declare type IosAppBuildCredentialsByAppleAppIdentiferAndDistributionQuer
3982
4060
  export declare type IosAppBuildCredentialsByAppleAppIdentiferAndDistributionQuery = ({
3983
4061
  __typename?: 'RootQuery';
3984
4062
  } & {
3985
- app?: Maybe<({
4063
+ app: ({
3986
4064
  __typename?: 'AppQuery';
3987
4065
  } & {
3988
4066
  byFullName: ({
@@ -3996,7 +4074,7 @@ export declare type IosAppBuildCredentialsByAppleAppIdentiferAndDistributionQuer
3996
4074
  } & Pick<IosAppBuildCredentials, 'id'> & IosAppBuildCredentialsFragment)>;
3997
4075
  })>;
3998
4076
  });
3999
- })>;
4077
+ });
4000
4078
  });
4001
4079
  export declare type IosAppCredentialsWithBuildCredentialsByAppIdentifierIdQueryVariables = Exact<{
4002
4080
  projectFullName: Scalars['String'];
@@ -4006,7 +4084,7 @@ export declare type IosAppCredentialsWithBuildCredentialsByAppIdentifierIdQueryV
4006
4084
  export declare type IosAppCredentialsWithBuildCredentialsByAppIdentifierIdQuery = ({
4007
4085
  __typename?: 'RootQuery';
4008
4086
  } & {
4009
- app?: Maybe<({
4087
+ app: ({
4010
4088
  __typename?: 'AppQuery';
4011
4089
  } & {
4012
4090
  byFullName: ({
@@ -4020,7 +4098,7 @@ export declare type IosAppCredentialsWithBuildCredentialsByAppIdentifierIdQuery
4020
4098
  } & Pick<IosAppBuildCredentials, 'id'> & IosAppBuildCredentialsFragment)>;
4021
4099
  } & CommonIosAppCredentialsWithoutBuildCredentialsFragment)>;
4022
4100
  });
4023
- })>;
4101
+ });
4024
4102
  });
4025
4103
  export declare type CommonIosAppCredentialsWithBuildCredentialsByAppIdentifierIdQueryVariables = Exact<{
4026
4104
  projectFullName: Scalars['String'];
@@ -4029,7 +4107,7 @@ export declare type CommonIosAppCredentialsWithBuildCredentialsByAppIdentifierId
4029
4107
  export declare type CommonIosAppCredentialsWithBuildCredentialsByAppIdentifierIdQuery = ({
4030
4108
  __typename?: 'RootQuery';
4031
4109
  } & {
4032
- app?: Maybe<({
4110
+ app: ({
4033
4111
  __typename?: 'AppQuery';
4034
4112
  } & {
4035
4113
  byFullName: ({
@@ -4039,7 +4117,7 @@ export declare type CommonIosAppCredentialsWithBuildCredentialsByAppIdentifierId
4039
4117
  __typename?: 'IosAppCredentials';
4040
4118
  } & Pick<IosAppCredentials, 'id'> & CommonIosAppCredentialsFragment)>;
4041
4119
  });
4042
- })>;
4120
+ });
4043
4121
  });
4044
4122
  export declare type CreateAppMutationVariables = Exact<{
4045
4123
  appInput: AppInput;
@@ -4145,6 +4223,20 @@ export declare type DeleteEnvironmentSecretMutation = ({
4145
4223
  } & Pick<DeleteEnvironmentSecretResult, 'id'>);
4146
4224
  });
4147
4225
  });
4226
+ export declare type CreateKeystoreGenerationUrlMutationVariables = Exact<{
4227
+ [key: string]: never;
4228
+ }>;
4229
+ export declare type CreateKeystoreGenerationUrlMutation = ({
4230
+ __typename?: 'RootMutation';
4231
+ } & {
4232
+ keystoreGenerationUrl: ({
4233
+ __typename?: 'KeystoreGenerationUrlMutation';
4234
+ } & {
4235
+ createKeystoreGenerationUrl: ({
4236
+ __typename?: 'KeystoreGenerationUrl';
4237
+ } & Pick<KeystoreGenerationUrl, 'id' | 'url'>);
4238
+ });
4239
+ });
4148
4240
  export declare type GetSignedUploadMutationVariables = Exact<{
4149
4241
  contentTypes: Array<Scalars['String']>;
4150
4242
  }>;
@@ -4290,7 +4382,7 @@ export declare type GetAllBuildsForAppQueryVariables = Exact<{
4290
4382
  export declare type GetAllBuildsForAppQuery = ({
4291
4383
  __typename?: 'RootQuery';
4292
4384
  } & {
4293
- app?: Maybe<({
4385
+ app: ({
4294
4386
  __typename?: 'AppQuery';
4295
4387
  } & {
4296
4388
  byId: ({
@@ -4300,7 +4392,7 @@ export declare type GetAllBuildsForAppQuery = ({
4300
4392
  __typename?: 'Build';
4301
4393
  } & Pick<Build, 'id'> & BuildFragment)>;
4302
4394
  });
4303
- })>;
4395
+ });
4304
4396
  });
4305
4397
  export declare type EnvironmentSecretsByAccountNameQueryVariables = Exact<{
4306
4398
  accountName: Scalars['String'];
@@ -4326,7 +4418,7 @@ export declare type EnvironmentSecretsByAppIdQueryVariables = Exact<{
4326
4418
  export declare type EnvironmentSecretsByAppIdQuery = ({
4327
4419
  __typename?: 'RootQuery';
4328
4420
  } & {
4329
- app?: Maybe<({
4421
+ app: ({
4330
4422
  __typename?: 'AppQuery';
4331
4423
  } & {
4332
4424
  byId: ({
@@ -4336,7 +4428,7 @@ export declare type EnvironmentSecretsByAppIdQuery = ({
4336
4428
  __typename?: 'EnvironmentSecret';
4337
4429
  } & Pick<EnvironmentSecret, 'id'> & EnvironmentSecretFragment)>;
4338
4430
  });
4339
- })>;
4431
+ });
4340
4432
  });
4341
4433
  export declare type ProjectByUsernameAndSlugQueryVariables = Exact<{
4342
4434
  username: Scalars['String'];
@@ -4393,7 +4485,7 @@ export declare type GetAllSubmissionsForAppQueryVariables = Exact<{
4393
4485
  export declare type GetAllSubmissionsForAppQuery = ({
4394
4486
  __typename?: 'RootQuery';
4395
4487
  } & {
4396
- app?: Maybe<({
4488
+ app: ({
4397
4489
  __typename?: 'AppQuery';
4398
4490
  } & {
4399
4491
  byId: ({
@@ -4403,7 +4495,7 @@ export declare type GetAllSubmissionsForAppQuery = ({
4403
4495
  __typename?: 'Submission';
4404
4496
  } & Pick<Submission, 'id'> & SubmissionFragment)>;
4405
4497
  });
4406
- })>;
4498
+ });
4407
4499
  });
4408
4500
  export declare type CurrentUserQueryVariables = Exact<{
4409
4501
  [key: string]: never;
@@ -4432,7 +4524,7 @@ export declare type WebhooksByAppIdQueryVariables = Exact<{
4432
4524
  export declare type WebhooksByAppIdQuery = ({
4433
4525
  __typename?: 'RootQuery';
4434
4526
  } & {
4435
- app?: Maybe<({
4527
+ app: ({
4436
4528
  __typename?: 'AppQuery';
4437
4529
  } & {
4438
4530
  byId: ({
@@ -4442,7 +4534,7 @@ export declare type WebhooksByAppIdQuery = ({
4442
4534
  __typename?: 'Webhook';
4443
4535
  } & Pick<Webhook, 'id'> & WebhookFragment)>;
4444
4536
  });
4445
- })>;
4537
+ });
4446
4538
  });
4447
4539
  export declare type WebhookByIdQueryVariables = Exact<{
4448
4540
  webhookId: Scalars['ID'];
@@ -176,6 +176,7 @@ var AndroidKeystoreType;
176
176
  var WebhookType;
177
177
  (function (WebhookType) {
178
178
  WebhookType["Build"] = "BUILD";
179
+ WebhookType["Submit"] = "SUBMIT";
179
180
  })(WebhookType = exports.WebhookType || (exports.WebhookType = {}));
180
181
  var AppsFilter;
181
182
  (function (AppsFilter) {
@@ -0,0 +1,3 @@
1
+ export declare const KeystoreGenerationUrlMutation: {
2
+ createKeystoreGenerationUrlAsync(): Promise<string>;
3
+ };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KeystoreGenerationUrlMutation = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const graphql_tag_1 = (0, tslib_1.__importDefault)(require("graphql-tag"));
6
+ const client_1 = require("../client");
7
+ exports.KeystoreGenerationUrlMutation = {
8
+ async createKeystoreGenerationUrlAsync() {
9
+ const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
10
+ .mutation((0, graphql_tag_1.default) `
11
+ mutation CreateKeystoreGenerationUrlMutation {
12
+ keystoreGenerationUrl {
13
+ createKeystoreGenerationUrl {
14
+ id
15
+ url
16
+ }
17
+ }
18
+ }
19
+ `)
20
+ .toPromise());
21
+ return data.keystoreGenerationUrl.createKeystoreGenerationUrl.url;
22
+ },
23
+ };
@@ -1,5 +1,11 @@
1
1
  import { ExpoConfig } from '@expo/config';
2
2
  import { GradleBuildContext } from './gradle';
3
+ export declare const INVALID_APPLICATION_ID_MESSAGE = "Invalid format of Android applicationId. Only alphanumeric characters, '.' and '_' are allowed, and each '.' must be followed by a letter.";
3
4
  export declare function ensureApplicationIdIsDefinedForManagedProjectAsync(projectDir: string, exp: ExpoConfig): Promise<string>;
5
+ export declare class AmbiguousApplicationIdError extends Error {
6
+ constructor(message?: string);
7
+ }
8
+ export declare function getApplicationIdFromBareAsync(projectDir: string, gradleContext?: GradleBuildContext): Promise<string>;
4
9
  export declare function getApplicationIdAsync(projectDir: string, exp: ExpoConfig, gradleContext?: GradleBuildContext): Promise<string>;
10
+ export declare function isApplicationIdValid(applicationId: string): boolean;
5
11
  export declare function warnIfAndroidPackageDefinedInAppConfigForBareWorkflowProject(projectDir: string, exp: ExpoConfig): void;