-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
54 lines (43 loc) · 1.41 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// onmd-sic module exports
//
var onm = require('onm');
var uuid = require('node-uuid');
module.exports = {
dependencies: {
onm: onm,
uuid: uuid
}, // module.exports.dependencies
onmDataModelDeclaration: {
namespaceType: "root",
jsonTag: "SiCImage",
____label: "SiC Image Document",
____description: "Encapsule Project System in Cloud (SiC) compiled program specification image.",
____docModel: "3e2810a0-4ea5-11e4-b137-080027d17300",
namespaceProperties: {
userImmutable: {
docUuid: {
fnCreate: function() { uuid.v4(); }
},
docModel: {
defaultValue: "3e2810a0-4ea5-11e4-b137-080027d17300"
},
revision: {
defaultValue: 0
},
createTime: {
fnCreate: function() { onm.util.getEpochTime(); }
},
revisionTime: {
fnCreate: function() { onm.util.getEpochTime(); }
},
revisionUuid: {
fnCreate: function () { uuid.v4(); }
}
}
},
semanticBindings: {
componentKeyGenerator: "internalUuid",
namespaceVersioning: "internalAdvanced"
}
} // module.exports.onmDataModelDeclaration
};