Skip to content

Commit

Permalink
intercept app cli api updated
Browse files Browse the repository at this point in the history
  • Loading branch information
nxtcoder36 committed Oct 9, 2024
1 parent bdb93b3 commit 338c82e
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 16 deletions.
8 changes: 4 additions & 4 deletions gql-queries-generator/doc/queries.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -4699,12 +4699,11 @@ mutation authCli_intercepExternalApp($envName: String!, $appName: String!, $devi
)
}

mutation authCli_interceptApp($portMappings: [Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappingsIn!], $intercept: Boolean!, $clusterName: String!, $ipAddr: String!, $appName: String!, $envName: String!) {
core_interceptAppOnLocalCluster(
mutation authCli_interceptApp($portMappings: [Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappingsIn!], $intercept: Boolean!, $deviceName: String!, $appName: String!, $envName: String!) {
core_interceptApp(
portMappings: $portMappings
intercept: $intercept
clusterName: $clusterName
ipAddr: $ipAddr
deviceName: $deviceName
appname: $appName
envName: $envName
)
Expand Down Expand Up @@ -4980,6 +4979,7 @@ query authCli_listAccountClusters($pagination: CursorPaginationIn) {
node {
clusterToken
displayName
lastOnlineAt
id
metadata {
name
Expand Down
38 changes: 31 additions & 7 deletions src/apps/auth/server/gql/cli-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,28 +305,51 @@ export const cliQueries = (executor: IExecutor) => ({
vars: (_: any) => {},
}
),
// cli_interceptApp: executor(
// gql`
// mutation Core_interceptAppOnLocalCluster(
// $portMappings: [Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappingsIn!]
// $intercept: Boolean!
// $clusterName: String!
// $ipAddr: String!
// $appName: String!
// $envName: String!
// ) {
// core_interceptAppOnLocalCluster(
// portMappings: $portMappings
// intercept: $intercept
// clusterName: $clusterName
// ipAddr: $ipAddr
// appname: $appName
// envName: $envName
// )
// }
// `,
// {
// transformer: (data: any) => data.core_interceptAppOnLocalCluster,
// vars: (_: any) => {},
// }
// ),
cli_interceptApp: executor(
gql`
mutation Core_interceptAppOnLocalCluster(
mutation Core_interceptApp(
$portMappings: [Github__com___kloudlite___operator___apis___crds___v1__AppInterceptPortMappingsIn!]
$intercept: Boolean!
$clusterName: String!
$ipAddr: String!
$deviceName: String!
$appName: String!
$envName: String!
) {
core_interceptAppOnLocalCluster(
core_interceptApp(
portMappings: $portMappings
intercept: $intercept
clusterName: $clusterName
ipAddr: $ipAddr
deviceName: $deviceName
appname: $appName
envName: $envName
)
}
`,
{
transformer: (data: any) => data.core_interceptAppOnLocalCluster,
transformer: (data: any) => data.core_interceptApp,
vars: (_: any) => {},
}
),
Expand Down Expand Up @@ -741,6 +764,7 @@ export const cliQueries = (executor: IExecutor) => ({
node {
clusterToken
displayName
lastOnlineAt
id
metadata {
name
Expand Down
8 changes: 3 additions & 5 deletions src/generated/gql/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6307,15 +6307,12 @@ export type AuthCli_InterceptAppMutationVariables = Exact<{
| Github__Com___Kloudlite___Operator___Apis___Crds___V1__AppInterceptPortMappingsIn
>;
intercept: Scalars['Boolean']['input'];
clusterName: Scalars['String']['input'];
ipAddr: Scalars['String']['input'];
deviceName: Scalars['String']['input'];
appName: Scalars['String']['input'];
envName: Scalars['String']['input'];
}>;

export type AuthCli_InterceptAppMutation = {
core_interceptAppOnLocalCluster: boolean;
};
export type AuthCli_InterceptAppMutation = { core_interceptApp: boolean };

export type AuthCli_RemoveDeviceInterceptsMutationVariables = Exact<{
envName: Scalars['String']['input'];
Expand Down Expand Up @@ -6577,6 +6574,7 @@ export type AuthCli_ListAccountClustersQuery = {
node: {
clusterToken: string;
displayName: string;
lastOnlineAt?: any;
id: string;
metadata: { name: string; labels?: any };
};
Expand Down

0 comments on commit 338c82e

Please sign in to comment.