;
@@ -32,6 +34,21 @@ export const accountQueries = (executor: IExecutor) => ({
vars(_: ConsoleCreateAccountMutationVariables) {},
}
),
+ getAvailableKloudliteRegions: executor(
+ gql`
+ query Accounts_availableKloudliteRegions {
+ accounts_availableKloudliteRegions {
+ displayName
+ id
+ }
+ }
+ `,
+ {
+ transformer: (data: ConsoleGetAvailableKloudliteRegionsQuery) =>
+ data.accounts_availableKloudliteRegions,
+ vars(_: ConsoleGetAvailableKloudliteRegionsQueryVariables) {},
+ }
+ ),
listAccounts: executor(
gql`
@@ -44,6 +61,7 @@ export const accountQueries = (executor: IExecutor) => ({
}
updateTime
displayName
+ kloudliteGatewayRegion
}
}
`,
@@ -79,6 +97,7 @@ export const accountQueries = (executor: IExecutor) => ({
updateTime
contactEmail
displayName
+ kloudliteGatewayRegion
}
}
`,
diff --git a/src/generated/gql/sdl.graphql b/src/generated/gql/sdl.graphql
index 421347ce8..2939e4473 100644
--- a/src/generated/gql/sdl.graphql
+++ b/src/generated/gql/sdl.graphql
@@ -11,6 +11,7 @@ type Account {
displayName: String!
id: ID!
isActive: Boolean
+ kloudliteGatewayRegion: String!
lastUpdatedBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy!
logo: String
markedForDeletion: Boolean
@@ -24,6 +25,7 @@ input AccountIn {
contactEmail: String
displayName: String!
isActive: Boolean
+ kloudliteGatewayRegion: String!
logo: String
metadata: MetadataIn
}
@@ -91,6 +93,16 @@ type AppPaginatedRecords {
totalCount: Int!
}
+type AvailableKloudliteRegion {
+ displayName: String!
+ id: String!
+}
+
+input AvailableKloudliteRegionIn {
+ displayName: String!
+ id: String!
+}
+
type Build {
buildClusterName: String!
createdBy: Github__com___kloudlite___api___common__CreatedOrUpdatedBy!
@@ -3904,6 +3916,7 @@ input PortIn {
scalar ProviderDetail
type Query {
+ accounts_availableKloudliteRegions: [AvailableKloudliteRegion!]
accounts_checkNameAvailability(name: String!): AccountsCheckNameAvailabilityOutput!
accounts_ensureKloudliteRegistryPullSecrets(accountName: String!): Boolean!
accounts_getAccount(accountName: String!): Account
diff --git a/src/generated/gql/server.ts b/src/generated/gql/server.ts
index 93be5af30..a16dee36c 100644
--- a/src/generated/gql/server.ts
+++ b/src/generated/gql/server.ts
@@ -398,6 +398,7 @@ export type AccountIn = {
contactEmail?: InputMaybe;
displayName: Scalars['String']['input'];
isActive?: InputMaybe;
+ kloudliteGatewayRegion: Scalars['String']['input'];
logo?: InputMaybe;
metadata?: InputMaybe;
};
@@ -1316,6 +1317,11 @@ export type AccountMembershipIn = {
userId: Scalars['String']['input'];
};
+export type AvailableKloudliteRegionIn = {
+ displayName: Scalars['String']['input'];
+ id: Scalars['String']['input'];
+};
+
export type BuildRunIn = {
displayName: Scalars['String']['input'];
};
@@ -1833,6 +1839,17 @@ export type ConsoleCreateAccountMutation = {
accounts_createAccount: { displayName: string };
};
+export type ConsoleGetAvailableKloudliteRegionsQueryVariables = Exact<{
+ [key: string]: never;
+}>;
+
+export type ConsoleGetAvailableKloudliteRegionsQuery = {
+ accounts_availableKloudliteRegions?: Array<{
+ displayName: string;
+ id: string;
+ }>;
+};
+
export type ConsoleListAccountsQueryVariables = Exact<{ [key: string]: never }>;
export type ConsoleListAccountsQuery = {
@@ -1840,6 +1857,7 @@ export type ConsoleListAccountsQuery = {
id: string;
updateTime: any;
displayName: string;
+ kloudliteGatewayRegion: string;
metadata?: { name: string; annotations?: any };
}>;
};
@@ -1862,6 +1880,7 @@ export type ConsoleGetAccountQuery = {
updateTime: any;
contactEmail?: string;
displayName: string;
+ kloudliteGatewayRegion: string;
metadata?: { name: string; annotations?: any };
};
};