@project-sunbird/telemetry-sdk 0.1.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/{dist/index.js → index.js} +13 -11
  2. package/package.json +27 -24
  3. package/_config.yml +0 -1
  4. package/core/auth-token-generator.min.js +0 -8
  5. package/core/telemetrySyncManager.js +0 -96
  6. package/core/telemetryV3Interface.js +0 -607
  7. package/coverage/PhantomJS 2.1.1 (Mac OS 0.0.0)/lcov-report/base.css +0 -224
  8. package/coverage/PhantomJS 2.1.1 (Mac OS 0.0.0)/lcov-report/block-navigation.js +0 -79
  9. package/coverage/PhantomJS 2.1.1 (Mac OS 0.0.0)/lcov-report/favicon.png +0 -0
  10. package/coverage/PhantomJS 2.1.1 (Mac OS 0.0.0)/lcov-report/index.html +0 -96
  11. package/coverage/PhantomJS 2.1.1 (Mac OS 0.0.0)/lcov-report/prettify.css +0 -1
  12. package/coverage/PhantomJS 2.1.1 (Mac OS 0.0.0)/lcov-report/prettify.js +0 -2
  13. package/coverage/PhantomJS 2.1.1 (Mac OS 0.0.0)/lcov-report/sort-arrow-sprite.png +0 -0
  14. package/coverage/PhantomJS 2.1.1 (Mac OS 0.0.0)/lcov-report/sorter.js +0 -170
  15. package/coverage/PhantomJS 2.1.1 (Mac OS 0.0.0)/lcov.info +0 -0
  16. package/dist/README.md +0 -915
  17. package/dist/package.json +0 -68
  18. package/gruntfile.js +0 -40
  19. package/gulpfile.js +0 -20
  20. package/karma.renderer.config.js +0 -76
  21. package/libs/ajv.min.js +0 -3
  22. package/libs/detectClient.js +0 -51
  23. package/libs/fingerprint2.min.js +0 -1411
  24. package/libs/md5.js +0 -334
  25. package/libs/ua-parser.min.js +0 -1
  26. package/npm-audit.html +0 -2949
  27. package/schema/actor.json +0 -15
  28. package/schema/assess.json +0 -68
  29. package/schema/audit.json +0 -54
  30. package/schema/cdata.json +0 -21
  31. package/schema/common.json +0 -38
  32. package/schema/context.json +0 -34
  33. package/schema/dspec.json +0 -58
  34. package/schema/end.json +0 -61
  35. package/schema/error.json +0 -62
  36. package/schema/event.json +0 -51
  37. package/schema/exdata.json +0 -43
  38. package/schema/feedback.json +0 -47
  39. package/schema/heartbeat.json +0 -32
  40. package/schema/impression.json +0 -94
  41. package/schema/inlineobject.json +0 -39
  42. package/schema/interact.json +0 -69
  43. package/schema/interrupt.json +0 -46
  44. package/schema/items.json +0 -57
  45. package/schema/log.json +0 -63
  46. package/schema/object.json +0 -21
  47. package/schema/parent.json +0 -14
  48. package/schema/pdata.json +0 -19
  49. package/schema/plugin.json +0 -23
  50. package/schema/question.json +0 -55
  51. package/schema/response.json +0 -53
  52. package/schema/rollup.json +0 -22
  53. package/schema/search.json +0 -71
  54. package/schema/share.json +0 -49
  55. package/schema/spec.js +0 -29
  56. package/schema/start.json +0 -64
  57. package/schema/target.json +0 -27
  58. package/schema/telemetry-spec.js +0 -1
  59. package/schema/uaspec.json +0 -26
  60. package/test/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/base.css +0 -213
  61. package/test/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/cobertura-coverage.xml +0 -391
  62. package/test/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/core/index.html +0 -106
  63. package/test/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/core/telemetrySyncManager.js.html +0 -263
  64. package/test/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/core/telemetryV3Interface.js.html +0 -1628
  65. package/test/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/index.html +0 -93
  66. package/test/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/prettify.css +0 -1
  67. package/test/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/prettify.js +0 -1
  68. package/test/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/sort-arrow-sprite.png +0 -0
  69. package/test/coverage/PhantomJS 2.1.1 (Mac OS X 0.0.0)/sorter.js +0 -158
  70. package/test/coverage/coverage-final.json +0 -3
  71. package/test/coverage/lcov.info +0 -461
  72. package/test/spec/telemetry-spec.js +0 -1
  73. package/test/spec/telemetrySyncManager.spec.js +0 -91
  74. package/test/spec/telemetryV3Interface.spec.js +0 -567
  75. package/test/spec/telemetrylib.fun.spec.js +0 -408
