From 1e91312dee0ba4b41ace301c1d959dd99f402bc3 Mon Sep 17 00:00:00 2001 From: Abdhesh Nayak Date: Fri, 26 Jan 2024 18:00:27 +0530 Subject: [PATCH] :art: Cli queries updated --- .../auth/server/gql/queries/device-queries.ts | 22 +++++-------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/src/apps/auth/server/gql/queries/device-queries.ts b/src/apps/auth/server/gql/queries/device-queries.ts index 0e21a7fb1..ca4147aa1 100644 --- a/src/apps/auth/server/gql/queries/device-queries.ts +++ b/src/apps/auth/server/gql/queries/device-queries.ts @@ -30,7 +30,7 @@ export const vpnQueries = (executor: IExecutor) => ({ vars: (_: any) => {}, } ), - cli_coreUpdateDevicePorts: executor( + cli_updateDevicePorts: executor( gql` mutation Core_updateVPNDevicePorts( $deviceName: String! @@ -44,7 +44,7 @@ export const vpnQueries = (executor: IExecutor) => ({ vars: (_: any) => {}, } ), - cli_coreUpdateDeviceEnv: executor( + cli_updateDeviceEnv: executor( gql` mutation Core_updateVPNDeviceEnv( $deviceName: String! @@ -64,7 +64,7 @@ export const vpnQueries = (executor: IExecutor) => ({ } ), - cli_listCoreDevices: executor( + cli_listDevices: executor( gql` query Core_listVPNDevicesForUser { core_listVPNDevicesForUser { @@ -101,7 +101,7 @@ export const vpnQueries = (executor: IExecutor) => ({ vars: (_: any) => {}, } ), - cli_getCoreDevice: executor( + cli_getDevice: executor( gql` query Core_getVPNDevice($name: String!) { core_getVPNDevice(name: $name) { @@ -131,7 +131,7 @@ export const vpnQueries = (executor: IExecutor) => ({ vars: (_: any) => {}, } ), - cli_createCoreDevice: executor( + cli_createDevice: executor( gql` mutation Core_createVPNDevice($vpnDevice: ConsoleVPNDeviceIn!) { core_createVPNDevice(vpnDevice: $vpnDevice) { @@ -150,16 +150,4 @@ export const vpnQueries = (executor: IExecutor) => ({ vars: (_: any) => {}, } ), - - cli_updateCoreDevicePorts: executor( - gql` - mutation Mutation($deviceName: String!, $ports: [PortIn!]!) { - core_updateVPNDevicePorts(deviceName: $deviceName, ports: $ports) - } - `, - { - transformer: (data: any) => data.core_updateVPNDevicePorts, - vars: (_: any) => {}, - } - ), });