diff --git a/packages/eas-cli/graphql-codegen.yml b/packages/eas-cli/graphql-codegen.yml index 69e7315c47..e26f1b6951 100644 --- a/packages/eas-cli/graphql-codegen.yml +++ b/packages/eas-cli/graphql-codegen.yml @@ -1,5 +1,5 @@ overwrite: true -schema: 'https://staging-api.expo.dev/graphql' +schema: 'http://localhost:3000/graphql' documents: - 'src/graphql/**/!(*.d).{ts,tsx}' - 'src/credentials/ios/api/graphql/**/!(*.d).{ts,tsx}' diff --git a/packages/eas-cli/graphql.schema.json b/packages/eas-cli/graphql.schema.json index 1fc92badc0..919e39e41b 100644 --- a/packages/eas-cli/graphql.schema.json +++ b/packages/eas-cli/graphql.schema.json @@ -23202,49 +23202,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "CreateServerlessFunctionUploadUrlResult", - "description": null, - "fields": [ - { - "name": "formDataFields", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "JSONObject", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "url", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "INPUT_OBJECT", "name": "CreateSharedEnvironmentVariableInput", @@ -24810,33 +24767,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "OBJECT", - "name": "DeployServerlessFunctionResult", - "description": null, - "fields": [ - { - "name": "url", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", "name": "Deployment", @@ -28563,6 +28493,18 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "source", + "description": null, + "args": [], + "type": { + "kind": "OBJECT", + "name": "FingerprintSource", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "updatedAt", "description": null, @@ -28675,6 +28617,61 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "FingerprintSource", + "description": null, + "fields": [ + { + "name": "bucketKey", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "isDebugFingerprint", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "type", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "FingerprintSourceType", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "FingerprintSourceInput", @@ -39965,22 +39962,6 @@ "isDeprecated": false, "deprecationReason": null }, - { - "name": "serverlessFunction", - "description": null, - "args": [], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "ServerlessFunctionMutation", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, { "name": "submission", "description": "Mutations that modify an EAS Submit submission", @@ -42745,142 +42726,6 @@ "enumValues": null, "possibleTypes": null }, - { - "kind": "INPUT_OBJECT", - "name": "ServerlessFunctionIdentifierInput", - "description": null, - "fields": null, - "inputFields": [ - { - "name": "gitCommitSHA1", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "String", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "interfaces": null, - "enumValues": null, - "possibleTypes": null - }, - { - "kind": "OBJECT", - "name": "ServerlessFunctionMutation", - "description": null, - "fields": [ - { - "name": "createDeployment", - "description": null, - "args": [ - { - "name": "appId", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "serverlessFunctionIdentifierInput", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ServerlessFunctionIdentifierInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "DeployServerlessFunctionResult", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "createUploadPresignedUrl", - "description": null, - "args": [ - { - "name": "appId", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "SCALAR", - "name": "ID", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - }, - { - "name": "serverlessFunctionIdentifierInput", - "description": null, - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "INPUT_OBJECT", - "name": "ServerlessFunctionIdentifierInput", - "ofType": null - } - }, - "defaultValue": null, - "isDeprecated": false, - "deprecationReason": null - } - ], - "type": { - "kind": "NON_NULL", - "name": null, - "ofType": { - "kind": "OBJECT", - "name": "CreateServerlessFunctionUploadUrlResult", - "ofType": null - } - }, - "isDeprecated": false, - "deprecationReason": null - } - ], - "inputFields": null, - "interfaces": [], - "enumValues": null, - "possibleTypes": null - }, { "kind": "OBJECT", "name": "Snack", @@ -57400,6 +57245,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "PENDING_CANCEL", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "SKIPPED", "description": null, @@ -57987,6 +57838,30 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "errors", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "WorkflowRunError", + "ofType": null + } + } + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "gitCommitHash", "description": null, @@ -58230,6 +58105,45 @@ "enumValues": null, "possibleTypes": null }, + { + "kind": "OBJECT", + "name": "WorkflowRunError", + "description": null, + "fields": [ + { + "name": "message", + "description": null, + "args": [], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, + { + "name": "title", + "description": null, + "args": [], + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + }, + "isDeprecated": false, + "deprecationReason": null + } + ], + "inputFields": null, + "interfaces": [], + "enumValues": null, + "possibleTypes": null + }, { "kind": "INPUT_OBJECT", "name": "WorkflowRunInput", @@ -58262,6 +58176,39 @@ "name": "WorkflowRunMutation", "description": null, "fields": [ + { + "name": "cancelWorkflowRun", + "description": null, + "args": [ + { + "name": "workflowRunId", + "description": null, + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "ID", + "ofType": null + } + }, + "defaultValue": null, + "isDeprecated": false, + "deprecationReason": null + } + ], + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "WorkflowRun", + "ofType": null + } + }, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "createWorkflowRun", "description": null, @@ -58415,6 +58362,12 @@ "isDeprecated": false, "deprecationReason": null }, + { + "name": "PENDING_CANCEL", + "description": null, + "isDeprecated": false, + "deprecationReason": null + }, { "name": "SUCCESS", "description": null, diff --git a/packages/eas-cli/src/graphql/generated.ts b/packages/eas-cli/src/graphql/generated.ts index 6349657cb7..64db8eecc2 100644 --- a/packages/eas-cli/src/graphql/generated.ts +++ b/packages/eas-cli/src/graphql/generated.ts @@ -3389,12 +3389,6 @@ export type CreateIosSubmissionInput = { submittedBuildId?: InputMaybe; }; -export type CreateServerlessFunctionUploadUrlResult = { - __typename?: 'CreateServerlessFunctionUploadUrlResult'; - formDataFields: Scalars['JSONObject']['output']; - url: Scalars['String']['output']; -}; - export type CreateSharedEnvironmentVariableInput = { environments?: InputMaybe>; fileName?: InputMaybe; @@ -3630,11 +3624,6 @@ export type DeleteWorkerDeploymentResult = { id: Scalars['ID']['output']; }; -export type DeployServerlessFunctionResult = { - __typename?: 'DeployServerlessFunctionResult'; - url: Scalars['String']['output']; -}; - /** Represents a Deployment - a set of Builds with the same Runtime Version and Channel */ export type Deployment = { __typename?: 'Deployment'; @@ -4187,6 +4176,7 @@ export type Fingerprint = { debugInfoUrl?: Maybe; hash: Scalars['String']['output']; id: Scalars['ID']['output']; + source?: Maybe; updatedAt: Scalars['DateTime']['output']; }; @@ -4201,6 +4191,13 @@ export type FingerprintInfoGroup = { web?: InputMaybe; }; +export type FingerprintSource = { + __typename?: 'FingerprintSource'; + bucketKey: Scalars['String']['output']; + isDebugFingerprint?: Maybe; + type: FingerprintSourceType; +}; + export type FingerprintSourceInput = { bucketKey?: InputMaybe; isDebugFingerprint?: InputMaybe; @@ -5754,7 +5751,6 @@ export type RootMutation = { notificationSubscription: NotificationSubscriptionMutation; /** Mutations that create, update, and delete Robots */ robot: RobotMutation; - serverlessFunction: ServerlessFunctionMutation; /** Mutations that modify an EAS Submit submission */ submission: SubmissionMutation; update: UpdateMutation; @@ -6157,28 +6153,6 @@ export type SecondFactorRegenerateBackupCodesResult = { plaintextBackupCodes: Array; }; -export type ServerlessFunctionIdentifierInput = { - gitCommitSHA1: Scalars['String']['input']; -}; - -export type ServerlessFunctionMutation = { - __typename?: 'ServerlessFunctionMutation'; - createDeployment: DeployServerlessFunctionResult; - createUploadPresignedUrl: CreateServerlessFunctionUploadUrlResult; -}; - - -export type ServerlessFunctionMutationCreateDeploymentArgs = { - appId: Scalars['ID']['input']; - serverlessFunctionIdentifierInput: ServerlessFunctionIdentifierInput; -}; - - -export type ServerlessFunctionMutationCreateUploadPresignedUrlArgs = { - appId: Scalars['ID']['input']; - serverlessFunctionIdentifierInput: ServerlessFunctionIdentifierInput; -}; - export type Snack = Project & { __typename?: 'Snack'; /** Description of the Snack */ @@ -8113,6 +8087,7 @@ export enum WorkflowJobStatus { Failure = 'FAILURE', InProgress = 'IN_PROGRESS', New = 'NEW', + PendingCancel = 'PENDING_CANCEL', Skipped = 'SKIPPED', Success = 'SUCCESS' } @@ -8203,6 +8178,7 @@ export type WorkflowRun = ActivityTimelineProjectActivity & { activityTimestamp: Scalars['DateTime']['output']; actor?: Maybe; createdAt: Scalars['DateTime']['output']; + errors: Array; gitCommitHash?: Maybe; gitCommitMessage?: Maybe; githubRepository?: Maybe; @@ -8224,16 +8200,28 @@ export type WorkflowRunEdge = { node: WorkflowRun; }; +export type WorkflowRunError = { + __typename?: 'WorkflowRunError'; + message: Scalars['String']['output']; + title?: Maybe; +}; + export type WorkflowRunInput = { projectSource: WorkflowProjectSourceInput; }; export type WorkflowRunMutation = { __typename?: 'WorkflowRunMutation'; + cancelWorkflowRun: WorkflowRun; createWorkflowRun: WorkflowRun; }; +export type WorkflowRunMutationCancelWorkflowRunArgs = { + workflowRunId: Scalars['ID']['input']; +}; + + export type WorkflowRunMutationCreateWorkflowRunArgs = { appId: Scalars['ID']['input']; workflowRevisionInput: WorkflowRevisionInput; @@ -8256,6 +8244,7 @@ export enum WorkflowRunStatus { Failure = 'FAILURE', InProgress = 'IN_PROGRESS', New = 'NEW', + PendingCancel = 'PENDING_CANCEL', Success = 'SUCCESS' } @@ -8938,7 +8927,7 @@ export type UpdatePublishMutationVariables = Exact<{ }>; -export type UpdatePublishMutation = { __typename?: 'RootMutation', updateBranch: { __typename?: 'UpdateBranchMutation', publishUpdateGroups: Array<{ __typename?: 'Update', id: string, group: string, message?: string | null, createdAt: any, runtimeVersion: string, platform: string, manifestFragment: string, isRollBackToEmbedded: boolean, manifestPermalink: string, gitCommitHash?: string | null, rolloutPercentage?: number | null, actor?: { __typename: 'Robot', firstName?: string | null, id: string } | { __typename: 'SSOUser', username: string, id: string } | { __typename: 'User', username: string, id: string } | null, branch: { __typename?: 'UpdateBranch', id: string, name: string }, codeSigningInfo?: { __typename?: 'CodeSigningInfo', keyid: string, sig: string, alg: string } | null, rolloutControlUpdate?: { __typename?: 'Update', id: string } | null }> } }; +export type UpdatePublishMutation = { __typename?: 'RootMutation', updateBranch: { __typename?: 'UpdateBranchMutation', publishUpdateGroups: Array<{ __typename?: 'Update', id: string, group: string, message?: string | null, createdAt: any, runtimeVersion: string, platform: string, manifestFragment: string, isRollBackToEmbedded: boolean, manifestPermalink: string, gitCommitHash?: string | null, rolloutPercentage?: number | null, actor?: { __typename: 'Robot', firstName?: string | null, id: string } | { __typename: 'SSOUser', username: string, id: string } | { __typename: 'User', username: string, id: string } | null, branch: { __typename?: 'UpdateBranch', id: string, name: string }, codeSigningInfo?: { __typename?: 'CodeSigningInfo', keyid: string, sig: string, alg: string } | null, rolloutControlUpdate?: { __typename?: 'Update', id: string } | null, fingerprint?: { __typename?: 'Fingerprint', hash: string, source?: { __typename?: 'FingerprintSource', type: FingerprintSourceType, bucketKey: string, isDebugFingerprint?: boolean | null } | null } | null }> } }; export type SetCodeSigningInfoMutationVariables = Exact<{ updateId: Scalars['ID']['input']; @@ -8954,7 +8943,7 @@ export type SetRolloutPercentageMutationVariables = Exact<{ }>; -export type SetRolloutPercentageMutation = { __typename?: 'RootMutation', update: { __typename?: 'UpdateMutation', setRolloutPercentage: { __typename?: 'Update', id: string, group: string, message?: string | null, createdAt: any, runtimeVersion: string, platform: string, manifestFragment: string, isRollBackToEmbedded: boolean, manifestPermalink: string, gitCommitHash?: string | null, rolloutPercentage?: number | null, actor?: { __typename: 'Robot', firstName?: string | null, id: string } | { __typename: 'SSOUser', username: string, id: string } | { __typename: 'User', username: string, id: string } | null, branch: { __typename?: 'UpdateBranch', id: string, name: string }, codeSigningInfo?: { __typename?: 'CodeSigningInfo', keyid: string, sig: string, alg: string } | null, rolloutControlUpdate?: { __typename?: 'Update', id: string } | null } } }; +export type SetRolloutPercentageMutation = { __typename?: 'RootMutation', update: { __typename?: 'UpdateMutation', setRolloutPercentage: { __typename?: 'Update', id: string, group: string, message?: string | null, createdAt: any, runtimeVersion: string, platform: string, manifestFragment: string, isRollBackToEmbedded: boolean, manifestPermalink: string, gitCommitHash?: string | null, rolloutPercentage?: number | null, actor?: { __typename: 'Robot', firstName?: string | null, id: string } | { __typename: 'SSOUser', username: string, id: string } | { __typename: 'User', username: string, id: string } | null, branch: { __typename?: 'UpdateBranch', id: string, name: string }, codeSigningInfo?: { __typename?: 'CodeSigningInfo', keyid: string, sig: string, alg: string } | null, rolloutControlUpdate?: { __typename?: 'Update', id: string } | null, fingerprint?: { __typename?: 'Fingerprint', hash: string, source?: { __typename?: 'FingerprintSource', type: FingerprintSourceType, bucketKey: string, isDebugFingerprint?: boolean | null } | null } | null } } }; export type CreateAndroidSubmissionMutationVariables = Exact<{ appId: Scalars['ID']['input']; @@ -9093,7 +9082,7 @@ export type BranchesByAppQueryVariables = Exact<{ }>; -export type BranchesByAppQuery = { __typename?: 'RootQuery', app: { __typename?: 'AppQuery', byId: { __typename?: 'App', id: string, updateBranches: Array<{ __typename?: 'UpdateBranch', id: string, name: string, updates: Array<{ __typename?: 'Update', id: string, group: string, message?: string | null, createdAt: any, runtimeVersion: string, platform: string, manifestFragment: string, isRollBackToEmbedded: boolean, manifestPermalink: string, gitCommitHash?: string | null, rolloutPercentage?: number | null, actor?: { __typename: 'Robot', firstName?: string | null, id: string } | { __typename: 'SSOUser', username: string, id: string } | { __typename: 'User', username: string, id: string } | null, branch: { __typename?: 'UpdateBranch', id: string, name: string }, codeSigningInfo?: { __typename?: 'CodeSigningInfo', keyid: string, sig: string, alg: string } | null, rolloutControlUpdate?: { __typename?: 'Update', id: string } | null }> }> } } }; +export type BranchesByAppQuery = { __typename?: 'RootQuery', app: { __typename?: 'AppQuery', byId: { __typename?: 'App', id: string, updateBranches: Array<{ __typename?: 'UpdateBranch', id: string, name: string, updates: Array<{ __typename?: 'Update', id: string, group: string, message?: string | null, createdAt: any, runtimeVersion: string, platform: string, manifestFragment: string, isRollBackToEmbedded: boolean, manifestPermalink: string, gitCommitHash?: string | null, rolloutPercentage?: number | null, actor?: { __typename: 'Robot', firstName?: string | null, id: string } | { __typename: 'SSOUser', username: string, id: string } | { __typename: 'User', username: string, id: string } | null, branch: { __typename?: 'UpdateBranch', id: string, name: string }, codeSigningInfo?: { __typename?: 'CodeSigningInfo', keyid: string, sig: string, alg: string } | null, rolloutControlUpdate?: { __typename?: 'Update', id: string } | null, fingerprint?: { __typename?: 'Fingerprint', hash: string, source?: { __typename?: 'FingerprintSource', type: FingerprintSourceType, bucketKey: string, isDebugFingerprint?: boolean | null } | null } | null }> }> } } }; export type BranchesBasicPaginatedOnAppQueryVariables = Exact<{ appId: Scalars['String']['input']; @@ -9114,7 +9103,7 @@ export type ViewBranchesOnUpdateChannelQueryVariables = Exact<{ }>; -export type ViewBranchesOnUpdateChannelQuery = { __typename?: 'RootQuery', app: { __typename?: 'AppQuery', byId: { __typename?: 'App', id: string, updateChannelByName?: { __typename?: 'UpdateChannel', id: string, updateBranches: Array<{ __typename?: 'UpdateBranch', id: string, name: string, updateGroups: Array> }> } | null } } }; +export type ViewBranchesOnUpdateChannelQuery = { __typename?: 'RootQuery', app: { __typename?: 'AppQuery', byId: { __typename?: 'App', id: string, updateChannelByName?: { __typename?: 'UpdateChannel', id: string, updateBranches: Array<{ __typename?: 'UpdateBranch', id: string, name: string, updateGroups: Array> }> } | null } } }; export type BuildsByIdQueryVariables = Exact<{ buildId: Scalars['ID']['input']; @@ -9147,7 +9136,7 @@ export type ViewUpdateChannelOnAppQueryVariables = Exact<{ }>; -export type ViewUpdateChannelOnAppQuery = { __typename?: 'RootQuery', app: { __typename?: 'AppQuery', byId: { __typename?: 'App', id: string, updateChannelByName?: { __typename?: 'UpdateChannel', id: string, isPaused: boolean, name: string, updatedAt: any, createdAt: any, branchMapping: string, updateBranches: Array<{ __typename?: 'UpdateBranch', id: string, name: string, updateGroups: Array> }> } | null } } }; +export type ViewUpdateChannelOnAppQuery = { __typename?: 'RootQuery', app: { __typename?: 'AppQuery', byId: { __typename?: 'App', id: string, updateChannelByName?: { __typename?: 'UpdateChannel', id: string, isPaused: boolean, name: string, updatedAt: any, createdAt: any, branchMapping: string, updateBranches: Array<{ __typename?: 'UpdateBranch', id: string, name: string, updateGroups: Array> }> } | null } } }; export type ViewUpdateChannelsOnAppQueryVariables = Exact<{ appId: Scalars['String']['input']; @@ -9156,7 +9145,7 @@ export type ViewUpdateChannelsOnAppQueryVariables = Exact<{ }>; -export type ViewUpdateChannelsOnAppQuery = { __typename?: 'RootQuery', app: { __typename?: 'AppQuery', byId: { __typename?: 'App', id: string, updateChannels: Array<{ __typename?: 'UpdateChannel', id: string, isPaused: boolean, name: string, updatedAt: any, createdAt: any, branchMapping: string, updateBranches: Array<{ __typename?: 'UpdateBranch', id: string, name: string, updateGroups: Array> }> }> } } }; +export type ViewUpdateChannelsOnAppQuery = { __typename?: 'RootQuery', app: { __typename?: 'AppQuery', byId: { __typename?: 'App', id: string, updateChannels: Array<{ __typename?: 'UpdateChannel', id: string, isPaused: boolean, name: string, updatedAt: any, createdAt: any, branchMapping: string, updateBranches: Array<{ __typename?: 'UpdateBranch', id: string, name: string, updateGroups: Array> }> }> } } }; export type ViewUpdateChannelsPaginatedOnAppQueryVariables = Exact<{ appId: Scalars['String']['input']; @@ -9280,7 +9269,7 @@ export type ViewUpdatesByGroupQueryVariables = Exact<{ }>; -export type ViewUpdatesByGroupQuery = { __typename?: 'RootQuery', updatesByGroup: Array<{ __typename?: 'Update', id: string, group: string, message?: string | null, createdAt: any, runtimeVersion: string, platform: string, manifestFragment: string, isRollBackToEmbedded: boolean, manifestPermalink: string, gitCommitHash?: string | null, rolloutPercentage?: number | null, actor?: { __typename: 'Robot', firstName?: string | null, id: string } | { __typename: 'SSOUser', username: string, id: string } | { __typename: 'User', username: string, id: string } | null, branch: { __typename?: 'UpdateBranch', id: string, name: string }, codeSigningInfo?: { __typename?: 'CodeSigningInfo', keyid: string, sig: string, alg: string } | null, rolloutControlUpdate?: { __typename?: 'Update', id: string } | null }> }; +export type ViewUpdatesByGroupQuery = { __typename?: 'RootQuery', updatesByGroup: Array<{ __typename?: 'Update', id: string, group: string, message?: string | null, createdAt: any, runtimeVersion: string, platform: string, manifestFragment: string, isRollBackToEmbedded: boolean, manifestPermalink: string, gitCommitHash?: string | null, rolloutPercentage?: number | null, actor?: { __typename: 'Robot', firstName?: string | null, id: string } | { __typename: 'SSOUser', username: string, id: string } | { __typename: 'User', username: string, id: string } | null, branch: { __typename?: 'UpdateBranch', id: string, name: string }, codeSigningInfo?: { __typename?: 'CodeSigningInfo', keyid: string, sig: string, alg: string } | null, rolloutControlUpdate?: { __typename?: 'Update', id: string } | null, fingerprint?: { __typename?: 'Fingerprint', hash: string, source?: { __typename?: 'FingerprintSource', type: FingerprintSourceType, bucketKey: string, isDebugFingerprint?: boolean | null } | null } | null }> }; export type ViewUpdateGroupsOnBranchQueryVariables = Exact<{ appId: Scalars['String']['input']; @@ -9291,7 +9280,7 @@ export type ViewUpdateGroupsOnBranchQueryVariables = Exact<{ }>; -export type ViewUpdateGroupsOnBranchQuery = { __typename?: 'RootQuery', app: { __typename?: 'AppQuery', byId: { __typename?: 'App', id: string, updateBranchByName?: { __typename?: 'UpdateBranch', id: string, updateGroups: Array> } | null } } }; +export type ViewUpdateGroupsOnBranchQuery = { __typename?: 'RootQuery', app: { __typename?: 'AppQuery', byId: { __typename?: 'App', id: string, updateBranchByName?: { __typename?: 'UpdateBranch', id: string, updateGroups: Array> } | null } } }; export type ViewUpdateGroupsOnAppQueryVariables = Exact<{ appId: Scalars['String']['input']; @@ -9301,7 +9290,7 @@ export type ViewUpdateGroupsOnAppQueryVariables = Exact<{ }>; -export type ViewUpdateGroupsOnAppQuery = { __typename?: 'RootQuery', app: { __typename?: 'AppQuery', byId: { __typename?: 'App', id: string, updateGroups: Array> } } }; +export type ViewUpdateGroupsOnAppQuery = { __typename?: 'RootQuery', app: { __typename?: 'AppQuery', byId: { __typename?: 'App', id: string, updateGroups: Array> } } }; export type CurrentUserQueryVariables = Exact<{ [key: string]: never; }>; @@ -9343,9 +9332,9 @@ export type StatuspageServiceFragment = { __typename?: 'StatuspageService', id: export type SubmissionFragment = { __typename?: 'Submission', id: string, status: SubmissionStatus, platform: AppPlatform, logFiles: Array, app: { __typename?: 'App', id: string, name: string, slug: string, ownerAccount: { __typename?: 'Account', id: string, name: string } }, androidConfig?: { __typename?: 'AndroidSubmissionConfig', applicationIdentifier?: string | null, track: SubmissionAndroidTrack, releaseStatus?: SubmissionAndroidReleaseStatus | null, rollout?: number | null } | null, iosConfig?: { __typename?: 'IosSubmissionConfig', ascAppIdentifier: string, appleIdUsername?: string | null } | null, error?: { __typename?: 'SubmissionError', errorCode?: string | null, message?: string | null } | null }; -export type UpdateFragment = { __typename?: 'Update', id: string, group: string, message?: string | null, createdAt: any, runtimeVersion: string, platform: string, manifestFragment: string, isRollBackToEmbedded: boolean, manifestPermalink: string, gitCommitHash?: string | null, rolloutPercentage?: number | null, actor?: { __typename: 'Robot', firstName?: string | null, id: string } | { __typename: 'SSOUser', username: string, id: string } | { __typename: 'User', username: string, id: string } | null, branch: { __typename?: 'UpdateBranch', id: string, name: string }, codeSigningInfo?: { __typename?: 'CodeSigningInfo', keyid: string, sig: string, alg: string } | null, rolloutControlUpdate?: { __typename?: 'Update', id: string } | null }; +export type UpdateFragment = { __typename?: 'Update', id: string, group: string, message?: string | null, createdAt: any, runtimeVersion: string, platform: string, manifestFragment: string, isRollBackToEmbedded: boolean, manifestPermalink: string, gitCommitHash?: string | null, rolloutPercentage?: number | null, actor?: { __typename: 'Robot', firstName?: string | null, id: string } | { __typename: 'SSOUser', username: string, id: string } | { __typename: 'User', username: string, id: string } | null, branch: { __typename?: 'UpdateBranch', id: string, name: string }, codeSigningInfo?: { __typename?: 'CodeSigningInfo', keyid: string, sig: string, alg: string } | null, rolloutControlUpdate?: { __typename?: 'Update', id: string } | null, fingerprint?: { __typename?: 'Fingerprint', hash: string, source?: { __typename?: 'FingerprintSource', type: FingerprintSourceType, bucketKey: string, isDebugFingerprint?: boolean | null } | null } | null }; -export type UpdateBranchFragment = { __typename?: 'UpdateBranch', id: string, name: string, updates: Array<{ __typename?: 'Update', id: string, group: string, message?: string | null, createdAt: any, runtimeVersion: string, platform: string, manifestFragment: string, isRollBackToEmbedded: boolean, manifestPermalink: string, gitCommitHash?: string | null, rolloutPercentage?: number | null, actor?: { __typename: 'Robot', firstName?: string | null, id: string } | { __typename: 'SSOUser', username: string, id: string } | { __typename: 'User', username: string, id: string } | null, branch: { __typename?: 'UpdateBranch', id: string, name: string }, codeSigningInfo?: { __typename?: 'CodeSigningInfo', keyid: string, sig: string, alg: string } | null, rolloutControlUpdate?: { __typename?: 'Update', id: string } | null }> }; +export type UpdateBranchFragment = { __typename?: 'UpdateBranch', id: string, name: string, updates: Array<{ __typename?: 'Update', id: string, group: string, message?: string | null, createdAt: any, runtimeVersion: string, platform: string, manifestFragment: string, isRollBackToEmbedded: boolean, manifestPermalink: string, gitCommitHash?: string | null, rolloutPercentage?: number | null, actor?: { __typename: 'Robot', firstName?: string | null, id: string } | { __typename: 'SSOUser', username: string, id: string } | { __typename: 'User', username: string, id: string } | null, branch: { __typename?: 'UpdateBranch', id: string, name: string }, codeSigningInfo?: { __typename?: 'CodeSigningInfo', keyid: string, sig: string, alg: string } | null, rolloutControlUpdate?: { __typename?: 'Update', id: string } | null, fingerprint?: { __typename?: 'Fingerprint', hash: string, source?: { __typename?: 'FingerprintSource', type: FingerprintSourceType, bucketKey: string, isDebugFingerprint?: boolean | null } | null } | null }> }; export type UpdateBranchBasicInfoFragment = { __typename?: 'UpdateBranch', id: string, name: string }; diff --git a/packages/eas-cli/src/graphql/types/Update.ts b/packages/eas-cli/src/graphql/types/Update.ts index 3b9de01322..31e491ed9e 100644 --- a/packages/eas-cli/src/graphql/types/Update.ts +++ b/packages/eas-cli/src/graphql/types/Update.ts @@ -35,5 +35,13 @@ export const UpdateFragmentNode = gql` rolloutControlUpdate { id } + fingerprint { + hash + source { + type + bucketKey + isDebugFingerprint + } + } } `; diff --git a/packages/eas-cli/src/update/republish.ts b/packages/eas-cli/src/update/republish.ts index 2f5c9f496c..8ee484d115 100644 --- a/packages/eas-cli/src/update/republish.ts +++ b/packages/eas-cli/src/update/republish.ts @@ -118,6 +118,27 @@ export async function republishAsync({ updateInfoGroup: Object.fromEntries( updatesToPublish.map(update => [update.platform, JSON.parse(update.manifestFragment)]) ), + fingerprintInfoGroup: Object.fromEntries( + updatesToPublish.map(update => { + const fingerprint = update.fingerprint; + if (!fingerprint) { + return [update.platform, undefined]; + } + return [ + update.platform, + { + fingerprintHash: fingerprint.hash, + fingerprintSource: fingerprint.source + ? { + type: fingerprint.source.type, + bucketKey: fingerprint.source.bucketKey, + isDebugFingerprint: fingerprint.source.isDebugFingerprint, + } + : undefined, + }, + ]; + }) + ), }; updatesRepublished = await PublishMutation.publishUpdateGroupAsync(graphqlClient, [