@topconsultnpm/sdk-ts 6.21.0-dev1.6 → 6.21.0-dev2.10

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.
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { ProgressCallbackData } from "./TopMediaServiceClientEx";
11
11
  import { SDK_Globals } from "./helper";
12
12
  import { StandardHelper } from "./helper/StandardHelper";
13
- import { ArchiveModes, AreaDescriptor, AreaParams, BarcodeArchiverJobDescriptor, BarcodeDetectionDescriptor, Barcode_Colors, Barcode_Orientations, DcmtInputTypes, BasketTypeDescriptor, BatchUpdaterJobDescriptor, COSCheckerJobDescriptor, CassettoDoganaleJobDescriptor, CheckSequenceJobDescriptor, CultureIDs, DateTimeFormats, DcmtConverterJobDescriptor, DcmtDeleterJobDescriptor, DcmtDeleter_Actions, DcmtNoteJobDescriptor, DcmtPrinterJobDescriptor, DcmtTypeDescriptor, DiskDescriptor, FEAttacherJobDescriptor, FECreatorTxtJobDescriptor, FEDetacherJobDescriptor, FESenderWsJobDescriptor, FESplitterJobDescriptor, FEValidatorJobDescriptor, FileArchiverJobDescriptor, FileArchiver_ArchiveDescriptor, FileArchiver_ArchiveItemDescriptor, FileArchiver_InputTypes, FileCheckerJobDescriptor, FileDescriptor, FileExecJobDescriptor, FileExec_CheckFileModes, FileExportJobDescriptor, FileFormats, FileMoverJobDescriptor, FileTransferModes, FromItem, InputOrders, InvoiceRetrieveFormats, JobTypes, LexJobDescriptor, LinkerJobDescriptor, MailArchiverJobDescriptor, MailQueryJobDescriptor, MailSenderJobDescriptor, MigrationJobDescriptor, NSOCreatorTxtJobDescriptor, NSODetacherJobDescriptor, NSOSenderWsJobDescriptor, NSOValidatorJobDescriptor, OrderRetrieveFormats, OutputTypes, PDFArchiverJobDescriptor, PdDCreatorJobDescriptor, PdDTypes, PdVArchiverJobDescriptor, PdVQueryJobDescriptor, PdVSenderJobDescriptor, PeppolQueryJobDescriptor, PeppolSenderJobDescriptor, QueryDescriptor, ReplicatorJobDescriptor, SAPAlignerJobDescriptor, SAPBarcodeJobDescriptor, SAPDataReaderJobDescriptor, SAPDataWriterJobDescriptor, SignerJobDescriptor, Updater_UpdateDescriptor, SourceNotExistActions, SpoolArchiverJobDescriptor, UpdateModes, UpdaterJobDescriptor, Updater_MetadataMappingDescriptor, Updater_UpdateItemDescriptor, FileInputTypes, BarcodeArchiver_SplittingDescriptor, BarcodeArchiver_Splitting_Modes, BooleanExpressionDescriptor, BarcodeArchiver_ArchiveDescriptor, FileMover_Operations, SourceFilesFilters, FileRenameOptions, DestFileAlreadyExistActions, SplittingDescriptor, PDFArchiver_ArchiveDescriptor, HttpAddressDescriptor, Replicator_ArchiveDescriptor, BasketDescriptor, CommandSetDescriptor, PDFCommandSetDescriptor, ProcessDescriptor, ScheduleDescriptor, UserDescriptor, UserLevels, MetadataDataTypes, PreProc_Strategies, DataListDescriptor, ProcessRunAsModes, HistLogPurgeModes, ScheduleTypes, ScheduleOneTime, SignCertDescriptor, ScheduleDailyFrequency, ScheduleDailyOccursModes, ScheduleTimeUnits, ScheduleDuration, ScheduleRecurringMonthly, ScheduleRecurringWeekly, ScheduleRecurringDescriptor, ScheduleRecurringTypes, ProcessNotificationDescriptor, UpsertDescriptor, UpsertActions, UpsertSearchCriterias, BarcodeArchiver_ArchiveItemDescriptor, BarcodeArchiver_ArchiveMappingDescriptor, BarcodeArchiver_MetadataMappingDescriptor, MappingModes, MetadataMappingDescriptor, FileArchiver_ArchiveMappingDescriptor, CommandBaseDescriptor, CommandTypes, PadCommandDescriptor, ConcatCommandDescriptor, FormatCommandDescriptor, LeftSubstringCommandDescriptor, ReplaceCommandDescriptor, RightSubstringCommandDescriptor, SplitCommandDescriptor, TrimCommandDescriptor, SubstringCommandDescriptor, PDFCommandBaseDescriptor, PDFCommandTypes, PDFAddTextCommandDescriptor, PDFAddImageCommandDescriptor, PDFRemovePagesCommandDescriptor, PDFRemovePagesModes, COSDocTypes, ExpModes, AgentRoles, GroupingDescriptor, GroupingModes, SecureOperDescriptor, SignOperExDescriptor, SignFormats, TimeStampOperExDescriptor, PDFArchiver_ArchiveItemDescriptor, PDFArchiver_ArchiveMappingDescriptor, QueryFunctions, SelectItemVisibilities, QueryOperators, PdVCheckDescriptor, PDFTextItemDescriptor, PDFTextItemScopes, XYModes, SavedQueryDescriptor, Replicator_ArchiveItemDescriptor, Replicator_ArchiveMappingDescriptor, DossierDescriptor, WFDescriptor, TaskDescriptor, Updater_InputTypes, RemoveInputStrategies, SharingModes, RelationDescriptor, RelationTypes, NoDataActions, PrinterDescriptor, PagesRange, PrintOrientations, RetrieveFileOptions, DcmtOpers, MetadataValueDescriptor, MailBoxDescriptor, ReadingMailProtocols, IMAPDescriptor, SendingMailProtocols, MailAuthTypes, SMTPDescriptor, GraphAPIDescriptor, ProcessedItemActions, MailArchiver_FolderDescriptor, ArchiveDcmtDescriptor, MailSender_MailFormatDescriptor, MailArchiver_WholeMailCfgDescriptor, MailSender_TracingDescriptor, MailSender_GroupingDescriptor, MailSender_MailPropertyMappingDescriptor, MailSender_AttachmentCfgDescriptor, MailSender_AttachCompressModes, MailArchiver_WholeMailArchiveModes, MailArchiver_ArchiveMappingDescriptor, MailSender_GroupingModes, MailArchiver_AttachmentCfgDescriptor, Linker_OperTypes, MailArchiver_AttachmentCfgItemDescriptor, MailArchiver_MetadataMappingDescriptor, MailArchiver_ParametricValueTypes, MailMessageProperties, PeppolTracingDescriptor, PeppolDescriptor, CassettoDoganalePlusJobDescriptor, GroupDescriptor, FEDistillerJobDescriptor, MailQuery_ArchiveItemDescriptor, MetadataDescriptor, IndexDescriptor, ArchiveConstraints, EncryptionModes, MembershipConstraints, UserTypes, CassettoFiscaleSenderJobDescriptor, CassettoFiscaleQueryJobDescriptor, MetadataDataDomains, DataListViewModes, SAPLoginDescriptor, SAPLoginModes, PdGs, Task_States, Priorities, AlreadySharedActions, DossierTypeDescriptor, WFTypes, WFPartRoles, WFSources, WFEvents, DossierDetail, Ds_ClassIDs, LayoutCustomButtonModes, CDPSearchModes, CassettoDoganaleDistillerJobDescriptor, CDFileTypes, DcmtCreatorJobDescriptor, OcrSixJobDescriptor, OutputActions } from "./openAPIs/TopMediaServiceClient";
13
+ import { ArchiveModes, AreaDescriptor, AreaParams, BarcodeArchiverJobDescriptor, BarcodeDetectionDescriptor, Barcode_Colors, Barcode_Orientations, DcmtInputTypes, BasketTypeDescriptor, BatchUpdaterJobDescriptor, COSCheckerJobDescriptor, CassettoDoganaleJobDescriptor, CheckSequenceJobDescriptor, CultureIDs, DateTimeFormats, DcmtConverterJobDescriptor, DcmtDeleterJobDescriptor, DcmtDeleter_Actions, DcmtNoteJobDescriptor, DcmtPrinterJobDescriptor, DcmtTypeDescriptor, DiskDescriptor, FEAttacherJobDescriptor, FECreatorTxtJobDescriptor, FEDetacherJobDescriptor, FESenderWsJobDescriptor, FESplitterJobDescriptor, FEValidatorJobDescriptor, FileArchiverJobDescriptor, FileArchiver_ArchiveDescriptor, FileArchiver_ArchiveItemDescriptor, FileArchiver_InputTypes, FileCheckerJobDescriptor, FileDescriptor, FileExecJobDescriptor, FileExec_CheckFileModes, FileExportJobDescriptor, FileFormats, FileMoverJobDescriptor, FileTransferModes, FromItem, InputOrders, InvoiceRetrieveFormats, JobTypes, LexJobDescriptor, LinkerJobDescriptor, MailArchiverJobDescriptor, MailQueryJobDescriptor, MailSenderJobDescriptor, MigrationJobDescriptor, NSOCreatorTxtJobDescriptor, NSODetacherJobDescriptor, NSOSenderWsJobDescriptor, NSOValidatorJobDescriptor, OrderRetrieveFormats, OutputTypes, PDFArchiverJobDescriptor, PdDCreatorJobDescriptor, PdDTypes, PdVArchiverJobDescriptor, PdVQueryJobDescriptor, PdVSenderJobDescriptor, PeppolQueryJobDescriptor, PeppolSenderJobDescriptor, QueryDescriptor, ReplicatorJobDescriptor, SAPAlignerJobDescriptor, SAPBarcodeJobDescriptor, SAPDataReaderJobDescriptor, SAPDataWriterJobDescriptor, SignerJobDescriptor, Updater_UpdateDescriptor, SourceNotExistActions, SpoolArchiverJobDescriptor, UpdateModes, UpdaterJobDescriptor, Updater_MetadataMappingDescriptor, Updater_UpdateItemDescriptor, FileInputTypes, BarcodeArchiver_SplittingDescriptor, BarcodeArchiver_Splitting_Modes, BooleanExpressionDescriptor, BarcodeArchiver_ArchiveDescriptor, FileMover_Operations, SourceFilesFilters, FileRenameOptions, DestFileAlreadyExistActions, SplittingDescriptor, PDFArchiver_ArchiveDescriptor, HttpAddressDescriptor, Replicator_ArchiveDescriptor, BasketDescriptor, CommandSetDescriptor, PDFCommandSetDescriptor, ProcessDescriptor, ScheduleDescriptor, UserDescriptor, UserLevels, MetadataDataTypes, PreProc_Strategies, DataListDescriptor, ProcessRunAsModes, HistLogPurgeModes, ScheduleTypes, ScheduleOneTime, SignCertDescriptor, ScheduleDailyFrequency, ScheduleDailyOccursModes, ScheduleTimeUnits, ScheduleDuration, ScheduleRecurringMonthly, ScheduleRecurringWeekly, ScheduleRecurringDescriptor, ScheduleRecurringTypes, ProcessNotificationDescriptor, UpsertDescriptor, UpsertActions, UpsertSearchCriterias, BarcodeArchiver_ArchiveItemDescriptor, BarcodeArchiver_ArchiveMappingDescriptor, BarcodeArchiver_MetadataMappingDescriptor, MappingModes, MetadataMappingDescriptor, FileArchiver_ArchiveMappingDescriptor, CommandBaseDescriptor, CommandTypes, PadCommandDescriptor, ConcatCommandDescriptor, FormatCommandDescriptor, LeftSubstringCommandDescriptor, ReplaceCommandDescriptor, RightSubstringCommandDescriptor, SplitCommandDescriptor, TrimCommandDescriptor, SubstringCommandDescriptor, PDFCommandBaseDescriptor, PDFCommandTypes, PDFAddTextCommandDescriptor, PDFAddImageCommandDescriptor, PDFRemovePagesCommandDescriptor, PDFRemovePagesModes, COSDocTypes, ExpModes, AgentRoles, GroupingDescriptor, GroupingModes, SecureOperDescriptor, SignOperExDescriptor, SignFormats, TimeStampOperExDescriptor, PDFArchiver_ArchiveItemDescriptor, PDFArchiver_ArchiveMappingDescriptor, QueryFunctions, SelectItemVisibilities, QueryOperators, PdVCheckDescriptor, PDFTextItemDescriptor, PDFTextItemScopes, XYModes, SavedQueryDescriptor, Replicator_ArchiveItemDescriptor, Replicator_ArchiveMappingDescriptor, DossierDescriptor, WFDescriptor, TaskDescriptor, Updater_InputTypes, RemoveInputStrategies, SharingModes, RelationDescriptor, RelationTypes, NoDataActions, PrinterDescriptor, PagesRange, PrintOrientations, RetrieveFileOptions, DcmtOpers, MetadataValueDescriptor, MailBoxDescriptor, ReadingMailProtocols, IMAPDescriptor, SendingMailProtocols, MailAuthTypes, SMTPDescriptor, GraphAPIDescriptor, ProcessedItemActions, MailArchiver_FolderDescriptor, ArchiveDcmtDescriptor, MailSender_MailFormatDescriptor, MailArchiver_WholeMailCfgDescriptor, MailSender_TracingDescriptor, MailSender_GroupingDescriptor, MailSender_MailPropertyMappingDescriptor, MailSender_AttachmentCfgDescriptor, MailSender_AttachCompressModes, MailArchiver_WholeMailArchiveModes, MailArchiver_ArchiveMappingDescriptor, MailSender_GroupingModes, MailArchiver_AttachmentCfgDescriptor, Linker_OperTypes, MailArchiver_AttachmentCfgItemDescriptor, MailArchiver_MetadataMappingDescriptor, MailArchiver_ParametricValueTypes, MailMessageProperties, PeppolTracingDescriptor, PeppolDescriptor, CassettoDoganalePlusJobDescriptor, NumeratorDescriptor, GroupDescriptor, FEDistillerJobDescriptor, MailQuery_ArchiveItemDescriptor, MetadataDescriptor, IndexDescriptor, ArchiveConstraints, EncryptionModes, MembershipConstraints, UserTypes, CassettoFiscaleSenderJobDescriptor, CassettoFiscaleQueryJobDescriptor, MetadataDataDomains, DataListViewModes, SAPLoginDescriptor, SAPLoginModes, PdGs, Task_States, Priorities, AlreadySharedActions, DossierTypeDescriptor, WFTypes, WFPartRoles, WFSources, WFEvents, DossierDetail, Ds_ClassIDs, LayoutCustomButtonModes, CDPSearchModes, CassettoDoganaleDistillerJobDescriptor, CDFileTypes, DcmtCreatorJobDescriptor, OcrSixJobDescriptor, OcrColumnsInfo, OcrColumnCommand, OcrCommandTypes, OutputActions, CDPBrowsers, JobFailureActions, CaseFlowTemplateDescriptor, CF_FlowModes } from "./openAPIs/TopMediaServiceClient";
14
14
  class BaseEngine {
15
15
  constructor(tms) {
16
16
  this.TopMediaSession = tms;
@@ -402,6 +402,43 @@ export class BasketTypeEngine extends BaseEngine {
402
402
  return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketTypeDelete(id)); });
