"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PropertyDefinition = void 0;
const ta_json_1 = require("ta-json");
const conditional_validation_resource_1 = require("../../models/conditional-validation-resource");
const data_type_1 = require("./data-type");
const member_definition_1 = require("./member-definition");
const member_definition_type_1 = require("./member-definition-type");
let PropertyDefinition = class PropertyDefinition extends member_definition_1.MemberDefinition {
    get dataType() {
        return this.type;
    }
    get definitionType() {
        return member_definition_type_1.MemberDefinitionType.Property;
    }
    constructor(name, type) {
        super(name, type);
    }
};
exports.PropertyDefinition = PropertyDefinition;
__decorate([
    (0, ta_json_1.JsonProperty)("is_indexed"),
    __metadata("design:type", Boolean)
], PropertyDefinition.prototype, "indexed", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("is_mandatory"),
    __metadata("design:type", Boolean)
], PropertyDefinition.prototype, "isMandatory", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("is_multilanguage"),
    __metadata("design:type", Boolean)
], PropertyDefinition.prototype, "isMultiLanguage", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("is_multivalue"),
    __metadata("design:type", Boolean)
], PropertyDefinition.prototype, "isMultiValue", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("is_unique"),
    __metadata("design:type", Boolean)
], PropertyDefinition.prototype, "isUnique", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("boost"),
    __metadata("design:type", Boolean)
], PropertyDefinition.prototype, "boost", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("included_in_content"),
    __metadata("design:type", Boolean)
], PropertyDefinition.prototype, "includeInContent", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("included_in_completion"),
    __metadata("design:type", Boolean)
], PropertyDefinition.prototype, "includeInCompletion", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("ignore_on_export"),
    __metadata("design:type", Boolean)
], PropertyDefinition.prototype, "ignoreOnExport", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("stored_in_graph"),
    __metadata("design:type", Boolean)
], PropertyDefinition.prototype, "storedInGraph", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("conditional_validation"),
    (0, ta_json_1.JsonConverter)(conditional_validation_resource_1.ConditionalValidationResourceConverter),
    __metadata("design:type", conditional_validation_resource_1.ConditionalValidationResource)
], PropertyDefinition.prototype, "conditionalValidation", void 0);
exports.PropertyDefinition = PropertyDefinition = __decorate([
    (0, ta_json_1.JsonObject)(),
    __metadata("design:paramtypes", [String, String])
], PropertyDefinition);
//# sourceMappingURL=property-definition.js.map