Title

Global

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

View Source services/dt/commands/utils.js, line 30

Methods

# _loadLocale()

Loads the current locale

.

Loads the current locale

View Source services/WebcLocaleService.js, line 39

# 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

View Source services/dt/DossierBuilder.js, line 139

# 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

View Source services/dt/AppBuilderService.js, line 506

# 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

View Source services/dt/AppBuilderService.js, line 515

# 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

View Source services/dt/AppBuilderService.js, line 217

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

View Source model/Utils.js, line 183

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

View Source services/WebcLocaleService.js, line 64

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

View Source services/dt/FileService.js, line 70

# getFolderContentAsJSON(innerFolder, callback)

Parameters:
Name Type Description
innerFolder
callback

View Source services/dt/FileService.js, line 87

# 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

View Source services/WebComponentService.js, line 16

# 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

View Source services/utils.js, line 194

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

View Source model/Utils.js, line 16

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

View Source services/WebComponentService.js, line 8

Type Definitions