1.0.16 • Published 6 years ago

clark-entity v1.0.16

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Entities

CLARK business rules encapsulated in TypeScript modules

Installation

npm install --save clark-entity

Serialization

The standard JSON.stringify function does not work on entities. If you are sending an entity over a network, you must first convert its information to a string by:

let serialized = <Entity>.serialize(entity);

On the receiving end, you must unserialize by:

let entity = <Entity>.unserialize(serialized, parent);

If you are not working with a parent entity, pass null as the second argument.

Interfaces

OutcomeSuggestion (outcome.ts)

PropertyTypeDescription
idthe unique database id for this outcome. Use it in db-interactor events.
authorstringthe person or organization responsible for this outcome
namestringthe object, knowledge unit, or label this outcome is associated with
datestringthe date this outcome was developed
outcomestringthe actual text of this outcome

ObjectSuggestion (learning-object.ts)

PropertyTypeDescription
idthe unique database id for this object. Use it in db-interactor events.
authorstringthe name of the person responsible for this object
namestringthe name of this object
datestringthe date this object was developed
lengthstringthe module-class (nanomodule, course, etc.) of this object

TODO: generate documentation for everything else... (we should be able to use jsdocs)

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago