netsuite-starter
Version:
Scaffold to build NetSuite account customizations
118 lines (108 loc) • 3.57 kB
text/typescript
/**
* Return a new instance of search.Result object.
*
* @classDescription Encapsulation of a search result.
* @protected
* @constructor
*
* @since 2015.2
*/
class Result {
/**
* Record type of the result.
* @name Result#recordType
* @type {string}
* @readonly
* @throws {SuiteScriptError} READ_ONLY when setting the property is attempted
*
* @since 2015.2
*/
recordType = undefined;
/**
* Record internal ID of the result.
* @name Result#id
* @type {number}
* @readonly
* @throws {SuiteScriptError} READ_ONLY when setting the property is attempted
*
* @since 2015.2
*/
id = undefined;
/**
* List of columns contained in this result.
* @name Result#columns
* @type {Column[]}
* @readonly
* @throws {SuiteScriptError} READ_ONLY when setting the property is attempted
*
* @since 2015.2
*/
columns = undefined;
/**
* Returns the value of a specified search return column. The column may be specified in two ways:
* 1) by providing a search.Column object
* 2) by providing name, join and summary parameters
* @governance none
* @param {Column} column The search result column from which to return a value.
* - or -
* @param {Object} options the options object
* @param {string} options.name The search return column name.
* @param {string} [options.join] optional The join id for this search return column.
* @param {Summary} [options.summary] The summary type for this column.
* @param {string} [options.func] Special function for the search column.
* @return {string} string value of the search result column
*
* @throws {SuiteScriptError} SSS_MISSING_REQD_ARGUMENT when name parameter is missing
*
* @since 2015.2
*/
getValue(options: any): any {
if (options) {
//
}
};
/**
* Returns the UI display name (i.e. the text value) of a specified search return column.
* Note that this method is supported on select, image and document fields only.
* The column may be specified in two ways:
* 1) by providing a search.Column object
* 2) by providing name, join and summary parameters
* @governance none
* @param {Column} column The search result column from which to return a value.
* - or -
* @param {Object} options the options object
* @param {string} options.name The search return column name.
* @param {string} [options.join] optional The join id for this search return column.
* @param {Summary} [options.summary] The summary type for this column.
* @param {string} [options.func] Special function for the search column.
* @return {string} UI display name (text value) of the search result column
*
* @throws {SuiteScriptError} SSS_MISSING_REQD_ARGUMENT when name parameter is missing
*
* @since 2015.2
*/
getText(options: any): any {
if (options) {
//
}
};
/**
* Returns the object type name (search.Filter)
* @governance none
* @return {string}
*
* @since 2015.2
*/
public toString(): any {
}
/**
* get JSON format of the object
* @governance none
* @return {Object}
*
* @since 2015.2
*/
public toJSON(): any {
}
}
export default Result;