UNPKG

@oracle/suitecloud-unit-testing

Version:

<p align="left"><a href="#"><img width="250" src="resources/netsuite_logo_simplified.png"></a></p>

92 lines (89 loc) 2.66 kB
define([], function () { /** * @class RelativeDate * @classDescription Special object which can be used as a condition while querying dates * @constructor * @protected * * @since 2019.1 */ function RelativeDate() { /** * Start of relative date * @name RelativeDate#start * @type {Object} * @readonly * @throws {SuiteScriptError} READ_ONLY_PROPERTY when setting the property is attempted * * @since 2019.1 */ this.start = undefined; /** * End of relative date * @name RelativeDate#end * @type {Object} * @readonly * @throws {SuiteScriptError} READ_ONLY_PROPERTY when setting the property is attempted * * @since 2019.1 */ this.end = undefined; /** * Interval of relative date * @name RelativeDate#interval * @type {Object} * @readonly * @throws {SuiteScriptError} READ_ONLY_PROPERTY when setting the property is attempted * * @since 2019.1 */ this.interval = undefined; /** * Value of relative date * @name RelativeDate#value * @type {number} * @readonly * @throws {SuiteScriptError} READ_ONLY_PROPERTY when setting the property is attempted * * @since 2019.1 */ this.value = undefined; /** * Flag if this relative date represents range * @name RelativeDate#isRange * @type {Boolean} * @readonly * @throws {SuiteScriptError} READ_ONLY_PROPERTY when setting the property is attempted * * @since 2019.1 */ this.isRange = undefined; /** * Id of relative date * @name RelativeDate#dateId * @type {string} * @readonly * @throws {SuiteScriptError} READ_ONLY_PROPERTY when setting the property is attempted * * @since 2019.1 */ this.dateId = undefined; /** * Returns the object type name (query.RelativeDate) * @governance none * @return {string} * * @since 2019.1 */ this.toString = function () { }; /** * get JSON format of the object * @governance none * @return {Object} * * @since 2019.1 */ this.toJSON = function () { }; } return new RelativeDate(); });