comprodls-sdk 2.49.0 → 2.51.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 +653 -617
- package/dist/comprodls-sdk.min.js +20 -17
- package/lib/services/auth/index.js +10 -2
- package/package.json +1 -1
|
@@ -697,6 +697,10 @@ function getUserClasses(options) {
|
|
|
697
697
|
* @param {
|
|
698
698
|
* userid: 'uuid or username', // Mandatory
|
|
699
699
|
* shadow: true/false, // Optional, filter shadow enrollments
|
|
700
|
+
* hidden: true/false, // Optional, filter hidden enrollments
|
|
701
|
+
* status_active: true/false, // Optional, filter for status_active enrollments
|
|
702
|
+
* status_ended: true/false, // Optional, filter for status_ended enrollments
|
|
703
|
+
* status_expired: true/false, // Optional, filter for status_expired enrollments
|
|
700
704
|
* details: true/false, // Optional, includes products & meta information of classes
|
|
701
705
|
* bundleDetails: true/false // Optional, includes products, bundles & meta information of classes
|
|
702
706
|
* limit: integer, // Optional, Number of entities to be fetched
|
|
@@ -721,10 +725,14 @@ function getUserClassesV2(options) {
|
|
|
721
725
|
var url = self.config.DEFAULT_HOSTS.AUTH + self.config.AUTH_API_URLS.getUserClassesV2API;
|
|
722
726
|
url = helpers.api.constructAPIUrl(url, { orgid: orgId, userid: userId });
|
|
723
727
|
|
|
724
|
-
// Contruct parameters
|
|
728
|
+
// Contruct query parameters
|
|
725
729
|
var params = {};
|
|
726
730
|
if (options) {
|
|
727
|
-
if (options.shadow ) { params.shadow = options.shadow
|
|
731
|
+
if (options.shadow !== undefined) { params.shadow = options.shadow; }
|
|
732
|
+
if (options.hidden !== undefined) { params.hidden = options.hidden; }
|
|
733
|
+
if (options.status_active) { params.status_active = options.status_active; }
|
|
734
|
+
if (options.status_ended) { params.status_ended = options.status_ended; }
|
|
735
|
+
if (options.status_expired) { params.status_expired = options.status_expired; }
|
|
728
736
|
if (options.details) { params.details = options.details; }
|
|
729
737
|
if (options.bundleDetails) { params.bundleDetails = options.bundleDetails; }
|
|
730
738
|
if (options.limit) { params.limit = options.limit; }
|