eas-cli 0.31.1 → 0.34.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 (128) hide show
  1. package/README.md +29 -28
  2. package/build/analytics.js +3 -9
  3. package/build/build/android/UpdatesModule.js +4 -15
  4. package/build/build/android/configure.js +3 -3
  5. package/build/build/android/graphql.js +2 -4
  6. package/build/build/android/prepareJob.js +4 -3
  7. package/build/build/build.js +2 -2
  8. package/build/build/configure.js +26 -13
  9. package/build/build/ios/UpdatesModule.js +6 -18
  10. package/build/build/ios/configure.js +1 -1
  11. package/build/build/ios/graphql.js +2 -23
  12. package/build/build/ios/prepareJob.js +4 -6
  13. package/build/build/metadata.js +5 -10
  14. package/build/build/utils/appJson.d.ts +1 -0
  15. package/build/build/utils/appJson.js +13 -4
  16. package/build/build/utils/devClient.d.ts +4 -4
  17. package/build/build/utils/devClient.js +10 -18
  18. package/build/build/utils/repository.js +10 -7
  19. package/build/build/validate.js +4 -4
  20. package/build/commandUtils/EasCommand.d.ts +1 -0
  21. package/build/commandUtils/EasCommand.js +21 -0
  22. package/build/commands/branch/create.js +3 -2
  23. package/build/commands/branch/delete.js +1 -1
  24. package/build/commands/branch/list.js +1 -1
  25. package/build/commands/branch/publish.js +20 -48
  26. package/build/commands/branch/view.js +1 -1
  27. package/build/commands/build/index.d.ts +1 -1
  28. package/build/commands/build/index.js +64 -49
  29. package/build/commands/channel/edit.js +1 -1
  30. package/build/commands/channel/list.js +1 -1
  31. package/build/commands/channel/view.js +1 -1
  32. package/build/commands/diagnostics.js +2 -2
  33. package/build/commands/project/info.js +1 -1
  34. package/build/commands/submit.js +16 -11
  35. package/build/commands/update/view.js +1 -1
  36. package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.js +2 -0
  37. package/build/credentials/context.d.ts +1 -1
  38. package/build/credentials/context.js +5 -5
  39. package/build/credentials/credentialsJson/update.js +5 -4
  40. package/build/credentials/errors.d.ts +3 -0
  41. package/build/credentials/errors.js +7 -1
  42. package/build/credentials/ios/IosCredentialsProvider.js +1 -1
  43. package/build/credentials/ios/actions/AscApiKeyUtils.d.ts +5 -0
  44. package/build/credentials/ios/actions/AscApiKeyUtils.js +63 -0
  45. package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -1
  46. package/build/credentials/ios/actions/CreatePushKey.js +1 -1
  47. package/build/credentials/ios/actions/DistributionCertificateUtils.d.ts +1 -1
  48. package/build/credentials/ios/actions/DistributionCertificateUtils.js +10 -12
  49. package/build/credentials/ios/actions/PushKeyUtils.d.ts +1 -1
  50. package/build/credentials/ios/actions/PushKeyUtils.js +5 -5
  51. package/build/credentials/ios/actions/SetupTargetBuildCredentials.js +1 -1
  52. package/build/credentials/ios/api/graphql/queries/AppQuery.js +3 -1
  53. package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.js +6 -2
  54. package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.js +7 -1
  55. package/build/credentials/ios/api/graphql/queries/AppleProvisioningProfileQuery.js +5 -1
  56. package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.js +2 -0
  57. package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.js +5 -1
  58. package/build/credentials/ios/appstore/AppStoreApi.d.ts +7 -1
  59. package/build/credentials/ios/appstore/AppStoreApi.js +17 -0
  60. package/build/credentials/ios/appstore/Credentials.js +3 -3
  61. package/build/credentials/ios/appstore/Credentials.types.d.ts +13 -0
  62. package/build/credentials/ios/appstore/ascApiKey.d.ts +9 -0
  63. package/build/credentials/ios/appstore/ascApiKey.js +99 -0
  64. package/build/credentials/ios/credentials.d.ts +17 -0
  65. package/build/credentials/ios/credentials.js +16 -1
  66. package/build/credentials/manager/Actions.d.ts +47 -0
  67. package/build/credentials/manager/Actions.js +48 -0
  68. package/build/credentials/manager/AndroidActions.d.ts +6 -0
  69. package/build/credentials/manager/AndroidActions.js +114 -0
  70. package/build/credentials/manager/IosActions.d.ts +6 -0
  71. package/build/credentials/manager/IosActions.js +110 -0
  72. package/build/credentials/manager/ManageAndroid.d.ts +1 -29
  73. package/build/credentials/manager/ManageAndroid.js +26 -159
  74. package/build/credentials/manager/ManageIos.d.ts +1 -29
  75. package/build/credentials/manager/ManageIos.js +28 -155
  76. package/build/graphql/client.d.ts +8 -2
  77. package/build/graphql/generated.d.ts +134 -121
  78. package/build/graphql/generated.js +46 -28
  79. package/build/graphql/queries/BuildQuery.js +4 -1
  80. package/build/graphql/queries/EnvironmentSecretsQuery.js +4 -2
  81. package/build/graphql/queries/ProjectQuery.js +3 -1
  82. package/build/graphql/queries/PublishQuery.js +4 -1
  83. package/build/graphql/queries/SubmissionQuery.js +5 -2
  84. package/build/graphql/queries/UserQuery.js +4 -1
  85. package/build/graphql/queries/WebhookQuery.js +6 -2
  86. package/build/log.d.ts +11 -3
  87. package/build/log.js +23 -22
  88. package/build/project/android/applicationId.d.ts +1 -1
  89. package/build/project/android/applicationId.js +7 -6
  90. package/build/project/ios/bundleIdentifier.d.ts +1 -1
  91. package/build/project/ios/bundleIdentifier.js +7 -6
  92. package/build/project/projectUtils.js +1 -1
  93. package/build/project/publish.js +2 -2
  94. package/build/project/workflow.js +2 -2
  95. package/build/submit/ArchiveSource.d.ts +7 -2
  96. package/build/submit/ArchiveSource.js +94 -11
  97. package/build/submit/ios/AscApiKeySource.d.ts +28 -0
  98. package/build/submit/ios/AscApiKeySource.js +51 -0
  99. package/build/submit/ios/IosSubmitCommand.d.ts +2 -0
  100. package/build/submit/ios/IosSubmitCommand.js +55 -3
  101. package/build/submit/ios/IosSubmitter.d.ts +3 -1
  102. package/build/submit/ios/IosSubmitter.js +49 -5
  103. package/build/submit/submit.js +1 -1
  104. package/build/submit/utils/builds.d.ts +3 -1
  105. package/build/submit/utils/builds.js +6 -6
  106. package/build/user/User.js +1 -0
  107. package/build/utils/easCli.d.ts +1 -0
  108. package/build/utils/easCli.js +5 -0
  109. package/build/utils/{expoCommand.d.ts → expoCli.d.ts} +0 -0
  110. package/build/utils/{expoCommand.js → expoCli.js} +0 -0
  111. package/build/utils/profiles.d.ts +11 -0
  112. package/build/utils/profiles.js +46 -0
  113. package/build/vcs/clients/git.d.ts +26 -0
  114. package/build/vcs/clients/git.js +184 -0
  115. package/build/vcs/clients/gitNoCommit.d.ts +7 -0
  116. package/build/vcs/clients/gitNoCommit.js +27 -0
  117. package/build/vcs/clients/noVcs.d.ts +6 -0
  118. package/build/vcs/clients/noVcs.js +19 -0
  119. package/build/vcs/git.d.ts +10 -17
  120. package/build/vcs/git.js +7 -175
  121. package/build/vcs/index.d.ts +2 -2
  122. package/build/vcs/index.js +15 -6
  123. package/build/vcs/local.d.ts +18 -5
  124. package/build/vcs/local.js +61 -32
  125. package/build/vcs/vcs.d.ts +2 -1
  126. package/build/vcs/vcs.js +8 -4
  127. package/oclif.manifest.json +1 -1
  128. package/package.json +7 -7
