generateId ( length: Number , opts: Object ) { String }

Generates a random ID.

Parameters
Name Type Description
length Number

length Number of characters (if omitted default is 8)

opts Object

opts Options

Properties
Name Type Description
chars String opts.chars A string containing all valid characters in the ID (by default all alphanumeric characters are included)

importRecords ( Name: String , resource: String , opts: Object ) { Promise }

Import records from an application resource

Parameters
Name Type Description
Name String

Name of model to import to

resource String

resource Name or ID of resource to read records from

opts Object

opts

parseXML ( text: String ) { Document }

Parse an XML-document

Parameters
Name Type Description
text String

text String to parse

serializeXML ( doc: Document) { String }

Serialize an XML-document

Parameters
Name Type Description
doc Document

doc Document to serialize

transpose ( records: Array , options: Object ) { Array }

Transposes an array of objects/records

Parameters
Name Type Description
records Array

records

options Object

options