@topconsultnpm/sdk-ts 6.22.0-dev1.9 → 6.22.0-t1

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, CaseFlowInstanceDescriptor, CF_States, CF_WorkItemStates, CF_WorkItemCategories, CF_ParticipantRoles, CF_CompletionTypes, CF_AutoTriggerTypes, WorkItemSetRules, CF_AssigneeTypes, CF_BlogAccessLevel, CF_DocAccessLevel } 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, DcmtCreator_MetadataMappingDescriptor, DocumentSource, DocumentSourceTypes, DocumentFormats, DocumentOperation, DocumentOperations, FillFieldsOperation, FillFieldsStrategies, FillTableOperation, HeaderFooterOperation, HeaderFooterContentTypes, MergeDocumentsOperation, RasterizeElementsOperation, ConvertToPdfOperation, AddDigitalSignatureFieldOperation, ApplyLetterheadOperation, RasterElement, TextElement, ImageElement, CheckboxElement, RadioButtonElement, LineElement, RectangleElement, ElementPosition, ElementSize, LineStyle, TextFormatting, TextAlignments, 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, CF_RejectBehaviors } from "./openAPIs/TopMediaServiceClient";
14
14
  class BaseEngine {
15
15
  constructor(tms) {
16
16
  this.TopMediaSession = tms;
@@ -423,7 +423,7 @@ export class CaseFlowTemplateEngine extends BaseEngine {
423
423
  if (d.stateTransitionRules)
424
424
  for (let r of d.stateTransitionRules) {
425
425
  (_e = r.id) !== null && _e !== void 0 ? _e : (r.id = 0);
426
- (_f = r.targetStateId) !== null && _f !== void 0 ? _f : (r.targetStateId = 0);
426
+ (_f = r.targetStateID) !== null && _f !== void 0 ? _f : (r.targetStateID = 0);
427
427
  }
428
428
  if (d.dcmts)
429
429
  for (let dc of d.dcmts) {
@@ -459,14 +459,13 @@ export class CaseFlowTemplateEngine extends BaseEngine {
459
459
  export class CaseFlowInstanceEngine extends BaseEngine {
460
460
  static NewCaseFlowInstanceDescriptor() { return this.Normalize(new CaseFlowInstanceDescriptor(), true); }
461
461
  static Normalize(d, isNew) {
462
- var _a, _b, _c, _d, _e;
462
+ var _a, _b, _c, _d;
463
463
  if (!d)
464
464
  return;
465
465
  (_a = d.state) !== null && _a !== void 0 ? _a : (d.state = CF_States.None);
466
466
  (_b = d.progress) !== null && _b !== void 0 ? _b : (d.progress = 0);
467
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);
468
+ (_d = d.newPosts) !== null && _d !== void 0 ? _d : (d.newPosts = 0);
470
469
  if (d.actions)
471
470
  for (let a of d.actions)
472
471
  this.NormalizeAction(a);
@@ -485,21 +484,22 @@ export class CaseFlowInstanceEngine extends BaseEngine {
485
484
  return d;
486
485
  }
487
486
  static NormalizeAction(a) {
488
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
487
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
489
488
  if (!a)
490
489
  return;
491
490
  (_a = a.order) !== null && _a !== void 0 ? _a : (a.order = 0);
492
491
  (_b = a.state) !== null && _b !== void 0 ? _b : (a.state = CF_States.None);
493
492
  (_c = a.isCurrent) !== null && _c !== void 0 ? _c : (a.isCurrent = false);
494
493
  (_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);
494
+ (_e = a.autoTriggerType) !== null && _e !== void 0 ? _e : (a.autoTriggerType = CF_AutoTriggerTypes.None);
495
+ (_f = a.isFinal) !== null && _f !== void 0 ? _f : (a.isFinal = false);
496
+ (_g = a.dueDays) !== null && _g !== void 0 ? _g : (a.dueDays = 0);
497
+ (_h = a.workItemCategory) !== null && _h !== void 0 ? _h : (a.workItemCategory = CF_WorkItemCategories.None);
498
+ (_j = a.actionTID) !== null && _j !== void 0 ? _j : (a.actionTID = 0);
499
+ (_k = a.assigneesSetRule) !== null && _k !== void 0 ? _k : (a.assigneesSetRule = WorkItemSetRules.Ands_AND_Ors);
500
+ (_l = a.onCompleteStateID) !== null && _l !== void 0 ? _l : (a.onCompleteStateID = 0);
501
+ (_m = a.rejectToActionID) !== null && _m !== void 0 ? _m : (a.rejectToActionID = 0);
502
+ (_o = a.onReject) !== null && _o !== void 0 ? _o : (a.onReject = CF_RejectBehaviors.TerminateFlow);
503
503
  if (a.assignees)
504
504
  for (let asg of a.assignees)
505
505
  this.NormalizeAssignee(asg);
@@ -518,7 +518,7 @@ export class CaseFlowInstanceEngine extends BaseEngine {
518
518
  var _a, _b;
519
519
  if (!p)
520
520
  return;
521
- (_a = p.userId) !== null && _a !== void 0 ? _a : (p.userId = 0);
521
+ (_a = p.id) !== null && _a !== void 0 ? _a : (p.id = 0);
522
522
  (_b = p.role) !== null && _b !== void 0 ? _b : (p.role = CF_ParticipantRoles.None);
523
523
  this.NormalizeGuestPermissions(p.guestPermissions);
524
524
  return p;
@@ -539,19 +539,19 @@ export class CaseFlowInstanceEngine extends BaseEngine {
539
539
  return;
540
540
  (_a = wi.id) !== null && _a !== void 0 ? _a : (wi.id = 0);
541
541
  (_b = wi.cfiid) !== null && _b !== void 0 ? _b : (wi.cfiid = 0);
542
- (_c = wi.actionId) !== null && _c !== void 0 ? _c : (wi.actionId = 0);
542
+ (_c = wi.actionID) !== null && _c !== void 0 ? _c : (wi.actionID = 0);
543
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);
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
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);
547
+ (_h = wi.parentWorkItemID) !== null && _h !== void 0 ? _h : (wi.parentWorkItemID = 0);
548
548
  return wi;
549
549
  }
550
550
  static NormalizeStateEntry(se) {
551
551
  var _a, _b, _c, _d;
552
552
  if (!se)
553
553
  return;
554
- (_a = se.stateId) !== null && _a !== void 0 ? _a : (se.stateId = 0);
554
+ (_a = se.stateID) !== null && _a !== void 0 ? _a : (se.stateID = 0);
555
555
  (_b = se.order) !== null && _b !== void 0 ? _b : (se.order = 0);
556
556
  (_c = se.isReached) !== null && _c !== void 0 ? _c : (se.isReached = false);
557
557
  (_d = se.isCurrent) !== null && _d !== void 0 ? _d : (se.isCurrent = false);
@@ -561,8 +561,8 @@ export class CaseFlowInstanceEngine extends BaseEngine {
561
561
  var _a, _b, _c;
562
562
  if (!at)
563
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);
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
566
  (_c = at.durationMinutes) !== null && _c !== void 0 ? _c : (at.durationMinutes = 0);
567
567
  return at;
568
568
  }
@@ -594,6 +594,18 @@ export class CaseFlowInstanceEngine extends BaseEngine {
594
594
  BlogPostDeleteOrUndeleteAsync(cftid, id, postID, del) {
595
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
596
  }
597
+ DcmtAddOrRemoveAsync(cftid, id, tid, did, remove) {
598
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowInstanceDcmtAddOrRemove(cftid, id, tid, did, remove ? 1 : 0)); });
599
+ }
600
+ DcmtRuleAddOrRemoveAsync(cftid, id, tid, min, max, remove) {
601
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowInstanceDcmtRuleAddOrRemove(cftid, id, tid, min, max, remove ? 1 : 0)); });
602
+ }
603
+ ParticipantsAddOrRemoveAsync(cftid, id, d, remove) {
604
+ 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)); });
605
+ }
606
+ ExecuteWorkItemOperationAsync(cftid, id, operation) {
607
+ return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.caseFlowInstanceExecuteWorkItemOperation(cftid, id, operation)); });
608
+ }
597
609
  }
