@finos/legend-studio
Version:
55 lines • 2.52 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 ServiceEditorState } from '../../../editor-state/element-editor-state/service/ServiceEditorState.js';
import type { EditorStore } from '../../../EditorStore.js';
import { type GeneratorFn, ActionState } from '@finos/legend-shared';
import { Version } from '@finos/legend-server-sdlc';
import { ServiceExecutionMode } from '@finos/legend-graph';
import { ServiceRegistrationEnvInfo } from '../../../../application/LegendStudioApplicationConfig.js';
export declare const LATEST_PROJECT_REVISION = "Latest Project Revision";
interface ServiceVersionOption {
label: string;
value: Version | string;
}
export declare enum SERVICE_REGISTRATION_PHASE {
REGISTERING_SERVICE = "REGISTERING_SERVICE",
ACTIVATING_SERVICE = "ACTIVATING_SERVICE"
}
export declare class ServiceRegistrationState {
editorStore: EditorStore;
serviceEditorState: ServiceEditorState;
registrationState: ActionState;
serviceEnv?: string | undefined;
serviceExecutionMode?: ServiceExecutionMode | undefined;
projectVersion?: Version | string | undefined;
activatePostRegistration: boolean;
constructor(editorStore: EditorStore, serviceEditorState: ServiceEditorState);
setServiceEnv(val: string | undefined): void;
setServiceExecutionMode(val: ServiceExecutionMode | undefined): void;
setProjectVersion(val: Version | string | undefined): void;
setActivatePostRegistration(val: boolean): void;
initialize(): void;
updateVersion(): void;
updateType(val: ServiceExecutionMode | undefined): void;
updateEnv(val: string | undefined): void;
get options(): ServiceRegistrationEnvInfo[];
get executionModes(): ServiceExecutionMode[];
get versionOptions(): ServiceVersionOption[] | undefined;
registerService(): GeneratorFn<void>;
validateServiceForRegistration(): void;
}
export {};
//# sourceMappingURL=ServiceRegistrationState.d.ts.map