403
403
  }
404
404
  }
405
+ export class CaseFlowTemplateEngine extends BaseEngine {
406
+ static NewCaseFlowTemplateDescriptor() { return this.Normalize(new CaseFlowTemplateDescriptor(), true); }
407
+ static Normalize(d, isNew) {
408
+ if (!d)
409
+ return;
410
+ if (d.expirationDays === undefined)
411
+ d.expirationDays = 0;
412
+ if (d.warningDays === undefined)
413
+ d.warningDays = 0;
414
+ if (d.tid === undefined)
415
+ d.tid = 0;
416
+ if (d.flowMode === undefined)
417
+ d.flowMode = CF_FlowModes.Sequential;
418
+ return d;
419
+ }
420
+ CreateAsync(d) {
421
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowTemplateCreate(d)); });
422
+ }
423
+ RetrieveAdminAsync(id) {
424
+ return __awaiter(this, void 0, void 0, function* () { throw new Error('InvalidOperation'); });
425
+ }
426
+ RetrieveAllAdminAsync() {
427
+ return __awaiter(this, void 0, void 0, function* () { throw new Error('InvalidOperation'); });
428
+ }
429
+ RetrieveAsync(id) {
430
+ return __awaiter(this, void 0, void 0, function* () { var _a; return CaseFlowTemplateEngine.Normalize(yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowTemplateRetrieve(id))); });
431
+ }
432
+ RetrieveAllAsync() {
433
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowTemplateRetrieveAll()); });
434
+ }
435
+ UpdateAsync(d) {
436
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowTemplateUpdate(d)); });
437
+ }
438
+ DeleteAsync(id) {
439
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowTemplateDelete(id)); });
440
+ }
441
+ }
405
442
  export class DataListEngine extends BaseEngine {
406
443
  static NewDataListDescriptor() { return this.Normalize(new DataListDescriptor(), true); }
407
444
  static Normalize(d, isNew) {
@@ -1571,6 +1608,8 @@ export class JobEngine extends BaseEngine {
1571
1608
  d.vu = 0;
1572
1609
  if (d.euR1 === undefined)
1573
1610
  d.euR1 = 0;
1611
+ if (d.browser === undefined)
1612
+ d.browser = CDPBrowsers.Chrome;
1574
1613
  return d;
1575
1614
  }
1576
1615
  CassettoFiscaleQuery_CreateAsync(d) {
@@ -2690,10 +2729,35 @@ export class JobEngine extends BaseEngine {
2690
2729
  return d;
2691
2730
  d.jobType = JobTypes.OcrSix;
2692
2731
  JobEngine.Normalize(d, isNewJob);
2693
- if (d.showHeaderInCsv === undefined)
2694
- d.showHeaderInCsv = false;
2695
2732
  if (d.exportTable === undefined)
2696
2733
  d.exportTable = false;
2734
+ if (d.showHeaderInCsv === undefined)
2735
+ d.showHeaderInCsv = false;
2736
+ if (d.test === undefined)
2737
+ d.test = 0;
2738
+ d.columnsInfo = this.OcrColumnsInfo_Normalize(d.columnsInfo);
2739
+ return d;
2740
+ }
2741
+ static OcrColumnsInfo_Normalize(d) {
2742
+ if (!d)
2743
+ d = new OcrColumnsInfo();
2744
+ if (d.columnFields === undefined)
2745
+ d.columnFields = [];
2746
+ if (d.queryFields === undefined)
2747
+ d.queryFields = [];
2748
+ if (d.columnCommands === undefined)
2749
+ d.columnCommands = [];
2750
+ else {
2751
+ for (const item of d.columnCommands)
2752
+ this.OcrColumnCommand_Normalize(item);
2753
+ }
2754
+ return d;
2755
+ }
2756
+ static OcrColumnCommand_Normalize(d) {
2757
+ if (!d)
2758
+ d = new OcrColumnCommand();
2759
+ if (d.type === undefined)
2760
+ d.type = OcrCommandTypes.None;
2697
2761
  return d;
2698
2762
  }
2699
2763
  PdDCreator_CreateAsync(d) {
@@ -3352,11 +3416,22 @@ export class NotificationEngine extends BaseEngine {
3352
3416
  }
3353
3417
  }
3354
3418
  export class NumeratorEngine extends BaseEngine {
3419
+ static NewNormalizeNumeratorDescriptor() { return this.NormalizeNumeratorDescriptor(new NumeratorDescriptor(), true); }
3420
+ static NormalizeNumeratorDescriptor(d, isNew) {
3421
+ if (!d)
3422
+ return d;
3423
+ if (d.incrValue_StartValue === undefined)
3424
+ d.incrValue_StartValue = 0;
3425
+ if ((d.incrValue_TotalLength === undefined || d.incrValue_TotalLength === 0)
3426
+ && d.incrValue_PaddingChar === ' ')
3427
+ d.incrValue_PaddingChar = '';
3428
+ return d;
3429
+ }
3355
3430
  CreateAsync(d) {
3356
3431
  return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.numeratorCreate(d)); });
3357
3432
  }
3358
3433
  RetrieveAdminAsync(id) {
3359
- return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.numeratorRetrieveAdmin(id)); });
3434
+ return __awaiter(this, void 0, void 0, function* () { var _a; return NumeratorEngine.NormalizeNumeratorDescriptor(yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.numeratorRetrieveAdmin(id))); });
3360
3435
  }
