comprodls-sdk 2.69.1 → 2.70.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 +201 -186
- package/dist/comprodls-sdk.min.js +10 -10
- package/lib/services/product/index.js +12 -4
- package/lib/services/pub/index.js +12 -5
- package/package.json +1 -1
|
@@ -195,9 +195,10 @@ function getMicroEntitlementsForAUser(options) {
|
|
|
195
195
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
//
|
|
198
|
+
/* options= {
|
|
199
|
+
stage: "string", //optional, stage number or version
|
|
200
|
+
target_role: "string" // optional
|
|
201
|
+
} */
|
|
201
202
|
function getAllBundles(options) {
|
|
202
203
|
var self = this;
|
|
203
204
|
var dfd = q.defer();
|
|
@@ -208,7 +209,14 @@ function getAllBundles(options) {
|
|
|
208
209
|
url = helpers.api.constructAPIUrl(url, { accountId : self.accountId });
|
|
209
210
|
//Contruct parameters
|
|
210
211
|
var params = {};
|
|
211
|
-
if(options
|
|
212
|
+
if(options) {
|
|
213
|
+
if(options.stage){
|
|
214
|
+
params.stage = options.stage;
|
|
215
|
+
}
|
|
216
|
+
if(options.target_role){
|
|
217
|
+
params.target_role = options.target_role;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
212
220
|
|
|
213
221
|
//Setup request with URL and Post data
|
|
214
222
|
var requestAPI = request.get(url).query(params);
|
|
@@ -335,10 +335,10 @@ function updateBundle(options) {
|
|
|
335
335
|
return dfd.promise;
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
//
|
|
341
|
-
|
|
338
|
+
/* options= {
|
|
339
|
+
stage: "string", //optional, stage number or version
|
|
340
|
+
target_role: "string" // optional
|
|
341
|
+
} */
|
|
342
342
|
function getAllBundles(options) {
|
|
343
343
|
var self = this;
|
|
344
344
|
//Initializing promise
|
|
@@ -350,7 +350,14 @@ function getAllBundles(options) {
|
|
|
350
350
|
url = helpers.api.constructAPIUrl(url, { orgid: self.orgId, });
|
|
351
351
|
//Contruct parameters
|
|
352
352
|
var params = {};
|
|
353
|
-
if(options
|
|
353
|
+
if(options) {
|
|
354
|
+
if(options.stage){
|
|
355
|
+
params.stage = options.stage;
|
|
356
|
+
}
|
|
357
|
+
if(options.target_role){
|
|
358
|
+
params.target_role = options.target_role;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
354
361
|
|
|
355
362
|
//Setup request with URL and Post data
|
|
356
363
|
var requestAPI = request.get(url).query(params);
|