@topconsultnpm/sdk-ts 6.22.0-dev1.8 → 6.22.0-gp17-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.
- package/dist/lib/Engine.js +265 -2
- package/dist/lib/TopMediaSession.js +1 -1
- package/dist/lib/openAPIs/TopMediaServiceClient.js +1 -1
- package/dist/types/Engine.d.ts +31 -1
- package/dist/types/TopMediaSession.d.ts +2 -2
- package/dist/types/openAPIs/TopMediaServiceClient.d.ts +9 -3
- package/package.json +30 -30
package/dist/lib/Engine.js
CHANGED
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import { ProgressCallbackData } from "./TopMediaServiceClientEx";
|
|
11
11
|
import { SDK_Globals } from "./helper";
|
|
12
12
|
import { StandardHelper } from "./helper/StandardHelper";
|
|
13
|
-
import { ArchiveModes, AreaDescriptor, AreaParams, BarcodeArchiverJobDescriptor, BarcodeDetectionDescriptor, Barcode_Colors, Barcode_Orientations, DcmtInputTypes, BasketTypeDescriptor, BatchUpdaterJobDescriptor, COSCheckerJobDescriptor, CassettoDoganaleJobDescriptor, CheckSequenceJobDescriptor, CultureIDs, DateTimeFormats, DcmtConverterJobDescriptor, DcmtDeleterJobDescriptor, DcmtDeleter_Actions, DcmtNoteJobDescriptor, DcmtPrinterJobDescriptor, DcmtTypeDescriptor, DiskDescriptor, FEAttacherJobDescriptor, FECreatorTxtJobDescriptor, FEDetacherJobDescriptor, FESenderWsJobDescriptor, FESplitterJobDescriptor, FEValidatorJobDescriptor, FileArchiverJobDescriptor, FileArchiver_ArchiveDescriptor, FileArchiver_ArchiveItemDescriptor, FileArchiver_InputTypes, FileCheckerJobDescriptor, FileDescriptor, FileExecJobDescriptor, FileExec_CheckFileModes, FileExportJobDescriptor, FileFormats, FileMoverJobDescriptor, FileTransferModes, FromItem, InputOrders, InvoiceRetrieveFormats, JobTypes, LexJobDescriptor, LinkerJobDescriptor, MailArchiverJobDescriptor, MailQueryJobDescriptor, MailSenderJobDescriptor, MigrationJobDescriptor, NSOCreatorTxtJobDescriptor, NSODetacherJobDescriptor, NSOSenderWsJobDescriptor, NSOValidatorJobDescriptor, OrderRetrieveFormats, OutputTypes, PDFArchiverJobDescriptor, PdDCreatorJobDescriptor, PdDTypes, PdVArchiverJobDescriptor, PdVQueryJobDescriptor, PdVSenderJobDescriptor, PeppolQueryJobDescriptor, PeppolSenderJobDescriptor, QueryDescriptor, ReplicatorJobDescriptor, SAPAlignerJobDescriptor, SAPBarcodeJobDescriptor, SAPDataReaderJobDescriptor, SAPDataWriterJobDescriptor, SignerJobDescriptor, Updater_UpdateDescriptor, SourceNotExistActions, SpoolArchiverJobDescriptor, UpdateModes, UpdaterJobDescriptor, Updater_MetadataMappingDescriptor, Updater_UpdateItemDescriptor, FileInputTypes, BarcodeArchiver_SplittingDescriptor, BarcodeArchiver_Splitting_Modes, BooleanExpressionDescriptor, BarcodeArchiver_ArchiveDescriptor, FileMover_Operations, SourceFilesFilters, FileRenameOptions, DestFileAlreadyExistActions, SplittingDescriptor, PDFArchiver_ArchiveDescriptor, HttpAddressDescriptor, Replicator_ArchiveDescriptor, BasketDescriptor, CommandSetDescriptor, PDFCommandSetDescriptor, ProcessDescriptor, ScheduleDescriptor, UserDescriptor, UserLevels, MetadataDataTypes, PreProc_Strategies, DataListDescriptor, ProcessRunAsModes, HistLogPurgeModes, ScheduleTypes, ScheduleOneTime, SignCertDescriptor, ScheduleDailyFrequency, ScheduleDailyOccursModes, ScheduleTimeUnits, ScheduleDuration, ScheduleRecurringMonthly, ScheduleRecurringWeekly, ScheduleRecurringDescriptor, ScheduleRecurringTypes, ProcessNotificationDescriptor, UpsertDescriptor, UpsertActions, UpsertSearchCriterias, BarcodeArchiver_ArchiveItemDescriptor, BarcodeArchiver_ArchiveMappingDescriptor, BarcodeArchiver_MetadataMappingDescriptor, MappingModes, MetadataMappingDescriptor, FileArchiver_ArchiveMappingDescriptor, CommandBaseDescriptor, CommandTypes, PadCommandDescriptor, ConcatCommandDescriptor, FormatCommandDescriptor, LeftSubstringCommandDescriptor, ReplaceCommandDescriptor, RightSubstringCommandDescriptor, SplitCommandDescriptor, TrimCommandDescriptor, SubstringCommandDescriptor, PDFCommandBaseDescriptor, PDFCommandTypes, PDFAddTextCommandDescriptor, PDFAddImageCommandDescriptor, PDFRemovePagesCommandDescriptor, PDFRemovePagesModes, COSDocTypes, ExpModes, AgentRoles, GroupingDescriptor, GroupingModes, SecureOperDescriptor, SignOperExDescriptor, SignFormats, TimeStampOperExDescriptor, PDFArchiver_ArchiveItemDescriptor, PDFArchiver_ArchiveMappingDescriptor, QueryFunctions, SelectItemVisibilities, QueryOperators, PdVCheckDescriptor, PDFTextItemDescriptor, PDFTextItemScopes, XYModes, SavedQueryDescriptor, Replicator_ArchiveItemDescriptor, Replicator_ArchiveMappingDescriptor, DossierDescriptor, WFDescriptor, TaskDescriptor, Updater_InputTypes, RemoveInputStrategies, SharingModes, RelationDescriptor, RelationTypes, NoDataActions, PrinterDescriptor, PagesRange, PrintOrientations, RetrieveFileOptions, DcmtOpers, MetadataValueDescriptor, MailBoxDescriptor, ReadingMailProtocols, IMAPDescriptor, SendingMailProtocols, MailAuthTypes, SMTPDescriptor, GraphAPIDescriptor, ProcessedItemActions, MailArchiver_FolderDescriptor, ArchiveDcmtDescriptor, MailSender_MailFormatDescriptor, MailArchiver_WholeMailCfgDescriptor, MailSender_TracingDescriptor, MailSender_GroupingDescriptor, MailSender_MailPropertyMappingDescriptor, MailSender_AttachmentCfgDescriptor, MailSender_AttachCompressModes, MailArchiver_WholeMailArchiveModes, MailArchiver_ArchiveMappingDescriptor, MailSender_GroupingModes, MailArchiver_AttachmentCfgDescriptor, Linker_OperTypes, MailArchiver_AttachmentCfgItemDescriptor, MailArchiver_MetadataMappingDescriptor, MailArchiver_ParametricValueTypes, MailMessageProperties, PeppolTracingDescriptor, PeppolDescriptor, CassettoDoganalePlusJobDescriptor, NumeratorDescriptor, GroupDescriptor, FEDistillerJobDescriptor, MailQuery_ArchiveItemDescriptor, MetadataDescriptor, IndexDescriptor, ArchiveConstraints, EncryptionModes, MembershipConstraints, UserTypes, CassettoFiscaleSenderJobDescriptor, CassettoFiscaleQueryJobDescriptor, MetadataDataDomains, DataListViewModes, SAPLoginDescriptor, SAPLoginModes, PdGs, Task_States, Priorities, AlreadySharedActions, DossierTypeDescriptor, WFTypes, WFPartRoles, WFSources, WFEvents, DossierDetail, Ds_ClassIDs, LayoutCustomButtonModes, CDPSearchModes, CassettoDoganaleDistillerJobDescriptor, CDFileTypes, DcmtCreatorJobDescriptor, OcrSixJobDescriptor, OcrColumnsInfo, OcrColumnCommand, OcrCommandTypes, OutputActions, CDPBrowsers, JobFailureActions, CaseFlowTemplateDescriptor, CF_FlowModes, 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;
|
|
@@ -518,7 +518,7 @@ export class CaseFlowInstanceEngine extends BaseEngine {
|
|
|
518
518
|
var _a, _b;
|
|
519
519
|
if (!p)
|
|
520
520
|
return;
|
|
521
|
-
(_a = p.
|
|
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;
|
|
@@ -594,6 +594,12 @@ 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
|
+
ParticipantsAddOrRemoveAsync(cftid, id, d, remove) {
|
|
601
|
+
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)); });
|
|
602
|
+
}
|
|
597
603
|
}
|
|
598
604
|
export class DataListEngine extends BaseEngine {
|
|
599
605
|
static NewDataListDescriptor() { return this.Normalize(new DataListDescriptor(), true); }
|
|
@@ -1904,10 +1910,267 @@ export class JobEngine extends BaseEngine {
|
|
|
1904
1910
|
return d;
|
|
1905
1911
|
d.jobType = JobTypes.DcmtCreator;
|
|
1906
1912
|
JobEngine.Normalize(d, isNewJob);
|
|
1913
|
+
d.source = this.DocumentSource_Normalize(d.source, isNewJob);
|
|
1914
|
+
if (d.operations === undefined)
|
|
1915
|
+
d.operations = [];
|
|
1916
|
+
else {
|
|
1917
|
+
for (const item of d.operations)
|
|
1918
|
+
this.DocumentOperation_Normalize(item, isNewJob);
|
|
1919
|
+
}
|
|
1907
1920
|
if (d.outputAction === undefined)
|
|
1908
1921
|
d.outputAction = isNewJob ? OutputActions.SubstituteFile : OutputActions.None;
|
|
1909
1922
|
return d;
|
|
1910
1923
|
}
|
|
1924
|
+
static NewDocumentSource() { return this.DocumentSource_Normalize(new DocumentSource(), true); }
|
|
1925
|
+
static DocumentSource_Normalize(d, isNew) {
|
|
1926
|
+
if (!d)
|
|
1927
|
+
d = new DocumentSource();
|
|
1928
|
+
if (d.type === undefined)
|
|
1929
|
+
d.type = isNew ? DocumentSourceTypes.FilePath : DocumentSourceTypes.None;
|
|
1930
|
+
if (d.format === undefined)
|
|
1931
|
+
d.format = isNew ? DocumentFormats.Word : DocumentFormats.None;
|
|
1932
|
+
if (d.qd !== undefined)
|
|
1933
|
+
SearchEngine.NormalizeQueryDescriptor(d.qd, isNew);
|
|
1934
|
+
return d;
|
|
1935
|
+
}
|
|
1936
|
+
static NewDocumentOperation() { return this.DocumentOperation_Normalize(new DocumentOperation(), true); }
|
|
1937
|
+
static DocumentOperation_Normalize(d, isNew) {
|
|
1938
|
+
if (!d)
|
|
1939
|
+
return;
|
|
1940
|
+
if (d.disabled === undefined)
|
|
1941
|
+
d.disabled = false;
|
|
1942
|
+
if (d.operationType === undefined)
|
|
1943
|
+
d.operationType = isNew ? DocumentOperations.FillFields : DocumentOperations.None;
|
|
1944
|
+
if (d.order === undefined)
|
|
1945
|
+
d.order = 0;
|
|
1946
|
+
d.theFillFieldsOperation = this.FillFieldsOperation_Normalize(d.theFillFieldsOperation, d.theFillFieldsOperation === undefined);
|
|
1947
|
+
d.theFillTableOperation = this.FillTableOperation_Normalize(d.theFillTableOperation, d.theFillTableOperation === undefined);
|
|
1948
|
+
d.theHeaderFooterOperation = this.HeaderFooterOperation_Normalize(d.theHeaderFooterOperation, d.theHeaderFooterOperation === undefined);
|
|
1949
|
+
d.theMergeDocumentsOperation = this.MergeDocumentsOperation_Normalize(d.theMergeDocumentsOperation, d.theMergeDocumentsOperation === undefined);
|
|
1950
|
+
d.theRasterizeElementsOperation = this.RasterizeElementsOperation_Normalize(d.theRasterizeElementsOperation, d.theRasterizeElementsOperation === undefined);
|
|
1951
|
+
d.theConvertToPdfOperation = this.ConvertToPdfOperation_Normalize(d.theConvertToPdfOperation);
|
|
1952
|
+
d.theAddDigitalSignatureFieldOperation = this.AddDigitalSignatureFieldOperation_Normalize(d.theAddDigitalSignatureFieldOperation);
|
|
1953
|
+
d.theApplyLetterheadOperation = this.ApplyLetterheadOperation_Normalize(d.theApplyLetterheadOperation);
|
|
1954
|
+
return d;
|
|
1955
|
+
}
|
|
1956
|
+
static FillFieldsOperation_Normalize(d, isNew) {
|
|
1957
|
+
if (!d)
|
|
1958
|
+
d = new FillFieldsOperation();
|
|
1959
|
+
if (d.strategy === undefined)
|
|
1960
|
+
d.strategy = isNew ? FillFieldsStrategies.MergeField : FillFieldsStrategies.None;
|
|
1961
|
+
if (d.fieldMappings === undefined)
|
|
1962
|
+
d.fieldMappings = [];
|
|
1963
|
+
else {
|
|
1964
|
+
for (const item of d.fieldMappings)
|
|
1965
|
+
this.DcmtCreator_MetadataMappingDescriptor_Normalize(item, isNew);
|
|
1966
|
+
}
|
|
1967
|
+
if (d.removeEmptyParagraphs === undefined)
|
|
1968
|
+
d.removeEmptyParagraphs = false;
|
|
1969
|
+
if (d.clearUnmatchedPlaceholders === undefined)
|
|
1970
|
+
d.clearUnmatchedPlaceholders = false;
|
|
1971
|
+
if (d.flattenFields === undefined)
|
|
1972
|
+
d.flattenFields = false;
|
|
1973
|
+
if (d.excludeTables === undefined)
|
|
1974
|
+
d.excludeTables = false;
|
|
1975
|
+
return d;
|
|
1976
|
+
}
|
|
1977
|
+
static FillTableOperation_Normalize(d, isNew) {
|
|
1978
|
+
if (!d)
|
|
1979
|
+
d = new FillTableOperation();
|
|
1980
|
+
if (d.templateRowIndex === undefined)
|
|
1981
|
+
d.templateRowIndex = 0;
|
|
1982
|
+
if (d.columnMappings === undefined)
|
|
1983
|
+
d.columnMappings = [];
|
|
1984
|
+
else {
|
|
1985
|
+
for (const item of d.columnMappings)
|
|
1986
|
+
this.DcmtCreator_MetadataMappingDescriptor_Normalize(item, isNew);
|
|
1987
|
+
}
|
|
1988
|
+
if (d.qd !== undefined)
|
|
1989
|
+
SearchEngine.NormalizeQueryDescriptor(d.qd, isNew);
|
|
1990
|
+
if (d.repeatHeaderOnNewPage === undefined)
|
|
1991
|
+
d.repeatHeaderOnNewPage = false;
|
|
1992
|
+
return d;
|
|
1993
|
+
}
|
|
1994
|
+
static HeaderFooterOperation_Normalize(d, isNew) {
|
|
1995
|
+
if (!d)
|
|
1996
|
+
d = new HeaderFooterOperation();
|
|
1997
|
+
if (d.isForHeader === undefined)
|
|
1998
|
+
d.isForHeader = !!isNew;
|
|
1999
|
+
if (d.contentType === undefined)
|
|
2000
|
+
d.contentType = isNew ? HeaderFooterContentTypes.Text : HeaderFooterContentTypes.None;
|
|
2001
|
+
d.textFormatting = this.TextFormatting_Normalize(d.textFormatting, d.textFormatting === undefined);
|
|
2002
|
+
d.imageSize = this.ElementSize_Normalize(d.imageSize);
|
|
2003
|
+
d.documentSource = this.DocumentSource_Normalize(d.documentSource, d.documentSource === undefined);
|
|
2004
|
+
if (d.firstPageOnly === undefined)
|
|
2005
|
+
d.firstPageOnly = false;
|
|
2006
|
+
return d;
|
|
2007
|
+
}
|
|
2008
|
+
static MergeDocumentsOperation_Normalize(d, isNew) {
|
|
2009
|
+
if (!d)
|
|
2010
|
+
d = new MergeDocumentsOperation();
|
|
2011
|
+
if (d.documentsToMerge === undefined)
|
|
2012
|
+
d.documentsToMerge = [];
|
|
2013
|
+
else {
|
|
2014
|
+
for (const item of d.documentsToMerge)
|
|
2015
|
+
this.DocumentSource_Normalize(item, isNew);
|
|
2016
|
+
}
|
|
2017
|
+
if (d.insertSectionBreak === undefined)
|
|
2018
|
+
d.insertSectionBreak = false;
|
|
2019
|
+
return d;
|
|
2020
|
+
}
|
|
2021
|
+
static RasterizeElementsOperation_Normalize(d, isNew) {
|
|
2022
|
+
if (!d)
|
|
2023
|
+
d = new RasterizeElementsOperation();
|
|
2024
|
+
if (d.elements === undefined)
|
|
2025
|
+
d.elements = [];
|
|
2026
|
+
else {
|
|
2027
|
+
for (const item of d.elements)
|
|
2028
|
+
this.RasterElement_Normalize(item, isNew);
|
|
2029
|
+
}
|
|
2030
|
+
if (d.fieldMappings === undefined)
|
|
2031
|
+
d.fieldMappings = [];
|
|
2032
|
+
else {
|
|
2033
|
+
for (const item of d.fieldMappings)
|
|
2034
|
+
this.DcmtCreator_MetadataMappingDescriptor_Normalize(item, isNew);
|
|
2035
|
+
}
|
|
2036
|
+
return d;
|
|
2037
|
+
}
|
|
2038
|
+
static ConvertToPdfOperation_Normalize(d) {
|
|
2039
|
+
if (!d)
|
|
2040
|
+
d = new ConvertToPdfOperation();
|
|
2041
|
+
return d;
|
|
2042
|
+
}
|
|
2043
|
+
static AddDigitalSignatureFieldOperation_Normalize(d) {
|
|
2044
|
+
if (!d)
|
|
2045
|
+
d = new AddDigitalSignatureFieldOperation();
|
|
2046
|
+
d.position = this.ElementPosition_Normalize(d.position, d.position === undefined);
|
|
2047
|
+
d.size = this.ElementSize_Normalize(d.size);
|
|
2048
|
+
if (d.required === undefined)
|
|
2049
|
+
d.required = false;
|
|
2050
|
+
return d;
|
|
2051
|
+
}
|
|
2052
|
+
static ApplyLetterheadOperation_Normalize(d) {
|
|
2053
|
+
if (!d)
|
|
2054
|
+
d = new ApplyLetterheadOperation();
|
|
2055
|
+
d.letterheadSource = this.DocumentSource_Normalize(d.letterheadSource, d.letterheadSource === undefined);
|
|
2056
|
+
if (d.copyPageMargins === undefined)
|
|
2057
|
+
d.copyPageMargins = false;
|
|
2058
|
+
return d;
|
|
2059
|
+
}
|
|
2060
|
+
static NewRasterElement() { return this.RasterElement_Normalize(new RasterElement(), true); }
|
|
2061
|
+
static RasterElement_Normalize(d, isNew) {
|
|
2062
|
+
if (!d)
|
|
2063
|
+
return;
|
|
2064
|
+
if (d.disabled === undefined)
|
|
2065
|
+
d.disabled = false;
|
|
2066
|
+
if (d.required === undefined)
|
|
2067
|
+
d.required = false;
|
|
2068
|
+
if (d.editable === undefined)
|
|
2069
|
+
d.editable = false;
|
|
2070
|
+
if (d.rasterType === undefined)
|
|
2071
|
+
d.rasterType = DocumentOperations.None;
|
|
2072
|
+
d.position = this.ElementPosition_Normalize(d.position, d.position === undefined && isNew);
|
|
2073
|
+
d.theTextElement = this.TextElement_Normalize(d.theTextElement);
|
|
2074
|
+
d.theImageElement = this.ImageElement_Normalize(d.theImageElement);
|
|
2075
|
+
d.theCheckboxElement = this.CheckboxElement_Normalize(d.theCheckboxElement);
|
|
2076
|
+
d.theRadioButtonElement = this.RadioButtonElement_Normalize(d.theRadioButtonElement);
|
|
2077
|
+
d.theLineElement = this.LineElement_Normalize(d.theLineElement);
|
|
2078
|
+
d.theRectangleElement = this.RectangleElement_Normalize(d.theRectangleElement);
|
|
2079
|
+
return d;
|
|
2080
|
+
}
|
|
2081
|
+
static TextElement_Normalize(d) {
|
|
2082
|
+
if (!d)
|
|
2083
|
+
d = new TextElement();
|
|
2084
|
+
d.formatting = this.TextFormatting_Normalize(d.formatting, d.formatting === undefined);
|
|
2085
|
+
return d;
|
|
2086
|
+
}
|
|
2087
|
+
static ImageElement_Normalize(d) {
|
|
2088
|
+
if (!d)
|
|
2089
|
+
d = new ImageElement();
|
|
2090
|
+
d.size = this.ElementSize_Normalize(d.size);
|
|
2091
|
+
return d;
|
|
2092
|
+
}
|
|
2093
|
+
static CheckboxElement_Normalize(d) {
|
|
2094
|
+
if (!d)
|
|
2095
|
+
d = new CheckboxElement();
|
|
2096
|
+
if (d.isChecked === undefined)
|
|
2097
|
+
d.isChecked = false;
|
|
2098
|
+
if (d.size === undefined)
|
|
2099
|
+
d.size = 0;
|
|
2100
|
+
return d;
|
|
2101
|
+
}
|
|
2102
|
+
static RadioButtonElement_Normalize(d) {
|
|
2103
|
+
if (!d)
|
|
2104
|
+
d = new RadioButtonElement();
|
|
2105
|
+
if (d.isSelected === undefined)
|
|
2106
|
+
d.isSelected = false;
|
|
2107
|
+
if (d.radius === undefined)
|
|
2108
|
+
d.radius = 0;
|
|
2109
|
+
return d;
|
|
2110
|
+
}
|
|
2111
|
+
static LineElement_Normalize(d) {
|
|
2112
|
+
if (!d)
|
|
2113
|
+
d = new LineElement();
|
|
2114
|
+
d.endPosition = this.ElementPosition_Normalize(d.endPosition, d.endPosition === undefined);
|
|
2115
|
+
d.style = this.LineStyle_Normalize(d.style, d.style === undefined);
|
|
2116
|
+
return d;
|
|
2117
|
+
}
|
|
2118
|
+
static RectangleElement_Normalize(d) {
|
|
2119
|
+
if (!d)
|
|
2120
|
+
d = new RectangleElement();
|
|
2121
|
+
d.size = this.ElementSize_Normalize(d.size);
|
|
2122
|
+
d.style = this.LineStyle_Normalize(d.style, d.style === undefined);
|
|
2123
|
+
if (d.filled === undefined)
|
|
2124
|
+
d.filled = false;
|
|
2125
|
+
return d;
|
|
2126
|
+
}
|
|
2127
|
+
static ElementPosition_Normalize(d, isNew) {
|
|
2128
|
+
if (!d)
|
|
2129
|
+
d = new ElementPosition();
|
|
2130
|
+
if (d.anchorOccurrence === undefined)
|
|
2131
|
+
d.anchorOccurrence = isNew ? 1 : 0;
|
|
2132
|
+
if (d.x === undefined)
|
|
2133
|
+
d.x = 0;
|
|
2134
|
+
if (d.y === undefined)
|
|
2135
|
+
d.y = 0;
|
|
2136
|
+
return d;
|
|
2137
|
+
}
|
|
2138
|
+
static ElementSize_Normalize(d) {
|
|
2139
|
+
if (!d)
|
|
2140
|
+
d = new ElementSize();
|
|
2141
|
+
if (d.width === undefined)
|
|
2142
|
+
d.width = 0;
|
|
2143
|
+
if (d.height === undefined)
|
|
2144
|
+
d.height = 0;
|
|
2145
|
+
return d;
|
|
2146
|
+
}
|
|
2147
|
+
static LineStyle_Normalize(d, isNew) {
|
|
2148
|
+
if (!d)
|
|
2149
|
+
d = new LineStyle();
|
|
2150
|
+
if (d.thickness === undefined)
|
|
2151
|
+
d.thickness = isNew ? 1 : 0;
|
|
2152
|
+
return d;
|
|
2153
|
+
}
|
|
2154
|
+
static TextFormatting_Normalize(d, isNew) {
|
|
2155
|
+
if (!d)
|
|
2156
|
+
d = new TextFormatting();
|
|
2157
|
+
if (d.fontSize === undefined)
|
|
2158
|
+
d.fontSize = isNew ? 10 : 0;
|
|
2159
|
+
if (d.bold === undefined)
|
|
2160
|
+
d.bold = false;
|
|
2161
|
+
if (d.italic === undefined)
|
|
2162
|
+
d.italic = false;
|
|
2163
|
+
if (d.alignment === undefined)
|
|
2164
|
+
d.alignment = isNew ? TextAlignments.Left : TextAlignments.None;
|
|
2165
|
+
return d;
|
|
2166
|
+
}
|
|
2167
|
+
static NewDcmtCreator_MetadataMappingDescriptor() { return this.DcmtCreator_MetadataMappingDescriptor_Normalize(new DcmtCreator_MetadataMappingDescriptor(), true); }
|
|
2168
|
+
static DcmtCreator_MetadataMappingDescriptor_Normalize(d, isNew) {
|
|
2169
|
+
if (!d)
|
|
2170
|
+
return;
|
|
2171
|
+
JobEngine.MetadataMappingDescriptor_Normalize(d, isNew);
|
|
2172
|
+
return d;
|
|
2173
|
+
}
|
|
1911
2174
|
DcmtDeleter_CreateAsync(d) {
|
|
1912
2175
|
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
2176
|
}
|
|
@@ -187,7 +187,7 @@ 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(
|
|
190
|
+
HelpOnLineAskAsync(d) {
|
|
191
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
192
|
}
|
|
193
193
|
NewADMEngine() { this.CheckIsLogged(); return new ADMEngine(this); }
|