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.
@@ -195,9 +195,10 @@ function getMicroEntitlementsForAUser(options) {
195
195
 
196
196
  }
197
197
 
198
- // options= {
199
- // stage: "", //stage number or version
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 && options.stage) { params.stage = options.stage; }
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
- // options= {
339
- // stage: "", //stage number or version
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 && options.stage) { params.stage = options.stage; }
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);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "comprodls-sdk",
3
3
  "description": "comproDLS SDK for JavaScript",
4
- "version": "2.69.1",
4
+ "version": "2.70.0",
5
5
  "author": {
6
6
  "name": "Compro Technologies Private Limited",
7
7
  "url": "http://www.comprotechnologies.com/"