netsuite-starter
Version:
Scaffold to build NetSuite account customizations
91 lines (90 loc) • 3.43 kB
JavaScript
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports"], factory);
}
})(function (require, exports) {
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Return a new instance of search.ResultSet object.
*
* @classDescription Encapsulation of a search result set.
* @protected
* @constructor
*
* @since 2015.2
*/
var ResultSet = /** @class */ (function () {
function ResultSet() {
/**
* List of columns contained in this result set.
* @name ResultSet#columns
* @type {Column[]}
* @readonly
* @throws {SuiteScriptError} READ_ONLY when setting the property is attempted
*
* @since 2015.2
*/
this.columns = undefined;
}
/**
* Retrieve a slice of the search result set. Only 1000 results can be returned at a time. If there are fewer results
* available than requested, then the array will be truncated.
* @governance 10 units
* @param {Object} options the options object
* @param {number} options.start the index number of the first result to return, inclusive
* @param {number} options.end the index number of the last result to return, exclusive
* @return {Result[]} the requested slice of the search result set
*
* @throws {SuiteScriptError} SSS_MISSING_REQD_ARGUMENT when start or end parameters are missing
*
* @since 2015.2
*/
ResultSet.prototype.getRange = function (options) {
if (options) {
//
}
};
;
/**
* Calls the developer-defined callback function for every result in this set. The result set processed by each()
* may have maximum 4000 rows. The callback function has the following signature: boolean callback(result.Result
* result); If the return value of the callback is false, the iteration over results is stopped, otherwise it
* continues. Note that the work done in the context of the callback function counts towards the governance of the
* script that called it.
* @governance 10 units
* @param {Function} callback the function called for each result in the result set
* @return {void}
* @since 2015.2
*/
ResultSet.prototype.each = function (callback) {
if (typeof callback) {
//
}
};
;
/**
* Returns the object type name (search.Filter)
* @governance none
* @return {string}
*
* @since 2015.2
*/
ResultSet.prototype.toString = function () {
};
/**
* get JSON format of the object
* @governance none
* @return {Object}
*
* @since 2015.2
*/
ResultSet.prototype.toJSON = function () {
};
return ResultSet;
}());
exports.default = ResultSet;
});