Skip to content

Commit

Permalink
fixed ts issues (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
tulsiojha authored Dec 10, 2024
1 parent be645db commit f362c50
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 48 deletions.
4 changes: 1 addition & 3 deletions gql-queries-generator/doc/queries.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -3022,7 +3022,6 @@ query consoleGetClusterMSv($name: String!) {
displayName
isArchived
id
kind
lastUpdatedBy {
userEmail
userId
Expand Down Expand Up @@ -3093,7 +3092,6 @@ query consoleListClusterMSvs($pagination: CursorPaginationIn, $search: SearchClu
creationTime
displayName
id
kind
lastUpdatedBy {
userEmail
userId
Expand Down Expand Up @@ -4853,7 +4851,7 @@ query authCli_listServices($envName: String!, $pagination: CursorPaginationIn) {
interceptStatus {
intercepted
portMappings {
containerPort
devicePort
servicePort
}
toAddr
Expand Down
80 changes: 40 additions & 40 deletions src/apps/auth/server/gql/cli-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const cliQueries = (executor: IExecutor) => ({
return data.infra_createGlobalVPNDevice;
},
vars(_: any) {},
}
},
),

cli_getDNSHostSuffix: executor(
Expand All @@ -64,7 +64,7 @@ export const cliQueries = (executor: IExecutor) => ({
return data.core_getDNSHostSuffix;
},
vars(_: any) {},
}
},
),

cli_getMresOutputKeyValues: executor(
Expand All @@ -86,7 +86,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_getManagedResouceOutputKeyValues,
vars: (_: any) => {},
}
},
),

cli_getGlobalVpnDevice: executor(
Expand Down Expand Up @@ -133,7 +133,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.infra_getGlobalVPNDevice,
vars: (_: any) => {},
}
},
),

cli_coreCheckNameAvailability: executor(
Expand All @@ -151,7 +151,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_checkNameAvailability,
vars: (_: any) => {},
}
},
),

cli_getMresKeys: executor(
Expand All @@ -166,7 +166,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_getManagedResouceOutputKeys,
vars: (_: any) => {},
}
},
),

cli_listMreses: executor(
Expand All @@ -191,7 +191,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_listManagedResources,
vars: (_: any) => {},
}
},
),

cli_getMresConfigsValues: executor(
Expand All @@ -213,7 +213,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data,
vars: (_: any) => {},
}
},
),

cli_infraCheckNameAvailability: executor(
Expand All @@ -236,7 +236,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.infra_checkNameAvailability,
vars: (_: any) => {},
}
},
),

cli_getConfigSecretMap: executor(
Expand Down Expand Up @@ -279,7 +279,7 @@ export const cliQueries = (executor: IExecutor) => ({
};
},
vars: (_: any) => {},
}
},
),

cli_intercepExternalApp: executor(
Expand All @@ -303,7 +303,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_interceptExternalApp,
vars: (_: any) => {},
}
},
),
// cli_interceptApp: executor(
// gql`
Expand Down Expand Up @@ -351,7 +351,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_interceptApp,
vars: (_: any) => {},
}
},
),
cli_removeDeviceIntercepts: executor(
gql`
Expand All @@ -365,7 +365,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_removeDeviceIntercepts,
vars(_: any) {},
}
},
),
cli_getEnvironment: executor(
gql`
Expand Down Expand Up @@ -393,7 +393,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_getEnvironment,
vars: (_: any) => {},
}
},
),

cli_updateEnvironment: executor(
Expand All @@ -407,7 +407,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_updateEnvironment,
vars(_: any) {},
}
},
),

cli_cloneEnvironment: executor(
Expand Down Expand Up @@ -448,7 +448,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_cloneEnvironment,
vars(_: any) {},
}
},
),
cli_getSecret: executor(
gql`
Expand All @@ -466,7 +466,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_getSecret,
vars: (_: any) => {},
}
},
),
cli_getConfig: executor(
gql`
Expand All @@ -484,7 +484,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_getConfig,
vars: (_: any) => {},
}
},
),

