@topconsultnpm/sdk-ts 6.21.0-x17 → 6.22.0-dev1.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.
- package/dist/lib/Engine.js +252 -1
- package/dist/lib/TopMediaSession.js +6 -1
- package/dist/lib/openAPIs/TopMediaServiceClient.js +1 -1
- package/dist/types/Engine.d.ts +92 -1
- package/dist/types/TopMediaSession.d.ts +8 -2
- package/dist/types/openAPIs/TopMediaServiceClient.d.ts +91 -41
- package/package.json +1 -2
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 } 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, CF_WorkItemStates, CF_WorkItemCategories, CF_ParticipantRoles, CF_CompletionTypes, CF_AutoTriggerTypes, WorkItemSetRules, CF_AssigneeTypes, CF_BlogAccessLevel, CF_DocAccessLevel } from "./openAPIs/TopMediaServiceClient";
|
|
14
14
|
class BaseEngine {
|
|
15
15
|
constructor(tms) {
|
|
16
16
|
this.TopMediaSession = tms;
|
|
@@ -402,6 +402,199 @@ 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
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
409
|
+
if (!d)
|
|
410
|
+
return;
|
|
411
|
+
(_a = d.dueDays) !== null && _a !== void 0 ? _a : (d.dueDays = 0);
|
|
412
|
+
(_b = d.warningDays) !== null && _b !== void 0 ? _b : (d.warningDays = 0);
|
|
413
|
+
(_c = d.flowMode) !== null && _c !== void 0 ? _c : (d.flowMode = CF_FlowModes.Sequential);
|
|
414
|
+
if (d.actions)
|
|
415
|
+
for (let a of d.actions)
|
|
416
|
+
CaseFlowInstanceEngine.NormalizeAction(a);
|
|
417
|
+
if (d.participants)
|
|
418
|
+
for (let p of d.participants)
|
|
419
|
+
CaseFlowInstanceEngine.NormalizeParticipant(p);
|
|
420
|
+
if (d.stateDefinitions)
|
|
421
|
+
for (let sd of d.stateDefinitions)
|
|
422
|
+
(_d = sd.order) !== null && _d !== void 0 ? _d : (sd.order = 0);
|
|
423
|
+
if (d.stateTransitionRules)
|
|
424
|
+
for (let r of d.stateTransitionRules) {
|
|
425
|
+
(_e = r.id) !== null && _e !== void 0 ? _e : (r.id = 0);
|
|
426
|
+
(_f = r.targetStateId) !== null && _f !== void 0 ? _f : (r.targetStateId = 0);
|
|
427
|
+
}
|
|
428
|
+
if (d.dcmts)
|
|
429
|
+
for (let dc of d.dcmts) {
|
|
430
|
+
(_g = dc.tid) !== null && _g !== void 0 ? _g : (dc.tid = 0);
|
|
431
|
+
(_h = dc.did) !== null && _h !== void 0 ? _h : (dc.did = 0);
|
|
432
|
+
(_j = dc.min) !== null && _j !== void 0 ? _j : (dc.min = 0);
|
|
433
|
+
(_k = dc.max) !== null && _k !== void 0 ? _k : (dc.max = 0);
|
|
434
|
+
}
|
|
435
|
+
return d;
|
|
436
|
+
}
|
|
437
|
+
CreateAsync(d) {
|
|
438
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowTemplateCreate(d)); });
|
|
439
|
+
}
|
|
440
|
+
RetrieveAdminAsync(id) {
|
|
441
|
+
return __awaiter(this, void 0, void 0, function* () { throw new Error('InvalidOperation'); });
|
|
442
|
+
}
|
|
443
|
+
RetrieveAllAdminAsync() {
|
|
444
|
+
return __awaiter(this, void 0, void 0, function* () { throw new Error('InvalidOperation'); });
|
|
445
|
+
}
|
|
446
|
+
RetrieveAsync(id) {
|
|
447
|
+
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))); });
|
|
448
|
+
}
|
|
449
|
+
RetrieveAllAsync() {
|
|
450
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowTemplateRetrieveAll()); });
|
|
451
|
+
}
|
|
452
|
+
UpdateAsync(d) {
|
|
453
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowTemplateUpdate(d)); });
|
|
454
|
+
}
|
|
455
|
+
DeleteAsync(id) {
|
|
456
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowTemplateDelete(id)); });
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
export class CaseFlowInstanceEngine extends BaseEngine {
|
|
460
|
+
static NewCaseFlowInstanceDescriptor() { return this.Normalize(new CaseFlowInstanceDescriptor(), true); }
|
|
461
|
+
static Normalize(d, isNew) {
|
|
462
|
+
var _a, _b, _c, _d, _e;
|
|
463
|
+
if (!d)
|
|
464
|
+
return;
|
|
465
|
+
(_a = d.state) !== null && _a !== void 0 ? _a : (d.state = CF_States.None);
|
|
466
|
+
(_b = d.progress) !== null && _b !== void 0 ? _b : (d.progress = 0);
|
|
467
|
+
(_c = d.warningDays) !== null && _c !== void 0 ? _c : (d.warningDays = 0);
|
|
468
|
+
(_d = d.isHist) !== null && _d !== void 0 ? _d : (d.isHist = 0);
|
|
469
|
+
(_e = d.newPosts) !== null && _e !== void 0 ? _e : (d.newPosts = 0);
|
|
470
|
+
if (d.actions)
|
|
471
|
+
for (let a of d.actions)
|
|
472
|
+
this.NormalizeAction(a);
|
|
473
|
+
if (d.participants)
|
|
474
|
+
for (let p of d.participants)
|
|
475
|
+
this.NormalizeParticipant(p);
|
|
476
|
+
if (d.workItems)
|
|
477
|
+
for (let wi of d.workItems)
|
|
478
|
+
this.NormalizeWorkItem(wi);
|
|
479
|
+
if (d.stateEntries)
|
|
480
|
+
for (let se of d.stateEntries)
|
|
481
|
+
this.NormalizeStateEntry(se);
|
|
482
|
+
if (d.actionTracking)
|
|
483
|
+
for (let at of d.actionTracking)
|
|
484
|
+
this.NormalizeActionTracking(at);
|
|
485
|
+
return d;
|
|
486
|
+
}
|
|
487
|
+
static NormalizeAction(a) {
|
|
488
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
489
|
+
if (!a)
|
|
490
|
+
return;
|
|
491
|
+
(_a = a.order) !== null && _a !== void 0 ? _a : (a.order = 0);
|
|
492
|
+
(_b = a.state) !== null && _b !== void 0 ? _b : (a.state = CF_States.None);
|
|
493
|
+
(_c = a.isCurrent) !== null && _c !== void 0 ? _c : (a.isCurrent = false);
|
|
494
|
+
(_d = a.completionType) !== null && _d !== void 0 ? _d : (a.completionType = CF_CompletionTypes.Manual);
|
|
495
|
+
(_e = a.claimedByUserId) !== null && _e !== void 0 ? _e : (a.claimedByUserId = 0);
|
|
496
|
+
(_f = a.autoTriggerType) !== null && _f !== void 0 ? _f : (a.autoTriggerType = CF_AutoTriggerTypes.None);
|
|
497
|
+
(_g = a.onCompleteStateId) !== null && _g !== void 0 ? _g : (a.onCompleteStateId = 0);
|
|
498
|
+
(_h = a.isFinal) !== null && _h !== void 0 ? _h : (a.isFinal = false);
|
|
499
|
+
(_j = a.dueDays) !== null && _j !== void 0 ? _j : (a.dueDays = 0);
|
|
500
|
+
(_k = a.workItemCategory) !== null && _k !== void 0 ? _k : (a.workItemCategory = CF_WorkItemCategories.None);
|
|
501
|
+
(_l = a.actionTID) !== null && _l !== void 0 ? _l : (a.actionTID = 0);
|
|
502
|
+
(_m = a.assigneesSetRule) !== null && _m !== void 0 ? _m : (a.assigneesSetRule = WorkItemSetRules.Ands_AND_Ors);
|
|
503
|
+
if (a.assignees)
|
|
504
|
+
for (let asg of a.assignees)
|
|
505
|
+
this.NormalizeAssignee(asg);
|
|
506
|
+
return a;
|
|
507
|
+
}
|
|
508
|
+
static NormalizeAssignee(a) {
|
|
509
|
+
var _a, _b, _c;
|
|
510
|
+
if (!a)
|
|
511
|
+
return;
|
|
512
|
+
(_a = a.type) !== null && _a !== void 0 ? _a : (a.type = CF_AssigneeTypes.None);
|
|
513
|
+
(_b = a.id) !== null && _b !== void 0 ? _b : (a.id = 0);
|
|
514
|
+
(_c = a.or) !== null && _c !== void 0 ? _c : (a.or = 0);
|
|
515
|
+
return a;
|
|
516
|
+
}
|
|
517
|
+
static NormalizeParticipant(p) {
|
|
518
|
+
var _a, _b;
|
|
519
|
+
if (!p)
|
|
520
|
+
return;
|
|
521
|
+
(_a = p.id) !== null && _a !== void 0 ? _a : (p.id = 0);
|
|
522
|
+
(_b = p.role) !== null && _b !== void 0 ? _b : (p.role = CF_ParticipantRoles.None);
|
|
523
|
+
this.NormalizeGuestPermissions(p.guestPermissions);
|
|
524
|
+
return p;
|
|
525
|
+
}
|
|
526
|
+
static NormalizeGuestPermissions(g) {
|
|
527
|
+
var _a, _b, _c, _d;
|
|
528
|
+
if (!g)
|
|
529
|
+
return;
|
|
530
|
+
(_a = g.canEditCover) !== null && _a !== void 0 ? _a : (g.canEditCover = false);
|
|
531
|
+
(_b = g.canViewActions) !== null && _b !== void 0 ? _b : (g.canViewActions = false);
|
|
532
|
+
(_c = g.blogAccess) !== null && _c !== void 0 ? _c : (g.blogAccess = CF_BlogAccessLevel.None);
|
|
533
|
+
(_d = g.docAccessDefault) !== null && _d !== void 0 ? _d : (g.docAccessDefault = CF_DocAccessLevel.None);
|
|
534
|
+
return g;
|
|
535
|
+
}
|
|
536
|
+
static NormalizeWorkItem(wi) {
|
|
537
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
538
|
+
if (!wi)
|
|
539
|
+
return;
|
|
540
|
+
(_a = wi.id) !== null && _a !== void 0 ? _a : (wi.id = 0);
|
|
541
|
+
(_b = wi.cfiid) !== null && _b !== void 0 ? _b : (wi.cfiid = 0);
|
|
542
|
+
(_c = wi.actionId) !== null && _c !== void 0 ? _c : (wi.actionId = 0);
|
|
543
|
+
(_d = wi.workItemCategory) !== null && _d !== void 0 ? _d : (wi.workItemCategory = CF_WorkItemCategories.None);
|
|
544
|
+
(_e = wi.fromUserId) !== null && _e !== void 0 ? _e : (wi.fromUserId = 0);
|
|
545
|
+
(_f = wi.toUserId) !== null && _f !== void 0 ? _f : (wi.toUserId = 0);
|
|
546
|
+
(_g = wi.state) !== null && _g !== void 0 ? _g : (wi.state = CF_WorkItemStates.Pending);
|
|
547
|
+
(_h = wi.parentWorkItemId) !== null && _h !== void 0 ? _h : (wi.parentWorkItemId = 0);
|
|
548
|
+
return wi;
|
|
549
|
+
}
|
|
550
|
+
static NormalizeStateEntry(se) {
|
|
551
|
+
var _a, _b, _c, _d;
|
|
552
|
+
if (!se)
|
|
553
|
+
return;
|
|
554
|
+
(_a = se.stateId) !== null && _a !== void 0 ? _a : (se.stateId = 0);
|
|
555
|
+
(_b = se.order) !== null && _b !== void 0 ? _b : (se.order = 0);
|
|
556
|
+
(_c = se.isReached) !== null && _c !== void 0 ? _c : (se.isReached = false);
|
|
557
|
+
(_d = se.isCurrent) !== null && _d !== void 0 ? _d : (se.isCurrent = false);
|
|
558
|
+
return se;
|
|
559
|
+
}
|
|
560
|
+
static NormalizeActionTracking(at) {
|
|
561
|
+
var _a, _b, _c;
|
|
562
|
+
if (!at)
|
|
563
|
+
return;
|
|
564
|
+
(_a = at.actionId) !== null && _a !== void 0 ? _a : (at.actionId = 0);
|
|
565
|
+
(_b = at.completedByUserId) !== null && _b !== void 0 ? _b : (at.completedByUserId = 0);
|
|
566
|
+
(_c = at.durationMinutes) !== null && _c !== void 0 ? _c : (at.durationMinutes = 0);
|
|
567
|
+
return at;
|
|
568
|
+
}
|
|
569
|
+
CreateAsync(d) {
|
|
570
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowInstanceCreate(d)); });
|
|
571
|
+
}
|
|
572
|
+
RetrieveAsync(cftid, id) {
|
|
573
|
+
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))); });
|
|
574
|
+
}
|
|
575
|
+
RetrieveAllAsync(cftid) {
|
|
576
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
577
|
+
var _a;
|
|
578
|
+
const list = yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowInstanceRetrieveAll(cftid));
|
|
579
|
+
if (list)
|
|
580
|
+
for (let d of list)
|
|
581
|
+
CaseFlowInstanceEngine.Normalize(d);
|
|
582
|
+
return list;
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
UpdateAsync(d) {
|
|
586
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowInstanceUpdate(d)); });
|
|
587
|
+
}
|
|
588
|
+
DeleteAsync(cftid, id) {
|
|
589
|
+
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)); });
|
|
590
|
+
}
|
|
591
|
+
BlogPostAddAsync(cftid, id, bp) {
|
|
592
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowInstanceBlogPostAdd(cftid, id, bp)); });
|
|
593
|
+
}
|
|
594
|
+
BlogPostDeleteOrUndeleteAsync(cftid, id, postID, del) {
|
|
595
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowInstanceBlogPostDeleteOrUndelete(cftid, id, postID, del ? 1 : 0)); });
|
|
596
|
+
}
|
|
597
|
+
}
|
|
405
598
|
export class DataListEngine extends BaseEngine {
|
|
406
599
|
static NewDataListDescriptor() { return this.Normalize(new DataListDescriptor(), true); }
|
|
407
600
|
static Normalize(d, isNew) {
|
|
@@ -1867,6 +2060,10 @@ export class JobEngine extends BaseEngine {
|
|
|
1867
2060
|
d.delNotLocalAttach = 0;
|
|
1868
2061
|
if (d.inputOrder === undefined)
|
|
1869
2062
|
d.inputOrder = InputOrders.OldToNew;
|
|
2063
|
+
if (d.errorAsWarning === undefined)
|
|
2064
|
+
d.errorAsWarning = 0;
|
|
2065
|
+
if (d.allowInvalidXML === undefined)
|
|
2066
|
+
d.allowInvalidXML = 0;
|
|
1870
2067
|
return d;
|
|
1871
2068
|
}
|
|
1872
2069
|
FEDetacher_CreateAsync(d) {
|
|
@@ -5192,6 +5389,25 @@ export var Rentri_MetadataNames;
|
|
|
5192
5389
|
Rentri_MetadataNames["ProgressivoA_Assoluto"] = "Rentri_ProgressivoA_Assoluto";
|
|
5193
5390
|
Rentri_MetadataNames["NumeroRegistrazioni_Assoluto"] = "Rentri_NumeroRegistrazioni_Assoluto";
|
|
5194
5391
|
})(Rentri_MetadataNames || (Rentri_MetadataNames = {}));
|
|
5392
|
+
export var XFIR_MetadataNames;
|
|
5393
|
+
(function (XFIR_MetadataNames) {
|
|
5394
|
+
XFIR_MetadataNames["Partenza_DataEmissione"] = "XFIR_Partenza_DataEmissione";
|
|
5395
|
+
XFIR_MetadataNames["Partenza_NumeroFIR"] = "XFIR_Partenza_NumeroFIR";
|
|
5396
|
+
XFIR_MetadataNames["Partenza_Prod_CodiceFiscale"] = "XFIR_Partenza_Prod_CodiceFiscale";
|
|
5397
|
+
XFIR_MetadataNames["Partenza_Prod_Denominazione"] = "XFIR_Partenza_Prod_Denominazione";
|
|
5398
|
+
XFIR_MetadataNames["Partenza_Prod_NumIscrSito"] = "XFIR_Partenza_Prod_NumIscrSito";
|
|
5399
|
+
XFIR_MetadataNames["Partenza_Dest_CodiceFiscale"] = "XFIR_Partenza_Dest_CodiceFiscale";
|
|
5400
|
+
XFIR_MetadataNames["Partenza_Dest_Denominazione"] = "XFIR_Partenza_Dest_Denominazione";
|
|
5401
|
+
XFIR_MetadataNames["Partenza_Dest_Aut_Numero"] = "XFIR_Partenza_Dest_Aut_Numero";
|
|
5402
|
+
XFIR_MetadataNames["Partenza_Dest_Aut_Tipo"] = "XFIR_Partenza_Dest_Aut_Tipo";
|
|
5403
|
+
XFIR_MetadataNames["Partenza_Dest_Attivita"] = "XFIR_Partenza_Dest_Attivita";
|
|
5404
|
+
XFIR_MetadataNames["Partenza_Rifiuto_CodiceEER"] = "XFIR_Partenza_Rifiuto_CodiceEER";
|
|
5405
|
+
XFIR_MetadataNames["Partenza_Rifiuto_StatoFisico"] = "XFIR_Partenza_Rifiuto_StatoFisico";
|
|
5406
|
+
XFIR_MetadataNames["Partenza_Rifiuto_Quantita"] = "XFIR_Partenza_Rifiuto_Quantita";
|
|
5407
|
+
XFIR_MetadataNames["Accettazione_Tipo"] = "XFIR_Accettazione_Tipo";
|
|
5408
|
+
XFIR_MetadataNames["Accettazione_Quantita"] = "XFIR_Accettazione_Quantita";
|
|
5409
|
+
XFIR_MetadataNames["Accettazione_DataOraArrivo"] = "XFIR_Accettazione_DataOraArrivo";
|
|
5410
|
+
})(XFIR_MetadataNames || (XFIR_MetadataNames = {}));
|
|
5195
5411
|
export var FE_DistillazioneEstesa_MetadataNames;
|
|
5196
5412
|
(function (FE_DistillazioneEstesa_MetadataNames) {
|
|
5197
5413
|
FE_DistillazioneEstesa_MetadataNames["Divisa"] = "Divisa";
|
|
@@ -5228,6 +5444,41 @@ export var SAP_MetadataNames;
|
|
|
5228
5444
|
SAP_MetadataNames["SAP_Align_XferDate"] = "SAP_Align_XferDate";
|
|
5229
5445
|
SAP_MetadataNames["SAP_Align_XferMessage"] = "SAP_Align_XferMessage";
|
|
5230
5446
|
})(SAP_MetadataNames || (SAP_MetadataNames = {}));
|
|
5447
|
+
export var S4T_IG_MetadataNames;
|
|
5448
|
+
(function (S4T_IG_MetadataNames) {
|
|
5449
|
+
S4T_IG_MetadataNames["Email"] = "Email";
|
|
5450
|
+
S4T_IG_MetadataNames["CID"] = "IG_CID";
|
|
5451
|
+
S4T_IG_MetadataNames["Alias"] = "IG_Alias";
|
|
5452
|
+
S4T_IG_MetadataNames["Label"] = "IG_Label";
|
|
5453
|
+
S4T_IG_MetadataNames["Description"] = "IG_Description";
|
|
5454
|
+
S4T_IG_MetadataNames["Domain"] = "IG_Domain";
|
|
5455
|
+
S4T_IG_MetadataNames["ProviderName"] = "IG_ProviderName";
|
|
5456
|
+
S4T_IG_MetadataNames["ProviderDescription"] = "IG_ProviderDescription";
|
|
5457
|
+
S4T_IG_MetadataNames["LoginAuth"] = "IG_LoginAuth";
|
|
5458
|
+
S4T_IG_MetadataNames["CreationDate"] = "IG_CreationDate";
|
|
5459
|
+
S4T_IG_MetadataNames["ValidFrom"] = "IG_ValidFrom";
|
|
5460
|
+
S4T_IG_MetadataNames["ValidTo"] = "IG_ValidTo";
|
|
5461
|
+
S4T_IG_MetadataNames["RevokeDate"] = "IG_RevokeDate";
|
|
5462
|
+
S4T_IG_MetadataNames["CertificateStatus"] = "IG_CertificateStatus";
|
|
5463
|
+
})(S4T_IG_MetadataNames || (S4T_IG_MetadataNames = {}));
|
|
5464
|
+
export var S4T_UR_MetadataNames;
|
|
5465
|
+
(function (S4T_UR_MetadataNames) {
|
|
5466
|
+
S4T_UR_MetadataNames["Email"] = "Email";
|
|
5467
|
+
S4T_UR_MetadataNames["Name"] = "Name";
|
|
5468
|
+
S4T_UR_MetadataNames["Surname"] = "Surname";
|
|
5469
|
+
S4T_UR_MetadataNames["FiscalCode"] = "FiscalCode";
|
|
5470
|
+
S4T_UR_MetadataNames["PhoneNumber"] = "PhoneNumber";
|
|
5471
|
+
S4T_UR_MetadataNames["Link"] = "Link";
|
|
5472
|
+
S4T_UR_MetadataNames["CertificateMethod"] = "CertificateMethod";
|
|
5473
|
+
S4T_UR_MetadataNames["GUID"] = "GUID";
|
|
5474
|
+
S4T_UR_MetadataNames["SendingStatus"] = "SendingStatus";
|
|
5475
|
+
S4T_UR_MetadataNames["SendingDescription"] = "SendingDescription";
|
|
5476
|
+
S4T_UR_MetadataNames["CertificateRequestDate"] = "CertificateRequestDate";
|
|
5477
|
+
S4T_UR_MetadataNames["ProcessingDate"] = "ProcessingDate";
|
|
5478
|
+
S4T_UR_MetadataNames["ProcessingResult"] = "ProcessingResult";
|
|
5479
|
+
S4T_UR_MetadataNames["ProcessingResultDescription"] = "ProcessingResultDescription";
|
|
5480
|
+
S4T_UR_MetadataNames["Annotations"] = "Annotations";
|
|
5481
|
+
})(S4T_UR_MetadataNames || (S4T_UR_MetadataNames = {}));
|
|
5231
5482
|
export var WorkItemMetadataNames;
|
|
5232
5483
|
(function (WorkItemMetadataNames) {
|
|
5233
5484
|
WorkItemMetadataNames["WI_From"] = "WI_From";
|
|
@@ -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, 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";
|
|
@@ -187,12 +187,17 @@ export class TopMediaSession {
|
|
|
187
187
|
return __awaiter(this, void 0, void 0, function* () { var _a; if (!this.IsLogged())
|
|
188
188
|
return []; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.sessionRetrieveAllAdmin()); });
|
|
189
189
|
}
|
|
190
|
+
HelpOnLineAskAsync(d) {
|
|
191
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.helpOnLineAsk(d)); });
|
|
192
|
+
}
|
|
190
193
|
NewADMEngine() { this.CheckIsLogged(); return new ADMEngine(this); }
|
|
191
194
|
NewArchiveEngine() { return new ArchiveEngine(this); }
|
|
192
195
|
NewArchiveEngineByID() { this.CheckIsLogged(); return new ArchiveEngineByID(this); }
|
|
193
196
|
NewAreaEngine() { this.CheckIsLogged(); return new AreaEngine(this); }
|
|
194
197
|
NewBasketEngine() { this.CheckIsLogged(); return new BasketEngine(this); }
|
|
195
198
|
NewBasketTypeEngine() { this.CheckIsLogged(); return new BasketTypeEngine(this); }
|
|
199
|
+
NewCaseFlowTemplateEngine() { this.CheckIsLogged(); return new CaseFlowTemplateEngine(this); }
|
|
200
|
+
NewCaseFlowInstanceEngine() { this.CheckIsLogged(); return new CaseFlowInstanceEngine(this); }
|
|
196
201
|
NewDataListEngine() { this.CheckIsLogged(); return new DataListEngine(this); }
|
|
197
202
|
NewDcmtPlatformEngine() { this.CheckIsLogged(); return new DcmtPlatformEngine(this); }
|
|
198
203
|
NewDcmtTypeEngine() { this.CheckIsLogged(); return new DcmtTypeEngine(this); }
|