Members
# resolver
Provides Util functions and Methods as well as caching for the open DSU resolver and DSUBuilder
.Provides Util functions and Methods as well as caching for the open DSU resolver and DSUBuilder
Methods
# buildDossier(configOrDSU:, commandsopt, callback)
Builds s DSU according to it's building instructions
.Builds s DSU according to it's building instructions
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
configOrDSU: |
object
|
Archive
|
can be a config file form octopus or the destination DSU when cloning. Example of config file:
{
seed: path to SEED file in fs
}
|
|
commands |
Array.<string>
|
Array.<object>
|
<optional> |
|
callback |
function
|
# buildSSApp(seed, name, callback)
Builds a new SSApp from the provided secrets
.Builds a new SSApp from the provided secrets
Parameters:
| Name | Type | Description |
|---|---|---|
seed |
KeySSI
|
the SSApp's keySSI |
name |
string
|
the SSApp's name |
callback |
function
|
# buildWallet(secrets, callback)
Builds a new Wallet from the provided secrets
.Builds a new Wallet from the provided secrets
Parameters:
| Name | Type | Description |
|---|---|---|
secrets |
object
|
string
|
according to parseSecrets |
callback |
function
|
# clone(arg, keyForDSUToClone, isConstopt, callback)
Creates a new DSU (Const or not) and clones the content another DSU into it
.Creates a new DSU (Const or not) and clones the content another DSU into it
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
arg |
object
|
string
|
can be a secrets object or a string depending on if it's a const DSU or not. A secrets object is like:
{
secretName: {
secret: "...",
public: (defaults to false. If true will be made available to the created DSU for use of initialization Scripts)
},
(...)
}
|
|
keyForDSUToClone |
KeySSI
|
||
isConst |
boolean
|
<optional> |
decides if the Created DSU is Const or not. defaults to true |
callback |
function
|
# generate2DMatrixCode(gtin, batchNumber, expiry, serialNumberopt) → {string}
Generates the 2D Data Matrix code for a batch or a serial
.Generates the 2D Data Matrix code for a batch or a serial
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
gtin |
|||
batchNumber |
string
|
||
expiry |
string
|
(must be parseable to date) |
|
serialNumber |
<optional> |
string
# getByPage(pageName, controller) → {object}
Retrieves the translation information from WebCardinal
.Retrieves the translation information from WebCardinal
Parameters:
| Name | Type | Description |
|---|---|---|
pageName |
string
|
if contains '.' it will be translated into hierarchy in json object (just one level currently supported) |
controller |
WebcController
|
the translation object for the provided page in the current language
object
# getFile(appName, fileName, callback)
Returns the content of a file as a uintArray
.Returns the content of a file as a uintArray
Parameters:
| Name | Type | Description |
|---|---|---|
appName |
string
|
|
fileName |
string
|
|
callback |
function
|
# getFolderContentAsJSON(innerFolder, callback)
Parameters:
| Name | Type | Description |
|---|---|---|
innerFolder |
||
callback |
# getInfo(keySSI, callback)
retrieves the object stored at INFO_PATH to the dsu with the provided keySSI
.retrieves the object stored at INFO_PATH to the dsu with the provided keySSI
Parameters:
| Name | Type | Description |
|---|---|---|
keySSI |
string
|
|
callback |
function
|
# getMounts(dsu, basePath, …paths)
Returns the corresponding identifiers to the provided mount paths
.Returns the corresponding identifiers to the provided mount paths
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
dsu |
Archive
|
||
basePath |
string
|
||
paths |
string
|
function
|
<repeatable> |
the last argument must be the callback |
# isEqual(a, b, …propsToIgnoreopt) → {boolean}
Deep Object Comparison https://stackoverflow.com/questions/30476150/javascript-deep-comparison-recursively-objects-and-properties
with optional ignored properties
.Deep Object Comparison https://stackoverflow.com/questions/30476150/javascript-deep-comparison-recursively-objects-and-properties
with optional ignored properties
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
a |
Object
|
||
b |
Object
|
||
propsToIgnore |
string
|
<optional> <repeatable> |
boolean
# WebComponentService()
This service is the bridge between custom webcomponents and PDM's openDSU SSApp Architecture module Services
.This service is the bridge between custom webcomponents and PDM's openDSU SSApp Architecture module Services
- Deprecated:
- Yes