"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.AllFacetsRequest = void 0;
const ta_json_1 = require("ta-json");
const field_filter_request_resource_1 = require("./field-filter-request-resource");
let AllFacetsRequest = class AllFacetsRequest {
    constructor(init) {
        this.culture = "Invariant";
        this.filters = [];
        Object.assign(this, init);
    }
};
exports.AllFacetsRequest = AllFacetsRequest;
__decorate([
    (0, ta_json_1.JsonProperty)("facetField"),
    __metadata("design:type", String)
], AllFacetsRequest.prototype, "facetField", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("query"),
    __metadata("design:type", String)
], AllFacetsRequest.prototype, "query", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("searchConfigurationName"),
    __metadata("design:type", String)
], AllFacetsRequest.prototype, "searchConfigurationName", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("culture"),
    __metadata("design:type", String)
], AllFacetsRequest.prototype, "culture", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("take_user_settings"),
    __metadata("design:type", Boolean)
], AllFacetsRequest.prototype, "takeUserSettings", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("component"),
    __metadata("design:type", Number)
], AllFacetsRequest.prototype, "componentId", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("l10n"),
    __metadata("design:type", Boolean)
], AllFacetsRequest.prototype, "l10n", void 0);
__decorate([
    (0, ta_json_1.JsonProperty)("filters"),
    (0, ta_json_1.JsonElementType)(field_filter_request_resource_1.FieldFilterRequestResource),
    __metadata("design:type", Array)
], AllFacetsRequest.prototype, "filters", void 0);
exports.AllFacetsRequest = AllFacetsRequest = __decorate([
    (0, ta_json_1.JsonObject)(),
    __metadata("design:paramtypes", [Object])
], AllFacetsRequest);
//# sourceMappingURL=all-facets-request.js.map