eas-cli 0.56.0 → 0.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -49
- package/build/branch/queries.d.ts +5 -0
- package/build/branch/queries.js +87 -0
- package/build/build/context.d.ts +1 -0
- package/build/build/createContext.d.ts +2 -1
- package/build/build/createContext.js +2 -1
- package/build/build/metadata.d.ts +1 -0
- package/build/build/metadata.js +14 -4
- package/build/build/runBuildAndSubmit.d.ts +1 -0
- package/build/build/runBuildAndSubmit.js +1 -0
- package/build/commandUtils/pagination.d.ts +13 -0
- package/build/commandUtils/pagination.js +42 -0
- package/build/commands/branch/list.d.ts +3 -4
- package/build/commands/branch/list.js +6 -69
- package/build/commands/branch/view.d.ts +3 -0
- package/build/commands/branch/view.js +15 -63
- package/build/commands/build/index.d.ts +1 -0
- package/build/commands/build/index.js +9 -0
- package/build/commands/update/index.d.ts +2 -2
- package/build/commands/update/index.js +10 -4
- package/build/commands/update/list.js +13 -18
- package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +2 -2
- package/build/devices/actions/create/action.d.ts +5 -2
- package/build/devices/actions/create/action.js +12 -2
- package/build/devices/actions/create/developerPortalMethod.d.ts +6 -0
- package/build/devices/actions/create/developerPortalMethod.js +90 -0
- package/build/devices/manager.js +4 -4
- package/build/graphql/generated.d.ts +184 -57
- package/build/graphql/generated.js +7 -1
- package/build/graphql/queries/BranchQuery.d.ts +2 -1
- package/build/graphql/queries/BranchQuery.js +26 -0
- package/build/graphql/queries/UpdateQuery.d.ts +6 -8
- package/build/graphql/queries/UpdateQuery.js +27 -23
- package/build/update/queries.d.ts +3 -0
- package/build/update/queries.js +72 -0
- package/build/update/utils.d.ts +14 -0
- package/build/update/utils.js +26 -9
- package/build/utils/expodash/chunk.d.ts +1 -0
- package/build/utils/expodash/chunk.js +16 -0
- package/build/utils/queries.d.ts +25 -0
- package/build/utils/queries.js +67 -0
- package/oclif.manifest.json +1 -1
- package/package.json +5 -4
|
@@ -120,6 +120,8 @@ export declare type Account = {
|
|
|
120
120
|
requiresAccessTokenForPushSecurity: Scalars['Boolean'];
|
|
121
121
|
/** Snacks associated with this account */
|
|
122
122
|
snacks: Array<Snack>;
|
|
123
|
+
/** SSO configuration for this account */
|
|
124
|
+
ssoConfiguration?: Maybe<AccountSsoConfiguration>;
|
|
123
125
|
/** Subscription info visible to members that have VIEWER role */
|
|
124
126
|
subscription?: Maybe<SubscriptionDetails>;
|
|
125
127
|
/** @deprecated No longer needed */
|
|
@@ -334,6 +336,77 @@ export declare type AccountQueryByIdArgs = {
|
|
|
334
336
|
export declare type AccountQueryByNameArgs = {
|
|
335
337
|
accountName: Scalars['String'];
|
|
336
338
|
};
|
|
339
|
+
/** Auth configuration data for an SSO account. */
|
|
340
|
+
export declare type AccountSsoConfiguration = {
|
|
341
|
+
__typename?: 'AccountSSOConfiguration';
|
|
342
|
+
authEndpoint?: Maybe<Scalars['String']>;
|
|
343
|
+
authProtocol: AuthProtocolType;
|
|
344
|
+
authProviderIdentifier: Scalars['String'];
|
|
345
|
+
clientIdentifier: Scalars['String'];
|
|
346
|
+
clientSecret: Scalars['String'];
|
|
347
|
+
createdAt: Scalars['DateTime'];
|
|
348
|
+
id: Scalars['ID'];
|
|
349
|
+
issuer?: Maybe<Scalars['String']>;
|
|
350
|
+
jwksEndpoint?: Maybe<Scalars['String']>;
|
|
351
|
+
redirectUri: Scalars['String'];
|
|
352
|
+
tokenEndpoint?: Maybe<Scalars['String']>;
|
|
353
|
+
updatedAt: Scalars['DateTime'];
|
|
354
|
+
userInfoEndpoint?: Maybe<Scalars['String']>;
|
|
355
|
+
};
|
|
356
|
+
export declare type AccountSsoConfigurationData = {
|
|
357
|
+
authEndpoint?: InputMaybe<Scalars['String']>;
|
|
358
|
+
authProtocol: AuthProtocolType;
|
|
359
|
+
authProviderIdentifier: Scalars['String'];
|
|
360
|
+
clientIdentifier: Scalars['String'];
|
|
361
|
+
clientSecret: Scalars['String'];
|
|
362
|
+
issuer?: InputMaybe<Scalars['String']>;
|
|
363
|
+
jwksEndpoint?: InputMaybe<Scalars['String']>;
|
|
364
|
+
redirectUri: Scalars['String'];
|
|
365
|
+
tokenEndpoint?: InputMaybe<Scalars['String']>;
|
|
366
|
+
userInfoEndpoint?: InputMaybe<Scalars['String']>;
|
|
367
|
+
};
|
|
368
|
+
export declare type AccountSsoConfigurationMutation = {
|
|
369
|
+
__typename?: 'AccountSSOConfigurationMutation';
|
|
370
|
+
/** Create an AccountSSOConfiguration for an Account */
|
|
371
|
+
createAccountSSOConfiguration: AccountSsoConfiguration;
|
|
372
|
+
/** Delete an AccountSSOConfiguration */
|
|
373
|
+
deleteAccountSSOConfiguration: DeleteAccountSsoConfigurationResult;
|
|
374
|
+
/** Update an AccountSSOConfiguration */
|
|
375
|
+
updateAccountSSOConfiguration: AccountSsoConfiguration;
|
|
376
|
+
};
|
|
377
|
+
export declare type AccountSsoConfigurationMutationCreateAccountSsoConfigurationArgs = {
|
|
378
|
+
accountId: Scalars['ID'];
|
|
379
|
+
accountSSOConfigurationData: AccountSsoConfigurationData;
|
|
380
|
+
};
|
|
381
|
+
export declare type AccountSsoConfigurationMutationDeleteAccountSsoConfigurationArgs = {
|
|
382
|
+
id: Scalars['ID'];
|
|
383
|
+
};
|
|
384
|
+
export declare type AccountSsoConfigurationMutationUpdateAccountSsoConfigurationArgs = {
|
|
385
|
+
accountSSOConfigurationData: AccountSsoConfigurationData;
|
|
386
|
+
id: Scalars['ID'];
|
|
387
|
+
};
|
|
388
|
+
/** Public auth configuration data for an SSO account. */
|
|
389
|
+
export declare type AccountSsoConfigurationPublicData = {
|
|
390
|
+
__typename?: 'AccountSSOConfigurationPublicData';
|
|
391
|
+
authEndpoint?: Maybe<Scalars['String']>;
|
|
392
|
+
authProtocol: AuthProtocolType;
|
|
393
|
+
authProviderIdentifier: Scalars['String'];
|
|
394
|
+
clientIdentifier: Scalars['String'];
|
|
395
|
+
id: Scalars['ID'];
|
|
396
|
+
issuer?: Maybe<Scalars['String']>;
|
|
397
|
+
jwksEndpoint?: Maybe<Scalars['String']>;
|
|
398
|
+
redirectUri: Scalars['String'];
|
|
399
|
+
tokenEndpoint?: Maybe<Scalars['String']>;
|
|
400
|
+
userInfoEndpoint?: Maybe<Scalars['String']>;
|
|
401
|
+
};
|
|
402
|
+
export declare type AccountSsoConfigurationPublicDataQuery = {
|
|
403
|
+
__typename?: 'AccountSSOConfigurationPublicDataQuery';
|
|
404
|
+
/** Get AccountSSOConfiguration public data by account name */
|
|
405
|
+
publicDataByAccountName: AccountSsoConfigurationPublicData;
|
|
406
|
+
};
|
|
407
|
+
export declare type AccountSsoConfigurationPublicDataQueryPublicDataByAccountNameArgs = {
|
|
408
|
+
accountName: Scalars['String'];
|
|
409
|
+
};
|
|
337
410
|
export declare type AccountUsageMetric = {
|
|
338
411
|
__typename?: 'AccountUsageMetric';
|
|
339
412
|
id: Scalars['ID'];
|
|
@@ -362,6 +435,7 @@ export declare type AccountUsageMetricsByBillingPeriodArgs = {
|
|
|
362
435
|
date: Scalars['DateTime'];
|
|
363
436
|
};
|
|
364
437
|
export declare type AccountUsageMetricsMetricsForServiceMetricArgs = {
|
|
438
|
+
filterParams?: InputMaybe<Scalars['JSONObject']>;
|
|
365
439
|
granularity: UsageMetricsGranularity;
|
|
366
440
|
serviceMetric: EasServiceMetric;
|
|
367
441
|
timespan: UsageMetricsTimespan;
|
|
@@ -596,6 +670,7 @@ export declare type AndroidJobInput = {
|
|
|
596
670
|
type: BuildWorkflow;
|
|
597
671
|
updates?: InputMaybe<BuildUpdatesInput>;
|
|
598
672
|
username?: InputMaybe<Scalars['String']>;
|
|
673
|
+
version?: InputMaybe<AndroidJobVersionInput>;
|
|
599
674
|
};
|
|
600
675
|
export declare type AndroidJobKeystoreInput = {
|
|
601
676
|
dataBase64: Scalars['String'];
|
|
@@ -607,6 +682,9 @@ export declare type AndroidJobSecretsInput = {
|
|
|
607
682
|
buildCredentials?: InputMaybe<AndroidJobBuildCredentialsInput>;
|
|
608
683
|
environmentSecrets?: InputMaybe<Scalars['JSONObject']>;
|
|
609
684
|
};
|
|
685
|
+
export declare type AndroidJobVersionInput = {
|
|
686
|
+
versionCode: Scalars['String'];
|
|
687
|
+
};
|
|
610
688
|
export declare type AndroidKeystore = {
|
|
611
689
|
__typename?: 'AndroidKeystore';
|
|
612
690
|
account: Account;
|
|
@@ -1325,6 +1403,9 @@ export declare type AssetQuery = {
|
|
|
1325
1403
|
export declare type AssetQueryMetadataArgs = {
|
|
1326
1404
|
storageKeys: Array<Scalars['String']>;
|
|
1327
1405
|
};
|
|
1406
|
+
export declare enum AuthProtocolType {
|
|
1407
|
+
Oidc = "OIDC"
|
|
1408
|
+
}
|
|
1328
1409
|
export declare type Billing = {
|
|
1329
1410
|
__typename?: 'Billing';
|
|
1330
1411
|
/** History of invoices */
|
|
@@ -1351,6 +1432,7 @@ export declare type Build = ActivityTimelineProjectActivity & BuildOrBuildJob &
|
|
|
1351
1432
|
canRetry: Scalars['Boolean'];
|
|
1352
1433
|
cancelingActor?: Maybe<Actor>;
|
|
1353
1434
|
channel?: Maybe<Scalars['String']>;
|
|
1435
|
+
childBuild?: Maybe<Build>;
|
|
1354
1436
|
completedAt?: Maybe<Scalars['DateTime']>;
|
|
1355
1437
|
createdAt: Scalars['DateTime'];
|
|
1356
1438
|
distribution?: Maybe<DistributionType>;
|
|
@@ -1359,6 +1441,7 @@ export declare type Build = ActivityTimelineProjectActivity & BuildOrBuildJob &
|
|
|
1359
1441
|
estimatedWaitTimeLeftSeconds?: Maybe<Scalars['Int']>;
|
|
1360
1442
|
expirationDate?: Maybe<Scalars['DateTime']>;
|
|
1361
1443
|
gitCommitHash?: Maybe<Scalars['String']>;
|
|
1444
|
+
gitCommitMessage?: Maybe<Scalars['String']>;
|
|
1362
1445
|
id: Scalars['ID'];
|
|
1363
1446
|
/** Queue position is 1-indexed */
|
|
1364
1447
|
initialQueuePosition?: Maybe<Scalars['Int']>;
|
|
@@ -1369,6 +1452,9 @@ export declare type Build = ActivityTimelineProjectActivity & BuildOrBuildJob &
|
|
|
1369
1452
|
isGitWorkingTreeDirty?: Maybe<Scalars['Boolean']>;
|
|
1370
1453
|
logFiles: Array<Scalars['String']>;
|
|
1371
1454
|
maxBuildTimeSeconds: Scalars['Int'];
|
|
1455
|
+
/** Retry time starts after completedAt */
|
|
1456
|
+
maxRetryTimeMinutes: Scalars['Int'];
|
|
1457
|
+
message?: Maybe<Scalars['String']>;
|
|
1372
1458
|
metrics?: Maybe<BuildMetrics>;
|
|
1373
1459
|
parentBuild?: Maybe<Build>;
|
|
1374
1460
|
platform: AppPlatform;
|
|
@@ -1506,8 +1592,10 @@ export declare type BuildMetadataInput = {
|
|
|
1506
1592
|
credentialsSource?: InputMaybe<BuildCredentialsSource>;
|
|
1507
1593
|
distribution?: InputMaybe<DistributionType>;
|
|
1508
1594
|
gitCommitHash?: InputMaybe<Scalars['String']>;
|
|
1595
|
+
gitCommitMessage?: InputMaybe<Scalars['String']>;
|
|
1509
1596
|
iosEnterpriseProvisioning?: InputMaybe<BuildIosEnterpriseProvisioning>;
|
|
1510
1597
|
isGitWorkingTreeDirty?: InputMaybe<Scalars['Boolean']>;
|
|
1598
|
+
message?: InputMaybe<Scalars['String']>;
|
|
1511
1599
|
reactNativeVersion?: InputMaybe<Scalars['String']>;
|
|
1512
1600
|
releaseChannel?: InputMaybe<Scalars['String']>;
|
|
1513
1601
|
runtimeVersion?: InputMaybe<Scalars['String']>;
|
|
@@ -1746,6 +1834,10 @@ export declare type DeleteAccountResult = {
|
|
|
1746
1834
|
__typename?: 'DeleteAccountResult';
|
|
1747
1835
|
id: Scalars['ID'];
|
|
1748
1836
|
};
|
|
1837
|
+
export declare type DeleteAccountSsoConfigurationResult = {
|
|
1838
|
+
__typename?: 'DeleteAccountSSOConfigurationResult';
|
|
1839
|
+
id: Scalars['ID'];
|
|
1840
|
+
};
|
|
1749
1841
|
export declare type DeleteAndroidKeystoreResult = {
|
|
1750
1842
|
__typename?: 'DeleteAndroidKeystoreResult';
|
|
1751
1843
|
id: Scalars['ID'];
|
|
@@ -1825,6 +1917,7 @@ export declare enum EasBuildDeprecationInfoType {
|
|
|
1825
1917
|
export declare enum EasServiceMetric {
|
|
1826
1918
|
AssetsRequests = "ASSETS_REQUESTS",
|
|
1827
1919
|
BandwidthUsage = "BANDWIDTH_USAGE",
|
|
1920
|
+
Builds = "BUILDS",
|
|
1828
1921
|
ManifestRequests = "MANIFEST_REQUESTS",
|
|
1829
1922
|
UniqueUsers = "UNIQUE_USERS"
|
|
1830
1923
|
}
|
|
@@ -1900,6 +1993,14 @@ export declare enum Feature {
|
|
|
1900
1993
|
/** Share access to projects */
|
|
1901
1994
|
Teams = "TEAMS"
|
|
1902
1995
|
}
|
|
1996
|
+
export declare type FutureSubscription = {
|
|
1997
|
+
__typename?: 'FutureSubscription';
|
|
1998
|
+
createdAt: Scalars['DateTime'];
|
|
1999
|
+
id: Scalars['ID'];
|
|
2000
|
+
meteredBillingStatus: MeteredBillingStatus;
|
|
2001
|
+
planId: Scalars['String'];
|
|
2002
|
+
startDate: Scalars['DateTime'];
|
|
2003
|
+
};
|
|
1903
2004
|
export declare type GetSignedAssetUploadSpecificationsResult = {
|
|
1904
2005
|
__typename?: 'GetSignedAssetUploadSpecificationsResult';
|
|
1905
2006
|
specifications: Array<Scalars['String']>;
|
|
@@ -2127,6 +2228,7 @@ export declare type IosJobInput = {
|
|
|
2127
2228
|
type: BuildWorkflow;
|
|
2128
2229
|
updates?: InputMaybe<BuildUpdatesInput>;
|
|
2129
2230
|
username?: InputMaybe<Scalars['String']>;
|
|
2231
|
+
version?: InputMaybe<IosJobVersionInput>;
|
|
2130
2232
|
};
|
|
2131
2233
|
export declare type IosJobSecretsInput = {
|
|
2132
2234
|
buildCredentials?: InputMaybe<Array<InputMaybe<IosJobTargetCredentialsInput>>>;
|
|
@@ -2137,6 +2239,9 @@ export declare type IosJobTargetCredentialsInput = {
|
|
|
2137
2239
|
provisioningProfileBase64: Scalars['String'];
|
|
2138
2240
|
targetName: Scalars['String'];
|
|
2139
2241
|
};
|
|
2242
|
+
export declare type IosJobVersionInput = {
|
|
2243
|
+
buildNumber: Scalars['String'];
|
|
2244
|
+
};
|
|
2140
2245
|
/** @deprecated Use developmentClient option instead. */
|
|
2141
2246
|
export declare enum IosManagedBuildType {
|
|
2142
2247
|
DevelopmentClient = "DEVELOPMENT_CLIENT",
|
|
@@ -2275,6 +2380,10 @@ export declare type MeMutationUpdateAppArgs = {
|
|
|
2275
2380
|
export declare type MeMutationUpdateProfileArgs = {
|
|
2276
2381
|
userData: UserDataInput;
|
|
2277
2382
|
};
|
|
2383
|
+
export declare type MeteredBillingStatus = {
|
|
2384
|
+
__typename?: 'MeteredBillingStatus';
|
|
2385
|
+
EAS_UPDATE: Scalars['Boolean'];
|
|
2386
|
+
};
|
|
2278
2387
|
export declare type Offer = {
|
|
2279
2388
|
__typename?: 'Offer';
|
|
2280
2389
|
features?: Maybe<Array<Maybe<Feature>>>;
|
|
@@ -2457,6 +2566,8 @@ export declare type RootMutation = {
|
|
|
2457
2566
|
accessToken: AccessTokenMutation;
|
|
2458
2567
|
/** Mutations that modify an Account */
|
|
2459
2568
|
account: AccountMutation;
|
|
2569
|
+
/** Mutations that create, update, and delete an AccountSSOConfiguration */
|
|
2570
|
+
accountSSOConfiguration: AccountSsoConfigurationMutation;
|
|
2460
2571
|
/** Mutations that modify the build credentials for an Android app */
|
|
2461
2572
|
androidAppBuildCredentials: AndroidAppBuildCredentialsMutation;
|
|
2462
2573
|
/** Mutations that modify the credentials for an Android app */
|
|
@@ -2537,6 +2648,8 @@ export declare type RootQuery = {
|
|
|
2537
2648
|
_doNotUse?: Maybe<Scalars['String']>;
|
|
2538
2649
|
/** Top-level query object for querying Accounts. */
|
|
2539
2650
|
account: AccountQuery;
|
|
2651
|
+
/** Top-level query object for querying AccountSSOConfigurationPublicData */
|
|
2652
|
+
accountSSOConfigurationPublicData: AccountSsoConfigurationPublicDataQuery;
|
|
2540
2653
|
/** Top-level query object for querying Actors. */
|
|
2541
2654
|
actor: ActorQuery;
|
|
2542
2655
|
/**
|
|
@@ -2706,12 +2819,16 @@ export declare type Submission = ActivityTimelineProjectActivity & {
|
|
|
2706
2819
|
archiveUrl?: Maybe<Scalars['String']>;
|
|
2707
2820
|
canRetry: Scalars['Boolean'];
|
|
2708
2821
|
cancelingActor?: Maybe<Actor>;
|
|
2822
|
+
childSubmission?: Maybe<Submission>;
|
|
2823
|
+
completedAt?: Maybe<Scalars['DateTime']>;
|
|
2709
2824
|
createdAt: Scalars['DateTime'];
|
|
2710
2825
|
error?: Maybe<SubmissionError>;
|
|
2711
2826
|
id: Scalars['ID'];
|
|
2712
2827
|
initiatingActor?: Maybe<Actor>;
|
|
2713
2828
|
iosConfig?: Maybe<IosSubmissionConfig>;
|
|
2714
2829
|
logsUrl?: Maybe<Scalars['String']>;
|
|
2830
|
+
/** Retry time starts after completedAt */
|
|
2831
|
+
maxRetryTimeMinutes: Scalars['Int'];
|
|
2715
2832
|
parentSubmission?: Maybe<Submission>;
|
|
2716
2833
|
platform: AppPlatform;
|
|
2717
2834
|
status: SubmissionStatus;
|
|
@@ -2788,8 +2905,10 @@ export declare type SubscriptionDetails = {
|
|
|
2788
2905
|
cancelledAt?: Maybe<Scalars['DateTime']>;
|
|
2789
2906
|
concurrencies?: Maybe<Concurrencies>;
|
|
2790
2907
|
endedAt?: Maybe<Scalars['DateTime']>;
|
|
2908
|
+
futureSubscription?: Maybe<FutureSubscription>;
|
|
2791
2909
|
id: Scalars['ID'];
|
|
2792
2910
|
isDowngrading?: Maybe<Scalars['Boolean']>;
|
|
2911
|
+
meteredBillingStatus: MeteredBillingStatus;
|
|
2793
2912
|
name?: Maybe<Scalars['String']>;
|
|
2794
2913
|
nextInvoice?: Maybe<Scalars['DateTime']>;
|
|
2795
2914
|
planId?: Maybe<Scalars['String']>;
|
|
@@ -2948,6 +3067,7 @@ export declare type UsageMetricTotal = {
|
|
|
2948
3067
|
};
|
|
2949
3068
|
export declare enum UsageMetricType {
|
|
2950
3069
|
Bandwidth = "BANDWIDTH",
|
|
3070
|
+
Build = "BUILD",
|
|
2951
3071
|
Request = "REQUEST",
|
|
2952
3072
|
User = "USER"
|
|
2953
3073
|
}
|
|
@@ -3285,43 +3405,6 @@ export declare type DeleteUpdateBranchMutation = {
|
|
|
3285
3405
|
};
|
|
3286
3406
|
};
|
|
3287
3407
|
};
|
|
3288
|
-
export declare type BranchesByAppQueryVariables = Exact<{
|
|
3289
|
-
appId: Scalars['String'];
|
|
3290
|
-
limit: Scalars['Int'];
|
|
3291
|
-
}>;
|
|
3292
|
-
export declare type BranchesByAppQuery = {
|
|
3293
|
-
__typename?: 'RootQuery';
|
|
3294
|
-
app: {
|
|
3295
|
-
__typename?: 'AppQuery';
|
|
3296
|
-
byId: {
|
|
3297
|
-
__typename?: 'App';
|
|
3298
|
-
id: string;
|
|
3299
|
-
updateBranches: Array<{
|
|
3300
|
-
__typename?: 'UpdateBranch';
|
|
3301
|
-
id: string;
|
|
3302
|
-
name: string;
|
|
3303
|
-
updates: Array<{
|
|
3304
|
-
__typename?: 'Update';
|
|
3305
|
-
id: string;
|
|
3306
|
-
createdAt: any;
|
|
3307
|
-
message?: string | null;
|
|
3308
|
-
runtimeVersion: string;
|
|
3309
|
-
group: string;
|
|
3310
|
-
platform: string;
|
|
3311
|
-
actor?: {
|
|
3312
|
-
__typename: 'Robot';
|
|
3313
|
-
firstName?: string | null;
|
|
3314
|
-
id: string;
|
|
3315
|
-
} | {
|
|
3316
|
-
__typename: 'User';
|
|
3317
|
-
username: string;
|
|
3318
|
-
id: string;
|
|
3319
|
-
} | null;
|
|
3320
|
-
}>;
|
|
3321
|
-
}>;
|
|
3322
|
-
};
|
|
3323
|
-
};
|
|
3324
|
-
};
|
|
3325
3408
|
export declare type EditUpdateBranchMutationVariables = Exact<{
|
|
3326
3409
|
input: EditUpdateBranchInput;
|
|
3327
3410
|
}>;
|
|
@@ -6285,6 +6368,44 @@ export declare type ViewBranchQuery = {
|
|
|
6285
6368
|
};
|
|
6286
6369
|
};
|
|
6287
6370
|
};
|
|
6371
|
+
export declare type BranchesByAppQueryVariables = Exact<{
|
|
6372
|
+
appId: Scalars['String'];
|
|
6373
|
+
limit: Scalars['Int'];
|
|
6374
|
+
offset: Scalars['Int'];
|
|
6375
|
+
}>;
|
|
6376
|
+
export declare type BranchesByAppQuery = {
|
|
6377
|
+
__typename?: 'RootQuery';
|
|
6378
|
+
app: {
|
|
6379
|
+
__typename?: 'AppQuery';
|
|
6380
|
+
byId: {
|
|
6381
|
+
__typename?: 'App';
|
|
6382
|
+
id: string;
|
|
6383
|
+
updateBranches: Array<{
|
|
6384
|
+
__typename?: 'UpdateBranch';
|
|
6385
|
+
id: string;
|
|
6386
|
+
name: string;
|
|
6387
|
+
updates: Array<{
|
|
6388
|
+
__typename?: 'Update';
|
|
6389
|
+
id: string;
|
|
6390
|
+
createdAt: any;
|
|
6391
|
+
message?: string | null;
|
|
6392
|
+
runtimeVersion: string;
|
|
6393
|
+
group: string;
|
|
6394
|
+
platform: string;
|
|
6395
|
+
actor?: {
|
|
6396
|
+
__typename: 'Robot';
|
|
6397
|
+
firstName?: string | null;
|
|
6398
|
+
id: string;
|
|
6399
|
+
} | {
|
|
6400
|
+
__typename: 'User';
|
|
6401
|
+
username: string;
|
|
6402
|
+
id: string;
|
|
6403
|
+
} | null;
|
|
6404
|
+
}>;
|
|
6405
|
+
}>;
|
|
6406
|
+
};
|
|
6407
|
+
};
|
|
6408
|
+
};
|
|
6288
6409
|
export declare type BuildsByIdQueryVariables = Exact<{
|
|
6289
6410
|
buildId: Scalars['ID'];
|
|
6290
6411
|
}>;
|
|
@@ -6636,6 +6757,7 @@ export declare type GetAllSubmissionsForAppQuery = {
|
|
|
6636
6757
|
export declare type ViewAllUpdatesQueryVariables = Exact<{
|
|
6637
6758
|
appId: Scalars['String'];
|
|
6638
6759
|
limit: Scalars['Int'];
|
|
6760
|
+
offset: Scalars['Int'];
|
|
6639
6761
|
}>;
|
|
6640
6762
|
export declare type ViewAllUpdatesQuery = {
|
|
6641
6763
|
__typename?: 'RootQuery';
|
|
@@ -6644,28 +6766,28 @@ export declare type ViewAllUpdatesQuery = {
|
|
|
6644
6766
|
byId: {
|
|
6645
6767
|
__typename?: 'App';
|
|
6646
6768
|
id: string;
|
|
6647
|
-
|
|
6648
|
-
__typename?: '
|
|
6769
|
+
updates: Array<{
|
|
6770
|
+
__typename?: 'Update';
|
|
6649
6771
|
id: string;
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6772
|
+
group: string;
|
|
6773
|
+
message?: string | null;
|
|
6774
|
+
createdAt: any;
|
|
6775
|
+
runtimeVersion: string;
|
|
6776
|
+
platform: string;
|
|
6777
|
+
actor?: {
|
|
6778
|
+
__typename?: 'Robot';
|
|
6779
|
+
firstName?: string | null;
|
|
6653
6780
|
id: string;
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
__typename?: 'User';
|
|
6665
|
-
username: string;
|
|
6666
|
-
id: string;
|
|
6667
|
-
} | null;
|
|
6668
|
-
}>;
|
|
6781
|
+
} | {
|
|
6782
|
+
__typename?: 'User';
|
|
6783
|
+
username: string;
|
|
6784
|
+
id: string;
|
|
6785
|
+
} | null;
|
|
6786
|
+
branch: {
|
|
6787
|
+
__typename?: 'UpdateBranch';
|
|
6788
|
+
id: string;
|
|
6789
|
+
name: string;
|
|
6790
|
+
};
|
|
6669
6791
|
}>;
|
|
6670
6792
|
};
|
|
6671
6793
|
};
|
|
@@ -6705,6 +6827,11 @@ export declare type ViewBranchUpdatesQuery = {
|
|
|
6705
6827
|
username: string;
|
|
6706
6828
|
id: string;
|
|
6707
6829
|
} | null;
|
|
6830
|
+
branch: {
|
|
6831
|
+
__typename?: 'UpdateBranch';
|
|
6832
|
+
id: string;
|
|
6833
|
+
name: string;
|
|
6834
|
+
};
|
|
6708
6835
|
}>;
|
|
6709
6836
|
} | null;
|
|
6710
6837
|
};
|
|
@@ -6,7 +6,7 @@
|
|
|
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.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.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;
|
|
10
10
|
var ActivityTimelineProjectActivityType;
|
|
11
11
|
(function (ActivityTimelineProjectActivityType) {
|
|
12
12
|
ActivityTimelineProjectActivityType["Build"] = "BUILD";
|
|
@@ -86,6 +86,10 @@ var AssetMetadataStatus;
|
|
|
86
86
|
AssetMetadataStatus["DoesNotExist"] = "DOES_NOT_EXIST";
|
|
87
87
|
AssetMetadataStatus["Exists"] = "EXISTS";
|
|
88
88
|
})(AssetMetadataStatus = exports.AssetMetadataStatus || (exports.AssetMetadataStatus = {}));
|
|
89
|
+
var AuthProtocolType;
|
|
90
|
+
(function (AuthProtocolType) {
|
|
91
|
+
AuthProtocolType["Oidc"] = "OIDC";
|
|
92
|
+
})(AuthProtocolType = exports.AuthProtocolType || (exports.AuthProtocolType = {}));
|
|
89
93
|
var BuildCredentialsSource;
|
|
90
94
|
(function (BuildCredentialsSource) {
|
|
91
95
|
BuildCredentialsSource["Local"] = "LOCAL";
|
|
@@ -158,6 +162,7 @@ var EasServiceMetric;
|
|
|
158
162
|
(function (EasServiceMetric) {
|
|
159
163
|
EasServiceMetric["AssetsRequests"] = "ASSETS_REQUESTS";
|
|
160
164
|
EasServiceMetric["BandwidthUsage"] = "BANDWIDTH_USAGE";
|
|
165
|
+
EasServiceMetric["Builds"] = "BUILDS";
|
|
161
166
|
EasServiceMetric["ManifestRequests"] = "MANIFEST_REQUESTS";
|
|
162
167
|
EasServiceMetric["UniqueUsers"] = "UNIQUE_USERS";
|
|
163
168
|
})(EasServiceMetric = exports.EasServiceMetric || (exports.EasServiceMetric = {}));
|
|
@@ -300,6 +305,7 @@ var UploadSessionType;
|
|
|
300
305
|
var UsageMetricType;
|
|
301
306
|
(function (UsageMetricType) {
|
|
302
307
|
UsageMetricType["Bandwidth"] = "BANDWIDTH";
|
|
308
|
+
UsageMetricType["Build"] = "BUILD";
|
|
303
309
|
UsageMetricType["Request"] = "REQUEST";
|
|
304
310
|
UsageMetricType["User"] = "USER";
|
|
305
311
|
})(UsageMetricType = exports.UsageMetricType || (exports.UsageMetricType = {}));
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ViewBranchQuery } from '../generated';
|
|
1
|
+
import { BranchesByAppQueryVariables, UpdateBranchFragment, ViewBranchQuery } from '../generated';
|
|
2
2
|
export declare const BranchQuery: {
|
|
3
3
|
getBranchByNameAsync({ appId, name, }: {
|
|
4
4
|
appId: string;
|
|
5
5
|
name: string;
|
|
6
6
|
}): Promise<ViewBranchQuery['app']['byId']['updateBranchByName']>;
|
|
7
|
+
listBranchesAsync({ appId, limit, offset, }: BranchesByAppQueryVariables): Promise<UpdateBranchFragment[]>;
|
|
7
8
|
};
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BranchQuery = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("graphql");
|
|
5
6
|
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
7
|
const client_1 = require("../client");
|
|
8
|
+
const UpdateBranch_1 = require("../types/UpdateBranch");
|
|
7
9
|
exports.BranchQuery = {
|
|
8
10
|
async getBranchByNameAsync({ appId, name, }) {
|
|
9
11
|
const { app: { byId: { updateBranchByName: branch }, }, } = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
|
|
@@ -26,4 +28,28 @@ exports.BranchQuery = {
|
|
|
26
28
|
.toPromise());
|
|
27
29
|
return branch;
|
|
28
30
|
},
|
|
31
|
+
async listBranchesAsync({ appId, limit, offset, }) {
|
|
32
|
+
var _a, _b;
|
|
33
|
+
const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
|
|
34
|
+
.query((0, graphql_tag_1.default) `
|
|
35
|
+
query BranchesByAppQuery($appId: String!, $limit: Int!, $offset: Int!) {
|
|
36
|
+
app {
|
|
37
|
+
byId(appId: $appId) {
|
|
38
|
+
id
|
|
39
|
+
updateBranches(limit: $limit, offset: $offset) {
|
|
40
|
+
id
|
|
41
|
+
...UpdateBranchFragment
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
${(0, graphql_1.print)(UpdateBranch_1.UpdateBranchFragmentNode)}
|
|
47
|
+
`, {
|
|
48
|
+
appId,
|
|
49
|
+
limit,
|
|
50
|
+
offset,
|
|
51
|
+
}, { additionalTypenames: ['UpdateBranch'] })
|
|
52
|
+
.toPromise());
|
|
53
|
+
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 : [];
|
|
54
|
+
},
|
|
29
55
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { ViewAllUpdatesQuery, ViewBranchUpdatesQuery, ViewBranchUpdatesQueryVariables } from '../generated';
|
|
2
|
-
export declare
|
|
3
|
-
declare type
|
|
1
|
+
import { ViewAllUpdatesQuery, ViewAllUpdatesQueryVariables, ViewBranchUpdatesQuery, ViewBranchUpdatesQueryVariables } from '../generated';
|
|
2
|
+
export declare type BranchUpdateObject = Exclude<ViewBranchUpdatesQuery['app']['byId']['updateBranchByName'], null | undefined>['updates'][number];
|
|
3
|
+
export declare type AppUpdateObject = ViewAllUpdatesQuery['app']['byId']['updates'][number];
|
|
4
|
+
export declare type UpdateObject = BranchUpdateObject | AppUpdateObject;
|
|
4
5
|
export declare const UpdateQuery: {
|
|
5
|
-
viewAllAsync({ appId }:
|
|
6
|
-
|
|
7
|
-
}): Promise<ViewAllUpdatesQuery>;
|
|
8
|
-
viewBranchAsync({ appId, name, limit, offset, }: ViewBranchUpdatesQueryVariablesWithOptionalLimitAndOffset): Promise<ViewBranchUpdatesQuery>;
|
|
6
|
+
viewAllAsync({ appId, limit, offset }: ViewAllUpdatesQueryVariables): Promise<ViewAllUpdatesQuery>;
|
|
7
|
+
viewBranchAsync({ appId, name, limit, offset }: ViewBranchUpdatesQueryVariables): Promise<ViewBranchUpdatesQuery>;
|
|
9
8
|
};
|
|
10
|
-
export {};
|
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateQuery =
|
|
3
|
+
exports.UpdateQuery = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
|
|
6
6
|
const client_1 = require("../client");
|
|
7
|
-
exports.viewBranchUpdatesQueryUpdateLimit = 300;
|
|
8
7
|
exports.UpdateQuery = {
|
|
9
|
-
async viewAllAsync({ appId }) {
|
|
8
|
+
async viewAllAsync({ appId, limit, offset }) {
|
|
10
9
|
return (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
|
|
11
10
|
.query((0, graphql_tag_1.default) `
|
|
12
|
-
query ViewAllUpdates($appId: String!, $limit: Int!) {
|
|
11
|
+
query ViewAllUpdates($appId: String!, $limit: Int!, $offset: Int!) {
|
|
13
12
|
app {
|
|
14
13
|
byId(appId: $appId) {
|
|
15
14
|
id
|
|
16
|
-
|
|
15
|
+
updates(limit: $limit, offset: $offset) {
|
|
17
16
|
id
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
group
|
|
18
|
+
message
|
|
19
|
+
createdAt
|
|
20
|
+
runtimeVersion
|
|
21
|
+
platform
|
|
22
|
+
actor {
|
|
20
23
|
id
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
createdAt
|
|
24
|
-
runtimeVersion
|
|
25
|
-
platform
|
|
26
|
-
actor {
|
|
27
|
-
id
|
|
28
|
-
... on User {
|
|
29
|
-
username
|
|
30
|
-
}
|
|
31
|
-
... on Robot {
|
|
32
|
-
firstName
|
|
33
|
-
}
|
|
24
|
+
... on User {
|
|
25
|
+
username
|
|
34
26
|
}
|
|
27
|
+
... on Robot {
|
|
28
|
+
firstName
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
branch {
|
|
32
|
+
id
|
|
33
|
+
name
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
36
|
}
|
|
@@ -39,11 +38,12 @@ exports.UpdateQuery = {
|
|
|
39
38
|
}
|
|
40
39
|
`, {
|
|
41
40
|
appId,
|
|
42
|
-
limit
|
|
41
|
+
limit,
|
|
42
|
+
offset,
|
|
43
43
|
}, { additionalTypenames: ['UpdateBranch', 'Update'] })
|
|
44
44
|
.toPromise());
|
|
45
45
|
},
|
|
46
|
-
async viewBranchAsync({ appId, name, limit
|
|
46
|
+
async viewBranchAsync({ appId, name, limit, offset }) {
|
|
47
47
|
return (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
|
|
48
48
|
.query((0, graphql_tag_1.default) `
|
|
49
49
|
query ViewBranchUpdates($appId: String!, $name: String!, $limit: Int!, $offset: Int!) {
|
|
@@ -53,7 +53,7 @@ exports.UpdateQuery = {
|
|
|
53
53
|
updateBranchByName(name: $name) {
|
|
54
54
|
id
|
|
55
55
|
name
|
|
56
|
-
updates(
|
|
56
|
+
updates(limit: $limit, offset: $offset) {
|
|
57
57
|
id
|
|
58
58
|
group
|
|
59
59
|
message
|
|
@@ -70,6 +70,10 @@ exports.UpdateQuery = {
|
|
|
70
70
|
firstName
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
+
branch {
|
|
74
|
+
id
|
|
75
|
+
name
|
|
76
|
+
}
|
|
73
77
|
}
|
|
74
78
|
}
|
|
75
79
|
}
|