598
610
  export class DataListEngine extends BaseEngine {
599
611
  static NewDataListDescriptor() { return this.Normalize(new DataListDescriptor(), true); }
@@ -1904,10 +1916,267 @@ export class JobEngine extends BaseEngine {
1904
1916
  return d;
1905
1917
  d.jobType = JobTypes.DcmtCreator;
1906
1918
  JobEngine.Normalize(d, isNewJob);
1919
+ d.source = this.DocumentSource_Normalize(d.source, isNewJob);
1920
+ if (d.operations === undefined)
1921
+ d.operations = [];
1922
+ else {
1923
+ for (const item of d.operations)
1924
+ this.DocumentOperation_Normalize(item, isNewJob);
1925
+ }
1907
1926
  if (d.outputAction === undefined)
1908
1927
  d.outputAction = isNewJob ? OutputActions.SubstituteFile : OutputActions.None;
1909
1928
  return d;
1910
1929
  }
1930
+ static NewDocumentSource() { return this.DocumentSource_Normalize(new DocumentSource(), true); }
1931
+ static DocumentSource_Normalize(d, isNew) {
1932
+ if (!d)
1933
+ d = new DocumentSource();
1934
+ if (d.type === undefined)
1935
+ d.type = isNew ? DocumentSourceTypes.FilePath : DocumentSourceTypes.None;
1936
+ if (d.format === undefined)
1937
+ d.format = isNew ? DocumentFormats.Word : DocumentFormats.None;
1938
+ if (d.qd !== undefined)
1939
+ SearchEngine.NormalizeQueryDescriptor(d.qd, isNew);
1940
+ return d;
1941
+ }
1942
+ static NewDocumentOperation() { return this.DocumentOperation_Normalize(new DocumentOperation(), true); }
1943
+ static DocumentOperation_Normalize(d, isNew) {
1944
+ if (!d)
1945
+ return;
1946
+ if (d.disabled === undefined)
1947
+ d.disabled = false;
1948
+ if (d.operationType === undefined)
1949
+ d.operationType = isNew ? DocumentOperations.FillFields : DocumentOperations.None;
1950
+ if (d.order === undefined)
1951
+ d.order = 0;
1952
+ d.theFillFieldsOperation = this.FillFieldsOperation_Normalize(d.theFillFieldsOperation, d.theFillFieldsOperation === undefined);
1953
+ d.theFillTableOperation = this.FillTableOperation_Normalize(d.theFillTableOperation, d.theFillTableOperation === undefined);
1954
+ d.theHeaderFooterOperation = this.HeaderFooterOperation_Normalize(d.theHeaderFooterOperation, d.theHeaderFooterOperation === undefined);
1955
+ d.theMergeDocumentsOperation = this.MergeDocumentsOperation_Normalize(d.theMergeDocumentsOperation, d.theMergeDocumentsOperation === undefined);
1956
+ d.theRasterizeElementsOperation = this.RasterizeElementsOperation_Normalize(d.theRasterizeElementsOperation, d.theRasterizeElementsOperation === undefined);
1957
+ d.theConvertToPdfOperation = this.ConvertToPdfOperation_Normalize(d.theConvertToPdfOperation);
1958
+ d.theAddDigitalSignatureFieldOperation = this.AddDigitalSignatureFieldOperation_Normalize(d.theAddDigitalSignatureFieldOperation);
1959
+ d.theApplyLetterheadOperation = this.ApplyLetterheadOperation_Normalize(d.theApplyLetterheadOperation);
1960
+ return d;
1961
+ }
1962
+ static FillFieldsOperation_Normalize(d, isNew) {
1963
+ if (!d)
1964
+ d = new FillFieldsOperation();
1965
+ if (d.strategy === undefined)
1966
+ d.strategy = isNew ? FillFieldsStrategies.MergeField : FillFieldsStrategies.None;
1967
+ if (d.fieldMappings === undefined)
1968
+ d.fieldMappings = [];
1969
+ else {
1970
+ for (const item of d.fieldMappings)
1971
+ this.DcmtCreator_MetadataMappingDescriptor_Normalize(item, isNew);
1972
+ }
1973
+ if (d.removeEmptyParagraphs === undefined)
1974
+ d.removeEmptyParagraphs = false;
1975
+ if (d.clearUnmatchedPlaceholders === undefined)
1976
+ d.clearUnmatchedPlaceholders = false;
1977
+ if (d.flattenFields === undefined)
1978
+ d.flattenFields = false;
1979
+ if (d.excludeTables === undefined)
1980
+ d.excludeTables = false;
1981
+ return d;
1982
+ }
1983
+ static FillTableOperation_Normalize(d, isNew) {
1984
+ if (!d)
1985
+ d = new FillTableOperation();
1986
+ if (d.templateRowIndex === undefined)
1987
+ d.templateRowIndex = 0;
1988
+ if (d.columnMappings === undefined)
1989
+ d.columnMappings = [];
1990
+ else {
1991
+ for (const item of d.columnMappings)
1992
+ this.DcmtCreator_MetadataMappingDescriptor_Normalize(item, isNew);
1993
+ }
1994
+ if (d.qd !== undefined)
1995
+ SearchEngine.NormalizeQueryDescriptor(d.qd, isNew);
1996
+ if (d.repeatHeaderOnNewPage === undefined)
1997
+ d.repeatHeaderOnNewPage = false;
1998
+ return d;
1999
+ }
2000
+ static HeaderFooterOperation_Normalize(d, isNew) {
2001
+ if (!d)
2002
+ d = new HeaderFooterOperation();
2003
+ if (d.isForHeader === undefined)
2004
+ d.isForHeader = !!isNew;
2005
+ if (d.contentType === undefined)
2006
+ d.contentType = isNew ? HeaderFooterContentTypes.Text : HeaderFooterContentTypes.None;
2007
+ d.textFormatting = this.TextFormatting_Normalize(d.textFormatting, d.textFormatting === undefined);
2008
+ d.imageSize = this.ElementSize_Normalize(d.imageSize);
2009
+ d.documentSource = this.DocumentSource_Normalize(d.documentSource, d.documentSource === undefined);
2010
+ if (d.firstPageOnly === undefined)
2011
+ d.firstPageOnly = false;
2012
+ return d;
2013
+ }
2014
+ static MergeDocumentsOperation_Normalize(d, isNew) {
2015
+ if (!d)
2016
+ d = new MergeDocumentsOperation();
2017
+ if (d.documentsToMerge === undefined)
2018
+ d.documentsToMerge = [];
2019
+ else {
2020
+ for (const item of d.documentsToMerge)
2021
+ this.DocumentSource_Normalize(item, isNew);
2022
+ }
2023
+ if (d.insertSectionBreak === undefined)
2024
+ d.insertSectionBreak = false;
2025
+ return d;
2026
+ }
2027
+ static RasterizeElementsOperation_Normalize(d, isNew) {
2028
+ if (!d)
2029
+ d = new RasterizeElementsOperation();
2030
+ if (d.elements === undefined)
2031
+ d.elements = [];
2032
+ else {
2033
+ for (const item of d.elements)
2034
+ this.RasterElement_Normalize(item, isNew);
2035
+ }
2036
+ if (d.fieldMappings === undefined)
2037
+ d.fieldMappings = [];
2038
+ else {
2039
+ for (const item of d.fieldMappings)
2040
+ this.DcmtCreator_MetadataMappingDescriptor_Normalize(item, isNew);
2041
+ }
2042
+ return d;
2043
+ }
2044
+ static ConvertToPdfOperation_Normalize(d) {
2045
+ if (!d)
2046
+ d = new ConvertToPdfOperation();
2047
+ return d;
2048
+ }
2049
+ static AddDigitalSignatureFieldOperation_Normalize(d) {
2050
+ if (!d)
2051
+ d = new AddDigitalSignatureFieldOperation();
2052
+ d.position = this.ElementPosition_Normalize(d.position, d.position === undefined);
2053
+ d.size = this.ElementSize_Normalize(d.size);
2054
+ if (d.required === undefined)
2055
+ d.required = false;
2056
+ return d;
2057
+ }
2058
+ static ApplyLetterheadOperation_Normalize(d) {
2059
+ if (!d)
2060
+ d = new ApplyLetterheadOperation();
2061
+ d.letterheadSource = this.DocumentSource_Normalize(d.letterheadSource, d.letterheadSource === undefined);
2062
+ if (d.copyPageMargins === undefined)
2063
+ d.copyPageMargins = false;
2064
+ return d;
2065
+ }
2066
+ static NewRasterElement() { return this.RasterElement_Normalize(new RasterElement(), true); }
2067
+ static RasterElement_Normalize(d, isNew) {
2068
+ if (!d)
2069
+ return;
2070
+ if (d.disabled === undefined)
2071
+ d.disabled = false;
2072
+ if (d.required === undefined)
2073
+ d.required = false;
2074
+ if (d.editable === undefined)
2075
+ d.editable = false;
2076
+ if (d.rasterType === undefined)
2077
+ d.rasterType = DocumentOperations.None;
2078
+ d.position = this.ElementPosition_Normalize(d.position, d.position === undefined && isNew);
2079
+ d.theTextElement = this.TextElement_Normalize(d.theTextElement);
2080
+ d.theImageElement = this.ImageElement_Normalize(d.theImageElement);
2081
+ d.theCheckboxElement = this.CheckboxElement_Normalize(d.theCheckboxElement);
2082
+ d.theRadioButtonElement = this.RadioButtonElement_Normalize(d.theRadioButtonElement);
2083
+ d.theLineElement = this.LineElement_Normalize(d.theLineElement);
2084
+ d.theRectangleElement = this.RectangleElement_Normalize(d.theRectangleElement);
2085
+ return d;
2086
+ }
2087
+ static TextElement_Normalize(d) {
2088
+ if (!d)
2089
+ d = new TextElement();
2090
+ d.formatting = this.TextFormatting_Normalize(d.formatting, d.formatting === undefined);
2091
+ return d;
2092
+ }
2093
+ static ImageElement_Normalize(d) {
2094
+ if (!d)
2095
+ d = new ImageElement();
2096
+ d.size = this.ElementSize_Normalize(d.size);
2097
+ return d;
2098
+ }
2099
+ static CheckboxElement_Normalize(d) {
2100
+ if (!d)
2101
+ d = new CheckboxElement();
2102
+ if (d.isChecked === undefined)
2103
+ d.isChecked = false;
2104
+ if (d.size === undefined)
2105
+ d.size = 0;
2106
+ return d;
2107
+ }
2108
+ static RadioButtonElement_Normalize(d) {
2109
+ if (!d)
2110
+ d = new RadioButtonElement();
2111
+ if (d.isSelected === undefined)
2112
+ d.isSelected = false;
2113
+ if (d.radius === undefined)
2114
+ d.radius = 0;
2115
+ return d;
2116
+ }
2117
+ static LineElement_Normalize(d) {
2118
+ if (!d)
2119
+ d = new LineElement();
2120
+ d.endPosition = this.ElementPosition_Normalize(d.endPosition, d.endPosition === undefined);
2121
+ d.style = this.LineStyle_Normalize(d.style, d.style === undefined);
2122
+ return d;
2123
+ }
2124
+ static RectangleElement_Normalize(d) {
2125
+ if (!d)
2126
+ d = new RectangleElement();
2127
+ d.size = this.ElementSize_Normalize(d.size);
2128
+ d.style = this.LineStyle_Normalize(d.style, d.style === undefined);
2129
+ if (d.filled === undefined)
2130
+ d.filled = false;
2131
+ return d;
2132
+ }
2133
+ static ElementPosition_Normalize(d, isNew) {
2134
+ if (!d)
2135
+ d = new ElementPosition();
2136
+ if (d.anchorOccurrence === undefined)
2137
+ d.anchorOccurrence = isNew ? 1 : 0;
2138
+ if (d.x === undefined)
2139
+ d.x = 0;
2140
+ if (d.y === undefined)
2141
+ d.y = 0;
2142
+ return d;
2143
+ }
2144
+ static ElementSize_Normalize(d) {
2145
+ if (!d)
2146
+ d = new ElementSize();
2147
+ if (d.width === undefined)
2148
+ d.width = 0;
2149
+ if (d.height === undefined)
2150
+ d.height = 0;
2151
+ return d;
2152
+ }
2153
+ static LineStyle_Normalize(d, isNew) {
2154
+ if (!d)
2155
+ d = new LineStyle();
2156
+ if (d.thickness === undefined)
2157
+ d.thickness = isNew ? 1 : 0;
2158
+ return d;
2159
+ }
2160
+ static TextFormatting_Normalize(d, isNew) {
2161
+ if (!d)
2162
+ d = new TextFormatting();
2163
+ if (d.fontSize === undefined)
2164
+ d.fontSize = isNew ? 10 : 0;
2165
+ if (d.bold === undefined)
2166
+ d.bold = false;
2167
+ if (d.italic === undefined)
2168
+ d.italic = false;
2169
+ if (d.alignment === undefined)
2170
+ d.alignment = isNew ? TextAlignments.Left : TextAlignments.None;
2171
+ return d;
2172
+ }
2173
+ static NewDcmtCreator_MetadataMappingDescriptor() { return this.DcmtCreator_MetadataMappingDescriptor_Normalize(new DcmtCreator_MetadataMappingDescriptor(), true); }
2174
+ static DcmtCreator_MetadataMappingDescriptor_Normalize(d, isNew) {
2175
+ if (!d)
2176
+ return;
2177
+ JobEngine.MetadataMappingDescriptor_Normalize(d, isNew);
2178
+ return d;
2179
+ }
1911
2180
  DcmtDeleter_CreateAsync(d) {
1912
2181
  return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.jobDcmtDeleterCreate(d)); });
1913
2182
  }
@@ -2740,6 +3009,7 @@ export class JobEngine extends BaseEngine {
2740
3009
  d.removeDigitalSign = false;
2741
3010
  d.addPassword = false;
2742
3011
  d.maxSize = 0;
3012
+ d.addPDFPassword = false;
2743
3013
  return d;
2744
3014
  }
2745
3015
  static MailBox_MailSender_Normalize(mb, isNew) {