Skip to content

Commit

Permalink
🎨 Cli queries updated
Browse files Browse the repository at this point in the history
  • Loading branch information
abdheshnayak committed Jan 26, 2024
1 parent 69de39c commit 1e91312
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions src/apps/auth/server/gql/queries/device-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const vpnQueries = (executor: IExecutor) => ({
vars: (_: any) => {},
}
),
cli_coreUpdateDevicePorts: executor(
cli_updateDevicePorts: executor(
gql`
mutation Core_updateVPNDevicePorts(
$deviceName: String!
Expand All @@ -44,7 +44,7 @@ export const vpnQueries = (executor: IExecutor) => ({
vars: (_: any) => {},
}
),
cli_coreUpdateDeviceEnv: executor(
cli_updateDeviceEnv: executor(
gql`
mutation Core_updateVPNDeviceEnv(
$deviceName: String!
Expand All @@ -64,7 +64,7 @@ export const vpnQueries = (executor: IExecutor) => ({
}
),

cli_listCoreDevices: executor(
cli_listDevices: executor(
gql`
query Core_listVPNDevicesForUser {
core_listVPNDevicesForUser {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand All @@ -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) => {},
}
),
});

0 comments on commit 1e91312

Please sign in to comment.