@@ -30,145 +30,18 @@ const SetupPushKey_1 = require("../ios/actions/SetupPushKey");
30
30
  const UpdateCredentialsJson_1 = require("../ios/actions/UpdateCredentialsJson");
31
31
  const entitlements_1 = require("../ios/appstore/entitlements");
32
32
  const printCredentials_1 = require("../ios/utils/printCredentials");
33
+ const Actions_1 = require("./Actions");
33
34
  const HelperActions_1 = require("./HelperActions");
35
+ const IosActions_1 = require("./IosActions");
34
36
  const SelectBuildProfileFromEasJson_1 = require("./SelectBuildProfileFromEasJson");
35
37
  const SelectIosDistributionTypeGraphqlFromBuildProfile_1 = require("./SelectIosDistributionTypeGraphqlFromBuildProfile");
36
- var ActionType;
37
- (function (ActionType) {
38
- ActionType[ActionType["ManageCredentialsJson"] = 0] = "ManageCredentialsJson";
39
- ActionType[ActionType["ManageBuildCredentials"] = 1] = "ManageBuildCredentials";
40
- ActionType[ActionType["ManagePushKey"] = 2] = "ManagePushKey";
41
- ActionType[ActionType["GoBackToCaller"] = 3] = "GoBackToCaller";
42
- ActionType[ActionType["GoBackToHighLevelActions"] = 4] = "GoBackToHighLevelActions";
43
- ActionType[ActionType["SetupBuildCredentials"] = 5] = "SetupBuildCredentials";
44
- ActionType[ActionType["SetupBuildCredentialsFromCredentialsJson"] = 6] = "SetupBuildCredentialsFromCredentialsJson";
45
- ActionType[ActionType["UpdateCredentialsJson"] = 7] = "UpdateCredentialsJson";
46
- ActionType[ActionType["UseExistingDistributionCertificate"] = 8] = "UseExistingDistributionCertificate";
47
- ActionType[ActionType["RemoveProvisioningProfile"] = 9] = "RemoveProvisioningProfile";
48
- ActionType[ActionType["CreateDistributionCertificate"] = 10] = "CreateDistributionCertificate";
49
- ActionType[ActionType["RemoveDistributionCertificate"] = 11] = "RemoveDistributionCertificate";
50
- ActionType[ActionType["SetupPushKey"] = 12] = "SetupPushKey";
51
- ActionType[ActionType["CreatePushKey"] = 13] = "CreatePushKey";
52
- ActionType[ActionType["UseExistingPushKey"] = 14] = "UseExistingPushKey";
53
- ActionType[ActionType["RemovePushKey"] = 15] = "RemovePushKey";
54
- })(ActionType || (ActionType = {}));
55
- var Scope;
56
- (function (Scope) {
57
- Scope[Scope["Project"] = 0] = "Project";
58
- Scope[Scope["Account"] = 1] = "Account";
59
- Scope[Scope["Manager"] = 2] = "Manager";
60
- })(Scope || (Scope = {}));
61
- const highLevelActions = [
62
- {
63
- value: ActionType.ManageBuildCredentials,
64
- title: 'Build Credentials: Manage everything needed to build your project',
65
- scope: Scope.Manager,
66
- },
67
- {
68
- value: ActionType.ManagePushKey,
69
- title: 'Push Notifications: Manage your Apple Push Notifications Key',
70
- scope: Scope.Manager,
71
- },
72
- {
73
- value: ActionType.ManageCredentialsJson,
74
- title: 'Credentials.json: Upload/Download credentials between EAS servers and your local json ',
75
- scope: Scope.Manager,
76
- },
77
- {
78
- value: ActionType.GoBackToCaller,
79
- title: 'Go back',
80
- scope: Scope.Manager,
81
- },
82
- ];
83
- const credentialsJsonActions = [
84
- {
85
- value: ActionType.UpdateCredentialsJson,
86
- title: 'Download credentials from EAS to credentials.json',
87
- scope: Scope.Project,
88
- },
89
- {
90
- value: ActionType.SetupBuildCredentialsFromCredentialsJson,
91
- title: 'Upload credentials from credentials.json to EAS',
92
- scope: Scope.Project,
93
- },
94
- {
95
- value: ActionType.GoBackToHighLevelActions,
96
- title: 'Go back',
97
- scope: Scope.Manager,
98
- },
99
- ];
100
- function getPushKeyActions(ctx) {
101
- return [
102
- {
103
- value: ActionType.SetupPushKey,
104
- title: 'Setup your project to use Push Notifications',
105
- scope: Scope.Project,
106
- },
107
- {
108
- value: ActionType.CreatePushKey,
109
- title: 'Add a new push key',
110
- scope: ctx.hasProjectContext ? Scope.Project : Scope.Account,
111
- },
112
- {
113
- value: ActionType.UseExistingPushKey,
114
- title: 'Use an existing push key',
115
- scope: Scope.Project,
116
- },
117
- {
118
- value: ActionType.RemovePushKey,
119
- title: 'Remove a push key from your account',
120
- scope: Scope.Account,
121
- },
122
- {
123
- value: ActionType.GoBackToHighLevelActions,
124
- title: 'Go back',
125
- scope: Scope.Manager,
126
- },
127
- ];
128
- }
129
- function getBuildCredentialsActions(ctx) {
130
- return [
131
- {
132
- // This command will be triggered during build to ensure all credentials are ready
133
- // I'm leaving it here for now to simplify testing
134
- value: ActionType.SetupBuildCredentials,
135
- title: 'All: Set up all the required credentials to build your project',
136
- scope: Scope.Project,
137
- },
138
- {
139
- value: ActionType.UseExistingDistributionCertificate,
140
- title: 'Distribution Certificate: Use an existing one for your project',
141
- scope: Scope.Project,
142
- },
143
- {
144
- value: ActionType.CreateDistributionCertificate,
145
- title: `Distribution Certificate: Add a new one to your account`,
146
- scope: ctx.hasProjectContext ? Scope.Project : Scope.Account,
147
- },
148
- {
149
- value: ActionType.RemoveDistributionCertificate,
150
- title: 'Distribution Certificate: Delete one from your account',
151
- scope: Scope.Account,
152
- },
153
- {
154
- value: ActionType.RemoveProvisioningProfile,
155
- title: 'Provisioning Profile: Delete one from your project',
156
- scope: Scope.Project,
157
- },
158
- {
159
- value: ActionType.GoBackToHighLevelActions,
160
- title: 'Go back',
161
- scope: Scope.Manager,
162
- },
163
- ];
164
- }
165
38
  class ManageIos {
166
39
  constructor(callingAction) {
167
40
  this.callingAction = callingAction;
168
41
  }
169
- async runAsync(ctx, currentActions = highLevelActions) {
170
- const buildCredentialsActions = getBuildCredentialsActions(ctx);
171
- const pushKeyActions = getPushKeyActions(ctx);
42
+ async runAsync(ctx, currentActions = IosActions_1.highLevelActions) {
43
+ const buildCredentialsActions = (0, IosActions_1.getBuildCredentialsActions)(ctx);
44
+ const pushKeyActions = (0, IosActions_1.getPushKeyActions)(ctx);
172
45
  await ctx.bestEffortAppStoreAuthenticateAsync();
173
46
  const accountName = ctx.hasProjectContext
174
47
  ? (0, projectUtils_1.getProjectAccountName)(ctx.exp, ctx.user)
@@ -203,32 +76,32 @@ class ManageIos {
203
76
  if (!actionInfo) {
204
77
  throw new Error('Action not supported yet');
205
78
  }
206
- if (actionInfo.scope === Scope.Manager) {
207
- if (chosenAction === ActionType.ManageBuildCredentials) {
79
+ if (actionInfo.scope === Actions_1.Scope.Manager) {
80
+ if (chosenAction === Actions_1.IosActionType.ManageBuildCredentials) {
208
81
  currentActions = buildCredentialsActions;
209
82
  continue;
210
83
  }
211
- else if (chosenAction === ActionType.ManageCredentialsJson) {
212
- currentActions = credentialsJsonActions;
84
+ else if (chosenAction === Actions_1.IosActionType.ManageCredentialsJson) {
85
+ currentActions = IosActions_1.credentialsJsonActions;
213
86
  continue;
214
87
  }
215
- else if (chosenAction === ActionType.ManagePushKey) {
88
+ else if (chosenAction === Actions_1.IosActionType.ManagePushKey) {
216
89
  currentActions = pushKeyActions;
217
90
  continue;
218
91
  }
219
- else if (chosenAction === ActionType.GoBackToHighLevelActions) {
220
- currentActions = highLevelActions;
92
+ else if (chosenAction === Actions_1.IosActionType.GoBackToHighLevelActions) {
93
+ currentActions = IosActions_1.highLevelActions;
221
94
  continue;
222
95
  }
223
- else if (chosenAction === ActionType.GoBackToCaller) {
96
+ else if (chosenAction === Actions_1.IosActionType.GoBackToCaller) {
224
97
  return await this.callingAction.runAsync(ctx);
225
98
  }
226
99
  }
227
- else if (actionInfo.scope === Scope.Project) {
100
+ else if (actionInfo.scope === Actions_1.Scope.Project) {
228
101
  (0, assert_1.default)(ctx.hasProjectContext, 'You must be in your project directory in order to perform this action');
229
102
  await this.runProjectSpecificActionAsync(ctx, (0, nullthrows_1.default)(app, 'app must be defined in project context'), (0, nullthrows_1.default)(targets, 'targets must be defined in project context'), (0, nullthrows_1.default)(buildProfile, 'buildProfile must be defined in project context'), chosenAction);
230
103
  }
231
- else if (actionInfo.scope === Scope.Account) {
104
+ else if (actionInfo.scope === Actions_1.Scope.Account) {
232
105
  await this.runAccountSpecificActionAsync(ctx, account, chosenAction);
233
106
  }
234
107
  else {
@@ -272,22 +145,22 @@ class ManageIos {
272
145
  };
273
146
  }
274
147
  async runAccountSpecificActionAsync(ctx, account, action) {
275
- if (action === ActionType.RemoveDistributionCertificate) {
148
+ if (action === Actions_1.IosActionType.RemoveDistributionCertificate) {
276
149
  await new RemoveDistributionCertificate_1.SelectAndRemoveDistributionCertificate(account).runAsync(ctx);
277
150
  }
278
- else if (action === ActionType.CreateDistributionCertificate) {
151
+ else if (action === Actions_1.IosActionType.CreateDistributionCertificate) {
279
152
  await new CreateDistributionCertificate_1.CreateDistributionCertificate(account).runAsync(ctx);
280
153
  }
281
- else if (action === ActionType.CreatePushKey) {
154
+ else if (action === Actions_1.IosActionType.CreatePushKey) {
282
155
  await new CreatePushKey_1.CreatePushKey(account).runAsync(ctx);
283
156
  }
284
- else if (action === ActionType.RemovePushKey) {
157
+ else if (action === Actions_1.IosActionType.RemovePushKey) {
285
158
  await new RemovePushKey_1.SelectAndRemovePushKey(account).runAsync(ctx);
286
159
  }
287
160
  }
288
161
  async runProjectSpecificActionAsync(ctx, app, targets, buildProfile, action) {
289
162
  var _a;
290
- if (action === ActionType.SetupBuildCredentials) {
163
+ if (action === Actions_1.IosActionType.SetupBuildCredentials) {
291
164
  await new SetupBuildCredentials_1.SetupBuildCredentials({
292
165
  app,
293
166
  targets,
@@ -300,18 +173,18 @@ class ManageIos {
300
173
  return;
301
174
  }
302
175
  const distributionType = await new SelectIosDistributionTypeGraphqlFromBuildProfile_1.SelectIosDistributionTypeGraphqlFromBuildProfile(buildProfile).runAsync(ctx);
303
- if (action === ActionType.SetupBuildCredentialsFromCredentialsJson) {
176
+ if (action === Actions_1.IosActionType.SetupBuildCredentialsFromCredentialsJson) {
304
177
  await new SetupBuildCredentialsFromCredentialsJson_1.SetupBuildCredentialsFromCredentialsJson(app, targets, distributionType).runAsync(ctx);
305
178
  return;
306
179
  }
307
- else if (action === ActionType.UpdateCredentialsJson) {
180
+ else if (action === Actions_1.IosActionType.UpdateCredentialsJson) {
308
181
  await new UpdateCredentialsJson_1.UpdateCredentialsJson(app, targets, distributionType).runAsync(ctx);
309
182
  return;
310
183
  }
311
184
  const target = await this.selectTargetAsync(targets);
312
185
  const appLookupParams = (0, BuildCredentialsUtils_1.getAppLookupParamsFromContext)(ctx, target);
313
186
  switch (action) {
314
- case ActionType.UseExistingDistributionCertificate: {
187
+ case Actions_1.IosActionType.UseExistingDistributionCertificate: {
315
188
  const distCert = await (0, DistributionCertificateUtils_1.selectValidDistributionCertificateAsync)(ctx, appLookupParams);
316
189
  if (!distCert) {
317
190
  return;
@@ -319,7 +192,7 @@ class ManageIos {
319
192
  await this.setupProvisioningProfileWithSpecificDistCertAsync(ctx, appLookupParams, distCert, distributionType);
320
193
  return;
321
194
  }
322
- case ActionType.CreateDistributionCertificate: {
195
+ case Actions_1.IosActionType.CreateDistributionCertificate: {
323
196
  const distCert = await new CreateDistributionCertificate_1.CreateDistributionCertificate(appLookupParams.account).runAsync(ctx);
324
197
  const confirm = await (0, prompts_1.confirmAsync)({
325
198
  message: `Do you want ${appLookupParams.projectName} to use the new Distribution Certificate?`,
@@ -329,7 +202,7 @@ class ManageIos {
329
202
  }
330
203
  return;
331
204
  }
332
- case ActionType.RemoveProvisioningProfile: {
205
+ case Actions_1.IosActionType.RemoveProvisioningProfile: {
333
206
  const iosAppCredentials = await ctx.ios.getIosAppCredentialsWithCommonFieldsAsync(appLookupParams);
334
207
  const provisioningProfile = (_a = iosAppCredentials === null || iosAppCredentials === void 0 ? void 0 : iosAppCredentials.iosAppBuildCredentialsList.find(buildCredentials => buildCredentials.iosDistributionType === distributionType)) === null || _a === void 0 ? void 0 : _a.provisioningProfile;
335
208
  if (!provisioningProfile) {
@@ -344,7 +217,7 @@ class ManageIos {
344
217
  }
345
218
  return;
346
219
  }
347
- case ActionType.SetupPushKey: {
220
+ case Actions_1.IosActionType.SetupPushKey: {
348
221
  const setupPushKeyAction = await new SetupPushKey_1.SetupPushKey(appLookupParams);
349
222
  const isPushKeySetup = await setupPushKeyAction.isPushKeySetupAsync(ctx);
350
223
  if (isPushKeySetup) {
@@ -355,7 +228,7 @@ class ManageIos {
355
228
  }
356
229
  return;
357
230
  }
358
- case ActionType.CreatePushKey: {
231
+ case Actions_1.IosActionType.CreatePushKey: {
359
232
  const pushKey = await new CreatePushKey_1.CreatePushKey(appLookupParams.account).runAsync(ctx);
360
233
  const confirm = await (0, prompts_1.confirmAsync)({
361
234
  message: `Do you want ${appLookupParams.projectName} to use the new Push Key?`,
@@ -365,7 +238,7 @@ class ManageIos {
365
238
  }
366
239
  return;
367
240
  }
368
- case ActionType.UseExistingPushKey: {
241
+ case Actions_1.IosActionType.UseExistingPushKey: {
369
242
  const selectedPushKey = await (0, PushKeyUtils_1.selectPushKeyAsync)(ctx, appLookupParams.account);
370
243
  if (selectedPushKey) {
371
244
  await new AssignPushKey_1.AssignPushKey(appLookupParams).runAsync(ctx, selectedPushKey);
@@ -1,4 +1,10 @@
1
- import { CombinedError as GraphqlError, OperationResult } from '@urql/core';
2
- export declare const graphqlClient: import("@urql/core").Client;
1
+ import { Client, CombinedError as GraphqlError, OperationContext, OperationResult, PromisifiedSource, TypedDocumentNode } from '@urql/core';
2
+ import { DocumentNode } from 'graphql';
3
+ export declare const graphqlClient: StricterClient;
4
+ export interface StricterClient extends Client {
5
+ query<Data = any, Variables extends object = {}>(query: DocumentNode | TypedDocumentNode<Data, Variables> | string, variables: Variables | undefined, context: Partial<OperationContext> & {
6
+ additionalTypenames: string[];
7
+ }): PromisifiedSource<OperationResult<Data, Variables>>;
8
+ }
3
9
  export declare function withErrorHandlingAsync<T>(promise: Promise<OperationResult<T>>): Promise<T>;
4
10
  export { GraphqlError };