eas-cli 2.3.0 → 2.4.1

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 (348) hide show
  1. package/README.md +47 -47
  2. package/build/ApiV2Error.d.ts +15 -0
  3. package/build/ApiV2Error.js +14 -0
  4. package/build/api.d.ts +10 -16
  5. package/build/api.js +52 -59
  6. package/build/branch/queries.d.ts +3 -2
  7. package/build/branch/queries.js +7 -7
  8. package/build/build/android/build.js +3 -3
  9. package/build/build/android/syncProjectConfiguration.d.ts +2 -1
  10. package/build/build/android/syncProjectConfiguration.js +2 -2
  11. package/build/build/android/version.d.ts +2 -1
  12. package/build/build/android/version.js +4 -4
  13. package/build/build/build.d.ts +2 -1
  14. package/build/build/build.js +5 -5
  15. package/build/build/context.d.ts +2 -0
  16. package/build/build/createContext.d.ts +3 -1
  17. package/build/build/createContext.js +4 -2
  18. package/build/build/ios/build.js +3 -3
  19. package/build/build/ios/syncProjectConfiguration.d.ts +2 -1
  20. package/build/build/ios/syncProjectConfiguration.js +2 -2
  21. package/build/build/ios/version.d.ts +2 -1
  22. package/build/build/ios/version.js +4 -4
  23. package/build/build/local.js +1 -1
  24. package/build/build/queries.d.ts +2 -1
  25. package/build/build/queries.js +3 -3
  26. package/build/build/runBuildAndSubmit.d.ts +2 -1
  27. package/build/build/runBuildAndSubmit.js +9 -6
  28. package/build/channel/queries.d.ts +4 -3
  29. package/build/channel/queries.js +13 -13
  30. package/build/commandUtils/EasCommand.d.ts +24 -3
  31. package/build/commandUtils/EasCommand.js +36 -6
  32. package/build/commandUtils/context/ContextField.d.ts +2 -0
  33. package/build/commandUtils/context/DynamicProjectConfigContextField.d.ts +1 -1
  34. package/build/commandUtils/context/DynamicProjectConfigContextField.js +2 -2
  35. package/build/commandUtils/context/LoggedInContextField.d.ts +12 -0
  36. package/build/commandUtils/context/LoggedInContextField.js +15 -0
  37. package/build/commandUtils/context/MaybeLoggedInContextField.d.ts +12 -0
  38. package/build/commandUtils/context/MaybeLoggedInContextField.js +17 -0
  39. package/build/commandUtils/context/OptionalProjectConfigContextField.d.ts +1 -1
  40. package/build/commandUtils/context/OptionalProjectConfigContextField.js +2 -2
  41. package/build/commandUtils/context/ProjectConfigContextField.d.ts +1 -1
  42. package/build/commandUtils/context/ProjectConfigContextField.js +2 -2
  43. package/build/commandUtils/context/SessionManagementContextField.d.ts +5 -0
  44. package/build/commandUtils/context/SessionManagementContextField.js +10 -0
  45. package/build/commandUtils/context/contextUtils/createGraphqlClient.d.ts +11 -0
  46. package/build/commandUtils/context/contextUtils/createGraphqlClient.js +43 -0
  47. package/build/commandUtils/context/contextUtils/getProjectIdAsync.d.ts +2 -1
  48. package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +11 -7
  49. package/build/commands/account/login.d.ts +3 -0
  50. package/build/commands/account/login.js +7 -2
  51. package/build/commands/account/logout.d.ts +3 -0
  52. package/build/commands/account/logout.js +7 -2
  53. package/build/commands/account/view.d.ts +3 -0
  54. package/build/commands/account/view.js +8 -3
  55. package/build/commands/branch/create.d.ts +3 -1
  56. package/build/commands/branch/create.js +6 -5
  57. package/build/commands/branch/delete.d.ts +1 -0
  58. package/build/commands/branch/delete.js +10 -9
  59. package/build/commands/branch/list.d.ts +1 -0
  60. package/build/commands/branch/list.js +3 -2
  61. package/build/commands/branch/rename.d.ts +1 -0
  62. package/build/commands/branch/rename.js +6 -5
  63. package/build/commands/branch/view.d.ts +1 -0
  64. package/build/commands/branch/view.js +4 -3
  65. package/build/commands/build/cancel.d.ts +3 -1
  66. package/build/commands/build/cancel.js +14 -13
  67. package/build/commands/build/configure.d.ts +1 -0
  68. package/build/commands/build/configure.js +4 -3
  69. package/build/commands/build/index.d.ts +1 -1
  70. package/build/commands/build/index.js +3 -3
  71. package/build/commands/build/inspect.d.ts +1 -1
  72. package/build/commands/build/inspect.js +2 -2
  73. package/build/commands/build/list.d.ts +1 -0
  74. package/build/commands/build/list.js +4 -3
  75. package/build/commands/build/version/set.d.ts +1 -1
  76. package/build/commands/build/version/set.js +4 -4
  77. package/build/commands/build/version/sync.d.ts +1 -1
  78. package/build/commands/build/version/sync.js +2 -2
  79. package/build/commands/build/view.d.ts +1 -0
  80. package/build/commands/build/view.js +5 -4
  81. package/build/commands/channel/create.d.ts +3 -1
  82. package/build/commands/channel/create.js +8 -7
  83. package/build/commands/channel/delete.d.ts +1 -0
  84. package/build/commands/channel/delete.js +7 -6
  85. package/build/commands/channel/edit.d.ts +3 -1
  86. package/build/commands/channel/edit.js +12 -8
  87. package/build/commands/channel/list.d.ts +1 -0
  88. package/build/commands/channel/list.js +3 -2
  89. package/build/commands/channel/rollout.d.ts +1 -0
  90. package/build/commands/channel/rollout.js +15 -14
  91. package/build/commands/channel/view.d.ts +1 -0
  92. package/build/commands/channel/view.js +4 -3
  93. package/build/commands/credentials.d.ts +1 -1
  94. package/build/commands/credentials.js +2 -2
  95. package/build/commands/device/create.d.ts +1 -1
  96. package/build/commands/device/create.js +2 -1
  97. package/build/commands/device/delete.d.ts +3 -1
  98. package/build/commands/device/delete.js +9 -8
  99. package/build/commands/device/list.d.ts +1 -0
  100. package/build/commands/device/list.js +5 -4
  101. package/build/commands/device/view.d.ts +1 -0
  102. package/build/commands/device/view.js +4 -3
  103. package/build/commands/metadata/pull.d.ts +1 -1
  104. package/build/commands/metadata/pull.js +2 -1
  105. package/build/commands/metadata/push.d.ts +1 -1
  106. package/build/commands/metadata/push.js +2 -1
  107. package/build/commands/open.d.ts +1 -0
  108. package/build/commands/open.js +3 -2
  109. package/build/commands/project/info.d.ts +1 -0
  110. package/build/commands/project/info.js +5 -4
  111. package/build/commands/project/init.d.ts +1 -1
  112. package/build/commands/project/init.js +5 -5
  113. package/build/commands/secret/create.d.ts +1 -0
  114. package/build/commands/secret/create.js +10 -9
  115. package/build/commands/secret/delete.d.ts +1 -0
  116. package/build/commands/secret/delete.js +4 -3
  117. package/build/commands/secret/list.d.ts +1 -0
  118. package/build/commands/secret/list.js +3 -2
  119. package/build/commands/submit.d.ts +1 -1
  120. package/build/commands/submit.js +4 -3
  121. package/build/commands/update/configure.d.ts +1 -0
  122. package/build/commands/update/configure.js +4 -3
  123. package/build/commands/update/delete.d.ts +3 -0
  124. package/build/commands/update/delete.js +9 -3
  125. package/build/commands/update/index.d.ts +3 -1
  126. package/build/commands/update/index.js +23 -17
  127. package/build/commands/update/list.d.ts +1 -0
  128. package/build/commands/update/list.js +6 -5
  129. package/build/commands/update/view.d.ts +3 -0
  130. package/build/commands/update/view.js +7 -1
  131. package/build/commands/webhook/create.d.ts +1 -0
  132. package/build/commands/webhook/create.js +3 -2
  133. package/build/commands/webhook/delete.d.ts +1 -0
  134. package/build/commands/webhook/delete.js +7 -6
  135. package/build/commands/webhook/list.d.ts +1 -0
  136. package/build/commands/webhook/list.js +4 -3
  137. package/build/commands/webhook/update.d.ts +3 -0
  138. package/build/commands/webhook/update.js +8 -2
  139. package/build/commands/webhook/view.d.ts +3 -0
  140. package/build/commands/webhook/view.js +7 -1
  141. package/build/credentials/android/actions/AssignFcm.js +2 -2
  142. package/build/credentials/android/actions/AssignGoogleServiceAccountKey.js +2 -2
  143. package/build/credentials/android/actions/BuildCredentialsUtils.js +12 -12
  144. package/build/credentials/android/actions/CreateFcm.js +1 -1
  145. package/build/credentials/android/actions/CreateGoogleServiceAccountKey.js +1 -1
  146. package/build/credentials/android/actions/CreateKeystore.js +4 -4
  147. package/build/credentials/android/actions/RemoveFcm.js +2 -2
  148. package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.js +2 -2
  149. package/build/credentials/android/actions/RemoveKeystore.js +1 -1
  150. package/build/credentials/android/actions/SetUpBuildCredentials.js +3 -3
  151. package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.js +3 -3
  152. package/build/credentials/android/actions/SetUpGoogleServiceAccountKey.js +3 -3
  153. package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.js +1 -1
  154. package/build/credentials/android/api/GraphqlClient.d.ts +19 -18
  155. package/build/credentials/android/api/GraphqlClient.js +45 -45
  156. package/build/credentials/android/api/graphql/mutations/AndroidAppBuildCredentialsMutation.d.ts +3 -2
  157. package/build/credentials/android/api/graphql/mutations/AndroidAppBuildCredentialsMutation.js +4 -4
  158. package/build/credentials/android/api/graphql/mutations/AndroidAppCredentialsMutation.d.ts +4 -3
  159. package/build/credentials/android/api/graphql/mutations/AndroidAppCredentialsMutation.js +6 -6
  160. package/build/credentials/android/api/graphql/mutations/AndroidFcmMutation.d.ts +3 -2
  161. package/build/credentials/android/api/graphql/mutations/AndroidFcmMutation.js +4 -4
  162. package/build/credentials/android/api/graphql/mutations/AndroidKeystoreMutation.d.ts +3 -2
  163. package/build/credentials/android/api/graphql/mutations/AndroidKeystoreMutation.js +4 -4
  164. package/build/credentials/android/api/graphql/mutations/GoogleServiceAccountKeyMutation.d.ts +3 -2
  165. package/build/credentials/android/api/graphql/mutations/GoogleServiceAccountKeyMutation.js +4 -4
  166. package/build/credentials/android/api/graphql/queries/AndroidAppCredentialsQuery.d.ts +2 -1
  167. package/build/credentials/android/api/graphql/queries/AndroidAppCredentialsQuery.js +2 -2
  168. package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.d.ts +2 -1
  169. package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.js +2 -2
  170. package/build/credentials/android/utils/keystore.d.ts +2 -1
  171. package/build/credentials/android/utils/keystore.js +6 -6
  172. package/build/credentials/context.d.ts +3 -0
  173. package/build/credentials/context.js +1 -0
  174. package/build/credentials/credentialsJson/update.js +1 -1
  175. package/build/credentials/ios/actions/AppleTeamUtils.js +1 -1
  176. package/build/credentials/ios/actions/AscApiKeyUtils.js +1 -1
  177. package/build/credentials/ios/actions/AssignAscApiKey.js +2 -2
  178. package/build/credentials/ios/actions/AssignPushKey.js +2 -2
  179. package/build/credentials/ios/actions/BuildCredentialsUtils.js +5 -5
  180. package/build/credentials/ios/actions/ConfigureProvisioningProfile.js +1 -1
  181. package/build/credentials/ios/actions/CreateAscApiKey.js +1 -1
  182. package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -1
  183. package/build/credentials/ios/actions/CreateProvisioningProfile.js +2 -2
  184. package/build/credentials/ios/actions/CreatePushKey.js +1 -1
  185. package/build/credentials/ios/actions/DistributionCertificateUtils.js +2 -2
  186. package/build/credentials/ios/actions/PushKeyUtils.js +1 -1
  187. package/build/credentials/ios/actions/RemoveAscApiKey.js +1 -1
  188. package/build/credentials/ios/actions/RemoveDistributionCertificate.js +1 -1
  189. package/build/credentials/ios/actions/RemoveProvisioningProfile.js +1 -1
  190. package/build/credentials/ios/actions/RemovePushKey.js +1 -1
  191. package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +8 -8
  192. package/build/credentials/ios/actions/SetUpAscApiKey.js +2 -2
  193. package/build/credentials/ios/actions/SetUpDistributionCertificate.js +2 -2
  194. package/build/credentials/ios/actions/SetUpProvisioningProfile.js +1 -1
  195. package/build/credentials/ios/actions/SetUpPushKey.js +4 -4
  196. package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.js +5 -5
  197. package/build/credentials/ios/api/GraphqlClient.d.ts +25 -24
  198. package/build/credentials/ios/api/GraphqlClient.js +73 -73
  199. package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.d.ts +3 -2
  200. package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.js +4 -4
  201. package/build/credentials/ios/api/graphql/mutations/AppleAppIdentifierMutation.d.ts +2 -1
  202. package/build/credentials/ios/api/graphql/mutations/AppleAppIdentifierMutation.js +2 -2
  203. package/build/credentials/ios/api/graphql/mutations/AppleDeviceMutation.d.ts +3 -2
  204. package/build/credentials/ios/api/graphql/mutations/AppleDeviceMutation.js +4 -4
  205. package/build/credentials/ios/api/graphql/mutations/AppleDeviceRegistrationRequestMutation.d.ts +2 -1
  206. package/build/credentials/ios/api/graphql/mutations/AppleDeviceRegistrationRequestMutation.js +2 -2
  207. package/build/credentials/ios/api/graphql/mutations/AppleDistributionCertificateMutation.d.ts +3 -2
  208. package/build/credentials/ios/api/graphql/mutations/AppleDistributionCertificateMutation.js +4 -4
  209. package/build/credentials/ios/api/graphql/mutations/AppleProvisioningProfileMutation.d.ts +4 -3
  210. package/build/credentials/ios/api/graphql/mutations/AppleProvisioningProfileMutation.js +6 -6
  211. package/build/credentials/ios/api/graphql/mutations/ApplePushKeyMutation.d.ts +3 -2
  212. package/build/credentials/ios/api/graphql/mutations/ApplePushKeyMutation.js +4 -4
  213. package/build/credentials/ios/api/graphql/mutations/AppleTeamMutation.d.ts +2 -1
  214. package/build/credentials/ios/api/graphql/mutations/AppleTeamMutation.js +2 -2
  215. package/build/credentials/ios/api/graphql/mutations/IosAppBuildCredentialsMutation.d.ts +4 -3
  216. package/build/credentials/ios/api/graphql/mutations/IosAppBuildCredentialsMutation.js +6 -6
  217. package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.d.ts +4 -3
  218. package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.js +6 -6
  219. package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.d.ts +2 -1
  220. package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.js +2 -2
  221. package/build/credentials/ios/api/graphql/queries/AppleAppIdentifierQuery.d.ts +2 -1
  222. package/build/credentials/ios/api/graphql/queries/AppleAppIdentifierQuery.js +2 -2
  223. package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.d.ts +4 -3
  224. package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.js +6 -6
  225. package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.d.ts +3 -2
  226. package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.js +4 -4
  227. package/build/credentials/ios/api/graphql/queries/AppleProvisioningProfileQuery.d.ts +2 -1
  228. package/build/credentials/ios/api/graphql/queries/AppleProvisioningProfileQuery.js +2 -2
  229. package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.d.ts +2 -1
  230. package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.js +2 -2
  231. package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.d.ts +3 -2
  232. package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.js +4 -4
  233. package/build/credentials/ios/api/graphql/queries/IosAppBuildCredentialsQuery.d.ts +2 -1
  234. package/build/credentials/ios/api/graphql/queries/IosAppBuildCredentialsQuery.js +2 -2
  235. package/build/credentials/ios/api/graphql/queries/IosAppCredentialsQuery.d.ts +3 -2
  236. package/build/credentials/ios/api/graphql/queries/IosAppCredentialsQuery.js +4 -4
  237. package/build/credentials/manager/HelperActions.d.ts +2 -0
  238. package/build/credentials/manager/ManageAndroid.js +4 -3
  239. package/build/credentials/manager/ManageIos.js +4 -3
  240. package/build/credentials/manager/SelectAndroidBuildCredentials.js +2 -2
  241. package/build/credentials/manager/SelectPlatform.d.ts +3 -1
  242. package/build/credentials/manager/SelectPlatform.js +2 -1
  243. package/build/devices/actions/create/action.d.ts +3 -1
  244. package/build/devices/actions/create/action.js +5 -4
  245. package/build/devices/actions/create/developerPortalMethod.d.ts +2 -1
  246. package/build/devices/actions/create/developerPortalMethod.js +9 -9
  247. package/build/devices/actions/create/inputMethod.d.ts +2 -1
  248. package/build/devices/actions/create/inputMethod.js +4 -4
  249. package/build/devices/actions/create/registrationUrlMethod.d.ts +2 -1
  250. package/build/devices/actions/create/registrationUrlMethod.js +4 -4
  251. package/build/devices/context.d.ts +4 -1
  252. package/build/devices/context.js +2 -1
  253. package/build/devices/manager.d.ts +3 -1
  254. package/build/devices/manager.js +9 -8
  255. package/build/devices/queries.d.ts +4 -3
  256. package/build/devices/queries.js +7 -7
  257. package/build/graphql/client.d.ts +1 -8
  258. package/build/graphql/client.js +1 -39
  259. package/build/graphql/mutations/AppMutation.d.ts +2 -1
  260. package/build/graphql/mutations/AppMutation.js +2 -2
  261. package/build/graphql/mutations/AppVersionMutation.d.ts +2 -1
  262. package/build/graphql/mutations/AppVersionMutation.js +2 -2
  263. package/build/graphql/mutations/BuildMutation.d.ts +3 -2
  264. package/build/graphql/mutations/BuildMutation.js +4 -4
  265. package/build/graphql/mutations/EnvironmentSecretMutation.d.ts +4 -3
  266. package/build/graphql/mutations/EnvironmentSecretMutation.js +6 -6
  267. package/build/graphql/mutations/KeystoreGenerationUrlMutation.d.ts +2 -1
  268. package/build/graphql/mutations/KeystoreGenerationUrlMutation.js +2 -2
  269. package/build/graphql/mutations/PublishMutation.d.ts +4 -3
  270. package/build/graphql/mutations/PublishMutation.js +6 -6
  271. package/build/graphql/mutations/SubmissionMutation.d.ts +3 -2
  272. package/build/graphql/mutations/SubmissionMutation.js +4 -4
  273. package/build/graphql/mutations/UploadSessionMutation.d.ts +2 -1
  274. package/build/graphql/mutations/UploadSessionMutation.js +2 -2
  275. package/build/graphql/mutations/WebhookMutation.d.ts +4 -3
  276. package/build/graphql/mutations/WebhookMutation.js +6 -6
  277. package/build/graphql/queries/AppQuery.d.ts +3 -2
  278. package/build/graphql/queries/AppQuery.js +4 -4
  279. package/build/graphql/queries/AppVersionQuery.d.ts +2 -1
  280. package/build/graphql/queries/AppVersionQuery.js +2 -2
  281. package/build/graphql/queries/BranchQuery.d.ts +4 -3
  282. package/build/graphql/queries/BranchQuery.js +6 -6
  283. package/build/graphql/queries/BuildQuery.d.ts +4 -3
  284. package/build/graphql/queries/BuildQuery.js +6 -6
  285. package/build/graphql/queries/ChannelQuery.d.ts +3 -2
  286. package/build/graphql/queries/ChannelQuery.js +4 -4
  287. package/build/graphql/queries/EnvironmentSecretsQuery.d.ts +3 -2
  288. package/build/graphql/queries/EnvironmentSecretsQuery.js +4 -4
  289. package/build/graphql/queries/PublishQuery.d.ts +3 -2
  290. package/build/graphql/queries/PublishQuery.js +4 -4
  291. package/build/graphql/queries/StatuspageServiceQuery.d.ts +2 -1
  292. package/build/graphql/queries/StatuspageServiceQuery.js +2 -2
  293. package/build/graphql/queries/SubmissionQuery.d.ts +3 -2
  294. package/build/graphql/queries/SubmissionQuery.js +4 -4
  295. package/build/graphql/queries/UpdateQuery.d.ts +4 -3
  296. package/build/graphql/queries/UpdateQuery.js +6 -6
  297. package/build/graphql/queries/UserQuery.d.ts +2 -1
  298. package/build/graphql/queries/UserQuery.js +2 -2
  299. package/build/graphql/queries/WebhookQuery.d.ts +3 -2
  300. package/build/graphql/queries/WebhookQuery.js +4 -4
  301. package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.d.ts +3 -2
  302. package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.js +5 -5
  303. package/build/project/projectUtils.d.ts +3 -2
  304. package/build/project/projectUtils.js +4 -4
  305. package/build/project/publish.d.ts +3 -2
  306. package/build/project/publish.js +7 -7
  307. package/build/submit/ArchiveSource.d.ts +2 -1
  308. package/build/submit/ArchiveSource.js +30 -30
  309. package/build/submit/android/AndroidSubmitter.js +2 -2
  310. package/build/submit/context.d.ts +3 -0
  311. package/build/submit/context.js +3 -2
  312. package/build/submit/ios/IosSubmitter.js +2 -2
  313. package/build/submit/submit.d.ts +2 -1
  314. package/build/submit/submit.js +2 -2
  315. package/build/submit/utils/builds.d.ts +2 -1
  316. package/build/submit/utils/builds.js +2 -2
  317. package/build/submit/utils/errors.d.ts +3 -0
  318. package/build/submit/utils/errors.js +15 -67
  319. package/build/submit/utils/files.d.ts +2 -1
  320. package/build/submit/utils/files.js +2 -2
  321. package/build/submit/utils/wait.d.ts +2 -1
  322. package/build/submit/utils/wait.js +2 -2
  323. package/build/update/android/UpdatesModule.d.ts +2 -1
  324. package/build/update/android/UpdatesModule.js +2 -2
  325. package/build/update/ios/UpdatesModule.d.ts +2 -1
  326. package/build/update/ios/UpdatesModule.js +2 -2
  327. package/build/update/queries.d.ts +4 -3
  328. package/build/update/queries.js +22 -12
  329. package/build/uploads.d.ts +2 -1
  330. package/build/uploads.js +2 -2
  331. package/build/user/SessionManager.d.ts +70 -0
  332. package/build/user/SessionManager.js +258 -0
  333. package/build/user/User.d.ts +0 -9
  334. package/build/user/User.js +1 -60
  335. package/build/user/fetchSessionSecretAndUser.d.ts +9 -0
  336. package/build/user/fetchSessionSecretAndUser.js +43 -0
  337. package/build/utils/statuspageService.d.ts +2 -1
  338. package/build/utils/statuspageService.js +4 -4
  339. package/oclif.manifest.json +1 -1
  340. package/package.json +2 -2
  341. package/build/commandUtils/context/ActorContextField.d.ts +0 -5
  342. package/build/commandUtils/context/ActorContextField.js +0 -11
  343. package/build/commandUtils/context/contextUtils/ensureLoggedInAsync.d.ts +0 -21
  344. package/build/commandUtils/context/contextUtils/ensureLoggedInAsync.js +0 -75
  345. package/build/user/otp.d.ts +0 -29
  346. package/build/user/otp.js +0 -119
  347. package/build/user/sessionStorage.d.ts +0 -11
  348. package/build/user/sessionStorage.js +0 -36
