"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.FacetResponseResource = void 0;
const ta_json_1 = require("ta-json");
let FacetResponseResource = class FacetResponseResource {
    constructor() {
        this.id = null;
        this.labels = {};
        this.isPartial = false;
        this.children = [];
        this.multiSelectEnabled = false;
        this.checked = false;
        this.hasDescendants = false;
    }
};
exports.FacetResponseResource = FacetResponseResource;
__decorate([
    (0, ta_json_1.JsonProperty)("id"),
    __metadata("design:type", Object)
], FacetResponseResource.prototype, "id", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("value"),
    __metadata("design:type", String)
], FacetResponseResource.prototype, "value", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("labels"),
    __metadata("design:type", Object)
], FacetResponseResource.prototype, "labels", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("name"),
    __metadata("design:type", String)
], FacetResponseResource.prototype, "fieldName", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("addQuery"),
    __metadata("design:type", String)
], FacetResponseResource.prototype, "addQuery", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("childCount"),
    __metadata("design:type", Number)
], FacetResponseResource.prototype, "totalNumberOfFacetValues", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("ispartial"),
    __metadata("design:type", Boolean)
], FacetResponseResource.prototype, "isPartial", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("limit"),
    __metadata("design:type", Number)
], FacetResponseResource.prototype, "limit", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("matchCount"),
    __metadata("design:type", Number)
], FacetResponseResource.prototype, "matchCount", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("children"),
    (0, ta_json_1.JsonElementType)(FacetResponseResource),
    __metadata("design:type", Array)
], FacetResponseResource.prototype, "children", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("definition"),
    __metadata("design:type", String)
], FacetResponseResource.prototype, "definition", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("position"),
    __metadata("design:type", String)
], FacetResponseResource.prototype, "position", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("multi_select_enabled"),
    __metadata("design:type", Boolean)
], FacetResponseResource.prototype, "multiSelectEnabled", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("checked"),
    __metadata("design:type", Boolean)
], FacetResponseResource.prototype, "checked", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("multi_select_empty_query"),
    __metadata("design:type", String)
], FacetResponseResource.prototype, "multiSelectEmptyQuery", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("has_descendants"),
    __metadata("design:type", Boolean)
], FacetResponseResource.prototype, "hasDescendants", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("data"),
    __metadata("design:type", Object)
], FacetResponseResource.prototype, "data", void 0);
exports.FacetResponseResource = FacetResponseResource = __decorate([
    (0, ta_json_1.JsonObject)()
], FacetResponseResource);
//# sourceMappingURL=facet-response-resource.js.map