@topconsultnpm/sdk-ts 6.22.0-dev1.10 → 6.22.0-dev1.12

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 } from "./openAPIs/TopMediaServiceClient";
14
14
  class BaseEngine {
15
15
  constructor(tms) {
16
16
  this.TopMediaSession = tms;
@@ -594,6 +594,9 @@ 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
+ 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
+ }
597
600
  }
598
601
  export class DataListEngine extends BaseEngine {
599
602
  static NewDataListDescriptor() { return this.Normalize(new DataListDescriptor(), true); }
@@ -1904,10 +1907,267 @@ export class JobEngine extends BaseEngine {
1904
1907
  return d;
1905
1908
  d.jobType = JobTypes.DcmtCreator;
1906
1909
  JobEngine.Normalize(d, isNewJob);
1910
+ d.source = this.DocumentSource_Normalize(d.source, isNewJob);
1911
+ if (d.operations === undefined)
1912
+ d.operations = [];
1913
+ else {
1914
+ for (const item of d.operations)
1915
+ this.DocumentOperation_Normalize(item, isNewJob);
1916
+ }
1907
1917
  if (d.outputAction === undefined)
1908
1918
  d.outputAction = isNewJob ? OutputActions.SubstituteFile : OutputActions.None;
1909
1919
  return d;
1910
1920
  }
1921
+ static NewDocumentSource() { return this.DocumentSource_Normalize(new DocumentSource(), true); }
1922
+ static DocumentSource_Normalize(d, isNew) {
1923
+ if (!d)
1924
+ d = new DocumentSource();
1925
+ if (d.type === undefined)
1926
+ d.type = isNew ? DocumentSourceTypes.FilePath : DocumentSourceTypes.None;
1927
+ if (d.format === undefined)
1928
+ d.format = isNew ? DocumentFormats.Word : DocumentFormats.None;
1929
+ if (d.qd !== undefined)
1930
+ SearchEngine.NormalizeQueryDescriptor(d.qd, isNew);
1931
+ return d;
1932
+ }
1933
+ static NewDocumentOperation() { return this.DocumentOperation_Normalize(new DocumentOperation(), true); }
1934
+ static DocumentOperation_Normalize(d, isNew) {
1935
+ if (!d)
1936
+ return;
1937
+ if (d.disabled === undefined)
1938
+ d.disabled = false;
1939
+ if (d.operationType === undefined)
1940
+ d.operationType = isNew ? DocumentOperations.FillFields : DocumentOperations.None;
1941
+ if (d.order === undefined)
1942
+ d.order = 0;
1943
+ d.theFillFieldsOperation = this.FillFieldsOperation_Normalize(d.theFillFieldsOperation, d.theFillFieldsOperation === undefined);
1944
+ d.theFillTableOperation = this.FillTableOperation_Normalize(d.theFillTableOperation, d.theFillTableOperation === undefined);
1945
+ d.theHeaderFooterOperation = this.HeaderFooterOperation_Normalize(d.theHeaderFooterOperation, d.theHeaderFooterOperation === undefined);
1946
+ d.theMergeDocumentsOperation = this.MergeDocumentsOperation_Normalize(d.theMergeDocumentsOperation, d.theMergeDocumentsOperation === undefined);
1947
+ d.theRasterizeElementsOperation = this.RasterizeElementsOperation_Normalize(d.theRasterizeElementsOperation, d.theRasterizeElementsOperation === undefined);
1948
+ d.theConvertToPdfOperation = this.ConvertToPdfOperation_Normalize(d.theConvertToPdfOperation);
1949
+ d.theAddDigitalSignatureFieldOperation = this.AddDigitalSignatureFieldOperation_Normalize(d.theAddDigitalSignatureFieldOperation);
1950
+ d.theApplyLetterheadOperation = this.ApplyLetterheadOperation_Normalize(d.theApplyLetterheadOperation);
1951
+ return d;
1952
+ }
1953
+ static FillFieldsOperation_Normalize(d, isNew) {
1954
+ if (!d)
1955
+ d = new FillFieldsOperation();
1956
+ if (d.strategy === undefined)
1957
+ d.strategy = isNew ? FillFieldsStrategies.MergeField : FillFieldsStrategies.None;
1958
+ if (d.fieldMappings === undefined)
1959
+ d.fieldMappings = [];
1960
+ else {
1961
+ for (const item of d.fieldMappings)
1962
+ this.DcmtCreator_MetadataMappingDescriptor_Normalize(item, isNew);
1963
+ }
1964
+ if (d.removeEmptyParagraphs === undefined)
1965
+ d.removeEmptyParagraphs = false;
1966
+ if (d.clearUnmatchedPlaceholders === undefined)
1967
+ d.clearUnmatchedPlaceholders = false;
1968
+ if (d.flattenFields === undefined)
1969
+ d.flattenFields = false;
1970
+ if (d.excludeTables === undefined)
1971
+ d.excludeTables = false;
1972
+ return d;
1973
+ }
1974
+ static FillTableOperation_Normalize(d, isNew) {
1975
+ if (!d)
1976
+ d = new FillTableOperation();
1977
+ if (d.templateRowIndex === undefined)
1978
+ d.templateRowIndex = 0;
1979
+ if (d.columnMappings === undefined)
1980
+ d.columnMappings = [];
1981
+ else {
1982
+ for (const item of d.columnMappings)
1983
+ this.DcmtCreator_MetadataMappingDescriptor_Normalize(item, isNew);
1984
+ }
1985
+ if (d.qd !== undefined)
1986
+ SearchEngine.NormalizeQueryDescriptor(d.qd, isNew);
1987
+ if (d.repeatHeaderOnNewPage === undefined)
1988
+ d.repeatHeaderOnNewPage = false;
1989
+ return d;
1990
+ }
1991
+ static HeaderFooterOperation_Normalize(d, isNew) {
1992
+ if (!d)
1993
+ d = new HeaderFooterOperation();
1994
+ if (d.isForHeader === undefined)
1995
+ d.isForHeader = !!isNew;
1996
+ if (d.contentType === undefined)
1997
+ d.contentType = isNew ? HeaderFooterContentTypes.Text : HeaderFooterContentTypes.None;
1998
+ d.textFormatting = this.TextFormatting_Normalize(d.textFormatting, d.textFormatting === undefined);
1999
+ d.imageSize = this.ElementSize_Normalize(d.imageSize);
2000
+ d.documentSource = this.DocumentSource_Normalize(d.documentSource, d.documentSource === undefined);
2001
+ if (d.firstPageOnly === undefined)
2002
+ d.firstPageOnly = false;
2003
+ return d;
2004
+ }
2005
+ static MergeDocumentsOperation_Normalize(d, isNew) {
2006
+ if (!d)
2007
+ d = new MergeDocumentsOperation();
2008
+ if (d.documentsToMerge === undefined)
2009
+ d.documentsToMerge = [];
2010
+ else {
2011
+ for (const item of d.documentsToMerge)
2012
+ this.DocumentSource_Normalize(item, isNew);
2013
+ }
2014
+ if (d.insertSectionBreak === undefined)
2015
+ d.insertSectionBreak = false;
2016
+ return d;
2017
+ }
2018
+ static RasterizeElementsOperation_Normalize(d, isNew) {
2019
+ if (!d)
2020
+ d = new RasterizeElementsOperation();
2021
+ if (d.elements === undefined)
2022
+ d.elements = [];
2023
+ else {
2024
+ for (const item of d.elements)
2025
+ this.RasterElement_Normalize(item, isNew);
2026
+ }
2027
+ if (d.fieldMappings === undefined)
2028
+ d.fieldMappings = [];
2029
+ else {
2030
+ for (const item of d.fieldMappings)
2031
+ this.DcmtCreator_MetadataMappingDescriptor_Normalize(item, isNew);
2032
+ }
2033
+ return d;
2034
+ }
2035
+ static ConvertToPdfOperation_Normalize(d) {
2036
+ if (!d)
2037
+ d = new ConvertToPdfOperation();
2038
+ return d;
2039
+ }
2040
+ static AddDigitalSignatureFieldOperation_Normalize(d) {
2041
+ if (!d)
2042
+ d = new AddDigitalSignatureFieldOperation();
2043
+ d.position = this.ElementPosition_Normalize(d.position, d.position === undefined);
2044
+ d.size = this.ElementSize_Normalize(d.size);
2045
+ if (d.required === undefined)
2046
+ d.required = false;
2047
+ return d;
2048
+ }
2049
+ static ApplyLetterheadOperation_Normalize(d) {
2050
+ if (!d)
2051
+ d = new ApplyLetterheadOperation();
2052
+ d.letterheadSource = this.DocumentSource_Normalize(d.letterheadSource, d.letterheadSource === undefined);
2053
+ if (d.copyPageMargins === undefined)
2054
+ d.copyPageMargins = false;
2055
+ return d;
2056
+ }
2057
+ static NewRasterElement() { return this.RasterElement_Normalize(new RasterElement(), true); }
2058
+ static RasterElement_Normalize(d, isNew) {
2059
+ if (!d)
2060
+ return;
2061
+ if (d.disabled === undefined)
2062
+ d.disabled = false;
2063
+ if (d.required === undefined)
2064
+ d.required = false;
2065
+ if (d.editable === undefined)
2066
+ d.editable = false;
2067
+ if (d.rasterType === undefined)
2068
+ d.rasterType = DocumentOperations.None;
2069
+ d.position = this.ElementPosition_Normalize(d.position, d.position === undefined && isNew);
2070
+ d.theTextElement = this.TextElement_Normalize(d.theTextElement);
2071
+ d.theImageElement = this.ImageElement_Normalize(d.theImageElement);
2072
+ d.theCheckboxElement = this.CheckboxElement_Normalize(d.theCheckboxElement);
2073
+ d.theRadioButtonElement = this.RadioButtonElement_Normalize(d.theRadioButtonElement);
2074
+ d.theLineElement = this.LineElement_Normalize(d.theLineElement);
2075
+ d.theRectangleElement = this.RectangleElement_Normalize(d.theRectangleElement);
2076
+ return d;
2077
+ }
2078
+ static TextElement_Normalize(d) {
2079
+ if (!d)
2080
+ d = new TextElement();
2081
+ d.formatting = this.TextFormatting_Normalize(d.formatting, d.formatting === undefined);
2082
+ return d;
2083
+ }
2084
+ static ImageElement_Normalize(d) {
2085
+ if (!d)
2086
+ d = new ImageElement();
2087
+ d.size = this.ElementSize_Normalize(d.size);
2088
+ return d;
2089
+ }
2090
+ static CheckboxElement_Normalize(d) {
2091
+ if (!d)
2092
+ d = new CheckboxElement();
2093
+ if (d.isChecked === undefined)
2094
+ d.isChecked = false;
2095
+ if (d.size === undefined)
2096
+ d.size = 0;
2097
+ return d;
2098
+ }
2099
+ static RadioButtonElement_Normalize(d) {
2100
+ if (!d)
2101
+ d = new RadioButtonElement();
2102
+ if (d.isSelected === undefined)
2103
+ d.isSelected = false;
2104
+ if (d.radius === undefined)
2105
+ d.radius = 0;
2106
+ return d;
2107
+ }
2108
+ static LineElement_Normalize(d) {
2109
+ if (!d)
2110
+ d = new LineElement();
2111
+ d.endPosition = this.ElementPosition_Normalize(d.endPosition, d.endPosition === undefined);
2112
+ d.style = this.LineStyle_Normalize(d.style, d.style === undefined);
2113
+ return d;
2114
+ }
2115
+ static RectangleElement_Normalize(d) {
2116
+ if (!d)
2117
+ d = new RectangleElement();
2118
+ d.size = this.ElementSize_Normalize(d.size);
2119
+ d.style = this.LineStyle_Normalize(d.style, d.style === undefined);
2120
+ if (d.filled === undefined)
2121
+ d.filled = false;
2122
+ return d;
2123
+ }
2124
+ static ElementPosition_Normalize(d, isNew) {
2125
+ if (!d)
2126
+ d = new ElementPosition();
2127
+ if (d.anchorOccurrence === undefined)
2128
+ d.anchorOccurrence = isNew ? 1 : 0;
2129
+ if (d.x === undefined)
2130
+ d.x = 0;
2131
+ if (d.y === undefined)
2132
+ d.y = 0;
2133
+ return d;
2134
+ }
2135
+ static ElementSize_Normalize(d) {
2136
+ if (!d)
2137
+ d = new ElementSize();
2138
+ if (d.width === undefined)
2139
+ d.width = 0;
2140
+ if (d.height === undefined)
2141
+ d.height = 0;
2142
+ return d;
2143
+ }
2144
+ static LineStyle_Normalize(d, isNew) {
2145
+ if (!d)
2146
+ d = new LineStyle();
2147
+ if (d.thickness === undefined)
2148
+ d.thickness = isNew ? 1 : 0;
2149
+ return d;
2150
+ }
2151
+ static TextFormatting_Normalize(d, isNew) {
2152
+ if (!d)
2153
+ d = new TextFormatting();
2154
+ if (d.fontSize === undefined)
2155
+ d.fontSize = isNew ? 10 : 0;
2156
+ if (d.bold === undefined)
2157
+ d.bold = false;
2158
+ if (d.italic === undefined)
2159
+ d.italic = false;
2160
+ if (d.alignment === undefined)
2161
+ d.alignment = isNew ? TextAlignments.Left : TextAlignments.None;
2162
+ return d;
2163
+ }
2164
+ static NewDcmtCreator_MetadataMappingDescriptor() { return this.DcmtCreator_MetadataMappingDescriptor_Normalize(new DcmtCreator_MetadataMappingDescriptor(), true); }
2165
+ static DcmtCreator_MetadataMappingDescriptor_Normalize(d, isNew) {
2166
+ if (!d)
2167
+ return;
2168
+ JobEngine.MetadataMappingDescriptor_Normalize(d, isNew);
2169
+ return d;
2170
+ }
1911
2171
  DcmtDeleter_CreateAsync(d) {
1912
2172
  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
2173
  }