comprodls-sdk 2.26.0 → 2.27.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.
- package/dist/comprodls-sdk.js +376 -324
- package/dist/comprodls-sdk.min.js +18 -18
- package/lib/services/auth/index.js +37 -2
- package/package.json +1 -1
|
@@ -1752,6 +1752,39 @@ function updateClass(options) {
|
|
|
1752
1752
|
}
|
|
1753
1753
|
]
|
|
1754
1754
|
}
|
|
1755
|
+
],
|
|
1756
|
+
"clone_classes": [
|
|
1757
|
+
{
|
|
1758
|
+
"title": "string",
|
|
1759
|
+
"startdate": 0,
|
|
1760
|
+
"enddate": 0,
|
|
1761
|
+
"instructor": "string",
|
|
1762
|
+
"rowId": "string",
|
|
1763
|
+
"classid": "string",
|
|
1764
|
+
"clone_settings": {
|
|
1765
|
+
"students": true,
|
|
1766
|
+
"teachers": true,
|
|
1767
|
+
"products": true,
|
|
1768
|
+
"groups": true,
|
|
1769
|
+
"assigned_paths": true,
|
|
1770
|
+
"tags": true,
|
|
1771
|
+
"analyticsharingmodel": true,
|
|
1772
|
+
"ext_data": true,
|
|
1773
|
+
"advanced": {
|
|
1774
|
+
"students": [ { "ext_user_id": "string" } ],
|
|
1775
|
+
"teachers": [ { "ext_user_id": "string" } ],
|
|
1776
|
+
"groups": [ { "groupid": "string" } ],
|
|
1777
|
+
"assigned_paths": [
|
|
1778
|
+
{
|
|
1779
|
+
"assigned_path_id": "string",
|
|
1780
|
+
"startdate": 0,
|
|
1781
|
+
"duedate": 0
|
|
1782
|
+
}
|
|
1783
|
+
],
|
|
1784
|
+
"products": [ { "productcode": "string" } ]
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1755
1788
|
]
|
|
1756
1789
|
}
|
|
1757
1790
|
*/
|
|
@@ -1765,7 +1798,8 @@ function createMultipleClasses(options) {
|
|
|
1765
1798
|
var err = helpers.validations.isAuthenticated(self.orgId, self.token);
|
|
1766
1799
|
if (err) { dfd.reject(err); }
|
|
1767
1800
|
else {
|
|
1768
|
-
if (options.classes.length > 0)
|
|
1801
|
+
if ((options.classes && options.classes.length > 0) ||
|
|
1802
|
+
(options.clone_classes && options.clone_classes.length > 0)) {
|
|
1769
1803
|
|
|
1770
1804
|
//Passed all validations, Contruct API url
|
|
1771
1805
|
var url = self.config.DEFAULT_HOSTS.AUTH + self.config.AUTH_API_URLS.createMultipleClasses;
|
|
@@ -1790,7 +1824,8 @@ function createMultipleClasses(options) {
|
|
|
1790
1824
|
}
|
|
1791
1825
|
else {
|
|
1792
1826
|
err = {};
|
|
1793
|
-
err.message = err.description = 'Mandatory
|
|
1827
|
+
err.message = err.description = 'Mandatory parameters - [classes, clone_classes], ' +
|
|
1828
|
+
'not found in request options';
|
|
1794
1829
|
err = new DLSError(helpers.errors.ERROR_TYPES.SDK_ERROR, err);
|
|
1795
1830
|
dfd.reject(err);
|
|
1796
1831
|
}
|