@finos/legend-application-studio
Version:
Legend Studio application core
80 lines • 8.25 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 } from '@finos/legend-shared';
import { type GenericTypeReference, type TaggedValue, type StereotypeReference, type Multiplicity, type Stereotype, type Tag, type PackageableElement, type PackageableElementReference, type AnnotatedElement, type Property, type DerivedProperty, type Constraint, type Profile, type RawVariableExpression, type ConcreteFunctionDefinition, type Enum, type Enumeration, type EnumValueReference, type Measure, type Unit, type RawLambda, type Association, type INTERNAL__UnknownFunctionActivator, type FunctionStoreTestData, type ObserverContext, type FunctionParameterValue, type FunctionTest, type FunctionTestSuite, type AggregationKind, type EmbeddedData, GenericType, Class } from '@finos/legend-graph';
export declare const packageableElementReference_setValue: <T extends PackageableElement>(ref: PackageableElementReference<T>, value: T) => void;
export declare const class_deleteProperty: (_class: Class, val: Property) => void;
export declare const class_addProperty: (_class: Class, val: Property) => void;
export declare const class_swapProperties: (_class: Class, sourceProperty: Property, targetProperty: Property) => void;
export declare const class_deleteDerivedProperty: (_class: Class, val: DerivedProperty) => void;
export declare const class_addDerivedProperty: (_class: Class, val: DerivedProperty) => void;
export declare const class_swapDerivedProperties: (_class: Class, sourceProperty: DerivedProperty, targetProperty: DerivedProperty) => void;
export declare const class_addContraint: (_class: Class, val: Constraint) => void;
export declare const class_deleteConstraint: (_class: Class, val: Constraint) => void;
export declare const class_swapConstraints: (_class: Class, sourceConstraint: Constraint, targetConstraint: Constraint) => void;
export declare const class_addSuperType: (_class: Class, val: GenericTypeReference) => void;
export declare const class_deleteSuperType: (_class: Class, val: GenericTypeReference) => void;
export declare const class_swapSuperTypes: (_class: Class, sourceSuperType: GenericTypeReference, targetSuperType: GenericTypeReference) => void;
export declare const class_addSubclass: (_class: Class, val: Class) => void;
export declare const class_deleteSubclass: (_class: Class, val: Class) => void;
export declare const setGenericTypeReferenceValue: (gen: GenericTypeReference, value: GenericType) => void;
export declare const property_setName: (_property: Property | DerivedProperty, value: string) => void;
export declare const property_setGenericType: (_property: Property | DerivedProperty, value: GenericType) => void;
export declare const property_setMultiplicity: (_property: Property | DerivedProperty, value: Multiplicity) => void;
export declare const property_setAggregationKind: (target: Property, value: AggregationKind | undefined) => void;
export declare const stereotypeReference_setValue: (sV: StereotypeReference, value: Stereotype) => void;
export declare const annotatedElement_addTaggedValue: (annotatedElement: AnnotatedElement, value: TaggedValue) => void;
export declare const annotatedElement_deleteTaggedValue: (_property: AnnotatedElement, value: TaggedValue) => void;
export declare const annotatedElement_addStereotype: (annotatedElement: AnnotatedElement, value: StereotypeReference) => void;
export declare const annotatedElement_deleteStereotype: (annotatedElement: AnnotatedElement, value: StereotypeReference) => void;
export declare const taggedValue_setTag: (taggedValue: TaggedValue, value: Tag) => void;
export declare const taggedValue_setValue: (val: TaggedValue, value: string) => void;
export declare const tagStereotype_setValue: (_tag: Tag | Stereotype, value: string) => void;
export declare const annotatedElement_swapTaggedValues: (annotatedElement: AnnotatedElement, sourceTaggedValue: TaggedValue, targetTaggedValue: TaggedValue) => void;
export declare const annotatedElement_swapStereotypes: (annotatedElement: AnnotatedElement, sourceStereotype: StereotypeReference, targetStereotype: StereotypeReference) => void;
export declare const derivedProperty_setBody: (dp: DerivedProperty, value: object | undefined) => void;
export declare const derivedProperty_setParameters: (dp: DerivedProperty, value: object | undefined) => void;
export declare const constraint_setName: (_constraint: Constraint, name: string) => void;
export declare const constraint_setFunctionDefinition: (_constraint: Constraint, lambda: RawLambda) => void;
export declare const profile_addTag: (profile: Profile, value: Tag) => void;
export declare const profile_deleteTag: (profile: Profile, value: Tag) => void;
export declare const profile_addStereotype: (profile: Profile, value: Stereotype) => void;
export declare const profile_deleteStereotype: (profile: Profile, value: Stereotype) => void;
export declare const profile_swapTags: (profile: Profile, sourceTag: Tag, targetTag: Tag) => void;
export declare const profile_swapStereotypes: (profile: Profile, sourceStereotype: Stereotype, targetStereotype: Stereotype) => void;
export declare const function_deleteParameter: (_func: ConcreteFunctionDefinition, val: RawVariableExpression) => void;
export declare const function_addParameter: (_func: ConcreteFunctionDefinition, val: RawVariableExpression) => void;
export declare const function_setReturnGenericType: (_func: ConcreteFunctionDefinition, val: GenericType) => void;
export declare const function_setReturnMultiplicity: (_func: ConcreteFunctionDefinition, val: Multiplicity) => void;
export declare const function_swapParameters: (_func: ConcreteFunctionDefinition, sourceParameter: RawVariableExpression, targetParameter: RawVariableExpression) => void;
export declare const INTERNAL__UnknownFunctionActivator_setContent: (metamodel: INTERNAL__UnknownFunctionActivator, val: PlainObject) => void;
export declare const functionTestable_setEmbeddedData: (store: FunctionStoreTestData, embeddedData: EmbeddedData, observerContext: ObserverContext) => void;
export declare const functionTestable_deleteDataStore: (suite: FunctionTestSuite, val: FunctionStoreTestData) => void;
export declare const function_addTestSuite: (_func: ConcreteFunctionDefinition, val: FunctionTestSuite, context: ObserverContext) => void;
export declare const function_setParameterValueSpec: (parameterValue: FunctionParameterValue, val: object) => void;
export declare const function_setParameterValues: (test: FunctionTest, values: FunctionParameterValue[]) => void;
export declare const function_deleteParameterValue: (test: FunctionTest, value: FunctionParameterValue) => void;
export declare const function_addParameterValue: (test: FunctionTest, value: FunctionParameterValue) => void;
export declare const function_setParameterName: (parameterValue: FunctionParameterValue, val: string) => void;
export declare const enum_setName: (val: Enum, value: string) => void;
export declare const enum_addValue: (enumeration: Enumeration, value: Enum) => void;
export declare const enum_deleteValue: (enumeration: Enumeration, value: Enum) => void;
export declare const enum_swapValues: (enumeration: Enumeration, sourceEnum: Enum, targetEnum: Enum) => void;
export declare const enumValueReference_setValue: (ref: EnumValueReference, value: Enum) => void;
export declare const association_changePropertyType: (association: Association, property: Property, type: Class) => void;
export declare const measure_setCanonicalUnit: (_measure: Measure, unit: Unit) => void;
export declare const unit_setConversionFunction: (unit: Unit, lambda: RawLambda) => void;
//# sourceMappingURL=DomainGraphModifierHelper.d.ts.map