Skip to content

Commit

Permalink
Merge pull request #74 from kloudlite/features/design
Browse files Browse the repository at this point in the history
🎨 Cli queries updated
  • Loading branch information
abdheshnayak authored Jan 26, 2024
2 parents 55b34a7 + 1e91312 commit 86a0b0e
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 86a0b0e

Please sign in to comment.