3361
3436
  RetrieveAllAdminAsync() {
3362
3437
  return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.numeratorRetrieveAllAdmin()); });
@@ -3581,6 +3656,8 @@ export class ProcessEngine extends BaseEngine {
3581
3656
  d.histLogPurgeValue = isNew ? 30 : 0;
3582
3657
  if (d.histLogDoNotPurgeErr === undefined)
3583
3658
  d.histLogDoNotPurgeErr = 0;
3659
+ if (d.jobFailureAction === undefined)
3660
+ d.jobFailureAction = JobFailureActions.QuitProcess;
3584
3661
  if (d.jobs === undefined)
3585
3662
  d.jobs = [];
3586
3663
  if (d.jobsCount === undefined)
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { PublicClientApplication } from "@azure/msal-browser";
11
- import { ArchiveEngine, AreaEngine, BasketEngine, BasketTypeEngine, DataListEngine, DcmtTypeEngine, DiskEngine, DossierEngine, FavoritesEngine, HomePageEngine, RelationEngine, JobEngine, LicenseEngine, NotificationEngine, OrchPlatformEngine, PreviewEngine, ProcessEngine, RecentEngine, SavedQueryEngine, SearchEngine, SignCertEngine, TSAEngine, TaskEngine, TreeEngine, UploadFileEngine, UserEngine, WorkflowEngine, WorkingGroupEngine, DeleteEngine, UpdateEngineByID, ArchiveEngineByID, DcmtPlatformEngine, ADMEngine, NumeratorEngine, ReportEngine, SignServerEngine, LDAPEngine, GroupEngine, SAPEngine, PermissionEngine, ViewEngine, DossierTypeEngine } from "./Engine";
11
+ import { ArchiveEngine, AreaEngine, BasketEngine, BasketTypeEngine, DataListEngine, DcmtTypeEngine, DiskEngine, DossierEngine, FavoritesEngine, HomePageEngine, RelationEngine, JobEngine, LicenseEngine, NotificationEngine, OrchPlatformEngine, PreviewEngine, ProcessEngine, RecentEngine, SavedQueryEngine, SearchEngine, SignCertEngine, TSAEngine, TaskEngine, TreeEngine, UploadFileEngine, UserEngine, WorkflowEngine, WorkingGroupEngine, DeleteEngine, UpdateEngineByID, ArchiveEngineByID, DcmtPlatformEngine, ADMEngine, NumeratorEngine, ReportEngine, SignServerEngine, LDAPEngine, GroupEngine, SAPEngine, PermissionEngine, ViewEngine, DossierTypeEngine, CaseFlowTemplateEngine } from "./Engine";
12
12
  import { DataListCacheService, DcmtTypeListCacheService, DossierCacheService, LayoutCacheService, RelationCacheService, SavedQueryCacheService, SignCertCacheService, TreeCacheService, TSACacheService, UserListCacheService, WorkingGroupCacheService } from "./helper/SDK_CacheServices";
13
13
  import { AuthenticationModes } from "./openAPIs/TopMediaServiceClient";
14
14
  import { SDK_Globals } from "./helper/SDK_Globals";
@@ -193,6 +193,7 @@ export class TopMediaSession {
193
193
  NewAreaEngine() { this.CheckIsLogged(); return new AreaEngine(this); }
194
194
  NewBasketEngine() { this.CheckIsLogged(); return new BasketEngine(this); }
195
195
  NewBasketTypeEngine() { this.CheckIsLogged(); return new BasketTypeEngine(this); }
196
+ NewCaseFlowTemplateEngine() { this.CheckIsLogged(); return new CaseFlowTemplateEngine(this); }
196
197
  NewDataListEngine() { this.CheckIsLogged(); return new DataListEngine(this); }
197
198
  NewDcmtPlatformEngine() { this.CheckIsLogged(); return new DcmtPlatformEngine(this); }
198
199
  NewDcmtTypeEngine() { this.CheckIsLogged(); return new DcmtTypeEngine(this); }
@@ -988,6 +988,28 @@ export class UserListCacheService {
988
988
  return ud;
989
989
  });
990
990
  }
