comprodls-sdk 2.89.0 → 2.90.0-qa
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/README.md +1 -137
- package/dist/comprodls-sdk.js +5937 -8432
- package/dist/comprodls-sdk.min.js +15 -1
- package/lib/comprodls.js +39 -57
- package/lib/config/index.js +171 -199
- package/lib/helpers/index.js +3 -2
- package/lib/helpers/lib/api/converter.js +1 -2
- package/lib/helpers/lib/api/index.js +19 -94
- package/lib/helpers/lib/errors.js +73 -80
- package/lib/helpers/lib/requestLayer.js +154 -0
- package/lib/helpers/lib/validator.js +65 -52
- package/lib/open_access/index.js +48 -53
- package/lib/services/analytics/index.js +286 -1014
- package/lib/services/attempts/index.js +38 -88
- package/lib/services/auth/index.js +238 -896
- package/lib/services/authextn/index.js +50 -150
- package/lib/services/datasyncmanager/index.js +10 -45
- package/lib/services/drive/index.js +20 -83
- package/lib/services/integrations/index.js +51 -126
- package/lib/services/invitations/index.js +20 -61
- package/lib/services/product/index.js +74 -85
- package/lib/services/pub/index.js +159 -234
- package/lib/services/pushX/index.js +29 -33
- package/lib/services/pushX/pubnubClientWrapper.js +398 -398
- package/lib/services/rules/index.js +14 -67
- package/lib/services/spaces/index.js +106 -294
- package/lib/services/spacesextn/index.js +4 -24
- package/lib/services/superuser/index.js +21 -36
- package/lib/services/taxonomy/index.js +27 -57
- package/lib/services/workflows/index.js +37 -98
- package/lib/services/xapi/index.js +6 -125
- package/lib/token/index.js +73 -67
- package/lib/token/validations.js +45 -48
- package/package.json +1 -2
- package/lib/helpers/lib/api/validations.js +0 -73
- package/lib/helpers/lib/utils.js +0 -24
- package/lib/services/activity/activity.js +0 -209
- package/lib/services/activity/attempt.js +0 -431
- package/lib/services/activity/index.js +0 -28
- package/lib/services/auth/classProduct.js +0 -37
- package/lib/services/collab/index.js +0 -468
|
@@ -30,9 +30,6 @@ var Agent = require('agentkeepalive');
|
|
|
30
30
|
|
|
31
31
|
var DLSError = helpers.errors.DLSError;
|
|
32
32
|
|
|
33
|
-
/*********************************
|
|
34
|
-
* Setting Up Module Entry Point
|
|
35
|
-
**********************************/
|
|
36
33
|
module.exports = rules;
|
|
37
34
|
|
|
38
35
|
var keepaliveAgent = new Agent({
|
|
@@ -58,11 +55,8 @@ function rules() {
|
|
|
58
55
|
**********************************/
|
|
59
56
|
|
|
60
57
|
/**
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* ruleType: '', // Mandatory
|
|
64
|
-
* cursor: '' // Optional
|
|
65
|
-
* }
|
|
58
|
+
* Wiki Link for SDK params
|
|
59
|
+
* https://github.com/comprodls/comprodls-sdk-js/wiki/26_RULES-Adaptor#getrulesparams
|
|
66
60
|
*/
|
|
67
61
|
function getRules(options) {
|
|
68
62
|
var self = this;
|
|
@@ -118,11 +112,8 @@ function getRules(options) {
|
|
|
118
112
|
}
|
|
119
113
|
|
|
120
114
|
/**
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* ruleType: '', // Mandatory
|
|
124
|
-
* ruleId: '' // Mandatory
|
|
125
|
-
* }
|
|
115
|
+
* Wiki Link for SDK params
|
|
116
|
+
* https://github.com/comprodls/comprodls-sdk-js/wiki/26_RULES-Adaptor#getparticularruleparams
|
|
126
117
|
*/
|
|
127
118
|
function getParticularRule(options) {
|
|
128
119
|
var self = this;
|
|
@@ -175,12 +166,8 @@ function getParticularRule(options) {
|
|
|
175
166
|
}
|
|
176
167
|
|
|
177
168
|
/**
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
* context: '', // Mandatory
|
|
181
|
-
* ruleType: '', // Mandatory
|
|
182
|
-
* userId: '', // Mandatory
|
|
183
|
-
* }
|
|
169
|
+
* Wiki Link for SDK params
|
|
170
|
+
* https://github.com/comprodls/comprodls-sdk-js/wiki/26_RULES-Adaptor#getuserruleparams
|
|
184
171
|
*/
|
|
185
172
|
function getUserRule(options) {
|
|
186
173
|
var self = this;
|
|
@@ -231,14 +218,8 @@ function getUserRule(options) {
|
|
|
231
218
|
}
|
|
232
219
|
|
|
233
220
|
/**
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
* ruleType: '', // Mandatory
|
|
237
|
-
* ruleId: '', // Mandatory
|
|
238
|
-
* body: {
|
|
239
|
-
* rule_display: '' // Mandatory
|
|
240
|
-
* }
|
|
241
|
-
* }
|
|
221
|
+
* Wiki Link for SDK params
|
|
222
|
+
* https://github.com/comprodls/comprodls-sdk-js/wiki/26_RULES-Adaptor#updateruledisplayparams
|
|
242
223
|
*/
|
|
243
224
|
function updateRuleDisplay(options) {
|
|
244
225
|
var self = this;
|
|
@@ -287,24 +268,8 @@ function updateRuleDisplay(options) {
|
|
|
287
268
|
}
|
|
288
269
|
|
|
289
270
|
/**
|
|
290
|
-
*
|
|
291
|
-
*
|
|
292
|
-
* ruleType: '', // Mandatory
|
|
293
|
-
* body: {
|
|
294
|
-
* ruleid: '', // Mandatory
|
|
295
|
-
* scope: '', // Mandatory
|
|
296
|
-
* entities: [ // Min. length 1
|
|
297
|
-
* {
|
|
298
|
-
* id:'', // eg. item code
|
|
299
|
-
* type:'' // eg. item/folder/product
|
|
300
|
-
* },
|
|
301
|
-
* ...],
|
|
302
|
-
* user: ['extuserid1','extuserid2', ...],
|
|
303
|
-
* rule_data_individual: {},
|
|
304
|
-
* rule_data_common: {},
|
|
305
|
-
* rule_display: {}
|
|
306
|
-
* }
|
|
307
|
-
* }
|
|
271
|
+
* Wiki Link for SDK params
|
|
272
|
+
* https://github.com/comprodls/comprodls-sdk-js/wiki/26_RULES-Adaptor#createruleparams
|
|
308
273
|
*/
|
|
309
274
|
function createRule(options) {
|
|
310
275
|
var self = this;
|
|
@@ -351,23 +316,8 @@ function createRule(options) {
|
|
|
351
316
|
}
|
|
352
317
|
|
|
353
318
|
/**
|
|
354
|
-
*
|
|
355
|
-
*
|
|
356
|
-
* ruleType: '', // Mandatory
|
|
357
|
-
* ruleId: '', // Mandatory
|
|
358
|
-
* body: {
|
|
359
|
-
* scope: '', // Mandatory
|
|
360
|
-
* entities: [ // Min. length 1
|
|
361
|
-
* {
|
|
362
|
-
* id:'', // eg. item code
|
|
363
|
-
* type:'' // eg. item/folder/product
|
|
364
|
-
* },
|
|
365
|
-
* ...],
|
|
366
|
-
* user: ['extuserid1','extuserid2', ...],
|
|
367
|
-
* rule_data_individual: {}, // Optional
|
|
368
|
-
* rule_data_common: {} // Optional
|
|
369
|
-
* }
|
|
370
|
-
* }
|
|
319
|
+
* Wiki Link for SDK params
|
|
320
|
+
* https://github.com/comprodls/comprodls-sdk-js/wiki/26_RULES-Adaptor#updateruleparams
|
|
371
321
|
*/
|
|
372
322
|
function updateRule(options) {
|
|
373
323
|
var self = this;
|
|
@@ -415,11 +365,8 @@ function updateRule(options) {
|
|
|
415
365
|
}
|
|
416
366
|
|
|
417
367
|
/**
|
|
418
|
-
*
|
|
419
|
-
*
|
|
420
|
-
* ruleType: '', // Mandatory
|
|
421
|
-
* ruleId: '' // Mandatory
|
|
422
|
-
* }
|
|
368
|
+
* Wiki Link for SDK params
|
|
369
|
+
* https://github.com/comprodls/comprodls-sdk-js/wiki/26_RULES-Adaptor#deleteruleparams
|
|
423
370
|
*/
|
|
424
371
|
function deleteRule(options) {
|
|
425
372
|
var self = this;
|