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
|
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 |