@eo-sdk/client 8.10.0-rc.1 → 8.10.2

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.
@@ -1581,7 +1581,7 @@
1581
1581
  SystemService.prototype.fetchSystemDefinition = function (user) {
1582
1582
  var _this = this;
1583
1583
  var fetches = [
1584
- this.backend.getJson('/system/type/list?elements=true'),
1584
+ this.backend.getJson('/system/type/list?elements=true&basetypes=true'),
1585
1585
  this.backend.getJson('/system/cs/list?elements=true')
1586
1586
  ];
1587
1587
  return rxjs.forkJoin(fetches)
@@ -3216,9 +3216,9 @@
3216
3216
  * @param types List of dms object types to fetch executable processes for
3217
3217
  * @returns List of executable processes
3218
3218
  */
3219
- BpmService.prototype.getExecutableProcesses = function (types) {
3219
+ BpmService.prototype.getExecutableProcesses = function (types, useCached) {
3220
3220
  if (this.capabilities.hasCapability('bpm')) {
3221
- return this.fetchExecutableProcesses(types);
3221
+ return (!!this.executableProcesses && useCached) ? rxjs.of(this.executableProcesses) : this.fetchExecutableProcesses(types);
3222
3222
  }
3223
3223
  else {
3224
3224
  return rxjs.of([]);
@@ -3239,11 +3239,12 @@
3239
3239
  * @returns List of executable processes
3240
3240
  */
3241
3241
  BpmService.prototype.fetchExecutableProcesses = function (types) {
3242
+ var _this = this;
3242
3243
  var uri = '/bpm/process/executable?form=true&fields=true';
3243
3244
  if (types) {
3244
3245
  uri += "&type=" + types.join(',');
3245
3246
  }
3246
- return this.backend.get(uri).pipe(operators.map(function (res) { return res; }));
3247
+ return this.backend.get(uri).pipe(operators.map(function (res) { return res; }), operators.tap(function (res) { return _this.executableProcesses = res; }));
3247
3248
  };
3248
3249
  /**
3249
3250
  * Getter for a processes file. The file of a process contains