Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Releases: suiteplus/nsmockup

2016-02-05, Version 0.10.0 (stable)

05 Feb 19:35
Compare
Choose a tag to compare

Notable changes

  • add support for nsify.
  • add formula text parse using ns-formula-parse.
  • add generic function to create SuiteScripts: nsmockup.createSuiteScript(type, opt, cb).
  • improve search records with eqauls filters.
  • fix User Events trigger on nlapiLoadRecord.
  • change default configuration of functions in:
    • nsmockup.createRESTlet
    • nsmockup.createSchedule
    • nsmockup.createSuitelet
    • nsmockup.createUserEvent
  • simulate add SuiteScripts libs intro File Cabinet.
  • add field isinactive before save record in nlapiSubmitRecord.

Netsuite API:

  • Field APIs
    • function nlapiGetFieldText(fldnam)
    • function nlapiGetFieldTexts(fldnam)
    • function nlapiGetFieldValue(fldnam)
    • function nlapiGetFieldValues(fldnam)
    • function nlapiGetField(fldnam)
    • function nlapiSetFieldText(fldnam)
    • function nlapiSetFieldTexts(fldnam)
    • function nlapiSetFieldValue(fldnam)
    • function nlapiSetFieldValues(fldnam)
    • function nlobjField(name, type, subList)

2015-11-05, Version 0.9.0 (unstable)

06 Nov 21:36
Compare
Choose a tag to compare

Notable changes

  • add defaults NetSuite metadata.
  • rename "opts.metadatas" to "opts.metadata" in smockup.init.
  • add validations for principal functions for each SuiteScripts.
  • fix reload general preferences with ulp.watch.
  • add floder validation in lapiSubmitFile.
  • improve field type parse in query results.
  • implement search operators for nlapiSearchRecord.

Netsuite API:

  • Context APIs
    • function nlapiGetDepartment()
    • function nlapiGetSubsidiary()
    • function nlapiGetUser()
  • Currency APIs
    • function nlapiFormatCurrency(str)

2015-10-26, Version 0.8.0 (unstable)

26 Oct 15:53
Compare
Choose a tag to compare

Notable changes

Netsuite API:

  • Encription APIs
    • function nlapiDecrypt(s, algorithm, key)
    • function nlapiEncrypt(s, algorithm, key)

2015-10-22, Version 0.7.0 (unstable)

22 Oct 19:16
Compare
Choose a tag to compare

Notable changes

  • improve VM context initializations for User Event Simulations
  • add new test units for: Date API, Field API, File API, Record API, Scheduling API, Search API, SubList API and XML API

Netsuite API:

  • Record APIs:
    • function nlapiTransformRecord(type, id, transformType, transformValues)
  • Search APIs:
    • function nlapiSearchGlobal(keywords)
  • SubList APIs:
    • function nlapiCancelLineItem(type)
    • function nlapiCommitLineItem(type)
    • function nlapiFindLineItemValue(type, fldnam, val)
    • function nlapiGetCurrentLineItemIndex(type)
    • function nlapiGetCurrentLineItemText(type, fldnam)
    • function nlapiGetCurrentLineItemValue(type, fldnam)
    • function nlapiGetLineItemCount(type)
    • function nlapiGetLineItemText(type, fldnam, linenum)
    • function nlapiGetLineItemValue(type, fldnam, linenum)
    • function nlapiInsertLineItem(type, line)
    • function nlapiSelectLineItem(type, linenum)
    • function nlapiSelectNewLineItem(type)
    • function nlapiSetCurrentLineItemText(type, fldnam, value)
    • function nlapiSetCurrentLineItemValue(type, fldnam, value)
    • function nlapiSetLineItemValue(type, fldnam, linenum, value)
  • XML APIs:
    • function nlapiEscapeXML(txt)
    • function nlapiSelectNode(node, xpath)
    • function nlapiSelectNodes(node, xpath)
    • function nlapiSelectValue(node, xpath)
    • function nlapiSelectValues(node, xpath)
    • function nlapiStringToXML(str)
    • function nlapiValidateXML(xmlDocument, schemaDocument, schemaFolderId)
    • function nlapiXMLToPDF(input)
    • function nlapiXMLToString(xml)

2015-10-18, Version 0.6.0 (unstable)

22 Oct 19:19
Compare
Choose a tag to compare

