aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models/properties-inputs/property-fe-map.ts
blob: 3b267460b17051ab8987c994987f0b940a9c9d18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
'use strict';
import { PropertyBEModel, PropertyFEModel } from "../../models";

export class InstanceBePropertiesMap {
    [instanceId: string]: Array<PropertyBEModel>;
}

export class InstanceFePropertiesMap {
    [instanceId: string]: Array<PropertyFEModel>;
}

export class InstancePropertiesAPIMap {
    componentInstanceProperties: InstanceBePropertiesMap;
    componentInstanceInputsMap: InstanceBePropertiesMap;

    constructor(inputsMapData: InstanceBePropertiesMap, propertiesMapData: InstanceBePropertiesMap) {
        this.componentInstanceInputsMap = inputsMapData ? inputsMapData: new InstanceBePropertiesMap();
        this.componentInstanceProperties = propertiesMapData ? propertiesMapData: new InstanceBePropertiesMap();
    }

}