* remove three old env variables IS_DATA_MODEL_SETTINGS_ENABLED IS_DEVELOPERS_SETTINGS_ENABLED FLEXIBLE_BACKEND_ENABLED * Fix database:reset script * Removing unused variable --------- Co-authored-by: Charles Bochet <charles@twenty.com>
50 lines
877 B
TypeScript
50 lines
877 B
TypeScript
import { Field, ObjectType } from '@nestjs/graphql';
|
|
|
|
@ObjectType()
|
|
class AuthProviders {
|
|
@Field(() => Boolean)
|
|
google: boolean;
|
|
|
|
@Field(() => Boolean)
|
|
magicLink: boolean;
|
|
|
|
@Field(() => Boolean)
|
|
password: boolean;
|
|
}
|
|
|
|
@ObjectType()
|
|
class Telemetry {
|
|
@Field(() => Boolean)
|
|
enabled: boolean;
|
|
|
|
@Field(() => Boolean)
|
|
anonymizationEnabled: boolean;
|
|
}
|
|
|
|
@ObjectType()
|
|
class Support {
|
|
@Field(() => String)
|
|
supportDriver: string;
|
|
|
|
@Field(() => String, { nullable: true })
|
|
supportFrontChatId: string | undefined;
|
|
}
|
|
|
|
@ObjectType()
|
|
export class ClientConfig {
|
|
@Field(() => AuthProviders, { nullable: false })
|
|
authProviders: AuthProviders;
|
|
|
|
@Field(() => Telemetry, { nullable: false })
|
|
telemetry: Telemetry;
|
|
|
|
@Field(() => Boolean)
|
|
signInPrefilled: boolean;
|
|
|
|
@Field(() => Boolean)
|
|
debugMode: boolean;
|
|
|
|
@Field(() => Support)
|
|
support: Support;
|
|
}
|