@finos/legend-studio
Version:
57 lines • 2.47 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 { EditorStore } from '../EditorStore.js';
import type { EditorSDLCState } from '../EditorSDLCState.js';
import { type GeneratorFn, ActionState } from '@finos/legend-shared';
import { type EntityChangeConflict, EntityDiff, EntityChange } from '@finos/legend-server-sdlc';
import { WorkspaceSyncState } from './WorkspaceSyncState.js';
declare class PatchLoaderState {
editorStore: EditorStore;
sdlcState: EditorSDLCState;
changes: EntityChange[] | undefined;
currentChanges: EntityChange[];
isLoadingChanges: boolean;
showModal: boolean;
isValidPatch: boolean;
constructor(editorStore: EditorStore, sdlcState: EditorSDLCState);
openModal(localChanges: EntityChange[]): void;
closeModal(): void;
setIsValidPatch(val: boolean): void;
setPatchChanges(changes: EntityChange[] | undefined): void;
deleteChange(change: EntityChange): void;
get overiddingChanges(): EntityChange[];
loadPatchFile(file: File): GeneratorFn<void>;
applyChanges(): GeneratorFn<void>;
}
export declare class LocalChangesState {
editorStore: EditorStore;
sdlcState: EditorSDLCState;
workspaceSyncState: WorkspaceSyncState;
pushChangesState: ActionState;
refreshLocalChangesDetectorState: ActionState;
patchLoaderState: PatchLoaderState;
refreshWorkspaceSyncStatusState: ActionState;
constructor(editorStore: EditorStore, sdlcState: EditorSDLCState);
openLocalChange(diff: EntityDiff): void;
openWorkspacePullChange(diff: EntityDiff): void;
refreshLocalChanges(): GeneratorFn<void>;
refreshWorkspaceSyncStatus(): GeneratorFn<void>;
openPotentialWorkspacePullConflict(conflict: EntityChangeConflict): void;
downloadLocalChanges: () => void;
pushLocalChanges(pushMessage?: string): GeneratorFn<void>;
}
export {};
//# sourceMappingURL=LocalChangesState.d.ts.map