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);
};
import { JsonElementType, JsonObject, JsonProperty } from "ta-json";
import { EntityLoadConfiguration } from "./entity-load-configuration";
import { QueryNodeFilter } from "./search/query-node-filter";
import { Sorting } from "./sorting";
let SearchAfterQuery = class SearchAfterQuery {
    constructor(init) {
        /**
         * The number of items to take. If not specified, the underlying implementation will use a default value.
         */
        this.take = 50;
        Object.assign(this, init);
    }
};
__decorate([
    JsonProperty("filter"),
    __metadata("design:type", QueryNodeFilter)
], SearchAfterQuery.prototype, "filter", void 0);
__decorate([
    JsonProperty("take"),
    __metadata("design:type", Number)
], SearchAfterQuery.prototype, "take", void 0);
__decorate([
    JsonProperty("sorting"),
    JsonElementType(Sorting),
    __metadata("design:type", Array)
], SearchAfterQuery.prototype, "sorting", void 0);
__decorate([
    JsonProperty("search_after"),
    JsonElementType(String),
    __metadata("design:type", Object)
], SearchAfterQuery.prototype, "searchAfter", void 0);
__decorate([
    JsonProperty("load_configuration"),
    JsonElementType(EntityLoadConfiguration),
    __metadata("design:type", Object)
], SearchAfterQuery.prototype, "loadConfiguration", void 0);
__decorate([
    JsonProperty("renditions"),
    JsonElementType(String),
    __metadata("design:type", Object)
], SearchAfterQuery.prototype, "renditions", void 0);
__decorate([
    JsonProperty("nested_relations"),
    JsonElementType(String),
    __metadata("design:type", Object)
], SearchAfterQuery.prototype, "nestedRelations", void 0);
SearchAfterQuery = __decorate([
    JsonObject(),
    __metadata("design:paramtypes", [Object])
], SearchAfterQuery);
export { SearchAfterQuery };
//# sourceMappingURL=search-after-query.js.map