import { ConfigValidatorData, ConfigValidatorResult, } from '@atlassian/forge-graphql-types'; /* Builder class for constructing a response object for compass:configValidator Forge modules. */ export class ConfigValidatorResponse { success: boolean; result: ConfigValidatorData = { appConfigured: false }; error: string; public build(): ConfigValidatorResult { return { success: this.error === undefined, result: this.result, error: this.error, }; } constructor(public appConfigured: boolean) { this.result = { appConfigured }; } }