991
+ static GetAllAdminAsync() {
992
+ return __awaiter(this, arguments, void 0, function* (tmSession = undefined, deepCopy = false) {
993
+ var _a;
994
+ const release = yield this._mutex.acquire();
995
+ try {
996
+ let tms = tmSession !== null && tmSession !== void 0 ? tmSession : SDK_Globals.tmSession;
997
+ let accessToken = (_a = tms === null || tms === void 0 ? void 0 : tms.SessionDescr) === null || _a === void 0 ? void 0 : _a.accessToken;
998
+ let users = this._cacheAdmin.get(accessToken);
999
+ if (!users) {
1000
+ users = yield (tms === null || tms === void 0 ? void 0 : tms.NewUserEngine().RetrieveAllAdminAsync(true));
1001
+ if (!users)
1002
+ users = [];
1003
+ this.RemoveAllAdmin(tmSession);
1004
+ this._cacheAdmin.set(accessToken, users);
1005
+ }
1006
+ return deepCopy ? users.map(u => { let d = new UserDescriptor(); d.init(Object.assign({}, u)); return d; }) : users;
1007
+ }
1008
+ finally {
1009
+ release();
1010
+ }
1011
+ });
1012
+ }
991
1013
  static RemoveAll(tmSession = undefined) {
992
1014
  var _a;
993
1015
  let tms = tmSession !== null && tmSession !== void 0 ? tmSession : SDK_Globals.tmSession;
@@ -995,9 +1017,17 @@ export class UserListCacheService {
995
1017
  if (this._cache.has(accessToken))
996
1018
  this._cache.delete(accessToken);
997
1019
  }
1020
+ static RemoveAllAdmin(tmSession = undefined) {
1021
+ var _a;
1022
+ let tms = tmSession !== null && tmSession !== void 0 ? tmSession : SDK_Globals.tmSession;
1023
+ let accessToken = (_a = tms === null || tms === void 0 ? void 0 : tms.SessionDescr) === null || _a === void 0 ? void 0 : _a.accessToken;
1024
+ if (this._cacheAdmin.has(accessToken))
1025
+ this._cacheAdmin.delete(accessToken);
1026
+ }
998
1027
  }
999
1028
  UserListCacheService._mutex = new Mutex();
1000
1029
  UserListCacheService._cache = new Map();
1030
+ UserListCacheService._cacheAdmin = new Map();
1001
1031
  export class LayoutCacheService {
1002
1032
  static getCacheKey(TID, layoutMode) {
1003
1033
  return `${TID}_${layoutMode}`;