refactor: Reduce usage of IExecuteSingleFunctions (no-changelog) (#6944)

This commit is contained in:
Iván Ovejero
2023-08-16 15:52:41 +02:00
committed by GitHub
parent 3eb65e08c4
commit f50fc8443e
128 changed files with 158 additions and 409 deletions

View File

@@ -1,6 +1,5 @@
import type {
IExecuteFunctions,
IExecuteSingleFunctions,
ILoadOptionsFunctions,
ICredentialTestFunctions,
IDataObject,
@@ -58,12 +57,7 @@ const googleServiceAccountScopes = {
type GoogleServiceAccount = keyof typeof googleServiceAccountScopes;
export async function getGoogleAccessToken(
this:
| IExecuteFunctions
| IExecuteSingleFunctions
| ILoadOptionsFunctions
| ICredentialTestFunctions
| IPollFunctions,
this: IExecuteFunctions | ILoadOptionsFunctions | ICredentialTestFunctions | IPollFunctions,
credentials: IDataObject,
service: GoogleServiceAccount,
): Promise<IDataObject> {