@@ -2,7 +2,12 @@ import { CombinedError } from '@urql/core';
22import gql from 'graphql-tag' ;
33
44import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient' ;
5- import { AppPlatform } from '../generated' ;
5+ import {
6+ AppPlatform ,
7+ UploadEmbeddedUpdateInput ,
8+ UploadEmbeddedUpdateMutation ,
9+ UploadEmbeddedUpdateMutationVariables ,
10+ } from '../generated' ;
611import { withErrorHandlingAsync } from '../client' ;
712
813export type EmbeddedUpdateResult = {
@@ -13,21 +18,6 @@ export type EmbeddedUpdateResult = {
1318 createdAt : string ;
1419} ;
1520
16- type UploadEmbeddedUpdateInput = {
17- appId : string ;
18- platform : AppPlatform ;
19- runtimeVersion : string ;
20- channel : string ;
21- embeddedUpdateId : string ;
22- turtleBuildId ?: string ;
23- } ;
24-
25- type UploadEmbeddedUpdateMutationResult = {
26- embeddedUpdate : {
27- uploadEmbeddedUpdate : EmbeddedUpdateResult ;
28- } ;
29- } ;
30-
3121export function isEmbeddedUpdateAssetNotAvailableError ( error : unknown ) : boolean {
3222 return (
3323 error instanceof CombinedError &&
@@ -44,7 +34,7 @@ export const EmbeddedUpdateMutation = {
4434 ) : Promise < EmbeddedUpdateResult > {
4535 const data = await withErrorHandlingAsync (
4636 graphqlClient
47- . mutation < UploadEmbeddedUpdateMutationResult > (
37+ . mutation < UploadEmbeddedUpdateMutation , UploadEmbeddedUpdateMutationVariables > (
4838 gql `
4939 mutation UploadEmbeddedUpdate($input: UploadEmbeddedUpdateInput!) {
5040 embeddedUpdate {
0 commit comments