@topconsultnpm/sdk-ts 6.21.0-dev1.3 → 6.21.0-dev1.4

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.
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
7
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8
8
  });
9
9
  };
10
- import { AccessLevelsEx, DataColumnTypes, DataListDescriptor, DataListViewModes, DcmtTypeDescriptor, DossierDescriptor, LayoutDescriptor, MetadataDataDomains, MetadataDataTypes, MetadataDescriptor, ObjectClasses, RelationDescriptor, SavedQueryDescriptor, SignCertDescriptor, TSADescriptor, TreeContext, TreeDescriptor, UserDescriptor, UserLevels, WFDescriptor, WorkingGroupDescriptor } from "../openAPIs/TopMediaServiceClient";
10
+ import { AccessLevelsEx, DataColumnTypes, DataListDescriptor, DataListViewModes, DcmtTypeDescriptor, DossierDescriptor, LayoutDescriptor, MetadataDataDomains, MetadataDataTypes, MetadataDescriptor, ObjectClasses, RelationDescriptor, SavedQueryDescriptor, SignCertDescriptor, TSADescriptor, TreeContext, TreeDescriptor, UserDescriptor, WFDescriptor, WorkingGroupDescriptor } from "../openAPIs/TopMediaServiceClient";
11
11
  import { Mutex } from 'async-mutex';
12
12
  import { SDK_Globals } from "./SDK_Globals";
13
13
  export class DataListCacheService {
@@ -951,14 +951,14 @@ TSACacheService._cache = new Map();
951
951
  export class UserListCacheService {
952
952
  static GetAllAsync() {
953
953
  return __awaiter(this, arguments, void 0, function* (tmSession = undefined, deepCopy = false) {
954
- var _a, _b;
954
+ var _a;
955
955
  const release = yield this._mutex.acquire();
956
956
  try {
957
957
  let tms = tmSession !== null && tmSession !== void 0 ? tmSession : SDK_Globals.tmSession;
958
958
  let accessToken = (_a = tms === null || tms === void 0 ? void 0 : tms.SessionDescr) === null || _a === void 0 ? void 0 : _a.accessToken;
959
959
  let users = this._cache.get(accessToken);
960
960
  if (!users) {
961
- users = ((_b = tms === null || tms === void 0 ? void 0 : tms.SessionDescr) === null || _b === void 0 ? void 0 : _b.userLevel) == UserLevels.Member ? yield (tms === null || tms === void 0 ? void 0 : tms.NewUserEngine().RetrieveAllAsync()) : yield (tms === null || tms === void 0 ? void 0 : tms.NewUserEngine().RetrieveAllAdminAsync());
961
+ users = yield (tms === null || tms === void 0 ? void 0 : tms.NewUserEngine().RetrieveAllAsync());
962
962
  if (!users)
963
963
  users = [];
964
964
  this.RemoveAll(tmSession);