@@ -24,82 +24,82 @@ const AppleProvisioningProfileQuery_1 = require("./graphql/queries/AppleProvisio
24
24
  const ApplePushKeyQuery_1 = require("./graphql/queries/ApplePushKeyQuery");
25
25
  const AppleTeamQuery_1 = require("./graphql/queries/AppleTeamQuery");
26
26
  const IosAppCredentialsQuery_1 = require("./graphql/queries/IosAppCredentialsQuery");
27
- async function getAppAsync(appLookupParams) {
27
+ async function getAppAsync(graphqlClient, appLookupParams) {
28
28
  const projectFullName = formatProjectFullName(appLookupParams);
29
- return await AppQuery_1.AppQuery.byFullNameAsync(projectFullName);
29
+ return await AppQuery_1.AppQuery.byFullNameAsync(graphqlClient, projectFullName);
30
30
  }
31
- async function createOrUpdateIosAppBuildCredentialsAsync(appLookupParams, { appleTeam, appleAppIdentifierId, iosDistributionType, appleProvisioningProfileId, appleDistributionCertificateId, }) {
31
+ async function createOrUpdateIosAppBuildCredentialsAsync(graphqlClient, appLookupParams, { appleTeam, appleAppIdentifierId, iosDistributionType, appleProvisioningProfileId, appleDistributionCertificateId, }) {
32
32
  var _a;
33
- const iosAppCredentials = await createOrGetExistingIosAppCredentialsWithBuildCredentialsAsync(appLookupParams, {
33
+ const iosAppCredentials = await createOrGetExistingIosAppCredentialsWithBuildCredentialsAsync(graphqlClient, appLookupParams, {
34
34
  appleTeam,
35
35
  appleAppIdentifierId,
36
36
  iosDistributionType,
37
37
  });
38
38
  const iosAppBuildCredentials = (_a = iosAppCredentials.iosAppBuildCredentialsList) === null || _a === void 0 ? void 0 : _a[0];
39
39
  if (!iosAppBuildCredentials) {
40
- return await IosAppBuildCredentialsMutation_1.IosAppBuildCredentialsMutation.createIosAppBuildCredentialsAsync({
40
+ return await IosAppBuildCredentialsMutation_1.IosAppBuildCredentialsMutation.createIosAppBuildCredentialsAsync(graphqlClient, {
41
41
  iosDistributionType,
42
42
  distributionCertificateId: appleDistributionCertificateId,
43
43
  provisioningProfileId: appleProvisioningProfileId,
44
44
  }, iosAppCredentials.id);
45
45
  }
46
46
  else {
47
- await IosAppBuildCredentialsMutation_1.IosAppBuildCredentialsMutation.setDistributionCertificateAsync(iosAppBuildCredentials.id, appleDistributionCertificateId);
48
- return await IosAppBuildCredentialsMutation_1.IosAppBuildCredentialsMutation.setProvisioningProfileAsync(iosAppBuildCredentials.id, appleProvisioningProfileId);
47
+ await IosAppBuildCredentialsMutation_1.IosAppBuildCredentialsMutation.setDistributionCertificateAsync(graphqlClient, iosAppBuildCredentials.id, appleDistributionCertificateId);
48
+ return await IosAppBuildCredentialsMutation_1.IosAppBuildCredentialsMutation.setProvisioningProfileAsync(graphqlClient, iosAppBuildCredentials.id, appleProvisioningProfileId);
49
49
  }
50
50
  }
51
51
  exports.createOrUpdateIosAppBuildCredentialsAsync = createOrUpdateIosAppBuildCredentialsAsync;
52
- async function getIosAppCredentialsWithBuildCredentialsAsync(appLookupParams, { iosDistributionType }) {
52
+ async function getIosAppCredentialsWithBuildCredentialsAsync(graphqlClient, appLookupParams, { iosDistributionType }) {
53
53
  const { account, bundleIdentifier } = appLookupParams;
54
- const appleAppIdentifier = await AppleAppIdentifierQuery_1.AppleAppIdentifierQuery.byBundleIdentifierAsync(account.name, bundleIdentifier);
54
+ const appleAppIdentifier = await AppleAppIdentifierQuery_1.AppleAppIdentifierQuery.byBundleIdentifierAsync(graphqlClient, account.name, bundleIdentifier);
55
55
  if (!appleAppIdentifier) {
56
56
  return null;
57
57
  }
58
58
  const projectFullName = formatProjectFullName(appLookupParams);
59
- return await IosAppCredentialsQuery_1.IosAppCredentialsQuery.withBuildCredentialsByAppIdentifierIdAsync(projectFullName, {
59
+ return await IosAppCredentialsQuery_1.IosAppCredentialsQuery.withBuildCredentialsByAppIdentifierIdAsync(graphqlClient, projectFullName, {
60
60
  appleAppIdentifierId: appleAppIdentifier.id,
61
61
  iosDistributionType,
62
62
  });
63
63
  }
64
64
  exports.getIosAppCredentialsWithBuildCredentialsAsync = getIosAppCredentialsWithBuildCredentialsAsync;
65
- async function getIosAppCredentialsWithCommonFieldsAsync(appLookupParams) {
65
+ async function getIosAppCredentialsWithCommonFieldsAsync(graphqlClient, appLookupParams) {
66
66
  const { account, bundleIdentifier } = appLookupParams;
67
- const appleAppIdentifier = await AppleAppIdentifierQuery_1.AppleAppIdentifierQuery.byBundleIdentifierAsync(account.name, bundleIdentifier);
67
+ const appleAppIdentifier = await AppleAppIdentifierQuery_1.AppleAppIdentifierQuery.byBundleIdentifierAsync(graphqlClient, account.name, bundleIdentifier);
68
68
  if (!appleAppIdentifier) {
69
69
  return null;
70
70
  }
71
71
  const projectFullName = formatProjectFullName(appLookupParams);
72
- return await IosAppCredentialsQuery_1.IosAppCredentialsQuery.withCommonFieldsByAppIdentifierIdAsync(projectFullName, {
72
+ return await IosAppCredentialsQuery_1.IosAppCredentialsQuery.withCommonFieldsByAppIdentifierIdAsync(graphqlClient, projectFullName, {
73
73
  appleAppIdentifierId: appleAppIdentifier.id,
74
74
  });
75
75
  }
76
76
  exports.getIosAppCredentialsWithCommonFieldsAsync = getIosAppCredentialsWithCommonFieldsAsync;
77
- async function createOrGetIosAppCredentialsWithCommonFieldsAsync(appLookupParams, { appleTeam, }) {
78
- const maybeIosAppCredentials = await getIosAppCredentialsWithCommonFieldsAsync(appLookupParams);
77
+ async function createOrGetIosAppCredentialsWithCommonFieldsAsync(graphqlClient, appLookupParams, { appleTeam, }) {
78
+ const maybeIosAppCredentials = await getIosAppCredentialsWithCommonFieldsAsync(graphqlClient, appLookupParams);
79
79
  if (maybeIosAppCredentials) {
80
80
  return maybeIosAppCredentials;
81
81
  }
82
82
  const [app, appleAppIdentifier] = await Promise.all([
83
- getAppAsync(appLookupParams),
84
- createOrGetExistingAppleAppIdentifierAsync(appLookupParams, appleTeam !== null && appleTeam !== void 0 ? appleTeam : null),
83
+ getAppAsync(graphqlClient, appLookupParams),
84
+ createOrGetExistingAppleAppIdentifierAsync(graphqlClient, appLookupParams, appleTeam !== null && appleTeam !== void 0 ? appleTeam : null),
85
85
  ]);
86
- return await IosAppCredentialsMutation_1.IosAppCredentialsMutation.createIosAppCredentialsAsync({ appleTeamId: appleTeam === null || appleTeam === void 0 ? void 0 : appleTeam.id }, app.id, appleAppIdentifier.id);
86
+ return await IosAppCredentialsMutation_1.IosAppCredentialsMutation.createIosAppCredentialsAsync(graphqlClient, { appleTeamId: appleTeam === null || appleTeam === void 0 ? void 0 : appleTeam.id }, app.id, appleAppIdentifier.id);
87
87
  }
88
88
  exports.createOrGetIosAppCredentialsWithCommonFieldsAsync = createOrGetIosAppCredentialsWithCommonFieldsAsync;
89
- async function updateIosAppCredentialsAsync(appCredentials, { applePushKeyId, ascApiKeyIdForSubmissions, }) {
89
+ async function updateIosAppCredentialsAsync(graphqlClient, appCredentials, { applePushKeyId, ascApiKeyIdForSubmissions, }) {
90
90
  let updatedAppCredentials = appCredentials;
91
91
  if (applePushKeyId) {
92
- updatedAppCredentials = await IosAppCredentialsMutation_1.IosAppCredentialsMutation.setPushKeyAsync(updatedAppCredentials.id, applePushKeyId);
92
+ updatedAppCredentials = await IosAppCredentialsMutation_1.IosAppCredentialsMutation.setPushKeyAsync(graphqlClient, updatedAppCredentials.id, applePushKeyId);
93
93
  }
94
94
  if (ascApiKeyIdForSubmissions) {
95
95
  updatedAppCredentials =
96
- await IosAppCredentialsMutation_1.IosAppCredentialsMutation.setAppStoreConnectApiKeyForSubmissionsAsync(updatedAppCredentials.id, ascApiKeyIdForSubmissions);
96
+ await IosAppCredentialsMutation_1.IosAppCredentialsMutation.setAppStoreConnectApiKeyForSubmissionsAsync(graphqlClient, updatedAppCredentials.id, ascApiKeyIdForSubmissions);
97
97
  }
98
98
  return updatedAppCredentials;
99
99
  }
100
100
  exports.updateIosAppCredentialsAsync = updateIosAppCredentialsAsync;
101
- async function createOrGetExistingIosAppCredentialsWithBuildCredentialsAsync(appLookupParams, { appleTeam, appleAppIdentifierId, iosDistributionType, }) {
102
- const maybeIosAppCredentials = await getIosAppCredentialsWithBuildCredentialsAsync(appLookupParams, {
101
+ async function createOrGetExistingIosAppCredentialsWithBuildCredentialsAsync(graphqlClient, appLookupParams, { appleTeam, appleAppIdentifierId, iosDistributionType, }) {
102
+ const maybeIosAppCredentials = await getIosAppCredentialsWithBuildCredentialsAsync(graphqlClient, appLookupParams, {
103
103
  iosDistributionType,
104
104
  });
105
105
  if (maybeIosAppCredentials) {
@@ -107,29 +107,29 @@ async function createOrGetExistingIosAppCredentialsWithBuildCredentialsAsync(app
107
107
  }
108
108
  else {
109
109
  const [app, appleAppIdentifier] = await Promise.all([
110
- getAppAsync(appLookupParams),
111
- createOrGetExistingAppleAppIdentifierAsync(appLookupParams, appleTeam !== null && appleTeam !== void 0 ? appleTeam : null),
110
+ getAppAsync(graphqlClient, appLookupParams),
111
+ createOrGetExistingAppleAppIdentifierAsync(graphqlClient, appLookupParams, appleTeam !== null && appleTeam !== void 0 ? appleTeam : null),
112
112
  ]);
113
- await IosAppCredentialsMutation_1.IosAppCredentialsMutation.createIosAppCredentialsAsync({ appleTeamId: appleTeam === null || appleTeam === void 0 ? void 0 : appleTeam.id }, app.id, appleAppIdentifier.id);
113
+ await IosAppCredentialsMutation_1.IosAppCredentialsMutation.createIosAppCredentialsAsync(graphqlClient, { appleTeamId: appleTeam === null || appleTeam === void 0 ? void 0 : appleTeam.id }, app.id, appleAppIdentifier.id);
114
114
  const projectFullName = formatProjectFullName(appLookupParams);
115
- return (0, nullthrows_1.default)(await IosAppCredentialsQuery_1.IosAppCredentialsQuery.withBuildCredentialsByAppIdentifierIdAsync(projectFullName, {
115
+ return (0, nullthrows_1.default)(await IosAppCredentialsQuery_1.IosAppCredentialsQuery.withBuildCredentialsByAppIdentifierIdAsync(graphqlClient, projectFullName, {
116
116
  appleAppIdentifierId,
117
117
  iosDistributionType,
118
118
  }));
119
119
  }
120
120
  }
121
- async function createOrGetExistingAppleTeamAsync(account, { appleTeamIdentifier, appleTeamName }) {
122
- const appleTeam = await AppleTeamQuery_1.AppleTeamQuery.getByAppleTeamIdentifierAsync(account.id, appleTeamIdentifier);
121
+ async function createOrGetExistingAppleTeamAsync(graphqlClient, account, { appleTeamIdentifier, appleTeamName }) {
122
+ const appleTeam = await AppleTeamQuery_1.AppleTeamQuery.getByAppleTeamIdentifierAsync(graphqlClient, account.id, appleTeamIdentifier);
123
123
  if (appleTeam) {
124
124
  return appleTeam;
125
125
  }
126
126
  else {
127
- return await AppleTeamMutation_1.AppleTeamMutation.createAppleTeamAsync({ appleTeamIdentifier, appleTeamName }, account.id);
127
+ return await AppleTeamMutation_1.AppleTeamMutation.createAppleTeamAsync(graphqlClient, { appleTeamIdentifier, appleTeamName }, account.id);
128
128
  }
129
129
  }
130
130
  exports.createOrGetExistingAppleTeamAsync = createOrGetExistingAppleTeamAsync;
131
- async function createOrGetExistingAppleAppIdentifierAsync({ account, projectName, bundleIdentifier, parentBundleIdentifier }, appleTeam) {
132
- const appleAppIdentifier = await AppleAppIdentifierQuery_1.AppleAppIdentifierQuery.byBundleIdentifierAsync(account.name, bundleIdentifier);
131
+ async function createOrGetExistingAppleAppIdentifierAsync(graphqlClient, { account, projectName, bundleIdentifier, parentBundleIdentifier }, appleTeam) {
132
+ const appleAppIdentifier = await AppleAppIdentifierQuery_1.AppleAppIdentifierQuery.byBundleIdentifierAsync(graphqlClient, account.name, bundleIdentifier);
133
133
  if (appleAppIdentifier) {
134
134
  return appleAppIdentifier;
135
135
  }
@@ -138,9 +138,9 @@ async function createOrGetExistingAppleAppIdentifierAsync({ account, projectName
138
138
  throw new errors_1.AppleTeamMissingError(`An Apple Team is required for wildcard bundle identifier: ${bundleIdentifier}`);
139
139
  }
140
140
  const parentAppleAppIdentifier = parentBundleIdentifier
141
- ? await createOrGetExistingAppleAppIdentifierAsync({ account, projectName, bundleIdentifier: parentBundleIdentifier }, appleTeam)
141
+ ? await createOrGetExistingAppleAppIdentifierAsync(graphqlClient, { account, projectName, bundleIdentifier: parentBundleIdentifier }, appleTeam)
142
142
  : null;
143
- return await AppleAppIdentifierMutation_1.AppleAppIdentifierMutation.createAppleAppIdentifierAsync({
143
+ return await AppleAppIdentifierMutation_1.AppleAppIdentifierMutation.createAppleAppIdentifierAsync(graphqlClient, {
144
144
  bundleIdentifier,
145
145
  appleTeamId: appleTeam === null || appleTeam === void 0 ? void 0 : appleTeam.id,
146
146
  parentAppleAppId: parentAppleAppIdentifier === null || parentAppleAppIdentifier === void 0 ? void 0 : parentAppleAppIdentifier.id,
@@ -148,52 +148,52 @@ async function createOrGetExistingAppleAppIdentifierAsync({ account, projectName
148
148
  }
149
149
  }
150
150
  exports.createOrGetExistingAppleAppIdentifierAsync = createOrGetExistingAppleAppIdentifierAsync;
151
- async function getDevicesForAppleTeamAsync({ account }, { appleTeamIdentifier }, { useCache = true } = {}) {
152
- return await AppleDeviceQuery_1.AppleDeviceQuery.getAllByAppleTeamIdentifierAsync(account.id, appleTeamIdentifier, {
151
+ async function getDevicesForAppleTeamAsync(graphqlClient, { account }, { appleTeamIdentifier }, { useCache = true } = {}) {
152
+ return await AppleDeviceQuery_1.AppleDeviceQuery.getAllByAppleTeamIdentifierAsync(graphqlClient, account.id, appleTeamIdentifier, {
153
153
  useCache,
154
154
  });
155
155
  }
156
156
  exports.getDevicesForAppleTeamAsync = getDevicesForAppleTeamAsync;
157
- async function createProvisioningProfileAsync({ account }, appleAppIdentifier, appleProvisioningProfileInput) {
158
- return await AppleProvisioningProfileMutation_1.AppleProvisioningProfileMutation.createAppleProvisioningProfileAsync(appleProvisioningProfileInput, account.id, appleAppIdentifier.id);
157
+ async function createProvisioningProfileAsync(graphqlClient, { account }, appleAppIdentifier, appleProvisioningProfileInput) {
158
+ return await AppleProvisioningProfileMutation_1.AppleProvisioningProfileMutation.createAppleProvisioningProfileAsync(graphqlClient, appleProvisioningProfileInput, account.id, appleAppIdentifier.id);
159
159
  }
160
160
  exports.createProvisioningProfileAsync = createProvisioningProfileAsync;
161
- async function getProvisioningProfileAsync(appLookupParams, iosDistributionType, { appleTeam } = { appleTeam: null }) {
161
+ async function getProvisioningProfileAsync(graphqlClient, appLookupParams, iosDistributionType, { appleTeam } = { appleTeam: null }) {
162
162
  const projectFullName = formatProjectFullName(appLookupParams);
163
- const appleAppIdentifier = await createOrGetExistingAppleAppIdentifierAsync(appLookupParams, appleTeam);
164
- return await AppleProvisioningProfileQuery_1.AppleProvisioningProfileQuery.getForAppAsync(projectFullName, {
163
+ const appleAppIdentifier = await createOrGetExistingAppleAppIdentifierAsync(graphqlClient, appLookupParams, appleTeam);
164
+ return await AppleProvisioningProfileQuery_1.AppleProvisioningProfileQuery.getForAppAsync(graphqlClient, projectFullName, {
165
165
  appleAppIdentifierId: appleAppIdentifier.id,
166
166
  iosDistributionType,
167
167
  });
168
168
  }
169
169
  exports.getProvisioningProfileAsync = getProvisioningProfileAsync;
170
- async function updateProvisioningProfileAsync(appleProvisioningProfileId, appleProvisioningProfileInput) {
171
- return await AppleProvisioningProfileMutation_1.AppleProvisioningProfileMutation.updateAppleProvisioningProfileAsync(appleProvisioningProfileId, appleProvisioningProfileInput);
170
+ async function updateProvisioningProfileAsync(graphqlClient, appleProvisioningProfileId, appleProvisioningProfileInput) {
171
+ return await AppleProvisioningProfileMutation_1.AppleProvisioningProfileMutation.updateAppleProvisioningProfileAsync(graphqlClient, appleProvisioningProfileId, appleProvisioningProfileInput);
172
172
  }
173
173
  exports.updateProvisioningProfileAsync = updateProvisioningProfileAsync;
174
- async function deleteProvisioningProfilesAsync(appleProvisioningProfileIds) {
175
- return await AppleProvisioningProfileMutation_1.AppleProvisioningProfileMutation.deleteAppleProvisioningProfilesAsync(appleProvisioningProfileIds);
174
+ async function deleteProvisioningProfilesAsync(graphqlClient, appleProvisioningProfileIds) {
175
+ return await AppleProvisioningProfileMutation_1.AppleProvisioningProfileMutation.deleteAppleProvisioningProfilesAsync(graphqlClient, appleProvisioningProfileIds);
176
176
  }
177
177
  exports.deleteProvisioningProfilesAsync = deleteProvisioningProfilesAsync;
178
- async function getDistributionCertificateForAppAsync(appLookupParams, iosDistributionType, { appleTeam } = { appleTeam: null }) {
178
+ async function getDistributionCertificateForAppAsync(graphqlClient, appLookupParams, iosDistributionType, { appleTeam } = { appleTeam: null }) {
179
179
  const projectFullName = formatProjectFullName(appLookupParams);
180
- const appleAppIdentifier = await createOrGetExistingAppleAppIdentifierAsync(appLookupParams, appleTeam);
181
- return await AppleDistributionCertificateQuery_1.AppleDistributionCertificateQuery.getForAppAsync(projectFullName, {
180
+ const appleAppIdentifier = await createOrGetExistingAppleAppIdentifierAsync(graphqlClient, appLookupParams, appleTeam);
181
+ return await AppleDistributionCertificateQuery_1.AppleDistributionCertificateQuery.getForAppAsync(graphqlClient, projectFullName, {
182
182
  appleAppIdentifierId: appleAppIdentifier.id,
183
183
  iosDistributionType,
184
184
  });
185
185
  }
186
186
  exports.getDistributionCertificateForAppAsync = getDistributionCertificateForAppAsync;
187
- async function getDistributionCertificatesForAccountAsync(account) {
188
- return await AppleDistributionCertificateQuery_1.AppleDistributionCertificateQuery.getAllForAccountAsync(account.name);
187
+ async function getDistributionCertificatesForAccountAsync(graphqlClient, account) {
188
+ return await AppleDistributionCertificateQuery_1.AppleDistributionCertificateQuery.getAllForAccountAsync(graphqlClient, account.name);
189
189
  }
190
190
  exports.getDistributionCertificatesForAccountAsync = getDistributionCertificatesForAccountAsync;
191
- async function createDistributionCertificateAsync(account, distCert) {
192
- const appleTeam = await createOrGetExistingAppleTeamAsync(account, {
191
+ async function createDistributionCertificateAsync(graphqlClient, account, distCert) {
192
+ const appleTeam = await createOrGetExistingAppleTeamAsync(graphqlClient, account, {
193
193
  appleTeamIdentifier: distCert.teamId,
194
194
  appleTeamName: distCert.teamName,
195
195
  });
196
- return await AppleDistributionCertificateMutation_1.AppleDistributionCertificateMutation.createAppleDistributionCertificateAsync({
196
+ return await AppleDistributionCertificateMutation_1.AppleDistributionCertificateMutation.createAppleDistributionCertificateAsync(graphqlClient, {
197
197
  certP12: distCert.certP12,
198
198
  certPassword: distCert.certPassword,
199
199
  certPrivateSigningKey: distCert.certPrivateSigningKey,
@@ -202,45 +202,45 @@ async function createDistributionCertificateAsync(account, distCert) {
202
202
  }, account.id);
203
203
  }
204
204
  exports.createDistributionCertificateAsync = createDistributionCertificateAsync;
205
- async function deleteDistributionCertificateAsync(distributionCertificateId) {
206
- return await AppleDistributionCertificateMutation_1.AppleDistributionCertificateMutation.deleteAppleDistributionCertificateAsync(distributionCertificateId);
205
+ async function deleteDistributionCertificateAsync(graphqlClient, distributionCertificateId) {
206
+ return await AppleDistributionCertificateMutation_1.AppleDistributionCertificateMutation.deleteAppleDistributionCertificateAsync(graphqlClient, distributionCertificateId);
207
207
  }
208
208
  exports.deleteDistributionCertificateAsync = deleteDistributionCertificateAsync;
209
- async function createPushKeyAsync(account, pushKey) {
210
- const appleTeam = await createOrGetExistingAppleTeamAsync(account, {
209
+ async function createPushKeyAsync(graphqlClient, account, pushKey) {
210
+ const appleTeam = await createOrGetExistingAppleTeamAsync(graphqlClient, account, {
211
211
  appleTeamIdentifier: pushKey.teamId,
212
212
  appleTeamName: pushKey.teamName,
213
213
  });
214
- return await ApplePushKeyMutation_1.ApplePushKeyMutation.createApplePushKeyAsync({
214
+ return await ApplePushKeyMutation_1.ApplePushKeyMutation.createApplePushKeyAsync(graphqlClient, {
215
215
  keyP8: pushKey.apnsKeyP8,
216
216
  keyIdentifier: pushKey.apnsKeyId,
217
217
  appleTeamId: appleTeam.id,
218
218
  }, account.id);
219
219
  }
220
220
  exports.createPushKeyAsync = createPushKeyAsync;
221
- async function getPushKeysForAccountAsync(account) {
222
- return await ApplePushKeyQuery_1.ApplePushKeyQuery.getAllForAccountAsync(account.name);
221
+ async function getPushKeysForAccountAsync(graphqlClient, account) {
222
+ return await ApplePushKeyQuery_1.ApplePushKeyQuery.getAllForAccountAsync(graphqlClient, account.name);
223
223
  }
224
224
  exports.getPushKeysForAccountAsync = getPushKeysForAccountAsync;
225
- async function getPushKeyForAppAsync(appLookupParams) {
225
+ async function getPushKeyForAppAsync(graphqlClient, appLookupParams) {
226
226
  var _a;
227
- const maybeIosAppCredentials = await getIosAppCredentialsWithCommonFieldsAsync(appLookupParams);
227
+ const maybeIosAppCredentials = await getIosAppCredentialsWithCommonFieldsAsync(graphqlClient, appLookupParams);
228
228
  return (_a = maybeIosAppCredentials === null || maybeIosAppCredentials === void 0 ? void 0 : maybeIosAppCredentials.pushKey) !== null && _a !== void 0 ? _a : null;
229
229
  }
230
230
  exports.getPushKeyForAppAsync = getPushKeyForAppAsync;
231
- async function deletePushKeyAsync(pushKeyId) {
232
- return await ApplePushKeyMutation_1.ApplePushKeyMutation.deleteApplePushKeyAsync(pushKeyId);
231
+ async function deletePushKeyAsync(graphqlClient, pushKeyId) {
232
+ return await ApplePushKeyMutation_1.ApplePushKeyMutation.deleteApplePushKeyAsync(graphqlClient, pushKeyId);
233
233
  }
234
234
  exports.deletePushKeyAsync = deletePushKeyAsync;
235
- async function createAscApiKeyAsync(account, ascApiKey) {
235
+ async function createAscApiKeyAsync(graphqlClient, account, ascApiKey) {
236
236
  var _a, _b, _c;
237
237
  const maybeAppleTeam = ascApiKey.teamId
238
- ? await createOrGetExistingAppleTeamAsync(account, {
238
+ ? await createOrGetExistingAppleTeamAsync(graphqlClient, account, {
239
239
  appleTeamIdentifier: ascApiKey.teamId,
240
240
  appleTeamName: ascApiKey.teamName,
241
241
  })
242
242
  : null;
243
- return await AppStoreConnectApiKeyMutation_1.AppStoreConnectApiKeyMutation.createAppStoreConnectApiKeyAsync({
243
+ return await AppStoreConnectApiKeyMutation_1.AppStoreConnectApiKeyMutation.createAppStoreConnectApiKeyAsync(graphqlClient, {
244
244
  issuerIdentifier: ascApiKey.issuerId,
245
245
  keyIdentifier: ascApiKey.keyId,
246
246
  keyP8: ascApiKey.keyP8,
@@ -250,18 +250,18 @@ async function createAscApiKeyAsync(account, ascApiKey) {
250
250
  }, account.id);
251
251
  }
252
252
  exports.createAscApiKeyAsync = createAscApiKeyAsync;
253
- async function getAscApiKeysForAccountAsync(account) {
254
- return await AppStoreConnectApiKeyQuery_1.AppStoreConnectApiKeyQuery.getAllForAccountAsync(account.name);
253
+ async function getAscApiKeysForAccountAsync(graphqlClient, account) {
254
+ return await AppStoreConnectApiKeyQuery_1.AppStoreConnectApiKeyQuery.getAllForAccountAsync(graphqlClient, account.name);
255
255
  }
256
256
  exports.getAscApiKeysForAccountAsync = getAscApiKeysForAccountAsync;
257
- async function getAscApiKeyForAppSubmissionsAsync(appLookupParams) {
257
+ async function getAscApiKeyForAppSubmissionsAsync(graphqlClient, appLookupParams) {
258
258
  var _a;
259
- const maybeIosAppCredentials = await getIosAppCredentialsWithCommonFieldsAsync(appLookupParams);
259
+ const maybeIosAppCredentials = await getIosAppCredentialsWithCommonFieldsAsync(graphqlClient, appLookupParams);
260
260
  return (_a = maybeIosAppCredentials === null || maybeIosAppCredentials === void 0 ? void 0 : maybeIosAppCredentials.appStoreConnectApiKeyForSubmissions) !== null && _a !== void 0 ? _a : null;
261
261
  }
262
262
  exports.getAscApiKeyForAppSubmissionsAsync = getAscApiKeyForAppSubmissionsAsync;
263
- async function deleteAscApiKeyAsync(ascApiKeyId) {
264
- return await AppStoreConnectApiKeyMutation_1.AppStoreConnectApiKeyMutation.deleteAppStoreConnectApiKeyAsync(ascApiKeyId);
263
+ async function deleteAscApiKeyAsync(graphqlClient, ascApiKeyId) {
264
+ return await AppStoreConnectApiKeyMutation_1.AppStoreConnectApiKeyMutation.deleteAppStoreConnectApiKeyAsync(graphqlClient, ascApiKeyId);
265
265
  }
266
266
  exports.deleteAscApiKeyAsync = deleteAscApiKeyAsync;
267
267
  function convertUserRoleToGraphqlType(userRole) {
@@ -1,5 +1,6 @@
1
+ import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
1
2
  import { AppStoreConnectApiKeyFragment, AppStoreConnectApiKeyInput } from '../../../../../graphql/generated';
2
3
  export declare const AppStoreConnectApiKeyMutation: {
3
- createAppStoreConnectApiKeyAsync(appStoreConnectApiKeyInput: AppStoreConnectApiKeyInput, accountId: string): Promise<AppStoreConnectApiKeyFragment>;
4
- deleteAppStoreConnectApiKeyAsync(appStoreConnectApiKeyId: string): Promise<void>;
4
+ createAppStoreConnectApiKeyAsync(graphqlClient: ExpoGraphqlClient, appStoreConnectApiKeyInput: AppStoreConnectApiKeyInput, accountId: string): Promise<AppStoreConnectApiKeyFragment>;
5
+ deleteAppStoreConnectApiKeyAsync(graphqlClient: ExpoGraphqlClient, appStoreConnectApiKeyId: string): Promise<void>;
5
6
  };
@@ -8,8 +8,8 @@ const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
8
8
  const client_1 = require("../../../../../graphql/client");
9
9
  const AppStoreConnectApiKey_1 = require("../../../../../graphql/types/credentials/AppStoreConnectApiKey");
10
10
  exports.AppStoreConnectApiKeyMutation = {
11
- async createAppStoreConnectApiKeyAsync(appStoreConnectApiKeyInput, accountId) {
12
- const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
11
+ async createAppStoreConnectApiKeyAsync(graphqlClient, appStoreConnectApiKeyInput, accountId) {
12
+ const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
13
13
  .mutation((0, graphql_tag_1.default) `
14
14
  mutation CreateAppStoreConnectApiKeyMutation(
15
15
  $appStoreConnectApiKeyInput: AppStoreConnectApiKeyInput!
@@ -34,8 +34,8 @@ exports.AppStoreConnectApiKeyMutation = {
34
34
  (0, assert_1.default)(data.appStoreConnectApiKey.createAppStoreConnectApiKey, 'GraphQL: `createAppStoreConnectApiKey` not defined in server response');
35
35
  return data.appStoreConnectApiKey.createAppStoreConnectApiKey;
36
36
  },
37
- async deleteAppStoreConnectApiKeyAsync(appStoreConnectApiKeyId) {
38
- await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
37
+ async deleteAppStoreConnectApiKeyAsync(graphqlClient, appStoreConnectApiKeyId) {
38
+ await (0, client_1.withErrorHandlingAsync)(graphqlClient
39
39
  .mutation((0, graphql_tag_1.default) `
40
40
  mutation DeleteAppStoreConnectApiKeyMutation($appStoreConnectApiKeyId: ID!) {
41
41
  appStoreConnectApiKey {
@@ -1,4 +1,5 @@
1
+ import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
1
2
  import { AppleAppIdentifierFragment, AppleAppIdentifierInput } from '../../../../../graphql/generated';
2
3
  export declare const AppleAppIdentifierMutation: {
3
- createAppleAppIdentifierAsync(appleAppIdentifierInput: AppleAppIdentifierInput, accountId: string): Promise<AppleAppIdentifierFragment>;
4
+ createAppleAppIdentifierAsync(graphqlClient: ExpoGraphqlClient, appleAppIdentifierInput: AppleAppIdentifierInput, accountId: string): Promise<AppleAppIdentifierFragment>;
4
5
  };
@@ -8,8 +8,8 @@ const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
8
8
  const client_1 = require("../../../../../graphql/client");
9
9
  const AppleAppIdentifier_1 = require("../../../../../graphql/types/credentials/AppleAppIdentifier");
10
10
  exports.AppleAppIdentifierMutation = {
11
- async createAppleAppIdentifierAsync(appleAppIdentifierInput, accountId) {
12
- const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
11
+ async createAppleAppIdentifierAsync(graphqlClient, appleAppIdentifierInput, accountId) {
12
+ const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
13
13
  .mutation((0, graphql_tag_1.default) `
14
14
  mutation CreateAppleAppIdentifierMutation(
15
15
  $appleAppIdentifierInput: AppleAppIdentifierInput!
@@ -1,5 +1,6 @@
1
+ import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
1
2
  import { AppleDeviceFragment, AppleDeviceInput } from '../../../../../graphql/generated';
2
3
  export declare const AppleDeviceMutation: {
3
- createAppleDeviceAsync(appleDeviceInput: AppleDeviceInput, accountId: string): Promise<AppleDeviceFragment>;
4
- deleteAppleDeviceAsync(deviceId: string): Promise<string>;
4
+ createAppleDeviceAsync(graphqlClient: ExpoGraphqlClient, appleDeviceInput: AppleDeviceInput, accountId: string): Promise<AppleDeviceFragment>;
5
+ deleteAppleDeviceAsync(graphqlClient: ExpoGraphqlClient, deviceId: string): Promise<string>;
5
6
  };
@@ -7,8 +7,8 @@ const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
7
7
  const client_1 = require("../../../../../graphql/client");
8
8
  const AppleDevice_1 = require("../../../../../graphql/types/credentials/AppleDevice");
9
9
  exports.AppleDeviceMutation = {
10
- async createAppleDeviceAsync(appleDeviceInput, accountId) {
11
- const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
10
+ async createAppleDeviceAsync(graphqlClient, appleDeviceInput, accountId) {
11
+ const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
12
12
  .mutation((0, graphql_tag_1.default) `
13
13
  mutation CreateAppleDeviceMutation(
14
14
  $appleDeviceInput: AppleDeviceInput!
@@ -29,8 +29,8 @@ exports.AppleDeviceMutation = {
29
29
  .toPromise());
30
30
  return data.appleDevice.createAppleDevice;
31
31
  },
32
- async deleteAppleDeviceAsync(deviceId) {
33
- const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
32
+ async deleteAppleDeviceAsync(graphqlClient, deviceId) {
33
+ const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
34
34
  .mutation((0, graphql_tag_1.default) `
35
35
  mutation DeleteAppleDeviceMutation($deviceId: ID!) {
36
36
  appleDevice {
@@ -1,4 +1,5 @@
1
+ import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
1
2
  import { AppleDeviceRegistrationRequestFragment } from '../../../../../graphql/generated';
2
3
  export declare const AppleDeviceRegistrationRequestMutation: {
3
- createAppleDeviceRegistrationRequestAsync(appleTeamId: string, accountId: string): Promise<AppleDeviceRegistrationRequestFragment>;
4
+ createAppleDeviceRegistrationRequestAsync(graphqlClient: ExpoGraphqlClient, appleTeamId: string, accountId: string): Promise<AppleDeviceRegistrationRequestFragment>;
4
5
  };
@@ -7,8 +7,8 @@ const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
7
7
  const client_1 = require("../../../../../graphql/client");
8
8
  const AppleDeviceRegistrationRequest_1 = require("../../../../../graphql/types/credentials/AppleDeviceRegistrationRequest");
9
9
  exports.AppleDeviceRegistrationRequestMutation = {
10
- async createAppleDeviceRegistrationRequestAsync(appleTeamId, accountId) {
11
- const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
10
+ async createAppleDeviceRegistrationRequestAsync(graphqlClient, appleTeamId, accountId) {
11
+ const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
12
12
  .mutation((0, graphql_tag_1.default) `
13
13
  mutation CreateAppleDeviceRegistrationRequestMutation(
14
14
  $appleTeamId: ID!
@@ -1,8 +1,9 @@
1
+ import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
1
2
  import { AppleDistributionCertificateFragment, AppleDistributionCertificateInput, AppleTeamFragment } from '../../../../../graphql/generated';
2
3
  export declare type AppleDistributionCertificateMutationResult = AppleDistributionCertificateFragment & {
3
4
  appleTeam?: AppleTeamFragment | null;
4
5
  };
5
6
  export declare const AppleDistributionCertificateMutation: {
6
- createAppleDistributionCertificateAsync(appleDistributionCertificateInput: AppleDistributionCertificateInput, accountId: string): Promise<AppleDistributionCertificateMutationResult>;
7
- deleteAppleDistributionCertificateAsync(appleDistributionCertificateId: string): Promise<void>;
7
+ createAppleDistributionCertificateAsync(graphqlClient: ExpoGraphqlClient, appleDistributionCertificateInput: AppleDistributionCertificateInput, accountId: string): Promise<AppleDistributionCertificateMutationResult>;
8
+ deleteAppleDistributionCertificateAsync(graphqlClient: ExpoGraphqlClient, appleDistributionCertificateId: string): Promise<void>;
8
9
  };
@@ -9,8 +9,8 @@ const client_1 = require("../../../../../graphql/client");
9
9
  const AppleDistributionCertificate_1 = require("../../../../../graphql/types/credentials/AppleDistributionCertificate");
10
10
  const AppleTeam_1 = require("../../../../../graphql/types/credentials/AppleTeam");
11
11
  exports.AppleDistributionCertificateMutation = {
12
- async createAppleDistributionCertificateAsync(appleDistributionCertificateInput, accountId) {
13
- const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
12
+ async createAppleDistributionCertificateAsync(graphqlClient, appleDistributionCertificateInput, accountId) {
13
+ const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
14
14
  .mutation((0, graphql_tag_1.default) `
15
15
  mutation CreateAppleDistributionCertificateMutation(
16
16
  $appleDistributionCertificateInput: AppleDistributionCertificateInput!
@@ -40,8 +40,8 @@ exports.AppleDistributionCertificateMutation = {
40
40
  (0, assert_1.default)(data.appleDistributionCertificate.createAppleDistributionCertificate, 'GraphQL: `createAppleDistributionCertificate` not defined in server response');
41
41
  return data.appleDistributionCertificate.createAppleDistributionCertificate;
42
42
  },
43
- async deleteAppleDistributionCertificateAsync(appleDistributionCertificateId) {
44
- await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
43
+ async deleteAppleDistributionCertificateAsync(graphqlClient, appleDistributionCertificateId) {
44
+ await (0, client_1.withErrorHandlingAsync)(graphqlClient
45
45
  .mutation((0, graphql_tag_1.default) `
46
46
  mutation DeleteAppleDistributionCertificateMutation(
47
47
  $appleDistributionCertificateId: ID!
@@ -1,12 +1,13 @@
1
+ import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
1
2
  import { AppleProvisioningProfileFragment, AppleProvisioningProfileInput, AppleTeamFragment } from '../../../../../graphql/generated';
2
3
  export declare type AppleProvisioningProfileMutationResult = AppleProvisioningProfileFragment & {
3
4
  appleTeam?: AppleTeamFragment | null;
4
5
  };
5
6
  export declare const AppleProvisioningProfileMutation: {
6
- createAppleProvisioningProfileAsync(appleProvisioningProfileInput: AppleProvisioningProfileInput, accountId: string, appleAppIdentifierId: string): Promise<AppleProvisioningProfileMutationResult>;
7
- updateAppleProvisioningProfileAsync(appleProvisioningProfileId: string, appleProvisioningProfileInput: {
7
+ createAppleProvisioningProfileAsync(graphqlClient: ExpoGraphqlClient, appleProvisioningProfileInput: AppleProvisioningProfileInput, accountId: string, appleAppIdentifierId: string): Promise<AppleProvisioningProfileMutationResult>;
8
+ updateAppleProvisioningProfileAsync(graphqlClient: ExpoGraphqlClient, appleProvisioningProfileId: string, appleProvisioningProfileInput: {
8
9
  appleProvisioningProfile: string;
9
10
  developerPortalIdentifier?: string;
10
11
  }): Promise<AppleProvisioningProfileMutationResult>;
11
- deleteAppleProvisioningProfilesAsync(appleProvisioningProfileIds: string[]): Promise<void>;
12
+ deleteAppleProvisioningProfilesAsync(graphqlClient: ExpoGraphqlClient, appleProvisioningProfileIds: string[]): Promise<void>;
12
13
  };
@@ -8,8 +8,8 @@ const client_1 = require("../../../../../graphql/client");
8
8
  const AppleProvisioningProfile_1 = require("../../../../../graphql/types/credentials/AppleProvisioningProfile");
9
9
  const AppleTeam_1 = require("../../../../../graphql/types/credentials/AppleTeam");
10
10
  exports.AppleProvisioningProfileMutation = {
11
- async createAppleProvisioningProfileAsync(appleProvisioningProfileInput, accountId, appleAppIdentifierId) {
12
- const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
11
+ async createAppleProvisioningProfileAsync(graphqlClient, appleProvisioningProfileInput, accountId, appleAppIdentifierId) {
12
+ const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
13
13
  .mutation((0, graphql_tag_1.default) `
14
14
  mutation CreateAppleProvisioningProfileMutation(
15
15
  $appleProvisioningProfileInput: AppleProvisioningProfileInput!
@@ -41,8 +41,8 @@ exports.AppleProvisioningProfileMutation = {
41
41
  .toPromise());
42
42
  return data.appleProvisioningProfile.createAppleProvisioningProfile;
43
43
  },
44
- async updateAppleProvisioningProfileAsync(appleProvisioningProfileId, appleProvisioningProfileInput) {
45
- const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
44
+ async updateAppleProvisioningProfileAsync(graphqlClient, appleProvisioningProfileId, appleProvisioningProfileInput) {
45
+ const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
46
46
  .mutation((0, graphql_tag_1.default) `
47
47
  mutation UpdateAppleProvisioningProfileMutation(
48
48
  $appleProvisioningProfileId: ID!
@@ -71,8 +71,8 @@ exports.AppleProvisioningProfileMutation = {
71
71
  .toPromise());
72
72
  return data.appleProvisioningProfile.updateAppleProvisioningProfile;
73
73
  },
74
- async deleteAppleProvisioningProfilesAsync(appleProvisioningProfileIds) {
75
- await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
74
+ async deleteAppleProvisioningProfilesAsync(graphqlClient, appleProvisioningProfileIds) {
75
+ await (0, client_1.withErrorHandlingAsync)(graphqlClient
76
76
  .mutation((0, graphql_tag_1.default) `
77
77
  mutation DeleteAppleProvisioningProfilesMutation($appleProvisioningProfileIds: [ID!]!) {
78
78
  appleProvisioningProfile {
@@ -1,5 +1,6 @@
1
+ import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
1
2
  import { ApplePushKeyFragment, ApplePushKeyInput } from '../../../../../graphql/generated';
2
3
  export declare const ApplePushKeyMutation: {
3
- createApplePushKeyAsync(applePushKeyInput: ApplePushKeyInput, accountId: string): Promise<ApplePushKeyFragment>;
4
- deleteApplePushKeyAsync(applePushKeyId: string): Promise<void>;
4
+ createApplePushKeyAsync(graphqlClient: ExpoGraphqlClient, applePushKeyInput: ApplePushKeyInput, accountId: string): Promise<ApplePushKeyFragment>;
5
+ deleteApplePushKeyAsync(graphqlClient: ExpoGraphqlClient, applePushKeyId: string): Promise<void>;
5
6
  };
@@ -8,8 +8,8 @@ const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
8
8
  const client_1 = require("../../../../../graphql/client");
9
9
  const ApplePushKey_1 = require("../../../../../graphql/types/credentials/ApplePushKey");
10
10
  exports.ApplePushKeyMutation = {
11
- async createApplePushKeyAsync(applePushKeyInput, accountId) {
12
- const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
11
+ async createApplePushKeyAsync(graphqlClient, applePushKeyInput, accountId) {
12
+ const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
13
13
  .mutation((0, graphql_tag_1.default) `
14
14
  mutation CreateApplePushKeyMutation(
15
15
  $applePushKeyInput: ApplePushKeyInput!
@@ -31,8 +31,8 @@ exports.ApplePushKeyMutation = {
31
31
  (0, assert_1.default)(data.applePushKey.createApplePushKey, 'GraphQL: `createApplePushKey` not defined in server response');
32
32
  return data.applePushKey.createApplePushKey;
33
33
  },
34
- async deleteApplePushKeyAsync(applePushKeyId) {
35
- await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
34
+ async deleteApplePushKeyAsync(graphqlClient, applePushKeyId) {
35
+ await (0, client_1.withErrorHandlingAsync)(graphqlClient
36
36
  .mutation((0, graphql_tag_1.default) `
37
37
  mutation DeleteApplePushKeyMutation($applePushKeyId: ID!) {
38
38
  applePushKey {
@@ -1,7 +1,8 @@
1
+ import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
1
2
  import { AccountFragment, AppleTeamFragment, AppleTeamInput } from '../../../../../graphql/generated';
2
3
  export declare type AppleTeamMutationResult = AppleTeamFragment & {
3
4
  account: AccountFragment;
4
5
  };
5
6
  export declare const AppleTeamMutation: {
6
- createAppleTeamAsync(appleTeamInput: AppleTeamInput, accountId: string): Promise<AppleTeamMutationResult>;
7
+ createAppleTeamAsync(graphqlClient: ExpoGraphqlClient, appleTeamInput: AppleTeamInput, accountId: string): Promise<AppleTeamMutationResult>;
7
8
  };
@@ -8,8 +8,8 @@ const client_1 = require("../../../../../graphql/client");
8
8
  const Account_1 = require("../../../../../graphql/types/Account");
9
9
  const AppleTeam_1 = require("../../../../../graphql/types/credentials/AppleTeam");
10
10
  exports.AppleTeamMutation = {
11
- async createAppleTeamAsync(appleTeamInput, accountId) {
12
- const data = await (0, client_1.withErrorHandlingAsync)(client_1.graphqlClient
11
+ async createAppleTeamAsync(graphqlClient, appleTeamInput, accountId) {
12
+ const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
13
13
  .mutation((0, graphql_tag_1.default) `
14
14
  mutation CreateAppleTeamMutation($appleTeamInput: AppleTeamInput!, $accountId: ID!) {
15
15
  appleTeam {
@@ -1,6 +1,7 @@
1
+ import { ExpoGraphqlClient } from '../../../../../commandUtils/context/contextUtils/createGraphqlClient';
1
2
  import { IosAppBuildCredentials, IosAppBuildCredentialsFragment, IosAppBuildCredentialsInput } from '../../../../../graphql/generated';
2
3
  export declare const IosAppBuildCredentialsMutation: {
3
- createIosAppBuildCredentialsAsync(iosAppBuildCredentialsInput: IosAppBuildCredentialsInput, iosAppCredentialsId: string): Promise<IosAppBuildCredentials>;
4
- setDistributionCertificateAsync(iosAppBuildCredentialsId: string, distributionCertificateId: string): Promise<IosAppBuildCredentials>;
5
- setProvisioningProfileAsync(iosAppBuildCredentialsId: string, provisioningProfileId: string): Promise<IosAppBuildCredentialsFragment>;
4
+ createIosAppBuildCredentialsAsync(graphqlClient: ExpoGraphqlClient, iosAppBuildCredentialsInput: IosAppBuildCredentialsInput, iosAppCredentialsId: string): Promise<IosAppBuildCredentials>;
5
+ setDistributionCertificateAsync(graphqlClient: ExpoGraphqlClient, iosAppBuildCredentialsId: string, distributionCertificateId: string): Promise<IosAppBuildCredentials>;
6
+ setProvisioningProfileAsync(graphqlClient: ExpoGraphqlClient, iosAppBuildCredentialsId: string, provisioningProfileId: string): Promise<IosAppBuildCredentialsFragment>;
6
7
  };