Notable changes

  • improvements on Suitelet, Restlet and Schedule Simulations
  • improve stack errors in nlapiLogExecution
  • implement global date format
  • implement function to find parent joins
  • fix bugs in nlapiSubmitField and nlapiSearchRecord
  • fix nlobjFile.getValue to return the original file

Netsuite API:

  • Date APIs:
    • function nlapiStringToDate(str, format)
    • function nlapiAddDays(d, days)
    • function nlapiAddMonths(d, months)
  • Scheduling APIs:
    • function nlapiScheduleScript(id, deployment, parameters)
    • function nlapiSetRecoveryPoint()
    • function nlapiYieldScript()

2015-10-08, Version 0.5.0 (unstable)

22 Oct 19:19
Compare
Choose a tag to compare

Notable changes

  • simulate User Events: nsmockup.createUserEvent(opt)
  • remove cache from load JSON database
  • User Event triggers in: nlapiSubmitRecord => ('beforeSubmit', 'afterSubmit') and nlapiLoadRecord => ('beforeLoad')
  • Manager Context: one context for each Suite Script loaded

Netsuite API:

  • Record APIs:
    • function nlapiGetNewRecord()
    • function nlapiGetOldRecord()
    • function nlapiGetRecordId()
    • function nlapiGetRecordType()

2015-10-07, Version 0.4.0 (unstable)

22 Oct 19:18
Compare
Choose a tag to compare

Notable changes

nsmock server:

  • add server configuration, example: nsmockup.init({server: true})
  • this servers use express to start on port 3030
  • you can test Suitelet and RESTlet using nlapiResolveURL and nlapiRequestURL

Mockup news - Netsuite API:

  • Application Navigation APIs:
    • function nlapiRequestURL(url, postdata, headers, method)
    • function nlapiResolveRUL(type, identifier, id, displayMode)
    • function nlobjRequest()
    • function nlobjResponse()
  • Communication APIs:
    • function nlapiSendCampaignEmail(campaigneventid, recipientid)
    • function nlapiSendEmail(from, to, subject, body, cc, bcc, records, files, notifySenderOnBounce, internalOnly, replyTo)
    • function nlapiSendFax(from, to, subject, body, records, files)
  • Field APIs:
    • function nlapiSubmitField(type,id,fields,values,doSourcing)

2015-09-30, Version 0.3.0 => 0.3.1 (unstable)

22 Oct 19:18
Compare
Choose a tag to compare

Notable changes

Record API:

  • [ee6d52c] fix columns join
  • [9252f19] fix order columns in nlobjSearchResult
  • [3eecfca] include stack on error log

Mockup news - Netsuite API:

  • Search APIs:
    • function nlapiCreateSearch(type, filters, columns)
    • function nlobjSearch(type, id, filters, columns)
    • function nlobjSearchResultSet(search)
  • Field APIs:
    • function nlapiLookupField(type, id, fields, text)

2015-09-28, Version 0.2.0 (unstable)

22 Oct 19:17
Compare
Choose a tag to compare

Notable changes

Mockup news - Netsuite API:

  • Record APIs:
    • function nlapiCopyRecord(type, id, filters, columns)
    • function nlapiCreateRecord(type, id, filters, columns)
    • function nlapiDeleteRecord(type, id, filters, columns)
    • function nlapiLoadRecord(type, id, filters, columns)
    • function nlapiSubmitRecord(type, id, filters, columns)
    • function nlobjRecord()

2015-09-26, Version 0.1.0 (unstable)

22 Oct 19:17
Compare
Choose a tag to compare

Notable changes

lowdb:

  • Use lowdb to simulate Netsuite database, its a simple solution to manager Record Types.

Mockup news - Netsuite API:

  • File APIs:
    • function nlapiCreateFile(name, type, contents)
    • function nlapiDeleteFile(id)
    • function nlapiLoadFile(id)
    • function nlapiSubmitFile f(file)
    • function nlobjFile()
  • Record APIs:
    • function nlapiSearchRecord(type, id, filters, columns)
    • function nlobjSearchColumn()
    • function nlobjSearchFilter()
    • function nlobjSearchResult()
  • Execution Context APIs:
    • function nlapiGetContext()
    • function nlapiLogExecution(type, title, details)
    • function nlobjContext()
  • Date APIs:
    • function nlapiDateToString(d, format)