/** * Copyright (c) 2020-present, Goldman Sachs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { SerializationFactory, type PlainObject } from '@finos/legend-shared'; import { LegendApplicationConfig, type LegendApplicationConfigurationInput, type LegendApplicationConfigurationData } from '@finos/legend-application'; import { QueryBuilderConfig } from '@finos/legend-query-builder'; import type { AuthProviderProps } from 'react-oidc-context'; export declare class LegendQueryOIDCConfiguration { redirectPath: string; silentRedirectPath: string; authProviderProps: AuthProviderProps; static readonly serialization: SerializationFactory; } export declare class ServiceRegistrationEnvironmentConfig { env: string; executionUrl: string; modes: string[]; managementUrl: string; static readonly serialization: SerializationFactory; } declare class LegendQueryApplicationCoreOptions { /** * Provides service registration environment configs. * * TODO: when we modularize service, we can move this config to DSL Service preset. Then, we can remove * the TEMPORARY__ prefix. * * @modularize * See https://github.com/finos/legend-studio/issues/65 */ TEMPORARY__serviceRegistrationConfig: ServiceRegistrationEnvironmentConfig[]; /** * This flag is for any feature that is not production ready. * Used to iterate over features until they are ready for production. */ NonProductionFeatureFlag: boolean; TEMPORARY__enableMinimalGraph: boolean; /** * Config specific to query builder */ queryBuilderConfig: QueryBuilderConfig | undefined; /** * OIDC configuration for the Query application. * When provided, the application will be wrapped in a `LegendTokenProvider` * to enable automatic access-token syncing. */ oidcConfig: LegendQueryOIDCConfiguration | undefined; /** * Indicates if we should enable oauth flow * * Default to `false` */ enableOauthFlow: boolean; private static readonly serialization; static create(configData: PlainObject): LegendQueryApplicationCoreOptions; } type LegendStudioApplicationInstanceConfigurationData = { sdlcProjectIDPrefix: string; url: string; }; export interface LegendQueryApplicationConfigurationData extends LegendApplicationConfigurationData { depot: { url: string; }; engine: { url: string; queryUrl?: string; }; studio: { url: string; instances: LegendStudioApplicationInstanceConfigurationData[]; }; taxonomy?: { url: string; }; dataCube?: { url: string; }; marketplace?: { url: string; productionParallelUrl: string; }; lakehouse?: { url: string; }; legendAI?: { url: string; }; } export declare class LegendQueryApplicationConfig extends LegendApplicationConfig { readonly options: LegendQueryApplicationCoreOptions; readonly engineServerUrl: string; readonly engineQueryServerUrl?: string | undefined; readonly depotServerUrl: string; readonly studioApplicationUrl: string; readonly taxonomyApplicationUrl?: string; readonly dataCubeApplicationUrl?: string; readonly marketplaceApplicationUrl?: string; readonly marketplaceProductionParallelUrl?: string; readonly lakehouseContractUrl?: string; readonly legendAIUrl?: string; readonly studioInstances: LegendStudioApplicationInstanceConfigurationData[]; constructor(input: LegendApplicationConfigurationInput); getDefaultApplicationStorageKey(): string; } export {}; //# sourceMappingURL=LegendQueryApplicationConfig.d.ts.map