cli_listServices: executor(
Expand All @@ -506,7 +506,7 @@ export const cliQueries = (executor: IExecutor) => ({
interceptStatus {
intercepted
portMappings {
containerPort
devicePort
servicePort
}
toAddr
Expand Down Expand Up @@ -582,7 +582,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_listServiceBindings,
vars: (_: any) => {},
}
},
),

cli_createServiceIntercept: executor(
Expand All @@ -604,7 +604,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_createServiceIntercept,
vars: (_: any) => {},
}
},
),

cli_deleteServiceIntercept: executor(
Expand All @@ -622,7 +622,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_deleteServiceIntercept,
vars: (_: any) => {},
}
},
),

cli_listApps: executor(
Expand Down Expand Up @@ -719,7 +719,7 @@ export const cliQueries = (executor: IExecutor) => ({
return data.apps;
},
vars: (_: any) => {},
}
},
),
cli_listConfigs: executor(
gql`
Expand All @@ -742,7 +742,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_listConfigs,
vars: (_: any) => {},
}
},
),
cli_listSecrets: executor(
gql`
Expand All @@ -767,7 +767,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_listSecrets,
vars: (_: any) => {},
}
},
),

cli_listEnvironments: executor(
Expand Down Expand Up @@ -810,7 +810,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_listEnvironments,
vars: (_: any) => {},
}
},
),

cli_getKubeConfig: executor(
Expand All @@ -830,7 +830,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.infra_getCluster,
vars: (_: any) => {},
}
},
),
cli_listClusters: executor(
gql`
Expand All @@ -853,7 +853,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.infra_listClusters,
vars: (_: any) => {},
}
},
),
cli_listVPNDevices: executor(
gql`
Expand Down Expand Up @@ -916,7 +916,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.infra_listGlobalVPNDevices,
vars: (_: any) => {},
}
},
),
cli_listAccounts: executor(
gql`
Expand All @@ -932,7 +932,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.accounts_listAccounts,
vars: (_: any) => {},
}
},
),
cli_getCurrentUser: executor(
gql`
Expand All @@ -947,7 +947,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.auth_me,
vars: (_: any) => {},
}
},
),

cli_createRemoteLogin: executor(
Expand All @@ -959,7 +959,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.auth_createRemoteLogin,
vars: (_: any) => {},
}
},
),

cli_getRemoteLogin: executor(
Expand All @@ -974,7 +974,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.auth_getRemoteLogin,
vars: (_: any) => {},
}
},
),
cli_listAccountClusters: executor(
gql`
Expand All @@ -998,7 +998,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.infra_listBYOKClusters,
vars(_: any) {},
}
},
),
cli_getBYOKCluster: executor(
gql`
Expand All @@ -1019,7 +1019,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.infra_getBYOKCluster,
vars(_: any) {},
}
},
),
cli_createClusterReference: executor(
gql`
Expand All @@ -1037,7 +1037,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.infra_createBYOKCluster,
vars(_: any) {},
}
},
),
cli_deleteClusterReference: executor(
gql`
Expand All @@ -1048,7 +1048,7 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.infra_deleteBYOKCluster,
vars(_: any) {},
}
},
),
cli_clusterReferenceInstructions: executor(
gql`
Expand All @@ -1065,12 +1065,12 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => {
const instructions = JSON.parse(
data.infrat_getBYOKClusterSetupInstructions[0].command
data.infrat_getBYOKClusterSetupInstructions[0].command,
);
return instructions;
},
vars(_: any) {},
}
},
),
cli_listImportedManagedResources: executor(
gql`
Expand Down Expand Up @@ -1207,6 +1207,6 @@ export const cliQueries = (executor: IExecutor) => ({
{
transformer: (data: any) => data.core_listImportedManagedResources,
vars(_: any) {},
}
},
),
});
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export const clusterManagedServicesQueries = (executor: IExecutor) => ({
displayName
isArchived
id
kind
lastUpdatedBy {
userEmail
userId
Expand Down Expand Up @@ -154,7 +153,6 @@ export const clusterManagedServicesQueries = (executor: IExecutor) => ({
creationTime
displayName
id
kind
lastUpdatedBy {
userEmail
userId
Expand Down
Loading

0 comments on commit f362c50

Please sign in to comment.