eas-cli 16.15.0 → 16.17.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 (51) hide show
  1. package/README.md +221 -84
  2. package/build/commandUtils/workflow/fetchLogs.d.ts +2 -0
  3. package/build/commandUtils/workflow/fetchLogs.js +16 -0
  4. package/build/commandUtils/workflow/stateMachine.d.ts +44 -0
  5. package/build/commandUtils/workflow/stateMachine.js +212 -0
  6. package/build/commandUtils/workflow/types.d.ts +39 -0
  7. package/build/commandUtils/workflow/types.js +13 -0
  8. package/build/commandUtils/workflow/utils.d.ts +12 -0
  9. package/build/commandUtils/workflow/utils.js +116 -0
  10. package/build/commands/deploy/alias/delete.d.ts +21 -0
  11. package/build/commands/deploy/alias/delete.js +98 -0
  12. package/build/commands/deploy/alias/index.d.ts +21 -0
  13. package/build/commands/deploy/{alias.js → alias/index.js} +8 -8
  14. package/build/commands/deploy/{alias.d.ts → delete.d.ts} +4 -4
  15. package/build/commands/deploy/delete.js +84 -0
  16. package/build/commands/workflow/cancel.js +3 -6
  17. package/build/commands/workflow/logs.d.ts +18 -0
  18. package/build/commands/workflow/logs.js +94 -0
  19. package/build/commands/workflow/run.d.ts +105 -0
  20. package/build/commands/workflow/run.js +280 -0
  21. package/build/commands/workflow/runs.js +4 -3
  22. package/build/commands/workflow/view.d.ts +17 -0
  23. package/build/commands/workflow/view.js +95 -0
  24. package/build/credentials/ios/IosCredentialsProvider.js +1 -1
  25. package/build/credentials/ios/appstore/bundleIdCapabilities.d.ts +4 -17
  26. package/build/credentials/ios/appstore/bundleIdCapabilities.js +45 -625
  27. package/build/credentials/ios/appstore/capabilityIdentifiers.js +33 -34
  28. package/build/credentials/ios/appstore/capabilityList.d.ts +33 -0
  29. package/build/credentials/ios/appstore/capabilityList.js +646 -0
  30. package/build/graphql/generated.d.ts +308 -19
  31. package/build/graphql/queries/WorkflowJobQuery.d.ts +7 -0
  32. package/build/graphql/queries/WorkflowJobQuery.js +29 -0
  33. package/build/graphql/queries/WorkflowRunQuery.js +13 -13
  34. package/build/graphql/types/WorkflowJob.d.ts +1 -0
  35. package/build/graphql/types/WorkflowJob.js +32 -0
  36. package/build/graphql/types/WorkflowRun.js +18 -0
  37. package/build/worker/assets.d.ts +0 -3
  38. package/build/worker/assets.js +3 -3
  39. package/build/worker/deployment.d.ts +23 -1
  40. package/build/worker/deployment.js +27 -1
  41. package/build/worker/mutations.d.ts +12 -1
  42. package/build/worker/mutations.js +33 -0
  43. package/build/worker/queries.d.ts +8 -1
  44. package/build/worker/queries.js +42 -0
  45. package/build/worker/upload.js +4 -8
  46. package/build/worker/utils/multipart.d.ts +5 -4
  47. package/build/worker/utils/multipart.js +44 -9
  48. package/oclif.manifest.json +196 -32
  49. package/package.json +2 -2
  50. package/build/commandUtils/workflows.d.ts +0 -20
  51. package/build/commandUtils/workflows.js +0 -21
