UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

54 lines (53 loc) 1.74 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InputListQueryParamsBuilder = void 0; var InputListQueryParamsBuilder = /** @class */ (function () { function InputListQueryParamsBuilder() { this.internalParams = {}; } /** * * @param offset Index of the first item to return, starting at 0. Default is 0 */ InputListQueryParamsBuilder.prototype.offset = function (offset) { this.internalParams.offset = offset; return this; }; /** * * @param limit Maximum number of items to return. Default is 25, maximum is 100 */ InputListQueryParamsBuilder.prototype.limit = function (limit) { this.internalParams.limit = limit; return this; }; /** * * @param name Filter inputs by name */ InputListQueryParamsBuilder.prototype.name = function (name) { this.internalParams.name = name; return this; }; /** * * @param type Filter inputs by type */ InputListQueryParamsBuilder.prototype.type = function (type) { this.internalParams.type = type; return this; }; /** * * @param sort Order list result according an input resource attribute. The fields that can be used for sorting are: + `id` + `createdAt` + `modifiedAt` + `type` + `name` */ InputListQueryParamsBuilder.prototype.sort = function (sort) { this.internalParams.sort = sort; return this; }; InputListQueryParamsBuilder.prototype.buildQueryParams = function () { return this.internalParams; }; return InputListQueryParamsBuilder; }()); exports.InputListQueryParamsBuilder = InputListQueryParamsBuilder;