@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
53 lines (52 loc) • 1.33 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InputListQueryParamsBuilder = void 0;
class InputListQueryParamsBuilder {
constructor() {
this.internalParams = {};
}
/**
*
* @param offset Index of the first item to return, starting at 0. Default is 0
*/
offset(offset) {
this.internalParams.offset = offset;
return this;
}
/**
*
* @param limit Maximum number of items to return. Default is 25, maximum is 100
*/
limit(limit) {
this.internalParams.limit = limit;
return this;
}
/**
*
* @param name Filter inputs by name
*/
name(name) {
this.internalParams.name = name;
return this;
}
/**
*
* @param type Filter inputs by type
*/
type(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`
*/
sort(sort) {
this.internalParams.sort = sort;
return this;
}
buildQueryParams() {
return this.internalParams;
}
}
exports.InputListQueryParamsBuilder = InputListQueryParamsBuilder;