"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMappingDataDefinition = void 0;
const DataDefinition_1 = require("@appglue/common/dist/Common/Data/DataDefinition");
const DateDataDefinition_1 = require("@appglue/common/dist/Common/Data/Definitions/DateDataDefinition");
const NumberDataDefinition_1 = require("@appglue/common/dist/Common/Data/Definitions/NumberDataDefinition");
const ObjectDataDefinition_1 = require("@appglue/common/dist/Common/Data/Definitions/ObjectDataDefinition");
const StringDataDefinition_1 = require("@appglue/common/dist/Common/Data/Definitions/StringDataDefinition");
const MappingConfiguration_1 = require("@appglue/common/dist/Mapping/MappingConfiguration");
const getMappingDataDefinition = () => {
    let definition = new MappingConfiguration_1.MappingConfiguration();
    let idatadef = new DataDefinition_1.DataDefinition();
    idatadef.fields.push(new NumberDataDefinition_1.NumberDataDefinition("expectedHours"));
    idatadef.fields.push(new NumberDataDefinition_1.NumberDataDefinition("spentHours"));
    idatadef.fields.push(new NumberDataDefinition_1.NumberDataDefinition("totalBudget"));
    let developer = new ObjectDataDefinition_1.ObjectDataDefinition("developer1");
    developer.fields.push(new StringDataDefinition_1.StringDataDefinition("firstName"));
    developer.fields.push(new StringDataDefinition_1.StringDataDefinition("lastName"));
    developer.fields.push(new NumberDataDefinition_1.NumberDataDefinition("hourlyRate"));
    developer.fields.push(new NumberDataDefinition_1.NumberDataDefinition("totalWorkingHours"));
    idatadef.fields.push(developer);
    developer = new ObjectDataDefinition_1.ObjectDataDefinition("developer2");
    developer.fields.push(new StringDataDefinition_1.StringDataDefinition("firstName"));
    developer.fields.push(new StringDataDefinition_1.StringDataDefinition("lastName"));
    developer.fields.push(new NumberDataDefinition_1.NumberDataDefinition("hourlyRate"));
    developer.fields.push(new NumberDataDefinition_1.NumberDataDefinition("totalWorkingHours"));
    idatadef.fields.push(developer);
    definition.inputData = idatadef;
    let odatadef = new DataDefinition_1.DataDefinition();
    odatadef.fields.push(new NumberDataDefinition_1.NumberDataDefinition("spentMoney"));
    odatadef.fields.push(new NumberDataDefinition_1.NumberDataDefinition("remainedMoney"));
    odatadef.fields.push(new NumberDataDefinition_1.NumberDataDefinition("spentTotalHours"));
    odatadef.fields.push(new DateDataDefinition_1.DateDataDefinition("expectedLaunchDate"));
    let owner = new ObjectDataDefinition_1.ObjectDataDefinition("owner");
    owner.fields.push(new StringDataDefinition_1.StringDataDefinition("name"));
    owner.fields.push(new NumberDataDefinition_1.NumberDataDefinition("age"));
    odatadef.fields.push(owner);
    definition.executionResult = odatadef;
    return definition;
};
exports.getMappingDataDefinition = getMappingDataDefinition;
//# sourceMappingURL=TestDataSetup.js.map