@finos/legend-studio
Version:
72 lines • 2.89 kB
TypeScript
/**
* 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 { type PlainObject, type RequestHeaders, SerializationFactory } from '@finos/legend-shared';
import { LegendApplicationConfig, type LegendApplicationConfigurationInput, type LegendApplicationConfigurationData } from '@finos/legend-application';
export declare class ServiceRegistrationEnvInfo {
env: string;
executionUrl: string;
modes: string[];
managementUrl: string;
static readonly serialization: SerializationFactory<ServiceRegistrationEnvInfo>;
}
declare class LegendStudioApplicationCoreOptions {
/**
* Indicates if we should keep section index and do not rewrite/flatten the paths shortened by section
* imports.
*
* This flag will be kept until we have full support for section index
* See https://github.com/finos/legend-studio/issues/1067
*/
TEMPORARY__preserveSectionIndex: boolean;
/**
* 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: ServiceRegistrationEnvInfo[];
private static readonly serialization;
static create(configData: PlainObject<LegendStudioApplicationCoreOptions>): LegendStudioApplicationCoreOptions;
}
export interface LegendStudioApplicationConfigurationData extends LegendApplicationConfigurationData {
appName: string;
env: string;
sdlc: {
url: string;
baseHeaders?: RequestHeaders;
};
depot: {
url: string;
};
engine: {
url: string;
queryUrl?: string;
};
}
export declare class LegendStudioApplicationConfig extends LegendApplicationConfig {
readonly options: LegendStudioApplicationCoreOptions;
readonly engineServerUrl: string;
readonly engineQueryServerUrl?: string | undefined;
readonly depotServerUrl: string;
readonly sdlcServerUrl: string;
readonly SDLCServerBaseHeaders?: RequestHeaders | undefined;
constructor(input: LegendApplicationConfigurationInput<LegendStudioApplicationConfigurationData>);
}
export {};
//# sourceMappingURL=LegendStudioApplicationConfig.d.ts.map