@topconsultnpm/sdk-ts 6.22.0-dev1.2 → 6.22.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.
- package/dist/lib/Engine.js +32 -3
- package/dist/lib/TopMediaSession.js +2 -1
- package/dist/lib/openAPIs/TopMediaServiceClient.js +1 -1
- package/dist/types/Engine.d.ts +17 -1
- package/dist/types/TopMediaSession.d.ts +3 -1
- package/dist/types/openAPIs/TopMediaServiceClient.d.ts +2 -2
- package/package.json +1 -1
package/dist/lib/Engine.js
CHANGED
|
@@ -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, 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";
|
|
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, CaseFlowInstanceDescriptor, CF_States } from "./openAPIs/TopMediaServiceClient";
|
|
14
14
|
class BaseEngine {
|
|
15
15
|
constructor(tms) {
|
|
16
16
|
this.TopMediaSession = tms;
|
|
@@ -407,8 +407,8 @@ export class CaseFlowTemplateEngine extends BaseEngine {
|
|
|
407
407
|
static Normalize(d, isNew) {
|
|
408
408
|
if (!d)
|
|
409
409
|
return;
|
|
410
|
-
if (d.
|
|
411
|
-
d.
|
|
410
|
+
if (d.dueDays === undefined)
|
|
411
|
+
d.dueDays = 0;
|
|
412
412
|
if (d.warningDays === undefined)
|
|
413
413
|
d.warningDays = 0;
|
|
414
414
|
if (d.flowMode === undefined)
|
|
@@ -437,6 +437,35 @@ export class CaseFlowTemplateEngine extends BaseEngine {
|
|
|
437
437
|
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowTemplateDelete(id)); });
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
+
export class CaseFlowInstanceEngine extends BaseEngine {
|
|
441
|
+
static NewCaseFlowInstanceDescriptor() { return this.Normalize(new CaseFlowInstanceDescriptor(), true); }
|
|
442
|
+
static Normalize(d, isNew) {
|
|
443
|
+
if (!d)
|
|
444
|
+
return;
|
|
445
|
+
if (d.state === undefined)
|
|
446
|
+
d.state = CF_States.None;
|
|
447
|
+
if (d.progress === undefined)
|
|
448
|
+
d.progress = 0;
|
|
449
|
+
if (d.warningDays === undefined)
|
|
450
|
+
d.warningDays = 0;
|
|
451
|
+
return d;
|
|
452
|
+
}
|
|
453
|
+
CreateAsync(d) {
|
|
454
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowInstanceCreate(d)); });
|
|
455
|
+
}
|
|
456
|
+
RetrieveAsync(cftid, id) {
|
|
457
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return CaseFlowInstanceEngine.Normalize(yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowInstanceRetrieve(cftid, id))); });
|
|
458
|
+
}
|
|
459
|
+
RetrieveAllAsync(cftid) {
|
|
460
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowInstanceRetrieveAll(cftid)); });
|
|
461
|
+
}
|
|
462
|
+
UpdateAsync(d) {
|
|
463
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowInstanceUpdate(d)); });
|
|
464
|
+
}
|
|
465
|
+
DeleteAsync(cftid, id) {
|
|
466
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowInstanceDelete(cftid, id)); });
|
|
467
|
+
}
|
|
468
|
+
}
|
|
440
469
|
export class DataListEngine extends BaseEngine {
|
|
441
470
|
static NewDataListDescriptor() { return this.Normalize(new DataListDescriptor(), true); }
|
|
442
471
|
static Normalize(d, isNew) {
|
|
@@ -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, CaseFlowTemplateEngine } 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, CaseFlowInstanceEngine } 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";
|
|
@@ -194,6 +194,7 @@ export class TopMediaSession {
|
|
|
194
194
|
NewBasketEngine() { this.CheckIsLogged(); return new BasketEngine(this); }
|
|
195
195
|
NewBasketTypeEngine() { this.CheckIsLogged(); return new BasketTypeEngine(this); }
|
|
196
196
|
NewCaseFlowTemplateEngine() { this.CheckIsLogged(); return new CaseFlowTemplateEngine(this); }
|
|
197
|
+
NewCaseFlowInstanceEngine() { this.CheckIsLogged(); return new CaseFlowInstanceEngine(this); }
|
|
197
198
|
NewDataListEngine() { this.CheckIsLogged(); return new DataListEngine(this); }
|
|
198
199
|
NewDcmtPlatformEngine() { this.CheckIsLogged(); return new DcmtPlatformEngine(this); }
|
|
199
200
|
NewDcmtTypeEngine() { this.CheckIsLogged(); return new DcmtTypeEngine(this); }
|