From d0caa031de7de3c526b797a00fa6d4828de9ff12 Mon Sep 17 00:00:00 2001 From: RobertPechaCZ Date: Wed, 30 Oct 2024 11:39:05 +0100 Subject: [PATCH] fix: functions tests --- src/clients/functions.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/clients/functions.ts b/src/clients/functions.ts index 5c30782..748302d 100644 --- a/src/clients/functions.ts +++ b/src/clients/functions.ts @@ -72,6 +72,7 @@ export class FunctionsClient { public get = async ({ name }: GetFleekFunctionArgs) => { const response = await this.graphqlClient.query({ + __name: 'GetFleekFunctionByName', fleekFunctionByName: { __args: { where: { @@ -87,6 +88,7 @@ export class FunctionsClient { public list = async () => { const response = await this.graphqlClient.query({ + __name: 'GetFleekFunctions', fleekFunctions: { __args: {}, data: { @@ -102,6 +104,7 @@ export class FunctionsClient { functionId, }: ListFleekFunctionArgs): Promise => { const response = await this.graphqlClient.query({ + __name: 'GetFleekFunctionDeployments', fleekFunctionDeployments: { __args: { where: { @@ -119,6 +122,7 @@ export class FunctionsClient { public create = async ({ name, siteId }: CreateFleekFunctionArgs) => { const response = await this.graphqlClient.mutation({ + __name: 'CreateFleekFunction', createFleekFunction: { __args: { data: { @@ -141,6 +145,7 @@ export class FunctionsClient { assetsCid, }: DeployFleekFunctionArgs): Promise => { const response = await this.graphqlClient.mutation({ + __name: 'DeployFleekFunction', triggerFleekFunctionDeployment: { __args: { where: { @@ -158,6 +163,7 @@ export class FunctionsClient { public delete = async ({ id }: DeleteFleekFunctionArgs) => { const response = await this.graphqlClient.mutation({ + __name: 'DeleteFleekFunction', deleteFleekFunction: { __args: { where: { @@ -178,6 +184,7 @@ export class FunctionsClient { status, }: UpdateFleekFunctionArgs) => { const response = await this.graphqlClient.mutation({ + __name: 'UpdateFleekFunction', updateFleekFunction: { __args: { where: {