@topconsultnpm/sdk-ts 6.20.0-test1 → 6.21.0-dev1.2
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.d.ts +1734 -0
- package/dist/lib/Engine.js +176 -13
- package/dist/lib/TopMediaServer.d.ts +26 -0
- package/dist/lib/TopMediaServiceClientEx.d.ts +20 -0
- package/dist/lib/TopMediaSession.d.ts +120 -0
- package/dist/lib/helper/ExtMethods.d.ts +4 -0
- package/dist/lib/helper/LocalStorageService.d.ts +10 -0
- package/dist/lib/helper/PlatformObjectValidator.d.ts +43 -0
- package/dist/lib/helper/PlatformObjectValidator.js +41 -0
- package/dist/lib/helper/SDK_CacheServices.d.ts +104 -0
- package/dist/lib/helper/SDK_Globals.d.ts +35 -0
- package/dist/lib/helper/SDK_Localizator.d.ts +136 -0
- package/dist/lib/helper/SDK_Localizator.js +10 -0
- package/dist/lib/helper/StandardHelper.d.ts +4 -0
- package/dist/lib/helper/StringHelper.d.ts +4 -0
- package/dist/lib/helper/index.d.ts +7 -0
- package/dist/lib/helper/utils.d.ts +12 -0
- package/dist/lib/helper/utils.js +2 -0
- package/dist/lib/index.d.ts +6 -0
- package/dist/lib/openAPIs/TopMediaServiceClient.d.ts +8158 -0
- package/dist/lib/openAPIs/TopMediaServiceClient.js +1 -1
- package/dist/types/Engine.d.ts +149 -12
- package/dist/types/helper/PlatformObjectValidator.d.ts +3 -1
- package/dist/types/helper/SDK_Localizator.d.ts +1 -0
- package/dist/types/helper/utils.d.ts +9 -7
- package/dist/types/openAPIs/TopMediaServiceClient.d.ts +38 -5
- package/package.json +1 -1
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, 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 } 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, 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 } from "./openAPIs/TopMediaServiceClient";
|
|
14
14
|
class BaseEngine {
|
|
15
15
|
constructor(tms) {
|
|
16
16
|
this.TopMediaSession = tms;
|
|
@@ -335,9 +335,6 @@ export class BasketEngine extends BaseEngine {
|
|
|
335
335
|
DeleteAsync(BTID, BID) {
|
|
336
336
|
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketDelete(BTID, BID)); });
|
|
337
337
|
}
|
|
338
|
-
RetrieveAllFilesAsync(BTID, BID, fromBFID, toBFID, excludeIgnore) {
|
|
339
|
-
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketRetrieveAllFiles(BTID, BID, fromBFID, toBFID, excludeIgnore ? 1 : 0)); });
|
|
340
|
-
}
|
|
341
338
|
LockAsync(BTID, BID, autoUnlock) {
|
|
342
339
|
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketLock(BTID, BID, autoUnlock)); });
|
|
343
340
|
}
|
|
@@ -347,10 +344,28 @@ export class BasketEngine extends BaseEngine {
|
|
|
347
344
|
UnlockAllAsync() {
|
|
348
345
|
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketUnlockAll()); });
|
|
349
346
|
}
|
|
350
|
-
|
|
347
|
+
ChangeStatusAsync(BTID, BID, newStatus, newAction) {
|
|
348
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketChangeStatus(BTID, BID, newStatus, newAction)); });
|
|
349
|
+
}
|
|
350
|
+
AddFileAsync(BTID, BID, batch, barcode, dateTime, fd, abortSignal) {
|
|
351
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketAddFile(BTID, BID, batch, barcode, dateTime, fd, abortSignal)); });
|
|
352
|
+
}
|
|
353
|
+
RetrieveAllFilesAsync(BTID, BID, fromBFID, toBFID, excludeIgnore) {
|
|
354
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketRetrieveAllFiles(BTID, BID, fromBFID, toBFID, excludeIgnore ? 1 : 0)); });
|
|
355
|
+
}
|
|
356
|
+
RemoveFilesAsync(BTID, BID, BFIDs) {
|
|
357
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketRemoveFiles(BTID, BID, BFIDs)); });
|
|
358
|
+
}
|
|
359
|
+
SetIgnoreFilesFlagAsync(BTID, BID, BFIDs, ignore) {
|
|
360
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketSetIgnoreFiles(BTID, BID, ignore ? 1 : 0, BFIDs)); });
|
|
361
|
+
}
|
|
362
|
+
SetFileBarcodeAsync(BTID, BID, BFID, barcode) {
|
|
363
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketSetFileBarcode(BTID, BID, BFID, barcode)); });
|
|
364
|
+
}
|
|
365
|
+
RetrieveFileAsync(BTID, BID, BFID, cvtFormat, abortSignal) {
|
|
351
366
|
return __awaiter(this, void 0, void 0, function* () {
|
|
352
367
|
var _a;
|
|
353
|
-
let fr = yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketRetrieveFile(BTID, BID, BFID, abortSignal));
|
|
368
|
+
let fr = yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.basketRetrieveFile(BTID, BID, BFID, cvtFormat, abortSignal));
|
|
354
369
|
return new File([fr === null || fr === void 0 ? void 0 : fr.data], fr === null || fr === void 0 ? void 0 : fr.fileName, {
|
|
355
370
|
lastModified: new Date().getTime(),
|
|
356
371
|
type: fr === null || fr === void 0 ? void 0 : fr.data.type
|
|
@@ -983,7 +998,8 @@ export class JobEngine extends BaseEngine {
|
|
|
983
998
|
case JobTypes.BarcodeArchiver: return this.BarcodeArchiver_Normalize(new BarcodeArchiverJobDescriptor(), true);
|
|
984
999
|
case JobTypes.BatchUpdater: return this.BatchUpdater_Normalize(new BatchUpdaterJobDescriptor(), true);
|
|
985
1000
|
case JobTypes.CassettoDoganale: return this.CassettoDoganale_Normalize(new CassettoDoganaleJobDescriptor(), true);
|
|
986
|
-
case JobTypes.CassettoDoganalePlus: return this.CassettoDoganalePlus_Normalize(new
|
|
1001
|
+
case JobTypes.CassettoDoganalePlus: return this.CassettoDoganalePlus_Normalize(new CassettoDoganalePlusJobDescriptor(), true);
|
|
1002
|
+
case JobTypes.CassettoDoganaleDistiller: return this.CassettoDoganaleDistiller_Normalize(new CassettoDoganaleDistillerJobDescriptor(), true);
|
|
987
1003
|
case JobTypes.CassettoFiscaleQuery: return this.CassettoFiscaleQuery_Normalize(new CassettoFiscaleQueryJobDescriptor(), true);
|
|
988
1004
|
case JobTypes.CassettoFiscaleSender: return this.CassettoFiscaleSender_Normalize(new CassettoFiscaleSenderJobDescriptor(), true);
|
|
989
1005
|
case JobTypes.CheckSequence: return this.CheckSequence_Normalize(new CheckSequenceJobDescriptor(), true);
|
|
@@ -1507,6 +1523,29 @@ export class JobEngine extends BaseEngine {
|
|
|
1507
1523
|
d.sleep = 15;
|
|
1508
1524
|
return d;
|
|
1509
1525
|
}
|
|
1526
|
+
CassettoDoganaleDistiller_CreateAsync(d) {
|
|
1527
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.jobCassettoDoganaleDistillerCreate(d)); });
|
|
1528
|
+
}
|
|
1529
|
+
CassettoDoganaleDistiller_RetrieveAdminAsync(id) {
|
|
1530
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return JobEngine.CassettoDoganaleDistiller_Normalize(yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.jobCassettoDoganaleDistillerRetrieveAdmin(id))); });
|
|
1531
|
+
}
|
|
1532
|
+
CassettoDoganaleDistiller_RetrieveAllAdminAsync() {
|
|
1533
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.jobCassettoDoganaleDistillerRetrieveAllAdmin()); });
|
|
1534
|
+
}
|
|
1535
|
+
CassettoDoganaleDistiller_UpdateAsync(d) {
|
|
1536
|
+
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.jobCassettoDoganaleDistillerUpdate(d)); });
|
|
1537
|
+
}
|
|
1538
|
+
static CassettoDoganaleDistiller_Normalize(d, isNewJob) {
|
|
1539
|
+
if (!d)
|
|
1540
|
+
return d;
|
|
1541
|
+
d.jobType = JobTypes.CassettoDoganaleDistiller;
|
|
1542
|
+
JobEngine.Normalize(d, isNewJob);
|
|
1543
|
+
if (d.fileType === undefined)
|
|
1544
|
+
d.fileType = isNewJob ? CDFileTypes.ProspettoDiSintesi : CDFileTypes.None;
|
|
1545
|
+
if (d.masterTID === undefined)
|
|
1546
|
+
d.masterTID = 0;
|
|
1547
|
+
return d;
|
|
1548
|
+
}
|
|
1510
1549
|
CassettoDoganalePlus_CreateAsync(d) {
|
|
1511
1550
|
return __awaiter(this, void 0, void 0, function* () { var _a; return yield ((_a = this.TMSClient) === null || _a === void 0 ? void 0 : _a.jobCassettoDoganalePlusCreate(d)); });
|
|
1512
1551
|
}
|
|
@@ -4841,6 +4880,49 @@ export var SystemTIDs;
|
|
|
4841
4880
|
SystemTIDs[SystemTIDs["Chronology"] = 15] = "Chronology";
|
|
4842
4881
|
SystemTIDs[SystemTIDs["Users"] = 1000001] = "Users";
|
|
4843
4882
|
})(SystemTIDs || (SystemTIDs = {}));
|
|
4883
|
+
export var IdCRequiredMd_DocInf;
|
|
4884
|
+
(function (IdCRequiredMd_DocInf) {
|
|
4885
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["ModalitaFormazione"] = 103] = "ModalitaFormazione";
|
|
4886
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["TipologiaDocumentale"] = 104] = "TipologiaDocumentale";
|
|
4887
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["ChiaveDescrittiva_ParoleChiave"] = 105] = "ChiaveDescrittiva_ParoleChiave";
|
|
4888
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["DatiRegistrazione_TipologiaFlusso"] = 106] = "DatiRegistrazione_TipologiaFlusso";
|
|
4889
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["DatiRegistrazione_TipoRegistro"] = 107] = "DatiRegistrazione_TipoRegistro";
|
|
4890
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["DatiRegistrazione_DataRegistrazione"] = 108] = "DatiRegistrazione_DataRegistrazione";
|
|
4891
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["DatiRegistrazione_NumeroDocumento"] = 109] = "DatiRegistrazione_NumeroDocumento";
|
|
4892
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["DatiRegistrazione_IdRegistro"] = 110] = "DatiRegistrazione_IdRegistro";
|
|
4893
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_Autore_TipoSoggetto"] = 113] = "Soggetti_Autore_TipoSoggetto";
|
|
4894
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_Autore_Cognome"] = 111] = "Soggetti_Autore_Cognome";
|
|
4895
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_Autore_Nome"] = 112] = "Soggetti_Autore_Nome";
|
|
4896
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_Autore_Denominazione"] = 114] = "Soggetti_Autore_Denominazione";
|
|
4897
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_Autore_Denominazione2"] = 171] = "Soggetti_Autore_Denominazione2";
|
|
4898
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_Autore_Denominazione3"] = 116] = "Soggetti_Autore_Denominazione3";
|
|
4899
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_Autore_Codice"] = 115] = "Soggetti_Autore_Codice";
|
|
4900
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_Autore_IndirizziDigitali"] = 117] = "Soggetti_Autore_IndirizziDigitali";
|
|
4901
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_Mittente_TipoSoggetto"] = 118] = "Soggetti_Mittente_TipoSoggetto";
|
|
4902
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_Mittente_Cognome"] = 172] = "Soggetti_Mittente_Cognome";
|
|
4903
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_Mittente_Nome"] = 173] = "Soggetti_Mittente_Nome";
|
|
4904
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_Mittente_Denominazione"] = 119] = "Soggetti_Mittente_Denominazione";
|
|
4905
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_Mittente_Denominazione2"] = 174] = "Soggetti_Mittente_Denominazione2";
|
|
4906
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_Mittente_Denominazione3"] = 121] = "Soggetti_Mittente_Denominazione3";
|
|
4907
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_Mittente_Codice"] = 120] = "Soggetti_Mittente_Codice";
|
|
4908
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_Mittente_IndirizziDigitali"] = 122] = "Soggetti_Mittente_IndirizziDigitali";
|
|
4909
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_SER_TipoSoggetto"] = 206] = "Soggetti_SER_TipoSoggetto";
|
|
4910
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_SER_Cognome"] = 207] = "Soggetti_SER_Cognome";
|
|
4911
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_SER_Nome"] = 208] = "Soggetti_SER_Nome";
|
|
4912
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_SER_Denominazione"] = 209] = "Soggetti_SER_Denominazione";
|
|
4913
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_SER_Denominazione2"] = 210] = "Soggetti_SER_Denominazione2";
|
|
4914
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_SER_Denominazione3"] = 211] = "Soggetti_SER_Denominazione3";
|
|
4915
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_SER_Codice"] = 212] = "Soggetti_SER_Codice";
|
|
4916
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Soggetti_SER_IndirizziDigitali"] = 213] = "Soggetti_SER_IndirizziDigitali";
|
|
4917
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Riservato"] = 154] = "Riservato";
|
|
4918
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["IdFormato_Formato"] = 155] = "IdFormato_Formato";
|
|
4919
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["IdFormato_NomeProdotto"] = 156] = "IdFormato_NomeProdotto";
|
|
4920
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["IdFormato_VersioneProdotto"] = 157] = "IdFormato_VersioneProdotto";
|
|
4921
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["IdFormato_Produttore"] = 158] = "IdFormato_Produttore";
|
|
4922
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["NomeDelDocumento"] = 218] = "NomeDelDocumento";
|
|
4923
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["TempoConservazione"] = 169] = "TempoConservazione";
|
|
4924
|
+
IdCRequiredMd_DocInf[IdCRequiredMd_DocInf["Note"] = 170] = "Note";
|
|
4925
|
+
})(IdCRequiredMd_DocInf || (IdCRequiredMd_DocInf = {}));
|
|
4844
4926
|
export var FEAttach_MetadataNames;
|
|
4845
4927
|
(function (FEAttach_MetadataNames) {
|
|
4846
4928
|
FEAttach_MetadataNames["Numero"] = "Numero";
|
|
@@ -4941,6 +5023,15 @@ export var CICO_MetadataNames;
|
|
|
4941
5023
|
CICO_MetadataNames["CICO_CheckoutDate"] = "CICO_CheckoutDate";
|
|
4942
5024
|
CICO_MetadataNames["CICO_Version"] = "CICO_Version";
|
|
4943
5025
|
})(CICO_MetadataNames || (CICO_MetadataNames = {}));
|
|
5026
|
+
export var IVisto_MetadataNames;
|
|
5027
|
+
(function (IVisto_MetadataNames) {
|
|
5028
|
+
IVisto_MetadataNames["ExitCode"] = "IVisto_ExitCode";
|
|
5029
|
+
IVisto_MetadataNames["ExitDate"] = "IVisto_ExitDate";
|
|
5030
|
+
IVisto_MetadataNames["ExitRefNumber"] = "IVisto_ExitRefNumber";
|
|
5031
|
+
IVisto_MetadataNames["ExportRefNumber"] = "IVisto_ExportRefNumber";
|
|
5032
|
+
IVisto_MetadataNames["MRN"] = "IVisto_MRN";
|
|
5033
|
+
IVisto_MetadataNames["Transit"] = "IVisto_Transit";
|
|
5034
|
+
})(IVisto_MetadataNames || (IVisto_MetadataNames = {}));
|
|
4944
5035
|
export var NSONotif_MetadataNames;
|
|
4945
5036
|
(function (NSONotif_MetadataNames) {
|
|
4946
5037
|
NSONotif_MetadataNames["TipoNotifica"] = "Tipo notifica";
|
|
@@ -4954,6 +5045,22 @@ export var NSONotif_MetadataNames;
|
|
|
4954
5045
|
NSONotif_MetadataNames["Note"] = "Note";
|
|
4955
5046
|
NSONotif_MetadataNames["MailMessageID"] = "MailMessageID";
|
|
4956
5047
|
})(NSONotif_MetadataNames || (NSONotif_MetadataNames = {}));
|
|
5048
|
+
export var NSO_DistillazioneEstesa_MetadataNames;
|
|
5049
|
+
(function (NSO_DistillazioneEstesa_MetadataNames) {
|
|
5050
|
+
NSO_DistillazioneEstesa_MetadataNames["IdFiscCliente"] = "IdFiscale Cliente";
|
|
5051
|
+
NSO_DistillazioneEstesa_MetadataNames["IdFiscForn"] = "IdFiscale Fornitore";
|
|
5052
|
+
NSO_DistillazioneEstesa_MetadataNames["RifCliente"] = "Rif. Cliente";
|
|
5053
|
+
NSO_DistillazioneEstesa_MetadataNames["RifQuotazione"] = "Rif. Quotazione";
|
|
5054
|
+
NSO_DistillazioneEstesa_MetadataNames["CIG"] = "CIG";
|
|
5055
|
+
NSO_DistillazioneEstesa_MetadataNames["CUP"] = "CUP";
|
|
5056
|
+
NSO_DistillazioneEstesa_MetadataNames["ContattoClienteMail"] = "Contatto Cliente (Mail)";
|
|
5057
|
+
NSO_DistillazioneEstesa_MetadataNames["ContattoClienteNome"] = "Contatto Cliente (Nome)";
|
|
5058
|
+
NSO_DistillazioneEstesa_MetadataNames["ContattoClienteTel"] = "Contatto Cliente (Tel)";
|
|
5059
|
+
NSO_DistillazioneEstesa_MetadataNames["ContattoFornMail"] = "Contatto Fornitore (Mail)";
|
|
5060
|
+
NSO_DistillazioneEstesa_MetadataNames["ContattoFornNome"] = "Contatto Fornitore (Nome)";
|
|
5061
|
+
NSO_DistillazioneEstesa_MetadataNames["ContattoFornTel"] = "Contatto Fornitore (Tel)";
|
|
5062
|
+
NSO_DistillazioneEstesa_MetadataNames["DenomPrimaLineaOrdine"] = "Denom. prima linea ordine";
|
|
5063
|
+
})(NSO_DistillazioneEstesa_MetadataNames || (NSO_DistillazioneEstesa_MetadataNames = {}));
|
|
4957
5064
|
export var PagoPA_Receipt_MetadataNames;
|
|
4958
5065
|
(function (PagoPA_Receipt_MetadataNames) {
|
|
4959
5066
|
PagoPA_Receipt_MetadataNames["IstitutoAttestante"] = "Istituto attestante";
|
|
@@ -4968,17 +5075,73 @@ export var PagoPA_Receipt_MetadataNames;
|
|
|
4968
5075
|
PagoPA_Receipt_MetadataNames["TipoXML"] = "TipoXML";
|
|
4969
5076
|
PagoPA_Receipt_MetadataNames["CodiceCliente"] = "Codice Cliente";
|
|
4970
5077
|
})(PagoPA_Receipt_MetadataNames || (PagoPA_Receipt_MetadataNames = {}));
|
|
5078
|
+
export var PEPPOL_MetadataNames;
|
|
5079
|
+
(function (PEPPOL_MetadataNames) {
|
|
5080
|
+
PEPPOL_MetadataNames["CanaleInvio"] = "Canale invio";
|
|
5081
|
+
PEPPOL_MetadataNames["MsgID"] = "PEPPOL MsgID";
|
|
5082
|
+
PEPPOL_MetadataNames["DataInvio"] = "PEPPOL Data invio";
|
|
5083
|
+
PEPPOL_MetadataNames["Status"] = "PEPPOL Status";
|
|
5084
|
+
})(PEPPOL_MetadataNames || (PEPPOL_MetadataNames = {}));
|
|
4971
5085
|
export var Rentri_MetadataNames;
|
|
4972
5086
|
(function (Rentri_MetadataNames) {
|
|
4973
|
-
Rentri_MetadataNames["Identificativo"] = "Rentri_Identificativo";
|
|
4974
|
-
Rentri_MetadataNames["Denominazione"] = "Rentri_Denominazione";
|
|
4975
|
-
Rentri_MetadataNames["IndirizzoSito"] = "Rentri_IndirizzoSito";
|
|
4976
5087
|
Rentri_MetadataNames["Anno"] = "Rentri_Anno";
|
|
4977
|
-
Rentri_MetadataNames["
|
|
4978
|
-
Rentri_MetadataNames["
|
|
4979
|
-
Rentri_MetadataNames["
|
|
5088
|
+
Rentri_MetadataNames["AutoreRichiesta"] = "Rentri_AutoreRichiesta";
|
|
5089
|
+
Rentri_MetadataNames["CCIAANome"] = "Rentri_CCIAANome";
|
|
5090
|
+
Rentri_MetadataNames["CodiceFiscale"] = "Rentri_CodiceFiscale";
|
|
4980
5091
|
Rentri_MetadataNames["DataCreazione"] = "Rentri_DataCreazione";
|
|
5092
|
+
Rentri_MetadataNames["DataRichiesta"] = "Rentri_DataRichiesta";
|
|
5093
|
+
Rentri_MetadataNames["Denominazione"] = "Rentri_Denominazione";
|
|
5094
|
+
Rentri_MetadataNames["Identificativo"] = "Rentri_Identificativo";
|
|
5095
|
+
Rentri_MetadataNames["IdentificativoRichiesta"] = "Rentri_IdentificativoRichiesta";
|
|
5096
|
+
Rentri_MetadataNames["IndirizzoSito"] = "Rentri_IndirizzoSito";
|
|
5097
|
+
Rentri_MetadataNames["NumIscr"] = "Rentri_NumIscr";
|
|
5098
|
+
Rentri_MetadataNames["NumIscrSito"] = "Rentri_NumIscrSito";
|
|
5099
|
+
Rentri_MetadataNames["ProgressivoDa_Primo"] = "Rentri_ProgressivoDa_Primo";
|
|
5100
|
+
Rentri_MetadataNames["ProgressivoA_Primo"] = "Rentri_ProgressivoA_Primo";
|
|
5101
|
+
Rentri_MetadataNames["NumeroRegistrazioni_Primo"] = "Rentri_NumeroRegistrazioni_Primo";
|
|
5102
|
+
Rentri_MetadataNames["ProgressivoDa_Ultimo"] = "Rentri_ProgressivoDa_Ultimo";
|
|
5103
|
+
Rentri_MetadataNames["ProgressivoA_Ultimo"] = "Rentri_ProgressivoA_Ultimo";
|
|
5104
|
+
Rentri_MetadataNames["NumeroRegistrazioni_Ultimo"] = "Rentri_NumeroRegistrazioni_Ultimo";
|
|
5105
|
+
Rentri_MetadataNames["ProgressivoDa_Assoluto"] = "Rentri_ProgressivoDa_Assoluto";
|
|
5106
|
+
Rentri_MetadataNames["ProgressivoA_Assoluto"] = "Rentri_ProgressivoA_Assoluto";
|
|
5107
|
+
Rentri_MetadataNames["NumeroRegistrazioni_Assoluto"] = "Rentri_NumeroRegistrazioni_Assoluto";
|
|
4981
5108
|
})(Rentri_MetadataNames || (Rentri_MetadataNames = {}));
|
|
5109
|
+
export var FE_DistillazioneEstesa_MetadataNames;
|
|
5110
|
+
(function (FE_DistillazioneEstesa_MetadataNames) {
|
|
5111
|
+
FE_DistillazioneEstesa_MetadataNames["Divisa"] = "Divisa";
|
|
5112
|
+
FE_DistillazioneEstesa_MetadataNames["Causale"] = "Causale";
|
|
5113
|
+
FE_DistillazioneEstesa_MetadataNames["OdA_IdDocumento"] = "OdA_IdDocumento";
|
|
5114
|
+
FE_DistillazioneEstesa_MetadataNames["OdA_Data"] = "OdA_Data";
|
|
5115
|
+
FE_DistillazioneEstesa_MetadataNames["OdA_CodCommConv"] = "OdA_CodCommessaConv";
|
|
5116
|
+
FE_DistillazioneEstesa_MetadataNames["TriplettaNSO"] = "TriplettaNSO";
|
|
5117
|
+
FE_DistillazioneEstesa_MetadataNames["ImponibileImporto"] = "ImponibileImporto";
|
|
5118
|
+
FE_DistillazioneEstesa_MetadataNames["Imposta"] = "Imposta";
|
|
5119
|
+
FE_DistillazioneEstesa_MetadataNames["ModalitaPagamento"] = "ModalitaPagamento";
|
|
5120
|
+
FE_DistillazioneEstesa_MetadataNames["DataScadenzaPagamento"] = "DataScadenzaPagamento";
|
|
5121
|
+
FE_DistillazioneEstesa_MetadataNames["IBAN"] = "IBAN";
|
|
5122
|
+
FE_DistillazioneEstesa_MetadataNames["RifAmministrazione"] = "RifAmministrazione";
|
|
5123
|
+
FE_DistillazioneEstesa_MetadataNames["NumeroDDT"] = "NumeroDDT";
|
|
5124
|
+
FE_DistillazioneEstesa_MetadataNames["DataDDT"] = "DataDDT";
|
|
5125
|
+
FE_DistillazioneEstesa_MetadataNames["DFC_IdDocumento"] = "DFC_IdDocumento";
|
|
5126
|
+
FE_DistillazioneEstesa_MetadataNames["DFC_Data"] = "DFC_Data";
|
|
5127
|
+
FE_DistillazioneEstesa_MetadataNames["IdPaeseCliente"] = "IdPaese Cliente";
|
|
5128
|
+
FE_DistillazioneEstesa_MetadataNames["IdPaeseForn"] = "IdPaese Fornitore";
|
|
5129
|
+
})(FE_DistillazioneEstesa_MetadataNames || (FE_DistillazioneEstesa_MetadataNames = {}));
|
|
5130
|
+
export var SAP_MetadataNames;
|
|
5131
|
+
(function (SAP_MetadataNames) {
|
|
5132
|
+
SAP_MetadataNames["SAP_DocID"] = "SAP_DocID";
|
|
5133
|
+
SAP_MetadataNames["SAP_CompID"] = "SAP_CompID";
|
|
5134
|
+
SAP_MetadataNames["SAP_ContentType"] = "SAP_ContentType";
|
|
5135
|
+
SAP_MetadataNames["SAP_Deleted"] = "SAP_Deleted";
|
|
5136
|
+
SAP_MetadataNames["SAP_Barcode_Value"] = "SAP_Barcode_Value";
|
|
5137
|
+
SAP_MetadataNames["SAP_Barcode_XferStatus"] = "SAP_Barcode_XferStatus";
|
|
5138
|
+
SAP_MetadataNames["SAP_Barcode_XferDate"] = "SAP_Barcode_XferDate";
|
|
5139
|
+
SAP_MetadataNames["SAP_Barcode_XferNumber"] = "SAP_Barcode_XferNumber";
|
|
5140
|
+
SAP_MetadataNames["SAP_Barcode_XferMessage"] = "SAP_Barcode_XferMessage";
|
|
5141
|
+
SAP_MetadataNames["SAP_Align_XferStatus"] = "SAP_Align_XferStatus";
|
|
5142
|
+
SAP_MetadataNames["SAP_Align_XferDate"] = "SAP_Align_XferDate";
|
|
5143
|
+
SAP_MetadataNames["SAP_Align_XferMessage"] = "SAP_Align_XferMessage";
|
|
5144
|
+
})(SAP_MetadataNames || (SAP_MetadataNames = {}));
|
|
4982
5145
|
export var WorkItemMetadataNames;
|
|
4983
5146
|
(function (WorkItemMetadataNames) {
|
|
4984
5147
|
WorkItemMetadataNames["WI_From"] = "WI_From";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ITopMediaSession } from "./TopMediaSession";
|
|
2
|
+
import { CultureIDs, TopMediaServiceClient } from "./openAPIs/TopMediaServiceClient";
|
|
3
|
+
import { TopMediaServiceClientEx } from "./TopMediaServiceClientEx";
|
|
4
|
+
export interface ITopMediaServer {
|
|
5
|
+
BaseAddress?: string;
|
|
6
|
+
NullValue: string;
|
|
7
|
+
PingAsync(): Promise<string[]>;
|
|
8
|
+
NewSession(): ITopMediaSession;
|
|
9
|
+
CreateHttpClient(accessToken?: string, useClientEx?: boolean): TopMediaServiceClient | TopMediaServiceClientEx;
|
|
10
|
+
FontNamesAsync(): Promise<string[]>;
|
|
11
|
+
PrinterNamesAsync(): Promise<string[]>;
|
|
12
|
+
EncryptAsync(input: string): Promise<string>;
|
|
13
|
+
}
|
|
14
|
+
export declare class TopMediaServer implements ITopMediaServer {
|
|
15
|
+
constructor(baseAddress?: string);
|
|
16
|
+
BaseAddress: string | undefined;
|
|
17
|
+
NullValue: string;
|
|
18
|
+
PingAsync(): Promise<string[]>;
|
|
19
|
+
NewSession(): ITopMediaSession;
|
|
20
|
+
/** Restituisce l'elenco dei CultureID disponibili */
|
|
21
|
+
static RetrieveAllCultureIDs(): CultureIDs[];
|
|
22
|
+
FontNamesAsync(): Promise<string[]>;
|
|
23
|
+
PrinterNamesAsync(): Promise<string[]>;
|
|
24
|
+
EncryptAsync(input: string): Promise<string>;
|
|
25
|
+
CreateHttpClient(accessToken?: string, useClientEx?: boolean): TopMediaServiceClient | TopMediaServiceClientEx;
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
2
|
+
import { AreaParams, FileResponse, RetrieveFileOptions } from './openAPIs/TopMediaServiceClient';
|
|
3
|
+
export declare class TopMediaServiceClientEx {
|
|
4
|
+
private instance;
|
|
5
|
+
private baseUrl;
|
|
6
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
7
|
+
constructor(baseUrl?: string, instance?: AxiosInstance);
|
|
8
|
+
areaAddFileEx(body: AreaParams | undefined, progressCallback?: (pd: ProgressCallbackData) => any, signal?: AbortSignal | undefined): Promise<void>;
|
|
9
|
+
protected processAreaAddFileEx(response: AxiosResponse): Promise<void>;
|
|
10
|
+
areaRetrieveFileEx(body: AreaParams | undefined, progressCallback?: (pd: ProgressCallbackData) => any, signal?: AbortSignal | undefined): Promise<FileResponse>;
|
|
11
|
+
protected processAreaRetrieveFileEx(response: AxiosResponse): Promise<FileResponse>;
|
|
12
|
+
retrieveFileEx(tID: number | undefined, dID: number | undefined, body: RetrieveFileOptions | undefined, progressCallback?: (pd: ProgressCallbackData) => any, signal?: AbortSignal): Promise<FileResponse>;
|
|
13
|
+
protected processRetrieveFileEx(response: AxiosResponse): Promise<FileResponse>;
|
|
14
|
+
}
|
|
15
|
+
export declare class ProgressCallbackData {
|
|
16
|
+
ProgressBarMaximum: number | undefined;
|
|
17
|
+
ProgressBarValue: number;
|
|
18
|
+
ProgressMessage?: string;
|
|
19
|
+
CustomParam?: object;
|
|
20
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { PopupRequest, PublicClientApplication } from "@azure/msal-browser";
|
|
2
|
+
import { IArchiveEngine, IAreaEngine, IBasketEngine, IBasketTypeEngine, IDataListEngine, IDcmtTypeEngine, IDiskEngine, IDossierEngine, IFavoritesEngine, IHomePageEngine, IJobEngine, ILicenseEngine, INotificationEngine, IOrchPlatformEngine, IPreviewEngine, IProcessEngine, IRecentEngine, ISavedQueryEngine, ISearchEngine, ISignCertEngine, ITSAEngine, ITaskEngine, ITreeEngine, IUploadFileEngine, IUserEngine, IWorkflowEngine, IWorkingGroupEngine, IRelationEngine, IDeleteEngine, IUpdateEngineByID, IArchiveEngineByID, IDcmtPlatformEngine, IADMEngine, INumeratorEngine, IReportEngine, ISignServerEngine, ILDAPEngine, IGroupEngine } from "./Engine";
|
|
3
|
+
import { ITopMediaServer } from "./TopMediaServer";
|
|
4
|
+
import { TopMediaServiceClient, SessionDescriptor, AppModules } from "./openAPIs/TopMediaServiceClient";
|
|
5
|
+
import { TopMediaServiceClientEx } from "./TopMediaServiceClientEx";
|
|
6
|
+
export interface ITopMediaSession {
|
|
7
|
+
/**Se impostato a true, aggiorna automaticamente la sessione.
|
|
8
|
+
* Se non viene impostato AutoRefreshInterval, la sessione viene aggiornata ogni 5 minuti */
|
|
9
|
+
AutoRefresh: boolean | undefined;
|
|
10
|
+
/** Intervallo espresso in minuti che indica ogni quanto deve essere aggiornata la sessione (default 5 minuti) */
|
|
11
|
+
AutoRefreshInterval: number;
|
|
12
|
+
SessionDescr: SessionDescriptor | undefined;
|
|
13
|
+
TopMediaServer: ITopMediaServer;
|
|
14
|
+
TMSClient: TopMediaServiceClient | undefined;
|
|
15
|
+
TMSClientEx: TopMediaServiceClientEx | undefined;
|
|
16
|
+
LoginAsync(sd: SessionDescriptor, useGlobals?: boolean): Promise<void>;
|
|
17
|
+
LoginToAsync(toAppModule: AppModules): Promise<SessionDescriptor | undefined>;
|
|
18
|
+
LogoutAsync(useGlobals?: boolean): Promise<void>;
|
|
19
|
+
RefreshAsync(): Promise<number | undefined>;
|
|
20
|
+
NewADMEngine(): IADMEngine;
|
|
21
|
+
NewArchiveEngine(): IArchiveEngine;
|
|
22
|
+
NewArchiveEngineByID(): IArchiveEngineByID;
|
|
23
|
+
NewAreaEngine(): IAreaEngine;
|
|
24
|
+
NewBasketEngine(): IBasketEngine;
|
|
25
|
+
NewBasketTypeEngine(): IBasketTypeEngine;
|
|
26
|
+
NewDataListEngine(): IDataListEngine;
|
|
27
|
+
NewDcmtPlatformEngine(): IDcmtPlatformEngine;
|
|
28
|
+
NewDcmtTypeEngine(): IDcmtTypeEngine;
|
|
29
|
+
NewDeleteEngine(): IDeleteEngine;
|
|
30
|
+
NewDiskEngine(): IDiskEngine;
|
|
31
|
+
NewDossierEngine(): IDossierEngine;
|
|
32
|
+
NewFavoritesEngine(): IFavoritesEngine;
|
|
33
|
+
NewGroupEngine(): IGroupEngine;
|
|
34
|
+
NewHomePageEngine(): IHomePageEngine;
|
|
35
|
+
NewJobEngine(): IJobEngine;
|
|
36
|
+
NewLDAPEngine(): ILDAPEngine;
|
|
37
|
+
NewLicenseEngine(): ILicenseEngine;
|
|
38
|
+
NewNotificationEngine(): INotificationEngine;
|
|
39
|
+
NewNumeratorEngine(): INumeratorEngine;
|
|
40
|
+
NewOrchPlatformEngine(): IOrchPlatformEngine;
|
|
41
|
+
NewPreviewEngine(): IPreviewEngine;
|
|
42
|
+
NewProcessEngine(): IProcessEngine;
|
|
43
|
+
NewRecentEngine(): IRecentEngine;
|
|
44
|
+
NewRelationEngine(): IRelationEngine;
|
|
45
|
+
NewReportEngine(): IReportEngine;
|
|
46
|
+
NewSavedQueryEngine(): ISavedQueryEngine;
|
|
47
|
+
NewSearchEngine(): ISearchEngine;
|
|
48
|
+
NewSignCertEngine(): ISignCertEngine;
|
|
49
|
+
NewSignServerEngine(): ISignServerEngine;
|
|
50
|
+
NewTaskEngine(): ITaskEngine;
|
|
51
|
+
NewTreeEngine(): ITreeEngine;
|
|
52
|
+
NewTSAEngine(): ITSAEngine;
|
|
53
|
+
NewUpdateEngineByID(): IUpdateEngineByID;
|
|
54
|
+
NewUploadFileEngine(): IUploadFileEngine;
|
|
55
|
+
NewUserEngine(): IUserEngine;
|
|
56
|
+
NewWorkflowEngine(): IWorkflowEngine;
|
|
57
|
+
NewWorkingGroupEngine(): IWorkingGroupEngine;
|
|
58
|
+
}
|
|
59
|
+
export declare class TopMediaSession implements ITopMediaSession {
|
|
60
|
+
constructor(tmSrv: ITopMediaServer);
|
|
61
|
+
SessionDescr: SessionDescriptor | undefined;
|
|
62
|
+
get TMSClient(): TopMediaServiceClient | undefined;
|
|
63
|
+
get TMSClientEx(): TopMediaServiceClientEx | undefined;
|
|
64
|
+
TopMediaServer: ITopMediaServer;
|
|
65
|
+
private _autoRefreshInterval;
|
|
66
|
+
get AutoRefreshInterval(): number;
|
|
67
|
+
set AutoRefreshInterval(autoRefreshInterval: number);
|
|
68
|
+
private _refreshTimer;
|
|
69
|
+
private _autoRefresh;
|
|
70
|
+
get AutoRefresh(): boolean | undefined;
|
|
71
|
+
set AutoRefresh(autoRefresh: boolean | undefined);
|
|
72
|
+
IsLogged(): boolean;
|
|
73
|
+
CheckIsLogged(): void;
|
|
74
|
+
_loginRequest: PopupRequest;
|
|
75
|
+
_accountId: string;
|
|
76
|
+
_msalInstance: PublicClientApplication | null | undefined;
|
|
77
|
+
LoginAsync(sd: SessionDescriptor, useGlobals?: boolean): Promise<void>;
|
|
78
|
+
LoginToAsync(toAppModule: AppModules): Promise<SessionDescriptor | undefined>;
|
|
79
|
+
private _azureLogout;
|
|
80
|
+
LogoutAsync(useGlobals?: boolean): Promise<void>;
|
|
81
|
+
RefreshAsync(): Promise<number | undefined>;
|
|
82
|
+
NewADMEngine(): IADMEngine;
|
|
83
|
+
NewArchiveEngine(): IArchiveEngine;
|
|
84
|
+
NewArchiveEngineByID(): IArchiveEngineByID;
|
|
85
|
+
NewAreaEngine(): IAreaEngine;
|
|
86
|
+
NewBasketEngine(): IBasketEngine;
|
|
87
|
+
NewBasketTypeEngine(): IBasketTypeEngine;
|
|
88
|
+
NewDataListEngine(): IDataListEngine;
|
|
89
|
+
NewDcmtPlatformEngine(): IDcmtPlatformEngine;
|
|
90
|
+
NewDcmtTypeEngine(): IDcmtTypeEngine;
|
|
91
|
+
NewDeleteEngine(): IDeleteEngine;
|
|
92
|
+
NewDiskEngine(): IDiskEngine;
|
|
93
|
+
NewDossierEngine(): IDossierEngine;
|
|
94
|
+
NewFavoritesEngine(): IFavoritesEngine;
|
|
95
|
+
NewGroupEngine(): IGroupEngine;
|
|
96
|
+
NewHomePageEngine(): IHomePageEngine;
|
|
97
|
+
NewJobEngine(): IJobEngine;
|
|
98
|
+
NewLDAPEngine(): ILDAPEngine;
|
|
99
|
+
NewLicenseEngine(): ILicenseEngine;
|
|
100
|
+
NewNotificationEngine(): INotificationEngine;
|
|
101
|
+
NewNumeratorEngine(): INumeratorEngine;
|
|
102
|
+
NewOrchPlatformEngine(): IOrchPlatformEngine;
|
|
103
|
+
NewProcessEngine(): IProcessEngine;
|
|
104
|
+
NewPreviewEngine(): IPreviewEngine;
|
|
105
|
+
NewRecentEngine(): IRecentEngine;
|
|
106
|
+
NewRelationEngine(): IRelationEngine;
|
|
107
|
+
NewReportEngine(): IReportEngine;
|
|
108
|
+
NewSavedQueryEngine(): ISavedQueryEngine;
|
|
109
|
+
NewSearchEngine(): ISearchEngine;
|
|
110
|
+
NewSignCertEngine(): ISignCertEngine;
|
|
111
|
+
NewSignServerEngine(): ISignServerEngine;
|
|
112
|
+
NewTaskEngine(): ITaskEngine;
|
|
113
|
+
NewTreeEngine(): ITreeEngine;
|
|
114
|
+
NewTSAEngine(): ITSAEngine;
|
|
115
|
+
NewUpdateEngineByID(): IUpdateEngineByID;
|
|
116
|
+
NewUploadFileEngine(): IUploadFileEngine;
|
|
117
|
+
NewUserEngine(): IUserEngine;
|
|
118
|
+
NewWorkflowEngine(): IWorkflowEngine;
|
|
119
|
+
NewWorkingGroupEngine(): IWorkingGroupEngine;
|
|
120
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class LocalStorageService {
|
|
2
|
+
static setItem<T extends string | number | Record<string, any>>(key: string, value: T): void;
|
|
3
|
+
static getItem<T extends Record<string, any> | string>(key: string): T | null;
|
|
4
|
+
static updateItem<T extends Record<string, any>>(key: string, value: T): void;
|
|
5
|
+
static deleteItem(key: string): void;
|
|
6
|
+
static clear(): void;
|
|
7
|
+
static findItemByField<T extends Record<string, any>>(key: string, field: keyof T, value: any): T | null;
|
|
8
|
+
static deleteItemByField<T extends Record<string, any>>(key: string, field: keyof T, value: any): void;
|
|
9
|
+
static updateItemByField<T extends Record<string, any>>(key: string, field: keyof T, value: any, newData: Partial<T>): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { DcmtTypeDescriptor, QueryDescriptor, QueryOperators, WhereItem } from "../openAPIs/TopMediaServiceClient";
|
|
2
|
+
export declare enum ResultTypes {
|
|
3
|
+
NONE = "None",
|
|
4
|
+
SUCCESS = "Success",
|
|
5
|
+
WARNING = "Warning",
|
|
6
|
+
ERROR = "Error",
|
|
7
|
+
INFO = "Info"
|
|
8
|
+
}
|
|
9
|
+
export declare class QueryValidatorOptions {
|
|
10
|
+
DoSelectValidation: boolean;
|
|
11
|
+
DoOrderByValidation: boolean;
|
|
12
|
+
DoWhereHasItemsValidation: boolean;
|
|
13
|
+
PropertyName: string;
|
|
14
|
+
RaiseWarningForOnlyMetadataDcmtTypes: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare class ValidationItem {
|
|
17
|
+
ResultType: ResultTypes;
|
|
18
|
+
Message: string;
|
|
19
|
+
PropertyName: string;
|
|
20
|
+
PropertyScopes: string[];
|
|
21
|
+
constructor(resultType: ResultTypes, propertyName: string, message: string, propertyScopes?: string[]);
|
|
22
|
+
}
|
|
23
|
+
export declare class PlatformObjectValidator {
|
|
24
|
+
static StringIsNullOrEmpty(value: string | undefined): boolean;
|
|
25
|
+
static StringIsNullOrWhiteSpace(value: string | undefined): boolean;
|
|
26
|
+
static GetInvalidFileNameChars(): string[];
|
|
27
|
+
static IsValidObjectName(name: string | null | undefined): boolean;
|
|
28
|
+
static GetTIDByQd(qd?: QueryDescriptor): number;
|
|
29
|
+
static ObjectNameValidator(propertyValue: string | null | undefined, propertyName: string, vl: ValidationItem[], localizedPropertyCaption: string): void;
|
|
30
|
+
static RequiredObjectValidator(propertyValue: object | null | undefined, propertyName: string, vl: ValidationItem[], localizedPropertyCaption: string, showPropertyName?: boolean): void;
|
|
31
|
+
static RequiredStrictlyPositiveNumberValidator(propertyValue: number | undefined, propertyName: string, vl: ValidationItem[], localizedPropertyCaption: string, showPropertyName?: boolean): void;
|
|
32
|
+
static RequiredStrictlyPositiveNumberValidator_RequiredField(propertyValue: number | undefined, propertyName: string, vl: ValidationItem[], localizedPropertyCaption: string, showPropertyName?: boolean): void;
|
|
33
|
+
static RequiredStrictlyPositiveNumberValidator_ValueNotAllowed(propertyValue: number | undefined, propertyName: string, vl: ValidationItem[], localizedPropertyCaption: string, showPropertyName?: boolean): void;
|
|
34
|
+
static RequiredNotEqualZeroNumberValidator(propertyValue: number | undefined, propertyName: string, vl: ValidationItem[], localizedPropertyCaption: string, showPropertyName?: boolean): void;
|
|
35
|
+
static RequiredNotEqualZeroNumberValidator_RequiredField(propertyValue: number | undefined, propertyName: string, vl: ValidationItem[], localizedPropertyCaption: string, showPropertyName?: boolean): void;
|
|
36
|
+
static RequiredNotEqualZeroNumberValidator_ValueNotAllowed(propertyValue: number | undefined, propertyName: string, vl: ValidationItem[], localizedPropertyCaption: string, showPropertyName?: boolean): void;
|
|
37
|
+
static RequiredNotNoneValueValidator(propertyValue: string | undefined, propertyName: string, vl: ValidationItem[], localizedPropertyCaption: string, showPropertyName?: boolean): void;
|
|
38
|
+
static RequiredStringValidator(propertyValue: string | null | undefined, propertyName: string, vl: ValidationItem[], localizedPropertyCaption: string, showPropertyName?: boolean): void;
|
|
39
|
+
static RequiredStringWithValidSpacesValidator(propertyValue: string | null | undefined, propertyName: string, vl: ValidationItem[], localizedPropertyCaption: string, showPropertyName?: boolean): void;
|
|
40
|
+
static GetNumberOfOperands(qo?: QueryOperators): 0 | 1 | 2 | 12 | 11 | 99;
|
|
41
|
+
static WhereItemHasValues(wi: WhereItem): boolean;
|
|
42
|
+
static QueryValidatorAsync(qdNew: QueryDescriptor | undefined, vl: ValidationItem[], qvo: QueryValidatorOptions, showPropertyName?: boolean): Promise<DcmtTypeDescriptor | undefined>;
|
|
43
|
+
}
|
|
@@ -307,4 +307,45 @@ export class PlatformObjectValidator {
|
|
|
307
307
|
return dtdFrom;
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
|
+
static DataListValidator(d) {
|
|
311
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
312
|
+
var _a;
|
|
313
|
+
let vil = [];
|
|
314
|
+
this.ObjectNameValidator(d.name, TMPropertyNames.entityName, vil, TMPropertyNames.entityName);
|
|
315
|
+
this.RequiredObjectValidator(d.items, TMPropertyNames.items, vil, '');
|
|
316
|
+
if (d.items) {
|
|
317
|
+
if (d.items.length == 0)
|
|
318
|
+
this.RequiredNotEqualZeroNumberValidator_RequiredField((_a = d.items) === null || _a === void 0 ? void 0 : _a.length, TMPropertyNames.items, vil, '');
|
|
319
|
+
else {
|
|
320
|
+
let viList;
|
|
321
|
+
let i = 0;
|
|
322
|
+
for (let aid of d.items) {
|
|
323
|
+
i++;
|
|
324
|
+
viList = [];
|
|
325
|
+
yield this.DataListItemValidator(aid, viList, true);
|
|
326
|
+
for (let vi of viList) {
|
|
327
|
+
vil.push(new ValidationItem(vi.ResultType, vi.PropertyName, `${SDK_Localizator.DataListItem} #${i} - ${vi.Message}`));
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
for (let curdlid of d.items) {
|
|
331
|
+
let v = d.items.filter(i => i.value == curdlid.value);
|
|
332
|
+
if (v.length > 1) {
|
|
333
|
+
vil.push(new ValidationItem(ResultTypes.ERROR, "items", `Esistono più elementi della lista dati con valore ${v[0].value}`));
|
|
334
|
+
break;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
return vil;
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
static DataListItemValidator(dlid_1, vil_1) {
|
|
343
|
+
return __awaiter(this, arguments, void 0, function* (dlid, vil, showPropertyName = false) {
|
|
344
|
+
this.RequiredStringValidator(dlid.value, TMPropertyNames.value, vil, '');
|
|
345
|
+
if (!dlid.name) {
|
|
346
|
+
vil.push(new ValidationItem(ResultTypes.ERROR, "itemName", SDK_Localizator.RequiredField));
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
}
|
|
310
351
|
}
|