@finos/legend-studio
Version:
61 lines • 3.4 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.
*/
/// <reference types="react" resolution-mode="require"/>
import type { DSL_LegendStudioApplicationPlugin_Extension } from './LegendStudioApplicationPlugin.js';
import type { DatasourceSpecification, AuthenticationStrategy } from '@finos/legend-graph';
export declare type DatasourceSpecificationTypeGetter = (metamodel: DatasourceSpecification) => string | undefined;
export declare type DatasourceSpecificationCreator = (type: string) => DatasourceSpecification | undefined;
export declare type DatasourceSpecificationEditorRenderer = (metamodel: DatasourceSpecification, isReadOnly: boolean) => React.ReactNode | undefined;
export declare type AuthenticationStrategyTypeGetter = (metamodel: AuthenticationStrategy) => string | undefined;
export declare type AuthenticationStrategyCreator = (type: string) => AuthenticationStrategy | undefined;
export declare type AuthenticationStrategyEditorRenderer = (metamodel: AuthenticationStrategy, isReadOnly: boolean) => React.ReactNode | undefined;
export interface StoreRelational_LegendStudioApplicationPlugin_Extension extends DSL_LegendStudioApplicationPlugin_Extension {
/**
* Get the list of the supported type specifiers for relational database
* datasource specifications.
*/
getExtraDatasourceSpecificationTypes?(): string[];
/**
* Get the list of classifiers for a relational database datasource specification.
*/
getExtraDatasourceSpecificationTypeGetters?(): DatasourceSpecificationTypeGetter[];
/**
* Get the list of creators for relational database datasource specification given the type specifier.
*/
getExtraDatasourceSpecificationCreators?(): DatasourceSpecificationCreator[];
/**
* Get the list of renderers for the editor for a relational database datasource specification.
*/
getExtraDatasourceSpecificationEditorRenderers?(): DatasourceSpecificationEditorRenderer[];
/**
* Get the list of supported type specifiers for relational database connection
* authentication strategies.
*/
getExtraAuthenticationStrategyTypes?(): string[];
/**
* Get the list of classifiers for a relational database authentication strategy.
*/
getExtraAuthenticationStrategyTypeGetters?(): AuthenticationStrategyTypeGetter[];
/**
* Get the list of creators for relational database authentication strategy given the type specifier.
*/
getExtraAuthenticationStrategyCreators?(): AuthenticationStrategyCreator[];
/**
* Get the list of renderers for the editor for a relational database authentication strategy.
*/
getExtraAuthenticationStrategyEditorRenderers?(): AuthenticationStrategyEditorRenderer[];
}
//# sourceMappingURL=StoreRelational_LegendStudioApplicationPlugin_Extension.d.ts.map