@@ -168,6 +168,7 @@ export type Account = {
168
168
  googleServiceAccountKeys: Array<GoogleServiceAccountKey>;
169
169
  /** Android credentials for account */
170
170
  googleServiceAccountKeysPaginated: AccountGoogleServiceAccountKeysConnection;
171
+ /** @deprecated No longer needed */
171
172
  hasBuilds: Scalars['Boolean']['output'];
172
173
  id: Scalars['ID']['output'];
173
174
  isCurrent: Scalars['Boolean']['output'];
@@ -506,6 +507,7 @@ export declare enum AccountAppsSortByField {
506
507
  Name = "NAME"
507
508
  }
508
509
  export type AccountDataInput = {
510
+ displayName?: InputMaybe<Scalars['String']['input']>;
509
511
  name: Scalars['String']['input'];
510
512
  };
511
513
  export type AccountGoogleServiceAccountKeysConnection = {
@@ -2842,12 +2844,6 @@ export type BuildPublicDataQueryByIdArgs = {
2842
2844
  };
2843
2845
  export type BuildQuery = {
2844
2846
  __typename?: 'BuildQuery';
2845
- /**
2846
- * Get all builds.
2847
- * By default, they are sorted from latest to oldest.
2848
- * Available only for admin users.
2849
- */
2850
- all: Array<Build>;
2851
2847
  /**
2852
2848
  * Get all builds for a specific app.
2853
2849
  * They are sorted from latest to oldest.
@@ -2857,12 +2853,6 @@ export type BuildQuery = {
2857
2853
  /** Look up EAS Build by build ID */
2858
2854
  byId: Build;
2859
2855
  };
2860
- export type BuildQueryAllArgs = {
2861
- limit?: InputMaybe<Scalars['Int']['input']>;
2862
- offset?: InputMaybe<Scalars['Int']['input']>;
2863
- order?: InputMaybe<Order>;
2864
- statuses?: InputMaybe<Array<BuildStatus>>;
2865
- };
2866
2856
  export type BuildQueryAllForAppArgs = {
2867
2857
  appId: Scalars['String']['input'];
2868
2858
  limit?: InputMaybe<Scalars['Int']['input']>;
@@ -2944,6 +2934,16 @@ export type ChannelQuery = {
2944
2934
  export type ChannelQueryByIdArgs = {
2945
2935
  channelId: Scalars['ID']['input'];
2946
2936
  };
2937
+ export type ChannelRuntimeEdge = {
2938
+ __typename?: 'ChannelRuntimeEdge';
2939
+ cursor: Scalars['String']['output'];
2940
+ node: RuntimeWithLastActivity;
2941
+ };
2942
+ export type ChannelRuntimesConnection = {
2943
+ __typename?: 'ChannelRuntimesConnection';
2944
+ edges: Array<ChannelRuntimeEdge>;
2945
+ pageInfo: PageInfo;
2946
+ };
2947
2947
  export type Charge = {
2948
2948
  __typename?: 'Charge';
2949
2949
  amount: Scalars['Int']['output'];
@@ -3404,6 +3404,7 @@ export type DeploymentsMutation = {
3404
3404
  createSignedDeploymentUrl: DeploymentSignedUrlResult;
3405
3405
  deleteAlias: DeleteAliasResult;
3406
3406
  deleteWorkerDeployment: DeleteWorkerDeploymentResult;
3407
+ deleteWorkerDeploymentByIdentifier: DeleteWorkerDeploymentResult;
3407
3408
  };
3408
3409
  export type DeploymentsMutationAssignAliasArgs = {
3409
3410
  aliasName?: InputMaybe<Scalars['WorkerDeploymentIdentifier']['input']>;
@@ -3421,6 +3422,10 @@ export type DeploymentsMutationDeleteAliasArgs = {
3421
3422
  export type DeploymentsMutationDeleteWorkerDeploymentArgs = {
3422
3423
  workerDeploymentId: Scalars['ID']['input'];
3423
3424
  };
3425
+ export type DeploymentsMutationDeleteWorkerDeploymentByIdentifierArgs = {
3426
+ appId: Scalars['ID']['input'];
3427
+ deploymentIdentifier: Scalars['ID']['input'];
3428
+ };
3424
3429
  export type DiscordUser = {
3425
3430
  __typename?: 'DiscordUser';
3426
3431
  discordIdentifier: Scalars['String']['output'];
@@ -5457,6 +5462,11 @@ export type RuntimeQuery = {
5457
5462
  export type RuntimeQueryByIdArgs = {
5458
5463
  runtimeId: Scalars['ID']['input'];
5459
5464
  };
5465
+ export type RuntimeWithLastActivity = {
5466
+ __typename?: 'RuntimeWithLastActivity';
5467
+ lastActivityPostgresSerialized: Scalars['String']['output'];
5468
+ runtime: Runtime;
5469
+ };
5460
5470
  /** Represents the connection over the runtime edge of an App */
5461
5471
  export type RuntimesConnection = {
5462
5472
  __typename?: 'RuntimesConnection';
@@ -5474,7 +5484,10 @@ export type SsoUser = Actor & UserActor & {
5474
5484
  appCount: Scalars['Int']['output'];
5475
5485
  /** @deprecated No longer supported */
5476
5486
  appetizeCode?: Maybe<Scalars['String']['output']>;
5477
- /** Apps this user has published. If this user is the viewer, this field returns the apps the user has access to. */
5487
+ /**
5488
+ * Apps this user has published. If this user is the viewer, this field returns the apps the user has access to.
5489
+ * @deprecated Use Account.appsPaginated instead
5490
+ */
5478
5491
  apps: Array<App>;
5479
5492
  bestContactEmail?: Maybe<Scalars['String']['output']>;
5480
5493
  created: Scalars['DateTime']['output'];
@@ -6066,10 +6079,17 @@ export type UpdateChannel = {
6066
6079
  createdAt: Scalars['DateTime']['output'];
6067
6080
  id: Scalars['ID']['output'];
6068
6081
  isPaused: Scalars['Boolean']['output'];
6082
+ latestRuntimes: ChannelRuntimesConnection;
6069
6083
  name: Scalars['String']['output'];
6070
6084
  updateBranches: Array<UpdateBranch>;
6071
6085
  updatedAt: Scalars['DateTime']['output'];
6072
6086
  };
6087
+ export type UpdateChannelLatestRuntimesArgs = {
6088
+ after?: InputMaybe<Scalars['String']['input']>;
6089
+ before?: InputMaybe<Scalars['String']['input']>;
6090
+ first?: InputMaybe<Scalars['Int']['input']>;
6091
+ last?: InputMaybe<Scalars['Int']['input']>;
6092
+ };
6073
6093
  export type UpdateChannelUpdateBranchesArgs = {
6074
6094
  limit: Scalars['Int']['input'];
6075
6095
  offset: Scalars['Int']['input'];
@@ -6311,7 +6331,10 @@ export type User = Actor & UserActor & {
6311
6331
  appCount: Scalars['Int']['output'];
6312
6332
  /** @deprecated No longer supported */
6313
6333
  appetizeCode?: Maybe<Scalars['String']['output']>;
6314
- /** Apps this user has published */
6334
+ /**
6335
+ * Apps this user has published
6336
+ * @deprecated Use Account.appsPaginated instead
6337
+ */
6315
6338
  apps: Array<App>;
6316
6339
  bestContactEmail?: Maybe<Scalars['String']['output']>;
6317
6340
  created: Scalars['DateTime']['output'];
@@ -6409,7 +6432,10 @@ export type UserActor = {
6409
6432
  appCount: Scalars['Int']['output'];
6410
6433
  /** @deprecated No longer supported */
6411
6434
  appetizeCode?: Maybe<Scalars['String']['output']>;
6412
- /** Apps this user has published */
6435
+ /**
6436
+ * Apps this user has published
6437
+ * @deprecated Use Account.appsPaginated instead
6438
+ */
6413
6439
  apps: Array<App>;
6414
6440
  bestContactEmail?: Maybe<Scalars['String']['output']>;
6415
6441
  created: Scalars['DateTime']['output'];
@@ -6704,6 +6730,8 @@ export type UserInvitationMutation = {
6704
6730
  deleteUserInvitationByToken: RescindUserInvitationResult;
6705
6731
  /** Re-send UserInivitation by ID */
6706
6732
  resendUserInvitation: UserInvitation;
6733
+ /** Update UserInvitation permissions by ID */
6734
+ updateUserInvitationPermissions: UserInvitation;
6707
6735
  };
6708
6736
  export type UserInvitationMutationAcceptUserInvitationAsViewerArgs = {
6709
6737
  id: Scalars['ID']['input'];
@@ -6725,6 +6753,10 @@ export type UserInvitationMutationDeleteUserInvitationByTokenArgs = {
6725
6753
  export type UserInvitationMutationResendUserInvitationArgs = {
6726
6754
  id: Scalars['ID']['input'];
6727
6755
  };
6756
+ export type UserInvitationMutationUpdateUserInvitationPermissionsArgs = {
6757
+ invitationID: Scalars['ID']['input'];
6758
+ permissions: Array<InputMaybe<Permission>>;
6759
+ };
6728
6760
  /** Publicly visible data for a UserInvitation. */
6729
6761
  export type UserInvitationPublicData = {
6730
6762
  __typename?: 'UserInvitationPublicData';
@@ -7018,14 +7050,14 @@ export type WorkerDeploymentCrashesHashEdge = {
7018
7050
  __typename?: 'WorkerDeploymentCrashesHashEdge';
7019
7051
  crashHash: Scalars['ID']['output'];
7020
7052
  node: WorkerDeploymentCrashesAggregationNode;
7021
- sample: WorkerDeploymentCrashNode;
7053
+ sample?: Maybe<WorkerDeploymentCrashNode>;
7022
7054
  timeseries: Array<WorkerDeploymentCrashesTimeseriesEdge>;
7023
7055
  };
7024
7056
  export type WorkerDeploymentCrashesNameEdge = {
7025
7057
  __typename?: 'WorkerDeploymentCrashesNameEdge';
7026
7058
  name: Scalars['String']['output'];
7027
7059
  node: WorkerDeploymentCrashesAggregationNode;
7028
- sample: WorkerDeploymentCrashNode;
7060
+ sample?: Maybe<WorkerDeploymentCrashNode>;
7029
7061
  timeseries: Array<WorkerDeploymentCrashesTimeseriesEdge>;
7030
7062
  };
7031
7063
  export type WorkerDeploymentCrashesTimeseriesEdge = {
@@ -7505,6 +7537,7 @@ export type WorkflowRunGitBranchFilterInput = {
7505
7537
  searchTerm?: InputMaybe<Scalars['String']['input']>;
7506
7538
  };
7507
7539
  export type WorkflowRunInput = {
7540
+ inputs?: InputMaybe<Scalars['JSONObject']['input']>;
7508
7541
  projectSource: WorkflowProjectSourceInput;
7509
7542
  };
7510
7543
  export type WorkflowRunMutation = {
@@ -12556,8 +12589,30 @@ export type AppByIdWorkflowRunsFilteredByStatusQuery = {
12556
12589
  status: WorkflowRunStatus;
12557
12590
  gitCommitMessage?: string | null;
12558
12591
  gitCommitHash?: string | null;
12592
+ requestedGitRef?: string | null;
12593
+ triggeringLabelName?: string | null;
12594
+ triggerEventType: WorkflowRunTriggerEventType;
12595
+ triggeringSchedule?: string | null;
12559
12596
  createdAt: any;
12560
12597
  updatedAt: any;
12598
+ actor?: {
12599
+ __typename: 'Robot';
12600
+ firstName?: string | null;
12601
+ id: string;
12602
+ } | {
12603
+ __typename: 'SSOUser';
12604
+ username: string;
12605
+ id: string;
12606
+ } | {
12607
+ __typename: 'User';
12608
+ username: string;
12609
+ id: string;
12610
+ } | null;
12611
+ errors: Array<{
12612
+ __typename?: 'WorkflowRunError';
12613
+ title?: string | null;
12614
+ message: string;
12615
+ }>;
12561
12616
  workflow: {
12562
12617
  __typename?: 'Workflow';
12563
12618
  id: string;
@@ -14442,6 +14497,45 @@ export type WebhookByIdQuery = {
14442
14497
  };
14443
14498
  };
14444
14499
  };
14500
+ export type WorkflowJobByIdQueryVariables = Exact<{
14501
+ workflowJobId: Scalars['ID']['input'];
14502
+ }>;
14503
+ export type WorkflowJobByIdQuery = {
14504
+ __typename?: 'RootQuery';
14505
+ workflowJobs: {
14506
+ __typename?: 'WorkflowJobQuery';
14507
+ byId: {
14508
+ __typename?: 'WorkflowJob';
14509
+ id: string;
14510
+ key: string;
14511
+ name: string;
14512
+ status: WorkflowJobStatus;
14513
+ type: WorkflowJobType;
14514
+ outputs: any;
14515
+ createdAt: any;
14516
+ updatedAt: any;
14517
+ workflowRun: {
14518
+ __typename?: 'WorkflowRun';
14519
+ id: string;
14520
+ };
14521
+ turtleJobRun?: {
14522
+ __typename?: 'JobRun';
14523
+ id: string;
14524
+ logFileUrls: Array<string>;
14525
+ errors: Array<{
14526
+ __typename?: 'JobRunError';
14527
+ errorCode: string;
14528
+ message: string;
14529
+ }>;
14530
+ } | null;
14531
+ errors: Array<{
14532
+ __typename?: 'WorkflowJobError';
14533
+ title: string;
14534
+ message: string;
14535
+ }>;
14536
+ };
14537
+ };
14538
+ };
14445
14539
  export type WorkflowRunByIdQueryVariables = Exact<{
14446
14540
  workflowRunId: Scalars['ID']['input'];
14447
14541
  }>;
@@ -14466,24 +14560,78 @@ export type WorkflowRunByIdWithJobsQuery = {
14466
14560
  byId: {
14467
14561
  __typename?: 'WorkflowRun';
14468
14562
  id: string;
14469
- name: string;
14470
14563
  status: WorkflowRunStatus;
14564
+ gitCommitMessage?: string | null;
14565
+ gitCommitHash?: string | null;
14566
+ requestedGitRef?: string | null;
14567
+ triggeringLabelName?: string | null;
14568
+ triggerEventType: WorkflowRunTriggerEventType;
14569
+ triggeringSchedule?: string | null;
14471
14570
  createdAt: any;
14571
+ updatedAt: any;
14472
14572
  workflow: {
14473
14573
  __typename?: 'Workflow';
14474
14574
  id: string;
14475
14575
  name?: string | null;
14476
14576
  fileName: string;
14577
+ app: {
14578
+ __typename?: 'App';
14579
+ id: string;
14580
+ name: string;
14581
+ ownerAccount: {
14582
+ __typename?: 'Account';
14583
+ id: string;
14584
+ name: string;
14585
+ };
14586
+ };
14477
14587
  };
14478
14588
  jobs: Array<{
14479
14589
  __typename?: 'WorkflowJob';
14480
14590
  id: string;
14481
14591
  key: string;
14482
14592
  name: string;
14483
- type: WorkflowJobType;
14484
14593
  status: WorkflowJobStatus;
14594
+ type: WorkflowJobType;
14485
14595
  outputs: any;
14486
14596
  createdAt: any;
14597
+ updatedAt: any;
14598
+ workflowRun: {
14599
+ __typename?: 'WorkflowRun';
14600
+ id: string;
14601
+ };
14602
+ turtleJobRun?: {
14603
+ __typename?: 'JobRun';
14604
+ id: string;
14605
+ logFileUrls: Array<string>;
14606
+ errors: Array<{
14607
+ __typename?: 'JobRunError';
14608
+ errorCode: string;
14609
+ message: string;
14610
+ }>;
14611
+ } | null;
14612
+ errors: Array<{
14613
+ __typename?: 'WorkflowJobError';
14614
+ title: string;
14615
+ message: string;
14616
+ }>;
14617
+ }>;
14618
+ actor?: {
14619
+ __typename: 'Robot';
14620
+ firstName?: string | null;
14621
+ id: string;
14622
+ } | {
14623
+ __typename: 'SSOUser';
14624
+ username: string;
14625
+ id: string;
14626
+ } | {
14627
+ __typename: 'User';
14628
+ username: string;
14629
+ id: string;
14630
+ } | null;
14631
+ errors: Array<{
14632
+ __typename?: 'WorkflowRunError';
14633
+ title?: string | null;
14634
+ message: string;
14487
14635
  }>;
14488
14636
  };
14489
14637
  };
@@ -14511,8 +14659,30 @@ export type WorkflowRunsForAppIdFileNameAndStatusQuery = {
14511
14659
  status: WorkflowRunStatus;
14512
14660
  gitCommitMessage?: string | null;
14513
14661
  gitCommitHash?: string | null;
14662
+ requestedGitRef?: string | null;
14663
+ triggeringLabelName?: string | null;
14664
+ triggerEventType: WorkflowRunTriggerEventType;
14665
+ triggeringSchedule?: string | null;
14514
14666
  createdAt: any;
14515
14667
  updatedAt: any;
14668
+ actor?: {
14669
+ __typename: 'Robot';
14670
+ firstName?: string | null;
14671
+ id: string;
14672
+ } | {
14673
+ __typename: 'SSOUser';
14674
+ username: string;
14675
+ id: string;
14676
+ } | {
14677
+ __typename: 'User';
14678
+ username: string;
14679
+ id: string;
14680
+ } | null;
14681
+ errors: Array<{
14682
+ __typename?: 'WorkflowRunError';
14683
+ title?: string | null;
14684
+ message: string;
14685
+ }>;
14516
14686
  workflow: {
14517
14687
  __typename?: 'Workflow';
14518
14688
  id: string;
@@ -15159,14 +15329,66 @@ export type WorkflowFragment = {
15159
15329
  createdAt: any;
15160
15330
  updatedAt: any;
15161
15331
  };
15332
+ export type WorkflowJobFragment = {
15333
+ __typename?: 'WorkflowJob';
15334
+ id: string;
15335
+ key: string;
15336
+ name: string;
15337
+ status: WorkflowJobStatus;
15338
+ type: WorkflowJobType;
15339
+ outputs: any;
15340
+ createdAt: any;
15341
+ updatedAt: any;
15342
+ workflowRun: {
15343
+ __typename?: 'WorkflowRun';
15344
+ id: string;
15345
+ };
15346
+ turtleJobRun?: {
15347
+ __typename?: 'JobRun';
15348
+ id: string;
15349
+ logFileUrls: Array<string>;
15350
+ errors: Array<{
15351
+ __typename?: 'JobRunError';
15352
+ errorCode: string;
15353
+ message: string;
15354
+ }>;
15355
+ } | null;
15356
+ errors: Array<{
15357
+ __typename?: 'WorkflowJobError';
15358
+ title: string;
15359
+ message: string;
15360
+ }>;
15361
+ };
15162
15362
  export type WorkflowRunFragment = {
15163
15363
  __typename?: 'WorkflowRun';
15164
15364
  id: string;
15165
15365
  status: WorkflowRunStatus;
15166
15366
  gitCommitMessage?: string | null;
15167
15367
  gitCommitHash?: string | null;
15368
+ requestedGitRef?: string | null;
15369
+ triggeringLabelName?: string | null;
15370
+ triggerEventType: WorkflowRunTriggerEventType;
15371
+ triggeringSchedule?: string | null;
15168
15372
  createdAt: any;
15169
15373
  updatedAt: any;
15374
+ actor?: {
15375
+ __typename: 'Robot';
15376
+ firstName?: string | null;
15377
+ id: string;
15378
+ } | {
15379
+ __typename: 'SSOUser';
15380
+ username: string;
15381
+ id: string;
15382
+ } | {
15383
+ __typename: 'User';
15384
+ username: string;
15385
+ id: string;
15386
+ } | null;
15387
+ errors: Array<{
15388
+ __typename?: 'WorkflowRunError';
15389
+ title?: string | null;
15390
+ message: string;
15391
+ }>;
15170
15392
  workflow: {
15171
15393
  __typename?: 'Workflow';
15172
15394
  id: string;
@@ -16165,6 +16387,36 @@ export type AssignAliasMutation = {
16165
16387
  };
16166
16388
  };
16167
16389
  };
16390
+ export type DeleteAliasMutationVariables = Exact<{
16391
+ appId: Scalars['ID']['input'];
16392
+ aliasName?: InputMaybe<Scalars['WorkerDeploymentIdentifier']['input']>;
16393
+ }>;
16394
+ export type DeleteAliasMutation = {
16395
+ __typename?: 'RootMutation';
16396
+ deployments: {
16397
+ __typename?: 'DeploymentsMutation';
16398
+ deleteAlias: {
16399
+ __typename?: 'DeleteAliasResult';
16400
+ id: string;
16401
+ aliasName?: any | null;
16402
+ };
16403
+ };
16404
+ };
16405
+ export type DeleteDeploymentMutationVariables = Exact<{
16406
+ appId: Scalars['ID']['input'];
16407
+ deploymentIdentifier: Scalars['ID']['input'];
16408
+ }>;
16409
+ export type DeleteDeploymentMutation = {
16410
+ __typename?: 'RootMutation';
16411
+ deployments: {
16412
+ __typename?: 'DeploymentsMutation';
16413
+ deleteWorkerDeploymentByIdentifier: {
16414
+ __typename?: 'DeleteWorkerDeploymentResult';
16415
+ id: string;
16416
+ deploymentIdentifier: any;
16417
+ };
16418
+ };
16419
+ };
16168
16420
  export type PaginatedWorkerDeploymentsQueryVariables = Exact<{
16169
16421
  appId: Scalars['String']['input'];
16170
16422
  first?: InputMaybe<Scalars['Int']['input']>;
@@ -16218,3 +16470,40 @@ export type SuggestedDevDomainNameQuery = {
16218
16470
  };
16219
16471
  };
16220
16472
  };
16473
+ export type PaginatedWorkerDeploymentAliasesQueryVariables = Exact<{
16474
+ appId: Scalars['String']['input'];
16475
+ first?: InputMaybe<Scalars['Int']['input']>;
16476
+ after?: InputMaybe<Scalars['String']['input']>;
16477
+ last?: InputMaybe<Scalars['Int']['input']>;
16478
+ before?: InputMaybe<Scalars['String']['input']>;
16479
+ }>;
16480
+ export type PaginatedWorkerDeploymentAliasesQuery = {
16481
+ __typename?: 'RootQuery';
16482
+ app: {
16483
+ __typename?: 'AppQuery';
16484
+ byId: {
16485
+ __typename?: 'App';
16486
+ id: string;
16487
+ workerDeploymentAliases: {
16488
+ __typename?: 'WorkerDeploymentAliasesConnection';
16489
+ pageInfo: {
16490
+ __typename?: 'PageInfo';
16491
+ hasNextPage: boolean;
16492
+ hasPreviousPage: boolean;
16493
+ startCursor?: string | null;
16494
+ endCursor?: string | null;
16495
+ };
16496
+ edges: Array<{
16497
+ __typename?: 'WorkerDeploymentAliasEdge';
16498
+ cursor: string;
16499
+ node: {
16500
+ __typename?: 'WorkerDeploymentAlias';
16501
+ id: string;
16502
+ aliasName?: any | null;
16503
+ url: string;
16504
+ };
16505
+ }>;
16506
+ };
16507
+ };
16508
+ };
16509
+ };
@@ -0,0 +1,7 @@
1
+ import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
2
+ import { WorkflowJobByIdQuery } from '../generated';
3
+ export declare const WorkflowJobQuery: {
4
+ byIdAsync(graphqlClient: ExpoGraphqlClient, workflowJobId: string, { useCache }?: {
5
+ useCache?: boolean | undefined;
6
+ }): Promise<WorkflowJobByIdQuery['workflowJobs']['byId']>;
7
+ };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowJobQuery = 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 WorkflowJob_1 = require("../types/WorkflowJob");
9
+ exports.WorkflowJobQuery = {
10
+ async byIdAsync(graphqlClient, workflowJobId, { useCache = true } = {}) {
11
+ const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
12
+ .query((0, graphql_tag_1.default) `
13
+ query WorkflowJobById($workflowJobId: ID!) {
14
+ workflowJobs {
15
+ byId(workflowJobId: $workflowJobId) {
16
+ id
17
+ ...WorkflowJobFragment
18
+ }
19
+ }
20
+ }
21
+ ${(0, graphql_1.print)(WorkflowJob_1.WorkflowJobFragmentNode)}
22
+ `, { workflowJobId }, {
23
+ requestPolicy: useCache ? 'cache-first' : 'network-only',
24
+ additionalTypenames: ['WorkflowJob'],
25
+ })
26
+ .toPromise());
27
+ return data.workflowJobs.byId;
28
+ },
29
+ };
@@ -6,6 +6,7 @@ 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
8
  const client_1 = require("../client");
9
+ const WorkflowJob_1 = require("../types/WorkflowJob");
9
10
  const WorkflowRun_1 = require("../types/WorkflowRun");
10
11
  exports.WorkflowRunQuery = {
11
12
  async byIdAsync(graphqlClient, workflowRunId, { useCache = true } = {}) {
@@ -33,28 +34,27 @@ exports.WorkflowRunQuery = {
33
34
  workflowRuns {
34
35
  byId(workflowRunId: $workflowRunId) {
35
36
  id
36
- name
37
- status
38
- createdAt
39
-
40
37
  workflow {
41
38
  id
42
- name
43
- fileName
39
+ app {
40
+ id
41
+ name
42
+ ownerAccount {
43
+ id
44
+ name
45
+ }
46
+ }
44
47
  }
45
-
46
48
  jobs {
47
49
  id
48
- key
49
- name
50
- type
51
- status
52
- outputs
53
- createdAt
50
+ ...WorkflowJobFragment
54
51
  }
52
+ ...WorkflowRunFragment
55
53
  }
56
54
  }
57
55
  }
56
+ ${(0, graphql_1.print)(WorkflowRun_1.WorkflowRunFragmentNode)}
57
+ ${(0, graphql_1.print)(WorkflowJob_1.WorkflowJobFragmentNode)}
58
58
  `, { workflowRunId }, {
59
59
  requestPolicy: useCache ? 'cache-first' : 'network-only',
60
60
  additionalTypenames: ['WorkflowRun'],
@@ -0,0 +1 @@
1
+ export declare const WorkflowJobFragmentNode: import("graphql").DocumentNode;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowJobFragmentNode = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
6
+ exports.WorkflowJobFragmentNode = (0, graphql_tag_1.default) `
7
+ fragment WorkflowJobFragment on WorkflowJob {
8
+ id
9
+ key
10
+ name
11
+ status
12
+ workflowRun {
13
+ id
14
+ }
15
+ type
16
+ turtleJobRun {
17
+ id
18
+ logFileUrls
19
+ errors {
20
+ errorCode
21
+ message
22
+ }
23
+ }
24
+ outputs
25
+ errors {
26
+ title
27
+ message
28
+ }
29
+ createdAt
30
+ updatedAt
31
+ }
32
+ `;
@@ -9,8 +9,26 @@ exports.WorkflowRunFragmentNode = (0, graphql_tag_1.default) `
9
9
  status
10
10
  gitCommitMessage
11
11
  gitCommitHash
12
+ requestedGitRef
13
+ actor {
14
+ id
15
+ __typename
16
+ ... on UserActor {
17
+ username
18
+ }
19
+ ... on Robot {
20
+ firstName
21
+ }
22
+ }
23
+ triggeringLabelName
24
+ triggerEventType
25
+ triggeringSchedule
12
26
  createdAt
13
27
  updatedAt
28
+ errors {
29
+ title
30
+ message
31
+ }
14
32
  workflow {
15
33
  id
16
34
  name
@@ -1,11 +1,8 @@
1
1
  /// <reference types="node" />
2
- /// <reference types="node" />
3
2
  import { GzipOptions } from 'minizlib';
4
- import { HashOptions } from 'node:crypto';
5
3
  import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
6
4
  import { EnvironmentVariableEnvironment } from '../graphql/generated';
7
5
  interface AssetMapOptions {
8
- hashOptions?: HashOptions;
9
6
  maxFileSize: number;
10
7
  }
11
8
  export interface AssetFileEntry {