@topconsultnpm/sdk-ts 6.21.0 → 6.22.0-dev1.11

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, 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, 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;
@@ -405,14 +405,33 @@ export class BasketTypeEngine extends BaseEngine {
405
405
  export class CaseFlowTemplateEngine extends BaseEngine {
406
406
  static NewCaseFlowTemplateDescriptor() { return this.Normalize(new CaseFlowTemplateDescriptor(), true); }
407
407
  static Normalize(d, isNew) {
408
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
408
409
  if (!d)
409
410
  return;
410
- if (d.expirationDays === undefined)
411
- d.expirationDays = 0;
412
- if (d.warningDays === undefined)
413
- d.warningDays = 0;
414
- if (d.flowMode === undefined)
415
- d.flowMode = CF_FlowModes.Sequential;
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
+ }
416
435
  return d;
417
436
  }
418
437
  CreateAsync(d) {
@@ -437,6 +456,148 @@ export class CaseFlowTemplateEngine extends BaseEngine {
437
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)); });
438
457
  }
439
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
+ ParticipantsAddOrRemoveAsync(cftid, id, d, remove) {
598
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowInstanceParticipantsAddOrRemove(cftid, id, remove ? 1 : 0, d)); });
599
+ }
600
+ }
440
601
  export class DataListEngine extends BaseEngine {
441
602
  static NewDataListDescriptor() { return this.Normalize(new DataListDescriptor(), true); }
442
603
  static Normalize(d, isNew) {
@@ -1904,6 +2065,8 @@ export class JobEngine extends BaseEngine {
1904
2065
  d.inputOrder = InputOrders.OldToNew;
1905
2066
  if (d.errorAsWarning === undefined)
1906
2067
  d.errorAsWarning = 0;
2068
+ if (d.allowInvalidXML === undefined)
2069
+ d.allowInvalidXML = 0;
1907
2070
  return d;
1908
2071
  }
1909
2072
  FEDetacher_CreateAsync(d) {
@@ -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";
@@ -187,6 +187,9 @@ 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); }
@@ -194,6 +197,7 @@ export class TopMediaSession {
194
197
  NewBasketEngine() { this.CheckIsLogged(); return new BasketEngine(this); }
195
198
  NewBasketTypeEngine() { this.CheckIsLogged(); return new BasketTypeEngine(this); }
196
199
  NewCaseFlowTemplateEngine() { this.CheckIsLogged(); return new CaseFlowTemplateEngine(this); }
200
+ NewCaseFlowInstanceEngine() { this.CheckIsLogged(); return new CaseFlowInstanceEngine(this); }
197
201
  NewDataListEngine() { this.CheckIsLogged(); return new DataListEngine(this); }
198
202
  NewDcmtPlatformEngine() { this.CheckIsLogged(); return new DcmtPlatformEngine(this); }
199
203
  NewDcmtTypeEngine() { this.CheckIsLogged(); return new DcmtTypeEngine(this); }