feat(workspace): add support for custom domain status toggle (#10114)
Introduce isCustomDomainEnabled field in Workspace entity to manage custom domain activation. Update related services, types, and logic to validate and toggle the custom domain's status dynamically based on its current state. This ensures accurate domain configurations are reflected across the system. --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
@ -384,15 +384,8 @@ export type CursorPaging = {
|
||||
last?: InputMaybe<Scalars['Int']['input']>;
|
||||
};
|
||||
|
||||
export type CustomDomainDetails = {
|
||||
__typename?: 'CustomDomainDetails';
|
||||
customDomain: Scalars['String']['output'];
|
||||
id: Scalars['String']['output'];
|
||||
records: Array<CustomDomainVerification>;
|
||||
};
|
||||
|
||||
export type CustomDomainVerification = {
|
||||
__typename?: 'CustomDomainVerification';
|
||||
export type CustomDomainRecord = {
|
||||
__typename?: 'CustomDomainRecord';
|
||||
key: Scalars['String']['output'];
|
||||
status: Scalars['String']['output'];
|
||||
type: Scalars['String']['output'];
|
||||
@ -400,6 +393,13 @@ export type CustomDomainVerification = {
|
||||
value: Scalars['String']['output'];
|
||||
};
|
||||
|
||||
export type CustomDomainValidRecords = {
|
||||
__typename?: 'CustomDomainValidRecords';
|
||||
customDomain: Scalars['String']['output'];
|
||||
id: Scalars['String']['output'];
|
||||
records: Array<CustomDomainRecord>;
|
||||
};
|
||||
|
||||
export type DeleteOneFieldInput = {
|
||||
/** The id of the field to delete. */
|
||||
id: Scalars['UUID']['input'];
|
||||
@ -1343,6 +1343,7 @@ export type PublishServerlessFunctionInput = {
|
||||
export type Query = {
|
||||
__typename?: 'Query';
|
||||
billingPortalSession: BillingSessionOutput;
|
||||
checkCustomDomainValidRecords?: Maybe<CustomDomainValidRecords>;
|
||||
checkUserExists: UserExistsOutput;
|
||||
checkWorkspaceInviteHashIsValid: WorkspaceInviteHashValid;
|
||||
clientConfig: ClientConfig;
|
||||
@ -1359,7 +1360,6 @@ export type Query = {
|
||||
findWorkspaceFromInviteHash: Workspace;
|
||||
findWorkspaceInvitations: Array<WorkspaceInvitation>;
|
||||
getAvailablePackages: Scalars['JSON']['output'];
|
||||
getCustomDomainDetails?: Maybe<CustomDomainDetails>;
|
||||
getEnvironmentVariablesGrouped: EnvironmentVariablesOutput;
|
||||
getPostgresCredentials?: Maybe<PostgresCredentials>;
|
||||
getProductPrices: BillingProductPricesOutput;
|
||||
@ -2099,6 +2099,7 @@ export type Workspace = {
|
||||
hasValidEnterpriseKey: Scalars['Boolean']['output'];
|
||||
id: Scalars['UUID']['output'];
|
||||
inviteHash?: Maybe<Scalars['String']['output']>;
|
||||
isCustomDomainEnabled: Scalars['Boolean']['output'];
|
||||
isGoogleAuthEnabled: Scalars['Boolean']['output'];
|
||||
isMicrosoftAuthEnabled: Scalars['Boolean']['output'];
|
||||
isPasswordAuthEnabled: Scalars['Boolean']['output'];
|
||||
|
||||
Reference in New Issue
Block a user