@aws-c2a/models
Advanced tools
Comparing version 0.3.3 to 0.3.8
@@ -1,4 +0,4 @@ | ||
import { JSONSerializable, Serialized } from "../export/json-serializable"; | ||
import { SerializationClasses } from "../export/serialization-classes"; | ||
import { SerializedAggregation } from "../export/serialized-interfaces/aggregations/serialized-aggregation"; | ||
import { JSONSerializable, Serialized } from '../export/json-serializable'; | ||
import { SerializationClasses } from '../export/serialization-classes'; | ||
import { SerializedAggregation } from '../export/serialized-interfaces/aggregations/serialized-aggregation'; | ||
@@ -8,47 +8,47 @@ export type AggCharacteristicValue = string | number | boolean | undefined; | ||
export interface Aggregation<T> { | ||
entities: Set<T>, | ||
characteristics: Record<string, AggCharacteristicValue>, | ||
subAggs?: Aggregation<T>[], | ||
parentAgg?: Aggregation<T>, | ||
descriptions?: string[] | ||
entities: Set<T>, | ||
characteristics: Record<string, AggCharacteristicValue>, | ||
subAggs?: Aggregation<T>[], | ||
parentAgg?: Aggregation<T>, | ||
descriptions?: string[] | ||
} | ||
export const aggregationSerializer = <T extends JSONSerializable>( | ||
ig: Aggregation<T>, | ||
serialize: (obj: JSONSerializable) => number, | ||
serializeCustom: (obj: any, serializationClass: string, serialized: Serialized) => number | ||
ig: Aggregation<T>, | ||
serialize: (obj: JSONSerializable) => number, | ||
serializeCustom: (obj: any, serializationClass: string, serialized: Serialized) => number, | ||
): SerializedAggregation => { | ||
return { | ||
entities: [...ig.entities].map(e => serialize(e)), | ||
characteristics: ig.characteristics, | ||
subAggs: ig.subAggs?.map(sg => serializeCustom( | ||
sg, SerializationClasses.AGGREGATION, aggregationSerializer(sg, serialize, serializeCustom) | ||
)), | ||
descriptions: ig.descriptions | ||
}; | ||
return { | ||
entities: [...ig.entities].map(e => serialize(e)), | ||
characteristics: ig.characteristics, | ||
subAggs: ig.subAggs?.map(sg => serializeCustom( | ||
sg, SerializationClasses.AGGREGATION, aggregationSerializer(sg, serialize, serializeCustom), | ||
)), | ||
descriptions: ig.descriptions, | ||
}; | ||
}; | ||
export const getAllDescriptions = <T>(agg: Aggregation<T>): string[] => { | ||
const result: string[] = []; | ||
let a: Aggregation<T> | undefined = agg; | ||
while(a){ | ||
if(a.descriptions) | ||
result.unshift(...a.descriptions); | ||
a = a.parentAgg; | ||
} | ||
const result: string[] = []; | ||
return result; | ||
let a: Aggregation<T> | undefined = agg; | ||
while(a){ | ||
if(a.descriptions) | ||
result.unshift(...a.descriptions); | ||
a = a.parentAgg; | ||
} | ||
return result; | ||
}; | ||
export const getAllCharacteristics = <T>(agg: Aggregation<T>): Record<string, AggCharacteristicValue> => { | ||
let result: Record<string, AggCharacteristicValue> = {}; | ||
let a: Aggregation<T> | undefined = agg; | ||
while(a){ | ||
result = {...result, ...a.characteristics}; | ||
a = a.parentAgg; | ||
} | ||
let result: Record<string, AggCharacteristicValue> = {}; | ||
return result; | ||
let a: Aggregation<T> | undefined = agg; | ||
while(a){ | ||
result = {...result, ...a.characteristics}; | ||
a = a.parentAgg; | ||
} | ||
return result; | ||
}; |
export enum CompOpAggCharacteristics { | ||
RISK = "RISK", | ||
AFFECTED_ENTITY = 'Affected Entity', | ||
COMPONENT_TYPE = 'Component Type', | ||
COMPONENT_SUBTYPE = 'Component Subtype', | ||
OPERATION_CAUSE = 'Operation Cause', | ||
OPERATION_CERTAINTY = 'Operation Certainty', | ||
OPERATION_TYPE = 'Operation Type', | ||
ENTITY_OPERATION_TYPE = 'Entity Operation Type', | ||
PROPERTY_PATH_BEFORE = 'Previous Property Path', | ||
PROPERTY_PATH_AFTER = 'Property Path', | ||
PROPERTY_VALUE_BEFORE = 'Previous Property Value', | ||
PROPERTY_VALUE_AFTER = 'Property Value', | ||
RISK = 'RISK', | ||
AFFECTED_ENTITY = 'Affected Entity', | ||
COMPONENT_TYPE = 'Component Type', | ||
COMPONENT_SUBTYPE = 'Component Subtype', | ||
OPERATION_CAUSE = 'Operation Cause', | ||
OPERATION_CERTAINTY = 'Operation Certainty', | ||
OPERATION_TYPE = 'Operation Type', | ||
ENTITY_OPERATION_TYPE = 'Entity Operation Type', | ||
PROPERTY_PATH_BEFORE = 'Previous Property Path', | ||
PROPERTY_PATH_AFTER = 'Property Path', | ||
PROPERTY_VALUE_BEFORE = 'Previous Property Value', | ||
PROPERTY_VALUE_AFTER = 'Property Value', | ||
} |
@@ -1,50 +0,50 @@ | ||
import { JSONSerializable, Serialized } from "../export/json-serializable"; | ||
import { SerializationClasses } from "../export/serialization-classes"; | ||
import { SerializedChangeAnalysisReport } from "../export/serialized-interfaces/serialized-change-analysis-report"; | ||
import { Aggregation, aggregationSerializer } from "../aggregations"; | ||
import { ComponentOperation, InfraModelDiff, Transition, UpdatePropertyComponentOperation } from "../model-diffing"; | ||
import { Component } from "../infra-model"; | ||
import { RuleEffect } from "../rules"; | ||
import { fromEntries } from "../utils"; | ||
import { Aggregation, aggregationSerializer } from '../aggregations'; | ||
import { JSONSerializable, Serialized } from '../export/json-serializable'; | ||
import { SerializationClasses } from '../export/serialization-classes'; | ||
import { SerializedChangeAnalysisReport } from '../export/serialized-interfaces/serialized-change-analysis-report'; | ||
import { Component } from '../infra-model'; | ||
import { ComponentOperation, InfraModelDiff, Transition } from '../model-diffing'; | ||
import { RuleEffect } from '../rules'; | ||
import { fromEntries } from '../utils'; | ||
export class ChangeAnalysisReport implements JSONSerializable { | ||
constructor( | ||
public readonly infraModelDiff: InfraModelDiff, | ||
public readonly aggregations: Aggregation<ComponentOperation>[], | ||
public readonly aggregationsPerComponent: Map<Transition<Component>, Aggregation<ComponentOperation>[]>, | ||
public readonly rulesOutput: Map<ComponentOperation, RuleEffect>, | ||
){} | ||
constructor( | ||
public readonly infraModelDiff: InfraModelDiff, | ||
public readonly aggregations: Aggregation<ComponentOperation>[], | ||
public readonly aggregationsPerComponent: Map<Transition<Component>, Aggregation<ComponentOperation>[]>, | ||
public readonly rulesOutput: Map<ComponentOperation, RuleEffect>, | ||
){} | ||
toSerialized( | ||
serialize: (obj: JSONSerializable) => number, | ||
serializeCustom: (obj: any, serializationClass: string, serialized: Serialized) => number | ||
): SerializedChangeAnalysisReport { | ||
return { | ||
infraModelDiff: serialize(this.infraModelDiff), | ||
aggregations: this.aggregations.map(agg => this.serializeAgg(agg, serialize, serializeCustom)), | ||
aggregationsPerComponent: fromEntries( | ||
[...this.aggregationsPerComponent].map(([compTransition, aggArr]) => { | ||
return [serialize(compTransition), aggArr.map(agg => this.serializeAgg(agg, serialize, serializeCustom))]; | ||
}) | ||
), | ||
rulesOutput: fromEntries( | ||
[...this.rulesOutput].map(([op, effect]) => [serialize(op), effect]) | ||
) | ||
}; | ||
} | ||
toSerialized( | ||
serialize: (obj: JSONSerializable) => number, | ||
serializeCustom: (obj: any, serializationClass: string, serialized: Serialized) => number, | ||
): SerializedChangeAnalysisReport { | ||
return { | ||
infraModelDiff: serialize(this.infraModelDiff), | ||
aggregations: this.aggregations.map(agg => this.serializeAgg(agg, serialize, serializeCustom)), | ||
aggregationsPerComponent: fromEntries( | ||
[...this.aggregationsPerComponent].map(([compTransition, aggArr]) => { | ||
return [serialize(compTransition), aggArr.map(agg => this.serializeAgg(agg, serialize, serializeCustom))]; | ||
}), | ||
), | ||
rulesOutput: fromEntries( | ||
[...this.rulesOutput].map(([op, effect]) => [serialize(op), effect]), | ||
), | ||
}; | ||
} | ||
private serializeAgg(agg: Aggregation<ComponentOperation>, | ||
serialize: (obj: JSONSerializable) => number, | ||
serializeCustom: (obj: any, serializationClass: string, serialized: Serialized) => number){ | ||
return serializeCustom( | ||
agg, | ||
SerializationClasses.AGGREGATION, | ||
aggregationSerializer(agg, serialize, serializeCustom) | ||
); | ||
} | ||
private serializeAgg(agg: Aggregation<ComponentOperation>, | ||
serialize: (obj: JSONSerializable) => number, | ||
serializeCustom: (obj: any, serializationClass: string, serialized: Serialized) => number){ | ||
return serializeCustom( | ||
agg, | ||
SerializationClasses.AGGREGATION, | ||
aggregationSerializer(agg, serialize, serializeCustom), | ||
); | ||
} | ||
getSerializationClass(): string { | ||
return SerializationClasses.CHANGE_ANALYSIS_REPORT; | ||
} | ||
getSerializationClass(): string { | ||
return SerializationClasses.CHANGE_ANALYSIS_REPORT; | ||
} | ||
} |
@@ -1,15 +0,15 @@ | ||
import { SerializationClasses } from './serialization-classes'; | ||
import { aggregationDeserializer } from './deserializers/aggregations/aggregation-deserializer'; | ||
import { changeAnalysisReportDeserializer } from './deserializers/change-analysis-report-deserializer'; | ||
import { insertComponentOperationDeserializer, removeComponentOperationDeserializer, renameComponentOperationDeserializer, replaceComponentOperationDeserializer } from './deserializers/infra-model-diff/component-operations/component-operation-deserializers'; | ||
import { insertPropertyComponentOperationDeserializer, movePropertyComponentOperationDeserializer, removePropertyComponentOperationDeserializer, updatePropertyComponentOperationDeserializer } from './deserializers/infra-model-diff/component-operations/property-component-operation-deserializer'; | ||
import { infraModelDiffDeserializer } from './deserializers/infra-model-diff/infra-model-diff-deserializer'; | ||
import { componentDeserializer } from './deserializers/infra-model/component-deserializer'; | ||
import { componentPropertyArrayDeserializer, componentPropertyEmptyDeserializer, componentPropertyPrimitiveDeserializer, componentPropertyRecordDeserializer } from './deserializers/infra-model/component-property-deserializer'; | ||
import { dependencyRelationshipDeserializer } from './deserializers/infra-model/dependency-relationship-deserializer'; | ||
import { infraModelDeserializer } from './deserializers/infra-model/infra-model-deserializer'; | ||
import { structuralRelationshipDeserializer } from './deserializers/infra-model/structural-relationship-deserializer'; | ||
import { infraModelDeserializer } from './deserializers/infra-model/infra-model-deserializer'; | ||
import { componentPropertyArrayDeserializer, componentPropertyEmptyDeserializer, componentPropertyPrimitiveDeserializer, componentPropertyRecordDeserializer } from './deserializers/infra-model/component-property-deserializer'; | ||
import { infraModelDiffDeserializer } from './deserializers/infra-model-diff/infra-model-diff-deserializer'; | ||
import { transitionDeserializer } from './deserializers/transition-deserializer'; | ||
import { JSONSerializable, Serialized } from './json-serializable'; | ||
import { SerializationID } from './json-serializer'; | ||
import { JSONSerializable, Serialized } from './json-serializable'; | ||
import { aggregationDeserializer } from './deserializers/aggregations/aggregation-deserializer'; | ||
import { transitionDeserializer } from './deserializers/transition-deserializer'; | ||
import { changeAnalysisReportDeserializer } from './deserializers/change-analysis-report-deserializer'; | ||
import { SerializationClasses } from './serialization-classes'; | ||
@@ -22,27 +22,27 @@ type classDeserializer = (obj: Serialized, deserialize: (id: SerializationID) => JSONSerializable) => any; | ||
export const classToDeserializer: Record<string, classDeserializer> = Object.freeze({ | ||
// Infra Model | ||
[SerializationClasses.COMPONENT]: componentDeserializer, | ||
[SerializationClasses.DEPENDENCY_RELATIONSHIP]: dependencyRelationshipDeserializer, | ||
[SerializationClasses.STRUCTURAL_RELATIONSHIP]: structuralRelationshipDeserializer, | ||
[SerializationClasses.INFRA_MODEL]: infraModelDeserializer, | ||
[SerializationClasses.COMPONENT_PROPERTY_RECORD]: componentPropertyRecordDeserializer, | ||
[SerializationClasses.COMPONENT_PROPERTY_ARRAY]: componentPropertyArrayDeserializer, | ||
[SerializationClasses.COMPONENT_PROPERTY_EMPTY]: componentPropertyEmptyDeserializer, | ||
[SerializationClasses.COMPONENT_PROPERTY_PRIMITIVE]: componentPropertyPrimitiveDeserializer, | ||
// Infra Model | ||
[SerializationClasses.COMPONENT]: componentDeserializer, | ||
[SerializationClasses.DEPENDENCY_RELATIONSHIP]: dependencyRelationshipDeserializer, | ||
[SerializationClasses.STRUCTURAL_RELATIONSHIP]: structuralRelationshipDeserializer, | ||
[SerializationClasses.INFRA_MODEL]: infraModelDeserializer, | ||
[SerializationClasses.COMPONENT_PROPERTY_RECORD]: componentPropertyRecordDeserializer, | ||
[SerializationClasses.COMPONENT_PROPERTY_ARRAY]: componentPropertyArrayDeserializer, | ||
[SerializationClasses.COMPONENT_PROPERTY_EMPTY]: componentPropertyEmptyDeserializer, | ||
[SerializationClasses.COMPONENT_PROPERTY_PRIMITIVE]: componentPropertyPrimitiveDeserializer, | ||
// Infra Model Diff | ||
[SerializationClasses.INFRA_MODEL_DIFF]: infraModelDiffDeserializer, | ||
[SerializationClasses.TRANSITION]: transitionDeserializer, | ||
[SerializationClasses.INSERT_COMPONENT_OPERATION]: insertComponentOperationDeserializer, | ||
[SerializationClasses.REMOVE_COMPONENT_OPERATION]: removeComponentOperationDeserializer, | ||
[SerializationClasses.REPLACE_COMPONENT_OPERATION]: replaceComponentOperationDeserializer, | ||
[SerializationClasses.RENAME_COMPONENT_OPERATION]: renameComponentOperationDeserializer, | ||
[SerializationClasses.INSERT_PROPERTY_COMPONENT_OPERATION]: insertPropertyComponentOperationDeserializer, | ||
[SerializationClasses.REMOVE_PROPERTY_COMPONENT_OPERATION]: removePropertyComponentOperationDeserializer, | ||
[SerializationClasses.UPDATE_PROPERTY_COMPONENT_OPERATION]: updatePropertyComponentOperationDeserializer, | ||
[SerializationClasses.MOVE_PROPERTY_COMPONENT_OPERATION]: movePropertyComponentOperationDeserializer, | ||
// Infra Model Diff | ||
[SerializationClasses.INFRA_MODEL_DIFF]: infraModelDiffDeserializer, | ||
[SerializationClasses.TRANSITION]: transitionDeserializer, | ||
[SerializationClasses.INSERT_COMPONENT_OPERATION]: insertComponentOperationDeserializer, | ||
[SerializationClasses.REMOVE_COMPONENT_OPERATION]: removeComponentOperationDeserializer, | ||
[SerializationClasses.REPLACE_COMPONENT_OPERATION]: replaceComponentOperationDeserializer, | ||
[SerializationClasses.RENAME_COMPONENT_OPERATION]: renameComponentOperationDeserializer, | ||
[SerializationClasses.INSERT_PROPERTY_COMPONENT_OPERATION]: insertPropertyComponentOperationDeserializer, | ||
[SerializationClasses.REMOVE_PROPERTY_COMPONENT_OPERATION]: removePropertyComponentOperationDeserializer, | ||
[SerializationClasses.UPDATE_PROPERTY_COMPONENT_OPERATION]: updatePropertyComponentOperationDeserializer, | ||
[SerializationClasses.MOVE_PROPERTY_COMPONENT_OPERATION]: movePropertyComponentOperationDeserializer, | ||
[SerializationClasses.AGGREGATION]: aggregationDeserializer, | ||
[SerializationClasses.AGGREGATION]: aggregationDeserializer, | ||
[SerializationClasses.CHANGE_ANALYSIS_REPORT]: changeAnalysisReportDeserializer, | ||
[SerializationClasses.CHANGE_ANALYSIS_REPORT]: changeAnalysisReportDeserializer, | ||
}); |
@@ -1,20 +0,23 @@ | ||
import { Aggregation } from "../../../aggregations"; | ||
import { JSONSerializable, Serialized } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { SerializedAggregation } from "../../serialized-interfaces/aggregations/serialized-aggregation"; | ||
import { Aggregation } from '../../../aggregations'; | ||
import { JSONSerializable, Serialized } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
import { SerializedAggregation } from '../../serialized-interfaces/aggregations/serialized-aggregation'; | ||
export function aggregationDeserializer<T extends JSONSerializable>(obj: Serialized, deserialize: (obj: SerializationID) => any): Aggregation<T> { | ||
const serialized = obj as SerializedAggregation; | ||
export function aggregationDeserializer<T extends JSONSerializable>( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => any, | ||
): Aggregation<T> { | ||
const serialized = obj as SerializedAggregation; | ||
const agg = { | ||
entities: new Set(serialized.entities.map(deserialize) as T[]), | ||
characteristics: serialized.characteristics, | ||
subAggs: serialized.subAggs?.map(deserialize) as Aggregation<T>[], | ||
descriptions: serialized.descriptions | ||
}; | ||
const agg = { | ||
entities: new Set(serialized.entities.map(deserialize) as T[]), | ||
characteristics: serialized.characteristics, | ||
subAggs: serialized.subAggs?.map(deserialize) as Aggregation<T>[], | ||
descriptions: serialized.descriptions, | ||
}; | ||
if(agg.subAggs) | ||
agg.subAggs.forEach(a => a.parentAgg = agg); | ||
if(agg.subAggs) | ||
agg.subAggs.forEach(a => a.parentAgg = agg); | ||
return agg; | ||
return agg; | ||
} |
@@ -1,18 +0,25 @@ | ||
import { ChangeAnalysisReport } from "../../change-analysis-report"; | ||
import { Aggregation } from "../../aggregations"; | ||
import { ComponentOperation, InfraModelDiff, Transition } from "../../model-diffing"; | ||
import { JSONSerializable, Serialized } from "../json-serializable"; | ||
import { SerializationID } from "../json-serializer"; | ||
import { SerializedChangeAnalysisReport } from "../serialized-interfaces/serialized-change-analysis-report"; | ||
import { Component } from "../../infra-model"; | ||
import { Aggregation } from '../../aggregations'; | ||
import { ChangeAnalysisReport } from '../../change-analysis-report'; | ||
import { Component } from '../../infra-model'; | ||
import { ComponentOperation, InfraModelDiff, Transition } from '../../model-diffing'; | ||
import { JSONSerializable, Serialized } from '../json-serializable'; | ||
import { SerializationID } from '../json-serializer'; | ||
import { SerializedChangeAnalysisReport } from '../serialized-interfaces/serialized-change-analysis-report'; | ||
export function changeAnalysisReportDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => any): JSONSerializable { | ||
const serialized = obj as SerializedChangeAnalysisReport; | ||
export function changeAnalysisReportDeserializer( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => any, | ||
): JSONSerializable { | ||
const serialized = obj as SerializedChangeAnalysisReport; | ||
return new ChangeAnalysisReport( | ||
deserialize(serialized.infraModelDiff) as InfraModelDiff, | ||
serialized.aggregations.map(deserialize) as Aggregation<ComponentOperation>[], | ||
new Map(Object.entries(serialized.aggregationsPerComponent).map(([k,v]) => [deserialize(parseInt(k)) as Transition<Component>, v.map(deserialize) as Aggregation<ComponentOperation>[]])), | ||
new Map(Object.entries(serialized.rulesOutput).map(([id, effect]) => [deserialize(parseInt(id)), effect])) | ||
); | ||
return new ChangeAnalysisReport( | ||
deserialize(serialized.infraModelDiff) as InfraModelDiff, | ||
serialized.aggregations.map(deserialize) as Aggregation<ComponentOperation>[], | ||
new Map(Object.entries(serialized.aggregationsPerComponent) | ||
.map(([k,v]) => [ | ||
deserialize(parseInt(k)) as Transition<Component>, | ||
v.map(deserialize) as Aggregation<ComponentOperation>[], | ||
])), | ||
new Map(Object.entries(serialized.rulesOutput).map(([id, effect]) => [deserialize(parseInt(id)), effect])), | ||
); | ||
} |
import { | ||
InsertComponentOperation, | ||
RemoveComponentOperation, | ||
RenameComponentOperation, | ||
ReplaceComponentOperation, | ||
} from "../../../../model-diffing/"; | ||
import { JSONSerializable, Serialized } from "../../../json-serializable"; | ||
import { SerializationID } from "../../../json-serializer"; | ||
import { SerializedComponentOperation } from "../../../serialized-interfaces/infra-model-diff/serialized-component-operation"; | ||
import { deserializeOpNodeData, deserializeOpOutoingNodeReferences } from "./utils"; | ||
InsertComponentOperation, | ||
RemoveComponentOperation, | ||
RenameComponentOperation, | ||
ReplaceComponentOperation, | ||
} from '../../../../model-diffing/'; | ||
import { JSONSerializable, Serialized } from '../../../json-serializable'; | ||
import { SerializationID } from '../../../json-serializer'; | ||
import { SerializedComponentOperation } from '../../../serialized-interfaces/infra-model-diff/serialized-component-operation'; | ||
import { deserializeOpNodeData, deserializeOpOutoingNodeReferences } from './utils'; | ||
export function insertComponentOperationDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable { | ||
const serialized = obj as SerializedComponentOperation; | ||
export function insertComponentOperationDeserializer( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): JSONSerializable { | ||
const serialized = obj as SerializedComponentOperation; | ||
return new InsertComponentOperation( | ||
deserializeOpNodeData(serialized), | ||
deserializeOpOutoingNodeReferences(serialized, deserialize), | ||
); | ||
return new InsertComponentOperation( | ||
deserializeOpNodeData(serialized), | ||
deserializeOpOutoingNodeReferences(serialized, deserialize), | ||
); | ||
} | ||
export function removeComponentOperationDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable { | ||
const serialized = obj as SerializedComponentOperation; | ||
export function removeComponentOperationDeserializer( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): JSONSerializable { | ||
const serialized = obj as SerializedComponentOperation; | ||
return new RemoveComponentOperation( | ||
deserializeOpNodeData(serialized), | ||
deserializeOpOutoingNodeReferences(serialized, deserialize), | ||
); | ||
return new RemoveComponentOperation( | ||
deserializeOpNodeData(serialized), | ||
deserializeOpOutoingNodeReferences(serialized, deserialize), | ||
); | ||
} | ||
export function replaceComponentOperationDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable { | ||
const serialized = obj as SerializedComponentOperation; | ||
export function replaceComponentOperationDeserializer( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): JSONSerializable { | ||
const serialized = obj as SerializedComponentOperation; | ||
return new ReplaceComponentOperation( | ||
deserializeOpNodeData(serialized), | ||
deserializeOpOutoingNodeReferences(serialized, deserialize), | ||
); | ||
return new ReplaceComponentOperation( | ||
deserializeOpNodeData(serialized), | ||
deserializeOpOutoingNodeReferences(serialized, deserialize), | ||
); | ||
} | ||
export function renameComponentOperationDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable { | ||
const serialized = obj as SerializedComponentOperation; | ||
export function renameComponentOperationDeserializer( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): JSONSerializable { | ||
const serialized = obj as SerializedComponentOperation; | ||
return new RenameComponentOperation( | ||
deserializeOpNodeData(serialized), | ||
deserializeOpOutoingNodeReferences(serialized, deserialize), | ||
); | ||
return new RenameComponentOperation( | ||
deserializeOpNodeData(serialized), | ||
deserializeOpOutoingNodeReferences(serialized, deserialize), | ||
); | ||
} |
import { | ||
InsertPropertyComponentOperation, | ||
MovePropertyComponentOperation, | ||
RemovePropertyComponentOperation, | ||
} from "../../../../model-diffing/"; | ||
import { JSONSerializable, Serialized } from "../../../json-serializable"; | ||
import { SerializationID } from "../../../json-serializer"; | ||
import { SerializedPropertyComponentOperation } from "../../../serialized-interfaces/infra-model-diff/serialized-component-operation"; | ||
import { deserializeOpNodeData, deserializePropOpOutoingNodeReferences, deserializeUpdatePropOpOutoingNodeReferences } from "./utils"; | ||
InsertPropertyComponentOperation, | ||
MovePropertyComponentOperation, | ||
RemovePropertyComponentOperation, | ||
} from '../../../../model-diffing/'; | ||
import { JSONSerializable, Serialized } from '../../../json-serializable'; | ||
import { SerializationID } from '../../../json-serializer'; | ||
import { SerializedPropertyComponentOperation } from '../../../serialized-interfaces/infra-model-diff/serialized-component-operation'; | ||
import { deserializeOpNodeData, deserializePropOpOutoingNodeReferences, deserializeUpdatePropOpOutoingNodeReferences } from './utils'; | ||
export function insertPropertyComponentOperationDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable { | ||
const serialized = obj as SerializedPropertyComponentOperation; | ||
export function insertPropertyComponentOperationDeserializer( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): JSONSerializable { | ||
const serialized = obj as SerializedPropertyComponentOperation; | ||
return new InsertPropertyComponentOperation( | ||
deserializeOpNodeData(serialized), | ||
deserializePropOpOutoingNodeReferences(serialized, deserialize), | ||
); | ||
return new InsertPropertyComponentOperation( | ||
deserializeOpNodeData(serialized), | ||
deserializePropOpOutoingNodeReferences(serialized, deserialize), | ||
); | ||
} | ||
export function removePropertyComponentOperationDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable { | ||
const serialized = obj as SerializedPropertyComponentOperation; | ||
export function removePropertyComponentOperationDeserializer( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): JSONSerializable { | ||
const serialized = obj as SerializedPropertyComponentOperation; | ||
return new RemovePropertyComponentOperation( | ||
deserializeOpNodeData(serialized), | ||
deserializePropOpOutoingNodeReferences(serialized, deserialize), | ||
); | ||
return new RemovePropertyComponentOperation( | ||
deserializeOpNodeData(serialized), | ||
deserializePropOpOutoingNodeReferences(serialized, deserialize), | ||
); | ||
} | ||
export function movePropertyComponentOperationDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable { | ||
const serialized = obj as SerializedPropertyComponentOperation; | ||
export function movePropertyComponentOperationDeserializer( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): JSONSerializable { | ||
const serialized = obj as SerializedPropertyComponentOperation; | ||
return new MovePropertyComponentOperation( | ||
deserializeOpNodeData(serialized), | ||
deserializePropOpOutoingNodeReferences(serialized, deserialize), | ||
); | ||
return new MovePropertyComponentOperation( | ||
deserializeOpNodeData(serialized), | ||
deserializePropOpOutoingNodeReferences(serialized, deserialize), | ||
); | ||
} | ||
export function updatePropertyComponentOperationDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable { | ||
const serialized = obj as SerializedPropertyComponentOperation; | ||
export function updatePropertyComponentOperationDeserializer( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): JSONSerializable { | ||
const serialized = obj as SerializedPropertyComponentOperation; | ||
return new MovePropertyComponentOperation( | ||
deserializeOpNodeData(serialized), | ||
deserializeUpdatePropOpOutoingNodeReferences(serialized, deserialize), | ||
); | ||
return new MovePropertyComponentOperation( | ||
deserializeOpNodeData(serialized), | ||
deserializeUpdatePropOpOutoingNodeReferences(serialized, deserialize), | ||
); | ||
} |
@@ -1,35 +0,43 @@ | ||
import { Component, ComponentPropertyValue, PropertyPath, Relationship } from "../../../../infra-model"; | ||
import { ComponentOperation, OperationCertainty, OpNodeData, OpOutgoingNodeReferences, PropertyComponentOperation, PropOpOutgoingNodeReferences, Transition, UpdatePropOpOutgoingNodeReferences } from "../../../../model-diffing/"; | ||
import { JSONSerializable } from "../../../json-serializable"; | ||
import { SerializationID } from "../../../json-serializer"; | ||
import { SerializedComponentOperation, SerializedOutgoingRelationshipComponentOperation, SerializedPropertyComponentOperation, SerializedUpdatePropertyComponentOperation } from "../../../serialized-interfaces/infra-model-diff/serialized-component-operation"; | ||
import { Component, ComponentPropertyValue, PropertyPath } from '../../../../infra-model'; | ||
import { ComponentOperation, OperationCertainty, OpNodeData, OpOutgoingNodeReferences, PropertyComponentOperation, PropOpOutgoingNodeReferences, Transition, UpdatePropOpOutgoingNodeReferences } from '../../../../model-diffing/'; | ||
import { JSONSerializable } from '../../../json-serializable'; | ||
import { SerializationID } from '../../../json-serializer'; | ||
import { SerializedComponentOperation, SerializedPropertyComponentOperation, SerializedUpdatePropertyComponentOperation } from '../../../serialized-interfaces/infra-model-diff/serialized-component-operation'; | ||
export function deserializeOpNodeData(serialized: SerializedComponentOperation): OpNodeData { | ||
return { | ||
certainty: OperationCertainty[serialized.certainty as keyof typeof OperationCertainty], | ||
}; | ||
return { | ||
certainty: OperationCertainty[serialized.certainty as keyof typeof OperationCertainty], | ||
}; | ||
} | ||
export function deserializeOpOutoingNodeReferences(serialized: SerializedComponentOperation, deserialize: (obj: SerializationID) => JSONSerializable): OpOutgoingNodeReferences { | ||
return { | ||
cause: serialized.cause ? deserialize(serialized.cause) as ComponentOperation : undefined, | ||
componentTransition: deserialize(serialized.componentTransition) as Transition<Component>, | ||
}; | ||
export function deserializeOpOutoingNodeReferences( | ||
serialized: SerializedComponentOperation, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): OpOutgoingNodeReferences { | ||
return { | ||
cause: serialized.cause ? deserialize(serialized.cause) as ComponentOperation : undefined, | ||
componentTransition: deserialize(serialized.componentTransition) as Transition<Component>, | ||
}; | ||
} | ||
// PropertyComponentOperations | ||
export function deserializePropOpOutoingNodeReferences(serialized: SerializedPropertyComponentOperation, deserialize: (obj: SerializationID) => JSONSerializable): PropOpOutgoingNodeReferences { | ||
return { | ||
...deserializeOpOutoingNodeReferences(serialized, deserialize), | ||
pathTransition: deserialize(serialized.pathTransition) as Transition<PropertyPath>, | ||
propertyTransition: deserialize(serialized.propertyTransition) as Transition<ComponentPropertyValue>, | ||
}; | ||
export function deserializePropOpOutoingNodeReferences( | ||
serialized: SerializedPropertyComponentOperation, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): PropOpOutgoingNodeReferences { | ||
return { | ||
...deserializeOpOutoingNodeReferences(serialized, deserialize), | ||
pathTransition: deserialize(serialized.pathTransition) as Transition<PropertyPath>, | ||
propertyTransition: deserialize(serialized.propertyTransition) as Transition<ComponentPropertyValue>, | ||
}; | ||
} | ||
export function deserializeUpdatePropOpOutoingNodeReferences(serialized: SerializedUpdatePropertyComponentOperation, deserialize: (obj: SerializationID) => JSONSerializable): UpdatePropOpOutgoingNodeReferences { | ||
return { | ||
...deserializePropOpOutoingNodeReferences(serialized, deserialize), | ||
innerOperations: serialized.innerOperations ? serialized.innerOperations.map(deserialize) as PropertyComponentOperation[] : undefined, | ||
}; | ||
export function deserializeUpdatePropOpOutoingNodeReferences( | ||
serialized: SerializedUpdatePropertyComponentOperation, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): UpdatePropOpOutgoingNodeReferences { | ||
return { | ||
...deserializePropOpOutoingNodeReferences(serialized, deserialize), | ||
innerOperations: serialized.innerOperations?.map(deserialize) as PropertyComponentOperation[], | ||
}; | ||
} |
@@ -1,15 +0,18 @@ | ||
import { Component, InfraModel } from "../../../infra-model"; | ||
import { ComponentOperation, InfraModelDiff, Transition } from "../../../model-diffing"; | ||
import { JSONSerializable, Serialized } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { SerializedInfraModelDiff } from "../../serialized-interfaces/infra-model-diff/serialized-infra-model-diff"; | ||
import { Component, InfraModel } from '../../../infra-model'; | ||
import { ComponentOperation, InfraModelDiff, Transition } from '../../../model-diffing'; | ||
import { JSONSerializable, Serialized } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
import { SerializedInfraModelDiff } from '../../serialized-interfaces/infra-model-diff/serialized-infra-model-diff'; | ||
export function infraModelDiffDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable { | ||
const serialized = obj as SerializedInfraModelDiff; | ||
export function infraModelDiffDeserializer( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): JSONSerializable { | ||
const serialized = obj as SerializedInfraModelDiff; | ||
return new InfraModelDiff( | ||
serialized.componentOperations.map(deserialize) as ComponentOperation[], | ||
serialized.componentTransitions.map(deserialize) as Transition<Component>[], | ||
deserialize(serialized.infraModelTransition) as Transition<InfraModel> | ||
); | ||
return new InfraModelDiff( | ||
serialized.componentOperations.map(deserialize) as ComponentOperation[], | ||
serialized.componentTransitions.map(deserialize) as Transition<Component>[], | ||
deserialize(serialized.infraModelTransition) as Transition<InfraModel>, | ||
); | ||
} |
@@ -1,19 +0,22 @@ | ||
import { Component, ComponentPropertyValue } from "../../../infra-model"; | ||
import { JSONSerializable, Serialized } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { SerializedComponent } from "../../serialized-interfaces/infra-model/serialized-component"; | ||
import { Component, ComponentPropertyValue } from '../../../infra-model'; | ||
import { JSONSerializable, Serialized } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
import { SerializedComponent } from '../../serialized-interfaces/infra-model/serialized-component'; | ||
export function componentDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable { | ||
const serializedComponent: SerializedComponent = obj as SerializedComponent; | ||
export function componentDeserializer( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): JSONSerializable { | ||
const serializedComponent: SerializedComponent = obj as SerializedComponent; | ||
const component = new Component( | ||
serializedComponent.name, | ||
serializedComponent.type, | ||
{ | ||
subtype: serializedComponent?.subtype, | ||
properties: deserialize(serializedComponent.properties) as ComponentPropertyValue | ||
} | ||
); | ||
const component = new Component( | ||
serializedComponent.name, | ||
serializedComponent.type, | ||
{ | ||
subtype: serializedComponent?.subtype, | ||
properties: deserialize(serializedComponent.properties) as ComponentPropertyValue, | ||
}, | ||
); | ||
return component; | ||
return component; | ||
} |
@@ -1,36 +0,43 @@ | ||
import { ComponentPropertyValue, ComponentPropertyArray, ComponentPropertyPrimitive, ComponentPropertyRecord, EmptyComponentProperty } from "../../../infra-model"; | ||
import { fromEntries } from "../../../utils"; | ||
import { JSONSerializable, Serialized } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { SerializedComponentPropertyArray, SerializedComponentPropertyPrimitive, SerializedComponentPropertyRecord } from "../../serialized-interfaces/infra-model/serialized-component-property"; | ||
import { ComponentPropertyValue, ComponentPropertyArray, ComponentPropertyPrimitive, ComponentPropertyRecord, EmptyComponentProperty } from '../../../infra-model'; | ||
import { fromEntries } from '../../../utils'; | ||
import { JSONSerializable, Serialized } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
import { SerializedComponentPropertyArray, SerializedComponentPropertyPrimitive, SerializedComponentPropertyRecord } from '../../serialized-interfaces/infra-model/serialized-component-property'; | ||
export function componentPropertyArrayDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable { | ||
const serializedComponentProperty = obj as SerializedComponentPropertyArray; | ||
export function componentPropertyArrayDeserializer( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): JSONSerializable { | ||
const serializedComponentProperty = obj as SerializedComponentPropertyArray; | ||
return new ComponentPropertyArray( | ||
serializedComponentProperty.value.map(v => deserialize(v) as ComponentPropertyValue), | ||
serializedComponentProperty.componentUpdateType | ||
); | ||
return new ComponentPropertyArray( | ||
serializedComponentProperty.value.map(v => deserialize(v) as ComponentPropertyValue), | ||
serializedComponentProperty.componentUpdateType, | ||
); | ||
} | ||
export function componentPropertyRecordDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable { | ||
const serializedComponentProperty = obj as SerializedComponentPropertyRecord; | ||
export function componentPropertyRecordDeserializer( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): JSONSerializable { | ||
const serializedComponentProperty = obj as SerializedComponentPropertyRecord; | ||
return new ComponentPropertyRecord( | ||
fromEntries(Object.entries(serializedComponentProperty.value).map(([k,v]) => [k, deserialize(v) as ComponentPropertyValue])), | ||
serializedComponentProperty.componentUpdateType | ||
); | ||
return new ComponentPropertyRecord( | ||
fromEntries(Object.entries(serializedComponentProperty.value) | ||
.map(([k,v]) => [k, deserialize(v) as ComponentPropertyValue])), | ||
serializedComponentProperty.componentUpdateType, | ||
); | ||
} | ||
export function componentPropertyPrimitiveDeserializer(obj: Serialized): JSONSerializable { | ||
const serializedComponentProperty = obj as SerializedComponentPropertyPrimitive; | ||
const serializedComponentProperty = obj as SerializedComponentPropertyPrimitive; | ||
return new ComponentPropertyPrimitive( | ||
serializedComponentProperty.value, | ||
serializedComponentProperty.componentUpdateType | ||
); | ||
return new ComponentPropertyPrimitive( | ||
serializedComponentProperty.value, | ||
serializedComponentProperty.componentUpdateType, | ||
); | ||
} | ||
export function componentPropertyEmptyDeserializer(): JSONSerializable { | ||
return new EmptyComponentProperty(); | ||
return new EmptyComponentProperty(); | ||
} |
@@ -1,25 +0,28 @@ | ||
import { Component, DependencyRelationship } from "../../../infra-model"; | ||
import { JSONSerializable, Serialized } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { SerializedDependencyRelationship } from "../../serialized-interfaces/infra-model/serialized-relationship"; | ||
import { Component, DependencyRelationship } from '../../../infra-model'; | ||
import { JSONSerializable, Serialized } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
import { SerializedDependencyRelationship } from '../../serialized-interfaces/infra-model/serialized-relationship'; | ||
export function dependencyRelationshipDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable { | ||
const serializedDependencyRelationship = obj as SerializedDependencyRelationship; | ||
export function dependencyRelationshipDeserializer( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): JSONSerializable { | ||
const serializedDependencyRelationship = obj as SerializedDependencyRelationship; | ||
const target = deserialize(serializedDependencyRelationship.target) as Component; | ||
const source = deserialize(serializedDependencyRelationship.source) as Component; | ||
const target = deserialize(serializedDependencyRelationship.target) as Component; | ||
const source = deserialize(serializedDependencyRelationship.source) as Component; | ||
const relationship = new DependencyRelationship( | ||
source, | ||
target, | ||
serializedDependencyRelationship.type, | ||
{ | ||
targetAttributePath: serializedDependencyRelationship.targetAttributePath, | ||
sourcePropertyPath: serializedDependencyRelationship.sourcePropertyPath | ||
} | ||
); | ||
const relationship = new DependencyRelationship( | ||
source, | ||
target, | ||
serializedDependencyRelationship.type, | ||
{ | ||
targetAttributePath: serializedDependencyRelationship.targetAttributePath, | ||
sourcePropertyPath: serializedDependencyRelationship.sourcePropertyPath, | ||
}, | ||
); | ||
source.addOutgoing(relationship); | ||
source.addOutgoing(relationship); | ||
return relationship; | ||
return relationship; | ||
} |
@@ -1,13 +0,16 @@ | ||
import { Component, InfraModel, Relationship } from "../../../infra-model"; | ||
import { JSONSerializable, Serialized } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { SerializedInfraModel } from "../../serialized-interfaces/infra-model/serialized-infra-model"; | ||
import { Component, InfraModel, Relationship } from '../../../infra-model'; | ||
import { JSONSerializable, Serialized } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
import { SerializedInfraModel } from '../../serialized-interfaces/infra-model/serialized-infra-model'; | ||
export function infraModelDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable { | ||
const serializedInfraModel = obj as SerializedInfraModel; | ||
export function infraModelDeserializer( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): JSONSerializable { | ||
const serializedInfraModel = obj as SerializedInfraModel; | ||
return new InfraModel( | ||
serializedInfraModel.components.map(c => deserialize(c) as Component), | ||
serializedInfraModel.relationships.map(r => deserialize(r) as Relationship), | ||
); | ||
return new InfraModel( | ||
serializedInfraModel.components.map(c => deserialize(c) as Component), | ||
serializedInfraModel.relationships.map(r => deserialize(r) as Relationship), | ||
); | ||
} |
@@ -1,21 +0,24 @@ | ||
import { Component, StructuralRelationship } from "../../../infra-model"; | ||
import { JSONSerializable, Serialized } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { SerializedRelationship } from "../../serialized-interfaces/infra-model/serialized-relationship"; | ||
import { Component, StructuralRelationship } from '../../../infra-model'; | ||
import { JSONSerializable, Serialized } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
import { SerializedRelationship } from '../../serialized-interfaces/infra-model/serialized-relationship'; | ||
export function structuralRelationshipDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable { | ||
const serializedStructuralRelationship = obj as SerializedRelationship; | ||
export function structuralRelationshipDeserializer( | ||
obj: Serialized, | ||
deserialize: (obj: SerializationID) => JSONSerializable, | ||
): JSONSerializable { | ||
const serializedStructuralRelationship = obj as SerializedRelationship; | ||
const target = deserialize(serializedStructuralRelationship.target) as Component; | ||
const source = deserialize(serializedStructuralRelationship.source) as Component; | ||
const target = deserialize(serializedStructuralRelationship.target) as Component; | ||
const source = deserialize(serializedStructuralRelationship.source) as Component; | ||
const relationship = new StructuralRelationship( | ||
source, | ||
target, | ||
serializedStructuralRelationship.type | ||
); | ||
const relationship = new StructuralRelationship( | ||
source, | ||
target, | ||
serializedStructuralRelationship.type, | ||
); | ||
source.addOutgoing(relationship); | ||
source.addOutgoing(relationship); | ||
return relationship; | ||
return relationship; | ||
} |
@@ -1,17 +0,17 @@ | ||
import { Transition } from "../../model-diffing"; | ||
import { JSONSerializable, Serialized } from "../json-serializable"; | ||
import { SerializationID } from "../json-serializer"; | ||
import { SerializedTransition } from "../serialized-interfaces/infra-model-diff/serialized-transition"; | ||
import { Transition } from '../../model-diffing'; | ||
import { JSONSerializable, Serialized } from '../json-serializable'; | ||
import { SerializationID } from '../json-serializer'; | ||
import { SerializedTransition } from '../serialized-interfaces/infra-model-diff/serialized-transition'; | ||
export function transitionDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => any): JSONSerializable { | ||
const serialized = obj as SerializedTransition; | ||
const serialized = obj as SerializedTransition; | ||
const deserializeVersion = (version: SerializationID | {value: Serialized }) => | ||
typeof version === 'object' ? version.value : deserialize(version); | ||
const deserializeVersion = (version: SerializationID | {value: Serialized }) => | ||
typeof version === 'object' ? version.value : deserialize(version); | ||
return new Transition({ | ||
v1: serialized.v1 ? deserializeVersion(serialized.v1) : undefined, | ||
v2: serialized.v2 ? deserializeVersion(serialized.v2) : undefined, | ||
}); | ||
return new Transition({ | ||
v1: serialized.v1 ? deserializeVersion(serialized.v1) : undefined, | ||
v2: serialized.v2 ? deserializeVersion(serialized.v2) : undefined, | ||
}); | ||
} |
@@ -0,40 +1,40 @@ | ||
import { classToDeserializer } from './deserializer-mapping'; | ||
import { JSONSerializable, Serialized } from './json-serializable'; | ||
import { SerializationID } from './json-serializer'; | ||
import { classToDeserializer } from './deserializer-mapping'; | ||
export class JSONDeserializer<T extends JSONSerializable> { | ||
private readonly deserializedObjects: Map<SerializationID, any> = new Map(); | ||
private objects: {class: string, content: Serialized}[]; | ||
public deserialize(str: string): T { | ||
const obj = JSON.parse(str); | ||
if(typeof obj !== 'object' || obj === null || Array.isArray(obj)){ | ||
throw Error("Cannot deserialize string as it does not represent an object"); | ||
} else if(typeof obj.entryPointId !== 'number'){ | ||
throw Error("Cannot deserialize: entry point id not found"); | ||
} | ||
this.objects = obj.objects; | ||
return this.deserializeObject(obj.entryPointId) as T; | ||
private readonly deserializedObjects: Map<SerializationID, any> = new Map(); | ||
private objects: {class: string, content: Serialized}[]; | ||
public deserialize(str: string): T { | ||
const obj = JSON.parse(str); | ||
if(typeof obj !== 'object' || obj === null || Array.isArray(obj)){ | ||
throw Error('Cannot deserialize string as it does not represent an object'); | ||
} else if(typeof obj.entryPointId !== 'number'){ | ||
throw Error('Cannot deserialize: entry point id not found'); | ||
} | ||
this.objects = obj.objects; | ||
return this.deserializeObject(obj.entryPointId) as T; | ||
} | ||
private deserializeObject(id: SerializationID): JSONSerializable { | ||
let createdObj = this.deserializedObjects.get(id); | ||
private deserializeObject(id: SerializationID): JSONSerializable { | ||
let createdObj = this.deserializedObjects.get(id); | ||
if(!createdObj){ | ||
if(this.objects.length <= id){ | ||
throw Error("SerializationID could not be found"); | ||
} | ||
if(!createdObj){ | ||
if(this.objects.length <= id){ | ||
throw Error('SerializationID could not be found'); | ||
} | ||
const objectDeserializer = classToDeserializer[this.objects[id].class]; | ||
if(!objectDeserializer) | ||
throw Error(`Object deserializer for class ${this.objects[id].class} is not configured`); | ||
createdObj = objectDeserializer(this.objects[id].content, this.deserializeObject.bind(this)); | ||
this.deserializedObjects.set(id, createdObj); | ||
} | ||
return createdObj; | ||
const objectDeserializer = classToDeserializer[this.objects[id].class]; | ||
if(!objectDeserializer) | ||
throw Error(`Object deserializer for class ${this.objects[id].class} is not configured`); | ||
createdObj = objectDeserializer(this.objects[id].content, this.deserializeObject.bind(this)); | ||
this.deserializedObjects.set(id, createdObj); | ||
} | ||
return createdObj; | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import { SerializationID } from "./json-serializer"; | ||
import { SerializationID } from './json-serializer'; | ||
@@ -14,3 +14,3 @@ type SerializablePrimitive = string | number | boolean | undefined | null; | ||
export interface JSONSerializable { | ||
/** | ||
/** | ||
* This method converts an object into a serializable object. | ||
@@ -21,11 +21,14 @@ * Offers a callback to serialize its references. | ||
*/ | ||
toSerialized(serialize: (obj: JSONSerializable) => SerializationID, serializeCustom: (obj: any, serializationClass: string, serialized: Serialized) => SerializationID): Serialized; | ||
toSerialized( | ||
serialize: (obj: JSONSerializable) => SerializationID, | ||
serializeCustom: (obj: any, serializationClass: string, serialized: Serialized) => SerializationID | ||
): Serialized; | ||
getSerializationClass(): string; | ||
getSerializationClass(): string; | ||
} | ||
export function isJSONSerializable(o: any): o is JSONSerializable { | ||
return typeof o.toSerialized === 'function' | ||
return typeof o.toSerialized === 'function' | ||
&& typeof o.getSerializationClass === 'function' | ||
&& typeof o.getSerializationClass() === 'string'; | ||
&& typeof o.getSerializationClass() === 'string'; | ||
} |
@@ -6,31 +6,36 @@ import { JSONSerializable, Serialized } from './json-serializable'; | ||
export class JSONSerializer { | ||
private readonly encodedReferences: Map<JSONSerializable, SerializationID> = new Map(); | ||
private readonly objectsToWrite: Serialized[] = []; | ||
public add(obj: JSONSerializable): SerializationID { | ||
const id = this.encodedReferences.get(obj); | ||
if(!id){ //for performance. Would not want to serialize the object if it already exists | ||
return this.addCustom(obj, obj.getSerializationClass(), obj.toSerialized(this.add.bind(this), this.addCustom.bind(this))); | ||
} | ||
return id; | ||
private readonly encodedReferences: Map<JSONSerializable, SerializationID> = new Map(); | ||
private readonly objectsToWrite: Serialized[] = []; | ||
public add(obj: JSONSerializable): SerializationID { | ||
const id = this.encodedReferences.get(obj); | ||
if(!id){ //for performance. Would not want to serialize the object if it already exists | ||
return this.addCustom( | ||
obj, | ||
obj.getSerializationClass(), | ||
obj.toSerialized(this.add.bind(this), | ||
this.addCustom.bind(this)), | ||
); | ||
} | ||
return id; | ||
} | ||
public addCustom(obj: any, serializerClass: string, serialized: Serialized): SerializationID { | ||
let id = this.encodedReferences.get(obj); | ||
if(!id){ | ||
id = this.objectsToWrite.length; | ||
this.encodedReferences.set(obj, id); | ||
this.objectsToWrite.push({ | ||
class: serializerClass, | ||
content: serialized | ||
}); | ||
} | ||
return id; | ||
public addCustom(obj: any, serializerClass: string, serialized: Serialized): SerializationID { | ||
let id = this.encodedReferences.get(obj); | ||
if(!id){ | ||
id = this.objectsToWrite.length; | ||
this.encodedReferences.set(obj, id); | ||
this.objectsToWrite.push({ | ||
class: serializerClass, | ||
content: serialized, | ||
}); | ||
} | ||
public serialize(obj: JSONSerializable): string{ | ||
const entryPointId = this.add(obj); | ||
return JSON.stringify({entryPointId, objects: this.objectsToWrite}); | ||
} | ||
return id; | ||
} | ||
public serialize(obj: JSONSerializable): string{ | ||
const entryPointId = this.add(obj); | ||
return JSON.stringify({entryPointId, objects: this.objectsToWrite}); | ||
} | ||
} |
export enum SerializationClasses { | ||
// INFRA MODEL | ||
COMPONENT = "Component", | ||
STRUCTURAL_RELATIONSHIP = "StructuralRelationship", | ||
DEPENDENCY_RELATIONSHIP = "DependencyRelationship", | ||
COMPONENT_PROPERTY_RECORD = "ComponentPropertyRecord", | ||
COMPONENT_PROPERTY_ARRAY = "ComponentPropertyArray", | ||
COMPONENT_PROPERTY_PRIMITIVE = "ComponentPropertyPrimitive", | ||
COMPONENT_PROPERTY_EMPTY = "ComponentPropertyEmpty", | ||
INFRA_MODEL = "InfraModel", | ||
// INFRA MODEL | ||
COMPONENT = 'Component', | ||
STRUCTURAL_RELATIONSHIP = 'StructuralRelationship', | ||
DEPENDENCY_RELATIONSHIP = 'DependencyRelationship', | ||
COMPONENT_PROPERTY_RECORD = 'ComponentPropertyRecord', | ||
COMPONENT_PROPERTY_ARRAY = 'ComponentPropertyArray', | ||
COMPONENT_PROPERTY_PRIMITIVE = 'ComponentPropertyPrimitive', | ||
COMPONENT_PROPERTY_EMPTY = 'ComponentPropertyEmpty', | ||
INFRA_MODEL = 'InfraModel', | ||
// INFRA MODEL DIFF | ||
INFRA_MODEL_DIFF = "InfraModelDiff", | ||
TRANSITION = "Transition", | ||
INSERT_COMPONENT_OPERATION = "InsertComponentOperation", | ||
REMOVE_COMPONENT_OPERATION = "RemoveComponentOperation", | ||
REPLACE_COMPONENT_OPERATION = "ReplaceComponentOperation", | ||
RENAME_COMPONENT_OPERATION = "RenameComponentOperation", | ||
INSERT_OUTGOING_RELATIONSHIP_COMPONENT_OPERATION = "InsertOutgoingRelationshipComponentOperation", | ||
REMOVE_OUTGOING_RELATIONSHIP_COMPONENT_OPERATION = "RemoveOutgoingRelationshipComponentOperation", | ||
UPDATE_OUTGOING_RELATIONSHIP_COMPONENT_OPERATION = "UpdateOutgoingRelationshipComponentOperation", | ||
INSERT_PROPERTY_COMPONENT_OPERATION = "InsertPropertyComponentOperation", | ||
REMOVE_PROPERTY_COMPONENT_OPERATION = "RemovePropertyComponentOperation", | ||
UPDATE_PROPERTY_COMPONENT_OPERATION = "UpdatePropertyComponentOperation", | ||
MOVE_PROPERTY_COMPONENT_OPERATION = "MovePropertyComponentOperation", | ||
// INFRA MODEL DIFF | ||
INFRA_MODEL_DIFF = 'InfraModelDiff', | ||
TRANSITION = 'Transition', | ||
INSERT_COMPONENT_OPERATION = 'InsertComponentOperation', | ||
REMOVE_COMPONENT_OPERATION = 'RemoveComponentOperation', | ||
REPLACE_COMPONENT_OPERATION = 'ReplaceComponentOperation', | ||
RENAME_COMPONENT_OPERATION = 'RenameComponentOperation', | ||
INSERT_OUTGOING_RELATIONSHIP_COMPONENT_OPERATION = 'InsertOutgoingRelationshipComponentOperation', | ||
REMOVE_OUTGOING_RELATIONSHIP_COMPONENT_OPERATION = 'RemoveOutgoingRelationshipComponentOperation', | ||
UPDATE_OUTGOING_RELATIONSHIP_COMPONENT_OPERATION = 'UpdateOutgoingRelationshipComponentOperation', | ||
INSERT_PROPERTY_COMPONENT_OPERATION = 'InsertPropertyComponentOperation', | ||
REMOVE_PROPERTY_COMPONENT_OPERATION = 'RemovePropertyComponentOperation', | ||
UPDATE_PROPERTY_COMPONENT_OPERATION = 'UpdatePropertyComponentOperation', | ||
MOVE_PROPERTY_COMPONENT_OPERATION = 'MovePropertyComponentOperation', | ||
AGGREGATION = "Aggregation", | ||
AGGREGATION = 'Aggregation', | ||
CHANGE_ANALYSIS_REPORT = "ChangeAnalysisReport", | ||
CHANGE_ANALYSIS_REPORT = 'ChangeAnalysisReport', | ||
} |
@@ -1,10 +0,10 @@ | ||
import { AggCharacteristicValue } from "../../../aggregations"; | ||
import { SerializedRecord } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { AggCharacteristicValue } from '../../../aggregations'; | ||
import { SerializedRecord } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export interface SerializedAggregation extends SerializedRecord { | ||
readonly entities: SerializationID[], | ||
readonly characteristics: Record<string, AggCharacteristicValue>, | ||
readonly subAggs?: SerializationID[], | ||
readonly descriptions?: string[] | ||
readonly entities: SerializationID[], | ||
readonly characteristics: Record<string, AggCharacteristicValue>, | ||
readonly subAggs?: SerializationID[], | ||
readonly descriptions?: string[] | ||
} |
@@ -1,21 +0,21 @@ | ||
import { SerializedRecord } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { SerializedRecord } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export interface SerializedComponentOperation extends SerializedRecord { | ||
cause?: SerializationID, | ||
certainty: string, | ||
componentTransition: SerializationID | ||
cause?: SerializationID, | ||
certainty: string, | ||
componentTransition: SerializationID | ||
} | ||
export interface SerializedOutgoingRelationshipComponentOperation extends SerializedComponentOperation { | ||
relationshipTransition: SerializationID | ||
relationshipTransition: SerializationID | ||
} | ||
export interface SerializedPropertyComponentOperation extends SerializedComponentOperation { | ||
pathTransition: SerializationID, | ||
propertyTransition: SerializationID | ||
pathTransition: SerializationID, | ||
propertyTransition: SerializationID | ||
} | ||
export interface SerializedUpdatePropertyComponentOperation extends SerializedPropertyComponentOperation { | ||
innerOperations?: SerializationID[] | ||
innerOperations?: SerializationID[] | ||
} |
@@ -1,8 +0,8 @@ | ||
import { SerializedRecord } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { SerializedRecord } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export interface SerializedInfraModelDiff extends SerializedRecord { | ||
readonly componentOperations: SerializationID[], | ||
readonly componentTransitions: SerializationID[], | ||
readonly infraModelTransition: SerializationID | ||
readonly componentOperations: SerializationID[], | ||
readonly componentTransitions: SerializationID[], | ||
readonly infraModelTransition: SerializationID | ||
} |
@@ -1,7 +0,7 @@ | ||
import { Serialized, SerializedRecord } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { Serialized, SerializedRecord } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export interface SerializedTransition extends SerializedRecord { | ||
v1?: SerializationID | {value: Serialized }, | ||
v2?: SerializationID | {value: Serialized }, | ||
v1?: SerializationID | {value: Serialized }, | ||
v2?: SerializationID | {value: Serialized }, | ||
} |
@@ -1,24 +0,24 @@ | ||
import { ComponentUpdateType, PropertyPrimitive } from "../../../infra-model"; | ||
import { SerializedRecord } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { ComponentUpdateType, PropertyPrimitive } from '../../../infra-model'; | ||
import { SerializedRecord } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export interface SerializedComponentProperty extends SerializedRecord { | ||
value: PropertyPrimitive | SerializationID[] | Record<string, SerializationID> | undefined, | ||
componentUpdateType: ComponentUpdateType | ||
value: PropertyPrimitive | SerializationID[] | Record<string, SerializationID> | undefined, | ||
componentUpdateType: ComponentUpdateType | ||
} | ||
export interface SerializedComponentPropertyRecord extends SerializedComponentProperty { | ||
value: Record<string, SerializationID> | ||
value: Record<string, SerializationID> | ||
} | ||
export interface SerializedComponentPropertyArray extends SerializedComponentProperty { | ||
value: SerializationID[] | ||
value: SerializationID[] | ||
} | ||
export interface SerializedComponentPropertyPrimitive extends SerializedComponentProperty { | ||
value: PropertyPrimitive | ||
value: PropertyPrimitive | ||
} | ||
export interface SerializedComponentPropertyEmpty extends SerializedComponentProperty { | ||
value: undefined | ||
value: undefined | ||
} |
@@ -1,9 +0,9 @@ | ||
import { SerializedRecord } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { SerializedRecord } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export interface SerializedComponent extends SerializedRecord { | ||
properties: SerializationID, | ||
type: string, | ||
subtype?: string, | ||
name: string | ||
properties: SerializationID, | ||
type: string, | ||
subtype?: string, | ||
name: string | ||
} |
@@ -1,7 +0,7 @@ | ||
import { SerializedRecord } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { SerializedRecord } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export interface SerializedInfraModel extends SerializedRecord { | ||
components: SerializationID[], | ||
relationships: SerializationID[], | ||
} | ||
components: SerializationID[], | ||
relationships: SerializationID[], | ||
} |
@@ -1,14 +0,14 @@ | ||
import { PropertyPath } from "../../../infra-model"; | ||
import { SerializedRecord } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { PropertyPath } from '../../../infra-model'; | ||
import { SerializedRecord } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export interface SerializedRelationship extends SerializedRecord { | ||
readonly target: SerializationID, | ||
readonly source: SerializationID, | ||
readonly type: string, | ||
readonly target: SerializationID, | ||
readonly source: SerializationID, | ||
readonly type: string, | ||
} | ||
export interface SerializedDependencyRelationship extends SerializedRelationship { | ||
readonly sourcePropertyPath: PropertyPath, | ||
readonly targetAttributePath: PropertyPath | ||
readonly sourcePropertyPath: PropertyPath, | ||
readonly targetAttributePath: PropertyPath | ||
} |
@@ -1,10 +0,10 @@ | ||
import { RuleEffect } from "../../rules"; | ||
import { SerializedRecord } from "../json-serializable"; | ||
import { SerializationID } from "../json-serializer"; | ||
import { RuleEffect } from '../../rules'; | ||
import { SerializedRecord } from '../json-serializable'; | ||
import { SerializationID } from '../json-serializer'; | ||
export interface SerializedChangeAnalysisReport extends SerializedRecord { | ||
readonly infraModelDiff: SerializationID, | ||
readonly aggregations: SerializationID[], | ||
readonly aggregationsPerComponent: Record<SerializationID, SerializationID[]>, | ||
readonly rulesOutput: Record<SerializationID, RuleEffect>, | ||
readonly infraModelDiff: SerializationID, | ||
readonly aggregations: SerializationID[], | ||
readonly aggregationsPerComponent: Record<SerializationID, SerializationID[]>, | ||
readonly rulesOutput: Record<SerializationID, RuleEffect>, | ||
} |
@@ -1,8 +0,8 @@ | ||
import { JSONSerializable } from "../export/json-serializable"; | ||
import { SerializationID } from "../export/json-serializer"; | ||
import { SerializationClasses } from "../export/serialization-classes"; | ||
import { SerializedComponentProperty, SerializedComponentPropertyArray, SerializedComponentPropertyEmpty, SerializedComponentPropertyPrimitive, SerializedComponentPropertyRecord } from "../export/serialized-interfaces/infra-model/serialized-component-property"; | ||
import { flatMap, fromEntries } from "../utils"; | ||
import { ModelEntity, OutgoingReferences } from "./model-entity"; | ||
import { ModelEntityTypes } from "./model-entity-types"; | ||
import { JSONSerializable } from '../export/json-serializable'; | ||
import { SerializationID } from '../export/json-serializer'; | ||
import { SerializationClasses } from '../export/serialization-classes'; | ||
import { SerializedComponentProperty, SerializedComponentPropertyArray, SerializedComponentPropertyEmpty, SerializedComponentPropertyPrimitive, SerializedComponentPropertyRecord } from '../export/serialized-interfaces/infra-model/serialized-component-property'; | ||
import { flatMap, fromEntries } from '../utils'; | ||
import { ModelEntity, OutgoingReferences } from './model-entity'; | ||
import { ModelEntityTypes } from './model-entity-types'; | ||
@@ -14,5 +14,5 @@ /** | ||
export enum ComponentUpdateType { | ||
NONE = 'None', | ||
REPLACEMENT = 'Replacement', | ||
POSSIBLE_REPLACEMENT = 'PossibleReplacement', | ||
NONE = 'None', | ||
REPLACEMENT = 'Replacement', | ||
POSSIBLE_REPLACEMENT = 'PossibleReplacement', | ||
} | ||
@@ -29,136 +29,140 @@ | ||
type NodeData = { | ||
readonly componentUpdateType?: ComponentUpdateType, | ||
readonly componentUpdateType?: ComponentUpdateType, | ||
} | ||
/* TODO Value*/ | ||
export abstract class ComponentPropertyValue<ND extends NodeData = any, OR extends OutgoingReferences = any> | ||
extends ModelEntity<ND, OR> | ||
implements JSONSerializable { | ||
export abstract class ComponentPropertyValue/* TODO Value*/<ND extends NodeData = any, OR extends OutgoingReferences = any> | ||
extends ModelEntity<ND, OR> | ||
implements JSONSerializable { | ||
public get componentUpdateType(): ComponentUpdateType { return this.nodeData.componentUpdateType ?? ComponentUpdateType.NONE; } | ||
public abstract get value(): ComponentPropertyValueType | undefined; | ||
public get componentUpdateType(): ComponentUpdateType { | ||
return this.nodeData.componentUpdateType ?? ComponentUpdateType.NONE; | ||
} | ||
constructor( | ||
data: ND, | ||
outgoingReferences: OR, | ||
) { | ||
super(ModelEntityTypes.property, data, outgoingReferences); | ||
} | ||
public abstract get value(): ComponentPropertyValueType | undefined; | ||
getRecord(): Record<string, ComponentPropertyValue> { | ||
if(!this.isRecord()){ | ||
throw new ComponentPropertyAccessError("Trying to read component property as Record, but it is not one"); | ||
} | ||
return this.value as Record<string, ComponentPropertyValue>; | ||
} | ||
constructor( | ||
data: ND, | ||
outgoingReferences: OR, | ||
) { | ||
super(ModelEntityTypes.property, data, outgoingReferences); | ||
} | ||
getArray(): Array<ComponentPropertyValue> { | ||
if(!this.isArray()){ | ||
throw new ComponentPropertyAccessError("Trying to read component property as an Array, but it is not one"); | ||
} | ||
return this.value as Array<ComponentPropertyValue>; | ||
getRecord(): Record<string, ComponentPropertyValue> { | ||
if(!this.isRecord()){ | ||
throw new ComponentPropertyAccessError('Trying to read component property as Record, but it is not one'); | ||
} | ||
return this.value as Record<string, ComponentPropertyValue>; | ||
} | ||
getCollection(): Array<ComponentPropertyValue> | Record<string, ComponentPropertyValue> { | ||
if(this.isPrimitive()){ | ||
throw new ComponentPropertyAccessError("Trying to read component property as a Collection, but it is not one"); | ||
} | ||
return this.value as Array<ComponentPropertyValue> | Record<string, ComponentPropertyValue>; | ||
getArray(): Array<ComponentPropertyValue> { | ||
if(!this.isArray()){ | ||
throw new ComponentPropertyAccessError('Trying to read component property as an Array, but it is not one'); | ||
} | ||
return this.value as Array<ComponentPropertyValue>; | ||
} | ||
getPrimitive(): PropertyPrimitive { | ||
if(!this.isPrimitive()){ | ||
throw new ComponentPropertyAccessError("Trying to read component property as a primitive, but it is not one"); | ||
} | ||
return this.value as PropertyPrimitive; | ||
getCollection(): Array<ComponentPropertyValue> | Record<string, ComponentPropertyValue> { | ||
if(this.isPrimitive()){ | ||
throw new ComponentPropertyAccessError('Trying to read component property as a Collection, but it is not one'); | ||
} | ||
return this.value as Array<ComponentPropertyValue> | Record<string, ComponentPropertyValue>; | ||
} | ||
isRecord(): this is ComponentPropertyRecord { | ||
return this instanceof ComponentPropertyRecord; | ||
getPrimitive(): PropertyPrimitive { | ||
if(!this.isPrimitive()){ | ||
throw new ComponentPropertyAccessError('Trying to read component property as a primitive, but it is not one'); | ||
} | ||
return this.value as PropertyPrimitive; | ||
} | ||
isArray(): this is ComponentPropertyArray { | ||
return this instanceof ComponentPropertyArray; | ||
} | ||
isRecord(): this is ComponentPropertyRecord { | ||
return this instanceof ComponentPropertyRecord; | ||
} | ||
isPrimitive(): this is ComponentPropertyPrimitive { | ||
return this instanceof ComponentPropertyPrimitive; | ||
} | ||
isArray(): this is ComponentPropertyArray { | ||
return this instanceof ComponentPropertyArray; | ||
} | ||
getPropertyInPath(path: PropertyPath): ComponentPropertyValue { | ||
if(path.length === 0){ | ||
return this; | ||
} else if(typeof path[0] === 'number') { | ||
if(this.getArray().length <= path[0]) | ||
throw new ComponentPropertyAccessError(`Component property array does not have any property in index ${path[0]}`); | ||
return this.getArray()[path[0]].getPropertyInPath(path.slice(1)); | ||
} else if(typeof path[0] === 'string') { | ||
if(!this.getRecord()[path[0]]) | ||
throw new ComponentPropertyAccessError(`Component property does not have any component for key ${path[0]}`); | ||
return this.getRecord()[path[0]].getPropertyInPath(path.slice(1)); | ||
} | ||
throw Error(`Path includes non valid value: ${path[0]}`); | ||
} | ||
isPrimitive(): this is ComponentPropertyPrimitive { | ||
return this instanceof ComponentPropertyPrimitive; | ||
} | ||
public explode(): ComponentPropertyValue[]{ | ||
if(this.isPrimitive() || this.value === undefined) return [this]; | ||
return flatMap(Object.values(this.value), v => v.explode()); | ||
getPropertyInPath(path: PropertyPath): ComponentPropertyValue { | ||
if(path.length === 0){ | ||
return this; | ||
} else if(typeof path[0] === 'number') { | ||
if(this.getArray().length <= path[0]) | ||
throw new ComponentPropertyAccessError(`Component property array does not have any property in index ${path[0]}`); | ||
return this.getArray()[path[0]].getPropertyInPath(path.slice(1)); | ||
} else if(typeof path[0] === 'string') { | ||
if(!this.getRecord()[path[0]]) | ||
throw new ComponentPropertyAccessError(`Component property does not have any component for key ${path[0]}`); | ||
return this.getRecord()[path[0]].getPropertyInPath(path.slice(1)); | ||
} | ||
throw Error(`Path includes non valid value: ${path[0]}`); | ||
} | ||
public abstract toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedComponentProperty; | ||
public explode(): ComponentPropertyValue[]{ | ||
if(this.isPrimitive() || this.value === undefined) return [this]; | ||
public abstract getSerializationClass(): string; | ||
return flatMap(Object.values(this.value), v => v.explode()); | ||
} | ||
public toJSON(): ComponentPropertyValueType | undefined{ | ||
return this.value; | ||
} | ||
public abstract toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedComponentProperty; | ||
public abstract getSerializationClass(): string; | ||
public toJSON(): ComponentPropertyValueType | undefined{ | ||
return this.value; | ||
} | ||
} | ||
interface NodeDataPrimitive extends NodeData { | ||
readonly value: PropertyPrimitive; | ||
readonly value: PropertyPrimitive; | ||
} | ||
type OutgoingCollectionReferences = { | ||
readonly value: PropertyCollectionValue; | ||
readonly value: PropertyCollectionValue; | ||
} | ||
export abstract class ComponentCollectionProperty extends ComponentPropertyValue<NodeData, OutgoingCollectionReferences> { | ||
public get value(): ComponentPropertyValueType { | ||
return this.outgoingNodeReferences.value; | ||
} | ||
export abstract class ComponentCollectionProperty | ||
extends ComponentPropertyValue<NodeData, OutgoingCollectionReferences> | ||
{ | ||
public get value(): ComponentPropertyValueType { | ||
return this.outgoingNodeReferences.value; | ||
} | ||
} | ||
export class ComponentPropertyRecord extends ComponentCollectionProperty { | ||
constructor(value: Record<string, ComponentPropertyValue>, componentUpdateType?: ComponentUpdateType){ | ||
super({componentUpdateType}, {value}); | ||
} | ||
constructor(value: Record<string, ComponentPropertyValue>, componentUpdateType?: ComponentUpdateType){ | ||
super({componentUpdateType}, {value}); | ||
} | ||
public toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedComponentPropertyRecord { | ||
return { | ||
value: fromEntries(Object.entries(this.getRecord()).map(([k, v]) => [k, serialize(v)])), | ||
componentUpdateType: this.componentUpdateType, | ||
}; | ||
} | ||
public toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedComponentPropertyRecord { | ||
return { | ||
value: fromEntries(Object.entries(this.getRecord()).map(([k, v]) => [k, serialize(v)])), | ||
componentUpdateType: this.componentUpdateType, | ||
}; | ||
} | ||
public getSerializationClass(): string{ | ||
return SerializationClasses.COMPONENT_PROPERTY_RECORD; | ||
} | ||
public getSerializationClass(): string{ | ||
return SerializationClasses.COMPONENT_PROPERTY_RECORD; | ||
} | ||
} | ||
export class ComponentPropertyArray extends ComponentCollectionProperty { | ||
constructor(value: ComponentPropertyValue[], componentUpdateType?: ComponentUpdateType){ | ||
super({componentUpdateType}, {value}); | ||
} | ||
constructor(value: ComponentPropertyValue[], componentUpdateType?: ComponentUpdateType){ | ||
super({componentUpdateType}, {value}); | ||
} | ||
public toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedComponentPropertyArray { | ||
return { | ||
value: this.getArray().map(v => serialize(v)), | ||
componentUpdateType: this.componentUpdateType, | ||
}; | ||
} | ||
public toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedComponentPropertyArray { | ||
return { | ||
value: this.getArray().map(v => serialize(v)), | ||
componentUpdateType: this.componentUpdateType, | ||
}; | ||
} | ||
public getSerializationClass(): string{ | ||
return SerializationClasses.COMPONENT_PROPERTY_ARRAY; | ||
} | ||
public getSerializationClass(): string{ | ||
return SerializationClasses.COMPONENT_PROPERTY_ARRAY; | ||
} | ||
} | ||
@@ -168,39 +172,39 @@ | ||
public get value(): ComponentPropertyValueType { | ||
return this.nodeData.value; | ||
} | ||
public get value(): ComponentPropertyValueType { | ||
return this.nodeData.value; | ||
} | ||
constructor(value: PropertyPrimitive, componentUpdateType?: ComponentUpdateType){ | ||
super({componentUpdateType, value}, {}); | ||
} | ||
constructor(value: PropertyPrimitive, componentUpdateType?: ComponentUpdateType){ | ||
super({componentUpdateType, value}, {}); | ||
} | ||
public toSerialized(): SerializedComponentPropertyPrimitive { | ||
return { | ||
value: this.getPrimitive(), | ||
componentUpdateType: this.componentUpdateType, | ||
}; | ||
} | ||
public toSerialized(): SerializedComponentPropertyPrimitive { | ||
return { | ||
value: this.getPrimitive(), | ||
componentUpdateType: this.componentUpdateType, | ||
}; | ||
} | ||
public getSerializationClass(): string{ | ||
return SerializationClasses.COMPONENT_PROPERTY_PRIMITIVE; | ||
} | ||
public getSerializationClass(): string{ | ||
return SerializationClasses.COMPONENT_PROPERTY_PRIMITIVE; | ||
} | ||
} | ||
export class EmptyComponentProperty extends ComponentPropertyValue { | ||
public get value(): ComponentPropertyValueType | undefined { return undefined; } | ||
constructor(){ | ||
super({},{}); | ||
} | ||
public get value(): ComponentPropertyValueType | undefined { return undefined; } | ||
public toSerialized(): SerializedComponentPropertyEmpty { | ||
return { | ||
value: undefined, | ||
componentUpdateType: this.componentUpdateType | ||
}; | ||
} | ||
constructor(){ | ||
super({},{}); | ||
} | ||
public getSerializationClass(): string{ | ||
return SerializationClasses.COMPONENT_PROPERTY_EMPTY; | ||
} | ||
public toSerialized(): SerializedComponentPropertyEmpty { | ||
return { | ||
value: undefined, | ||
componentUpdateType: this.componentUpdateType, | ||
}; | ||
} | ||
public getSerializationClass(): string{ | ||
return SerializationClasses.COMPONENT_PROPERTY_EMPTY; | ||
} | ||
} |
@@ -1,24 +0,24 @@ | ||
import { JSONSerializable } from "../export/json-serializable"; | ||
import { SerializationID } from "../export/json-serializer"; | ||
import { SerializationClasses } from "../export/serialization-classes"; | ||
import { SerializedComponent } from "../export/serialized-interfaces/infra-model/serialized-component"; | ||
import { ComponentPropertyValue, EmptyComponentProperty } from "./component-property"; | ||
import { ModelEntity } from "./model-entity"; | ||
import { ModelEntityTypes } from "./model-entity-types"; | ||
import { Relationship } from "./relationship"; | ||
import { JSONSerializable } from '../export/json-serializable'; | ||
import { SerializationID } from '../export/json-serializer'; | ||
import { SerializationClasses } from '../export/serialization-classes'; | ||
import { SerializedComponent } from '../export/serialized-interfaces/infra-model/serialized-component'; | ||
import { ComponentPropertyValue, EmptyComponentProperty } from './component-property'; | ||
import { ModelEntity } from './model-entity'; | ||
import { ModelEntityTypes } from './model-entity-types'; | ||
import { Relationship } from './relationship'; | ||
type NodeData = { | ||
readonly type: string; | ||
readonly subtype?: string; | ||
readonly name: string; | ||
readonly type: string; | ||
readonly subtype?: string; | ||
readonly name: string; | ||
} | ||
type OutgoingNodeReferences = { | ||
readonly hasRelationship: Set<Relationship>; | ||
readonly hasProperties: ComponentPropertyValue; | ||
readonly hasRelationship: Set<Relationship>; | ||
readonly hasProperties: ComponentPropertyValue; | ||
} | ||
interface ComponentOptions { | ||
readonly subtype?: string; | ||
readonly properties: ComponentPropertyValue; | ||
readonly subtype?: string; | ||
readonly properties: ComponentPropertyValue; | ||
} | ||
@@ -28,3 +28,3 @@ | ||
* Component is any element of the infrastructure definition | ||
* | ||
* | ||
* Examples include resources, resource groups, sets of configurations, variables, | ||
@@ -35,70 +35,70 @@ * or any other entity that influences the infrastructure deployment or the user's | ||
export class Component extends ModelEntity<NodeData, OutgoingNodeReferences> implements JSONSerializable { | ||
get outgoing(): Set<Relationship>{ return this.outgoingNodeReferences.hasRelationship; } | ||
public incoming: Set<Relationship> = new Set(); | ||
get properties(): ComponentPropertyValue { return this.outgoingNodeReferences.hasProperties; } | ||
get outgoing(): Set<Relationship>{ return this.outgoingNodeReferences.hasRelationship; } | ||
public incoming: Set<Relationship> = new Set(); | ||
/** | ||
get properties(): ComponentPropertyValue { return this.outgoingNodeReferences.hasProperties; } | ||
/** | ||
* properties hold any values that should be tracked | ||
* by the change analysis but do not have any other relevant behaviors | ||
*/ | ||
public get type(): string { return this.nodeData.type; } | ||
public get subtype(): string | undefined { return this.nodeData.subtype; } | ||
public get name(): string { return this.nodeData.name; } | ||
public get type(): string { return this.nodeData.type; } | ||
public get subtype(): string | undefined { return this.nodeData.subtype; } | ||
public get name(): string { return this.nodeData.name; } | ||
constructor(name: string, type: string, options? : ComponentOptions){ | ||
super( | ||
ModelEntityTypes.component, | ||
{ | ||
name, | ||
type, | ||
subtype: options?.subtype, | ||
}, { | ||
hasRelationship: new Set(), | ||
hasProperties: options?.properties ?? new EmptyComponentProperty() | ||
} | ||
); | ||
} | ||
constructor(name: string, type: string, options? : ComponentOptions){ | ||
super( | ||
ModelEntityTypes.component, | ||
{ | ||
name, | ||
type, | ||
subtype: options?.subtype, | ||
}, { | ||
hasRelationship: new Set(), | ||
hasProperties: options?.properties ?? new EmptyComponentProperty(), | ||
}, | ||
); | ||
} | ||
public addOutgoing(relationship: Relationship): void{ | ||
if(relationship.source !== this) | ||
throw Error("Trying to add relationship that does not belong to component"); | ||
this.outgoing.add(relationship); | ||
relationship.target.incoming.add(relationship); | ||
} | ||
public addOutgoing(relationship: Relationship): void{ | ||
if(relationship.source !== this) | ||
throw Error('Trying to add relationship that does not belong to component'); | ||
this.outgoing.add(relationship); | ||
relationship.target.incoming.add(relationship); | ||
} | ||
public addIncoming(relationship: Relationship): void { | ||
if(relationship.target !== this) | ||
throw Error("Trying to add relationship that does not belong to component"); | ||
public addIncoming(relationship: Relationship): void { | ||
if(relationship.target !== this) | ||
throw Error('Trying to add relationship that does not belong to component'); | ||
relationship.source.addOutgoing(relationship); | ||
} | ||
relationship.source.addOutgoing(relationship); | ||
} | ||
public removeOutgoing(relationship: Relationship): void{ | ||
if(relationship.source !== this) | ||
throw Error("Trying to remove relationship that does not belong to component"); | ||
this.outgoing.delete(relationship); | ||
relationship.target.incoming.delete(relationship); | ||
} | ||
public removeOutgoing(relationship: Relationship): void{ | ||
if(relationship.source !== this) | ||
throw Error('Trying to remove relationship that does not belong to component'); | ||
this.outgoing.delete(relationship); | ||
relationship.target.incoming.delete(relationship); | ||
} | ||
public removeIncoming(relationship: Relationship): void { | ||
if(relationship.target !== this) | ||
throw Error("Trying to remove relationship that does not belong to component"); | ||
public removeIncoming(relationship: Relationship): void { | ||
if(relationship.target !== this) | ||
throw Error('Trying to remove relationship that does not belong to component'); | ||
relationship.source.removeOutgoing(relationship); | ||
} | ||
relationship.source.removeOutgoing(relationship); | ||
} | ||
public toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedComponent { | ||
return { | ||
properties: serialize(this.properties), | ||
type: this.type, | ||
subtype: this.subtype, | ||
name: this.name | ||
}; | ||
} | ||
public toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedComponent { | ||
return { | ||
properties: serialize(this.properties), | ||
type: this.type, | ||
subtype: this.subtype, | ||
name: this.name, | ||
}; | ||
} | ||
public getSerializationClass(): string{ | ||
return SerializationClasses.COMPONENT; | ||
} | ||
public getSerializationClass(): string{ | ||
return SerializationClasses.COMPONENT; | ||
} | ||
} |
@@ -1,12 +0,12 @@ | ||
import { JSONSerializable } from "../export/json-serializable"; | ||
import { SerializationID } from "../export/json-serializer"; | ||
import { SerializationClasses } from "../export/serialization-classes"; | ||
import { SerializedDependencyRelationship } from "../export/serialized-interfaces/infra-model/serialized-relationship"; | ||
import { Component } from "./component"; | ||
import { PropertyPath } from "./component-property"; | ||
import { Relationship, RelationshipData } from "./relationship"; | ||
import { JSONSerializable } from '../export/json-serializable'; | ||
import { SerializationID } from '../export/json-serializer'; | ||
import { SerializationClasses } from '../export/serialization-classes'; | ||
import { SerializedDependencyRelationship } from '../export/serialized-interfaces/infra-model/serialized-relationship'; | ||
import { Component } from './component'; | ||
import { PropertyPath } from './component-property'; | ||
import { Relationship, RelationshipData } from './relationship'; | ||
export type DependencyRelationshipOptions = { | ||
readonly sourcePropertyPath?: PropertyPath | ||
readonly targetAttributePath?: PropertyPath | ||
readonly sourcePropertyPath?: PropertyPath | ||
readonly targetAttributePath?: PropertyPath | ||
} | ||
@@ -22,21 +22,21 @@ | ||
public get sourcePropertyPath(): PropertyPath { return this.nodeData.sourcePropertyPath ?? []; } | ||
public get targetAttributePath(): PropertyPath { return this.nodeData.targetAttributePath ?? []; } | ||
public get sourcePropertyPath(): PropertyPath { return this.nodeData.sourcePropertyPath ?? []; } | ||
public get targetAttributePath(): PropertyPath { return this.nodeData.targetAttributePath ?? []; } | ||
constructor(source: Component, target: Component, type: string, options?: DependencyRelationshipOptions){ | ||
super(source, target, {type, ...options}); | ||
} | ||
constructor(source: Component, target: Component, type: string, options?: DependencyRelationshipOptions){ | ||
super(source, target, {type, ...options}); | ||
} | ||
public toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedDependencyRelationship { | ||
return { | ||
...super.toSerialized(serialize), | ||
sourcePropertyPath: this.sourcePropertyPath, | ||
targetAttributePath: this.targetAttributePath | ||
}; | ||
} | ||
public toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedDependencyRelationship { | ||
return { | ||
...super.toSerialized(serialize), | ||
sourcePropertyPath: this.sourcePropertyPath, | ||
targetAttributePath: this.targetAttributePath, | ||
}; | ||
} | ||
public getSerializationClass(): string{ | ||
return SerializationClasses.DEPENDENCY_RELATIONSHIP; | ||
} | ||
public getSerializationClass(): string{ | ||
return SerializationClasses.DEPENDENCY_RELATIONSHIP; | ||
} | ||
} |
@@ -1,13 +0,13 @@ | ||
import { JSONSerializable } from "../export/json-serializable"; | ||
import { SerializationID } from "../export/json-serializer"; | ||
import { SerializationClasses } from "../export/serialization-classes"; | ||
import { SerializedInfraModel } from "../export/serialized-interfaces/infra-model/serialized-infra-model"; | ||
import { Component } from "./component"; | ||
import { ModelEntity } from "./model-entity"; | ||
import { ModelEntityTypes } from "./model-entity-types"; | ||
import { Relationship } from "./relationship"; | ||
import { JSONSerializable } from '../export/json-serializable'; | ||
import { SerializationID } from '../export/json-serializer'; | ||
import { SerializationClasses } from '../export/serialization-classes'; | ||
import { SerializedInfraModel } from '../export/serialized-interfaces/infra-model/serialized-infra-model'; | ||
import { Component } from './component'; | ||
import { ModelEntity } from './model-entity'; | ||
import { ModelEntityTypes } from './model-entity-types'; | ||
import { Relationship } from './relationship'; | ||
type OutgoingNodeReferences = { | ||
components: Component[], | ||
relationships: Relationship[], | ||
components: Component[], | ||
relationships: Relationship[], | ||
} | ||
@@ -17,19 +17,19 @@ | ||
public get components(): Component[] { return this.outgoingNodeReferences.components; } | ||
public get relationships(): Relationship[] { return this.outgoingNodeReferences.relationships; } | ||
public get components(): Component[] { return this.outgoingNodeReferences.components; } | ||
public get relationships(): Relationship[] { return this.outgoingNodeReferences.relationships; } | ||
constructor(components: Component[], relationships: Relationship[]){ | ||
super(ModelEntityTypes.infrastructureState, {}, {components, relationships}); | ||
} | ||
constructor(components: Component[], relationships: Relationship[]){ | ||
super(ModelEntityTypes.infrastructureState, {}, {components, relationships}); | ||
} | ||
public toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedInfraModel { | ||
return { | ||
components: this.components.map(c => serialize(c)), | ||
relationships: this.relationships.map(r => serialize(r)) | ||
}; | ||
} | ||
public toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedInfraModel { | ||
return { | ||
components: this.components.map(c => serialize(c)), | ||
relationships: this.relationships.map(r => serialize(r)), | ||
}; | ||
} | ||
public getSerializationClass(): string{ | ||
return SerializationClasses.INFRA_MODEL; | ||
} | ||
public getSerializationClass(): string{ | ||
return SerializationClasses.INFRA_MODEL; | ||
} | ||
} |
export enum ModelEntityTypes { | ||
property = 'property', | ||
change = 'change', | ||
component = 'component', | ||
relationship = 'relationship', | ||
infrastructureState = 'infrastructureState', | ||
transition = 'transition', | ||
property = 'property', | ||
change = 'change', | ||
component = 'component', | ||
relationship = 'relationship', | ||
infrastructureState = 'infrastructureState', | ||
transition = 'transition', | ||
} |
@@ -6,66 +6,68 @@ import * as fn from 'fifinet'; | ||
export type OutgoingReferences = Record< | ||
string, | ||
Iterable<ModelEntity> | ModelEntity | Record<string, ModelEntity> | undefined | ||
string, | ||
Iterable<ModelEntity> | ModelEntity | Record<string, ModelEntity> | undefined | ||
>; | ||
export class ModelEntity< | ||
ND extends Record<string, Serialized> = any, // vertex data | ||
OR extends OutgoingReferences = any // vertex edge targets | ||
> { | ||
ND extends Record<string, Serialized> = any, // vertex data | ||
OR extends OutgoingReferences = any // vertex edge targets | ||
> { | ||
static idCounter = 0; | ||
static idCounter = 0; | ||
public readonly nodeData: fn.VertexProps<ND> & { entityType: string }; | ||
protected readonly outgoingNodeReferences: OR; | ||
public readonly nodeData: fn.VertexProps<ND> & { entityType: string }; | ||
protected readonly outgoingNodeReferences: OR; | ||
constructor(entityType: string, nodeData: fn.InVertex<ND>, outgoingNodeReferences: OR){ | ||
this.nodeData = { entityType, _id: `${++ModelEntity.idCounter}`, ...nodeData}; | ||
this.outgoingNodeReferences = outgoingNodeReferences; | ||
} | ||
constructor(entityType: string, nodeData: fn.InVertex<ND>, outgoingNodeReferences: OR){ | ||
this.nodeData = { entityType, _id: `${++ModelEntity.idCounter}`, ...nodeData}; | ||
this.outgoingNodeReferences = outgoingNodeReferences; | ||
} | ||
public getOutgoingNodeEdges(): fn.InEdge<{ _label: string; _in: string; _out: string; }>[] { | ||
const createModelEntityEdge = (label: string, e: ModelEntity, key?: string) => ({ | ||
_label: label, | ||
_in: e.nodeData._id, | ||
_out: this.nodeData._id, | ||
key | ||
}); | ||
return this.explodeDirectReferences().filter(({ref}) => isDefined(ref)).map(({refName, ref, key}) => createModelEntityEdge(refName, ref, key)); | ||
} | ||
public getOutgoingNodeEdges(): fn.InEdge<{ _label: string; _in: string; _out: string; }>[] { | ||
const createModelEntityEdge = (label: string, e: ModelEntity, key?: string) => ({ | ||
_label: label, | ||
_in: e.nodeData._id, | ||
_out: this.nodeData._id, | ||
key, | ||
}); | ||
private explodeDirectReferences(): {refName: string, ref: ModelEntity, key?: string}[] { | ||
const createInfoObj = (label: string, e: ModelEntity, key?: string) => ({ | ||
refName: label, ref: e, key | ||
}); | ||
return flatMap(Object.entries(this.outgoingNodeReferences), ([k, v]) => { | ||
if(v instanceof ModelEntity){ | ||
return [createInfoObj(k, v)]; | ||
} if(v instanceof Set) { | ||
return [...v].map(entity => createInfoObj(k, entity)); | ||
} else if(typeof v === 'object' && v !== null) { // arrays and objects have key on the edges | ||
return Object.entries(v).map(([key, e]) => createInfoObj(k, e, key)); | ||
} else return []; | ||
}); | ||
} | ||
return this.explodeDirectReferences() | ||
.filter(({ref}) => isDefined(ref)) | ||
.map(({refName, ref, key}) => createModelEntityEdge(refName, ref, key)); | ||
} | ||
private explodeNodeReferences(): ModelEntity[] { | ||
const stack: ModelEntity[] = [this]; | ||
const result: Set<ModelEntity> = new Set(); | ||
private explodeDirectReferences(): {refName: string, ref: ModelEntity, key?: string}[] { | ||
const createInfoObj = (label: string, e: ModelEntity, key?: string) => ({ | ||
refName: label, ref: e, key, | ||
}); | ||
while(stack.length) { | ||
const e = stack.pop(); | ||
if(e === undefined || result.has(e)) continue; | ||
result.add(e); | ||
stack.push(...e.explodeDirectReferences().map(({ref}) => ref)); | ||
} | ||
return flatMap(Object.entries(this.outgoingNodeReferences), ([k, v]) => { | ||
if(v instanceof ModelEntity){ | ||
return [createInfoObj(k, v)]; | ||
} if(v instanceof Set) { | ||
return [...v].map(entity => createInfoObj(k, entity)); | ||
} else if(typeof v === 'object' && v !== null) { // arrays and objects have key on the edges | ||
return Object.entries(v).map(([key, e]) => createInfoObj(k, e, key)); | ||
} else return []; | ||
}); | ||
} | ||
return [...result]; | ||
private explodeNodeReferences(): ModelEntity[] { | ||
const stack: ModelEntity[] = [this]; | ||
const result: Set<ModelEntity> = new Set(); | ||
while(stack.length) { | ||
const e = stack.pop(); | ||
if(e === undefined || result.has(e)) continue; | ||
result.add(e); | ||
stack.push(...e.explodeDirectReferences().map(({ref}) => ref)); | ||
} | ||
public generateOutgoingGraph() { | ||
const entities = this.explodeNodeReferences(); | ||
return new fn.Graph(entities.map(e => e.nodeData), flatMap(entities, e => e.getOutgoingNodeEdges())); | ||
} | ||
return [...result]; | ||
} | ||
public generateOutgoingGraph(): fn.Graph<any, {_label: string, _in: string, _out: string}> { | ||
const entities = this.explodeNodeReferences(); | ||
return new fn.Graph(entities.map(e => e.nodeData), flatMap(entities, e => e.getOutgoingNodeEdges())); | ||
} | ||
} |
@@ -1,15 +0,15 @@ | ||
import { JSONSerializable } from "../export/json-serializable"; | ||
import { SerializationID } from "../export/json-serializer"; | ||
import { SerializedRelationship } from "../export/serialized-interfaces/infra-model/serialized-relationship"; | ||
import { Component } from "./component"; | ||
import { ModelEntity } from "./model-entity"; | ||
import { ModelEntityTypes } from "./model-entity-types"; | ||
import { JSONSerializable } from '../export/json-serializable'; | ||
import { SerializationID } from '../export/json-serializer'; | ||
import { SerializedRelationship } from '../export/serialized-interfaces/infra-model/serialized-relationship'; | ||
import { Component } from './component'; | ||
import { ModelEntity } from './model-entity'; | ||
import { ModelEntityTypes } from './model-entity-types'; | ||
export type RelationshipData = { | ||
readonly type: string; | ||
readonly type: string; | ||
} | ||
export type RelationshipEdges = { | ||
readonly source: Component, | ||
readonly target: Component, | ||
readonly source: Component, | ||
readonly target: Component, | ||
} | ||
@@ -22,22 +22,22 @@ | ||
export abstract class Relationship<T extends RelationshipData = RelationshipData> | ||
extends ModelEntity<T, RelationshipEdges> | ||
implements JSONSerializable | ||
extends ModelEntity<T, RelationshipEdges> | ||
implements JSONSerializable | ||
{ | ||
public get type(): string { return this.nodeData.type; } | ||
public get target(): Component { return this.outgoingNodeReferences.target; } | ||
public get source(): Component { return this.outgoingNodeReferences.source; } | ||
public get type(): string { return this.nodeData.type; } | ||
public get target(): Component { return this.outgoingNodeReferences.target; } | ||
public get source(): Component { return this.outgoingNodeReferences.source; } | ||
constructor(source: Component, target: Component, nodeData: T){ | ||
super(ModelEntityTypes.relationship, nodeData, {source, target}); | ||
} | ||
constructor(source: Component, target: Component, nodeData: T){ | ||
super(ModelEntityTypes.relationship, nodeData, {source, target}); | ||
} | ||
public toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedRelationship { | ||
return { | ||
target: serialize(this.target), | ||
source: serialize(this.source), | ||
type: this.type, | ||
}; | ||
} | ||
public toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedRelationship { | ||
return { | ||
target: serialize(this.target), | ||
source: serialize(this.source), | ||
type: this.type, | ||
}; | ||
} | ||
public abstract getSerializationClass(): string; | ||
public abstract getSerializationClass(): string; | ||
} |
@@ -1,4 +0,4 @@ | ||
import { SerializationClasses } from "../export/serialization-classes"; | ||
import { Component } from "./component"; | ||
import { Relationship } from "./relationship"; | ||
import { SerializationClasses } from '../export/serialization-classes'; | ||
import { Component } from './component'; | ||
import { Relationship } from './relationship'; | ||
@@ -12,10 +12,10 @@ /** | ||
constructor(source: Component, target: Component, type: string){ | ||
super(source, target, {type}); | ||
} | ||
constructor(source: Component, target: Component, type: string){ | ||
super(source, target, {type}); | ||
} | ||
public getSerializationClass(): string{ | ||
return SerializationClasses.STRUCTURAL_RELATIONSHIP; | ||
} | ||
public getSerializationClass(): string{ | ||
return SerializationClasses.STRUCTURAL_RELATIONSHIP; | ||
} | ||
} |
@@ -1,72 +0,82 @@ | ||
import { JSONSerializable, Serialized } from "../export/json-serializable"; | ||
import { SerializationID } from "../export/json-serializer"; | ||
import { SerializationClasses } from "../export/serialization-classes"; | ||
import { Component, InfraModel, ModelEntity } from "../infra-model"; | ||
import { flatMap, groupArrayBy, isDefined } from "../utils"; | ||
import { ComponentOperation } from "./operations"; | ||
import { Transition } from "./transition"; | ||
import { JSONSerializable, Serialized } from '../export/json-serializable'; | ||
import { SerializationID } from '../export/json-serializer'; | ||
import { SerializationClasses } from '../export/serialization-classes'; | ||
import { Component, InfraModel, ModelEntity } from '../infra-model'; | ||
import { flatMap, groupArrayBy, isDefined } from '../utils'; | ||
import { ComponentOperation } from './operations'; | ||
import { Transition } from './transition'; | ||
export class TransitionNotFoundError extends Error {} | ||
type OutgoingNodeReferences = { | ||
readonly componentOperations: ComponentOperation[], | ||
readonly componentTransitions: Transition<Component>[], | ||
readonly infraModelTransition: Transition<InfraModel>, | ||
readonly componentOperations: ComponentOperation[], | ||
readonly componentTransitions: Transition<Component>[], | ||
readonly infraModelTransition: Transition<InfraModel>, | ||
} | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
export class InfraModelDiff extends ModelEntity<{}, OutgoingNodeReferences> implements JSONSerializable { | ||
private readonly componentToTransitionMap: Map<Component, Transition<Component>>; | ||
private readonly componentTransitionToOperationsMap: Map<Transition<Component>, ComponentOperation[]>; | ||
export class InfraModelDiff | ||
extends ModelEntity<Record<string, Serialized>, OutgoingNodeReferences> | ||
implements JSONSerializable | ||
{ | ||
private static createComponentTransitionMap( | ||
componentTransitions: Transition<Component>[], | ||
): Map<Component, Transition<Component>> { | ||
return new Map( | ||
flatMap(componentTransitions, t => [[t.v1, t], [t.v2, t]]) | ||
.filter(([v]) => isDefined(v)) as [Component, Transition<Component>][], | ||
); | ||
} | ||
public get componentOperations() { return this.outgoingNodeReferences.componentOperations; } | ||
public get componentTransitions() { return this.outgoingNodeReferences.componentTransitions; } | ||
public get infraModelTransition() { return this.outgoingNodeReferences.infraModelTransition; } | ||
private static createComponentTransitionToOperationsMap( | ||
componentOperations: ComponentOperation[], | ||
): Map<Transition<Component>, ComponentOperation[]> { | ||
return groupArrayBy(componentOperations, o => o.componentTransition); | ||
} | ||
constructor( | ||
componentOperations: ComponentOperation[], | ||
componentTransitions: Transition<Component>[], | ||
infraModelTransition: Transition<InfraModel>, | ||
){ | ||
super('diff', {}, {componentOperations, componentTransitions, infraModelTransition}); | ||
this.componentToTransitionMap = InfraModelDiff.createComponentTransitionMap(componentTransitions); | ||
this.componentTransitionToOperationsMap = InfraModelDiff.createComponentTransitionToOperationsMap(componentOperations); | ||
} | ||
private readonly componentToTransitionMap: Map<Component, Transition<Component>>; | ||
private readonly componentTransitionToOperationsMap: Map<Transition<Component>, ComponentOperation[]>; | ||
private static createComponentTransitionMap( | ||
componentTransitions: Transition<Component>[] | ||
): Map<Component, Transition<Component>> { | ||
return new Map( | ||
flatMap(componentTransitions, t => [[t.v1, t], [t.v2, t]]) | ||
.filter(([v]) => isDefined(v)) as [Component, Transition<Component>][] | ||
); | ||
} | ||
public get componentOperations(): ComponentOperation[] { | ||
return this.outgoingNodeReferences.componentOperations; | ||
} | ||
public get componentTransitions(): Transition<Component>[] { | ||
return this.outgoingNodeReferences.componentTransitions; | ||
} | ||
public get infraModelTransition(): Transition<InfraModel> { | ||
return this.outgoingNodeReferences.infraModelTransition; | ||
} | ||
private static createComponentTransitionToOperationsMap(componentOperations: ComponentOperation[]) { | ||
return groupArrayBy(componentOperations, o => o.componentTransition); | ||
} | ||
constructor( | ||
componentOperations: ComponentOperation[], | ||
componentTransitions: Transition<Component>[], | ||
infraModelTransition: Transition<InfraModel>, | ||
){ | ||
super('diff', {}, {componentOperations, componentTransitions, infraModelTransition}); | ||
this.componentToTransitionMap = InfraModelDiff.createComponentTransitionMap(componentTransitions); | ||
this.componentTransitionToOperationsMap = | ||
InfraModelDiff.createComponentTransitionToOperationsMap(componentOperations); | ||
} | ||
public getComponentTransition(e: Component): Transition<Component>{ | ||
const t = this.componentToTransitionMap.get(e); | ||
if(!t) | ||
throw new TransitionNotFoundError(`Could not find transition for component ${e.name} in model`); | ||
return t; | ||
} | ||
public getComponentTransition(e: Component): Transition<Component>{ | ||
const t = this.componentToTransitionMap.get(e); | ||
if(!t) | ||
throw new TransitionNotFoundError(`Could not find transition for component ${e.name} in model`); | ||
return t; | ||
} | ||
public getTransitionOperations(t: Transition<Component>): ComponentOperation[] { | ||
return this.componentTransitionToOperationsMap.get(t) ?? []; | ||
} | ||
public getTransitionOperations(t: Transition<Component>): ComponentOperation[] { | ||
return this.componentTransitionToOperationsMap.get(t) ?? []; | ||
} | ||
public toSerialized( | ||
serialize: (obj: JSONSerializable) => SerializationID, | ||
): Serialized { | ||
return { | ||
componentOperations: this.componentOperations.map(serialize), | ||
componentTransitions: this.componentTransitions.map(t => serialize(t)), | ||
infraModelTransition: serialize(this.infraModelTransition) | ||
}; | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.INFRA_MODEL_DIFF; | ||
} | ||
public toSerialized( | ||
serialize: (obj: JSONSerializable) => SerializationID, | ||
): Serialized { | ||
return { | ||
componentOperations: this.componentOperations.map(serialize), | ||
componentTransitions: this.componentTransitions.map(t => serialize(t)), | ||
infraModelTransition: serialize(this.infraModelTransition), | ||
}; | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.INFRA_MODEL_DIFF; | ||
} | ||
} |
@@ -1,118 +0,118 @@ | ||
import { JSONSerializable } from "../../export/json-serializable"; | ||
import { SerializationClasses } from "../../export/serialization-classes"; | ||
import { SerializedComponentOperation, SerializedOutgoingRelationshipComponentOperation } from "../../export/serialized-interfaces/infra-model-diff/serialized-component-operation"; | ||
import { Component, ComponentPropertyValue, Relationship } from "../../infra-model"; | ||
import { ModelEntity } from "../../infra-model/model-entity"; | ||
import { ModelEntityTypes } from "../../infra-model/model-entity-types"; | ||
import { Transition } from "../transition"; | ||
import { JSONSerializable } from '../../export/json-serializable'; | ||
import { SerializationClasses } from '../../export/serialization-classes'; | ||
import { SerializedComponentOperation } from '../../export/serialized-interfaces/infra-model-diff/serialized-component-operation'; | ||
import { Component, ComponentPropertyValue } from '../../infra-model'; | ||
import { ModelEntity } from '../../infra-model/model-entity'; | ||
import { ModelEntityTypes } from '../../infra-model/model-entity-types'; | ||
import { Transition } from '../transition'; | ||
export enum OperationCertainty { | ||
ABSOLUTE = 'Absolute', | ||
PARTIAL = 'Partial' | ||
ABSOLUTE = 'Absolute', | ||
PARTIAL = 'Partial' | ||
} | ||
export enum OperationType { | ||
UPDATE = 'UPDATE', | ||
INSERT = 'INSERT', | ||
REMOVE = 'REMOVE', | ||
REPLACE = 'REPLACE', | ||
RENAME = 'RENAME' | ||
UPDATE = 'UPDATE', | ||
INSERT = 'INSERT', | ||
REMOVE = 'REMOVE', | ||
REPLACE = 'REPLACE', | ||
RENAME = 'RENAME' | ||
} | ||
export type OpNodeData = { | ||
readonly certainty?: OperationCertainty | ||
readonly certainty?: OperationCertainty | ||
} | ||
type InternalOpNodeData = { | ||
readonly type: OperationType, | ||
readonly type: OperationType, | ||
} | ||
export type OpOutgoingNodeReferences = { | ||
readonly cause?: ComponentOperation, | ||
readonly componentTransition: Transition<Component>, | ||
readonly appliesTo?: ModelEntity[], | ||
readonly cause?: ComponentOperation, | ||
readonly componentTransition: Transition<Component>, | ||
readonly appliesTo?: ModelEntity[], | ||
} | ||
type InternalOutgoingNodeReferences = { | ||
readonly appliesTo: ModelEntity[], | ||
readonly exposesValues: { | ||
readonly old?: Component | ComponentPropertyValue, | ||
readonly new?: Component | ComponentPropertyValue | ||
} | ||
readonly appliesTo: ModelEntity[], | ||
readonly exposesValues: { | ||
readonly old?: Component | ComponentPropertyValue, | ||
readonly new?: Component | ComponentPropertyValue | ||
} | ||
} | ||
export abstract class ComponentOperation<ND extends OpNodeData = any, OR extends OpOutgoingNodeReferences = any> | ||
extends ModelEntity<ND & InternalOpNodeData, OR & InternalOutgoingNodeReferences> | ||
implements JSONSerializable { | ||
extends ModelEntity<ND & InternalOpNodeData, OR & InternalOutgoingNodeReferences> | ||
implements JSONSerializable { | ||
public get cause(): ComponentOperation | undefined { return this.outgoingNodeReferences.cause; } | ||
public get componentTransition(): Transition<Component> { return this.outgoingNodeReferences.componentTransition; } | ||
public get certainty(): OperationCertainty { return this.nodeData.certainty ?? OperationCertainty.ABSOLUTE; } | ||
public get operationType(): OperationType { return this.nodeData.type; } | ||
public get cause(): ComponentOperation | undefined { return this.outgoingNodeReferences.cause; } | ||
public get componentTransition(): Transition<Component> { return this.outgoingNodeReferences.componentTransition; } | ||
public get certainty(): OperationCertainty { return this.nodeData.certainty ?? OperationCertainty.ABSOLUTE; } | ||
public get operationType(): OperationType { return this.nodeData.type; } | ||
constructor( | ||
nodeData: ND, | ||
outgoingReferences: OR, | ||
operationType: OperationType, | ||
){ | ||
super( | ||
ModelEntityTypes.change, | ||
{...nodeData, type: operationType}, | ||
{ | ||
exposesValues: { | ||
old: outgoingReferences.componentTransition.v1, | ||
new: outgoingReferences.componentTransition.v2, | ||
}, | ||
...outgoingReferences, | ||
appliesTo: [ | ||
...(outgoingReferences.appliesTo ?? []), | ||
...outgoingReferences.componentTransition.explode() | ||
] | ||
} | ||
); | ||
} | ||
constructor( | ||
nodeData: ND, | ||
outgoingReferences: OR, | ||
operationType: OperationType, | ||
){ | ||
super( | ||
ModelEntityTypes.change, | ||
{...nodeData, type: operationType}, | ||
{ | ||
exposesValues: { | ||
old: outgoingReferences.componentTransition.v1, | ||
new: outgoingReferences.componentTransition.v2, | ||
}, | ||
...outgoingReferences, | ||
appliesTo: [ | ||
...(outgoingReferences.appliesTo ?? []), | ||
...outgoingReferences.componentTransition.explode(), | ||
], | ||
}, | ||
); | ||
} | ||
public isDirectChange(): boolean{ | ||
return !this.cause; | ||
} | ||
public isDirectChange(): boolean{ | ||
return !this.cause; | ||
} | ||
public toSerialized( | ||
serialize: (obj: JSONSerializable) => number, | ||
): SerializedComponentOperation { | ||
return { | ||
cause: this.cause ? serialize(this.cause) : undefined, | ||
certainty: this.certainty, | ||
componentTransition: serialize(this.componentTransition), | ||
}; | ||
} | ||
public abstract getSerializationClass(): string; | ||
public toSerialized( | ||
serialize: (obj: JSONSerializable) => number, | ||
): SerializedComponentOperation { | ||
return { | ||
cause: this.cause ? serialize(this.cause) : undefined, | ||
certainty: this.certainty, | ||
componentTransition: serialize(this.componentTransition), | ||
}; | ||
} | ||
public abstract getSerializationClass(): string; | ||
} | ||
export class InsertComponentOperation extends ComponentOperation { | ||
constructor( | ||
nodeData: OpNodeData, | ||
outgoingReferences: OpOutgoingNodeReferences | ||
){ super(nodeData, outgoingReferences, OperationType.INSERT); | ||
if(this.componentTransition.v1 !== undefined || this.componentTransition.v2 === undefined) | ||
throw Error("Insert Operation's component transition has to have exclusively version 2"); | ||
} | ||
constructor( | ||
nodeData: OpNodeData, | ||
outgoingReferences: OpOutgoingNodeReferences, | ||
){ super(nodeData, outgoingReferences, OperationType.INSERT); | ||
if(this.componentTransition.v1 !== undefined || this.componentTransition.v2 === undefined) | ||
throw Error("Insert Operation's component transition has to have exclusively version 2"); | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.INSERT_COMPONENT_OPERATION; | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.INSERT_COMPONENT_OPERATION; | ||
} | ||
} | ||
export class RemoveComponentOperation extends ComponentOperation { | ||
constructor( | ||
nodeData: OpNodeData, | ||
outgoingReferences: OpOutgoingNodeReferences | ||
){ super(nodeData, outgoingReferences, OperationType.REMOVE); | ||
if(this.componentTransition.v1 === undefined || this.componentTransition.v2 !== undefined) | ||
throw Error("Remove Operation's component transition has to have exclusively version 1"); | ||
} | ||
constructor( | ||
nodeData: OpNodeData, | ||
outgoingReferences: OpOutgoingNodeReferences, | ||
){ super(nodeData, outgoingReferences, OperationType.REMOVE); | ||
if(this.componentTransition.v1 === undefined || this.componentTransition.v2 !== undefined) | ||
throw Error("Remove Operation's component transition has to have exclusively version 1"); | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.REMOVE_COMPONENT_OPERATION; | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.REMOVE_COMPONENT_OPERATION; | ||
} | ||
} | ||
@@ -122,13 +122,13 @@ | ||
constructor( | ||
nodeData: OpNodeData, | ||
outgoingReferences: OpOutgoingNodeReferences | ||
){ super(nodeData, outgoingReferences, OperationType.REPLACE); | ||
if(this.componentTransition.v1 === undefined || this.componentTransition.v2 === undefined) | ||
throw Error("Replace Operation's component transition has to have both v1 and v2"); | ||
} | ||
constructor( | ||
nodeData: OpNodeData, | ||
outgoingReferences: OpOutgoingNodeReferences, | ||
){ super(nodeData, outgoingReferences, OperationType.REPLACE); | ||
if(this.componentTransition.v1 === undefined || this.componentTransition.v2 === undefined) | ||
throw Error("Replace Operation's component transition has to have both v1 and v2"); | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.REPLACE_COMPONENT_OPERATION; | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.REPLACE_COMPONENT_OPERATION; | ||
} | ||
} | ||
@@ -138,13 +138,13 @@ | ||
constructor( | ||
nodeData: OpNodeData, | ||
outgoingReferences: OpOutgoingNodeReferences | ||
){ super(nodeData, outgoingReferences, OperationType.RENAME); | ||
if(this.componentTransition.v1 === undefined || this.componentTransition.v2 === undefined) | ||
throw Error("Rename Operation's component transition has to have both v1 and v2"); | ||
} | ||
constructor( | ||
nodeData: OpNodeData, | ||
outgoingReferences: OpOutgoingNodeReferences, | ||
){ super(nodeData, outgoingReferences, OperationType.RENAME); | ||
if(this.componentTransition.v1 === undefined || this.componentTransition.v2 === undefined) | ||
throw Error("Rename Operation's component transition has to have both v1 and v2"); | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.RENAME_COMPONENT_OPERATION; | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.RENAME_COMPONENT_OPERATION; | ||
} | ||
} |
@@ -1,90 +0,95 @@ | ||
import { JSONSerializable } from "../../export/json-serializable"; | ||
import { SerializationClasses } from "../../export/serialization-classes"; | ||
import { SerializedPropertyComponentOperation, SerializedUpdatePropertyComponentOperation } from "../../export/serialized-interfaces/infra-model-diff/serialized-component-operation"; | ||
import { ComponentPropertyValue, ComponentUpdateType, PropertyPath } from "../../infra-model"; | ||
import { arraysEqual, flatMap } from "../../utils"; | ||
import { Transition } from "../transition"; | ||
import { ComponentOperation, OperationType, OpNodeData, OpOutgoingNodeReferences } from "./component-operation"; | ||
import { JSONSerializable } from '../../export/json-serializable'; | ||
import { SerializationClasses } from '../../export/serialization-classes'; | ||
import { SerializedPropertyComponentOperation, SerializedUpdatePropertyComponentOperation } from '../../export/serialized-interfaces/infra-model-diff/serialized-component-operation'; | ||
import { ComponentPropertyValue, ComponentUpdateType, PropertyPath } from '../../infra-model'; | ||
import { arraysEqual, flatMap } from '../../utils'; | ||
import { Transition } from '../transition'; | ||
import { ComponentOperation, OperationType, OpNodeData, OpOutgoingNodeReferences } from './component-operation'; | ||
type InternalOpNodeData = { | ||
propertyOperationType: OperationType, | ||
propertyOperationType: OperationType, | ||
} | ||
export type PropOpOutgoingNodeReferences = OpOutgoingNodeReferences & { | ||
readonly propertyTransition: Transition<ComponentPropertyValue>, | ||
readonly pathTransition: Transition<PropertyPath>, | ||
readonly propertyTransition: Transition<ComponentPropertyValue>, | ||
readonly pathTransition: Transition<PropertyPath>, | ||
} | ||
export abstract class PropertyComponentOperation<ND extends OpNodeData = any, OR extends PropOpOutgoingNodeReferences = any> | ||
extends ComponentOperation<ND & InternalOpNodeData, OR> { | ||
public get pathTransition(): Transition<PropertyPath> { return this.outgoingNodeReferences.pathTransition; } | ||
public get propertyTransition(): Transition<ComponentPropertyValue> { return this.outgoingNodeReferences.propertyTransition; } | ||
public get propertyOperationType(): OperationType { return this.nodeData.propertyOperationType; } | ||
export abstract class PropertyComponentOperation | ||
<ND extends OpNodeData = any, OR extends PropOpOutgoingNodeReferences = any> | ||
extends ComponentOperation<ND & InternalOpNodeData, OR> | ||
{ | ||
constructor( | ||
nodeData: ND, | ||
outgoingReferences: OR, | ||
propertyOperationType: OperationType, | ||
){ | ||
super( | ||
{ ...nodeData, propertyOperationType }, | ||
{ | ||
exposesValues: { | ||
old: outgoingReferences.propertyTransition.v1, | ||
new: outgoingReferences.propertyTransition.v2, | ||
}, | ||
...outgoingReferences, | ||
appliesTo: [...outgoingReferences.appliesTo ?? [], ...outgoingReferences.propertyTransition.explode()], | ||
}, OperationType.UPDATE | ||
); | ||
} | ||
public get pathTransition(): Transition<PropertyPath> { return this.outgoingNodeReferences.pathTransition; } | ||
public get propertyTransition(): Transition<ComponentPropertyValue> { | ||
return this.outgoingNodeReferences.propertyTransition; | ||
} | ||
public get propertyOperationType(): OperationType { return this.nodeData.propertyOperationType; } | ||
getUpdateType(): ComponentUpdateType { | ||
if(!this.propertyTransition.v2 && !this.propertyTransition.v1){ | ||
throw Error("Property Operation has no before or after property states"); | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
return this.propertyTransition.v1?.componentUpdateType ?? this.propertyTransition.v2!.componentUpdateType; | ||
constructor( | ||
nodeData: ND, | ||
outgoingReferences: OR, | ||
propertyOperationType: OperationType, | ||
){ | ||
super( | ||
{ ...nodeData, propertyOperationType }, | ||
{ | ||
exposesValues: { | ||
old: outgoingReferences.propertyTransition.v1, | ||
new: outgoingReferences.propertyTransition.v2, | ||
}, | ||
...outgoingReferences, | ||
appliesTo: [...outgoingReferences.appliesTo ?? [], ...outgoingReferences.propertyTransition.explode()], | ||
}, OperationType.UPDATE, | ||
); | ||
} | ||
getUpdateType(): ComponentUpdateType { | ||
if(!this.propertyTransition.v2 && !this.propertyTransition.v1){ | ||
throw Error('Property Operation has no before or after property states'); | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
return this.propertyTransition.v1?.componentUpdateType ?? this.propertyTransition.v2!.componentUpdateType; | ||
} | ||
getV1Path(v2path: PropertyPath): PropertyPath | undefined { | ||
if(this.pathTransition.v1 && this.pathTransition.v2 | ||
getV1Path(v2path: PropertyPath): PropertyPath | undefined { | ||
if(this.pathTransition.v1 && this.pathTransition.v2 | ||
&& v2path.length >= this.pathTransition.v2.length | ||
&& arraysEqual(v2path, this.pathTransition.v2.slice(0, v2path.length))){ | ||
return [...this.pathTransition.v1, ...v2path.slice(this.pathTransition.v1.length)]; | ||
} | ||
return; | ||
return [...this.pathTransition.v1, ...v2path.slice(this.pathTransition.v1.length)]; | ||
} | ||
return; | ||
} | ||
public toSerialized( | ||
serialize: (obj: JSONSerializable) => number, | ||
): SerializedPropertyComponentOperation { | ||
return { | ||
...super.toSerialized(serialize), | ||
pathTransition: serialize(this.pathTransition), | ||
propertyTransition: serialize(this.propertyTransition), | ||
}; | ||
} | ||
public toSerialized( | ||
serialize: (obj: JSONSerializable) => number, | ||
): SerializedPropertyComponentOperation { | ||
return { | ||
...super.toSerialized(serialize), | ||
pathTransition: serialize(this.pathTransition), | ||
propertyTransition: serialize(this.propertyTransition), | ||
}; | ||
} | ||
public explode(): PropertyComponentOperation[] { | ||
return this instanceof UpdatePropertyComponentOperation ? this.getAllInnerOperations() : [this]; | ||
} | ||
public explode(): PropertyComponentOperation[] { | ||
return this instanceof UpdatePropertyComponentOperation ? this.getAllInnerOperations() : [this]; | ||
} | ||
} | ||
export class InsertPropertyComponentOperation extends PropertyComponentOperation<OpNodeData, PropOpOutgoingNodeReferences> { | ||
export class InsertPropertyComponentOperation | ||
extends PropertyComponentOperation<OpNodeData, PropOpOutgoingNodeReferences> | ||
{ | ||
constructor( | ||
nodeData: OpNodeData, | ||
outgoingReferences: PropOpOutgoingNodeReferences, | ||
){ | ||
super(nodeData, { | ||
...outgoingReferences, | ||
appliesTo: [...outgoingReferences.appliesTo ?? [], ...outgoingReferences.propertyTransition.v2?.explode() ?? []], | ||
}, OperationType.INSERT); | ||
} | ||
constructor( | ||
nodeData: OpNodeData, | ||
outgoingReferences: PropOpOutgoingNodeReferences | ||
){ | ||
super(nodeData, { | ||
...outgoingReferences, | ||
appliesTo: [...outgoingReferences.appliesTo ?? [], ...outgoingReferences.propertyTransition.v2?.explode() ?? []] | ||
}, OperationType.INSERT); | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.INSERT_PROPERTY_COMPONENT_OPERATION; | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.INSERT_PROPERTY_COMPONENT_OPERATION; | ||
} | ||
} | ||
@@ -94,75 +99,78 @@ | ||
constructor( | ||
nodeData: OpNodeData, | ||
outgoingReferences: PropOpOutgoingNodeReferences | ||
){ | ||
super(nodeData, { | ||
...outgoingReferences, | ||
appliesTo: [...outgoingReferences.appliesTo ?? [], ...outgoingReferences.propertyTransition.v1?.explode() ?? []] | ||
}, OperationType.REMOVE); | ||
} | ||
constructor( | ||
nodeData: OpNodeData, | ||
outgoingReferences: PropOpOutgoingNodeReferences, | ||
){ | ||
super(nodeData, { | ||
...outgoingReferences, | ||
appliesTo: [...outgoingReferences.appliesTo ?? [], ...outgoingReferences.propertyTransition.v1?.explode() ?? []], | ||
}, OperationType.REMOVE); | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.REMOVE_PROPERTY_COMPONENT_OPERATION; | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.REMOVE_PROPERTY_COMPONENT_OPERATION; | ||
} | ||
} | ||
export type UpdatePropOpOutgoingNodeReferences = PropOpOutgoingNodeReferences & { | ||
readonly innerOperations?: PropertyComponentOperation[], | ||
readonly innerOperations?: PropertyComponentOperation[], | ||
} | ||
export class UpdatePropertyComponentOperation extends PropertyComponentOperation<OpNodeData, UpdatePropOpOutgoingNodeReferences> { | ||
export class UpdatePropertyComponentOperation | ||
extends PropertyComponentOperation<OpNodeData, UpdatePropOpOutgoingNodeReferences> | ||
{ | ||
public get innerOperations(): PropertyComponentOperation[] | undefined { | ||
return this.outgoingNodeReferences.innerOperations; | ||
} | ||
public get innerOperations(): PropertyComponentOperation[] | undefined { return this.outgoingNodeReferences.innerOperations; } | ||
constructor( | ||
nodeData: OpNodeData, | ||
outgoingReferences: UpdatePropOpOutgoingNodeReferences, | ||
operationType: OperationType = OperationType.UPDATE, | ||
){super(nodeData, outgoingReferences, operationType);} | ||
constructor( | ||
nodeData: OpNodeData, | ||
outgoingReferences: UpdatePropOpOutgoingNodeReferences, | ||
operationType: OperationType = OperationType.UPDATE | ||
){super(nodeData, outgoingReferences, operationType);} | ||
getAllInnerOperations(): PropertyComponentOperation[]{ | ||
if(!this.innerOperations || this.innerOperations.length === 0) { | ||
return [this]; | ||
} | ||
return flatMap(this.innerOperations, o => | ||
[this, ...( | ||
o instanceof UpdatePropertyComponentOperation | ||
? o.getAllInnerOperations() | ||
: [o] | ||
) | ||
] | ||
); | ||
getAllInnerOperations(): PropertyComponentOperation[]{ | ||
if(!this.innerOperations || this.innerOperations.length === 0) { | ||
return [this]; | ||
} | ||
return flatMap(this.innerOperations, o => | ||
[this, ...( | ||
o instanceof UpdatePropertyComponentOperation | ||
? o.getAllInnerOperations() | ||
: [o] | ||
), | ||
], | ||
); | ||
} | ||
getV1Path(v2path: PropertyPath): PropertyPath | undefined { | ||
const pathFoundSoFar = super.getV1Path(v2path); | ||
if(pathFoundSoFar){ | ||
if(!this.innerOperations) | ||
return pathFoundSoFar; | ||
for(const op of this.innerOperations){ | ||
const p = op.getV1Path(v2path); | ||
if(p) return p; | ||
} | ||
} | ||
return; | ||
getV1Path(v2path: PropertyPath): PropertyPath | undefined { | ||
const pathFoundSoFar = super.getV1Path(v2path); | ||
if(pathFoundSoFar){ | ||
if(!this.innerOperations) | ||
return pathFoundSoFar; | ||
for(const op of this.innerOperations){ | ||
const p = op.getV1Path(v2path); | ||
if(p) return p; | ||
} | ||
} | ||
return; | ||
} | ||
public getLeaves(): PropertyComponentOperation[] { | ||
if(!this.innerOperations) return [this]; | ||
return flatMap(this.innerOperations, o => (o instanceof UpdatePropertyComponentOperation) ? o.getLeaves() : [o]); | ||
} | ||
public getLeaves(): PropertyComponentOperation[] { | ||
if(!this.innerOperations) return [this]; | ||
return flatMap(this.innerOperations, o => (o instanceof UpdatePropertyComponentOperation) ? o.getLeaves() : [o]); | ||
} | ||
public toSerialized( | ||
serialize: (obj: JSONSerializable) => number, | ||
): SerializedUpdatePropertyComponentOperation { | ||
return { | ||
...super.toSerialized(serialize), | ||
innerOperations: this.innerOperations?.map(o => serialize(o)), | ||
}; | ||
} | ||
public toSerialized( | ||
serialize: (obj: JSONSerializable) => number, | ||
): SerializedUpdatePropertyComponentOperation { | ||
return { | ||
...super.toSerialized(serialize), | ||
innerOperations: this.innerOperations?.map(o => serialize(o)), | ||
}; | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.UPDATE_PROPERTY_COMPONENT_OPERATION; | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.UPDATE_PROPERTY_COMPONENT_OPERATION; | ||
} | ||
} | ||
@@ -172,11 +180,11 @@ | ||
constructor( | ||
nodeData: OpNodeData, | ||
outgoingReferences: UpdatePropOpOutgoingNodeReferences, | ||
operationType: OperationType = OperationType.RENAME | ||
){super(nodeData, outgoingReferences, operationType);} | ||
constructor( | ||
nodeData: OpNodeData, | ||
outgoingReferences: UpdatePropOpOutgoingNodeReferences, | ||
operationType: OperationType = OperationType.RENAME, | ||
){super(nodeData, outgoingReferences, operationType);} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.MOVE_PROPERTY_COMPONENT_OPERATION; | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.MOVE_PROPERTY_COMPONENT_OPERATION; | ||
} | ||
} |
@@ -1,8 +0,8 @@ | ||
import { isDefined } from "../utils"; | ||
import { isJSONSerializable, JSONSerializable, Serialized, SerializedRecord } from "../export/json-serializable"; | ||
import { SerializationID } from "../export/json-serializer"; | ||
import { SerializationClasses } from "../export/serialization-classes"; | ||
import { SerializedTransition } from "../export/serialized-interfaces/infra-model-diff/serialized-transition"; | ||
import { ModelEntity } from "../infra-model/model-entity"; | ||
import { ModelEntityTypes } from "../infra-model/model-entity-types"; | ||
import { isJSONSerializable, JSONSerializable, Serialized } from '../export/json-serializable'; | ||
import { SerializationID } from '../export/json-serializer'; | ||
import { SerializationClasses } from '../export/serialization-classes'; | ||
import { SerializedTransition } from '../export/serialized-interfaces/infra-model-diff/serialized-transition'; | ||
import { ModelEntity } from '../infra-model/model-entity'; | ||
import { ModelEntityTypes } from '../infra-model/model-entity-types'; | ||
import { isDefined } from '../utils'; | ||
@@ -13,4 +13,4 @@ /** | ||
export type TransitionVersions<T> = { | ||
v1?: T, | ||
v2?: T, | ||
v1?: T, | ||
v2?: T, | ||
} | ||
@@ -23,55 +23,65 @@ | ||
export type CompleteTransitionVersions<T> = TransitionVersions<T> & { | ||
v1: T, | ||
v2: T | ||
v1: T, | ||
v2: T | ||
} | ||
export class Transition<T extends JSONSerializable | Serialized, V extends TransitionVersions<T> = TransitionVersions<T>> | ||
extends ModelEntity<Record<string, any>, Record<string, any>> | ||
implements JSONSerializable { | ||
export class Transition | ||
<T extends JSONSerializable | Serialized, V extends TransitionVersions<T> = TransitionVersions<T>> | ||
extends ModelEntity<Record<string, any>, Record<string, any>> | ||
implements JSONSerializable | ||
{ | ||
private static isModelEntityTransition( | ||
versions: TransitionVersions<any>, | ||
): versions is TransitionVersions<ModelEntity> { | ||
return versions.v1 instanceof ModelEntity || versions.v2 instanceof ModelEntity; | ||
} | ||
get v1(): T|undefined { return this.isModelEntityTransition ? this.outgoingNodeReferences.v1 : this.nodeData.v1; } | ||
get v2(): T|undefined { return this.isModelEntityTransition ? this.outgoingNodeReferences.v2 : this.nodeData.v2; } | ||
private isModelEntityTransition: boolean; | ||
constructor(versions: V){ | ||
const isModelEntityTransition = Transition.isModelEntityTransition(versions); | ||
super(ModelEntityTypes.transition, isModelEntityTransition ? {} : versions, isModelEntityTransition ? versions : {}); | ||
this.isModelEntityTransition = isModelEntityTransition; | ||
} | ||
get v1(): T|undefined { return this.isModelEntityTransition ? this.outgoingNodeReferences.v1 : this.nodeData.v1; } | ||
get v2(): T|undefined { return this.isModelEntityTransition ? this.outgoingNodeReferences.v2 : this.nodeData.v2; } | ||
private isModelEntityTransition: boolean; | ||
public isCompleteTransition(): this is CompleteTransition<T> { | ||
return this.v1 !== undefined && this.v2 !== undefined; | ||
} | ||
constructor(versions: V){ | ||
const isModelEntityTransition = Transition.isModelEntityTransition(versions); | ||
super( | ||
ModelEntityTypes.transition, | ||
isModelEntityTransition ? {} : versions, | ||
isModelEntityTransition ? versions : {}, | ||
); | ||
this.isModelEntityTransition = isModelEntityTransition; | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.TRANSITION; | ||
} | ||
public isCompleteTransition(): this is CompleteTransition<T> { | ||
return this.v1 !== undefined && this.v2 !== undefined; | ||
} | ||
private static isModelEntityTransition(versions: TransitionVersions<any>): versions is TransitionVersions<ModelEntity> { | ||
return versions.v1 instanceof ModelEntity || versions.v2 instanceof ModelEntity; | ||
} | ||
public getSerializationClass(): string { | ||
return SerializationClasses.TRANSITION; | ||
} | ||
public explode() { | ||
return [this.v1, this.v2].filter(isDefined); | ||
} | ||
public explode(): NonNullable<T>[]{ | ||
return [this.v1, this.v2].filter(isDefined); | ||
} | ||
public toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedTransition { | ||
const serializeVersion = (version: T) => isJSONSerializable(version) ? serialize(version) : {value: version as Serialized}; | ||
return { | ||
v1: this.v1 ? serializeVersion(this.v1) : undefined, | ||
v2: this.v2 ? serializeVersion(this.v2) : undefined, | ||
}; | ||
} | ||
public toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedTransition { | ||
const serializeVersion = (version: T) => isJSONSerializable(version) | ||
? serialize(version) | ||
: {value: version as Serialized}; | ||
return { | ||
v1: this.v1 ? serializeVersion(this.v1) : undefined, | ||
v2: this.v2 ? serializeVersion(this.v2) : undefined, | ||
}; | ||
} | ||
} | ||
export class CompleteTransition<T extends JSONSerializable | Serialized> extends Transition<T, CompleteTransitionVersions<T>> { | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
get v1(): T { return super.v1!; } | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
get v2(): T { return super.v2!; } | ||
constructor(versions: CompleteTransitionVersions<T>){ | ||
super(versions); | ||
} | ||
export class CompleteTransition | ||
<T extends JSONSerializable | Serialized> extends Transition<T, CompleteTransitionVersions<T>> | ||
{ | ||
// By definition these need to be defined | ||
get v1(): T { return super.v1!; } // eslint-disable-line @typescript-eslint/no-non-null-assertion | ||
get v2(): T { return super.v2!; } // eslint-disable-line @typescript-eslint/no-non-null-assertion | ||
constructor(versions: CompleteTransitionVersions<T>){ | ||
super(versions); | ||
} | ||
} |
@@ -1,3 +0,3 @@ | ||
import { JSONSerializable, Serialized } from "../export/json-serializable"; | ||
import { SerializedAggregation } from "../export/serialized-interfaces/aggregations/serialized-aggregation"; | ||
import { JSONSerializable, Serialized } from '../export/json-serializable'; | ||
import { SerializedAggregation } from '../export/serialized-interfaces/aggregations/serialized-aggregation'; | ||
export declare type AggCharacteristicValue = string | number | boolean | undefined; | ||
@@ -4,0 +4,0 @@ export interface Aggregation<T> { |
@@ -11,3 +11,3 @@ "use strict"; | ||
subAggs: (_a = ig.subAggs) === null || _a === void 0 ? void 0 : _a.map(sg => serializeCustom(sg, serialization_classes_1.SerializationClasses.AGGREGATION, exports.aggregationSerializer(sg, serialize, serializeCustom))), | ||
descriptions: ig.descriptions | ||
descriptions: ig.descriptions, | ||
}; | ||
@@ -37,2 +37,2 @@ }; | ||
exports.getAllCharacteristics = getAllCharacteristics; | ||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ByZXN1bHQ6IHN0cmluZ1tdID0gW107XG5cbiAgbGV0IGE6IEFnZ3JlZ2F0aW9uPFQ+IHwgdW5kZWZpbmVkID0gYWdnO1xuICB3aGlsZShhKXtcbiAgICBpZihhLmRlc2NyaXB0aW9ucylcbiAgICAgIHJlc3VsdC51bnNoaWZ0KC4uLmEuZGVzY3JpcHRpb25zKTtcbiAgICBhID0gYS5wYXJlbnRBZ2c7XG4gIH1cblxuICByZXR1cm4gcmVzdWx0O1xufTtcblxuZXhwb3J0IGNvbnN0IGdldEFsbENoYXJhY3RlcmlzdGljcyA9IDxUPihhZ2c6IEFnZ3JlZ2F0aW9uPFQ+KTogUmVjb3JkPHN0cmluZywgQWdnQ2hhcmFjdGVyaXN0aWNWYWx1ZT4gPT4ge1xuICBsZXQgcmVzdWx0OiBSZWNvcmQ8c3RyaW5nLCBBZ2dDaGFyYWN0ZXJpc3RpY1ZhbHVlPiA9IHt9O1xuXG4gIGxldCBhOiBBZ2dyZWdhdGlvbjxUPiB8IHVuZGVmaW5lZCA9IGFnZztcbiAgd2hpbGUoYSl7XG4gICAgcmVzdWx0ID0gey4uLnJlc3VsdCwgLi4uYS5jaGFyYWN0ZXJpc3RpY3N9O1xuICAgIGEgPSBhLnBhcmVudEFnZztcbiAgfVxuXG4gIHJldHVybiByZXN1bHQ7XG59OyJdfQ== |
@@ -19,2 +19,2 @@ "use strict"; | ||
})(CompOpAggCharacteristics = exports.CompOpAggCharacteristics || (exports.CompOpAggCharacteristics = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LW9wZXJhdGlvbnMtY2hhcmFjdGVyaXN0aWNzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vYWdncmVnYXRpb25zL2NvbXBvbmVudC1vcGVyYXRpb25zLWNoYXJhY3RlcmlzdGljcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx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0eXBlJyxcbiAgT1BFUkFUSU9OX0NBVVNFID0gJ09wZXJhdGlvbiBDYXVzZScsXG4gIE9QRVJBVElPTl9DRVJUQUlOVFkgPSAnT3BlcmF0aW9uIENlcnRhaW50eScsXG4gIE9QRVJBVElPTl9UWVBFID0gJ09wZXJhdGlvbiBUeXBlJyxcbiAgRU5USVRZX09QRVJBVElPTl9UWVBFID0gJ0VudGl0eSBPcGVyYXRpb24gVHlwZScsXG4gIFBST1BFUlRZX1BBVEhfQkVGT1JFID0gJ1ByZXZpb3VzIFByb3BlcnR5IFBhdGgnLFxuICBQUk9QRVJUWV9QQVRIX0FGVEVSID0gJ1Byb3BlcnR5IFBhdGgnLFxuICBQUk9QRVJUWV9WQUxVRV9CRUZPUkUgPSAnUHJldmlvdXMgUHJvcGVydHkgVmFsdWUnLFxuICBQUk9QRVJUWV9WQUxVRV9BRlRFUiA9ICdQcm9wZXJ0eSBWYWx1ZScsXG59Il19 |
@@ -1,7 +0,7 @@ | ||
import { JSONSerializable, Serialized } from "../export/json-serializable"; | ||
import { SerializedChangeAnalysisReport } from "../export/serialized-interfaces/serialized-change-analysis-report"; | ||
import { Aggregation } from "../aggregations"; | ||
import { ComponentOperation, InfraModelDiff, Transition } from "../model-diffing"; | ||
import { Component } from "../infra-model"; | ||
import { RuleEffect } from "../rules"; | ||
import { Aggregation } from '../aggregations'; | ||
import { JSONSerializable, Serialized } from '../export/json-serializable'; | ||
import { SerializedChangeAnalysisReport } from '../export/serialized-interfaces/serialized-change-analysis-report'; | ||
import { Component } from '../infra-model'; | ||
import { ComponentOperation, InfraModelDiff, Transition } from '../model-diffing'; | ||
import { RuleEffect } from '../rules'; | ||
export declare class ChangeAnalysisReport implements JSONSerializable { | ||
@@ -8,0 +8,0 @@ readonly infraModelDiff: InfraModelDiff; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ChangeAnalysisReport = void 0; | ||
const aggregations_1 = require("../aggregations"); | ||
const serialization_classes_1 = require("../export/serialization-classes"); | ||
const aggregations_1 = require("../aggregations"); | ||
const utils_1 = require("../utils"); | ||
@@ -21,3 +21,3 @@ class ChangeAnalysisReport { | ||
})), | ||
rulesOutput: utils_1.fromEntries([...this.rulesOutput].map(([op, effect]) => [serialize(op), effect])) | ||
rulesOutput: utils_1.fromEntries([...this.rulesOutput].map(([op, effect]) => [serialize(op), effect])), | ||
}; | ||
@@ -33,2 +33,2 @@ } | ||
exports.ChangeAnalysisReport = ChangeAnalysisReport; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhbmdlLWFuYWx5c2lzLXJlcG9ydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL2NoYW5nZS1hbmFseXNpcy1yZXBvcnQvY2hhbmdlLWFuYWx5c2lzLXJlcG9ydC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSwyRUFBdUU7QUFFdkUsa0RBQXFFO0FBSXJFLG9DQUF1QztBQUV2QyxNQUFhLG9CQUFvQjtJQUU3QixZQUNvQixjQUE4QixFQUM5QixZQUErQyxFQUMvQyx3QkFBdUYsRUFDdkYsV0FBZ0Q7UUFIaEQsbUJBQWMsR0FBZCxjQUFjLENBQWdCO1FBQzlCLGlCQUFZLEdBQVosWUFBWSxDQUFtQztRQUMvQyw2QkFBd0IsR0FBeEIsd0JBQXdCLENBQStEO1FBQ3ZGLGdCQUFXLEdBQVgsV0FBVyxDQUFxQztJQUNsRSxDQUFDO0lBRUgsWUFBWSxDQUNSLFNBQTRDLEVBQzVDLGVBQXlGO1FBRXpGLE9BQU87WUFDSCxjQUFjLEVBQUUsU0FBUyxDQUFDLElBQUksQ0FBQyxjQUFjLENBQUM7WUFDOUMsWUFBWSxFQUFFLElBQUksQ0FBQyxZQUFZLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLFlBQVksQ0FBQy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XMuc2VyaWFsaXplQWdnKGFnZywgc2VyaWFsaXplLCBzZXJpYWxpemVDdXN0b20pKV07XG4gICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICksXG4gICAgICAgICAgICBydWxlc091dHB1dDogZnJvbUVudHJpZXMoXG4gICAgICAgICAgICAgICAgWy4uLnRoaXMucnVsZXNPdXRwdXRdLm1hcCgoW29wLCBlZmZlY3RdKSA9PiBbc2VyaWFsaXplKG9wKSwgZWZmZWN0XSlcbiAgICAgICAgICAgIClcbiAgICAgICAgfTtcbiAgICB9XG5cbiAgICBwcml2YXRlIHNlcmlhbGl6ZUFnZyhhZ2c6IEFnZ3JlZ2F0aW9uPENvbXBvbmVudE9wZXJhdGlvbj4sXG4gICAgICAgIHNlcmlhbGl6ZTogKG9iajogSlNPTlNlcmlhbGl6YWJsZSkgPT4gbnVtYmVyLFxuICAgICAgICBzZXJpYWxpemVDdXN0b206IChvYmo6IGFueSwgc2VyaWFsaXphdGlvbkNsYXNzOiBzdHJpbmcsIHNlcmlhbGl6ZWQ6IFNlcmlhbGl6ZWQpID0+IG51bWJlcil7XG4gICAgICAgIHJldHVybiBzZXJpYWxpemVDdXN0b20oXG4gICAgICAgICAgICBhZ2csXG4gICAgICAgICAgICBTZXJpYWxpemF0aW9uQ2xhc3Nlcy5BR0dSRUdBVElPTixcbiAgICAgICAgICAgIGFnZ3JlZ2F0aW9uU2VyaWFsaXplcihhZ2csIHNlcmlhbGl6ZSwgc2VyaWFsaXplQ3VzdG9tKVxuICAgICAgICApO1xuICAgIH1cblxuICAgIGdldFNlcmlhbGl6YXRpb25DbGFzcygpOiBzdHJpbmcge1xuICAgICAgICByZXR1cm4gU2VyaWFsaXphdGlvbkNsYXNzZXMuQ0hBTkdFX0FOQUxZU0lTX1JFUE9SVDtcbiAgICB9XG59Il19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhbmdlLWFuYWx5c2lzLXJlcG9ydC5qcyI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N0cmluZywgc2VyaWFsaXplZDogU2VyaWFsaXplZCkgPT4gbnVtYmVyKXtcbiAgICByZXR1cm4gc2VyaWFsaXplQ3VzdG9tKFxuICAgICAgYWdnLFxuICAgICAgU2VyaWFsaXphdGlvbkNsYXNzZXMuQUdHUkVHQVRJT04sXG4gICAgICBhZ2dyZWdhdGlvblNlcmlhbGl6ZXIoYWdnLCBzZXJpYWxpemUsIHNlcmlhbGl6ZUN1c3RvbSksXG4gICAgKTtcbiAgfVxuXG4gIGdldFNlcmlhbGl6YXRpb25DbGFzcygpOiBzdHJpbmcge1xuICAgIHJldHVybiBTZXJpYWxpemF0aW9uQ2xhc3Nlcy5DSEFOR0VfQU5BTFlTSVNfUkVQT1JUO1xuICB9XG59Il19 |
@@ -0,3 +1,3 @@ | ||
import { JSONSerializable, Serialized } from './json-serializable'; | ||
import { SerializationID } from './json-serializer'; | ||
import { JSONSerializable, Serialized } from './json-serializable'; | ||
declare type classDeserializer = (obj: Serialized, deserialize: (id: SerializationID) => JSONSerializable) => any; | ||
@@ -4,0 +4,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.classToDeserializer = void 0; | ||
const serialization_classes_1 = require("./serialization-classes"); | ||
const aggregation_deserializer_1 = require("./deserializers/aggregations/aggregation-deserializer"); | ||
const change_analysis_report_deserializer_1 = require("./deserializers/change-analysis-report-deserializer"); | ||
const component_operation_deserializers_1 = require("./deserializers/infra-model-diff/component-operations/component-operation-deserializers"); | ||
const property_component_operation_deserializer_1 = require("./deserializers/infra-model-diff/component-operations/property-component-operation-deserializer"); | ||
const infra_model_diff_deserializer_1 = require("./deserializers/infra-model-diff/infra-model-diff-deserializer"); | ||
const component_deserializer_1 = require("./deserializers/infra-model/component-deserializer"); | ||
const component_property_deserializer_1 = require("./deserializers/infra-model/component-property-deserializer"); | ||
const dependency_relationship_deserializer_1 = require("./deserializers/infra-model/dependency-relationship-deserializer"); | ||
const infra_model_deserializer_1 = require("./deserializers/infra-model/infra-model-deserializer"); | ||
const structural_relationship_deserializer_1 = require("./deserializers/infra-model/structural-relationship-deserializer"); | ||
const infra_model_deserializer_1 = require("./deserializers/infra-model/infra-model-deserializer"); | ||
const component_property_deserializer_1 = require("./deserializers/infra-model/component-property-deserializer"); | ||
const infra_model_diff_deserializer_1 = require("./deserializers/infra-model-diff/infra-model-diff-deserializer"); | ||
const aggregation_deserializer_1 = require("./deserializers/aggregations/aggregation-deserializer"); | ||
const transition_deserializer_1 = require("./deserializers/transition-deserializer"); | ||
const change_analysis_report_deserializer_1 = require("./deserializers/change-analysis-report-deserializer"); | ||
const serialization_classes_1 = require("./serialization-classes"); | ||
/** | ||
@@ -29,3 +29,3 @@ * classToDeserializer maps the SerializationClasses to their deserializer | ||
[serialization_classes_1.SerializationClasses.COMPONENT_PROPERTY_PRIMITIVE]: component_property_deserializer_1.componentPropertyPrimitiveDeserializer, | ||
// Infra Model Diff | ||
// Infra Model Diff | ||
[serialization_classes_1.SerializationClasses.INFRA_MODEL_DIFF]: infra_model_diff_deserializer_1.infraModelDiffDeserializer, | ||
@@ -44,2 +44,2 @@ [serialization_classes_1.SerializationClasses.TRANSITION]: transition_deserializer_1.transitionDeserializer, | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzZXJpYWxpemVyLW1hcHBpbmcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9leHBvcnQvZGVzZXJpYWxpemVyLW1hcHBpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsbUVBQStEO0FBQy9ELCtJQUFrUTtBQUNsUSwrSkFBdVM7QUFDdlMsK0ZBQTJGO0FBQzNGLDJIQUFzSDtBQUN0SCwySEFBc0g7QUFDdEgsbUdBQThGO0FBQzlGLGlIQUFrTztBQUNsTyxrSEFBNEc7QUFHNUcsb0dBQWdHO0FBQ2hHLHFGQUFpRjtBQUNqRiw2R0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09NUE9ORU5UX09QRVJBVElPTl06IHJlbmFtZUNvbXBvbmVudE9wZXJhdGlvbkRlc2VyaWFsaXplcixcbiAgW1NlcmlhbGl6YXRpb25DbGFzc2VzLklOU0VSVF9QUk9QRVJUWV9DT01QT05FTlRfT1BFUkFUSU9OXTogaW5zZXJ0UHJvcGVydHlDb21wb25lbnRPcGVyYXRpb25EZXNlcmlhbGl6ZXIsXG4gIFtTZXJpYWxpemF0aW9uQ2xhc3Nlcy5SRU1PVkVfUFJPUEVSVFlfQ09NUE9ORU5UX09QRVJBVElPTl06IHJlbW92ZVByb3BlcnR5Q29tcG9uZW50T3BlcmF0aW9uRGVzZXJpYWxpemVyLFxuICBbU2VyaWFsaXphdGlvbkNsYXNzZXMuVVBEQVRFX1BST1BFUlRZX0NPTVBPTkVOVF9PUEVSQVRJT05dOiB1cGRhdGVQcm9wZXJ0eUNvbXBvbmVudE9wZXJhdGlvbkRlc2VyaWFsaXplcixcbiAgW1NlcmlhbGl6YXRpb25DbGFzc2VzLk1PVkVfUFJPUEVSVFlfQ09NUE9ORU5UX09QRVJBVElPTl06IG1vdmVQcm9wZXJ0eUNvbXBvbmVudE9wZXJhdGlvbkRlc2VyaWFsaXplcixcblxuICBbU2VyaWFsaXphdGlvbkNsYXNzZXMuQUdHUkVHQVRJT05dOiBhZ2dyZWdhdGlvbkRlc2VyaWFsaXplcixcblxuICBbU2VyaWFsaXphdGlvbkNsYXNzZXMuQ0hBTkdFX0FOQUxZU0lTX1JFUE9SVF06IGNoYW5nZUFuYWx5c2lzUmVwb3J0RGVzZXJpYWxpemVyLFxufSk7Il19 |
@@ -1,4 +0,4 @@ | ||
import { Aggregation } from "../../../aggregations"; | ||
import { JSONSerializable, Serialized } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { Aggregation } from '../../../aggregations'; | ||
import { JSONSerializable, Serialized } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export declare function aggregationDeserializer<T extends JSONSerializable>(obj: Serialized, deserialize: (obj: SerializationID) => any): Aggregation<T>; |
@@ -11,3 +11,3 @@ "use strict"; | ||
subAggs: (_a = serialized.subAggs) === null || _a === void 0 ? void 0 : _a.map(deserialize), | ||
descriptions: serialized.descriptions | ||
descriptions: serialized.descriptions, | ||
}; | ||
@@ -19,2 +19,2 @@ if (agg.subAggs) | ||
exports.aggregationDeserializer = aggregationDeserializer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWdncmVnYXRpb24tZGVzZXJpYWxpemVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vZXhwb3J0L2Rlc2VyaWFsaXplcnMvYWdncmVnYXRpb25zL2FnZ3JlZ2F0aW9uLWRlc2VyaWFsaXplci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFLQSxTQUFnQix1QkFBdUIsQ0FBNkIsR0FBZSxFQUFFLFdBQTBDOztJQUMzSCxNQUFNLFVBQVUsR0FBRyxHQUE0QixDQUFDO0lBRWhELE1BQU0sR0FBRyxHQUFHO1FBQ1IsUUFBUSxFQUFFLElBQUksR0FBRyxDQUFDLFVBQVUsQ0FBQyxRQUFRLENBQUMsR0FBRyxDQUFDLFdBQVcsQ0FBUSxDQUFDO1FBQzlELGVBQWUsRUFBRSxVQUFVLENBQUMsZUFBZTtRQUMzQyxPQUFPLEVBQUUsTUFBQSxVQUFVLENBQUMsT0FBTywwQ0FBRSxHQUFHLENBQUMsV0FBVyxDQUFxQjtRQUNqRSxZQUFZLEVBQUUsVUFBVSxDQUFDLFlBQVk7S0FDeEMsQ0FBQztJQUVGLElBQUcsR0FBRyxDQUFDLE9BQU87UUFDVixHQUFHLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxTQUFTLEdBQUcsR0FBRyxDQUFDLENBQUM7SUFFaEQsT0FBT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5cbiAgaWYoYWdnLnN1YkFnZ3MpXG4gICAgYWdnLnN1YkFnZ3MuZm9yRWFjaChhID0+IGEucGFyZW50QWdnID0gYWdnKTtcblxuICByZXR1cm4gYWdnO1xufVxuIl19 |
@@ -1,3 +0,3 @@ | ||
import { JSONSerializable, Serialized } from "../json-serializable"; | ||
import { SerializationID } from "../json-serializer"; | ||
import { JSONSerializable, Serialized } from '../json-serializable'; | ||
import { SerializationID } from '../json-serializer'; | ||
export declare function changeAnalysisReportDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => any): JSONSerializable; |
@@ -7,5 +7,9 @@ "use strict"; | ||
const serialized = obj; | ||
return new change_analysis_report_1.ChangeAnalysisReport(deserialize(serialized.infraModelDiff), serialized.aggregations.map(deserialize), new Map(Object.entries(serialized.aggregationsPerComponent).map(([k, v]) => [deserialize(parseInt(k)), v.map(deserialize)])), new Map(Object.entries(serialized.rulesOutput).map(([id, effect]) => [deserialize(parseInt(id)), effect]))); | ||
return new change_analysis_report_1.ChangeAnalysisReport(deserialize(serialized.infraModelDiff), serialized.aggregations.map(deserialize), new Map(Object.entries(serialized.aggregationsPerComponent) | ||
.map(([k, v]) => [ | ||
deserialize(parseInt(k)), | ||
v.map(deserialize), | ||
])), new Map(Object.entries(serialized.rulesOutput).map(([id, effect]) => [deserialize(parseInt(id)), effect]))); | ||
} | ||
exports.changeAnalysisReportDeserializer = changeAnalysisReportDeserializer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhbmdlLWFuYWx5c2lzLXJlcG9ydC1kZXNlcmlhbGl6ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9leHBvcnQvZGVzZXJpYWxpemVycy9jaGFuZ2UtYW5hbHlzaXMtcmVwb3J0LWRlc2VyaWFsaXplci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx5RUFBb0U7QUFRcEUsU0FBZ0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WNoYW5nZS1hbmFseXNpcy1yZXBvcnQnO1xuXG5leHBvcnQgZnVuY3Rpb24gY2hhbmdlQW5hbHlzaXNSZXBvcnREZXNlcmlhbGl6ZXIoXG4gIG9iajogU2VyaWFsaXplZCxcbiAgZGVzZXJpYWxpemU6IChvYmo6IFNlcmlhbGl6YXRpb25JRCkgPT4gYW55LFxuKTogSlNPTlNlcmlhbGl6YWJsZSB7XG4gIGNvbnN0IHNlcmlhbGl6ZWQgPSBvYmogYXMgU2VyaWFsaXplZENoYW5nZUFuYWx5c2lzUmVwb3J0O1xuXG4gIHJldHVybiBuZXcgQ2hhbmdlQW5hbHlzaXNSZXBvcnQoXG4gICAgZGVzZXJpYWxpemUoc2VyaWFsaXplZC5pbmZyYU1vZGVsRGlmZikgYXMgSW5mcmFNb2RlbERpZmYsXG4gICAgc2VyaWFsaXplZC5hZ2dyZWdhdGlvbnMubWFwKGRlc2VyaWFsaXplKSBhcyBBZ2dyZWdhdGlvbjxDb21wb25lbnRPcGVyYXRpb24+W10sXG4gICAgbmV3IE1hcChPYmplY3QuZW50cmllcyhzZXJpYWxpemVkLmFnZ3JlZ2F0aW9uc1BlckNvbXBvbmVudClcbiAgICAgIC5tYXAoKFtrLHZdKSA9PiBbXG4gICAgICAgIGRlc2VyaWFsaXplKHBhcnNlSW50KGspKSBhcyBUcmFuc2l0aW9uPENvbXBvbmVudD4sXG4gICAgICAgIHYubWFwKGRlc2VyaWFsaXplKSBhcyBBZ2dyZWdhdGlvbjxDb21wb25lbnRPcGVyYXRpb24+W10sXG4gICAgICBdKSksXG4gICAgbmV3IE1hcChPYmplY3QuZW50cmllcyhzZXJpYWxpemVkLnJ1bGVzT3V0cHV0KS5tYXAoKFtpZCwgZWZmZWN0XSkgPT4gW2Rlc2VyaWFsaXplKHBhcnNlSW50KGlkKSksIGVmZmVjdF0pKSxcbiAgKTtcbn1cbiJdfQ== |
@@ -1,3 +0,3 @@ | ||
import { JSONSerializable, Serialized } from "../../../json-serializable"; | ||
import { SerializationID } from "../../../json-serializer"; | ||
import { JSONSerializable, Serialized } from '../../../json-serializable'; | ||
import { SerializationID } from '../../../json-serializer'; | ||
export declare function insertComponentOperationDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable; | ||
@@ -4,0 +4,0 @@ export declare function removeComponentOperationDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable; |
@@ -26,2 +26,2 @@ "use strict"; | ||
exports.renameComponentOperationDeserializer = renameComponentOperationDeserializer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LW9wZXJhdGlvbi1kZXNlcmlhbGl6ZXJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vZXhwb3J0L2Rlc2VyaWFsaXplcnMvaW5mcmEtbW9kZWwtZGlmZi9jb21wb25lbnQtb3BlcmF0aW9ucy9jb21wb25lbnQtb3BlcmF0aW9uLWRlc2VyaWFsaXplcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsOERBS29DO0FBSXBDLG1DQUFvRjtBQUVwRixTQUFnQixvQ0FBb0MsQ0FBQyxHQUFlLEVBQUUsV0FBdUQ7SUFDekgsTUFBTSxVQUFVLEdBQUcsR0FBbUMsQ0FBQztJQUV2RCxPQUFPLElBQUksd0NBQXdCLENBQy9CLDZCQUFxQixDQUFDLFVBQVUsQ0FBQyxFQUNqQywwQ0FBa0MsQ0FBQyxVQUFVLEVBQUUsV0FBVyxDQUFDLENBQzlELENBQUM7QUFDTixDQUFDO0FBUEQsb0ZBT0M7QUFFRCxTQUFnQixvQ0FBb0MsQ0FBQyxHQUFlLEVBQUUsV0FBdUQ7SUFDekgsTUFBTSxVQUFVLEdBQUcsR0FBbUMsQ0FBQztJQUV2RCxPQUFPLElBQUksd0NBQXdCLENBQy9CLDZCQUFxQixDQUFDLFVBQVU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||
import { JSONSerializable, Serialized } from "../../../json-serializable"; | ||
import { SerializationID } from "../../../json-serializer"; | ||
import { JSONSerializable, Serialized } from '../../../json-serializable'; | ||
import { SerializationID } from '../../../json-serializer'; | ||
export declare function insertPropertyComponentOperationDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable; | ||
@@ -4,0 +4,0 @@ export declare function removePropertyComponentOperationDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable; |
@@ -26,2 +26,2 @@ "use strict"; | ||
exports.updatePropertyComponentOperationDeserializer = updatePropertyComponentOperationDeserializer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHktY29tcG9uZW50LW9wZXJhdGlvbi1kZXNlcmlhbGl6ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9leHBvcnQvZGVzZXJpYWxpemVycy9pbmZyYS1tb2RlbC1kaWZmL2NvbXBvbmVudC1vcGVyYXRpb25zL3Byb3BlcnR5LWNvbXBvbmVudC1vcGVyYXRpb24tZGVzZXJpYWxpemVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDhEQUlvQztBQUlwQyxtQ0FBc0k7QUFFdEksU0FBZ0IsNENBQTRDLENBQUMsR0FBZSxFQUFFLFdBQXVEO0lBQ2pJLE1BQU0sVUFBVSxHQUFHLEdBQTJDLENBQUM7SUFFL0QsT0FBTyxJQUFJLGdEQUFnQyxDQUN2Qyw2QkFBcUIsQ0FBQyxVQUFVLENBQUMsRUFDakMsOENBQXNDLENBQUMsVUFBVSxFQUFFLFdBQVcsQ0FBQyxDQUNsRSxDQUFDO0FBQ04sQ0FBQztBQVBELG9HQU9DO0FBRUQsU0FBZ0IsNENBQTRDLENBQUMsR0FBZSxFQUFFLFdBQXVEO0lBQ2pJLE1BQU0sVUFBVSxHQUFHLEdBQTJD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cm9wZXJ0eUNvbXBvbmVudE9wZXJhdGlvbkRlc2VyaWFsaXplcihcbiAgb2JqOiBTZXJpYWxpemVkLFxuICBkZXNlcmlhbGl6ZTogKG9iajogU2VyaWFsaXphdGlvbklEKSA9PiBKU09OU2VyaWFsaXphYmxlLFxuKTogSlNPTlNlcmlhbGl6YWJsZSB7XG4gIGNvbnN0IHNlcmlhbGl6ZWQgPSBvYmogYXMgU2VyaWFsaXplZFByb3BlcnR5Q29tcG9uZW50T3BlcmF0aW9uO1xuXG4gIHJldHVybiBuZXcgTW92ZVByb3BlcnR5Q29tcG9uZW50T3BlcmF0aW9uKFxuICAgIGRlc2VyaWFsaXplT3BOb2RlRGF0YShzZXJpYWxpemVkKSxcbiAgICBkZXNlcmlhbGl6ZVVwZGF0ZVByb3BPcE91dG9pbmdOb2RlUmVmZXJlbmNlcyhzZXJpYWxpemVkLCBkZXNlcmlhbGl6ZSksXG4gICk7XG59Il19 |
@@ -1,5 +0,5 @@ | ||
import { OpNodeData, OpOutgoingNodeReferences, PropOpOutgoingNodeReferences, UpdatePropOpOutgoingNodeReferences } from "../../../../model-diffing/"; | ||
import { JSONSerializable } from "../../../json-serializable"; | ||
import { SerializationID } from "../../../json-serializer"; | ||
import { SerializedComponentOperation, SerializedPropertyComponentOperation, SerializedUpdatePropertyComponentOperation } from "../../../serialized-interfaces/infra-model-diff/serialized-component-operation"; | ||
import { OpNodeData, OpOutgoingNodeReferences, PropOpOutgoingNodeReferences, UpdatePropOpOutgoingNodeReferences } from '../../../../model-diffing/'; | ||
import { JSONSerializable } from '../../../json-serializable'; | ||
import { SerializationID } from '../../../json-serializer'; | ||
import { SerializedComponentOperation, SerializedPropertyComponentOperation, SerializedUpdatePropertyComponentOperation } from '../../../serialized-interfaces/infra-model-diff/serialized-component-operation'; | ||
export declare function deserializeOpNodeData(serialized: SerializedComponentOperation): OpNodeData; | ||
@@ -6,0 +6,0 @@ export declare function deserializeOpOutoingNodeReferences(serialized: SerializedComponentOperation, deserialize: (obj: SerializationID) => JSONSerializable): OpOutgoingNodeReferences; |
@@ -28,8 +28,9 @@ "use strict"; | ||
function deserializeUpdatePropOpOutoingNodeReferences(serialized, deserialize) { | ||
var _a; | ||
return { | ||
...deserializePropOpOutoingNodeReferences(serialized, deserialize), | ||
innerOperations: serialized.innerOperations ? serialized.innerOperations.map(deserialize) : undefined, | ||
innerOperations: (_a = serialized.innerOperations) === null || _a === void 0 ? void 0 : _a.map(deserialize), | ||
}; | ||
} | ||
exports.deserializeUpdatePropOpOutoingNodeReferences = deserializeUpdatePropOpOutoingNodeReferences; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9leHBvcnQvZGVzZXJpYWxpemVycy9pbmZyYS1tb2RlbC1kaWZmL2NvbXBvbmVudC1vcGVyYXRpb25zL3V0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDhEQUFvTztBQUtwTyxTQUFnQixxQkFBcUIsQ0FBQyxVQUF3QztJQUMxRSxPQUFPO1FBQ0gsU0FBUyxFQUFFLGtDQUFrQixDQUFDLFVBQVUsQ0FBQyxTQUE0QyxDQUFDO0tBQ3pGLENBQUM7QUFDTixDQUFDO0FBSkQsc0RBSUM7QUFFRCxTQUFnQixrQ0FBa0MsQ0FBQyxVQUF3QyxFQUFFLFdBQXVEO0lBQ2hKLE9BQU87UUFDSCxLQUFLLEVBQUUsVUFBVSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsV0FBVyxDQUFDLFVBQVUsQ0FBQyxLQUFLLENBQXVCLENBQUMsQ0FBQyxDQUFDLFNBQVM7UUFDekYsbUJBQW1CLEVBQUUsV0FBVyxDQUFDLFVBQVUsQ0FBQyxtQkFBbUIsQ0FBMEI7S0FDNUYsQ0FBQztBQUNOLENBQUM7QUFMRCxnRkFLQztBQUV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FByb3BlcnR5VmFsdWU+LFxuICB9O1xufVxuXG5leHBvcnQgZnVuY3Rpb24gZGVzZXJpYWxpemVVcGRhdGVQcm9wT3BPdXRvaW5nTm9kZVJlZmVyZW5jZXMoXG4gIHNlcmlhbGl6ZWQ6IFNlcmlhbGl6ZWRVcGRhdGVQcm9wZXJ0eUNvbXBvbmVudE9wZXJhdGlvbixcbiAgZGVzZXJpYWxpemU6IChvYmo6IFNlcmlhbGl6YXRpb25JRCkgPT4gSlNPTlNlcmlhbGl6YWJsZSxcbik6IFVwZGF0ZVByb3BPcE91dGdvaW5nTm9kZVJlZmVyZW5jZXMge1xuICByZXR1cm4ge1xuICAgIC4uLmRlc2VyaWFsaXplUHJvcE9wT3V0b2luZ05vZGVSZWZlcmVuY2VzKHNlcmlhbGl6ZWQsIGRlc2VyaWFsaXplKSxcbiAgICBpbm5lck9wZXJhdGlvbnM6IHNlcmlhbGl6ZWQuaW5uZXJPcGVyYXRpb25zPy5tYXAoZGVzZXJpYWxpemUpIGFzIFByb3BlcnR5Q29tcG9uZW50T3BlcmF0aW9uW10sXG4gIH07XG59Il19 |
@@ -1,3 +0,3 @@ | ||
import { JSONSerializable, Serialized } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { JSONSerializable, Serialized } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export declare function infraModelDiffDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable; |
@@ -10,2 +10,2 @@ "use strict"; | ||
exports.infraModelDiffDeserializer = infraModelDiffDeserializer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5mcmEtbW9kZWwtZGlmZi1kZXNlcmlhbGl6ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9leHBvcnQvZGVzZXJpYWxpemVycy9pbmZyYS1tb2RlbC1kaWZmL2luZnJhLW1vZGVsL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XJpYWxpemVkLmNvbXBvbmVudE9wZXJhdGlvbnMubWFwKGRlc2VyaWFsaXplKSBhcyBDb21wb25lbnRPcGVyYXRpb25bXSxcbiAgICBzZXJpYWxpemVkLmNvbXBvbmVudFRyYW5zaXRpb25zLm1hcChkZXNlcmlhbGl6ZSkgYXMgVHJhbnNpdGlvbjxDb21wb25lbnQ+W10sXG4gICAgZGVzZXJpYWxpemUoc2VyaWFsaXplZC5pbmZyYU1vZGVsVHJhbnNpdGlvbikgYXMgVHJhbnNpdGlvbjxJbmZyYU1vZGVsPixcbiAgKTtcbn1cbiJdfQ== |
@@ -1,3 +0,3 @@ | ||
import { JSONSerializable, Serialized } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { JSONSerializable, Serialized } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export declare function componentDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable; |
@@ -9,3 +9,3 @@ "use strict"; | ||
subtype: serializedComponent === null || serializedComponent === void 0 ? void 0 : serializedComponent.subtype, | ||
properties: deserialize(serializedComponent.properties) | ||
properties: deserialize(serializedComponent.properties), | ||
}); | ||
@@ -15,2 +15,2 @@ return component; | ||
exports.componentDeserializer = componentDeserializer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LWRlc2VyaWFsaXplci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2V4cG9ydC9kZXNlcmlhbGl6ZXJzL2luZnJhLW1vZGVsL2NvbXBvbmVudC1kZXNlcmlhbGl6ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsc0RBQXlFO0FBS3pFLFNBQWdCLHFCQUFxQixDQUFDLEdBQWUsRUFBRSxXQUF1RDtJQUMxRyxNQUFNLG1CQUFtQixHQUF3QixHQUEwQixDQUFDO0lBRTV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WUsXG4gICAgfSxcbiAgKTtcblxuICByZXR1cm4gY29tcG9uZW50O1xufSJdfQ== |
@@ -1,3 +0,3 @@ | ||
import { JSONSerializable, Serialized } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { JSONSerializable, Serialized } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export declare function componentPropertyArrayDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable; | ||
@@ -4,0 +4,0 @@ export declare function componentPropertyRecordDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable; |
@@ -13,3 +13,4 @@ "use strict"; | ||
const serializedComponentProperty = obj; | ||
return new infra_model_1.ComponentPropertyRecord(utils_1.fromEntries(Object.entries(serializedComponentProperty.value).map(([k, v]) => [k, deserialize(v)])), serializedComponentProperty.componentUpdateType); | ||
return new infra_model_1.ComponentPropertyRecord(utils_1.fromEntries(Object.entries(serializedComponentProperty.value) | ||
.map(([k, v]) => [k, deserialize(v)])), serializedComponentProperty.componentUpdateType); | ||
} | ||
@@ -26,2 +27,2 @@ exports.componentPropertyRecordDeserializer = componentPropertyRecordDeserializer; | ||
exports.componentPropertyEmptyDeserializer = componentPropertyEmptyDeserializer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LXByb3BlcnR5LWRlc2VyaWFsaXplci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2V4cG9ydC9kZXNlcmlhbGl6ZXJzL2luZnJhLW1vZGVsL2NvbXBvbmVudC1wcm9wZXJ0eS1kZXNlcmlhbGl6ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsc0RBQW1LO0FBQ25LLDBDQUE2QztBQUs3QyxTQUFnQixrQ0FBa0MsQ0FBQyxHQUFlLEVBQUUsV0FBdUQ7SUFDdkgsT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BlcnR5KCk7XG59Il19 |
@@ -1,3 +0,3 @@ | ||
import { JSONSerializable, Serialized } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { JSONSerializable, Serialized } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export declare function dependencyRelationshipDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable; |
@@ -11,3 +11,3 @@ "use strict"; | ||
targetAttributePath: serializedDependencyRelationship.targetAttributePath, | ||
sourcePropertyPath: serializedDependencyRelationship.sourcePropertyPath | ||
sourcePropertyPath: serializedDependencyRelationship.sourcePropertyPath, | ||
}); | ||
@@ -18,2 +18,2 @@ source.addOutgoing(relationship); | ||
exports.dependencyRelationshipDeserializer = dependencyRelationshipDeserializer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVwZW5kZW5jeS1yZWxhdGlvbnNoaXAtZGVzZXJpYWxpemVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vZXhwb3J0L2Rlc2VyaWFsaXplcnMvaW5mcmEtbW9kZWwvZGVwZW5kZW5jeS1yZWxhdGlvbnNoaXAtZGVzZXJpYWxpemVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHNEQUF5RTtBQUt6RSxTQUFnQixrQ0FBa0MsQ0FBQyxHQUFlLEVBQUUsV0FBdUQ7SUFDdkgsTUFBTSxnQ0FBZ0MsR0FBRyxHQUF1QyxDQUFDO0lBRWpGLE1BQU0sTUFBTSxHQUFHLFdBQVcsQ0FBQyxnQ0FBZ0MsQ0FBQyxNQUFNLENBQWMsQ0FBQztJQUNqRixNQUFNLE1BQU0sR0FBRyxXQUFXLENBQUMsZ0NBQWdDLENBQUMsTUFBTSxDQUFjLENBQUM7SUFFakYsTUFBTSxZQUFZLEdBQUcsSUFBSSxvQ0FBc0IsQ0FDM0MsTUF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@ -1,3 +0,3 @@ | ||
import { JSONSerializable, Serialized } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { JSONSerializable, Serialized } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export declare function infraModelDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable; |
@@ -10,2 +10,2 @@ "use strict"; | ||
exports.infraModelDeserializer = infraModelDeserializer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5mcmEtbW9kZWwtZGVzZXJpYWxpemVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vZXhwb3J0L2Rlc2VyaWFsaXplcnMvaW5mcmEtbW9kZWwvaW5mcmEtbW9kZWwtZGVzZXJpYWxpemVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHNEQUEyRTtBQUszRSxTQUFnQixzQkFBc0IsQ0FBQyxHQUFlLEVBQUUsV0FBdUQ7SUFDM0csTUFBTSxvQkFBb0IsR0FBRyxHQUEyQixDQUFDO0lBRXpELE9BQU8sSUFBSSx3QkFBVSxDQUNqQixvQkFBb0IsQ0FBQyxVQUFVLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsV0FBVyxDQUFDLENBQUMsQ0FBYyxDQUFDLEVBQ3JFLG9CQUFvQixDQUFDLGFBQWEsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxXQUFXLENBQUMsQ0FBQyxDQUFpQixDQUFDLENBQzlFLENBQUM7QUFDTixDQUFDO0FBUEQsd0RBT0MiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIEluZnJhTW9kZWwsIFJlbGF0aW9uc2hpcCB9IGZyb20gXCIuLi8uLi8uLi9pbmZyYS1tb2RlbFwiO1xuaW1wb3J0IH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TogSlNPTlNlcmlhbGl6YWJsZSB7XG4gIGNvbnN0IHNlcmlhbGl6ZWRJbmZyYU1vZGVsID0gb2JqIGFzIFNlcmlhbGl6ZWRJbmZyYU1vZGVsO1xuXG4gIHJldHVybiBuZXcgSW5mcmFNb2RlbChcbiAgICBzZXJpYWxpemVkSW5mcmFNb2RlbC5jb21wb25lbnRzLm1hcChjID0+IGRlc2VyaWFsaXplKGMpIGFzIENvbXBvbmVudCksXG4gICAgc2VyaWFsaXplZEluZnJhTW9kZWwucmVsYXRpb25zaGlwcy5tYXAociA9PiBkZXNlcmlhbGl6ZShyKSBhcyBSZWxhdGlvbnNoaXApLFxuICApO1xufSJdfQ== |
@@ -1,3 +0,3 @@ | ||
import { JSONSerializable, Serialized } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { JSONSerializable, Serialized } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export declare function structuralRelationshipDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => JSONSerializable): JSONSerializable; |
@@ -14,2 +14,2 @@ "use strict"; | ||
exports.structuralRelationshipDeserializer = structuralRelationshipDeserializer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RydWN0dXJhbC1yZWxhdGlvbnNoaXAtZGVzZXJpYWxpemVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vZXhwb3J0L2Rlc2VyaWFsaXplcnMvaW5mcmEtbW9kZWwvc3RydWN0dXJhbC1yZWxhdGlvbnNoaXAtZGVzZXJpYWxpemVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHNEQUF5RTtBQUt6RSxTQUFnQixrQ0FBa0MsQ0FBQyxHQUFlLEVBQUUsV0FBdUQ7SUFDdkgsTUFBTSxnQ0FBZ0MsR0FBRyxHQUE2QixDQUFDO0lBRXZFLE1BQU0sTUFBTSxHQUF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DtcblxuICBjb25zdCB0YXJnZXQgPSBkZXNlcmlhbGl6ZShzZXJpYWxpemVkU3RydWN0dXJhbFJlbGF0aW9uc2hpcC50YXJnZXQpIGFzIENvbXBvbmVudDtcbiAgY29uc3Qgc291cmNlID0gZGVzZXJpYWxpemUoc2VyaWFsaXplZFN0cnVjdHVyYWxSZWxhdGlvbnNoaXAuc291cmNlKSBhcyBDb21wb25lbnQ7XG5cbiAgY29uc3QgcmVsYXRpb25zaGlwID0gbmV3IFN0cnVjdHVyYWxSZWxhdGlvbnNoaXAoXG4gICAgc291cmNlLFxuICAgIHRhcmdldCxcbiAgICBzZXJpYWxpemVkU3RydWN0dXJhbFJlbGF0aW9uc2hpcC50eXBlLFxuICApO1xuXG4gIHNvdXJjZS5hZGRPdXRnb2luZyhyZWxhdGlvbnNoaXApO1xuXG4gIHJldHVybiByZWxhdGlvbnNoaXA7XG59Il19 |
@@ -1,3 +0,3 @@ | ||
import { JSONSerializable, Serialized } from "../json-serializable"; | ||
import { SerializationID } from "../json-serializer"; | ||
import { JSONSerializable, Serialized } from '../json-serializable'; | ||
import { SerializationID } from '../json-serializer'; | ||
export declare function transitionDeserializer(obj: Serialized, deserialize: (obj: SerializationID) => any): JSONSerializable; |
@@ -14,2 +14,2 @@ "use strict"; | ||
exports.transitionDeserializer = transitionDeserializer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNpdGlvbi1kZXNlcmlhbGl6ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9leHBvcnQvZGVzZXJpYWxpemVycy90cmFuc2l0aW9uLWRlc2VyaWFsaXplci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx1REFBaUQ7QUFLakQsU0FBZ0Isc0JBQXNCLENBQUMsR0FBZSxFQUFFLFdBQTBDO0lBQzlGLE1BQU0sVUFBVSxHQUFHLEdBQTJCLENBQUM7SUFF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aXRpb247XG5cbiAgY29uc3QgZGVzZXJpYWxpemVWZXJzaW9uID0gKHZlcnNpb246ICBTZXJpYWxpemF0aW9uSUQgfCB7dmFsdWU6IFNlcmlhbGl6ZWQgfSkgPT5cbiAgICB0eXBlb2YgdmVyc2lvbiA9PT0gJ29iamVjdCcgPyB2ZXJzaW9uLnZhbHVlIDogZGVzZXJpYWxpemUodmVyc2lvbik7XG5cblxuICByZXR1cm4gbmV3IFRyYW5zaXRpb24oe1xuICAgIHYxOiBzZXJpYWxpemVkLnYxID8gZGVzZXJpYWxpemVWZXJzaW9uKHNlcmlhbGl6ZWQudjEpIDogdW5kZWZpbmVkLFxuICAgIHYyOiBzZXJpYWxpemVkLnYyID8gZGVzZXJpYWxpemVWZXJzaW9uKHNlcmlhbGl6ZWQudjIpIDogdW5kZWZpbmVkLFxuICB9KTtcbn1cbiJdfQ== |
@@ -12,6 +12,6 @@ "use strict"; | ||
if (typeof obj !== 'object' || obj === null || Array.isArray(obj)) { | ||
throw Error("Cannot deserialize string as it does not represent an object"); | ||
throw Error('Cannot deserialize string as it does not represent an object'); | ||
} | ||
else if (typeof obj.entryPointId !== 'number') { | ||
throw Error("Cannot deserialize: entry point id not found"); | ||
throw Error('Cannot deserialize: entry point id not found'); | ||
} | ||
@@ -25,3 +25,3 @@ this.objects = obj.objects; | ||
if (this.objects.length <= id) { | ||
throw Error("SerializationID could not be found"); | ||
throw Error('SerializationID could not be found'); | ||
} | ||
@@ -38,2 +38,2 @@ const objectDeserializer = deserializer_mapping_1.classToDeserializer[this.objects[id].class]; | ||
exports.JSONDeserializer = JSONDeserializer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbi1kZXNlcmlhbGl6ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9leHBvcnQvanNvbi1kZXNlcmlhbGl6ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBRU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y5vYmplY3RzW2lkXS5jbGFzc107XG4gICAgICAgICAgICBpZighb2JqZWN0RGVzZXJpYWxpemVyKVxuICAgICAgICAgICAgICAgIHRocm93IEVycm9yKGBPYmplY3QgZGVzZXJpYWxpemVyIGZvciBjbGFzcyAke3RoaXMub2JqZWN0c1tpZF0uY2xhc3N9IGlzIG5vdCBjb25maWd1cmVkYCk7XG4gICAgICAgICAgICAgICAgXG4gICAgICAgICAgICBcbiAgICAgICAgICAgIGNyZWF0ZWRPYmogPSBvYmplY3REZXNlcmlhbGl6ZXIodGhpcy5vYmplY3RzW2lkXS5jb250ZW50LCB0aGlzLmRlc2VyaWFsaXplT2JqZWN0LmJpbmQodGhpcykpO1xuICAgICAgICAgICAgdGhpcy5kZXNlcmlhbGl6ZWRPYmplY3RzLnNldChpZCwgY3JlYXRlZE9iaik7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIGNyZWF0ZWRPYmo7XG4gICAgfVxufSJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbi1kZXNlcmlhbGl6ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9leHBvcnQvanNvbi1kZXNlcmlhbGl6ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsaUVBQTZEO0FBSzdELE1BQWEsZ0JBQWdCO0lBQTdCO1FBRW1CLHdCQUFtQixHQUE4QixJQUFJLEdBQUcsRUFBRSxDQUFDO0lBZ0M5RSxDQUFDO0lBN0JRLFdBQVcsQ0FBQyxHQUFXO1FBQzVCLE1BQU0sR0FBRyxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUM7UUFDNUIsSUFBRyxPQUFPLEdBQUcsS0FBSyxRQUFRLElBQUksR0FBRyxLQUFLLElBQUksSUFBSSxLQUFLLENBQUMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxFQUFDO1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1cbn0iXX0= |
@@ -1,2 +0,2 @@ | ||
import { SerializationID } from "./json-serializer"; | ||
import { SerializationID } from './json-serializer'; | ||
declare type SerializablePrimitive = string | number | boolean | undefined | null; | ||
@@ -11,7 +11,7 @@ interface SerializedArray extends Array<Serialized> { | ||
/** | ||
* This method converts an object into a serializable object. | ||
* Offers a callback to serialize its references. | ||
* @param serializer Serializes a JSONSerializable inner instance and returns its serialized id | ||
* @returns the serialized object | ||
*/ | ||
* This method converts an object into a serializable object. | ||
* Offers a callback to serialize its references. | ||
* @param serializer Serializes a JSONSerializable inner instance and returns its serialized id | ||
* @returns the serialized object | ||
*/ | ||
toSerialized(serialize: (obj: JSONSerializable) => SerializationID, serializeCustom: (obj: any, serializationClass: string, serialized: Serialized) => SerializationID): Serialized; | ||
@@ -18,0 +18,0 @@ getSerializationClass(): string; |
@@ -10,2 +10,2 @@ "use strict"; | ||
exports.isJSONSerializable = isJSONSerializable; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbi1zZXJpYWxpemFibGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9leHBvcnQvanNvbi1zZXJpYWxpemFibGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBd0JBLFNBQWdCLGtCQUFrQixDQUFDLENBQU07SUFDckMsT0FBTyxPQUFPLENBQUMsQ0FBQyxZQUFZLEtBQUssVUFBVTtXQUNwQyxPQUFPLENBQUMsQ0FBQyxxQkFBcUIsS0FBSyxVQUFVO1dBQzdDLE9BQU8sQ0FBQyxDQUFDLHFCQUFxQixFQUFFLEtBQUssUUFBUSxDQUFDO0FBQ3pELENBQUM7QUFKRCxnREFJQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFNlcmlhbGl6YXRpb25JRCB9IGZyb20gXCIuL2pzb24tc2VyaWFsaXplclwiO1xuXG50eXBlIFNlcmlhbGl6YWJsZVByaW1pdGl2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gICAgKiBAcmV0dXJucyB0aGUgc2VyaWFsaXplZCBvYmplY3RcbiAgICAgKi9cbiAgdG9TZXJpYWxpemVkKFxuICAgIHNlcmlhbGl6ZTogKG9iajogSlNPTlNlcmlhbGl6YWJsZSkgPT4gU2VyaWFsaXphdGlvbklELFxuICAgIHNlcmlhbGl6ZUN1c3RvbTogKG9iajogYW55LCBzZXJpYWxpemF0aW9uQ2xhc3M6IHN0cmluZywgc2VyaWFsaXplZDogU2VyaWFsaXplZCkgPT4gU2VyaWFsaXphdGlvbklEXG4gICk6IFNlcmlhbGl6ZWQ7XG5cbiAgZ2V0U2VyaWFsaXphdGlvbkNsYXNzKCk6IHN0cmluZztcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGlzSlNPTlNlcmlhbGl6YWJsZShvOiBhbnkpOiBvIGlzIEpTT05TZXJpYWxpemFibGUge1xuICByZXR1cm4gdHlwZW9mIG8udG9TZXJpYWxpemVkID09PSAnZnVuY3Rpb24nXG4gICAgICAgICYmIHR5cGVvZiBvLmdldFNlcmlhbGl6YXRpb25DbGFzcyA9PT0gJ2Z1bmN0aW9uJ1xuICAgICAgICAmJiB0eXBlb2Ygby5nZXRTZXJpYWxpemF0aW9uQ2xhc3MoKSA9PT0gJ3N0cmluZyc7XG59Il19 |
@@ -23,3 +23,3 @@ "use strict"; | ||
class: serializerClass, | ||
content: serialized | ||
content: serialized, | ||
}); | ||
@@ -35,2 +35,2 @@ } | ||
exports.JSONSerializer = JSONSerializer; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbi1zZXJpYWxpemVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vZXhwb3J0L2pzb24tc2VyaWFsaXplci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFJQSxNQUFhLGNBQWM7SUFBM0I7UUFFcUIsc0JBQWlCLEdBQTJDLElBQUksR0FBRyxFQUFFLENBQ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bmQodGhpcyksIHRoaXMuYWRkQ3VzdG9tLmJpbmQodGhpcykpKTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gaWQ7XG4gICAgfVxuXG4gICAgcHVibGljIGFkZEN1c3RvbShvYmo6IGFueSwgc2VyaWFsaXplckNsYXNzOiBzdHJpbmcsIHNlcmlhbGl6ZWQ6IFNlcmlhbGl6ZWQpOiBTZXJpYWxpemF0aW9uSUQge1xuICAgICAgICBsZXQgaWQgPSB0aGlzLmVuY29kZWRSZWZlcmVuY2VzLmdldChvYmopO1xuICAgICAgICBpZighaWQpe1xuICAgICAgICAgICAgaWQgPSB0aGlzLm9iamVjdHNUb1dyaXRlLmxlbmd0aDtcbiAgICAgICAgICAgIHRoaXMuZW5jb2RlZFJlZmVyZW5jZXMuc2V0KG9iaiwgaWQpO1xuICAgICAgICAgICAgdGhpcy5vYmplY3RzVG9Xcml0ZS5wdXNoKHtcbiAgICAgICAgICAgICAgICBjbGFzczogc2VyaWFsaXplckNsYXNzLFxuICAgICAgICAgICAgICAgIGNvbnRlbnQ6IHNlcmlhbGl6ZWRcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBpZDtcbiAgICB9XG4gICAgXG4gICAgcHVibGljIHNlcmlhbGl6ZShvYmo6IEpTT05TZXJpYWxpemFibGUpOiBzdHJpbmd7XG4gICAgICAgIGNvbnN0IGVudHJ5UG9pbnRJZCA9IHRoaXMuYWRkKG9iaik7XG4gICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh7ZW50cnlQb2ludElkLCBvYmplY3RzOiB0aGlzLm9iamVjdHNUb1dyaXRlfSk7XG4gICAgfVxufSJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbi1zZXJpYWxpemVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vZXhwb3J0L2pzb24tc2VyaWFsaXplci50cyJdLCJuY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zdG9tKFxuICAgICAgICBvYmosXG4gICAgICAgIG9iai5nZXRTZXJpYWxpemF0aW9uQ2xhc3MoKSxcbiAgICAgICAgb2JqLnRvU2VyaWFsaXplZCh0aGlzLmFkZC5iaW5kKHRoaXMpLFxuICAgICAgICAgIHRoaXMuYWRkQ3VzdG9tLmJpbmQodGhpcykpLFxuICAgICAgKTtcbiAgICB9XG4gICAgcmV0dXJuIGlkO1xuICB9XG5cbiAgcHVibGljIGFkZEN1c3RvbShvYmo6IGFueSwgc2VyaWFsaXplckNsYXNzOiBzdHJpbmcsIHNlcmlhbGl6ZWQ6IFNlcmlhbGl6ZWQpOiBTZXJpYWxpemF0aW9uSUQge1xuICAgIGxldCBpZCA9IHRoaXMuZW5jb2RlZFJlZmVyZW5jZXMuZ2V0KG9iaik7XG4gICAgaWYoIWlkKXtcbiAgICAgIGlkID0gdGhpcy5vYmplY3RzVG9Xcml0ZS5sZW5ndGg7XG4gICAgICB0aGlzLmVuY29kZWRSZWZlcmVuY2VzLnNldChvYmosIGlkKTtcbiAgICAgIHRoaXMub2JqZWN0c1RvV3JpdGUucHVzaCh7XG4gICAgICAgIGNsYXNzOiBzZXJpYWxpemVyQ2xhc3MsXG4gICAgICAgIGNvbnRlbnQ6IHNlcmlhbGl6ZWQsXG4gICAgICB9KTtcbiAgICB9XG4gICAgcmV0dXJuIGlkO1xuICB9XG5cbiAgcHVibGljIHNlcmlhbGl6ZShvYmo6IEpTT05TZXJpYWxpemFibGUpOiBzdHJpbmd7XG4gICAgY29uc3QgZW50cnlQb2ludElkID0gdGhpcy5hZGQob2JqKTtcbiAgICByZXR1cm4gSlNPTi5zdHJpbmdpZnkoe2VudHJ5UG9pbnRJZCwgb2JqZWN0czogdGhpcy5vYmplY3RzVG9Xcml0ZX0pO1xuICB9XG59Il19 |
@@ -32,2 +32,2 @@ "use strict"; | ||
})(SerializationClasses = exports.SerializationClasses || (exports.SerializationClasses = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJz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ORU5UX09QRVJBVElPTiA9ICdVcGRhdGVPdXRnb2luZ1JlbGF0aW9uc2hpcENvbXBvbmVudE9wZXJhdGlvbicsXG4gIElOU0VSVF9QUk9QRVJUWV9DT01QT05FTlRfT1BFUkFUSU9OID0gJ0luc2VydFByb3BlcnR5Q29tcG9uZW50T3BlcmF0aW9uJyxcbiAgUkVNT1ZFX1BST1BFUlRZX0NPTVBPTkVOVF9PUEVSQVRJT04gPSAnUmVtb3ZlUHJvcGVydHlDb21wb25lbnRPcGVyYXRpb24nLFxuICBVUERBVEVfUFJPUEVSVFlfQ09NUE9ORU5UX09QRVJBVElPTiA9ICdVcGRhdGVQcm9wZXJ0eUNvbXBvbmVudE9wZXJhdGlvbicsXG4gIE1PVkVfUFJPUEVSVFlfQ09NUE9ORU5UX09QRVJBVElPTiA9ICdNb3ZlUHJvcGVydHlDb21wb25lbnRPcGVyYXRpb24nLFxuXG4gIEFHR1JFR0FUSU9OID0gJ0FnZ3JlZ2F0aW9uJyxcblxuICBDSEFOR0VfQU5BTFlTSVNfUkVQT1JUID0gJ0NoYW5nZUFuYWx5c2lzUmVwb3J0Jyxcbn0iXX0= |
@@ -1,4 +0,4 @@ | ||
import { AggCharacteristicValue } from "../../../aggregations"; | ||
import { SerializedRecord } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { AggCharacteristicValue } from '../../../aggregations'; | ||
import { SerializedRecord } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export interface SerializedAggregation extends SerializedRecord { | ||
@@ -5,0 +5,0 @@ readonly entities: SerializationID[]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplZC1hZ2dyZWdhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2V4cG9ydC9zZXJpYWxpemVkLWludGV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cm9tICcuLi8uLi8uLi9hZ2dyZWdhdGlvbnMnO1xuaW1wb3J0IHsgU2VyaWFsaXplZFJlY29yZCB9IGZyb20gJy4uLy4uL2pzb24tc2VyaWFsaXphYmxlJztcbmltcG9ydCB7IFNlcmlhbGl6YXRpb25JRCB9IGZyb20gJy4uLy4uL2pzb24tc2VyaWFsaXplcic7XG5cbmV4cG9ydCBpbnRlcmZhY2UgU2VyaWFsaXplZEFnZ3JlZ2F0aW9uIGV4dGVuZHMgU2VyaWFsaXplZFJlY29yZCB7XG4gIHJlYWRvbmx5IGVudGl0aWVzOiBTZXJpYWxpemF0aW9uSURbXSxcbiAgcmVhZG9ubHkgY2hhcmFjdGVyaXN0aWNzOiBSZWNvcmQ8c3RyaW5nLCBBZ2dDaGFyYWN0ZXJpc3RpY1ZhbHVlPixcbiAgcmVhZG9ubHkgc3ViQWdncz86IFNlcmlhbGl6YXRpb25JRFtdLFxuICByZWFkb25seSBkZXNjcmlwdGlvbnM/OiBzdHJpbmdbXVxufSJdfQ== |
@@ -1,3 +0,3 @@ | ||
import { SerializedRecord } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { SerializedRecord } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export interface SerializedComponentOperation extends SerializedRecord { | ||
@@ -4,0 +4,0 @@ cause?: SerializationID; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplZC1jb21wb25lbnQtb3BlcmF0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vZXhwb3J0L3NlcmlhbGl6ZWQtaW50ZXJmYWNlcy9pbmZyYS1tb2RlbC1kaWZmL3NlcmlhbGl6ZWQtY29tcG9uZW50LW9wZXJhdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cm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Fuc2l0aW9uOiBTZXJpYWxpemF0aW9uSURcbn1cblxuZXhwb3J0IGludGVyZmFjZSBTZXJpYWxpemVkVXBkYXRlUHJvcGVydHlDb21wb25lbnRPcGVyYXRpb24gZXh0ZW5kcyBTZXJpYWxpemVkUHJvcGVydHlDb21wb25lbnRPcGVyYXRpb24ge1xuICBpbm5lck9wZXJhdGlvbnM/OiBTZXJpYWxpemF0aW9uSURbXVxufSJdfQ== |
@@ -1,3 +0,3 @@ | ||
import { SerializedRecord } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { SerializedRecord } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export interface SerializedInfraModelDiff extends SerializedRecord { | ||
@@ -4,0 +4,0 @@ readonly componentOperations: SerializationID[]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplZC1pbmZyYS1tb2RlbC1kaWZmLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vZXhwb3J0L3NlcmlhbGl6ZWQtaW50ZXJmYWNlcy9pbmZyYS1tb2RlbC1kaWZmL3NlcmlhbGl6ZWQtaW5mcmEtbW9kZWwtZGlmZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2VyaWFsaXplZFJlY29yZCB9IGZyb20gXCIuLi8uLi9qc29uLXNlcmlhbGl6YWJsZVwiO1xuaW1wb3J0IHsgU2VyaWFsaXphdGlvbklEIH0gZnJvbSBcIi4uLy4uL2pzb24tc2VyaWFsaXplclwiO1xuXG5leHBvcnQgaW50ZXJmYWNlIFNlcmlhbGl6ZWRJbmZyYU1vZGVsRGlmZiBleHRlbmRzIFNlcmlhbGl6ZWRSZWNvcmQge1xuICAgIHJlYWRvbmx5IGNvbXBvbmVudE9wZXJhdGlvbnM6IFNlcmlhbGl6YXRpb25JRFtdLFxuICAgIHJlYWRvbmx5IGNvbXBvbmVudFRyYW5zaXRpb25zOiBTZXJpYWxpemF0aW9uSURbXSxcbiAgICByZWFkb25seSBpbmZyYU1vZGVsVHJhbnNpdGlvbjogU2VyaWFsaXphdGlvbklEXG59Il19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplZC1pbmZyYS1tb2RlbC1kaWZmLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vZXhwb3J0L3NlcmlhbGl6ZWQtaW50ZXJmYWNlcy9pbmZyYS1tb2RlbC1kaWZmL3NlcmlhbGl6ZWQtaW5mcmEtbW9kZWwtZGlmZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2VyaWFsaXplZFJlY29yZCB9IGZyb20gJy4uLy4uL2pzb24tc2VyaWFsaXphYmxlJztcbmltcG9ydCB7IFNlcmlhbGl6YXRpb25JRCB9IGZyb20gJy4uLy4uL2pzb24tc2VyaWFsaXplcic7XG5cbmV4cG9ydCBpbnRlcmZhY2UgU2VyaWFsaXplZEluZnJhTW9kZWxEaWZmIGV4dGVuZHMgU2VyaWFsaXplZFJlY29yZCB7XG4gIHJlYWRvbmx5IGNvbXBvbmVudE9wZXJhdGlvbnM6IFNlcmlhbGl6YXRpb25JRFtdLFxuICByZWFkb25seSBjb21wb25lbnRUcmFuc2l0aW9uczogU2VyaWFsaXphdGlvbklEW10sXG4gIHJlYWRvbmx5IGluZnJhTW9kZWxUcmFuc2l0aW9uOiBTZXJpYWxpemF0aW9uSURcbn0iXX0= |
@@ -1,3 +0,3 @@ | ||
import { Serialized, SerializedRecord } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { Serialized, SerializedRecord } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export interface SerializedTransition extends SerializedRecord { | ||
@@ -4,0 +4,0 @@ v1?: SerializationID | { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplZC10cmFuc2l0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vZXhwb3J0L3NlcmlhbGl6ZWQtaW50ZXJmYWNlcy9pbmZyYS1tb2RlbC1kaWZmL3NlcmlhbGl6ZWQtdHJhbnNpdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2VyaWFsaXplZCwgU2VyaWFsaXplZFJlY29yZCB9IGZyb20gXCIuLi8uLi9qc29uLXNlcmlhbGl6YWJsZVwiO1xuaW1wb3J0IHsgU2VyaWFsaXphdGlvbklEIH0gZnJvbSBcIi4uLy4uL2pzb24tc2VyaWFsaXplclwiO1xuXG5leHBvcnQgaW50ZXJmYWNlIFNlcmlhbGl6ZWRUcmFuc2l0aW9uIGV4dGVuZHMgU2VyaWFsaXplZFJlY29yZCB7XG4gICAgdjE/OiBTZXJpYWxpemF0aW9uSUQgfCB7dmFsdWU6IFNlcmlhbGl6ZWQgfSxcbiAgICB2Mj86IFNlcmlhbGl6YXRpb25JRCB8IHt2YWx1ZTogU2VyaWFsaXplZCB9LFxufSJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplZC10cmFuc2l0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vZXhwb3J0L3NlcmlhbGl6ZWQtaW50ZXJmYWNlcy9pbmZyYS1tb2RlbC1kaWZmL3NlcmlhbGl6ZWQtdHJhbnNpdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2VyaWFsaXplZCwgU2VyaWFsaXplZFJlY29yZCB9IGZyb20gJy4uLy4uL2pzb24tc2VyaWFsaXphYmxlJztcbmltcG9ydCB7IFNlcmlhbGl6YXRpb25JRCB9IGZyb20gJy4uLy4uL2pzb24tc2VyaWFsaXplcic7XG5cbmV4cG9ydCBpbnRlcmZhY2UgU2VyaWFsaXplZFRyYW5zaXRpb24gZXh0ZW5kcyBTZXJpYWxpemVkUmVjb3JkIHtcbiAgdjE/OiBTZXJpYWxpemF0aW9uSUQgfCB7dmFsdWU6IFNlcmlhbGl6ZWQgfSxcbiAgdjI/OiBTZXJpYWxpemF0aW9uSUQgfCB7dmFsdWU6IFNlcmlhbGl6ZWQgfSxcbn0iXX0= |
@@ -1,4 +0,4 @@ | ||
import { ComponentUpdateType, PropertyPrimitive } from "../../../infra-model"; | ||
import { SerializedRecord } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { ComponentUpdateType, PropertyPrimitive } from '../../../infra-model'; | ||
import { SerializedRecord } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export interface SerializedComponentProperty extends SerializedRecord { | ||
@@ -5,0 +5,0 @@ value: PropertyPrimitive | SerializationID[] | Record<string, SerializationID> | undefined; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplZC1jb21wb25lbnQtcHJvcGVydHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9leHBvcnQvc2VyaWFsaXplZC1pbnRlcmZhY2VzL2luZnJhLW1vZGVsL3NlcmlhbGl6ZWQtY29tcG9uZW50LXByb3BlcnR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2V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YWxpemVkQ29tcG9uZW50UHJvcGVydHlSZWNvcmQgZXh0ZW5kcyBTZXJpYWxpemVkQ29tcG9uZW50UHJvcGVydHkge1xuICB2YWx1ZTogUmVjb3JkPHN0cmluZywgU2VyaWFsaXphdGlvbklEPlxufVxuXG5leHBvcnQgaW50ZXJmYWNlIFNlcmlhbGl6ZWRDb21wb25lbnRQcm9wZXJ0eUFycmF5IGV4dGVuZHMgU2VyaWFsaXplZENvbXBvbmVudFByb3BlcnR5IHtcbiAgdmFsdWU6IFNlcmlhbGl6YXRpb25JRFtdXG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgU2VyaWFsaXplZENvbXBvbmVudFByb3BlcnR5UHJpbWl0aXZlIGV4dGVuZHMgU2VyaWFsaXplZENvbXBvbmVudFByb3BlcnR5IHtcbiAgdmFsdWU6IFByb3BlcnR5UHJpbWl0aXZlXG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgU2VyaWFsaXplZENvbXBvbmVudFByb3BlcnR5RW1wdHkgZXh0ZW5kcyBTZXJpYWxpemVkQ29tcG9uZW50UHJvcGVydHkge1xuICB2YWx1ZTogdW5kZWZpbmVkXG59Il19 |
@@ -1,3 +0,3 @@ | ||
import { SerializedRecord } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { SerializedRecord } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export interface SerializedComponent extends SerializedRecord { | ||
@@ -4,0 +4,0 @@ properties: SerializationID; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplZC1jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9leHBvcnQvc2VyaWFsaXplZC1pbnRlcmZhY2VzL2luZnJhLW1vZGVsL3NlcmlhbGl6ZWQtY29tcG9uZW50LnRzIl0sIm5hbWVzI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bn0iXX0= |
@@ -1,3 +0,3 @@ | ||
import { SerializedRecord } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { SerializedRecord } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export interface SerializedInfraModel extends SerializedRecord { | ||
@@ -4,0 +4,0 @@ components: SerializationID[]; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplZC1pbmZyYS1tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2V4cG9ydC9zZXJpYWxpemVkLWludGVyZmFjZXMvaW5mcmEtbW9kZWwvc2VyaWFsaXplZC1pbmZyYS1tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2VyaWFsaXplZFJlY29yZCB9IGZyb20gXCIuLi8uLi9qc29uLXNlcmlhbGl6YWJsZVwiO1xuaW1wb3J0IHsgU2VyaWFsaXphdGlvbklEIH0gZnJvbSBcIi4uLy4uL2pzb24tc2VyaWFsaXplclwiO1xuXG5leHBvcnQgaW50ZXJmYWNlIFNlcmlhbGl6ZWRJbmZyYU1vZGVsIGV4dGVuZHMgU2VyaWFsaXplZFJlY29yZCB7XG4gICAgY29tcG9uZW50czogU2VyaWFsaXphdGlvbklEW10sXG4gICAgcmVsYXRpb25zaGlwczogU2VyaWFsaXphdGlvbklEW10sXG59ICJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplZC1pbmZyYS1tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2V4cG9ydC9zZXJpYWxpemVkLWludGVyZmFjZXMvaW5mcmEtbW9kZWwvc2VyaWFsaXplZC1pbmZyYS1tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgU2VyaWFsaXplZFJlY29yZCB9IGZyb20gJy4uLy4uL2pzb24tc2VyaWFsaXphYmxlJztcbmltcG9ydCB7IFNlcmlhbGl6YXRpb25JRCB9IGZyb20gJy4uLy4uL2pzb24tc2VyaWFsaXplcic7XG5cbmV4cG9ydCBpbnRlcmZhY2UgU2VyaWFsaXplZEluZnJhTW9kZWwgZXh0ZW5kcyBTZXJpYWxpemVkUmVjb3JkIHtcbiAgY29tcG9uZW50czogU2VyaWFsaXphdGlvbklEW10sXG4gIHJlbGF0aW9uc2hpcHM6IFNlcmlhbGl6YXRpb25JRFtdLFxufSJdfQ== |
@@ -1,4 +0,4 @@ | ||
import { PropertyPath } from "../../../infra-model"; | ||
import { SerializedRecord } from "../../json-serializable"; | ||
import { SerializationID } from "../../json-serializer"; | ||
import { PropertyPath } from '../../../infra-model'; | ||
import { SerializedRecord } from '../../json-serializable'; | ||
import { SerializationID } from '../../json-serializer'; | ||
export interface SerializedRelationship extends SerializedRecord { | ||
@@ -5,0 +5,0 @@ readonly target: SerializationID; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplZC1yZWxhdGlvbnNoaXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9leHBvcnQvc2VyaWFsaXplZC1pbnRlcmZhY2VzL2luZnJhLW1vZGVsL3NlcmlhbGl6ZWQtcmVsYXRpb25zaGlwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQcm9wZXJ0eVBhdGggfSBmcm9tIFwiLi4vLi4vLi4vaW5mcmEtbW9kZWxcI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vLi4vanNvbi1zZXJpYWxpemFibGUnO1xuaW1wb3J0IHsgU2VyaWFsaXphdGlvbklEIH0gZnJvbSAnLi4vLi4vanNvbi1zZXJpYWxpemVyJztcblxuZXhwb3J0IGludGVyZmFjZSBTZXJpYWxpemVkUmVsYXRpb25zaGlwIGV4dGVuZHMgU2VyaWFsaXplZFJlY29yZCB7XG4gIHJlYWRvbmx5IHRhcmdldDogU2VyaWFsaXphdGlvbklELFxuICByZWFkb25seSBzb3VyY2U6IFNlcmlhbGl6YXRpb25JRCxcbiAgcmVhZG9ubHkgdHlwZTogc3RyaW5nLFxufVxuXG5leHBvcnQgaW50ZXJmYWNlIFNlcmlhbGl6ZWREZXBlbmRlbmN5UmVsYXRpb25zaGlwIGV4dGVuZHMgU2VyaWFsaXplZFJlbGF0aW9uc2hpcCB7XG4gIHJlYWRvbmx5IHNvdXJjZVByb3BlcnR5UGF0aDogUHJvcGVydHlQYXRoLFxuICByZWFkb25seSB0YXJnZXRBdHRyaWJ1dGVQYXRoOiBQcm9wZXJ0eVBhdGhcbn0iXX0= |
@@ -1,4 +0,4 @@ | ||
import { RuleEffect } from "../../rules"; | ||
import { SerializedRecord } from "../json-serializable"; | ||
import { SerializationID } from "../json-serializer"; | ||
import { RuleEffect } from '../../rules'; | ||
import { SerializedRecord } from '../json-serializable'; | ||
import { SerializationID } from '../json-serializer'; | ||
export interface SerializedChangeAnalysisReport extends SerializedRecord { | ||
@@ -5,0 +5,0 @@ readonly infraModelDiff: SerializationID; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VyaWFsaXplZC1jaGFuZ2UtYW5hbHlzaXMtcmVwb3J0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vZXhwb3J0L3NlcmlhbGl6ZWQtaW50ZXJmYWNlcy9zZXJpYWxpemVkLWNoYW5nZS1hbmFseXN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i9ydWxlcyc7XG5pbXBvcnQgeyBTZXJpYWxpemVkUmVjb3JkIH0gZnJvbSAnLi4vanNvbi1zZXJpYWxpemFibGUnO1xuaW1wb3J0IHsgU2VyaWFsaXphdGlvbklEIH0gZnJvbSAnLi4vanNvbi1zZXJpYWxpemVyJztcblxuZXhwb3J0IGludGVyZmFjZSBTZXJpYWxpemVkQ2hhbmdlQW5hbHlzaXNSZXBvcnQgZXh0ZW5kcyBTZXJpYWxpemVkUmVjb3JkIHtcbiAgcmVhZG9ubHkgaW5mcmFNb2RlbERpZmY6IFNlcmlhbGl6YXRpb25JRCxcbiAgcmVhZG9ubHkgYWdncmVnYXRpb25zOiBTZXJpYWxpemF0aW9uSURbXSxcbiAgcmVhZG9ubHkgYWdncmVnYXRpb25zUGVyQ29tcG9uZW50OiBSZWNvcmQ8U2VyaWFsaXphdGlvbklELCBTZXJpYWxpemF0aW9uSURbXT4sXG4gIHJlYWRvbmx5IHJ1bGVzT3V0cHV0OiBSZWNvcmQ8U2VyaWFsaXphdGlvbklELCBSdWxlRWZmZWN0Pixcbn0iXX0= |
@@ -1,5 +0,5 @@ | ||
import { JSONSerializable } from "../export/json-serializable"; | ||
import { SerializationID } from "../export/json-serializer"; | ||
import { SerializedComponentProperty, SerializedComponentPropertyArray, SerializedComponentPropertyEmpty, SerializedComponentPropertyPrimitive, SerializedComponentPropertyRecord } from "../export/serialized-interfaces/infra-model/serialized-component-property"; | ||
import { ModelEntity, OutgoingReferences } from "./model-entity"; | ||
import { JSONSerializable } from '../export/json-serializable'; | ||
import { SerializationID } from '../export/json-serializer'; | ||
import { SerializedComponentProperty, SerializedComponentPropertyArray, SerializedComponentPropertyEmpty, SerializedComponentPropertyPrimitive, SerializedComponentPropertyRecord } from '../export/serialized-interfaces/infra-model/serialized-component-property'; | ||
import { ModelEntity, OutgoingReferences } from './model-entity'; | ||
/** | ||
@@ -6,0 +6,0 @@ * How a change in a ComponentPropertyValue |
@@ -21,4 +21,8 @@ "use strict"; | ||
exports.ComponentPropertyAccessError = ComponentPropertyAccessError; | ||
class ComponentPropertyValue /* TODO Value*/ extends model_entity_1.ModelEntity { | ||
get componentUpdateType() { var _a; return (_a = this.nodeData.componentUpdateType) !== null && _a !== void 0 ? _a : ComponentUpdateType.NONE; } | ||
/* TODO Value*/ | ||
class ComponentPropertyValue extends model_entity_1.ModelEntity { | ||
get componentUpdateType() { | ||
var _a; | ||
return (_a = this.nodeData.componentUpdateType) !== null && _a !== void 0 ? _a : ComponentUpdateType.NONE; | ||
} | ||
constructor(data, outgoingReferences) { | ||
@@ -29,3 +33,3 @@ super(model_entity_types_1.ModelEntityTypes.property, data, outgoingReferences); | ||
if (!this.isRecord()) { | ||
throw new ComponentPropertyAccessError("Trying to read component property as Record, but it is not one"); | ||
throw new ComponentPropertyAccessError('Trying to read component property as Record, but it is not one'); | ||
} | ||
@@ -36,3 +40,3 @@ return this.value; | ||
if (!this.isArray()) { | ||
throw new ComponentPropertyAccessError("Trying to read component property as an Array, but it is not one"); | ||
throw new ComponentPropertyAccessError('Trying to read component property as an Array, but it is not one'); | ||
} | ||
@@ -43,3 +47,3 @@ return this.value; | ||
if (this.isPrimitive()) { | ||
throw new ComponentPropertyAccessError("Trying to read component property as a Collection, but it is not one"); | ||
throw new ComponentPropertyAccessError('Trying to read component property as a Collection, but it is not one'); | ||
} | ||
@@ -50,3 +54,3 @@ return this.value; | ||
if (!this.isPrimitive()) { | ||
throw new ComponentPropertyAccessError("Trying to read component property as a primitive, but it is not one"); | ||
throw new ComponentPropertyAccessError('Trying to read component property as a primitive, but it is not one'); | ||
} | ||
@@ -152,3 +156,3 @@ return this.value; | ||
value: undefined, | ||
componentUpdateType: this.componentUpdateType | ||
componentUpdateType: this.componentUpdateType, | ||
}; | ||
@@ -161,2 +165,2 @@ } | ||
exports.EmptyComponentProperty = EmptyComponentProperty; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LXByb3BlcnR5Lm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3BlcnR5UHJpbWl0aXZlIHtcbiAgICByZXR1cm4ge1xuICAgICAgdmFsdWU6IHRoaXMuZ2V0UHJpbWl0aXZlKCksXG4gICAgICBjb21wb25lbnRVcGRhdGVUeXBlOiB0aGlzLmNvbXBvbmVudFVwZGF0ZVR5cGUsXG4gICAgfTtcbiAgfVxuXG4gIHB1YmxpYyBnZXRTZXJpYWxpemF0aW9uQ2xhc3MoKTogc3RyaW5ne1xuICAgIHJldHVybiBTZXJpYWxpemF0aW9uQ2xhc3Nlcy5DT01QT05FTlRfUFJPUEVSVFlfUFJJTUlUSVZFO1xuICB9XG59XG5cbmV4cG9ydCBjbGFzcyBFbXB0eUNvbXBvbmVudFByb3BlcnR5IGV4dGVuZHMgQ29tcG9uZW50UHJvcGVydHlWYWx1ZSB7XG4gIHB1YmxpYyBnZXQgdmFsdWUoKTogQ29tcG9uZW50UHJvcGVydHlWYWx1ZVR5cGUgfCB1bmRlZmluZWQgeyByZXR1cm4gdW5kZWZpbmVkOyB9XG5cbiAgY29uc3RydWN0b3IoKXtcbiAgICBzdXBlcih7fSx7fSk7XG4gIH1cblxuICBwdWJsaWMgdG9TZXJpYWxpemVkKCk6IFNlcmlhbGl6ZWRDb21wb25lbnRQcm9wZXJ0eUVtcHR5IHtcbiAgICByZXR1cm4ge1xuICAgICAgdmFsdWU6IHVuZGVmaW5lZCxcbiAgICAgIGNvbXBvbmVudFVwZGF0ZVR5cGU6IHRoaXMuY29tcG9uZW50VXBkYXRlVHlwZSxcbiAgICB9O1xuICB9XG5cbiAgcHVibGljIGdldFNlcmlhbGl6YXRpb25DbGFzcygpOiBzdHJpbmd7XG4gICAgcmV0dXJuIFNlcmlhbGl6YXRpb25DbGFzc2VzLkNPTVBPTkVOVF9QUk9QRVJUWV9FTVBUWTtcbiAgfVxufSJdfQ== |
@@ -1,7 +0,7 @@ | ||
import { JSONSerializable } from "../export/json-serializable"; | ||
import { SerializationID } from "../export/json-serializer"; | ||
import { SerializedComponent } from "../export/serialized-interfaces/infra-model/serialized-component"; | ||
import { ComponentPropertyValue } from "./component-property"; | ||
import { ModelEntity } from "./model-entity"; | ||
import { Relationship } from "./relationship"; | ||
import { JSONSerializable } from '../export/json-serializable'; | ||
import { SerializationID } from '../export/json-serializer'; | ||
import { SerializedComponent } from '../export/serialized-interfaces/infra-model/serialized-component'; | ||
import { ComponentPropertyValue } from './component-property'; | ||
import { ModelEntity } from './model-entity'; | ||
import { Relationship } from './relationship'; | ||
declare type NodeData = { | ||
@@ -32,5 +32,5 @@ readonly type: string; | ||
/** | ||
* properties hold any values that should be tracked | ||
* by the change analysis but do not have any other relevant behaviors | ||
*/ | ||
* properties hold any values that should be tracked | ||
* by the change analysis but do not have any other relevant behaviors | ||
*/ | ||
get type(): string; | ||
@@ -37,0 +37,0 @@ get subtype(): string | undefined; |
@@ -24,3 +24,3 @@ "use strict"; | ||
hasRelationship: new Set(), | ||
hasProperties: (_a = options === null || options === void 0 ? void 0 : options.properties) !== null && _a !== void 0 ? _a : new component_property_1.EmptyComponentProperty() | ||
hasProperties: (_a = options === null || options === void 0 ? void 0 : options.properties) !== null && _a !== void 0 ? _a : new component_property_1.EmptyComponentProperty(), | ||
}); | ||
@@ -32,5 +32,5 @@ this.incoming = new Set(); | ||
/** | ||
* properties hold any values that should be tracked | ||
* by the change analysis but do not have any other relevant behaviors | ||
*/ | ||
* properties hold any values that should be tracked | ||
* by the change analysis but do not have any other relevant behaviors | ||
*/ | ||
get type() { return this.nodeData.type; } | ||
@@ -41,3 +41,3 @@ get subtype() { return this.nodeData.subtype; } | ||
if (relationship.source !== this) | ||
throw Error("Trying to add relationship that does not belong to component"); | ||
throw Error('Trying to add relationship that does not belong to component'); | ||
this.outgoing.add(relationship); | ||
@@ -48,3 +48,3 @@ relationship.target.incoming.add(relationship); | ||
if (relationship.target !== this) | ||
throw Error("Trying to add relationship that does not belong to component"); | ||
throw Error('Trying to add relationship that does not belong to component'); | ||
relationship.source.addOutgoing(relationship); | ||
@@ -54,3 +54,3 @@ } | ||
if (relationship.source !== this) | ||
throw Error("Trying to remove relationship that does not belong to component"); | ||
throw Error('Trying to remove relationship that does not belong to component'); | ||
this.outgoing.delete(relationship); | ||
@@ -61,3 +61,3 @@ relationship.target.incoming.delete(relationship); | ||
if (relationship.target !== this) | ||
throw Error("Trying to remove relationship that does not belong to component"); | ||
throw Error('Trying to remove relationship that does not belong to component'); | ||
relationship.source.removeOutgoing(relationship); | ||
@@ -70,3 +70,3 @@ } | ||
subtype: this.subtype, | ||
name: this.name | ||
name: this.name, | ||
}; | ||
@@ -79,2 +79,2 @@ } | ||
exports.Component = Component; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vaW5mcmEtbW9kZWwvY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBLDJFQUF1RTtBQUV2RSw2REFBc0Y7QUFDdEYsaURBQTZDO0FBQzdDLDZEQUF3RDtBQW1CeEQ7Ozs7OztHQU1HO0FBQ0gsTUFBYSxTQUFVLFNBQVEsMEJBQTZDO0lBZXhFLFlBQVksSUFBWSxFQUFFLElBQVksRUFBRSxPQUEyQjs7UUFDL0QsS0FBSyxDQUNELHFDQUFnQixDQUFDLFNBQVMsRUFDMUI7WUFDSSxJQUFJO1lBQ0osSUFBSTtZQUNKLE9BQU8sRUFBRSxPQUFPLGFBQVAsT0FBTyx1QkFBUCxPQUFPLENBQUUsT0FBTztTQUM1QixFQUFFO1lBQ0MsZUFBZSxFQUFFLElBQUksR0FBRyxFQUFFO1lBQzFCLGFBQWEsRUFBRSxNQUFBLE9BQU8sYUFBUCxPQUFPLHVCQUFQLE9BQU8sQ0FBRSxVQUFVLG1DQUFJLElBQUksMkNBQXNCLEVBQUU7U0FDckUsQ0FDSixDQUFDO1FBdkJDLGFBQVEsR0FBc0IsSUFBSSxHQUFHLE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cocmVsYXRpb25zaGlwKTtcbiAgfVxuXG4gIHB1YmxpYyB0b1NlcmlhbGl6ZWQoc2VyaWFsaXplOiAob2JqOiBKU09OU2VyaWFsaXphYmxlKSA9PiBTZXJpYWxpemF0aW9uSUQpOiBTZXJpYWxpemVkQ29tcG9uZW50IHtcbiAgICByZXR1cm4ge1xuICAgICAgcHJvcGVydGllczogc2VyaWFsaXplKHRoaXMucHJvcGVydGllcyksXG4gICAgICB0eXBlOiB0aGlzLnR5cGUsXG4gICAgICBzdWJ0eXBlOiB0aGlzLnN1YnR5cGUsXG4gICAgICBuYW1lOiB0aGlzLm5hbWUsXG4gICAgfTtcbiAgfVxuXG4gIHB1YmxpYyBnZXRTZXJpYWxpemF0aW9uQ2xhc3MoKTogc3RyaW5ne1xuICAgIHJldHVybiBTZXJpYWxpemF0aW9uQ2xhc3Nlcy5DT01QT05FTlQ7XG4gIH1cbn1cbiJdfQ== |
@@ -1,7 +0,7 @@ | ||
import { JSONSerializable } from "../export/json-serializable"; | ||
import { SerializationID } from "../export/json-serializer"; | ||
import { SerializedDependencyRelationship } from "../export/serialized-interfaces/infra-model/serialized-relationship"; | ||
import { Component } from "./component"; | ||
import { PropertyPath } from "./component-property"; | ||
import { Relationship, RelationshipData } from "./relationship"; | ||
import { JSONSerializable } from '../export/json-serializable'; | ||
import { SerializationID } from '../export/json-serializer'; | ||
import { SerializedDependencyRelationship } from '../export/serialized-interfaces/infra-model/serialized-relationship'; | ||
import { Component } from './component'; | ||
import { PropertyPath } from './component-property'; | ||
import { Relationship, RelationshipData } from './relationship'; | ||
export declare type DependencyRelationshipOptions = { | ||
@@ -8,0 +8,0 @@ readonly sourcePropertyPath?: PropertyPath; |
@@ -20,3 +20,3 @@ "use strict"; | ||
sourcePropertyPath: this.sourcePropertyPath, | ||
targetAttributePath: this.targetAttributePath | ||
targetAttributePath: this.targetAttributePath, | ||
}; | ||
@@ -29,2 +29,2 @@ } | ||
exports.DependencyRelationship = DependencyRelationship; | ||
//# sour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VJlbGF0aW9uc2hpcCB7XG4gICAgcmV0dXJuIHtcbiAgICAgIC4uLnN1cGVyLnRvU2VyaWFsaXplZChzZXJpYWxpemUpLFxuICAgICAgc291cmNlUHJvcGVydHlQYXRoOiB0aGlzLnNvdXJjZVByb3BlcnR5UGF0aCxcbiAgICAgIHRhcmdldEF0dHJpYnV0ZVBhdGg6IHRoaXMudGFyZ2V0QXR0cmlidXRlUGF0aCxcbiAgICB9O1xuICB9XG5cbiAgcHVibGljIGdldFNlcmlhbGl6YXRpb25DbGFzcygpOiBzdHJpbmd7XG4gICAgcmV0dXJuIFNlcmlhbGl6YXRpb25DbGFzc2VzLkRFUEVOREVOQ1lfUkVMQVRJT05TSElQO1xuICB9XG5cbn0iXX0= |
@@ -1,7 +0,7 @@ | ||
import { JSONSerializable } from "../export/json-serializable"; | ||
import { SerializationID } from "../export/json-serializer"; | ||
import { SerializedInfraModel } from "../export/serialized-interfaces/infra-model/serialized-infra-model"; | ||
import { Component } from "./component"; | ||
import { ModelEntity } from "./model-entity"; | ||
import { Relationship } from "./relationship"; | ||
import { JSONSerializable } from '../export/json-serializable'; | ||
import { SerializationID } from '../export/json-serializer'; | ||
import { SerializedInfraModel } from '../export/serialized-interfaces/infra-model/serialized-infra-model'; | ||
import { Component } from './component'; | ||
import { ModelEntity } from './model-entity'; | ||
import { Relationship } from './relationship'; | ||
declare type OutgoingNodeReferences = { | ||
@@ -8,0 +8,0 @@ components: Component[]; |
@@ -16,3 +16,3 @@ "use strict"; | ||
components: this.components.map(c => serialize(c)), | ||
relationships: this.relationships.map(r => serialize(r)) | ||
relationships: this.relationships.map(r => serialize(r)), | ||
}; | ||
@@ -25,2 +25,2 @@ } | ||
exports.InfraModel = InfraModel; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5mcmEtbW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9pbmZyYS1tb2RlbC9pbmZyYS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sIHtjb21wb25lbnRzLCByZWxhdGlvbnNoaXBzfSk7XG4gIH1cblxuICBwdWJsaWMgdG9TZXJpYWxpemVkKHNlcmlhbGl6ZTogKG9iajogSlNPTlNlcmlhbGl6YWJsZSkgPT4gU2VyaWFsaXphdGlvbklEKTogU2VyaWFsaXplZEluZnJhTW9kZWwge1xuICAgIHJldHVybiB7XG4gICAgICBjb21wb25lbnRzOiB0aGlzLmNvbXBvbmVudHMubWFwKGMgPT4gc2VyaWFsaXplKGMpKSxcbiAgICAgIHJlbGF0aW9uc2hpcHM6IHRoaXMucmVsYXRpb25zaGlwcy5tYXAociA9PiBzZXJpYWxpemUocikpLFxuICAgIH07XG4gIH1cblxuICBwdWJsaWMgZ2V0U2VyaWFsaXphdGlvbkNsYXNzKCk6IHN0cmluZ3tcbiAgICByZXR1cm4gU2VyaWFsaXphdGlvbkNsYXNzZXMuSU5GUkFfTU9ERUw7XG4gIH1cbn0iXX0= |
@@ -13,2 +13,2 @@ "use strict"; | ||
})(ModelEntityTypes = exports.ModelEntityTypes || (exports.ModelEntityTypes = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kZWwtZW50aXR5LXR5cGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vaW5mcmEtbW9kZWwvbW9kZWwtZW50aXR5LXR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLElBQVksZ0JBT1g7QUFQRCxXQUFZLGdCQUFnQjtJQUN4Qix5Q0FBcUIsQ0FBQTtJQUNyQixxQ0FBaUIsQ0FBQTtJQUNqQiwyQ0FBdUIsQ0FBQTtJQUN2QixpREFBNkIsQ0FBQTtJQUM3QiwrREFBMkMsQ0FBQTtJQUMzQyw2Q0FBeUIsQ0FBQTtBQUM3QixDQUFDLEVBUFcsZ0JBQWdCLEdBQWhCLHdCQUFnQixLQUFoQix3QkFBZ0IsUUFPM0Ii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N0YXRlID0gJ2luZnJhc3RydWN0dXJlU3RhdGUnLFxuICB0cmFuc2l0aW9uID0gJ3RyYW5zaXRpb24nLFxufSJdfQ== |
@@ -16,9 +16,11 @@ "use strict"; | ||
_out: this.nodeData._id, | ||
key | ||
key, | ||
}); | ||
return this.explodeDirectReferences().filter(({ ref }) => utils_1.isDefined(ref)).map(({ refName, ref, key }) => createModelEntityEdge(refName, ref, key)); | ||
return this.explodeDirectReferences() | ||
.filter(({ ref }) => utils_1.isDefined(ref)) | ||
.map(({ refName, ref, key }) => createModelEntityEdge(refName, ref, key)); | ||
} | ||
explodeDirectReferences() { | ||
const createInfoObj = (label, e, key) => ({ | ||
refName: label, ref: e, key | ||
refName: label, ref: e, key, | ||
}); | ||
@@ -58,2 +60,2 @@ return utils_1.flatMap(Object.entries(this.outgoingNodeReferences), ([k, v]) => { | ||
ModelEntity.idCounter = 0; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kZWwtZW50aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vaW5mcmEtbW9kZWwvbW9kZWwtZW50aXR5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDhCQUE4QjtBQUU5QixvQ0FBOEM7QUFPOUMsTUFBYSxXQUFXO0lBVXBCLFlBQVksVUFBa0IsRUFBRSxRQUF5QixFQUFFLHNCQUEwQjtRQUNqRixJQUFJLENBQUMsUUFBUSxHQUFHLEVBQUUsVUFBVSxFQUFFLEdBQUcsRUFBRSxHQUFHLEVBQUUsV0FBVyxDQUFDLFNBQVMsRUFBRSxFQUFFLEdBQUcsUUFBUSxFQUFDLENBQUM7UUFDOUUsSUFBSSxDQUFDLHNCQUFzQixHQUFHLHNCQUFzQixDQUFDO0lBQ3pELENBQUM7SUFFTSxvQkFBb0I7UUFDdkIsTUFBTSxxQkFBcUIsR0FBRyxDQUFDLEtBQWEsRUFBRSxDQU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TtcbiAgICAgICAgICAgIH0gZWxzZSByZXR1cm4gW107XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHByaXZhdGUgZXhwbG9kZU5vZGVSZWZlcmVuY2VzKCk6IE1vZGVsRW50aXR5W10ge1xuICAgICAgICBjb25zdCBzdGFjazogTW9kZWxFbnRpdHlbXSA9IFt0aGlzXTtcbiAgICAgICAgY29uc3QgcmVzdWx0OiBTZXQ8TW9kZWxFbnRpdHk+ID0gbmV3IFNldCgpO1xuXG4gICAgICAgIHdoaWxlKHN0YWNrLmxlbmd0aCkge1xuICAgICAgICAgICAgY29uc3QgZSA9IHN0YWNrLnBvcCgpO1xuICAgICAgICAgICAgaWYoZSA9PT0gdW5kZWZpbmVkIHx8IHJlc3VsdC5oYXMoZSkpIGNvbnRpbnVlO1xuICAgICAgICAgICAgcmVzdWx0LmFkZChlKTtcbiAgICAgICAgICAgIHN0YWNrLnB1c2goLi4uZS5leHBsb2RlRGlyZWN0UmVmZXJlbmNlcygpLm1hcCgoe3JlZn0pID0+IHJlZikpO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIFsuLi5yZXN1bHRdO1xuICAgIH1cblxuICAgIHB1YmxpYyBnZW5lcmF0ZU91dGdvaW5nR3JhcGgoKSB7IFxuICAgICAgICBjb25zdCBlbnRpdGllcyA9IHRoaXMuZXhwbG9kZU5vZGVSZWZlcmVuY2VzKCk7XG4gICAgICAgIHJldHVybiBuZXcgZm4uR3JhcGgoZW50aXRpZXMubWFwKGUgPT4gZS5ub2RlRGF0YSksIGZsYXRNYXAoZW50aXRpZXMsIGUgPT4gZS5nZXRPdXRnb2luZ05vZGVFZGdlcygpKSk7XG4gICAgfVxufSJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kZWwtZW50aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vaW5mcmEtbW9kZWwvbW9kZWwtZW50aXR5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TtcbiAgICByZXR1cm4gbmV3IGZuLkdyYXBoKGVudGl0aWVzLm1hcChlID0+IGUubm9kZURhdGEpLCBmbGF0TWFwKGVudGl0aWVzLCBlID0+IGUuZ2V0T3V0Z29pbmdOb2RlRWRnZXMoKSkpO1xuICB9XG59Il19 |
@@ -1,6 +0,6 @@ | ||
import { JSONSerializable } from "../export/json-serializable"; | ||
import { SerializationID } from "../export/json-serializer"; | ||
import { SerializedRelationship } from "../export/serialized-interfaces/infra-model/serialized-relationship"; | ||
import { Component } from "./component"; | ||
import { ModelEntity } from "./model-entity"; | ||
import { JSONSerializable } from '../export/json-serializable'; | ||
import { SerializationID } from '../export/json-serializer'; | ||
import { SerializedRelationship } from '../export/serialized-interfaces/infra-model/serialized-relationship'; | ||
import { Component } from './component'; | ||
import { ModelEntity } from './model-entity'; | ||
export declare type RelationshipData = { | ||
@@ -7,0 +7,0 @@ readonly type: string; |
@@ -26,2 +26,2 @@ "use strict"; | ||
exports.Relationship = Relationship; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVsYXRpb25zaGlwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vaW5mcmEtbW9kZWwvcmVsYXRpb25zaGlwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUlBLGlEQUE2QztBQUM3Qyw2REFBd0Q7QUFXeEQ7OztHQUdHO0FBQ0gsTUFBc0IsWUFDbEIsU0FBUSwwQkFBaUM7SUFHekMsSUFBVyxJQUFJLEtBQWEsT0FBTyxJQUFJLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7SUFDeEQsSUFBVyxNQUFNLEtBQWdCLE9BQU8sSUFBSSxDQUFDLHNCQUFzQixDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUM7SUFDN0UsSUFBVyxNQUFNLEtBQWdCLE9BQU8sSUFBSSxDQUFDLHNCQUFzQixDQUFD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LnNvdXJjZSksXG4gICAgICB0eXBlOiB0aGlzLnR5cGUsXG4gICAgfTtcbiAgfVxuXG4gIHB1YmxpYyBhYnN0cmFjdCBnZXRTZXJpYWxpemF0aW9uQ2xhc3MoKTogc3RyaW5nO1xufSJdfQ== |
@@ -1,3 +0,3 @@ | ||
import { Component } from "./component"; | ||
import { Relationship } from "./relationship"; | ||
import { Component } from './component'; | ||
import { Relationship } from './relationship'; | ||
/** | ||
@@ -4,0 +4,0 @@ * StructuralRelationship establishes a conceptual hierarchy between |
@@ -20,2 +20,2 @@ "use strict"; | ||
exports.StructuralRelationship = StructuralRelationship; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RydWN0dXJhbC1yZWxhdGlvbnNoaXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9pbmZyYS1tb2RlbC9zdHJ1Y3R1cmFsLXJlbGF0aW9uc2hpcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwyRUFBdUU7QUFFdkUsaURBQThDO0FBRTlDOzs7O0dBSUc7QUFDSCxNQUFhLHNCQUF1QixTQUFRLDJCQUFZO0lBRXBELFlBQVksTUFBaUIsRUFBRSxNQUFpQixFQUFFLElBQVk7UUFDMUQsS0FBSyxDQUFDLE1BQU0sRUFBRSxNQUFNLEVBQUUsRUFBQyxJQUFJLEVBQUMsQ0FBQyxDQUFDO0lBQ2xDLENBQUM7SUFFTSxxQkFBcUI7UUFDeEIsT0FBTyw0Q0FBb0IsQ0FBQyx1QkFBdUIsQ0FBQztJQUN4RCxDQUFDO0NBRUo7QUFWRCx3REFVQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFNlcmlhbGl6YXRpb25DbGFzc2VzIH0gZnJvbSBcIi4uL2V4cG9ydC9zZXJpYWxpemF0aW9uLWNsYXNzZXNcIjtcbmltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gXCIuL2N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Rpb25DbGFzc2VzLlNUUlVDVFVSQUxfUkVMQVRJT05TSElQO1xuICB9XG5cbn0iXX0= |
@@ -1,6 +0,6 @@ | ||
import { JSONSerializable, Serialized } from "../export/json-serializable"; | ||
import { SerializationID } from "../export/json-serializer"; | ||
import { Component, InfraModel, ModelEntity } from "../infra-model"; | ||
import { ComponentOperation } from "./operations"; | ||
import { Transition } from "./transition"; | ||
import { JSONSerializable, Serialized } from '../export/json-serializable'; | ||
import { SerializationID } from '../export/json-serializer'; | ||
import { Component, InfraModel, ModelEntity } from '../infra-model'; | ||
import { ComponentOperation } from './operations'; | ||
import { Transition } from './transition'; | ||
export declare class TransitionNotFoundError extends Error { | ||
@@ -13,11 +13,11 @@ } | ||
}; | ||
export declare class InfraModelDiff extends ModelEntity<{}, OutgoingNodeReferences> implements JSONSerializable { | ||
export declare class InfraModelDiff extends ModelEntity<Record<string, Serialized>, OutgoingNodeReferences> implements JSONSerializable { | ||
private static createComponentTransitionMap; | ||
private static createComponentTransitionToOperationsMap; | ||
private readonly componentToTransitionMap; | ||
private readonly componentTransitionToOperationsMap; | ||
get componentOperations(): ComponentOperation<any, any>[]; | ||
get componentTransitions(): Transition<Component, import("./transition").TransitionVersions<Component>>[]; | ||
get infraModelTransition(): Transition<InfraModel, import("./transition").TransitionVersions<InfraModel>>; | ||
get componentOperations(): ComponentOperation[]; | ||
get componentTransitions(): Transition<Component>[]; | ||
get infraModelTransition(): Transition<InfraModel>; | ||
constructor(componentOperations: ComponentOperation[], componentTransitions: Transition<Component>[], infraModelTransition: Transition<InfraModel>); | ||
private static createComponentTransitionMap; | ||
private static createComponentTransitionToOperationsMap; | ||
getComponentTransition(e: Component): Transition<Component>; | ||
@@ -24,0 +24,0 @@ getTransitionOperations(t: Transition<Component>): ComponentOperation[]; |
@@ -10,3 +10,2 @@ "use strict"; | ||
exports.TransitionNotFoundError = TransitionNotFoundError; | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
class InfraModelDiff extends infra_model_1.ModelEntity { | ||
@@ -16,7 +15,5 @@ constructor(componentOperations, componentTransitions, infraModelTransition) { | ||
this.componentToTransitionMap = InfraModelDiff.createComponentTransitionMap(componentTransitions); | ||
this.componentTransitionToOperationsMap = InfraModelDiff.createComponentTransitionToOperationsMap(componentOperations); | ||
this.componentTransitionToOperationsMap = | ||
InfraModelDiff.createComponentTransitionToOperationsMap(componentOperations); | ||
} | ||
get componentOperations() { return this.outgoingNodeReferences.componentOperations; } | ||
get componentTransitions() { return this.outgoingNodeReferences.componentTransitions; } | ||
get infraModelTransition() { return this.outgoingNodeReferences.infraModelTransition; } | ||
static createComponentTransitionMap(componentTransitions) { | ||
@@ -29,2 +26,11 @@ return new Map(utils_1.flatMap(componentTransitions, t => [[t.v1, t], [t.v2, t]]) | ||
} | ||
get componentOperations() { | ||
return this.outgoingNodeReferences.componentOperations; | ||
} | ||
get componentTransitions() { | ||
return this.outgoingNodeReferences.componentTransitions; | ||
} | ||
get infraModelTransition() { | ||
return this.outgoingNodeReferences.infraModelTransition; | ||
} | ||
getComponentTransition(e) { | ||
@@ -44,3 +50,3 @@ const t = this.componentToTransitionMap.get(e); | ||
componentTransitions: this.componentTransitions.map(t => serialize(t)), | ||
infraModelTransition: serialize(this.infraModelTransition) | ||
infraModelTransition: serialize(this.infraModelTransition), | ||
}; | ||
@@ -53,2 +59,2 @@ } | ||
exports.InfraModelDiff = InfraModelDiff; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5mcmEtbW9kZWwtZGlmZi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL21vZGVsLWRpZmZpbmcvaW5mcmEtbW9kZWwtZGlmZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFFQSwyRUFBdUU7QUFDdkUsZ0RBQW9FO0FBQ3BFLG9DQUE0RDtBQUk1RCxNQUFhLHVCQUF3QixTQUFRLEtBQUs7Q0FBRztBQUF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2V0VHJhbnNpdGlvbk9wZXJhdGlvbnModDogVHJhbnNpdGlvbjxDb21wb25lbnQ+KTogQ29tcG9uZW50T3BlcmF0aW9uW10ge1xuICAgIHJldHVybiB0aGlzLmNvbXBvbmVudFRyYW5zaXRpb25Ub09wZXJhdGlvbnNNYXAuZ2V0KHQpID8/IFtdO1xuICB9XG5cbiAgcHVibGljIHRvU2VyaWFsaXplZChcbiAgICBzZXJpYWxpemU6IChvYmo6IEpTT05TZXJpYWxpemFibGUpID0+IFNlcmlhbGl6YXRpb25JRCxcbiAgKTogU2VyaWFsaXplZCB7XG4gICAgcmV0dXJuIHtcbiAgICAgIGNvbXBvbmVudE9wZXJhdGlvbnM6IHRoaXMuY29tcG9uZW50T3BlcmF0aW9ucy5tYXAoc2VyaWFsaXplKSxcbiAgICAgIGNvbXBvbmVudFRyYW5zaXRpb25zOiB0aGlzLmNvbXBvbmVudFRyYW5zaXRpb25zLm1hcCh0ID0+IHNlcmlhbGl6ZSh0KSksXG4gICAgICBpbmZyYU1vZGVsVHJhbnNpdGlvbjogc2VyaWFsaXplKHRoaXMuaW5mcmFNb2RlbFRyYW5zaXRpb24pLFxuICAgIH07XG4gIH1cbiAgcHVibGljIGdldFNlcmlhbGl6YXRpb25DbGFzcygpOiBzdHJpbmcge1xuICAgIHJldHVybiBTZXJpYWxpemF0aW9uQ2xhc3Nlcy5JTkZSQV9NT0RFTF9ESUZGO1xuICB9XG59Il19 |
@@ -1,6 +0,6 @@ | ||
import { JSONSerializable } from "../../export/json-serializable"; | ||
import { SerializedComponentOperation } from "../../export/serialized-interfaces/infra-model-diff/serialized-component-operation"; | ||
import { Component, ComponentPropertyValue } from "../../infra-model"; | ||
import { ModelEntity } from "../../infra-model/model-entity"; | ||
import { Transition } from "../transition"; | ||
import { JSONSerializable } from '../../export/json-serializable'; | ||
import { SerializedComponentOperation } from '../../export/serialized-interfaces/infra-model-diff/serialized-component-operation'; | ||
import { Component, ComponentPropertyValue } from '../../infra-model'; | ||
import { ModelEntity } from '../../infra-model/model-entity'; | ||
import { Transition } from '../transition'; | ||
export declare enum OperationCertainty { | ||
@@ -7,0 +7,0 @@ ABSOLUTE = "Absolute", |
@@ -35,4 +35,4 @@ "use strict"; | ||
...((_a = outgoingReferences.appliesTo) !== null && _a !== void 0 ? _a : []), | ||
...outgoingReferences.componentTransition.explode() | ||
] | ||
...outgoingReferences.componentTransition.explode(), | ||
], | ||
}); | ||
@@ -96,2 +96,2 @@ } | ||
exports.RenameComponentOperation = RenameComponentOperation; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50LW9wZXJhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL21vZGVsLWRpZmZpbmcvb3BlcmF0aW9ucy9jb21wb25lbnQtb3BlcmF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDhFQUEwRTtBQUcxRSxpRUFBNkQ7QUFDN0QsNkVBQXdFO0FBR3hFLElBQVksa0JBR1g7QUFIRCxXQUFZLGtCQUFrQjtJQUMxQiwyQ0FBcUIsQ0FBQTtJQUNyQix5Q0FBbUIsQ0FBQTtBQUN2QixDQUFDLEVBSFcsa0JBQWtCLEdBQWxCLDBCQUFrQixLQUFsQiwwQkFBa0IsUUFHN0I7QUFFRCxJQUFZLGFBTVg7QUFORCxXQUFZLGFBQWE7SUFDckIsa0NBQWlCLENBQUE7SUFDakIsa0NBQWlCLENBQUE7SUFDakIsa0NBQWlCLENBQUE7SUFDakIsb0NBQW1CLENBQUE7SUFDbkIsa0NBQWlCLENBQUE7QUFDckIsQ0FBQyxFQU5XLGFBQWEsR0FBYixxQkFBYSxLQUFiLHFCQUFhLFFBTXhCO0FBd0JELE1BQXNCLGtCQUNsQixTQUFRLDBCQUF5RTtJQUdqRixJQUFXLEtBQUssS0FBcUMsT0FBTyxJQUFJLENBQUMsc0JBQXNCLENBQU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W5zaXRpb24udjIsXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAuLi5vdXRnb2luZ1JlZmVyZW5jZXMsXG4gICAgICAgICAgICAgICAgYXBwbGllc1RvOiBbXG4gICAgICAgICAgICAgICAgICAgIC4uLihvdXRnb2luZ1JlZmVyZW5jZXMuYXBwbGllc1RvID8/IFtdKSxcbiAgICAgICAgICAgICAgICAgICAgLi4ub3V0Z29pbmdSZWZlcmVuY2VzLmNvbXBvbmVudFRyYW5zaXRpb24uZXhwbG9kZSgpXG4gICAgICAgICAgICAgICAgXVxuICAgICAgICAgICAgfVxuICAgICAgICApO1xuICAgIH1cblxuICAgIHB1YmxpYyBpc0RpcmVjdENoYW5nZSgpOiBib29sZWFue1xuICAgICAgICByZXR1cm4gIXRoaXMuY2F1c2U7XG4gICAgfVxuXG4gICAgcHVibGljIHRvU2VyaWFsaXplZChcbiAgICAgICAgc2VyaWFsaXplOiAob2JqOiBKU09OU2VyaWFsaXphYmxlKSA9PiBudW1iZXIsXG4gICAgKTogU2VyaWFsaXplZENvbXBvbmVudE9wZXJhdGlvbiB7XG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICBjYXVzZTogdGhpcy5jYXVzZSA/IHNlcmlhbGl6ZSh0aGlzLmNhdXNlKSA6IHVuZGVmaW5lZCxcbiAgICAgICAgICAgIGNlcnRhaW50eTogdGhpcy5jZXJ0YWludHksXG4gICAgICAgICAgICBjb21wb25lbnRUcmFuc2l0aW9uOiBzZXJpYWxpemUodGhpcy5jb21wb25lbnRUcmFuc2l0aW9uKSxcbiAgICAgICAgfTtcbiAgICB9XG4gICAgXG4gICAgcHVibGljIGFic3RyYWN0IGdldFNlcmlhbGl6YXRpb25DbGFzcygpOiBzdHJpbmc7XG59XG5cbmV4cG9ydCBjbGFzcyBJbnNlcnRDb21wb25lbnRPcGVyYXRpb24gZXh0ZW5kcyBDb21wb25lbnRPcGVyYXRpb24ge1xuICAgIGNvbnN0cnVjdG9yKFxuIC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XG5leHBvcnQgY2xhc3MgUmVuYW1lQ29tcG9uZW50T3BlcmF0aW9uIGV4dGVuZHMgQ29tcG9uZW50T3BlcmF0aW9uIHtcblxuICBjb25zdHJ1Y3RvcihcbiAgICBub2RlRGF0YTogT3BOb2RlRGF0YSxcbiAgICBvdXRnb2luZ1JlZmVyZW5jZXM6IE9wT3V0Z29pbmdOb2RlUmVmZXJlbmNlcyxcbiAgKXsgc3VwZXIobm9kZURhdGEsIG91dGdvaW5nUmVmZXJlbmNlcywgT3BlcmF0aW9uVHlwZS5SRU5BTUUpO1xuICAgIGlmKHRoaXMuY29tcG9uZW50VHJhbnNpdGlvbi52MSA9PT0gdW5kZWZpbmVkIHx8IHRoaXMuY29tcG9uZW50VHJhbnNpdGlvbi52MiA9PT0gdW5kZWZpbmVkKVxuICAgICAgdGhyb3cgRXJyb3IoXCJSZW5hbWUgT3BlcmF0aW9uJ3MgY29tcG9uZW50IHRyYW5zaXRpb24gaGFzIHRvIGhhdmUgYm90aCB2MSBhbmQgdjJcIik7XG4gIH1cblxuICBwdWJsaWMgZ2V0U2VyaWFsaXphdGlvbkNsYXNzKCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIFNlcmlhbGl6YXRpb25DbGFzc2VzLlJFTkFNRV9DT01QT05FTlRfT1BFUkFUSU9OO1xuICB9XG59Il19 |
@@ -1,6 +0,6 @@ | ||
import { JSONSerializable } from "../../export/json-serializable"; | ||
import { SerializedPropertyComponentOperation, SerializedUpdatePropertyComponentOperation } from "../../export/serialized-interfaces/infra-model-diff/serialized-component-operation"; | ||
import { ComponentPropertyValue, ComponentUpdateType, PropertyPath } from "../../infra-model"; | ||
import { Transition } from "../transition"; | ||
import { ComponentOperation, OperationType, OpNodeData, OpOutgoingNodeReferences } from "./component-operation"; | ||
import { JSONSerializable } from '../../export/json-serializable'; | ||
import { SerializedPropertyComponentOperation, SerializedUpdatePropertyComponentOperation } from '../../export/serialized-interfaces/infra-model-diff/serialized-component-operation'; | ||
import { ComponentPropertyValue, ComponentUpdateType, PropertyPath } from '../../infra-model'; | ||
import { Transition } from '../transition'; | ||
import { ComponentOperation, OperationType, OpNodeData, OpOutgoingNodeReferences } from './component-operation'; | ||
declare type InternalOpNodeData = { | ||
@@ -7,0 +7,0 @@ propertyOperationType: OperationType; |
@@ -9,3 +9,5 @@ "use strict"; | ||
get pathTransition() { return this.outgoingNodeReferences.pathTransition; } | ||
get propertyTransition() { return this.outgoingNodeReferences.propertyTransition; } | ||
get propertyTransition() { | ||
return this.outgoingNodeReferences.propertyTransition; | ||
} | ||
get propertyOperationType() { return this.nodeData.propertyOperationType; } | ||
@@ -26,3 +28,3 @@ constructor(nodeData, outgoingReferences, propertyOperationType) { | ||
if (!this.propertyTransition.v2 && !this.propertyTransition.v1) { | ||
throw Error("Property Operation has no before or after property states"); | ||
throw Error('Property Operation has no before or after property states'); | ||
} | ||
@@ -57,3 +59,3 @@ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
...outgoingReferences, | ||
appliesTo: [...(_a = outgoingReferences.appliesTo) !== null && _a !== void 0 ? _a : [], ...(_c = (_b = outgoingReferences.propertyTransition.v2) === null || _b === void 0 ? void 0 : _b.explode()) !== null && _c !== void 0 ? _c : []] | ||
appliesTo: [...(_a = outgoingReferences.appliesTo) !== null && _a !== void 0 ? _a : [], ...(_c = (_b = outgoingReferences.propertyTransition.v2) === null || _b === void 0 ? void 0 : _b.explode()) !== null && _c !== void 0 ? _c : []], | ||
}, component_operation_1.OperationType.INSERT); | ||
@@ -71,3 +73,3 @@ } | ||
...outgoingReferences, | ||
appliesTo: [...(_a = outgoingReferences.appliesTo) !== null && _a !== void 0 ? _a : [], ...(_c = (_b = outgoingReferences.propertyTransition.v1) === null || _b === void 0 ? void 0 : _b.explode()) !== null && _c !== void 0 ? _c : []] | ||
appliesTo: [...(_a = outgoingReferences.appliesTo) !== null && _a !== void 0 ? _a : [], ...(_c = (_b = outgoingReferences.propertyTransition.v1) === null || _b === void 0 ? void 0 : _b.explode()) !== null && _c !== void 0 ? _c : []], | ||
}, component_operation_1.OperationType.REMOVE); | ||
@@ -81,3 +83,5 @@ } | ||
class UpdatePropertyComponentOperation extends PropertyComponentOperation { | ||
get innerOperations() { return this.outgoingNodeReferences.innerOperations; } | ||
get innerOperations() { | ||
return this.outgoingNodeReferences.innerOperations; | ||
} | ||
constructor(nodeData, outgoingReferences, operationType = component_operation_1.OperationType.UPDATE) { super(nodeData, outgoingReferences, operationType); } | ||
@@ -90,3 +94,3 @@ getAllInnerOperations() { | ||
? o.getAllInnerOperations() | ||
: [o]) | ||
: [o]), | ||
]); | ||
@@ -131,2 +135,2 @@ } | ||
exports.MovePropertyComponentOperation = MovePropertyComponentOperation; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHktY29tcG9uZW50LW9wZXJhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL21vZGVsLWRpZmZpbmcvb3BlcmF0aW9ucy9wcm9wZXJ0eS1jb21wb25lbnQtb3BlcmF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDhFQUEwRTtBQUcxRSx1Q0FBbUQ7QUFFbkQsK0RBQWdIO0FBV2hILE1BQXNCLDBCQUNsQixTQUFRLHdDQUErQztJQUV2RCxJQUFXLGNBQWMsS0FBK0IsT0FBTyxJQUFJLENBQUMsc0JBQXNCLENBQUMsY0FBYyxDQUFDLENBQUMsQ0FBQztJQUM1RyxJQUFXLGtCQUFrQixLQUF5QyxPQUFPLElBQUksQ0FBQyxzQkFBc0IsQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDLENBQUM7SUFDOUgsSUFBVyxxQkFBcUIsS0FBb0IsT0FBTyxJQUFJLENBQUMsUUFBUSxDQUFDLHFCQUFxQixDQUFDLENBQUMsQ0FBQztJQUVqRyxZQUNJLFFBQVksRUFDWixrQkFBc0IsRUFDdEIscUJ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LFxuICAgICAgICBvcGVyYXRpb25UeXBlOiBPcGVyYXRpb25UeXBlID0gT3BlcmF0aW9uVHlwZS5VUERBVEVcbiAgICApe3N1cGVyKG5vZGVEYXRhLCBvdXRnb2luZ1JlZmVyZW5jZXMsIG9wZXJhdGlvblR5cGUpO31cblxuICAgIGdldEFsbElubmVyT3BlcmF0aW9ucygpOiBQcm9wZXJ0eUNvbXBvbmVudE9wZXJhdGlvbltde1xuICAgICAgICBpZighdGhpcy5pbm5lck9wZXJhdGlvbnMgfHwgdGhpcy5pbm5lck9wZXJhdGlvbnMubGVuZ3RoID09PSAwKSB7XG4gICAgICAgICAgICByZXR1cm4gW3RoaXNdO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBmbGF0TWFwKHRoaXMuaW5uZXJPcGVyYXRpb25zLCBvID0+XG4gICAgICAgICAgICBbdGhpcywgLi4uKFxuICAgICAgICAgICAgICAgIG8gaW5zdGFuY2VvZiBVcGRhdGVQcm9wZXJ0eUNvbXBvbmVudE9wZXJhdGlvblxuICAgICAgICAgICAgICAgICAgICA/IG8uZ2V0QWxsSW5uZXJPcGVyYXRpb25zKClcbiAgICAgICAgICAgICAgICAgICAgOiBbb11cbiAgICAgICAgICAgICAgICApXG4gICAgICAgICAgICBdXG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgZ2V0VjFQYXRoKHYycGF0aDogUHJvcGVydHlQYXRoKTogUHJvcGVydHlQYXRoIHwgdW5kZWZpbmVkIHtcbiAgICAgICAgY29uc3QgcGF0aEZvdW5kU29GYXIgPSBzdXBlci5nZXRWMVBhdGgodjJwYXRoKTtcbiAgICAgICAgaWYocGF0aEZvdW5kU29GYXIpe1xuICAgICAgICAgICAgaWYoIXRoaXMuaW5uZXJPcGVyYXRpb25zKVxuICAgICAgICAgICAgICAgIHJldHVybiBwYXRoRm91bmRTb0ZhcjtcbiAgICAgICAgICAgIGZvcihjb25zdCBvcCBvZiB0aGlzLmlubmVyT3BlcmF0aW9ucyl7XG4gICAg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vZGVEYXRhLCBvdXRnb2luZ1JlZmVyZW5jZXMsIG9wZXJhdGlvblR5cGUpO31cblxuICBwdWJsaWMgZ2V0U2VyaWFsaXphdGlvbkNsYXNzKCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIFNlcmlhbGl6YXRpb25DbGFzc2VzLk1PVkVfUFJPUEVSVFlfQ09NUE9ORU5UX09QRVJBVElPTjtcbiAgfVxufSJdfQ== |
@@ -1,5 +0,5 @@ | ||
import { JSONSerializable, Serialized } from "../export/json-serializable"; | ||
import { SerializationID } from "../export/json-serializer"; | ||
import { SerializedTransition } from "../export/serialized-interfaces/infra-model-diff/serialized-transition"; | ||
import { ModelEntity } from "../infra-model/model-entity"; | ||
import { JSONSerializable, Serialized } from '../export/json-serializable'; | ||
import { SerializationID } from '../export/json-serializer'; | ||
import { SerializedTransition } from '../export/serialized-interfaces/infra-model-diff/serialized-transition'; | ||
import { ModelEntity } from '../infra-model/model-entity'; | ||
/** | ||
@@ -21,2 +21,3 @@ * Represents two versions (v1 and v2) of an Entity | ||
export declare class Transition<T extends JSONSerializable | Serialized, V extends TransitionVersions<T> = TransitionVersions<T>> extends ModelEntity<Record<string, any>, Record<string, any>> implements JSONSerializable { | ||
private static isModelEntityTransition; | ||
get v1(): T | undefined; | ||
@@ -28,3 +29,2 @@ get v2(): T | undefined; | ||
getSerializationClass(): string; | ||
private static isModelEntityTransition; | ||
explode(): NonNullable<T>[]; | ||
@@ -31,0 +31,0 @@ toSerialized(serialize: (obj: JSONSerializable) => SerializationID): SerializedTransition; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CompleteTransition = exports.Transition = void 0; | ||
const utils_1 = require("../utils"); | ||
const json_serializable_1 = require("../export/json-serializable"); | ||
@@ -9,2 +8,3 @@ const serialization_classes_1 = require("../export/serialization-classes"); | ||
const model_entity_types_1 = require("../infra-model/model-entity-types"); | ||
const utils_1 = require("../utils"); | ||
class Transition extends model_entity_1.ModelEntity { | ||
@@ -16,2 +16,5 @@ constructor(versions) { | ||
} | ||
static isModelEntityTransition(versions) { | ||
return versions.v1 instanceof model_entity_1.ModelEntity || versions.v2 instanceof model_entity_1.ModelEntity; | ||
} | ||
get v1() { return this.isModelEntityTransition ? this.outgoingNodeReferences.v1 : this.nodeData.v1; } | ||
@@ -25,5 +28,2 @@ get v2() { return this.isModelEntityTransition ? this.outgoingNodeReferences.v2 : this.nodeData.v2; } | ||
} | ||
static isModelEntityTransition(versions) { | ||
return versions.v1 instanceof model_entity_1.ModelEntity || versions.v2 instanceof model_entity_1.ModelEntity; | ||
} | ||
explode() { | ||
@@ -33,3 +33,5 @@ return [this.v1, this.v2].filter(utils_1.isDefined); | ||
toSerialized(serialize) { | ||
const serializeVersion = (version) => json_serializable_1.isJSONSerializable(version) ? serialize(version) : { value: version }; | ||
const serializeVersion = (version) => json_serializable_1.isJSONSerializable(version) | ||
? serialize(version) | ||
: { value: version }; | ||
return { | ||
@@ -43,6 +45,5 @@ v1: this.v1 ? serializeVersion(this.v1) : undefined, | ||
class CompleteTransition extends Transition { | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
get v1() { return super.v1; } | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
get v2() { return super.v2; } | ||
// By definition these need to be defined | ||
get v1() { return super.v1; } // eslint-disable-line @typescript-eslint/no-non-null-assertion | ||
get v2() { return super.v2; } // eslint-disable-line @typescript-eslint/no-non-null-assertion | ||
constructor(versions) { | ||
@@ -53,2 +54,2 @@ super(versions); | ||
exports.CompleteTransition = CompleteTransition; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNpdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL21vZGVsLWRpZmZpbmcvdHJhbnNpdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxvQ0FBcUM7QUFDckMsbUVBQWl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m9uLW51bGwtYXNzZXJ0aW9uXG4gIGdldCB2MigpOiBUIHsgcmV0dXJuIHN1cGVyLnYyITsgfSAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby1ub24tbnVsbC1hc3NlcnRpb25cblxuICBjb25zdHJ1Y3Rvcih2ZXJzaW9uczogQ29tcGxldGVUcmFuc2l0aW9uVmVyc2lvbnM8VD4pe1xuICAgIHN1cGVyKHZlcnNpb25zKTtcbiAgfVxufSJdfQ== |
@@ -16,2 +16,2 @@ "use strict"; | ||
})(RuleAction = exports.RuleAction || (exports.RuleAction = {})); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9ydWxlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxJQUFZLFFBSVg7QUFKRCxXQUFZLFFBQVE7SUFDaEIsdUJBQVcsQ0FBQTtJQUNYLHlCQUFhLENBQUE7SUFDYiwrQkFBbUIsQ0FBQTtBQUN2QixDQUFDLEVBSlcsUUFBUSxHQUFSLGdCQUFRLEtBQVIsZ0JBQVEsUUFJbkI7QUFFRCxJQUFZLFVBSVg7QUFKRCxXQUFZLFVBQVU7SUFDbEIsaUNBQW1CLENBQUE7SUFDbkIsK0JBQWlCLENBQUE7SUFDakIsMkJBQWEsQ0FBQTtBQUNqQixDQUFDLEVBSlcsVUFBVSxHQUFWLGtCQUFVLEtBQVYsa0JBQVUsUUFJckIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBSdWxlUmlzayB7XG4gICAgTG93ID0gJ2xvdycsXG4gICAgSGlnaCA9ICdoaWdoJyxcbiAgICBVbmtub3duID0gJ3Vua25vd24nLFxufVxuXG5leHBvcnQgZW51bSBSdWxlQWN0aW9uIHtcbiAgICBBcHByb3ZlID0gJ2FwcHJ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gKHsgcmlzazogUnVsZVJpc2s7IGFjdGlvbj86IFJ1bGVBY3Rpb24gfVxuICAgIHwgeyByaXNrPzogUnVsZVJpc2s7IGFjdGlvbjogUnVsZUFjdGlvbiB9KTsiXX0= |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// import { ChangeAnalysisReport } from '../../change-analysis-report'; | ||
const example_model_1 = require("./example-model"); | ||
@@ -11,2 +12,2 @@ // TODO: Fix test | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhbmdlLXJlcG9ydC1ncmFwaC50ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vdGVzdC9leHBvcnQvY2hhbmdlLXJlcG9ydC1ncmFwaC50ZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQ0EsbURBQTRDO0FBRTVDLGlCQUFpQjtBQUNqQixJQUFJLENBQUMsbUNBQW1DLEVBQUUsR0FBRyxFQUFFO0lBQzNDLE1BQU0sY0FBYyxHQUFHLHlCQUFTLEVBQUUsQ0FBQztJQUNuQyxjQUFjLENBQUM7SUFDZiwrREFBK0Q7SUFFL0QscUNBQXFDO0FBQ3pDLENBQUMsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ2hhbmdlQW5hbHlzaXNSZXBvcnQgfSBmcm9tIFwiLi4vLi4vY2hhbmdlLWFuYWx5c2lzLXJlcG9ydFwiO1xuaW1wb3J0IHsgYnVpbGREaWZmIH0gZnJvbSBcIi4vZXhhbXBsZS1tb2RlbFwiO1xuXG4vLyBUT0RPOiBGaXggdGVzdFxudGVzdCgnUmVwb3J0IEdyYXBoIHJldHVybnMgcHJvcGVyIGdyYXBoJywgKCkgPT4ge1xuICAgIGNvbnN0IGluZnJhTW9kZWxEaWZmID0gYnVpbGREaWZmKCk7XG4gICAgaW5mcmFNb2RlbERp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TW9kZWxEaWZmLCBbXSk7XG5cbiAgLy8gY29uc29sZS5sb2cocmVwb3J0LmdlbmVyYXRlR3JhcGgpO1xufSk7Il19 |
@@ -1,4 +0,4 @@ | ||
import { InfraModel } from "../../infra-model"; | ||
import { InfraModelDiff } from "../../model-diffing"; | ||
import { InfraModel } from '../../infra-model'; | ||
import { InfraModelDiff } from '../../model-diffing'; | ||
export declare const buildModelV1: () => InfraModel; | ||
export declare const buildDiff: () => InfraModelDiff; |
@@ -8,16 +8,16 @@ "use strict"; | ||
const component1v1 = new infra_model_1.Component('component1', 'resource', { | ||
subtype: "AWS::IAM::Role", | ||
subtype: 'AWS::IAM::Role', | ||
properties: new infra_model_1.ComponentPropertyRecord({ | ||
someKey: new infra_model_1.ComponentPropertyPrimitive("someValue", infra_model_1.ComponentUpdateType.REPLACEMENT) | ||
}, infra_model_1.ComponentUpdateType.REPLACEMENT) | ||
someKey: new infra_model_1.ComponentPropertyPrimitive('someValue', infra_model_1.ComponentUpdateType.REPLACEMENT), | ||
}, infra_model_1.ComponentUpdateType.REPLACEMENT), | ||
}); | ||
const component2v1 = new infra_model_1.Component('component2', 'resource', { | ||
subtype: "AWS::EC2::Instance", | ||
subtype: 'AWS::EC2::Instance', | ||
properties: new infra_model_1.ComponentPropertyRecord({ | ||
nested: new infra_model_1.ComponentPropertyRecord({ | ||
propComp2: new infra_model_1.ComponentPropertyPrimitive("value", infra_model_1.ComponentUpdateType.REPLACEMENT) | ||
}, infra_model_1.ComponentUpdateType.REPLACEMENT) | ||
}, infra_model_1.ComponentUpdateType.REPLACEMENT) | ||
propComp2: new infra_model_1.ComponentPropertyPrimitive('value', infra_model_1.ComponentUpdateType.REPLACEMENT), | ||
}, infra_model_1.ComponentUpdateType.REPLACEMENT), | ||
}, infra_model_1.ComponentUpdateType.REPLACEMENT), | ||
}); | ||
const relationship1v1 = new infra_model_1.DependencyRelationship(component2v1, component1v1, 'relationship1', { sourcePropertyPath: ["nested", "propComp2"] }); | ||
const relationship1v1 = new infra_model_1.DependencyRelationship(component2v1, component1v1, 'relationship1', { sourcePropertyPath: ['nested', 'propComp2'] }); | ||
component1v1.addIncoming(relationship1v1); | ||
@@ -31,16 +31,16 @@ component2v1.addOutgoing(relationship1v1); | ||
const component1v2 = new infra_model_1.Component('component1', 'resource', { | ||
subtype: "AWS::IAM::Role", | ||
subtype: 'AWS::IAM::Role', | ||
properties: new infra_model_1.ComponentPropertyRecord({ | ||
someKey: new infra_model_1.ComponentPropertyPrimitive("someValueChanged", infra_model_1.ComponentUpdateType.REPLACEMENT) | ||
}, infra_model_1.ComponentUpdateType.REPLACEMENT) | ||
someKey: new infra_model_1.ComponentPropertyPrimitive('someValueChanged', infra_model_1.ComponentUpdateType.REPLACEMENT), | ||
}, infra_model_1.ComponentUpdateType.REPLACEMENT), | ||
}); | ||
const component2v2 = new infra_model_1.Component('component2', 'resource', { | ||
subtype: "AWS::EC2::Instance", | ||
subtype: 'AWS::EC2::Instance', | ||
properties: new infra_model_1.ComponentPropertyRecord({ | ||
nestedNameChanged: new infra_model_1.ComponentPropertyRecord({ | ||
propComp2NameChanged: new infra_model_1.ComponentPropertyPrimitive("value", infra_model_1.ComponentUpdateType.REPLACEMENT) | ||
}, infra_model_1.ComponentUpdateType.REPLACEMENT) | ||
}, infra_model_1.ComponentUpdateType.REPLACEMENT) | ||
propComp2NameChanged: new infra_model_1.ComponentPropertyPrimitive('value', infra_model_1.ComponentUpdateType.REPLACEMENT), | ||
}, infra_model_1.ComponentUpdateType.REPLACEMENT), | ||
}, infra_model_1.ComponentUpdateType.REPLACEMENT), | ||
}); | ||
const relationship1v2 = new infra_model_1.DependencyRelationship(component2v2, component1v2, 'relationship1', { sourcePropertyPath: ["nestedNameChanged", "propComp2NameChanged"] }); | ||
const relationship1v2 = new infra_model_1.DependencyRelationship(component2v2, component1v2, 'relationship1', { sourcePropertyPath: ['nestedNameChanged', 'propComp2NameChanged'] }); | ||
component1v2.addIncoming(relationship1v2); | ||
@@ -61,6 +61,6 @@ component2v2.addOutgoing(relationship1v2); | ||
const directChangeComponent1 = new model_diffing_1.UpdatePropertyComponentOperation({}, { | ||
pathTransition: new model_diffing_1.Transition({ v1: ["someKey"], v2: ["someKey"] }), | ||
pathTransition: new model_diffing_1.Transition({ v1: ['someKey'], v2: ['someKey'] }), | ||
propertyTransition: new model_diffing_1.Transition({ | ||
v1: component1v1.properties.getRecord()["someKey"], | ||
v2: component1v2.properties.getRecord()["someKey"], | ||
v1: component1v1.properties.getRecord().someKey, | ||
v2: component1v2.properties.getRecord().someKey, | ||
}), | ||
@@ -70,8 +70,8 @@ componentTransition: component1Transition, | ||
const directChangeComponent2 = new model_diffing_1.UpdatePropertyComponentOperation({}, { | ||
pathTransition: new model_diffing_1.Transition({ v1: ["nested", "propComp2"], v2: ["nestedNameChanged", "propComp2NameChanged"] }), | ||
pathTransition: new model_diffing_1.Transition({ v1: ['nested', 'propComp2'], v2: ['nestedNameChanged', 'propComp2NameChanged'] }), | ||
propertyTransition: new model_diffing_1.Transition({ | ||
v1: component2v1.properties.getRecord()["nested"].getRecord()["propComp2"], | ||
v2: component2v2.properties.getRecord()["nestedNameChanged"].getRecord()["propComp2NameChanged"], | ||
v1: component2v1.properties.getRecord().nested.getRecord().propComp2, | ||
v2: component2v2.properties.getRecord().nestedNameChanged.getRecord().propComp2NameChanged, | ||
}), | ||
componentTransition: component2Transition | ||
componentTransition: component2Transition, | ||
}); | ||
@@ -82,2 +82,2 @@ const infraModelTransition = new model_diffing_1.Transition({ v1: infraModelv1, v2: infraModelv2 }); | ||
exports.buildDiff = buildDiff; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhhbXBsZS1tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Rlc3QvZXhwb3J0L2V4YW1wbGUtbW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsbURBTzJ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G9uZW50MnYyLnByb3BlcnRpZXMuZ2V0UmVjb3JkKCkubmVzdGVkTmFtZUNoYW5nZWQuZ2V0UmVjb3JkKCkucHJvcENvbXAyTmFtZUNoYW5nZWQsXG4gICAgfSksXG4gICAgY29tcG9uZW50VHJhbnNpdGlvbjogY29tcG9uZW50MlRyYW5zaXRpb24sXG4gIH0pO1xuXG4gIGNvbnN0IGluZnJhTW9kZWxUcmFuc2l0aW9uID0gIG5ldyBUcmFuc2l0aW9uPEluZnJhTW9kZWw+KHt2MTogaW5mcmFNb2RlbHYxLCB2MjogaW5mcmFNb2RlbHYyfSk7XG5cbiAgcmV0dXJuIG5ldyBJbmZyYU1vZGVsRGlmZihcbiAgICBbZGlyZWN0Q2hhbmdlQ29tcG9uZW50MSwgZGlyZWN0Q2hhbmdlQ29tcG9uZW50Ml0sXG4gICAgW2NvbXBvbmVudDFUcmFuc2l0aW9uLCBjb21wb25lbnQyVHJhbnNpdGlvbl0sIGluZnJhTW9kZWxUcmFuc2l0aW9uLFxuICApO1xufTsiXX0= |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const json_deserializer_1 = require("../../export/json-deserializer"); | ||
const json_serializer_1 = require("../../export/json-serializer"); | ||
const json_deserializer_1 = require("../../export/json-deserializer"); | ||
const example_model_1 = require("./example-model"); | ||
@@ -22,2 +22,2 @@ // TODO: Fix these tests | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5mcmEtbW9kZWwudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Rlc3QvZXhwb3J0L2luZnJhLW1vZGVsLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxrRUFBOEQ7QUFDOUQsc0VBQWtFO0FBS2xFLG1EQUEwRDtBQUUxRCx3QkFBd0I7QUFDeEIsSUFBSSxDQUFDLHlCQUF5QixFQUFF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6ZShtb2RlbCk7XG4gIGNvbnN0IGRlc2VyaWFsaXplZCA9IG5ldyBKU09ORGVzZXJpYWxpemVyPEluZnJhTW9kZWw+KCkuZGVzZXJpYWxpemUoc2VyaWFsaXplZCk7XG4gIGRlc2VyaWFsaXplZDtcbiAgLy8gZXhwZWN0KGRlc2VyaWFsaXplZCkudG9FcXVhbChtb2RlbCk7XG59KTtcblxudGVzdCgnSW5mcmFNb2RlbERpZmYgdG9TZXJpYWxpemVkJywgKCkgPT4ge1xuICBjb25zdCBkaWZmID0gYnVpbGREaWZmKCk7XG5cbiAgY29uc3Qgc2VyaWFsaXplZCA9IG5ldyBKU09OU2VyaWFsaXplcigpLnNlcmlhbGl6ZShkaWZmKTtcbiAgY29uc3QgZGVzZXJpYWxpemVkID0gbmV3IEpTT05EZXNlcmlhbGl6ZXI8SW5mcmFNb2RlbERpZmY+KCkuZGVzZXJpYWxpemUoc2VyaWFsaXplZCk7XG4gIGV4cGVjdChkZXNlcmlhbGl6ZWQuY29tcG9uZW50T3BlcmF0aW9ucy5sZW5ndGgpLnRvQmUoZGlmZi5jb21wb25lbnRPcGVyYXRpb25zLmxlbmd0aCk7XG4gIGV4cGVjdChkZXNlcmlhbGl6ZWQuY29tcG9uZW50VHJhbnNpdGlvbnMubGVuZ3RoKS50b0JlKGRpZmYuY29tcG9uZW50VHJhbnNpdGlvbnMubGVuZ3RoKTtcbiAgLy8gZXhwZWN0KGRlc2VyaWFsaXplZCkudG9FcXVhbChkaWZmKTtcbn0pOyJdfQ== |
@@ -16,3 +16,3 @@ "use strict"; | ||
...acc, | ||
[propertyGetter(e), [...((_a = acc.get(property)) !== null && _a !== void 0 ? _a : []), e]] | ||
[propertyGetter(e), [...((_a = acc.get(property)) !== null && _a !== void 0 ? _a : []), e]], | ||
]); | ||
@@ -33,2 +33,2 @@ }, new Map()); | ||
exports.arraysEqual = arraysEqual; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXJ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ChhY2MsIGUpID0+IHtcbiAgICBjb25zdCBwcm9wZXJ0eSA9IHByb3BlcnR5R2V0dGVyKGUpO1xuICAgIHJldHVybiBuZXcgTWFwKFtcbiAgICAgIC4uLmFjYyxcbiAgICAgIFtwcm9wZXJ0eUdldHRlcihlKSwgWy4uLihhY2MuZ2V0KHByb3BlcnR5KSA/PyBbXSksIGVdXSxcbiAgICBdKTtcbiAgfSwgbmV3IE1hcCgpIGFzIE1hcDxVLCBUW10+KTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGFycmF5SW50ZXJzZWN0aW9uPFQ+KGE6IFRbXSwgYjogVFtdKTogVFtdIHtcbiAgY29uc3QgYVNldCA9IG5ldyBTZXQoYSk7XG4gIHJldHVybiBbLi4uYi5maWx0ZXIoayA9PiBhU2V0LmhhcyhrKSldO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYXJyYXlzRXF1YWw8VD4oYTogVFtdLCBiOlRbXSk6IGJvb2xlYW4ge1xuICBpZihhLmxlbmd0aCAhPT0gYi5sZW5ndGgpXG4gICAgcmV0dXJuIGZhbHNlO1xuICByZXR1cm4gIWEuc29tZSgoZSwgaSkgPT4gZSAhPT0gYltpXSk7XG59Il19 |
@@ -20,5 +20,5 @@ "use strict"; | ||
function fromEntries(xs) { | ||
return xs.reduce((acc, [key, value]) => ({ ...acc, [key]: value, }), {}); | ||
return xs.reduce((acc, [key, value]) => ({ ...acc, [key]: value }), {}); | ||
} | ||
exports.fromEntries = fromEntries; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3V0aWxzL25vZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUE7O0dBRUc7QUFDRixTQUFnQixPQUFPLENBQU8sRUFBTyxFQUFFLENBQWdCO0lBQ3RELE1BQU0sR0FBRyxHQUFHLElBQUksS0FB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gIHJldHVybiBsb3dlckNhc2U7XG59OyJdfQ== |
{ | ||
"name": "@aws-c2a/models", | ||
"version": "0.3.3", | ||
"version": "0.3.8", | ||
"description": "The models package for CDK Change Analyzer: a tool that enables detecting dangerous changes within CDK projects.", | ||
@@ -28,3 +28,3 @@ "main": "out/index.js", | ||
"dependencies": { | ||
"@aws-cdk/cfnspec": "^1.90.0", | ||
"@aws-cdk/cfnspec": "^1.115.0", | ||
"fifinet": "0.1.7" | ||
@@ -52,3 +52,3 @@ }, | ||
}, | ||
"gitHead": "b8cd26b6f43e00237d035368f15e089a9f8bb14a" | ||
"gitHead": "d831d39c419b691338fff20adaa96a5b9ef0b0e1" | ||
} |
export enum RuleRisk { | ||
Low = 'low', | ||
High = 'high', | ||
Unknown = 'unknown', | ||
Low = 'low', | ||
High = 'high', | ||
Unknown = 'unknown', | ||
} | ||
export enum RuleAction { | ||
Approve = 'approve', | ||
Reject = 'reject', | ||
None = 'none', | ||
Approve = 'approve', | ||
Reject = 'reject', | ||
None = 'none', | ||
} | ||
@@ -12,0 +12,0 @@ |
@@ -1,11 +0,11 @@ | ||
import { ChangeAnalysisReport } from "../../change-analysis-report"; | ||
import { buildDiff } from "./example-model"; | ||
// import { ChangeAnalysisReport } from '../../change-analysis-report'; | ||
import { buildDiff } from './example-model'; | ||
// TODO: Fix test | ||
test('Report Graph returns proper graph', () => { | ||
const infraModelDiff = buildDiff(); | ||
infraModelDiff; | ||
// const report = new ChangeAnalysisReport(infraModelDiff, []); | ||
const infraModelDiff = buildDiff(); | ||
infraModelDiff; | ||
// const report = new ChangeAnalysisReport(infraModelDiff, []); | ||
// console.log(report.generateGraph); | ||
// console.log(report.generateGraph); | ||
}); |
import { | ||
Component, | ||
ComponentPropertyPrimitive, | ||
ComponentPropertyRecord, | ||
ComponentUpdateType, | ||
DependencyRelationship, | ||
InfraModel | ||
} from "../../infra-model"; | ||
import { InfraModelDiff, Transition, UpdatePropertyComponentOperation } from "../../model-diffing"; | ||
Component, | ||
ComponentPropertyPrimitive, | ||
ComponentPropertyRecord, | ||
ComponentUpdateType, | ||
DependencyRelationship, | ||
InfraModel, | ||
} from '../../infra-model'; | ||
import { InfraModelDiff, Transition, UpdatePropertyComponentOperation } from '../../model-diffing'; | ||
export const buildModelV1 = () => { | ||
const component1v1 = new Component('component1', 'resource', { | ||
subtype: "AWS::IAM::Role", | ||
properties: new ComponentPropertyRecord( | ||
{ | ||
someKey: new ComponentPropertyPrimitive("someValue", ComponentUpdateType.REPLACEMENT) | ||
}, ComponentUpdateType.REPLACEMENT | ||
) | ||
}); | ||
const component2v1 = new Component('component2', 'resource', { | ||
subtype: "AWS::EC2::Instance", | ||
properties: new ComponentPropertyRecord({ | ||
nested: new ComponentPropertyRecord({ | ||
propComp2: new ComponentPropertyPrimitive("value", ComponentUpdateType.REPLACEMENT) | ||
}, ComponentUpdateType.REPLACEMENT) | ||
}, ComponentUpdateType.REPLACEMENT | ||
) | ||
}); | ||
const relationship1v1 = new DependencyRelationship(component2v1, component1v1, 'relationship1', {sourcePropertyPath: ["nested", "propComp2"]}); | ||
component1v1.addIncoming(relationship1v1); | ||
component2v1.addOutgoing(relationship1v1); | ||
const infraModelv1 = new InfraModel([component1v1, component2v1], [relationship1v1]); | ||
export const buildModelV1 = (): InfraModel => { | ||
const component1v1 = new Component('component1', 'resource', { | ||
subtype: 'AWS::IAM::Role', | ||
properties: new ComponentPropertyRecord( | ||
{ | ||
someKey: new ComponentPropertyPrimitive('someValue', ComponentUpdateType.REPLACEMENT), | ||
}, ComponentUpdateType.REPLACEMENT, | ||
), | ||
}); | ||
const component2v1 = new Component('component2', 'resource', { | ||
subtype: 'AWS::EC2::Instance', | ||
properties: new ComponentPropertyRecord({ | ||
nested: new ComponentPropertyRecord({ | ||
propComp2: new ComponentPropertyPrimitive('value', ComponentUpdateType.REPLACEMENT), | ||
}, ComponentUpdateType.REPLACEMENT), | ||
}, ComponentUpdateType.REPLACEMENT, | ||
), | ||
}); | ||
const relationship1v1 = new DependencyRelationship(component2v1, component1v1, 'relationship1', {sourcePropertyPath: ['nested', 'propComp2']}); | ||
component1v1.addIncoming(relationship1v1); | ||
component2v1.addOutgoing(relationship1v1); | ||
const infraModelv1 = new InfraModel([component1v1, component2v1], [relationship1v1]); | ||
return infraModelv1; | ||
return infraModelv1; | ||
}; | ||
const buildModelV2 = () => { | ||
const component1v2 = new Component('component1', 'resource', { | ||
subtype: "AWS::IAM::Role", | ||
properties: new ComponentPropertyRecord( | ||
{ | ||
someKey: new ComponentPropertyPrimitive("someValueChanged", ComponentUpdateType.REPLACEMENT) | ||
}, ComponentUpdateType.REPLACEMENT | ||
) | ||
}); | ||
const component2v2 = new Component('component2', 'resource', { | ||
subtype: "AWS::EC2::Instance", | ||
properties: new ComponentPropertyRecord({ | ||
nestedNameChanged: new ComponentPropertyRecord({ | ||
propComp2NameChanged: new ComponentPropertyPrimitive("value", ComponentUpdateType.REPLACEMENT) | ||
}, ComponentUpdateType.REPLACEMENT) | ||
}, ComponentUpdateType.REPLACEMENT | ||
) | ||
}); | ||
const relationship1v2 = new DependencyRelationship(component2v2, component1v2, 'relationship1', {sourcePropertyPath: ["nestedNameChanged", "propComp2NameChanged"]}); | ||
component1v2.addIncoming(relationship1v2); | ||
component2v2.addOutgoing(relationship1v2); | ||
const infraModelv2 = new InfraModel([component1v2, component2v2], [relationship1v2]); | ||
const buildModelV2 = (): InfraModel => { | ||
const component1v2 = new Component('component1', 'resource', { | ||
subtype: 'AWS::IAM::Role', | ||
properties: new ComponentPropertyRecord( | ||
{ | ||
someKey: new ComponentPropertyPrimitive('someValueChanged', ComponentUpdateType.REPLACEMENT), | ||
}, ComponentUpdateType.REPLACEMENT, | ||
), | ||
}); | ||
const component2v2 = new Component('component2', 'resource', { | ||
subtype: 'AWS::EC2::Instance', | ||
properties: new ComponentPropertyRecord({ | ||
nestedNameChanged: new ComponentPropertyRecord({ | ||
propComp2NameChanged: new ComponentPropertyPrimitive('value', ComponentUpdateType.REPLACEMENT), | ||
}, ComponentUpdateType.REPLACEMENT), | ||
}, ComponentUpdateType.REPLACEMENT, | ||
), | ||
}); | ||
const relationship1v2 = new DependencyRelationship(component2v2, component1v2, 'relationship1', {sourcePropertyPath: ['nestedNameChanged', 'propComp2NameChanged']}); | ||
component1v2.addIncoming(relationship1v2); | ||
component2v2.addOutgoing(relationship1v2); | ||
const infraModelv2 = new InfraModel([component1v2, component2v2], [relationship1v2]); | ||
return infraModelv2; | ||
return infraModelv2; | ||
}; | ||
@@ -66,34 +66,37 @@ | ||
const infraModelv1 = buildModelV1(); | ||
const infraModelv2 = buildModelV2(); | ||
const infraModelv1 = buildModelV1(); | ||
const infraModelv2 = buildModelV2(); | ||
const component1v1 = infraModelv1.components[0]; | ||
const component1v2 = infraModelv2.components[0]; | ||
const component2v1 = infraModelv1.components[1]; | ||
const component2v2 = infraModelv2.components[1]; | ||
const component1Transition = new Transition<Component>({v1: component1v1, v2: component1v2}); | ||
const component2Transition = new Transition<Component>({v1: component2v1, v2: component2v2}); | ||
const component1v1 = infraModelv1.components[0]; | ||
const component1v2 = infraModelv2.components[0]; | ||
const component2v1 = infraModelv1.components[1]; | ||
const component2v2 = infraModelv2.components[1]; | ||
const directChangeComponent1 = new UpdatePropertyComponentOperation({}, { | ||
pathTransition: new Transition({v1: ["someKey"], v2: ["someKey"]}), | ||
propertyTransition: new Transition({ | ||
v1: component1v1.properties.getRecord()["someKey"], | ||
v2: component1v2.properties.getRecord()["someKey"], | ||
}), | ||
componentTransition: component1Transition, | ||
}); | ||
const component1Transition = new Transition<Component>({v1: component1v1, v2: component1v2}); | ||
const component2Transition = new Transition<Component>({v1: component2v1, v2: component2v2}); | ||
const directChangeComponent2 = new UpdatePropertyComponentOperation({}, { | ||
pathTransition: new Transition({v1: ["nested", "propComp2"], v2: ["nestedNameChanged", "propComp2NameChanged"]}), | ||
propertyTransition: new Transition({ | ||
v1: component2v1.properties.getRecord()["nested"].getRecord()["propComp2"], | ||
v2: component2v2.properties.getRecord()["nestedNameChanged"].getRecord()["propComp2NameChanged"], | ||
}), | ||
componentTransition: component2Transition | ||
}); | ||
const directChangeComponent1 = new UpdatePropertyComponentOperation({}, { | ||
pathTransition: new Transition({v1: ['someKey'], v2: ['someKey']}), | ||
propertyTransition: new Transition({ | ||
v1: component1v1.properties.getRecord().someKey, | ||
v2: component1v2.properties.getRecord().someKey, | ||
}), | ||
componentTransition: component1Transition, | ||
}); | ||
const infraModelTransition = new Transition<InfraModel>({v1: infraModelv1, v2: infraModelv2}); | ||
return new InfraModelDiff([directChangeComponent1, directChangeComponent2], [component1Transition, component2Transition], infraModelTransition); | ||
const directChangeComponent2 = new UpdatePropertyComponentOperation({}, { | ||
pathTransition: new Transition({v1: ['nested', 'propComp2'], v2: ['nestedNameChanged', 'propComp2NameChanged']}), | ||
propertyTransition: new Transition({ | ||
v1: component2v1.properties.getRecord().nested.getRecord().propComp2, | ||
v2: component2v2.properties.getRecord().nestedNameChanged.getRecord().propComp2NameChanged, | ||
}), | ||
componentTransition: component2Transition, | ||
}); | ||
const infraModelTransition = new Transition<InfraModel>({v1: infraModelv1, v2: infraModelv2}); | ||
return new InfraModelDiff( | ||
[directChangeComponent1, directChangeComponent2], | ||
[component1Transition, component2Transition], infraModelTransition, | ||
); | ||
}; |
@@ -1,26 +0,26 @@ | ||
import { JSONSerializer } from "../../export/json-serializer"; | ||
import { JSONDeserializer } from "../../export/json-deserializer"; | ||
import { JSONDeserializer } from '../../export/json-deserializer'; | ||
import { JSONSerializer } from '../../export/json-serializer'; | ||
import { | ||
InfraModel | ||
} from "../../infra-model"; | ||
import { InfraModelDiff } from "../../model-diffing"; | ||
import { buildDiff, buildModelV1 } from "./example-model"; | ||
InfraModel, | ||
} from '../../infra-model'; | ||
import { InfraModelDiff } from '../../model-diffing'; | ||
import { buildDiff, buildModelV1 } from './example-model'; | ||
// TODO: Fix these tests | ||
test('InfraModel toSerialized', () => { | ||
const model = buildModelV1(); | ||
const serialized = new JSONSerializer().serialize(model); | ||
const deserialized = new JSONDeserializer<InfraModel>().deserialize(serialized); | ||
deserialized; | ||
// expect(deserialized).toEqual(model); | ||
const model = buildModelV1(); | ||
const serialized = new JSONSerializer().serialize(model); | ||
const deserialized = new JSONDeserializer<InfraModel>().deserialize(serialized); | ||
deserialized; | ||
// expect(deserialized).toEqual(model); | ||
}); | ||
test('InfraModelDiff toSerialized', () => { | ||
const diff = buildDiff(); | ||
const diff = buildDiff(); | ||
const serialized = new JSONSerializer().serialize(diff); | ||
const deserialized = new JSONDeserializer<InfraModelDiff>().deserialize(serialized); | ||
expect(deserialized.componentOperations.length).toBe(diff.componentOperations.length); | ||
expect(deserialized.componentTransitions.length).toBe(diff.componentTransitions.length); | ||
// expect(deserialized).toEqual(diff); | ||
const serialized = new JSONSerializer().serialize(diff); | ||
const deserialized = new JSONDeserializer<InfraModelDiff>().deserialize(serialized); | ||
expect(deserialized.componentOperations.length).toBe(diff.componentOperations.length); | ||
expect(deserialized.componentTransitions.length).toBe(diff.componentTransitions.length); | ||
// expect(deserialized).toEqual(diff); | ||
}); |
export function partitionArray<A>(arr: A[], isLeft: (x: A) => boolean): [A[], A[]] { | ||
return arr.reduce((acc, e) => | ||
isLeft(e) | ||
? [[...acc[0], e], acc[1]] | ||
: [acc[0], [...acc[1], e]], | ||
[[], []] as [A[], A[]]); | ||
return arr.reduce((acc, e) => | ||
isLeft(e) | ||
? [[...acc[0], e], acc[1]] | ||
: [acc[0], [...acc[1], e]], | ||
[[], []] as [A[], A[]]); | ||
} | ||
export function groupArrayBy<T, U>(arr: T[], propertyGetter: (t:T) => U): Map<U, T[]> { | ||
return arr.reduce((acc, e) => { | ||
const property = propertyGetter(e); | ||
return new Map([ | ||
...acc, | ||
[propertyGetter(e), [...(acc.get(property) ?? []), e]] | ||
]); | ||
}, new Map() as Map<U, T[]>); | ||
return arr.reduce((acc, e) => { | ||
const property = propertyGetter(e); | ||
return new Map([ | ||
...acc, | ||
[propertyGetter(e), [...(acc.get(property) ?? []), e]], | ||
]); | ||
}, new Map() as Map<U, T[]>); | ||
} | ||
export function arrayIntersection<T>(a: T[], b: T[]): T[] { | ||
const aSet = new Set(a); | ||
return [...b.filter(k => aSet.has(k))]; | ||
const aSet = new Set(a); | ||
return [...b.filter(k => aSet.has(k))]; | ||
} | ||
export function arraysEqual<T>(a: T[], b:T[]): boolean { | ||
if(a.length !== b.length) | ||
return false; | ||
return !a.some((e, i) => e !== b[i]); | ||
if(a.length !== b.length) | ||
return false; | ||
return !a.some((e, i) => e !== b[i]); | ||
} |
/** | ||
* Map a function over an array and concatenate the results | ||
*/ | ||
export function flatMap<T, U>(xs: T[], f: (x: T) => U[]): U[] { | ||
export function flatMap<T, U>(xs: T[], f: (x: T) => U[]): U[] { | ||
const ret = new Array<U>(); | ||
@@ -17,4 +17,3 @@ for (const x of xs) { | ||
export function fromEntries<T>(xs: [string|number|symbol, T][]): {[key: string]: T} { | ||
return xs.reduce((acc, [key, value]) => ({ ...acc, [key]: value,}), {}); | ||
return xs.reduce((acc, [key, value]) => ({ ...acc, [key]: value}), {}); | ||
} | ||
export function setsEqual<T>(a: Set<T>, b: Set<T>): boolean { | ||
if(a.size !== b.size) | ||
return false; | ||
return ![...a].some((e) => !b.has(e)); | ||
if(a.size !== b.size) | ||
return false; | ||
return ![...a].some((e) => !b.has(e)); | ||
} |
export const stringSimilarity = (a: string, b: string): number => { | ||
if (a.length < 2 || b.length < 2){ | ||
return a === b ? 1 : 0; | ||
} | ||
const aBigrams = new Map(); | ||
for (let i = 0; i < a.length - 1; i++) { | ||
const bigram = a.substr(i, 2); | ||
aBigrams.set(bigram, (aBigrams.get(bigram) ?? 0) + 1); | ||
} | ||
let intersectionSize = 0; | ||
for (let i = 0; i < b.length - 1; i++) { | ||
const bigram = b.substr(i, 2); | ||
const count = aBigrams.get(bigram) ?? 0; | ||
if (a.length < 2 || b.length < 2){ | ||
return a === b ? 1 : 0; | ||
} | ||
if (count > 0) { | ||
aBigrams.set(bigram, count - 1); | ||
intersectionSize++; | ||
} | ||
const aBigrams = new Map(); | ||
for (let i = 0; i < a.length - 1; i++) { | ||
const bigram = a.substr(i, 2); | ||
aBigrams.set(bigram, (aBigrams.get(bigram) ?? 0) + 1); | ||
} | ||
let intersectionSize = 0; | ||
for (let i = 0; i < b.length - 1; i++) { | ||
const bigram = b.substr(i, 2); | ||
const count = aBigrams.get(bigram) ?? 0; | ||
if (count > 0) { | ||
aBigrams.set(bigram, count - 1); | ||
intersectionSize++; | ||
} | ||
return 2 * intersectionSize / (a.length + b.length - 2); | ||
} | ||
return 2 * intersectionSize / (a.length + b.length - 2); | ||
}; | ||
export const capitalizeString = (s: string) => { | ||
const lowerCase = s.toLocaleLowerCase(); | ||
if(lowerCase.length) | ||
return `${lowerCase.charAt(0).toUpperCase()}${lowerCase.slice(1)}`; | ||
return lowerCase; | ||
}; | ||
export const capitalizeString = (s: string): string => { | ||
const lowerCase = s.toLocaleLowerCase(); | ||
if(lowerCase.length) | ||
return `${lowerCase.charAt(0).toUpperCase()}${lowerCase.slice(1)}`; | ||
return lowerCase; | ||
}; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4021
384254
Updated@aws-cdk/cfnspec@^1.115.0