@vario-software/types 2026.27.1 → 2026.28.0
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/package.json +1 -1
- package/schema/erp.d.ts +2021 -61
- package/scripting/services.d.ts +111 -46
- package/scripting/types.d.ts +362 -310
package/scripting/services.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
CrmReminder, CrmState, CrmSubType, CrmTask, CrmTaskParticipant,
|
|
13
13
|
CrmTypedDocumentRef, CrmTypedDocumentRefList, CurrencyReference, Customer,
|
|
14
14
|
DangerousGoodInformation, DealNotificationEventConfig, DeliveryMethod,
|
|
15
|
-
DeliveryTerm, Document, DocumentAdditionalInfo,
|
|
15
|
+
DeliveryTerm, DmsOutputStream, Document, DocumentAdditionalInfo,
|
|
16
16
|
DocumentAdditionalInfo$IncomingGoodsTarget,
|
|
17
17
|
DocumentAdditionalInfo$IncomingGoodsTargetOfLine,
|
|
18
18
|
DocumentAdditionalInfo$OrderIntoPickingConvertResult,
|
|
@@ -28,34 +28,36 @@ import {
|
|
|
28
28
|
DocumentTransferToStateRequest, DocumentTransferToTypeRequest,
|
|
29
29
|
DocumentType, DocumentTypeFollowUp, DocumentTypeLabel, DocumentTypeState,
|
|
30
30
|
DummySerialNumberStockTransferApi, ECrmPriorityType,
|
|
31
|
-
ECrmSpecialDocumentRefType, ECrmType,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
FabricationSerialNumber, Group, OpenItem,
|
|
36
|
-
|
|
37
|
-
PicklistLineBooking, PicklistLineComponent,
|
|
38
|
-
PicklistTemplate
|
|
31
|
+
ECrmSpecialDocumentRefType, ECrmType, ELinebreakType,
|
|
32
|
+
EScriptingAuthenticationType, EShelfDocumentDeletionState,
|
|
33
|
+
FabricationComponentForProduction, FabricationDefectiveRequest,
|
|
34
|
+
FabricationProduceRequest, FabricationRemainingComponent,
|
|
35
|
+
FabricationRevertRequest, FabricationSerialNumber, Group, OpenItem,
|
|
36
|
+
PaymentMethod, PaymentTerm, PaymentTermRef, PickTrolley, PickTrolleyBox,
|
|
37
|
+
Picklist, PicklistLine, PicklistLineBooking, PicklistLineComponent,
|
|
38
|
+
PicklistTemplate, PicklistTemplate$DateRange,
|
|
39
|
+
PicklistTemplate$OrderSelectionOptions,
|
|
39
40
|
PicklistTemplate$PicklistCreationOptions,
|
|
40
41
|
PicklistTemplate$PicklistProcessingOptions,
|
|
41
|
-
PicklistTemplate$PicklistScript,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
RequestDocumentLineFabricationDetail,
|
|
42
|
+
PicklistTemplate$PicklistScript, PlainScriptingWriter,
|
|
43
|
+
PriceSelectionCriteria, Product, ProductArticleRef, ProductDiscount,
|
|
44
|
+
ProductGroup, ProductMainGroup, ProductPrice, RecommendedRetailPrice,
|
|
45
|
+
RequestDocument, RequestDocumentLine, RequestDocumentLineBooking,
|
|
46
|
+
RequestDocumentLineCommission, RequestDocumentLineFabricationDetail,
|
|
46
47
|
RequestDocumentLineShippingCostDetail, RequestDocumentPriceModifier,
|
|
47
48
|
RequestDocumentText, RevenueCalculation, SalesAgent, Scenario,
|
|
48
49
|
ScenarioActualValue, ScenarioDimension, ScenarioDimensionValue,
|
|
49
|
-
ScriptOutputRequest, ScriptingDate, ScriptingDateTime,
|
|
50
|
+
ScriptOutputRequest, ScriptingDate, ScriptingDateTime,
|
|
51
|
+
ScriptingOutputStream, ScriptingXmlWriter, SecureHttpClient,
|
|
50
52
|
SequencerConfiguration, SequencerConfigurationDetail,
|
|
51
53
|
SerialNumberWithQuantityApi, ShelfDocument, ShelfDocumentAttribution,
|
|
52
54
|
ShelfDocumentType, ShelfFile, ShelfFileMetaData, ShelfShare,
|
|
53
55
|
ShelfTranslatableText, Stock, StockMovementManualApi, StockTransferApi,
|
|
54
|
-
StockTransferResult, StorageBinRef,
|
|
55
|
-
|
|
56
|
-
UnitTypeReference, UpdateDocumentRequest, User,
|
|
57
|
-
VariantAttributeListing, VariantDescription,
|
|
58
|
-
VariantValueListing, VariantValueReference
|
|
56
|
+
StockTransferResult, StorageBinRef, StringCollectorOutputStream,
|
|
57
|
+
SubFileInfo, Supplier, TagDto, TaxIdForeignCountry, TextEnumCreate,
|
|
58
|
+
TextEnumGet, TssSignature, UnitTypeReference, UpdateDocumentRequest, User,
|
|
59
|
+
VariantAttribute, VariantAttributeListing, VariantDescription,
|
|
60
|
+
VariantSchema, VariantValue, VariantValueListing, VariantValueReference
|
|
59
61
|
} from "./types"
|
|
60
62
|
|
|
61
63
|
/**
|
|
@@ -550,27 +552,27 @@ export interface ArticleScriptingService {
|
|
|
550
552
|
*
|
|
551
553
|
* @param {string} batchIdentifier - ID des Etikettendrucklaufs
|
|
552
554
|
* @param {number} articleId - ID des zu druckenden Artikels
|
|
555
|
+
* @param {number} labelCount - Anzahl der zu druckenden Etiketten
|
|
553
556
|
*/
|
|
554
|
-
addLabelToPrintBatch(batchIdentifier: string, articleId: number): void;
|
|
557
|
+
addLabelToPrintBatch(batchIdentifier: string, articleId: number, labelCount: number): void;
|
|
555
558
|
|
|
556
559
|
/**
|
|
557
560
|
* Fügt Informationen zum Druck Etiketten zu einem Artikel zu einem Etikettendrucklauf hinzu
|
|
558
561
|
*
|
|
559
562
|
* @param {string} batchIdentifier - ID des Etikettendrucklaufs
|
|
560
563
|
* @param {number} articleId - ID des zu druckenden Artikels
|
|
561
|
-
* @param {number} articleSerialNumberId - ID der zu druckenden Seriennummer
|
|
562
|
-
* @param {number} labelCount - Anzahl der zu druckenden Etiketten
|
|
563
564
|
*/
|
|
564
|
-
addLabelToPrintBatch(batchIdentifier: string, articleId: number
|
|
565
|
+
addLabelToPrintBatch(batchIdentifier: string, articleId: number): void;
|
|
565
566
|
|
|
566
567
|
/**
|
|
567
568
|
* Fügt Informationen zum Druck Etiketten zu einem Artikel zu einem Etikettendrucklauf hinzu
|
|
568
569
|
*
|
|
569
570
|
* @param {string} batchIdentifier - ID des Etikettendrucklaufs
|
|
570
571
|
* @param {number} articleId - ID des zu druckenden Artikels
|
|
572
|
+
* @param {number} articleSerialNumberId - ID der zu druckenden Seriennummer
|
|
571
573
|
* @param {number} labelCount - Anzahl der zu druckenden Etiketten
|
|
572
574
|
*/
|
|
573
|
-
addLabelToPrintBatch(batchIdentifier: string, articleId: number, labelCount: number): void;
|
|
575
|
+
addLabelToPrintBatch(batchIdentifier: string, articleId: number, articleSerialNumberId: number, labelCount: number): void;
|
|
574
576
|
|
|
575
577
|
/**
|
|
576
578
|
* Persistiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert
|
|
@@ -703,21 +705,21 @@ Die Texte werden zur Sprache der eigenen Adresse gespeichert.
|
|
|
703
705
|
readById(id: number, languageCode: string): Article;
|
|
704
706
|
|
|
705
707
|
/**
|
|
706
|
-
* Liest einen Artikel über die Artikelnummer mit Texten zur Sprache
|
|
708
|
+
* Liest einen Artikel über die Artikelnummer mit Texten zur Sprache {@code languageCode}
|
|
707
709
|
*
|
|
708
710
|
* @param {string} articleNumber - Eine Artikelnummer
|
|
711
|
+
* @param {string} languageCode - Zu verwendende Sprache
|
|
709
712
|
* @return {Article} Der gelesene Artikel
|
|
710
713
|
*/
|
|
711
|
-
readByNumber(articleNumber: string): Article;
|
|
714
|
+
readByNumber(articleNumber: string, languageCode: string): Article;
|
|
712
715
|
|
|
713
716
|
/**
|
|
714
|
-
* Liest einen Artikel über die Artikelnummer mit Texten zur Sprache
|
|
717
|
+
* Liest einen Artikel über die Artikelnummer mit Texten zur Sprache der eigenen Adresse
|
|
715
718
|
*
|
|
716
719
|
* @param {string} articleNumber - Eine Artikelnummer
|
|
717
|
-
* @param {string} languageCode - Zu verwendende Sprache
|
|
718
720
|
* @return {Article} Der gelesene Artikel
|
|
719
721
|
*/
|
|
720
|
-
readByNumber(articleNumber: string
|
|
722
|
+
readByNumber(articleNumber: string): Article;
|
|
721
723
|
|
|
722
724
|
/**
|
|
723
725
|
* Persistiert einen Artikel. Die Texte werden zur Sprache {@code languageCode} gespeichert
|
|
@@ -1798,18 +1800,18 @@ export interface DocumentScriptingService {
|
|
|
1798
1800
|
* Löst einen Beleg auf
|
|
1799
1801
|
*
|
|
1800
1802
|
* @param {number} documentId - ID des aufzulösenden Belegs
|
|
1801
|
-
* @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
|
|
1802
1803
|
* @return {Document} Der aufgelöste Beleg
|
|
1803
1804
|
*/
|
|
1804
|
-
dissolve(documentId: number
|
|
1805
|
+
dissolve(documentId: number): Document;
|
|
1805
1806
|
|
|
1806
1807
|
/**
|
|
1807
1808
|
* Löst einen Beleg auf
|
|
1808
1809
|
*
|
|
1809
1810
|
* @param {number} documentId - ID des aufzulösenden Belegs
|
|
1811
|
+
* @param {Array<AdditionalParameter>} additionalParameters - Zusätzliche Parameter
|
|
1810
1812
|
* @return {Document} Der aufgelöste Beleg
|
|
1811
1813
|
*/
|
|
1812
|
-
dissolve(documentId: number): Document;
|
|
1814
|
+
dissolve(documentId: number, additionalParameters: Array<AdditionalParameter>): Document;
|
|
1813
1815
|
|
|
1814
1816
|
/**
|
|
1815
1817
|
* Startet die Bearbeitung eines Belegs (Transition SAVED -> EDIT)
|
|
@@ -1929,16 +1931,16 @@ export interface DocumentScriptingService {
|
|
|
1929
1931
|
* Versendet einen Beleg per Mail
|
|
1930
1932
|
*
|
|
1931
1933
|
* @param {number} documentId - ID des zu versendenden Belegs
|
|
1934
|
+
* @param {string} reportGroupIdentifier -
|
|
1932
1935
|
*/
|
|
1933
|
-
sendViaMail(documentId: number): void;
|
|
1936
|
+
sendViaMail(documentId: number, reportGroupIdentifier: string): void;
|
|
1934
1937
|
|
|
1935
1938
|
/**
|
|
1936
1939
|
* Versendet einen Beleg per Mail
|
|
1937
1940
|
*
|
|
1938
1941
|
* @param {number} documentId - ID des zu versendenden Belegs
|
|
1939
|
-
* @param {string} reportGroupIdentifier -
|
|
1940
1942
|
*/
|
|
1941
|
-
sendViaMail(documentId: number
|
|
1943
|
+
sendViaMail(documentId: number): void;
|
|
1942
1944
|
|
|
1943
1945
|
/**
|
|
1944
1946
|
* Überführt einen Beleg in einen anderen Status
|
|
@@ -2799,6 +2801,46 @@ export interface ScriptOutputHelperService {
|
|
|
2799
2801
|
createOutputRequest(): ScriptOutputRequest;
|
|
2800
2802
|
}
|
|
2801
2803
|
|
|
2804
|
+
/**
|
|
2805
|
+
* Factory zum Erzeugen von Writern und OutputStreams
|
|
2806
|
+
*/
|
|
2807
|
+
export interface ScriptingIOFactory {
|
|
2808
|
+
|
|
2809
|
+
/**
|
|
2810
|
+
* Erzeugt einen Writer für einfache Texte ohne besondere Formatierungs- oder Syntax-Unterstützung mit Standard-Zeilenumbruch (Windows).
|
|
2811
|
+
*
|
|
2812
|
+
* @param {ScriptingOutputStream} destination - Ziel-Stream, in den geschrieben wird
|
|
2813
|
+
* @return {PlainScriptingWriter} Der erzeugte Writer
|
|
2814
|
+
*/
|
|
2815
|
+
createPlainWriter(destination: ScriptingOutputStream): PlainScriptingWriter;
|
|
2816
|
+
|
|
2817
|
+
/**
|
|
2818
|
+
* Wie createPlainWriter(ScriptingOutputStream), aber mit einstellbarer Zeichenfolge für Zeilenumbrüche
|
|
2819
|
+
*
|
|
2820
|
+
* @param {ScriptingOutputStream} destination - Ziel-Stream, in den geschrieben wird
|
|
2821
|
+
* @param {ELinebreakType} linebreakType - Zeichenfolge für einen Zeilenumbruch
|
|
2822
|
+
* @return {PlainScriptingWriter} Der erzeugte Writer
|
|
2823
|
+
*/
|
|
2824
|
+
createPlainWriter(destination: ScriptingOutputStream, linebreakType: ELinebreakType): PlainScriptingWriter;
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* Erzeugt einen StringCollector, der geschriebene Daten als String sammelt.
|
|
2828
|
+
*
|
|
2829
|
+
* @return {StringCollectorOutputStream} Der erzeugte StringCollector
|
|
2830
|
+
*/
|
|
2831
|
+
createStringCollector(): StringCollectorOutputStream;
|
|
2832
|
+
|
|
2833
|
+
/**
|
|
2834
|
+
* Erzeugt einen XmlWriter, der in den übergebenen Stream schreibt.
|
|
2835
|
+
*
|
|
2836
|
+
* @param {ScriptingOutputStream} destination - Ziel-Stream, in den geschrieben wird
|
|
2837
|
+
* @param {string} encoding - Encoding (z.B. UTF-8)
|
|
2838
|
+
* @param {boolean} prettyPrint - besser leserlich formatieren?
|
|
2839
|
+
* @return {ScriptingXmlWriter} Der erzeugte XmlWriter
|
|
2840
|
+
*/
|
|
2841
|
+
createXmlWriter(destination: ScriptingOutputStream, encoding: string, prettyPrint: boolean): ScriptingXmlWriter;
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2802
2844
|
/**
|
|
2803
2845
|
* Services
|
|
2804
2846
|
*/
|
|
@@ -2820,14 +2862,14 @@ export interface ScriptingServiceList {
|
|
|
2820
2862
|
crmTaskService: CrmTaskScriptingService;
|
|
2821
2863
|
|
|
2822
2864
|
/**
|
|
2823
|
-
* Service zur Verarbeitung von
|
|
2865
|
+
* Service zur Verarbeitung von Shelf-Documents
|
|
2824
2866
|
*/
|
|
2825
|
-
|
|
2867
|
+
shelfDocumentService: ShelfDocumentScriptingService;
|
|
2826
2868
|
|
|
2827
2869
|
/**
|
|
2828
|
-
* Service zur Verarbeitung von
|
|
2870
|
+
* Service zur Verarbeitung von Accounts
|
|
2829
2871
|
*/
|
|
2830
|
-
|
|
2872
|
+
accountService: AccountScriptingService;
|
|
2831
2873
|
|
|
2832
2874
|
/**
|
|
2833
2875
|
* Logging im Scripting
|
|
@@ -2874,6 +2916,11 @@ export interface ScriptingServiceList {
|
|
|
2874
2916
|
*/
|
|
2875
2917
|
dtoFactory: dtoFactory;
|
|
2876
2918
|
|
|
2919
|
+
/**
|
|
2920
|
+
* Factory zum Erzeugen von Writern und OutputStreams
|
|
2921
|
+
*/
|
|
2922
|
+
ioFactory: ScriptingIOFactory;
|
|
2923
|
+
|
|
2877
2924
|
/**
|
|
2878
2925
|
* Service zur Verarbeitung von Produktpreisen in Skripten
|
|
2879
2926
|
*/
|
|
@@ -3079,6 +3126,15 @@ export interface ScriptingUtilities {
|
|
|
3079
3126
|
*/
|
|
3080
3127
|
export interface ShelfDocumentScriptingService {
|
|
3081
3128
|
|
|
3129
|
+
/**
|
|
3130
|
+
* Legt ein Dokument an. Der Inhalt muss noch separat hochgeladen werden.
|
|
3131
|
+
*
|
|
3132
|
+
* @param {string} fileName - Dateiname
|
|
3133
|
+
* @param {string} documentTypeKey - Schlüssel des Dokumenttypen
|
|
3134
|
+
* @return {ShelfDocument} Das angelegte Dokument
|
|
3135
|
+
*/
|
|
3136
|
+
create(fileName: string, documentTypeKey: string): ShelfDocument;
|
|
3137
|
+
|
|
3082
3138
|
/**
|
|
3083
3139
|
* Erstellt eine neue Verknüpfung zwischen einem DMS-Dokument und einem Geschäftsobjekt
|
|
3084
3140
|
*
|
|
@@ -3087,6 +3143,15 @@ export interface ShelfDocumentScriptingService {
|
|
|
3087
3143
|
*/
|
|
3088
3144
|
createAttribution(attribution: ShelfDocumentAttribution): ShelfDocumentAttribution;
|
|
3089
3145
|
|
|
3146
|
+
/**
|
|
3147
|
+
* Erzeugt einen OutputStream, der geschriebene Daten als Datei ins DMS lädt.
|
|
3148
|
+
*
|
|
3149
|
+
* @param {number} shelfDocumentId - ID des Dokuments
|
|
3150
|
+
* @param {string} fileName - Dateiname
|
|
3151
|
+
* @return {DmsOutputStream} Der erzeugte OutputStream
|
|
3152
|
+
*/
|
|
3153
|
+
createDmsOutputStream(shelfDocumentId: number, fileName: string): DmsOutputStream;
|
|
3154
|
+
|
|
3090
3155
|
/**
|
|
3091
3156
|
* Löscht eine DMS-Verknüpfung
|
|
3092
3157
|
*
|
|
@@ -3095,24 +3160,24 @@ export interface ShelfDocumentScriptingService {
|
|
|
3095
3160
|
deleteAttribution(attributionId: number): void;
|
|
3096
3161
|
|
|
3097
3162
|
/**
|
|
3098
|
-
* Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-Dokument
|
|
3163
|
+
* Lädt eine Datei von einer URL mit Authentifizierung herunter und erstellt ein neues DMS-Dokument
|
|
3099
3164
|
*
|
|
3100
3165
|
* @param {string} url - Download-URL
|
|
3166
|
+
* @param {EScriptingAuthenticationType} authenticationType - Art der Authentifizierung (BASIC_AUTH, BEARER_TOKEN)
|
|
3167
|
+
* @param {string} authValue - Authentifizierungswert — Platzhalter (z.B. {{secret:myApi:token}}) oder Klartext. Bei BASIC_AUTH im Format 'username:password'
|
|
3101
3168
|
* @param {string} documentTypeKey - Schlüssel der Dokumentenart
|
|
3102
3169
|
* @return {ShelfDocument} Das neu erstellte DMS-Dokument
|
|
3103
3170
|
*/
|
|
3104
|
-
downloadIntoDMS(url: string, documentTypeKey: string): ShelfDocument;
|
|
3171
|
+
downloadIntoDMS(url: string, authenticationType: EScriptingAuthenticationType, authValue: string, documentTypeKey: string): ShelfDocument;
|
|
3105
3172
|
|
|
3106
3173
|
/**
|
|
3107
|
-
* Lädt eine Datei von einer URL
|
|
3174
|
+
* Lädt eine Datei von einer URL herunter und erstellt ein neues DMS-Dokument
|
|
3108
3175
|
*
|
|
3109
3176
|
* @param {string} url - Download-URL
|
|
3110
|
-
* @param {EScriptingAuthenticationType} authenticationType - Art der Authentifizierung (BASIC_AUTH, BEARER_TOKEN)
|
|
3111
|
-
* @param {string} authValue - Authentifizierungswert — Platzhalter (z.B. {{secret:myApi:token}}) oder Klartext. Bei BASIC_AUTH im Format 'username:password'
|
|
3112
3177
|
* @param {string} documentTypeKey - Schlüssel der Dokumentenart
|
|
3113
3178
|
* @return {ShelfDocument} Das neu erstellte DMS-Dokument
|
|
3114
3179
|
*/
|
|
3115
|
-
downloadIntoDMS(url: string,
|
|
3180
|
+
downloadIntoDMS(url: string, documentTypeKey: string): ShelfDocument;
|
|
3116
3181
|
|
|
3117
3182
|
/**
|
|
3118
3183
|
* Findet ein Dokumentenart über ihren Schlüssel
|