@@ -1,94 +0,0 @@
1
- {
2
- "$id": "http://api.ekstep.org/telemetry/impression",
3
- "type": "object",
4
- "required": [
5
- "eid",
6
- "ets",
7
- "ver",
8
- "mid",
9
- "actor",
10
- "context",
11
- "edata"
12
- ],
13
- "allOf": [
14
- {
15
- "$ref": "http://api.ekstep.org/telemetry/common"
16
- },
17
- {
18
- "properties": {
19
- "eid": {
20
- "$id": "http://api.ekstep.org/telemetry/eid",
21
- "enum": [
22
- "IMPRESSION"
23
- ]
24
- },
25
- "edata": {
26
- "$id": "http://api.ekstep.org/telemetry/edata",
27
- "type": "object",
28
- "additionalProperties": false,
29
- "required": [
30
- "type",
31
- "pageid",
32
- "uri"
33
- ],
34
- "properties": {
35
- "type": {
36
- "$id": "http://api.ekstep.org/telemetry/edata/type",
37
- "type": "string"
38
- },
39
- "subtype": {
40
- "$id": "http://api.ekstep.org/telemetry/edata/subtype",
41
- "type": "string"
42
- },
43
- "pageid": {
44
- "$id": "http://api.ekstep.org/telemetry/edata/pageid",
45
- "type": "string"
46
- },
47
- "uri": {
48
- "$id": "http://api.ekstep.org/telemetry/edata/uri",
49
- "type": "string"
50
- },
51
- "duration": {
52
- "$id": "http://api.ekstep.org/telemetry/edata/duration",
53
- "type": "number"
54
- },
55
- "visits": {
56
- "$id": "http://api.ekstep.org/telemetry/edata/visits",
57
- "type": "array",
58
- "items": {
59
- "type": "object",
60
- "properties": {
61
- "objid": {
62
- "$id": "http://api.ekstep.org/telemetry/edata/visits/objid",
63
- "type": "string"
64
- },
65
- "objtype": {
66
- "$id": "http://api.ekstep.org/telemetry/edata/visits/objtype",
67
- "type": "string"
68
- },
69
- "objver": {
70
- "$id": "http://api.ekstep.org/telemetry/edata/visits/objver",
71
- "type": "string"
72
- },
73
- "section": {
74
- "$id": "http://api.ekstep.org/telemetry/edata/visits/section",
75
- "type": "string"
76
- },
77
- "index": {
78
- "$id": "http://api.ekstep.org/telemetry/edata/visits/index",
79
- "type": "number"
80
- }
81
- },
82
- "additionalProperties": false,
83
- "required": [
84
- "objid",
85
- "objtype"
86
- ]
87
- }
88
- }
89
- }
90
- }
91
- }
92
- }
93
- ]
94
- }
@@ -1,39 +0,0 @@
1
- {
2
- "$id": "http://api.ekstep.org/telemetry/inlineobject",
3
- "type": "object",
4
- "additionalProperties": false,
5
- "required": [
6
- "id",
7
- "type",
8
- "ver"
9
- ],
10
- "properties": {
11
- "id": {
12
- "$id": "http://api.ekstep.org/telemetry/inlineobject/id",
13
- "type": "string"
14
- },
15
- "type": {
16
- "$id": "http://api.ekstep.org/telemetry/inlineobject/type",
17
- "type": "string"
18
- },
19
- "ver": {
20
- "$id": "http://api.ekstep.org/telemetry/inlineobject/ver",
21
- "type": "string"
22
- },
23
- "subtype": {
24
- "$id": "http://api.ekstep.org/telemetry/inlineobject/subtype",
25
- "type": "string"
26
- },
27
- "name": {
28
- "$id": "http://api.ekstep.org/telemetry/inlineobject/name",
29
- "type": "string"
30
- },
31
- "code": {
32
- "$id": "http://api.ekstep.org/telemetry/inlineobject/code",
33
- "type": "string"
34
- },
35
- "parent": {
36
- "$ref": "http://api.ekstep.org/telemetry/parent"
37
- }
38
- }
39
- }
@@ -1,69 +0,0 @@
1
- {
2
- "$id": "http://api.ekstep.org/telemetry/interact",
3
- "type": "object",
4
- "required": [
5
- "eid",
6
- "ets",
7
- "ver",
8
- "mid",
9
- "actor",
10
- "context",
11
- "edata"
12
- ],
13
- "allOf": [
14
- {
15
- "$ref": "http://api.ekstep.org/telemetry/common"
16
- },
17
- {
18
- "properties": {
19
- "eid": {
20
- "$id": "http://api.ekstep.org/telemetry/eid",
21
- "enum": [
22
- "INTERACT"
23
- ]
24
- },
25
- "edata": {
26
- "$id": "http://api.ekstep.org/telemetry/edata",
27
- "type": "object",
28
- "additionalProperties": false,
29
- "required": [
30
- "type",
31
- "id"
32
- ],
33
- "properties": {
34
- "type": {
35
- "$id": "http://api.ekstep.org/telemetry/edata/type",
36
- "type": "string"
37
- },
38
- "subtype": {
39
- "$id": "http://api.ekstep.org/telemetry/edata/subtype",
40
- "type": "string"
41
- },
42
- "id": {
43
- "$id": "http://api.ekstep.org/telemetry/edata/id",
44
- "type": "string"
45
- },
46
- "pageid": {
47
- "$id": "http://api.ekstep.org/telemetry/edata/pageid",
48
- "type": "string"
49
- },
50
- "duration": {
51
- "$id": "http://api.ekstep.org/telemetry/edata/duration",
52
- "type": "number"
53
- },
54
- "target": {
55
- "$ref": "http://api.ekstep.org/telemetry/target"
56
- },
57
- "plugin": {
58
- "$ref": "http://api.ekstep.org/telemetry/plugin"
59
- },
60
- "extra": {
61
- "$id": "http://api.ekstep.org/telemetry/edata/extra",
62
- "type": "object"
63
- }
64
- }
65
- }
66
- }
67
- }
68
- ]
69
- }
@@ -1,46 +0,0 @@
1
- {
2
- "$id": "http://api.ekstep.org/telemetry/interrupt",
3
- "type": "object",
4
- "required": [
5
- "eid",
6
- "ets",
7
- "ver",
8
- "mid",
9
- "actor",
10
- "context",
11
- "edata"
12
- ],
13
- "allOf": [
14
- {
15
- "$ref": "http://api.ekstep.org/telemetry/common"
16
- },
17
- {
18
- "properties": {
19
- "eid": {
20
- "$id": "http://api.ekstep.org/telemetry/eid",
21
- "enum": [
22
- "INTERRUPT"
23
- ]
24
- },
25
- "edata": {
26
- "$id": "http://api.ekstep.org/telemetry/edata",
27
- "type": "object",
28
- "additionalProperties": false,
29
- "required": [
30
- "type"
31
- ],
32
- "properties": {
33
- "type": {
34
- "$id": "http://api.ekstep.org/telemetry/edata/type",
35
- "type": "string"
36
- },
37
- "pageid": {
38
- "$id": "http://api.ekstep.org/telemetry/edata/pageid",
39
- "type": "string"
40
- }
41
- }
42
- }
43
- }
44
- }
45
- ]
46
- }
package/schema/items.json DELETED
@@ -1,57 +0,0 @@
1
- {
2
- "$id": "http://api.ekstep.org/telemetry/items",
3
- "type": "array",
4
- "items": {
5
- "type": "object",
6
- "additionalProperties": false,
7
- "properties": {
8
- "id": {
9
- "$id": "http://api.ekstep.org/telemetry/items/id",
10
- "type": "string"
11
- },
12
- "type": {
13
- "$id": "http://api.ekstep.org/telemetry/items/type",
14
- "type": "string"
15
- },
16
- "ver": {
17
- "$id": "http://api.ekstep.org/telemetry/items/ver",
18
- "type": "string"
19
- },
20
- "params": {
21
- "$id": "http://api.ekstep.org/telemetry/items/params",
22
- "type": "array",
23
- "items": {
24
- "type": "object"
25
- }
26
- },
27
- "origin": {
28
- "$id": "http://api.ekstep.org/telemetry/items/origin",
29
- "type": "object",
30
- "properties": {
31
- "id": {
32
- "$id": "http://api.ekstep.org/telemetry/items/origin/id",
33
- "type": "string"
34
- },
35
- "type": {
36
- "$id": "http://api.ekstep.org/telemetry/items/origin/type",
37
- "type": "string"
38
- }
39
- }
40
- },
41
- "to": {
42
- "$id": "http://api.ekstep.org/telemetry/items/to",
43
- "type": "object",
44
- "properties": {
45
- "id": {
46
- "$id": "http://api.ekstep.org/telemetry/items/to/id",
47
- "type": "string"
48
- },
49
- "type": {
50
- "$id": "http://api.ekstep.org/telemetry/items/to/type",
51
- "type": "string"
52
- }
53
- }
54
- }
55
- }
56
- }
57
- }
package/schema/log.json DELETED
@@ -1,63 +0,0 @@
1
- {
2
- "$id": "http://api.ekstep.org/telemetry/log",
3
- "type": "object",
4
- "required": [
5
- "eid",
6
- "ets",
7
- "ver",
8
- "mid",
9
- "actor",
10
- "context",
11
- "edata"
12
- ],
13
- "allOf": [
14
- {
15
- "$ref": "http://api.ekstep.org/telemetry/common"
16
- },
17
- {
18
- "properties": {
19
- "eid": {
20
- "$id": "http://api.ekstep.org/telemetry/eid",
21
- "enum": [
22
- "LOG"
23
- ]
24
- },
25
- "edata": {
26
- "$id": "http://api.ekstep.org/telemetry/edata",
27
- "type": "object",
28
- "additionalProperties": false,
29
- "required": [
30
- "type",
31
- "level",
32
- "message"
33
- ],
34
- "properties": {
35
- "type": {
36
- "$id": "http://api.ekstep.org/telemetry/edata/type",
37
- "type": "string"
38
- },
39
- "level": {
40
- "$id": "http://api.ekstep.org/telemetry/edata/level",
41
- "type": "string"
42
- },
43
- "message": {
44
- "$id": "http://api.ekstep.org/telemetry/edata/message",
45
- "type": "string"
46
- },
47
- "pageid": {
48
- "$id": "http://api.ekstep.org/telemetry/edata/pageid",
49
- "type": "string"
50
- },
51
- "params": {
52
- "$id": "http://api.ekstep.org/telemetry/edata/params",
53
- "type": "array",
54
- "items": {
55
- "type": "object"
56
- }
57
- }
58
- }
59
- }
60
- }
61
- }
62
- ]
63
- }
@@ -1,21 +0,0 @@
1
- {
2
- "$id": "http://api.ekstep.org/telemetry/object",
3
- "type": "object",
4
- "properties": {
5
- "id": {
6
- "$id": "http://api.ekstep.org/telemetry/object/id",
7
- "type": "string"
8
- },
9
- "type": {
10
- "$id": "http://api.ekstep.org/telemetry/object/type",
11
- "type": "string"
12
- },
13
- "ver": {
14
- "$id": "http://api.ekstep.org/telemetry/object/ver",
15
- "type": "string"
16
- },
17
- "rollup": {
18
- "$ref": "http://api.ekstep.org/telemetry/rollup"
19
- }
20
- }
21
- }
@@ -1,14 +0,0 @@
1
- {
2
- "$id": "http://api.ekstep.org/telemetry/parent",
3
- "type": "object",
4
- "properties": {
5
- "id": {
6
- "$id": "http://api.ekstep.org/telemetry/parent/id",
7
- "type": "string"
8
- },
9
- "type": {
10
- "$id": "http://api.ekstep.org/telemetry/parent/type",
11
- "type": "string"
12
- }
13
- }
14
- }
package/schema/pdata.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "$id": "http://api.ekstep.org/telemetry/pdata",
3
- "type": "object",
4
- "properties": {
5
- "id": {
6
- "$id": "http://api.ekstep.org/telemetry/pdata/id",
7
- "type": "string"
8
- },
9
- "pid": {
10
- "$id": "http://api.ekstep.org/telemetry/pdata/pid",
11
- "type": "string"
12
- },
13
- "ver": {
14
- "$id": "http://api.ekstep.org/telemetry/pdata/ver",
15
- "type": "string"
16
- }
17
- },
18
- "required": ["id"]
19
- }
@@ -1,23 +0,0 @@
1
- {
2
- "$id": "http://api.ekstep.org/telemetry/plugin",
3
- "type": "object",
4
- "additionalProperties": false,
5
- "required": [
6
- "id",
7
- "ver"
8
- ],
9
- "properties": {
10
- "id": {
11
- "$id": "http://api.ekstep.org/telemetry/plugin/id",
12
- "type": "string"
13
- },
14
- "ver": {
15
- "$id": "http://api.ekstep.org/telemetry/plugin/ver",
16
- "type": "string"
17
- },
18
- "category": {
19
- "$id": "http://api.ekstep.org/telemetry/plugin/category",
20
- "type": "string"
21
- }
22
- }
23
- }
@@ -1,55 +0,0 @@
1
- {
2
- "$id": "http://api.ekstep.org/telemetry/question",
3
- "type": "object",
4
- "additionalProperties": false,
5
- "required": [
6
- "id"
7
- ],
8
- "properties": {
9
- "id": {
10
- "$id": "http://api.ekstep.org/telemetry/question/id",
11
- "type": "string"
12
- },
13
- "maxscore": {
14
- "$id": "http://api.ekstep.org/telemetry/question/maxscore",
15
- "type": "number"
16
- },
17
- "exlength": {
18
- "$id": "http://api.ekstep.org/telemetry/question/exlength",
19
- "type": "number"
20
- },
21
- "params": {
22
- "$id": "http://api.ekstep.org/telemetry/question/params",
23
- "type": "array",
24
- "items": {
25
- "type": "object"
26
- }
27
- },
28
- "uri": {
29
- "$id": "http://api.ekstep.org/telemetry/question/uri",
30
- "type": "string"
31
- },
32
- "desc": {
33
- "$id": "http://api.ekstep.org/telemetry/question/desc",
34
- "type": "string"
35
- },
36
- "title": {
37
- "$id": "http://api.ekstep.org/telemetry/question/title",
38
- "type": "string"
39
- },
40
- "mmc": {
41
- "$id": "http://api.ekstep.org/telemetry/question/mmc",
42
- "type": "array",
43
- "items": {
44
- "type": "string"
45
- }
46
- },
47
- "mc": {
48
- "$id": "http://api.ekstep.org/telemetry/question/mc",
49
- "type": "array",
50
- "items": {
51
- "type": "string"
52
- }
53
- }
54
- }
55
- }
@@ -1,53 +0,0 @@
1
- {
2
- "$id": "http://api.ekstep.org/telemetry/response",
3
- "type": "object",
4
- "required": [
5
- "eid",
6
- "ets",
7
- "ver",
8
- "mid",
9
- "actor",
10
- "context",
11
- "edata"
12
- ],
13
- "allOf": [
14
- {
15
- "$ref": "http://api.ekstep.org/telemetry/common"
16
- },
17
- {
18
- "properties": {
19
- "eid": {
20
- "$id": "http://api.ekstep.org/telemetry/eid",
21
- "enum": [
22
- "RESPONSE"
23
- ]
24
- },
25
- "edata": {
26
- "$id": "http://api.ekstep.org/telemetry/edata",
27
- "type": "object",
28
- "additionalProperties": false,
29
- "required": [
30
- "target",
31
- "type",
32
- "values"
33
- ],
34
- "properties": {
35
- "type": {
36
- "$id": "http://api.ekstep.org/telemetry/type",
37
- "type": "string"
38
- },
39
- "target": {
40
- "$ref": "http://api.ekstep.org/telemetry/target"
41
- },
42
- "values": {
43
- "type": "array",
44
- "items": {
45
- "type": "object"
46
- }
47
- }
48
- }
49
- }
50
- }
51
- }
52
- ]
53
- }
@@ -1,22 +0,0 @@
1
- {
2
- "$id": "http://api.ekstep.org/telemetry/rollup",
3
- "type": "object",
4
- "properties": {
5
- "l1": {
6
- "$id": "http://api.ekstep.org/telemetry/context/rollup/l1",
7
- "type": "string"
8
- },
9
- "l2": {
10
- "$id": "http://api.ekstep.org/telemetry/context/rollup/l2",
11
- "type": "string"
12
- },
13
- "l3": {
14
- "$id": "http://api.ekstep.org/telemetry/context/rollup/l3",
15
- "type": "string"
16
- },
17
- "l4": {
18
- "$id": "http://api.ekstep.org/telemetry/context/rollup/l4",
19
- "type": "string"
20
- }
21
- }
22
- }
@@ -1,71 +0,0 @@
1
- {
2
- "$id": "http://api.ekstep.org/telemetry/search",
3
- "type": "object",
4
- "required": [
5
- "eid",
6
- "ets",
7
- "ver",
8
- "mid",
9
- "actor",
10
- "context",
11
- "edata"
12
- ],
13
- "allOf": [
14
- {
15
- "$ref": "http://api.ekstep.org/telemetry/common"
16
- },
17
- {
18
- "properties": {
19
- "eid": {
20
- "$id": "http://api.ekstep.org/telemetry/eid",
21
- "enum": [
22
- "SEARCH"
23
- ]
24
- },
25
- "edata": {
26
- "$id": "http://api.ekstep.org/telemetry/edata",
27
- "type": "object",
28
- "additionalProperties": false,
29
- "required": [
30
- "query",
31
- "size",
32
- "topn"
33
- ],
34
- "properties": {
35
- "type": {
36
- "$id": "http://api.ekstep.org/telemetry/edata/type",
37
- "type": "string"
38
- },
39
- "query": {
40
- "$id": "http://api.ekstep.org/telemetry/edata/query",
41
- "type": "string"
42
- },
43
- "filters": {
44
- "$id": "http://api.ekstep.org/telemetry/edata/filters",
45
- "type": "object"
46
- },
47
- "sort": {
48
- "$id": "http://api.ekstep.org/telemetry/edata/sort",
49
- "type": "object"
50
- },
51
- "correlationid": {
52
- "$id": "http://api.ekstep.org/telemetry/edata/correlationid",
53
- "type": "string"
54
- },
55
- "size": {
56
- "$id": "http://api.ekstep.org/telemetry/edata/size",
57
- "type": "number"
58
- },
59
- "topn": {
60
- "$id": "http://api.ekstep.org/telemetry/edata/topn",
61
- "type": "array",
62
- "items": {
63
- "type": "object"
64
- }
65
- }
66
- }
67
- }
68
- }
69
- }
70
- ]
71
- }