comprodls-sdk 2.12.0 → 2.12.1
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.
- package/.eslintrc +28 -28
- package/.npmignore +5 -0
- package/README.md +371 -371
- package/dist/comprodls-sdk.js +11493 -11471
- package/dist/comprodls-sdk.min.js +14 -14
- package/grunt/publish.js +148 -148
- package/lib/comprodls.js +146 -146
- package/lib/config/index.js +337 -337
- package/lib/helpers/index.js +29 -29
- package/lib/helpers/lib/api/converter.js +119 -119
- package/lib/helpers/lib/api/index.js +120 -120
- package/lib/helpers/lib/api/validations.js +72 -72
- package/lib/helpers/lib/errors.js +129 -129
- package/lib/helpers/lib/utils.js +23 -23
- package/lib/helpers/lib/validator.js +100 -100
- package/lib/open_access/index.js +121 -121
- package/lib/services/activity/activity.js +209 -209
- package/lib/services/activity/attempt.js +431 -431
- package/lib/services/activity/index.js +28 -28
- package/lib/services/analytics/index.js +1555 -1555
- package/lib/services/attempts/index.js +342 -342
- package/lib/services/auth/classProduct.js +37 -37
- package/lib/services/auth/index.js +2541 -2541
- package/lib/services/collab/index.js +468 -468
- package/lib/services/drive/index.js +144 -144
- package/lib/services/integrations/index.js +279 -279
- package/lib/services/invitations/index.js +313 -313
- package/lib/services/lrs/index.js +459 -459
- package/lib/services/product/index.js +267 -267
- package/lib/services/pub/index.js +407 -407
- package/lib/services/push/index.js +187 -187
- package/lib/services/push/pubnubClientWrapper.js +557 -557
- package/lib/services/push/sessionStorage.js +64 -64
- package/lib/services/pushX/index.js +190 -190
- package/lib/services/pushX/pubnubClientWrapper.js +211 -211
- package/lib/services/sisevents/index.js +113 -113
- package/lib/services/spaces/index.js +976 -929
- package/lib/services/superuser/index.js +175 -175
- package/lib/services/workflows/index.js +464 -464
- package/lib/services/xapi/index.js +232 -232
- package/lib/token/index.js +114 -114
- package/lib/token/validations.js +88 -88
- package/package-lock.json +5095 -0
- package/package.json +1 -1
- package/test.js +50 -50
- package/.vscode/launch.json +0 -23
- package/npm-debug.log.189866131 +0 -0
- package/npm-debug.log.712840116 +0 -26
package/package.json
CHANGED
package/test.js
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
/* eslint-disable no-trailing-spaces */
|
|
2
|
-
var options = {
|
|
3
|
-
orgid:'dev1'
|
|
4
|
-
};
|
|
5
|
-
var comproDLS = require('../comprodls-sdk-js/lib/comprodls.js').init('thor', 'asgard', options);
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var orgId = 'dev1';
|
|
11
|
-
var tokenObj = {
|
|
12
|
-
"access_token": "YWMtetFDOnwOEeu7trsxN_NOTwAAAXgbw8tFN8LiPDeYTbMqv35dhXSwE9bpOe0~~21ea81dd-136a-11eb-8539-0e34ffe5d91e",
|
|
13
|
-
"expires_in": 604800,
|
|
14
|
-
"refresh_token": "ec27ef472d2c6bc2325bd3a02b2f20d8a8c3307a10a6c0f574235a16640b7fcc6bdfc11ad476dc42d8962688600dbb73bb2df26317982c26d68e9f8258da1adb72a8b1d9041affa888e39153a465dda1ebd394ee163b91b3abe5d88418f8a9edc0020e069ebbbfb5f0bbd23a62bc558bcf93c17c8f561b"
|
|
15
|
-
};
|
|
16
|
-
comproDLS.authWithToken(orgId, tokenObj, {})
|
|
17
|
-
.then(function () {
|
|
18
|
-
var auth = comproDLS.Auth();
|
|
19
|
-
|
|
20
|
-
return auth.deleteUserProfile({ userid: '506307de-7a7d-11eb-a982-0e34ffe5d91e'});
|
|
21
|
-
})
|
|
22
|
-
.then(function (res) {
|
|
23
|
-
console.log('********', JSON.stringify(res, null, 4));
|
|
24
|
-
})
|
|
25
|
-
.catch(function (err) {
|
|
26
|
-
console.log(err);
|
|
27
|
-
})
|
|
28
|
-
.done();
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
// var Drive = comproDLS.Drive();
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
// var reqOptions = {
|
|
36
|
-
// accountid : 'compro',
|
|
37
|
-
// extuserid : 'abcd',
|
|
38
|
-
// folderid : 'folder1.folder2',
|
|
39
|
-
// classid : '1',
|
|
40
|
-
// productcode: 'a',
|
|
41
|
-
// assignmentid : 'b',
|
|
42
|
-
|
|
43
|
-
// };
|
|
44
|
-
|
|
45
|
-
// Drive.getAllDocumentsInAFolder(reqOptions)
|
|
46
|
-
// .then(function (response) {
|
|
47
|
-
// console.log(JSON.stringify(response, null, 4));
|
|
48
|
-
// })
|
|
49
|
-
// .catch(function (error) {
|
|
50
|
-
// console.error(error);
|
|
1
|
+
/* eslint-disable no-trailing-spaces */
|
|
2
|
+
var options = {
|
|
3
|
+
orgid:'dev1'
|
|
4
|
+
};
|
|
5
|
+
var comproDLS = require('../comprodls-sdk-js/lib/comprodls.js').init('thor', 'asgard', options);
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var orgId = 'dev1';
|
|
11
|
+
var tokenObj = {
|
|
12
|
+
"access_token": "YWMtetFDOnwOEeu7trsxN_NOTwAAAXgbw8tFN8LiPDeYTbMqv35dhXSwE9bpOe0~~21ea81dd-136a-11eb-8539-0e34ffe5d91e",
|
|
13
|
+
"expires_in": 604800,
|
|
14
|
+
"refresh_token": "ec27ef472d2c6bc2325bd3a02b2f20d8a8c3307a10a6c0f574235a16640b7fcc6bdfc11ad476dc42d8962688600dbb73bb2df26317982c26d68e9f8258da1adb72a8b1d9041affa888e39153a465dda1ebd394ee163b91b3abe5d88418f8a9edc0020e069ebbbfb5f0bbd23a62bc558bcf93c17c8f561b"
|
|
15
|
+
};
|
|
16
|
+
comproDLS.authWithToken(orgId, tokenObj, {})
|
|
17
|
+
.then(function () {
|
|
18
|
+
var auth = comproDLS.Auth();
|
|
19
|
+
|
|
20
|
+
return auth.deleteUserProfile({ userid: '506307de-7a7d-11eb-a982-0e34ffe5d91e'});
|
|
21
|
+
})
|
|
22
|
+
.then(function (res) {
|
|
23
|
+
console.log('********', JSON.stringify(res, null, 4));
|
|
24
|
+
})
|
|
25
|
+
.catch(function (err) {
|
|
26
|
+
console.log(err);
|
|
27
|
+
})
|
|
28
|
+
.done();
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
// var Drive = comproDLS.Drive();
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
// var reqOptions = {
|
|
36
|
+
// accountid : 'compro',
|
|
37
|
+
// extuserid : 'abcd',
|
|
38
|
+
// folderid : 'folder1.folder2',
|
|
39
|
+
// classid : '1',
|
|
40
|
+
// productcode: 'a',
|
|
41
|
+
// assignmentid : 'b',
|
|
42
|
+
|
|
43
|
+
// };
|
|
44
|
+
|
|
45
|
+
// Drive.getAllDocumentsInAFolder(reqOptions)
|
|
46
|
+
// .then(function (response) {
|
|
47
|
+
// console.log(JSON.stringify(response, null, 4));
|
|
48
|
+
// })
|
|
49
|
+
// .catch(function (error) {
|
|
50
|
+
// console.error(error);
|
|
51
51
|
// });
|
package/.vscode/launch.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Use IntelliSense to learn about possible attributes.
|
|
3
|
-
// Hover to view descriptions of existing attributes.
|
|
4
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
-
"version": "0.2.0",
|
|
6
|
-
"configurations": [
|
|
7
|
-
{
|
|
8
|
-
"type": "node",
|
|
9
|
-
"request": "launch",
|
|
10
|
-
"name": "Launch Program",
|
|
11
|
-
"outputCapture": "std",
|
|
12
|
-
"program": "${file}",
|
|
13
|
-
"env": {
|
|
14
|
-
|
|
15
|
-
"REALM": "global",
|
|
16
|
-
"ENVIRONMENT": "development",
|
|
17
|
-
"ACCOUNT": "compro",
|
|
18
|
-
"REALM_DYNAMODB_DATA_ACCESS_KEY_ID": "AKIAIMB4XR5E3B6PKAWA",
|
|
19
|
-
"REALM_DYNAMODB_DATA_SECRET_ACCESS_KEY": "XTl36rULwNVIt9eWUtlOi3fPG0anWENmOFWPcgDA"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
}
|
package/npm-debug.log.189866131
DELETED
|
File without changes
|
package/npm-debug.log.712840116
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
0 info it worked if it ends with ok
|
|
2
|
-
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
|
|
3
|
-
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
|
|
4
|
-
1 verbose cli 'login' ]
|
|
5
|
-
2 info using npm@3.10.10
|
|
6
|
-
3 info using node@v6.17.1
|
|
7
|
-
4 verbose stack Error: canceled
|
|
8
|
-
4 verbose stack at Interface.<anonymous> (C:\Users\cmp_33.COMPRO\AppData\Roaming\nvm\v6.17.1\node_modules\npm\node_modules\read\lib\read.js:66:13)
|
|
9
|
-
4 verbose stack at emitNone (events.js:86:13)
|
|
10
|
-
4 verbose stack at Interface.emit (events.js:185:7)
|
|
11
|
-
4 verbose stack at Interface._ttyWrite (readline.js:725:16)
|
|
12
|
-
4 verbose stack at ReadStream.onkeypress (readline.js:119:10)
|
|
13
|
-
4 verbose stack at emitTwo (events.js:106:13)
|
|
14
|
-
4 verbose stack at ReadStream.emit (events.js:191:7)
|
|
15
|
-
4 verbose stack at emitKeys (internal/readline.js:389:14)
|
|
16
|
-
4 verbose stack at next (native)
|
|
17
|
-
4 verbose stack at ReadStream.onData (readline.js:971:36)
|
|
18
|
-
5 verbose cwd D:\Nitish Dev\ComproDLS\comprodls-sdk-js
|
|
19
|
-
6 error Windows_NT 10.0.16299
|
|
20
|
-
7 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "login"
|
|
21
|
-
8 error node v6.17.1
|
|
22
|
-
9 error npm v3.10.10
|
|
23
|
-
10 error canceled
|
|
24
|
-
11 error If you need help, you may report this error at:
|
|
25
|
-
11 error <https://github.com/npm/npm/issues>
|
|
26
|
-
12 verbose exit [ 1, true ]
|